:root {
  color-scheme: light;
  --paper: #f1ede4;
  --paper-deep: #e7e0d3;
  --surface: #faf7f0;
  --ink: #171c18;
  --ink-soft: #343a35;
  --muted: #62685f;
  --line: #cdc6b9;
  --line-strong: #958f84;
  --forest: #21583f;
  --forest-dark: #153d2b;
  --forest-wash: #e0eae3;
  --amber: #9b5d22;
  --amber-wash: #f4e5d1;
  --focus: #0d6946;
  --rail-ink: #fffdf7;
  --rail-muted: #e6e7df;
  --rail-overlay: rgba(10, 17, 12, 0.54);
  --rail-width: clamp(300px, 22vw, 340px);
  --workspace-gutter: clamp(28px, 4vw, 58px);
  --section-space: clamp(28px, 4vw, 52px);
  --control-height: 44px;
  --measure: 72rem;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: var(--control-height);
  border: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ul {
  margin-top: 0;
}

p,
dd,
li,
strong,
small,
span {
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--ink);
  color: var(--rail-ink);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(calc(-100% - 18px));
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-width: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: clamp(300px, 22vw, 340px) minmax(0, 1fr);
}

.visual-rail {
  position: sticky;
  top: 0;
  height: 100svh;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: #18221b;
  color: var(--rail-ink);
}

.visual-rail img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 52% center;
  transform: scale(1.035);
  animation: photoSettle 850ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.visual-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rail-overlay);
}

.brand-lockup {
  position: absolute;
  right: 28px;
  bottom: 184px;
  left: 28px;
}

.eyebrow,
.section-kicker {
  display: block;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--rail-muted);
}

.brand-lockup h1 {
  margin: 10px 0 16px;
  color: var(--rail-ink);
  font-size: clamp(2.85rem, 4.1vw, 4.15rem);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.brand-lockup p {
  max-width: 16rem;
  margin: 0;
  color: var(--rail-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.rail-status {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 247, 0.42);
}

.record-date-status {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.record-date-status .section-kicker {
  color: var(--rail-muted);
}

.record-date-status strong {
  color: var(--rail-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.record-date-status small {
  color: var(--rail-muted);
  font-size: 0.76rem;
}

.workspace {
  min-width: 0;
  width: 100%;
  padding: 38px var(--workspace-gutter) 68px;
  background: var(--paper);
}

.workspace > * {
  width: min(100%, var(--measure));
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

.workspace > section,
.workspace > footer {
  animation: sectionEnter 520ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.workspace > section:nth-of-type(2) {
  animation-delay: 60ms;
}

.workspace > section:nth-of-type(3) {
  animation-delay: 110ms;
}

.workspace > section:nth-of-type(n + 4),
.workspace > footer {
  animation-delay: 160ms;
}

.topbar {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.topbar > div {
  min-width: 0;
}

.section-kicker {
  color: var(--forest);
}

.topbar h2 {
  margin: 5px 0 0;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.035em;
}

.top-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.command-button,
.date-chip,
.segmented button,
.trend-day-button,
.mobile-action-bar button {
  min-width: 0;
  min-height: var(--control-height);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-weight: 680;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  white-space: nowrap;
}

.icon-button.primary,
.command-button {
  border-color: var(--forest-dark);
  background: var(--forest-dark);
  color: var(--rail-ink);
}

.icon-button:hover,
.command-button:hover,
.date-chip:hover,
.trend-day-button:hover,
.mobile-action-bar button:hover {
  border-color: var(--forest);
  color: var(--forest-dark);
  background: var(--forest-wash);
}

.icon-button.primary:hover,
.command-button:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--rail-ink);
}

#statePanel {
  margin-top: 16px;
}

.app-state {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--forest);
  background: var(--surface);
}

.app-state strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.app-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.app-state .command-button {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-width: 92px;
}

.app-state-partial,
.app-state-error {
  border-left-color: var(--amber);
  background: var(--amber-wash);
}

.app-state-partial strong,
.app-state-error strong {
  color: #64340f;
}

#app[data-state="loading"] .app-state {
  position: relative;
  overflow: hidden;
}

#app[data-state="loading"] .app-state::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--forest);
  content: "";
  transform-origin: left;
  animation: loadingSweep 1.1s ease-in-out infinite alternate;
}

#app:is([data-state="loading"], [data-state="empty"], [data-state="error"]) :is(
    .date-strip,
    .energy-board,
    .operator-band,
    .daily-brief,
    .trend-hub,
    .content-columns,
    .timeline-section,
    #profileDetail
  ) {
  display: none;
}

.date-strip {
  min-width: 0;
  display: flex;
  gap: 6px;
  margin-bottom: 0;
  padding: 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.date-chip {
  flex: 0 0 auto;
  padding: 0 13px;
  border-color: transparent;
  border-bottom-color: var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.date-chip.active,
.date-chip[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--rail-ink);
}

.energy-board {
  min-width: 0;
  margin-top: 28px;
  padding: 24px 0 30px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.panel-heading {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-heading > div {
  min-width: 0;
}

.panel-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
  font-weight: 735;
  line-height: 1;
  letter-spacing: -0.045em;
}

.energy-kpis {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.metric-cell {
  min-width: 0;
  min-height: 132px;
  padding: 19px 18px 17px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-cell:not(:first-child) {
  padding-left: 18px;
}

.metric-cell:nth-child(4) {
  border-right: 0;
}

.metric-label,
.metric-detail,
.metric-cell small {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.metric-value,
.metric-cell > strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.9vw, 1.72rem);
  font-weight: 735;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.progress-row {
  min-width: 0;
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 18px 0 0;
}

.progress-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.progress-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-copy strong {
  flex: 0 0 auto;
  color: var(--forest-dark);
  font-size: 1.15rem;
}

.progress-track {
  position: relative;
  height: 8px;
  overflow: clip;
  border: 1px solid #a8b5aa;
  background: var(--forest-wash);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  max-width: 100%;
  background: var(--forest);
  transform-origin: left;
  transition: width 480ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.operator-band {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: var(--section-space);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.band-main {
  min-width: 0;
  max-width: 48rem;
}

.band-main h2 {
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.band-main p {
  margin: 10px 0 0;
  color: var(--muted);
}

.command-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  white-space: nowrap;
}

.daily-brief {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.5fr);
  gap: 34px;
  align-items: end;
  margin-top: var(--section-space);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.energy-method-copy {
  min-width: 0;
}

.energy-method-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.energy-method-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.daily-brief > .progress-row {
  align-self: end;
  grid-column: auto;
  padding: 0;
}

.trend-hub {
  min-width: 0;
  margin-top: var(--section-space);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-strong);
}

.trend-chart {
  position: relative;
  min-width: 0;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  background: var(--surface);
}

.trend-chart svg {
  width: 100%;
  height: 260px;
  overflow: visible;
  padding: 20px 8px;
}

.trend-chart polyline {
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: trendReveal 900ms cubic-bezier(0.2, 0.75, 0.25, 1) 120ms forwards;
}

.trend-chart circle {
  stroke: var(--surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.empty-note {
  margin: 0;
  padding: 20px 0;
  color: var(--muted);
  line-height: 1.7;
}

#trendSummary {
  min-width: 0;
}

.trend-controls {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 18px;
}

.segmented {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.segmented button {
  position: relative;
  padding: 0 11px;
  border: 0;
  color: var(--muted);
}

.segmented button::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 3px;
  background: var(--forest);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.segmented button:hover {
  color: var(--forest-dark);
  background: var(--forest-wash);
}

.segmented button[aria-selected="true"] {
  color: var(--forest-dark);
  background: transparent;
}

.segmented button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.trend-text-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.trend-quality-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.trend-data-list {
  min-width: 0;
  display: flex;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0 0 6px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.trend-data-list li {
  flex: 0 0 auto;
}

.trend-day-button {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.trend-day-button strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.trend-day-button small {
  grid-column: 1 / -1;
  color: var(--forest);
  font-size: 0.7rem;
}

.content-columns {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
  margin-top: var(--section-space);
}

.content-columns > .panel {
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.content-columns h2,
#profileDetail h2 {
  margin: 0 0 15px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.content-columns h3 {
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.content-columns p,
.training-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.detail-list {
  min-width: 0;
  display: grid;
  margin: 0;
}

.detail-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(5rem, 0.65fr) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 680;
  text-align: right;
}

.training-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-list li {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.training-list small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.timeline-section {
  min-width: 0;
  margin-top: var(--section-space);
}

.timeline {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 7rem minmax(9rem, 0.7fr) minmax(0, 1.5fr) auto;
  gap: 18px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.timeline-item:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.timeline-time,
.timeline-item p,
.timeline-kind {
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-item strong {
  font-size: 0.88rem;
}

.timeline-item p {
  margin: 0;
  line-height: 1.55;
}

.timeline-kind {
  color: #6f3c13;
  font-weight: 760;
  white-space: nowrap;
}

#profileDetail {
  min-width: 0;
  margin-top: var(--section-space);
  padding: 24px 0 12px;
  border-top: 3px solid var(--ink);
}

#profileDetail .detail-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
}

#profileDetail .detail-list > div {
  display: block;
  padding: 12px 0;
}

#profileDetail .detail-list dd {
  margin-top: 5px;
  text-align: left;
}

.mobile-action-bar {
  display: none;
}

@keyframes photoSettle {
  to {
    transform: scale(1);
  }
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trendReveal {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes loadingSweep {
  from {
    transform: scaleX(0.12);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-rail {
    position: relative;
    top: auto;
    width: 100%;
    height: min(42svh, 320px);
    max-height: 42svh;
  }

  .visual-rail img {
    object-position: center 46%;
  }

  .brand-lockup {
    right: auto;
    bottom: 28px;
    left: 32px;
    width: min(42vw, 23rem);
  }

  .brand-lockup h1 {
    margin: 7px 0 9px;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
  }

  .brand-lockup p {
    max-width: 22rem;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .rail-status {
    right: 32px;
    bottom: 28px;
    left: auto;
    width: min(34vw, 17rem);
  }

  .workspace {
    padding-top: 30px;
  }

  .energy-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cell:nth-child(2) {
    border-right: 0;
  }

  .metric-cell:nth-child(3) {
    padding-left: 0;
  }

  .content-columns {
    gap: 24px;
  }

  #profileDetail .detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .visual-rail {
    height: 33svh;
    min-height: 30svh;
    max-height: 36svh;
  }

  .visual-rail img {
    object-position: center 44%;
  }

  .brand-lockup {
    top: 20px;
    right: 18px;
    bottom: auto;
    left: 18px;
    width: auto;
  }

  .eyebrow {
    font-size: 0.61rem;
  }

  .brand-lockup h1 {
    margin: 5px 0 0;
    font-size: clamp(2.15rem, 11vw, 2.75rem);
  }

  .brand-lockup p {
    display: none;
  }

  .rail-status {
    right: 18px;
    bottom: 16px;
    left: 18px;
    width: auto;
    padding-top: 10px;
  }

  .record-date-status {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 5px 10px;
  }

  .record-date-status strong {
    font-size: 0.94rem;
  }

  .record-date-status small {
    display: none;
  }

  .workspace {
    padding: 18px 18px 34px;
  }

  .workspace > * {
    width: 100%;
  }

  .topbar {
    align-items: center;
    padding-bottom: 14px;
  }

  .topbar h2 {
    font-size: 1.45rem;
  }

  .top-actions {
    display: none;
  }

  #statePanel {
    margin-top: 10px;
  }

  .app-state {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 11px;
  }

  .app-state .command-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 7px;
  }

  .date-strip {
    padding: 9px 0 10px;
  }

  .date-chip {
    padding: 0 11px;
  }

  .energy-board {
    margin-top: 18px;
    padding: 18px 0 24px;
  }

  .panel-heading {
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .panel-heading h2 {
    font-size: 1.72rem;
  }

  .energy-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cell {
    min-height: 122px;
    padding: 15px 12px 14px 0;
  }

  .metric-cell:not(:first-child) {
    padding-left: 12px;
  }

  .metric-cell:nth-child(2n) {
    border-right: 0;
  }

  .metric-cell:nth-child(3) {
    padding-left: 0;
  }

  .metric-value,
  .metric-cell > strong {
    font-size: 1.08rem;
  }

  .progress-row {
    padding-top: 15px;
  }

  .operator-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
    padding-bottom: 24px;
  }

  .command-button {
    width: 100%;
  }

  .daily-brief {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 30px;
    padding-bottom: 25px;
  }

  .daily-brief > .progress-row {
    grid-column: 1;
  }

  .trend-hub {
    margin-top: 30px;
    padding-bottom: 28px;
  }

  .trend-chart,
  .trend-chart svg {
    min-height: 210px;
    height: 210px;
  }

  .trend-controls {
    display: grid;
    justify-content: stretch;
  }

  .segmented {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1 0 auto;
  }

  .content-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-top: 32px;
  }

  .detail-list > div {
    grid-template-columns: minmax(4.5rem, 0.55fr) minmax(0, 1fr);
  }

  .timeline-section {
    margin-top: 34px;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 14px;
  }

  .timeline-item p {
    grid-column: 1 / -1;
  }

  .timeline-kind {
    grid-column: 2;
    grid-row: 1;
  }

  #profileDetail {
    margin-top: 34px;
  }

  #profileDetail .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: var(--surface);
  }

  .mobile-action-bar button {
    min-height: 48px;
    padding: 0 8px;
    border-color: var(--forest-dark);
    color: var(--forest-dark);
  }

  .mobile-action-bar button:last-child {
    background: var(--forest-dark);
    color: var(--rail-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}
