:root {
  color: #17211c;
  background: #e7e8e2;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #17211c;
  --muted: #6e7771;
  --paper: #f4f5f0;
  --surface: #ffffff;
  --line: #dfe3dc;
  --forest: #174f3b;
  --forest-deep: #0d382b;
  --mint: #dceae0;
  --mint-bright: #a7e4bd;
  --orange: #db781c;
  --orange-soft: #f7ead7;
  --blue: #3f7f9e;
  --blue-soft: #e4eef3;
  --red: #b84f47;
  --red-soft: #f6e5e3;
  --shadow: 0 10px 30px rgba(28, 44, 35, .09);
  --shadow-small: 0 4px 14px rgba(28, 44, 35, .07);
  --type-page-title: 21px;
  --type-section-title: 14px;
  --type-card-title: 12px;
  --type-body: 10.5px;
  --type-caption: 9px;
  --type-button: 11px;
  --leading-tight: 1.3;
  --leading-body: 1.6;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(63, 127, 158, .35); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .48; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { overflow-wrap: break-word; text-wrap: pretty; }
svg { flex: 0 0 auto; }

.prototype-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px 430px 220px;
  justify-content: center;
  align-items: center;
  gap: 42px;
  padding: 30px;
  background:
    linear-gradient(#d8dbd3 1px, transparent 1px),
    linear-gradient(90deg, #d8dbd3 1px, transparent 1px),
    #ecece7;
  background-size: 28px 28px;
}

.demo-dock {
  height: min(844px, calc(100vh - 60px));
  border-radius: 26px;
  background: rgba(246, 247, 242, .96);
  border: 1px solid #d6dad2;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.demo-dock__brand { display: flex; gap: 11px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: white; background: var(--forest); }
.demo-dock__brand b { display: block; font-size: 16px; }
.demo-dock__brand span { color: var(--muted); font-size: 11px; }
.demo-dock__intro { padding: 17px 2px 12px; }
.demo-dock__intro span { color: var(--forest); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.demo-dock__intro p { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.5; }
.demo-list { display: grid; gap: 5px; overflow-y: auto; scrollbar-width: none; padding-right: 2px; }
.demo-list::-webkit-scrollbar { display: none; }
.demo-list button { position: relative; min-height: 57px; border: 1px solid transparent; border-radius: 13px; background: transparent; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; padding: 7px 28px 7px 9px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .14s ease; }
.demo-list button:hover { border-color: #c5d2c8; background: #edf2ec; transform: translateX(2px); }
.demo-list button:active { transform: translateX(2px) scale(.985); }
.demo-list button.is-selected { border-color: #8fb29f; background: var(--mint); }
.demo-list button > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #cdd4cd; border-radius: 10px; color: var(--forest); font-weight: 800; font-size: 12px; }
.demo-list button.is-selected > span:first-child { background: var(--forest); border-color: var(--forest); color: white; }
.demo-list b, .demo-list small { display: block; }
.demo-list b { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.demo-list small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.demo-list button > .demo-list__phase { width: auto; height: auto; padding: 3px 5px; border: 0; border-radius: 6px; color: var(--forest); background: rgba(23, 79, 59, .07); font-size: 8px; font-weight: 700; white-space: nowrap; }
.demo-list button.is-selected > .demo-list__phase { color: var(--forest-deep); background: rgba(255, 255, 255, .58); box-shadow: none; }
.demo-list__arrow { position: absolute; right: 8px; color: var(--muted); transition: transform .18s ease, color .18s ease; }
.demo-list button:hover .demo-list__arrow, .demo-list button.is-selected .demo-list__arrow { color: var(--forest); transform: translateX(2px); }
.reset-button { margin-top: 12px; width: 100%; flex: 0 0 auto; }
.adapter-note { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--forest); background: #eef3ed; border-radius: 12px; padding: 9px 11px; }
.adapter-note p { font-size: 10px; line-height: 1.4; }
.adapter-note b { font-size: 11px; }
.stage-note { align-self: end; margin-bottom: 40px; border-left: 2px solid var(--forest); padding: 9px 0 9px 15px; }
.stage-note span, .stage-note b { display: block; }
.stage-note span { color: var(--muted); font-size: 11px; }
.stage-note b { font-family: ui-monospace, monospace; font-size: 14px; margin: 4px 0 8px; }
.stage-note p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.stage-note__steps { display: grid; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.stage-note__steps li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.stage-note__steps li > span { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 18px; border-radius: 50%; background: #e3ede6; color: var(--forest); font-size: 9px; font-weight: 800; }

.phone-wrap { position: relative; }
.phone-frame { width: 414px; height: 868px; padding: 11px; border-radius: 55px; background: #121512; box-shadow: 0 32px 70px rgba(23, 31, 27, .28), inset 0 0 0 2px #41443f; }
.phone-screen { position: relative; width: 390px; height: 844px; overflow: hidden; background: var(--paper); border-radius: 44px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.status-bar { height: 34px; padding: 10px 20px 0; display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; color: #141914; position: relative; z-index: 80; }
.dynamic-island { width: 102px; height: 27px; position: absolute; left: 50%; top: 5px; transform: translateX(-50%); border-radius: 18px; background: #080a08; }
.screen-content { position: absolute; inset: 34px 0 13px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; background: var(--paper); }
.screen-content::-webkit-scrollbar { display: none; }
.screen-content.has-bottom-nav { bottom: 73px; }
.home-indicator { position: absolute; width: 124px; height: 4px; border-radius: 4px; left: 50%; bottom: 6px; transform: translateX(-50%); background: #17211c; z-index: 90; }
.bottom-nav { position: absolute; z-index: 70; left: 0; right: 0; bottom: 13px; height: 60px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.bottom-nav button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #78817b; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; cursor: pointer; }
.bottom-nav button span { font-size: 10px; font-weight: 700; }
.bottom-nav button.is-active { color: var(--forest); }
.bottom-nav button.is-active svg { background: var(--mint); width: 31px; height: 27px; padding: 5px; border-radius: 10px; }
.toast { position: absolute; z-index: 100; left: 24px; right: 24px; bottom: 84px; padding: 11px 14px; border-radius: 12px; color: white; background: rgba(23, 33, 28, .94); box-shadow: var(--shadow-small); font-size: 12px; line-height: 1.45; animation: toast-in .24s ease-out; }

.page { min-height: 100%; padding: 0 16px 22px; }
.hub-page { padding-bottom: 26px; }
.page-header { height: 54px; display: grid; grid-template-columns: 44px 1fr 62px; align-items: center; margin: 0 -4px 8px; }
.page-header__side { display: flex; align-items: center; }
.page-header__side--right { justify-content: flex-end; }
.page-header__title { text-align: center; line-height: 1.15; }
.page-header__title strong, .page-header__title span { display: block; }
.page-header__title strong { font-size: 16px; }
.page-header__title span { color: var(--forest); font-size: 9px; font-weight: 800; letter-spacing: .08em; margin-bottom: 3px; }
.icon-button, .header-actions button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.header-actions { display: flex; }
.header-actions button { width: 32px; }
.page-intro { margin: 12px 2px 20px; }
.page-intro h1, .onboarding h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.page-intro p, .lead { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.eyebrow { color: var(--forest); font-size: 11px; font-weight: 800; letter-spacing: .14em; }

.button { min-height: 44px; border: 1px solid transparent; border-radius: 13px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .15s ease, background .15s ease, border .15s ease; }
.button:active { transform: scale(.98); }
.button--primary { color: white; background: var(--forest); border-color: var(--forest); }
.button--primary:hover { background: var(--forest-deep); }
.button--secondary { color: var(--forest); background: white; border-color: #9db3a5; }
.button--ghost { color: var(--forest); background: transparent; }
.button--danger { color: var(--red); background: white; border-color: #dfaaa5; }
.page-primary { width: 100%; margin-top: 14px; }
.text-action, .text-link { border: 0; background: transparent; color: var(--forest); font-size: 12px; font-weight: 800; cursor: pointer; }
.text-action { width: 100%; padding: 14px; }
.text-link { min-height: 38px; }
.bottom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.bottom-actions .button { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-small); }
.card--clickable { cursor: pointer; }
.card--clickable:active { transform: scale(.995); }
.section-title { min-height: 40px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.section-title h2 { font-size: 15px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 800; }
.status-badge--green { color: #1a6b49; background: #e2f1e5; }
.status-badge--orange { color: #a75a08; background: var(--orange-soft); }
.status-badge--blue { color: #326d89; background: var(--blue-soft); }
.status-badge--red { color: #a23e37; background: var(--red-soft); }
.status-badge--gray { color: #6d756f; background: #eceeeb; }
.metric { min-width: 0; text-align: center; }
.metric strong, .metric span { display: block; }
.metric strong { font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.metric strong small { font-size: 9px; margin-left: 3px; color: var(--muted); font-weight: 700; }
.metric span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric-grid .metric + .metric { border-left: 1px solid var(--line); }

.auth-page { display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 24px 34px; background: #edf0e8; }
.auth-page::before { content: ""; position: absolute; inset: 0 0 48%; background: repeating-linear-gradient(105deg, transparent 0 18px, rgba(23,79,59,.08) 19px 20px); pointer-events: none; }
.auth-symbol { position: relative; width: 70px; height: 70px; display: grid; place-items: center; color: white; background: var(--forest); border-radius: 24px 24px 24px 8px; margin-bottom: 24px; }
.auth-page h1 { position: relative; margin: 8px 0 5px; font-size: 34px; line-height: 1.12; letter-spacing: -.05em; }
.auth-actions { display: grid; gap: 10px; margin: 30px 0 14px; }
.auth-consent { display: grid; gap: 5px; }
.check-row { color: var(--ink); font-size: 10px; display: flex; gap: 8px; align-items: flex-start; justify-content: flex-start; line-height: 1.45; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; accent-color: var(--forest); }
.consent-hint, .consent-error { padding-left: 24px; font-size: 9px; line-height: 1.45; }
.consent-hint { color: var(--muted); }
.consent-error { color: #8f332e; font-weight: 700; }
.progress-dots { display: flex; gap: 6px; justify-content: center; margin: 8px 0 22px; }
.progress-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d3d8d1; }
.progress-dots span.on { width: 22px; border-radius: 8px; background: var(--forest); }
.onboarding > h1 { margin: 0 2px; }
.onboarding > .lead { margin: 8px 2px 20px; }
.field { display: block; margin: 16px 0; }
.field > span { display: block; margin: 0 0 7px 2px; font-size: 12px; font-weight: 800; }
.profile-radio-field { min-width: 0; padding: 0; border: 0; }
.profile-radio-field legend { margin: 0 0 7px 2px; padding: 0; font-size: var(--type-card-title, 12px); font-weight: 800; line-height: 1.3; }
.profile-radio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.profile-radio-grid label { position: relative; min-width: 0; min-height: 42px; display: grid; place-items: center; padding: 7px 8px; color: #53635a; border: 1px solid #cfd5ce; border-radius: 11px; background: white; font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer; }
.profile-radio-grid label.selected { color: white; border-color: var(--forest); background: var(--forest); }
.profile-radio-grid input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.profile-radio-grid label > span { pointer-events: none; }
.profile-radio-grid label:has(input:focus-visible) { outline: 3px solid rgba(63, 127, 158, .35); outline-offset: 2px; }
.profile-radio-field > small { display: block; margin: 7px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.goal-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.goal-option-grid label { min-height: 48px; padding: 10px 12px; font-size: 12px; }
.field textarea, .field input, .unit-input { width: 100%; border: 1px solid #cfd5ce; border-radius: 14px; background: white; color: var(--ink); }
.field textarea { min-height: 86px; padding: 14px; resize: vertical; line-height: 1.55; }
.field > input { min-height: 48px; padding: 0 14px; }
.number-stepper { height: 78px; display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 17px; }
.number-stepper button { width: 42px; height: 42px; justify-self: center; border: 0; border-radius: 13px; background: var(--mint); color: var(--forest); }
.number-stepper button svg { width: 18px; }
.number-stepper b { text-align: center; font-size: 30px; font-variant-numeric: tabular-nums; }
.number-stepper small { font-size: 10px; color: var(--muted); margin-left: 6px; }
.training-day-field { min-width: 0; padding: 0; border: 0; }
.training-day-field legend { margin: 0 0 7px 2px; padding: 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.training-day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.training-day-grid button { min-width: 0; min-height: 50px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 5px 2px; color: #718078; border: 1px solid #d3dbd5; border-radius: 11px; background: white; }
.training-day-grid button span { font-size: 7px; }
.training-day-grid button b { font-size: 11px; }
.training-day-grid button.selected { color: white; border-color: var(--forest); background: var(--forest); box-shadow: 0 5px 11px rgba(8, 105, 61, .16); }
.training-day-field > small { display: block; margin: 7px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid--three { grid-template-columns: repeat(3, 1fr); }
.choice-grid--single { grid-template-columns: 1fr; }
.choice-grid button { min-height: 46px; border: 1px solid #d0d6cf; border-radius: 13px; background: white; font-size: 12px; cursor: pointer; }
.choice-grid button.selected { border-color: var(--forest); color: var(--forest); background: var(--mint); font-weight: 800; box-shadow: inset 0 0 0 1px var(--forest); }
.profile-question-section { margin: 22px 0; padding: 17px 15px; border: 1px solid rgba(38, 91, 66, .13); border-radius: 20px; background: rgba(255, 255, 255, .74); box-shadow: 0 10px 24px rgba(38, 76, 58, .05); }
.profile-question-section--safety { border-color: rgba(177, 116, 83, .22); background: linear-gradient(150deg, rgba(255, 249, 243, .9), rgba(255, 255, 255, .84)); }
.profile-question-section--feedback { border-color: rgba(47, 112, 128, .18); background: linear-gradient(150deg, rgba(244, 251, 250, .9), rgba(255, 255, 255, .84)); }
.profile-question-section__head { display: grid; gap: 4px; margin-bottom: 15px; }
.profile-question-section__head small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.profile-question-section__head h2 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.4; }
.profile-question-section > .field:first-of-type { margin-top: 0; }
.profile-question-section > .field:last-child { margin-bottom: 0; }
.profile-question-section .field > small { display: block; margin: 7px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.profile-multi-choice button { position: relative; padding: 9px 27px 9px 10px; text-align: left; line-height: 1.35; }
.profile-multi-choice button::after { content: ""; position: absolute; inset-inline-end: 10px; top: 50%; width: 13px; height: 13px; border: 1.5px solid #aab6af; border-radius: 4px; transform: translateY(-50%); }
.profile-multi-choice button.selected::after { border-color: var(--forest); background: var(--forest); box-shadow: inset 0 0 0 3px var(--mint); }
.conditional-field { margin: -3px 0 16px; padding: 13px; border-radius: 15px; background: rgba(231, 242, 234, .72); animation: conditional-in .2s ease-out; }
.conditional-field > b { display: block; margin-bottom: 9px; color: var(--ink); font-size: 11px; }
.conditional-field .compact-field { margin: 12px 0 0; }
.conditional-field--textarea { display: block; margin-top: -3px; }
.conditional-field--textarea > span { font-weight: 800; }
.conditional-field textarea { min-height: 72px; }
.training-profile-form > h1 { max-width: 280px; text-wrap: balance; }
.training-profile-form > .lead { max-width: 320px; color: #64756c; line-height: 1.65; text-wrap: pretty; }
.training-profile-form .profile-question-section,
.training-profile-form .profile-question-section--safety {
  margin: 24px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.training-profile-form .profile-question-section__head { gap: 5px; margin: 0 2px 12px; }
.training-profile-form .profile-question-section__head small {
  width: fit-content;
  padding: 4px 8px;
  color: #1d6d48;
  border-radius: 999px;
  background: #e9f3ec;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: normal;
}
.training-profile-form .profile-question-section__head h2 {
  font-size: 18px;
  line-height: 1.35;
  text-wrap: balance;
}
.training-profile-form .profile-question-section__head p {
  margin: 0;
  color: #74837b;
  font-size: 10px;
  line-height: 1.55;
  text-wrap: pretty;
}
.training-profile-form .question-block {
  min-width: 0;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid #dfe7e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(35, 73, 53, .05);
}
.training-profile-form .question-block > span,
.training-profile-form .question-block > legend {
  margin: 0 0 10px;
  color: #20352a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-wrap: pretty;
}
.training-profile-form .question-block > small { margin-top: 9px; font-size: 9px; }
.training-profile-form .question-block--body { gap: 10px; }
.training-profile-form .question-block--body .field { margin: 0; }
.training-profile-form .question-block--body .field > span { color: #66776e; font-size: 10px; }
.training-profile-form .question-block .choice-grid { gap: 9px; }
.training-profile-form .question-block .choice-grid button {
  position: relative;
  min-height: 48px;
  padding: 10px 36px 10px 13px;
  color: #485b50;
  border-color: #d7dfd9;
  border-radius: 12px;
  background: #fafcfa;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}
.training-profile-form .question-block .choice-grid:not(.profile-multi-choice) button::after {
  content: "";
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1.5px solid #b4c0b8;
  border-radius: 50%;
  transform: translateY(-50%);
}
.training-profile-form .question-block .choice-grid:not(.profile-multi-choice) button.selected {
  color: #0a6540;
  border-color: #0b7950;
  background: #eef7f1;
  box-shadow: inset 0 0 0 1px #0b7950;
}
.training-profile-form .question-block .choice-grid:not(.profile-multi-choice) button.selected::after {
  border: 4px solid #0b7950;
  background: #fff;
}
.training-profile-form .profile-radio-grid { gap: 9px; }
.training-profile-form .profile-radio-grid label {
  min-height: 48px;
  color: #485b50;
  border-color: #d7dfd9;
  border-radius: 12px;
  background: #fafcfa;
  font-size: 11px;
}
.training-profile-form .profile-radio-grid label.selected {
  color: #fff;
  border-color: #0b7950;
  background: #0b7950;
  box-shadow: 0 3px 8px rgba(11, 121, 80, .16);
}
.training-profile-form .unit-input {
  min-height: 54px;
  border-color: #d7dfd9;
  border-radius: 12px;
  background: #fafcfa;
}
.training-profile-form .conditional-field {
  margin: 10px 0;
  padding: 14px;
  border: 1px solid #d7e7dc;
  border-radius: 16px;
  background: #f1f7f3;
}
.training-profile-form .safety-banner { margin-top: 12px; }
.nutrition-profile-form .sweat-question-block { padding: 10px 10px 17px; }
.nutrition-profile-form .sweat-question-block .sweat-rating { margin: 0; }
.nutrition-profile-form .sweat-person { height: 92px; }
.nutrition-profile-form .conditional-field--textarea { margin: 10px 0; }
.unit-input { min-height: 52px; display: flex; align-items: center; padding: 0 14px; }
.unit-input input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.unit-input b { color: var(--muted); font-size: 12px; }
.hint-card, .scope-note, .channel-card, .capability-card { padding: 13px; display: flex; align-items: flex-start; gap: 10px; color: var(--forest); }
.hint-card p, .scope-note p, .channel-card p, .capability-card p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.sweat-rating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 16px -3px 20px; }
.sweat-rating button { position: relative; min-width: 0; border: 1.5px solid transparent; border-radius: 12px; background: rgba(255,255,255,.82); padding: 4px 3px 9px; cursor: pointer; }
.sweat-rating button.selected { border-color: #0b9860; background: white; box-shadow: 0 0 0 1px rgba(11,152,96,.14), 0 8px 18px rgba(30,104,69,.12); }
.sweat-person { height: 104px; overflow: hidden; border-radius: 9px; background: #f1f0ec; }
.sweat-person img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.sweat-rating span { display: block; margin-top: 7px; color: #26352d; font-size: 10px; font-weight: 650; white-space: nowrap; }
.sweat-rating button.selected span { color: #08794d; font-weight: 800; }
.sweat-selected { position: absolute; left: 50%; bottom: -9px; width: 19px; height: 19px; display: grid; place-items: center; color: white; border: 2px solid white; border-radius: 50%; background: #0b9860; transform: translateX(-50%); }
.safety-banner { display: flex; gap: 9px; align-items: flex-start; padding: 12px 13px; border: 1px solid #e0aaa6; border-radius: 14px; color: var(--red); background: var(--red-soft); }
.safety-banner b { font-size: 12px; }
.safety-banner p { margin-top: 2px; font-size: 10px; line-height: 1.5; }

.provider-list { display: grid; gap: 9px; }
.data-source-section { display: grid; gap: 9px; }
.data-source-section__head { display: flex; align-items: end; justify-content: space-between; padding: 0 2px; }
.data-source-section__head > div { display: grid; gap: 2px; }
.data-source-section__head b { color: var(--forest); font-size: 9px; letter-spacing: .08em; }
.data-source-section__head span { color: var(--ink); font-size: 15px; font-weight: 900; }
.provider-list--recommended .provider-row { border-color: rgba(29, 112, 67, .16); box-shadow: none; }
.provider-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px; }
.provider-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--forest); background: var(--mint); }
.provider-row b, .provider-row span { display: block; }
.provider-row b { font-size: 13px; }
.provider-row span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.provider-row .button { min-height: 36px; padding: 7px 12px; }
.direct-device-disclosure { margin-top: 12px; border: 1px solid #dbe4dd; border-radius: 14px; background: #f8faf8; }
.direct-device-disclosure summary { display: grid; gap: 3px; padding: 11px 12px; cursor: pointer; list-style: none; }
.direct-device-disclosure summary::-webkit-details-marker { display: none; }
.direct-device-disclosure summary span { display: flex; align-items: center; gap: 6px; color: #40564a; font-size: 10px; font-weight: 800; }
.direct-device-disclosure summary svg { width: 15px; color: #557064; }
.direct-device-disclosure summary small { color: #819088; font-size: 8px; }
.direct-device-disclosure[open] summary { border-bottom: 1px solid #e1e7e2; }
.provider-list--direct { padding: 9px; }
.provider-list--direct .provider-row { box-shadow: none; }
.direct-device-disclosure > p { margin: 0; padding: 0 12px 11px; color: #7b8a82; font-size: 8px; line-height: 1.5; }
.sync-card { margin-top: 12px; padding: 13px; display: flex; justify-content: space-between; align-items: center; }
.sync-card b, .sync-card span { display: block; }
.sync-card span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.sync-card .button { min-height: 38px; }
.device-optional-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  color: #315545;
  border: 1px solid rgba(30, 105, 67, .1);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(238, 247, 232, .92), rgba(250, 252, 247, .96));
}
.device-optional-note > svg {
  width: 18px;
  color: #2b7c53;
}
.device-optional-note > span { display: grid; gap: 2px; }
.device-optional-note b { font-size: 10px; }
.device-optional-note small { color: #6f8077; font-size: 8px; }
.device-page-actions {
  display: grid;
  justify-items: stretch;
  gap: 7px;
  margin-top: 14px;
  text-align: center;
}
.device-page-actions .page-primary { margin-top: 0; }
.device-page-actions .button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  gap: 8px;
}
.device-page-actions .button > svg { width: 16px; }
.device-page-actions > small { color: #7b8981; font-size: 8px; line-height: 1.45; }
.device-page-actions.is-connected { grid-template-columns: 1fr; }
.device-continue-without-sync {
  color: #214c37;
  border-color: rgba(31, 101, 64, .3);
  background: rgba(255, 255, 252, .88);
  box-shadow: 0 7px 20px rgba(24, 69, 46, .05);
}
.device-continue-without-sync:hover { background: #f4f8f1; }
.fueling-issue-picker { display: grid; gap: 13px; }
.fueling-issue-picker > div { display: grid; gap: 7px; }
.fueling-issue-picker > div + div {
  padding-top: 12px;
  border-top: 1px solid rgba(24, 77, 51, .09);
}
.provider-auth-backdrop {
  inset: 0;
  align-items: flex-end;
  padding: 10px;
  background: rgba(13, 32, 22, .54);
  backdrop-filter: blur(5px);
}
.provider-auth-dialog {
  position: relative;
  max-height: calc(100% - 8px);
  overflow-y: auto;
  padding: 18px 16px 15px;
  border: 1px solid rgba(28, 91, 58, .12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,253,.99), rgba(244,249,243,.99));
  box-shadow: 0 24px 52px rgba(12, 43, 27, .28);
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.provider-auth-dialog__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}
.provider-auth-dialog__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #176c47;
  border-radius: 14px;
  background: #e6f0e7;
}
.provider-auth-dialog__icon svg { width: 22px; height: 22px; }
.provider-auth-dialog__head > div { display: grid; gap: 2px; min-width: 0; }
.provider-auth-dialog__head small { color: #638071; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.provider-auth-dialog__head h2 { margin: 0; color: #173326; font-size: 17px; line-height: 1.25; }
.provider-auth-dialog__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  color: #607168;
  background: #edf2ed;
  font-size: 22px;
  cursor: pointer;
}
.provider-auth-dialog__close:disabled { opacity: .45; cursor: default; }
.provider-auth-description { margin: 13px 1px 0; color: #65776d; font-size: 10px; line-height: 1.65; }
.provider-auth-scopes {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(33, 101, 62, .1);
  border-radius: 14px;
  background: rgba(235, 244, 232, .72);
}
.provider-auth-scopes > span { display: flex; align-items: center; gap: 6px; color: #32684b; font-size: 9px; font-weight: 850; }
.provider-auth-scopes > span svg { width: 14px; }
.provider-auth-scopes > div { display: flex; flex-wrap: wrap; gap: 6px; }
.provider-auth-scopes b { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; color: #4c6658; border-radius: 8px; background: rgba(255,255,255,.8); font-size: 8px; }
.provider-auth-scopes b svg { width: 10px; color: #248055; }
.provider-auth-choice { display: grid; gap: 9px; margin-top: 14px; }
.provider-auth-choice .button, .provider-auth-form .button { width: 100%; min-height: 45px; }
.provider-auth-choice .button svg, .provider-auth-form .button svg { width: 16px; }
.provider-auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: #87948d; font-size: 8px; }
.provider-auth-divider::before, .provider-auth-divider::after { content: ""; height: 1px; background: rgba(30, 78, 52, .1); }
.provider-auth-form { display: grid; gap: 10px; margin-top: 12px; }
.provider-auth-back { display: inline-flex; align-items: center; gap: 2px; width: fit-content; padding: 2px 0; border: 0; color: #397256; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.provider-auth-back svg { width: 14px; }
.provider-auth-form label { display: grid; gap: 5px; }
.provider-auth-form label > span { color: #466052; font-size: 9px; font-weight: 800; }
.provider-auth-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid rgba(37, 93, 61, .16); border-radius: 12px; color: #1f3529; background: rgba(255,255,255,.92); font: inherit; font-size: 11px; outline: 0; }
.provider-auth-form input::placeholder { color: #9aa59f; }
.provider-auth-form input:focus { border-color: #3c805d; box-shadow: 0 0 0 3px rgba(60,128,93,.12); }
.provider-auth-error { min-height: 16px; margin: 7px 2px 0; color: #a44734; font-size: 8px; line-height: 1.45; }
.provider-auth-privacy { display: flex; align-items: flex-start; gap: 7px; padding-top: 9px; border-top: 1px solid rgba(33, 76, 51, .08); color: #7c8982; }
.provider-auth-privacy svg { flex: 0 0 auto; width: 13px; color: #4b7a60; }
.provider-auth-privacy span { font-size: 8px; line-height: 1.5; }
.provider-auth-success { display: grid; justify-items: center; gap: 6px; padding: 30px 14px 22px; text-align: center; }
.provider-auth-success svg { width: 46px; height: 46px; color: #198052; }
.provider-auth-success b { color: #173b29; font-size: 16px; }
.provider-auth-success p { margin: 0; color: #718078; font-size: 9px; }
.permission-row { padding: 14px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; margin-bottom: 9px; }
.permission-row b, .permission-row span { display: block; }
.permission-row b { font-size: 13px; }
.permission-row span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.switch { width: 43px; height: 25px; border: 0; border-radius: 20px; padding: 3px; background: #cfd4cf; cursor: pointer; }
.switch span { display: block; width: 19px; height: 19px; border-radius: 50%; background: white; transition: transform .2s ease; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.switch.on { background: var(--forest); }
.switch.on span { transform: translateX(18px); }

.screen-content:has(> .home-page) { overflow: hidden; }
.home-page { position: relative; height: 100%; min-height: 0; padding-bottom: 6px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.home-page .page-header { position: sticky; top: 0; z-index: 40; background: rgba(244,245,240,.96); margin-bottom: 0; }
.sync-line { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 9px; padding: 4px 0 9px; }
.dot-live, .dot-stale { width: 6px; height: 6px; border-radius: 50%; }
.dot-live { background: #38a16b; box-shadow: 0 0 0 4px rgba(56,161,107,.1); }
.dot-stale { background: var(--orange); }
.conversation-timeline { position: relative; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 2px 0 20px; }
.conversation-timeline::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 24px; width: 1px; background: #c7d5cc; }
.message-row { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 9px; margin-bottom: 12px; }
.message-row--user { grid-template-columns: 1fr 36px; }
.message-row--user .message-avatar { grid-column: 2; grid-row: 1; background: #29362f; }
.message-row--user .message-stack { grid-column: 1; grid-row: 1; align-items: flex-end; }
.message-row--user .message-bubble { color: white; background: var(--forest); border-radius: 16px 5px 16px 16px; }
.message-row--user .message-stack { width: 100%; min-width: 0; }
.message-row--user .message-bubble { display: inline-block; width: auto; min-width: min(160px, 100%); max-width: min(94%, 280px); overflow-wrap: break-word; word-break: normal; white-space: normal; text-align: left; }
.home-page .message-row--user { grid-template-columns: minmax(0, 1fr) 38px; width: 100%; }
.home-page .message-row--user .message-stack { width: 100%; min-width: 0; justify-self: stretch; }
.home-page .message-row--user .message-bubble { min-width: 160px; max-width: 280px; }
.message-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--forest); border: 3px solid var(--paper); border-radius: 50%; font-size: 10px; font-weight: 800; z-index: 1; }
.message-avatar--coach { position: relative; overflow: hidden; padding: 0; background: #fb4516; border-width: 2px; border-radius: 10px; }
.message-avatar--coach img { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; max-width: none; display: block; object-fit: cover; transform: translate(-50%, -50%); }
.message-stack { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.message-meta { color: var(--muted); font-size: 9px; margin: 0 6px 4px; }
.message-bubble { max-width: 94%; padding: 10px 12px; border-radius: 5px 16px 16px 16px; color: #2f3933; background: white; border: 1px solid var(--line); font-size: 12px; line-height: 1.55; box-shadow: var(--shadow-small); }
.timeline-rail { position: absolute; left: -34px; top: 38px; width: 20px; height: 20px; display: grid; place-items: center; border: 3px solid var(--paper); border-radius: 50%; color: white; background: var(--forest); z-index: 2; }
.timeline-rail svg { width: 11px; }
.timeline-rail--orange { background: var(--orange); }
.timeline-rail--blue { background: var(--blue); }
.agent-card { width: 100%; margin-top: 7px; padding: 12px; box-shadow: none; }
.agent-card__head { min-height: 25px; display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.agent-card__head > span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.agent-card__head > span svg { width: 16px; color: var(--forest); }
.agent-card__head > b { font-size: 12px; }
.agent-card .metric-grid { padding: 12px 0; }
.agent-card .button { width: 100%; min-height: 37px; margin-top: 9px; padding: 7px 10px; }
.ai-summary { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ai-summary__icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--forest); background: var(--mint); }
.ai-summary__copy { min-width: 0; }
.ai-summary__copy b { display: block; font-size: 10px; }
.ai-summary__copy p { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.go-see { min-height: 32px; border: 1px solid #a8baad; border-radius: 10px; background: white; color: var(--forest); display: flex; align-items: center; padding: 5px 8px; font-size: 10px; font-weight: 800; cursor: pointer; }
.training-brief { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 4px; }
.training-brief > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.training-brief strong, .training-brief span { display: block; }
.training-brief strong { font-size: 21px; }
.training-brief strong small { font-size: 9px; color: var(--muted); }
.training-brief span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.dual-actions { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7px; }
.fuel-strip { display: flex; gap: 6px; padding: 12px 0 3px; }
.fuel-strip span { flex: 1; display: flex; align-items: center; gap: 5px; padding: 8px; border-radius: 10px; color: #835015; background: var(--orange-soft); font-size: 9px; font-weight: 700; }
.biomarker-card p { margin: 10px 0; font-size: 11px; line-height: 1.5; }
.biomarker-card .safety-banner { margin-bottom: 4px; }
.quick-replies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0; padding: 2px 0 4px; overflow: hidden; }
.quick-replies button { min-width: 0; width: 100%; min-height: 34px; border: 1px solid #cad2cb; border-radius: 12px; background: white; color: #5f6a63; padding: 6px 7px; font-size: 9px; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.agent-question-suggestions { display: grid; gap: 7px; margin-top: 4px; }
.agent-question-suggestions__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agent-question-suggestions__head b, .agent-question-suggestions__head span { display: block; }
.agent-question-suggestions__head b { font-size: 10px; color: var(--ink); }
.agent-question-suggestions__head span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.agent-question-suggestions__head button { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: rgba(255,255,255,.72); cursor: pointer; }
.agent-question-suggestions__head button:disabled { cursor: wait; opacity: .55; }
.quick-replies--loading span { width: 100%; height: 34px; border-radius: 12px; background: linear-gradient(90deg, #e8eee9 25%, #f6f8f4 50%, #e8eee9 75%); background-size: 200% 100%; animation: skeleton-shift 1.2s infinite linear; }
.quick-replies--loading span:last-child { width: auto; height: auto; align-self: center; color: var(--muted); background: none; animation: none; font-size: 8px; }
@keyframes skeleton-shift { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .quick-replies--loading span { animation: none; } }
.composer { position: absolute; z-index: 50; left: 12px; right: 12px; bottom: 5px; height: 54px; display: grid; grid-template-columns: 1fr 44px; gap: 7px; padding: 5px; border: 1px solid #cfd5ce; border-radius: 17px; background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(37,52,43,.08); }
.composer input { min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 11px; font-size: 11px; }
.composer button { width: 44px; height: 44px; border: 0; border-radius: 14px; color: white; background: var(--forest); display: grid; place-items: center; cursor: pointer; }
.home-page .composer { position: static; left: auto; right: auto; bottom: auto; margin: 0 -4px; width: calc(100% + 8px); }
.offline-banner, .error-inline { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 12px; color: #7b4a13; background: var(--orange-soft); font-size: 10px; margin-bottom: 10px; }
.offline-banner button { margin-left: auto; border: 0; color: #7b4a13; background: transparent; font-weight: 800; }
.error-inline { color: var(--red); background: var(--red-soft); }
.error-inline div { flex: 1; }
.error-inline p { font-size: 9px; margin-top: 2px; }
.error-inline button { border: 0; background: transparent; color: var(--red); font-weight: 800; }

.recovery-hero { min-height: 140px; padding: 22px; border-radius: 24px; color: white; background: var(--forest); position: relative; overflow: hidden; }
.recovery-hero::after { content: ""; position: absolute; width: 130px; height: 130px; right: -34px; top: -40px; border: 24px solid rgba(255,255,255,.08); border-radius: 50%; }
.recovery-hero span, .recovery-hero strong { display: block; }
.recovery-hero span { font-size: 11px; opacity: .8; }
.recovery-hero strong { font-size: 34px; margin: 8px 0 4px; }
.recovery-hero p { font-size: 11px; opacity: .82; }
.metric-panel { padding: 15px; margin-top: 10px; }
.data-source { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.data-source button { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 9px; background: #edf0ec; }
.score-field { padding: 14px; }
.score-field__head { display: flex; justify-content: space-between; align-items: flex-end; }
.score-field__head b { font-size: 12px; }
.score-field__head strong { font-size: 27px; color: var(--forest); font-variant-numeric: tabular-nums; }
.score-field__head strong span { color: var(--muted); font-size: 10px; margin-left: 2px; }
.score-field input[type="range"] { width: 100%; accent-color: var(--forest); margin: 12px 0 5px; }
.score-field p { color: var(--muted); font-size: 8px; line-height: 1.5; }
.reminder-presets { grid-template-columns: repeat(3, 1fr); }
.channel-card { margin-top: 16px; }
.channel-card b { font-size: 12px; }

.summary-list { padding: 4px 14px; }
.summary-row { min-height: 58px; display: grid; grid-template-columns: 34px 76px 1fr; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row > div { color: var(--forest); }
.summary-row > div svg { width: 20px; }
.summary-row span { color: var(--muted); font-size: 10px; }
.summary-row b { text-align: right; font-size: 11px; }
.agent-source-card, .context-card { margin-top: 12px; padding: 13px; display: flex; align-items: center; gap: 10px; color: var(--forest); }
.agent-source-card b, .context-card b { display: block; font-size: 12px; }
.agent-source-card p, .context-card p { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.version-banner { padding: 14px 16px; border-left: 4px solid var(--forest); border-radius: 0 16px 16px 0; background: var(--mint); margin-bottom: 10px; }
.version-banner span, .version-banner b, .version-banner small { display: block; }
.version-banner span { color: var(--forest); font-size: 9px; font-weight: 800; }
.version-banner b { margin: 4px 0 3px; }
.version-banner small { color: var(--muted); }
.risk-note { margin-top: 10px; padding: 13px; display: flex; gap: 9px; color: var(--orange); background: var(--orange-soft); border-color: #efc58e; }
.risk-note b { color: #7b4a13; font-size: 11px; }
.risk-note p { color: #8a6845; font-size: 9px; margin-top: 3px; }

.segmented { height: 42px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b5c3b9; border-radius: 13px; overflow: hidden; background: white; margin-bottom: 11px; }
.segmented button { border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.segmented button.active { color: white; background: var(--forest); }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 5px 0 11px; border-bottom: 1px solid var(--line); }
.date-strip button { min-width: 0; min-height: 47px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.date-strip span, .date-strip b { display: block; }
.date-strip span { color: var(--muted); font-size: 8px; }
.date-strip b { margin-top: 5px; font-size: 12px; }
.date-strip button.is-selected { color: white; background: var(--forest); }
.date-strip button.is-selected span { color: rgba(255,255,255,.72); }
.period-strip { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px 2px; color: var(--muted); font-size: 9px; }
.period-strip b { color: var(--forest); }
.plan-list { display: grid; gap: 9px; }
.plan-card { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 10px; box-shadow: var(--shadow-small); }
.plan-card__icon, .record-card__icon { width: 50px; min-height: 64px; display: grid; place-items: center; color: white; border-radius: 14px; background: var(--forest); }
.plan-card__body { min-width: 0; }
.plan-card__body > div:first-child { display: flex; justify-content: space-between; gap: 5px; }
.plan-card__body b { font-size: 13px; }
.plan-card__body > span { display: block; color: var(--muted); font-size: 9px; margin: 3px 0 7px; }
.plan-card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.plan-card__metrics strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.plan-card__metrics strong + strong { border-left: 1px solid var(--line); padding-left: 8px; }
.plan-card__metrics small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.change-line { display: flex; align-items: center; gap: 4px; color: var(--blue); font-size: 8px; margin-top: 6px; }
.plan-with-summary { position: relative; }
.plan-ai-button { margin: 6px 4px 0 auto; min-height: 30px; border: 1px solid #a6b8aa; border-radius: 10px; background: white; color: var(--forest); display: flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 9px; font-weight: 800; cursor: pointer; }
.record-card { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; padding: 10px; }
.record-card b, .record-card span, .record-card p { display: block; }
.record-card b { font-size: 12px; }
.record-card span { color: var(--muted); font-size: 8px; margin: 3px 0; }
.record-card p { font-size: 9px; }
.comparison-entry { margin-top: 11px; padding: 14px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; color: var(--forest); }
.comparison-entry b, .comparison-entry span { display: block; }
.comparison-entry b { font-size: 12px; }
.comparison-entry span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.plan-detail-hero { color: white; background: var(--forest); margin: 0 -16px 13px; padding: 18px 20px 20px; }
.plan-detail-hero > span { font-size: 10px; opacity: .72; }
.plan-detail-hero h1 { font-size: 27px; margin: 8px 0 15px; }
.plan-detail-hero > div { display: grid; grid-template-columns: repeat(3, 1fr); }
.plan-detail-hero .metric span, .plan-detail-hero .metric small { color: rgba(255,255,255,.7); }
.plan-detail-hero .metric + .metric { border-left: 1px solid rgba(255,255,255,.2); }
.structure-list { padding: 6px 13px; }
.structure-list > div { min-height: 46px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.structure-list > div:last-child { border-bottom: 0; }
.structure-list span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--forest); background: var(--mint); font-size: 10px; font-weight: 800; }
.structure-list p { font-size: 11px; }
.gear-row, .layer-note { margin-top: 10px; padding: 13px; display: flex; gap: 10px; color: var(--forest); }
.gear-row b { font-size: 11px; }
.gear-row p, .layer-note p { color: var(--muted); font-size: 9px; margin-top: 3px; line-height: 1.5; }
.proposal { margin-top: 12px; }
.proposal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.proposal__head span { font-size: 13px; font-weight: 800; }
.proposal > p { color: var(--muted); font-size: 10px; line-height: 1.55; margin-bottom: 8px; }
.diff-row { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.diff-row b, .diff-row span { display: block; }
.diff-row b { font-size: 11px; }
.diff-row span { color: var(--muted); font-size: 8px; margin-top: 3px; }
.diff-row > div:last-child { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.diff-row del { color: var(--muted); }
.diff-row strong { color: var(--forest); }
.proposal__scope { display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 11px; color: var(--forest); background: var(--mint); font-size: 9px; }
.spin { animation: spin .8s linear infinite; }
.conflict-card { margin-top: 11px; padding: 14px; }
.conflict-card span, .conflict-card b, .conflict-card p { display: block; }
.conflict-card span { color: var(--muted); font-size: 9px; }
.conflict-card b { margin: 7px 0 3px; font-size: 14px; }
.conflict-card p { color: var(--muted); font-size: 9px; margin-bottom: 10px; }
.conflict-card .button { width: 100%; }

.ready-hero { padding: 18px; color: white; background: var(--forest); border-radius: 22px; }
.ready-hero span, .ready-hero p { font-size: 10px; opacity: .75; }
.ready-hero h1 { font-size: 26px; margin: 6px 0 5px; }
.readiness-list { display: grid; gap: 8px; margin-top: 10px; }
.status-row { min-height: 57px; padding: 10px 12px; display: grid; grid-template-columns: 30px 1fr 23px auto; gap: 7px; align-items: center; box-shadow: none; }
.status-row > div { color: var(--forest); }
.status-row b, .status-row small { display: block; }
.status-row b { font-size: 11px; }
.status-row small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.status-row .ok { color: #2d8a5c; }
.status-row .warn { color: var(--orange); }
.fuel-ready { margin-top: 9px; padding: 13px; }
.fuel-ready b { font-size: 11px; }
.fuel-ready div { display: flex; gap: 6px; margin-top: 7px; }
.fuel-ready span { padding: 6px 8px; border-radius: 9px; color: #855416; background: var(--orange-soft); font-size: 9px; }
.blocking-note { color: var(--red); text-align: center; font-size: 9px; margin-top: 9px; }
.live-page { min-height: 100%; padding: 16px; color: white; background: #131713; }
.live-head { display: flex; justify-content: space-between; align-items: center; }
.live-head > span { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.live-timer { text-align: center; padding: 27px 0 18px; }
.live-timer span, .live-timer strong { display: block; }
.live-timer span { color: rgba(255,255,255,.55); font-size: 9px; }
.live-timer strong { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 46px; letter-spacing: -.05em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.live-grid .metric { padding: 14px 0; }
.live-grid .metric:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.12); }
.live-grid .metric:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
.live-grid .metric span, .live-grid .metric small { color: rgba(255,255,255,.55); }
.step-card { margin-top: 15px; padding: 14px; color: var(--ink); box-shadow: none; }
.step-card > span { color: var(--muted); font-size: 9px; }
.step-card b { display: block; margin: 3px 0 9px; }
.progress-bar { height: 6px; overflow: hidden; border-radius: 8px; background: #dfe3dd; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--forest); transition: width .4s ease; }
.step-card p { color: var(--muted); font-size: 9px; margin-top: 8px; }
.live-status, .pending-reminder { margin-top: 10px; width: 100%; min-height: 38px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(167,228,189,.4); border-radius: 12px; padding: 8px 11px; color: var(--mint-bright); background: rgba(23,79,59,.34); font-size: 9px; }
.pending-reminder { cursor: pointer; }
.live-controls { position: absolute; left: 16px; right: 16px; bottom: 22px; display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.live-controls > button:first-child { border: 0; border-radius: 18px; color: white; background: var(--forest); display: grid; place-items: center; }
.live-controls .button--danger { color: white; background: #8d3e39; border-color: #8d3e39; }
.hold-finish-button { position: relative; min-height: 58px; overflow: hidden; padding: 0 14px; color: #fff; border: 1px solid #8d3e39; border-radius: 18px; background: #8d3e39; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-finish-button__track { position: absolute; inset: auto 0 0; height: 5px; overflow: hidden; background: rgba(255,255,255,.2); }
.hold-finish-button__track i { position: absolute; inset: 0; background: #ffd9bc; transform-origin: left center; will-change: transform; }
.hold-finish-button__content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; }
.hold-finish-button__content b { font-size: 11px; }
.hold-finish-button__content small { color: rgba(255,255,255,.75); font-size: 8px; }
.hold-finish-button.is-holding { background: #75342f; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.hold-finish-button:disabled { cursor: wait; opacity: .78; }
.hold-finish-button:focus-visible { outline: 3px solid rgba(255, 203, 164, .5); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.fuel-overlay { position: absolute; z-index: 90; inset: auto 12px 14px; padding: 18px; border-radius: 24px; color: var(--ink); background: white; box-shadow: 0 26px 60px rgba(0,0,0,.42); animation: sheet-up .28s cubic-bezier(.2,.8,.2,1); }
.fuel-overlay__pulse { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #9a5b0e; background: var(--orange-soft); margin-bottom: 10px; }
.fuel-overlay > span { color: var(--muted); font-size: 9px; }
.fuel-overlay h2 { font-size: 24px; margin: 4px 0 10px; }
.fuel-overlay .card { padding: 10px; display: grid; grid-template-columns: 45px 1fr; gap: 10px; box-shadow: none; }
.fuel-overlay .button { width: 100%; margin-top: 8px; }
.product-token { width: 44px; height: 52px; display: grid; place-items: center; color: #a85c0c; border-radius: 12px; background: var(--orange-soft); }
.fuel-overlay .card b { font-size: 12px; }
.fuel-overlay .card p { font-size: 10px; margin: 3px 0; }
.fuel-overlay .card small { color: var(--muted); font-size: 8px; }

.summary-hero { text-align: center; padding: 16px 0 6px; }
.summary-hero > svg { width: 35px; height: 35px; color: #2c8b5b; }
.summary-hero span, .summary-hero h1, .summary-hero p { display: block; }
.summary-hero span { color: var(--forest); font-size: 10px; font-weight: 800; margin: 5px 0; }
.summary-hero h1 { font-size: 34px; }
.summary-hero p { color: var(--muted); font-size: 10px; }
.comparison-box { margin-top: 10px; padding: 13px; }
.comparison-box > b { display: block; font-size: 11px; margin-bottom: 6px; }
.comparison-box > div { display: flex; justify-content: space-between; min-height: 29px; align-items: center; border-top: 1px solid var(--line); font-size: 9px; }
.comparison-box strong { color: var(--forest); }
.form-note, .success-line { display: flex; align-items: center; gap: 6px; padding: 9px 0; color: var(--forest); font-size: 10px; }
.feedback-page > .card { margin-bottom: 9px; box-shadow: none; }
.choice-field { padding: 13px; margin-bottom: 9px; box-shadow: none; }
.choice-field > b { display: block; font-size: 11px; margin-bottom: 9px; }
.choice-field > div { display: flex; gap: 5px; }
.choice-field button { flex: 1; min-width: 0; min-height: 34px; border: 1px solid transparent; border-radius: 10px; background: #eef0ed; font-size: 9px; cursor: pointer; }
.choice-field button.selected { color: white; background: var(--forest); }
.analysis-plan, .analysis-copy, .adjustment-card { padding: 14px; margin-top: 9px; }
.analysis-plan > b { display: block; font-size: 11px; margin-bottom: 12px; }
.analysis-copy > span { display: flex; align-items: center; gap: 5px; color: var(--forest); font-size: 10px; font-weight: 800; }
.analysis-copy h2 { font-size: 18px; margin: 9px 0 6px; }
.analysis-copy p, .adjustment-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.adjustment-card > b { font-size: 12px; }
.adjustment-card > p { margin-top: 5px; }

.nutrition-hero { min-height: 130px; display: flex; justify-content: space-between; align-items: center; padding: 20px; border-radius: 22px; color: white; background: var(--forest); }
.nutrition-status-card { padding: 6px 14px; }
.nutrition-status-row { min-height: 67px; display: grid; grid-template-columns: 28px 1fr 38px; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }
.nutrition-status-row:last-child { border-bottom: 0; }
.nutrition-status-row > svg { color: var(--forest); }
.nutrition-status-row div > span, .nutrition-status-row div > b { display: block; }
.nutrition-status-row div > span { color: var(--muted); font-size: 9px; }
.nutrition-status-row div > b { margin: 3px 0 6px; font-size: 11px; }
.nutrition-status-row > strong { text-align: right; color: var(--forest); font-size: 11px; }
.nutrition-status-row .progress-bar { height: 5px; }
.nutrition-hero span, .nutrition-hero strong, .nutrition-hero p { display: block; }
.nutrition-hero span { font-size: 9px; opacity: .72; }
.nutrition-hero strong { font-size: 34px; margin: 5px 0; }
.nutrition-hero p { font-size: 10px; opacity: .72; }
.ring { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: white; background: conic-gradient(var(--mint-bright) var(--progress), rgba(255,255,255,.15) 0); position: relative; }
.ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--forest); }
.ring svg { position: relative; z-index: 1; }
.quick-record { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.quick-record button { min-height: 72px; border: 1px solid var(--line); border-radius: 16px; background: white; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: 1fr 1fr; align-items: center; padding: 10px; text-align: left; box-shadow: var(--shadow-small); }
.quick-record svg { grid-row: 1 / 3; color: var(--forest); }
.quick-record span { color: var(--muted); font-size: 9px; }
.quick-record b { font-size: 13px; }
.nutrition-plan-entry { padding: 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; color: white; background: #24352d; border-color: #24352d; }
.nutrition-plan-entry span { font-size: 9px; opacity: .7; }
.nutrition-plan-entry h2 { font-size: 18px; margin: 5px 0; }
.nutrition-plan-entry p { font-size: 9px; opacity: .7; }
.nutrition-entry-actions { display: flex; gap: 7px; margin-top: 11px; }
.nutrition-entry-actions .button { min-height: 33px; padding: 6px 10px; }
.meal-summary { padding: 4px 13px; }
.meal-summary > div { min-height: 50px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.meal-summary > div:last-child { border-bottom: 0; }
.meal-summary svg { width: 17px; color: var(--forest); }
.meal-summary span { font-size: 10px; }
.meal-summary b { font-size: 10px; }
.meal-summary button { border: 0; color: var(--forest); background: transparent; font-weight: 800; }
.agent-proof { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 11px; color: var(--forest); background: var(--mint); font-size: 10px; font-weight: 800; }
.agent-proof span { color: #587263; font-weight: 500; margin-left: auto; }
.basis-card { margin-top: 9px; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: none; }
.basis-card > div + div { border-left: 1px solid var(--line); padding-left: 8px; }
.basis-card span, .basis-card b { display: block; }
.basis-card span { color: var(--muted); font-size: 8px; }
.basis-card b { font-size: 9px; margin-top: 4px; }
.nutrition-timeline { position: relative; margin-top: 12px; padding-left: 36px; }
.nutrition-timeline::before { content: ""; position: absolute; left: 16px; top: 22px; bottom: 28px; width: 2px; background: #cfd8d0; }
.nutrition-node { position: relative; min-height: 108px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 15px; background: white; margin-bottom: 9px; box-shadow: var(--shadow-small); }
.node-dot { position: absolute; left: -39px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 5px solid var(--paper); border-radius: 50%; color: white; z-index: 1; }
.node-dot svg { width: 14px; }
.node-dot--green { background: var(--forest); }
.node-dot--orange { background: var(--orange); }
.nutrition-node span { color: var(--muted); font-size: 8px; }
.nutrition-node h3 { font-size: 13px; margin: 4px 0; }
.nutrition-node p { color: #805016; font-size: 9px; }
.node-actions { display: flex; gap: 6px; margin-top: 8px; }
.node-actions button { min-height: 29px; border: 1px solid #c9d1ca; border-radius: 9px; background: white; color: var(--forest); padding: 4px 8px; font-size: 8px; font-weight: 800; }
.node-actions button.done { border-color: transparent; color: #2c8055; background: #e3f2e7; display: flex; align-items: center; gap: 3px; }
.node-actions button svg { width: 12px; }
.nutrition-plan-page { padding-inline: 14px; background: linear-gradient(180deg, #edf4ec 0, #f8f8f2 180px, var(--paper) 100%); }
.nutrition-plan-page .page-header { margin-inline: -2px; }
.nutrition-replace-hint { display: flex; align-items: center; gap: 6px; margin: 8px -2px 0; padding: 7px 9px; color: #597067; border: 1px solid rgba(20, 73, 48, .1); border-radius: 10px; background: rgba(255,255,255,.74); font-size: 9px; }
.nutrition-replace-hint span { flex: 1; }
.nutrition-product-timeline { padding-left: 0; }
.nutrition-product-timeline::before { left: 18px; top: 18px; bottom: 22px; width: 1px; background: #92aa9b; }
.nutrition-node-v2 { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 8px; min-height: 155px; padding-left: 0; margin-bottom: 9px; }
.nutrition-node-v2::before { content: ""; position: absolute; z-index: 2; left: 13px; top: 11px; width: 11px; height: 11px; border: 3px solid var(--paper); border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 1px rgba(18,76,49,.2); }
.nutrition-node-v2--orange::before { background: var(--orange); }
.nutrition-node-rail { padding: 8px 3px 8px 31px; }
.nutrition-node-rail span, .nutrition-node-rail small, .nutrition-node-rail b { display: block; }
.nutrition-node-rail span { width: fit-content; padding: 3px 7px; color: white; border-radius: 9px; background: var(--forest); font-size: 9px; font-weight: 800; }
.nutrition-node-v2--orange .nutrition-node-rail span { background: var(--orange); }
.nutrition-node-rail small { margin-top: 8px; color: #69796f; font-size: 8px; line-height: 1.4; }
.nutrition-node-rail b { margin-top: 5px; color: #24352d; font-size: 10px; line-height: 1.45; }
.nutrition-node-v2--orange .nutrition-node-rail b { color: #d17a00; }
.nutrition-product-wrap { display: grid; grid-template-rows: 1fr auto; gap: 5px; }
.nutrition-product-card { position: relative; width: 100%; min-height: 125px; display: grid; grid-template-columns: 57px 1fr 12px; align-items: center; gap: 8px; padding: 9px 8px; color: inherit; border: 1px solid rgba(34,85,59,.11); border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 5px 14px rgba(30,67,47,.08); text-align: left; cursor: pointer; }
.nutrition-product-card:disabled { cursor: default; opacity: .82; }
.nutrition-product-card > img { width: 55px; height: 98px; object-fit: contain; mix-blend-mode: multiply; }
.nutrition-product-card > svg { width: 13px; color: #789087; }
.nutrition-product-meta dl { display: grid; gap: 4px; margin: 0; }
.nutrition-product-meta dl > div { display: grid; grid-template-columns: 30px 1fr; gap: 5px; align-items: start; }
.nutrition-product-meta dt { color: #89968f; font-size: 8px; }
.nutrition-product-meta dd { margin: 0; color: #283a31; font-size: 8px; font-weight: 650; line-height: 1.35; }
.nutrition-complete-button { justify-self: end; min-width: 78px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #246c48; border-radius: 9px; color: #145a3a; background: rgba(255,255,255,.78); font-size: 9px; font-weight: 800; }
.nutrition-complete-button.is-done { border-color: transparent; color: #27714d; background: #dfeee3; }
.nutrition-feedback-managed { display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 7px 2px 1px; color: #68786f; font-size: 8px; }
.nutrition-feedback-managed svg { width: 13px; height: 13px; color: var(--forest); }
.nutrition-plan-skeleton { margin-top: 13px; }
.product-choice--visual { grid-template-columns: 58px 1fr auto; min-height: 94px; }
.product-choice--visual > img { width: 54px; height: 78px; object-fit: contain; mix-blend-mode: multiply; }
.product-choice--visual small { display: block; margin-top: 5px; color: #65756c; font-size: 8px; line-height: 1.45; }
.alternative-product-list { display: grid; gap: 8px; }
.during-hero { text-align: center; padding: 25px 0; }
.during-hero span, .during-hero p { color: var(--muted); font-size: 10px; }
.during-hero h1 { font-size: 28px; margin: 5px 0; }
.next-fuel { padding: 14px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.next-fuel > svg { color: var(--orange); }
.next-fuel b { font-size: 12px; }
.next-fuel p { color: var(--muted); font-size: 9px; margin-top: 3px; }
.nutrition-during-page { padding-bottom: 28px; }
.nutrition-during-page .during-hero { padding: 10px 0 15px; }
.nutrition-during-page .during-hero h1 { margin: 5px 0 3px; color: #153d29; font-size: 22px; }
.nutrition-queue-progress { display: flex; gap: 5px; margin: 0 auto 12px; }
.nutrition-queue-progress i { width: 30px; height: 4px; border-radius: 4px; background: #dfe6df; }
.nutrition-queue-progress i.current { background: var(--green-gradient); }
.nutrition-queue-progress i.done { background: #7ab56a; }
.next-fuel--queue { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 14px; }
.next-fuel--queue > img { width: 58px; height: 64px; object-fit: contain; border-radius: 10px; background: #f5f7f2; }
.next-fuel__copy { min-width: 0; display: grid; gap: 3px; }
.next-fuel__copy span { color: #728279; font-size: 8px; }
.next-fuel__copy b { overflow: hidden; color: #243a2e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.next-fuel__copy p { margin: 0; }
.nutrition-queue-timing { grid-column: 1 / -1; display: grid; justify-items: center; gap: 3px; margin-top: 2px; padding: 12px; border-radius: 10px; background: linear-gradient(125deg, #f1f8df, #f8faf3); }
.nutrition-queue-timing span, .nutrition-queue-timing small { color: #718177; font-size: 8px; }
.nutrition-queue-timing strong { color: #146c43; font-size: 22px; font-variant-numeric: tabular-nums; }
.nutrition-queue-edit-time { grid-column: 1 / -1; min-height: 33px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #176d45; border: 1px solid rgba(20,107,66,.24); border-radius: 9px; background: rgba(255,255,255,.72); font-size: 9px; font-weight: 700; }
.nutrition-queue-edit-time svg { width: 13px; height: 13px; }
.nutrition-queue-next { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin: 9px 3px 0; padding: 9px 10px; color: #576a60; border-block: 1px solid rgba(30,83,53,.08); font-size: 8px; }
.nutrition-queue-next b { color: #2e4739; font-size: 9px; }
.nutrition-queue-next small { color: #16804b; font-size: 8px; }
.nutrition-queue-note { margin: 9px 0 0; color: #78877e; font-size: 8px; text-align: center; }
.nutrition-queue-complete { display: grid; justify-items: center; padding: 20px 14px 14px; text-align: center; }
.nutrition-queue-complete > svg { width: 35px; height: 35px; color: #159150; }
.nutrition-queue-complete > span { margin-top: 8px; color: #3a805a; font-size: 8px; font-weight: 800; }
.nutrition-queue-complete h1 { margin: 4px 0 0; color: #153d29; font-size: 18px; }
.nutrition-queue-complete > p { margin: 7px 0 12px; color: #6c7e73; font-size: 9px; }
.nutrition-queue-summary { width: 100%; margin-bottom: 12px; border-block: 1px solid rgba(29,83,52,.09); }
.nutrition-queue-summary > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 2px; text-align: left; }
.nutrition-queue-summary > div + div { border-top: 1px solid rgba(29,83,52,.08); }
.nutrition-queue-summary img { width: 34px; height: 38px; object-fit: contain; }
.nutrition-queue-summary span { min-width: 0; display: grid; gap: 2px; }
.nutrition-queue-summary b { overflow: hidden; color: #2c4135; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.nutrition-queue-summary small { color: #7b8980; font-size: 7px; }
.nutrition-queue-summary strong { color: #147647; font-size: 9px; }
.nutrition-queue-summary strong.is-skipped { color: #8a9690; }
.nutrition-queue-complete > .button { width: 100%; margin-top: 7px; }
.nutrition-reminder-editor.is-targeted { border-color: rgba(29,135,74,.46); box-shadow: 0 0 0 3px rgba(102,184,65,.1); }
.water-hero { text-align: center; padding: 30px 20px 20px; }
.water-hero > svg { width: 36px; height: 36px; color: var(--blue); }
.water-hero strong, .water-hero span { display: block; }
.water-hero strong { font-size: 32px; margin: 7px 0 2px; }
.water-hero strong small { color: var(--muted); font-size: 11px; }
.water-hero > span { color: var(--muted); font-size: 9px; margin-bottom: 13px; }
.volume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.volume-grid button { min-height: 70px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--blue); display: flex; align-items: center; justify-content: center; gap: 7px; box-shadow: var(--shadow-small); }
.volume-grid b { color: var(--ink); font-size: 12px; }
.macro-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; }
.macro-strip .metric + .metric { border-left: 1px solid var(--line); }
.meal-list, .food-list { display: grid; gap: 8px; }
.meal-row, .food-row { padding: 13px; display: flex; justify-content: space-between; align-items: center; }
.meal-row b, .meal-row span, .food-row b, .food-row span { display: block; }
.meal-row b, .food-row b { font-size: 12px; }
.meal-row span, .food-row span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.meal-row strong { font-size: 12px; }
.meal-row strong small { color: var(--muted); font-size: 8px; }
.meal-row button, .food-row button { min-height: 34px; border: 0; border-radius: 10px; color: var(--forest); background: var(--mint); display: flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 800; }
.search-field { height: 46px; display: grid; grid-template-columns: 28px 1fr; align-items: center; padding: 0 12px; border: 1px solid #cfd5ce; border-radius: 14px; background: white; }
.search-field svg { color: var(--muted); width: 18px; }
.search-field input { border: 0; outline: 0; font-size: 12px; }
.skeleton-stack { display: grid; gap: 10px; margin-top: 20px; }
.skeleton-stack div { height: 92px; border-radius: 16px; background: #e2e6df; animation: pulse 1.1s ease-in-out infinite alternate; }
.loading-copy { text-align: center; color: var(--muted); font-size: 10px; margin-top: 16px; }
.recipe-visual { height: 140px; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: 24px; color: #94560e; background: var(--orange-soft); }
.recipe-visual svg { width: 42px; height: 42px; }
.recipe-visual span { font-size: 10px; font-weight: 800; }
.ingredient-card { padding: 13px; margin-top: 9px; box-shadow: none; }
.ingredient-card b { font-size: 11px; }
.ingredient-card p { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.recipe-plan-page { padding-inline: 14px; background: linear-gradient(180deg, #edf5eb 0, #f8f8f3 230px, var(--paper) 100%); }
.recipe-plan-context { position: relative; overflow: hidden; padding: 16px; border-color: rgba(24,92,56,.12); background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(242,249,237,.96)); }
.recipe-plan-context::after { content: ""; position: absolute; width: 150px; height: 150px; right: -68px; top: -82px; border-radius: 50%; background: radial-gradient(circle, rgba(126,198,57,.2), rgba(126,198,57,0) 68%); pointer-events: none; }
.recipe-plan-context__head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recipe-plan-context__head > span { display: flex; align-items: center; gap: 5px; color: #32734e; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.recipe-plan-context__head svg { width: 14px; height: 14px; }
.recipe-plan-context h1 { position: relative; z-index: 1; margin-top: 13px; color: #153d2a; font-size: 20px; line-height: 1.18; }
.recipe-plan-context > p { position: relative; z-index: 1; margin-top: 6px; color: #66756c; font-size: 10px; line-height: 1.55; }
.recipe-plan-targets { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin-top: 14px; border: 1px solid rgba(25,90,56,.09); border-radius: 13px; background: rgba(25,90,56,.09); }
.recipe-plan-targets > div { display: grid; gap: 3px; min-height: 50px; padding: 9px 10px; background: rgba(255,255,255,.9); }
.recipe-plan-targets span { color: #819087; font-size: 8px; }
.recipe-plan-targets b { color: #203c2d; font-size: 11px; }
.recipe-meal-list { display: grid; gap: 10px; margin-top: 11px; }
.recipe-meal-card { padding: 13px; border-color: rgba(26,89,57,.11); background: rgba(255,255,255,.9); }
.recipe-meal-card__head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; }
.recipe-meal-card__head small { display: block; color: #6e8175; font-size: 8px; font-weight: 750; }
.recipe-meal-card__head h2 { margin-top: 2px; color: #183b29; font-size: 13px; line-height: 1.25; }
.recipe-meal-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #12814e; border-radius: 13px; background: #eaf5e7; }
.recipe-meal-icon svg { width: 18px; height: 18px; }
.recipe-meal-icon--dinner { color: #4259c8; background: #edf0fb; }
.recipe-meal-icon--snack { color: #d17b18; background: #fff2df; }
.recipe-meal-icon--breakfast { color: #d48a0a; background: #fff4db; }
.recipe-meal-description { margin-top: 10px; color: #617168; font-size: 9px; line-height: 1.55; }
.recipe-meal-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.recipe-meal-macros span { padding: 7px 5px; color: #75837b; border-radius: 9px; background: #f4f7f2; text-align: center; font-size: 8px; }
.recipe-meal-macros b { display: block; margin-top: 2px; color: #244632; font-size: 10px; }
.recipe-meal-details { margin-top: 9px; border-top: 1px solid rgba(27,86,55,.09); }
.recipe-meal-details summary { padding: 9px 1px 2px; color: #277049; cursor: pointer; font-size: 9px; font-weight: 800; }
.recipe-meal-details > div { margin-top: 7px; padding: 8px 9px; border-radius: 9px; background: #fafbf8; }
.recipe-meal-details b { color: #345641; font-size: 9px; }
.recipe-meal-details p { margin-top: 3px; color: #6d7a72; font-size: 9px; line-height: 1.5; }
.recipe-swap-button { width: 100%; margin-top: 10px; }
.recipe-swap-button svg { width: 13px; height: 13px; }
.recipe-plan-save-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 12px 13px; }
.recipe-plan-save-summary span, .recipe-plan-save-summary b { display: block; }
.recipe-plan-save-summary span { color: #77867d; font-size: 8px; }
.recipe-plan-save-summary b { margin-top: 3px; color: #2a4735; font-size: 10px; }
.recipe-plan-save-summary > strong { color: #10804b; font-size: 17px; white-space: nowrap; }
.recipe-plan-save-summary > strong small { font-size: 8px; }
.product-choice { margin-top: 9px; padding: 12px; display: grid; grid-template-columns: 48px 1fr auto; gap: 9px; align-items: center; }
button.product-choice { width: 100%; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.product-choice.selected { border-color: #87ae96; background: #f0f6f1; }
.product-choice b, .product-choice span { display: block; }
.product-choice b { font-size: 12px; }
.product-choice span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.product-choice > svg { color: #2c8b5b; }

.date-title { font-size: 14px; font-weight: 800; padding: 6px 0 3px; }
.record-detail-card { padding: 10px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; }
.record-detail-card b, .record-detail-card span, .record-detail-card p { display: block; }
.record-detail-card b { font-size: 12px; }
.record-detail-card span, .record-detail-card p { color: var(--muted); font-size: 8px; margin-top: 3px; }
.run-map { height: 160px; border-radius: 22px; background: #dfe9df; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 5px; padding: 14px; color: var(--forest); }
.run-map > span { font-size: 10px; font-weight: 800; }
.route-line { position: absolute; left: 70px; top: 65px; width: 210px; height: 55px; border: 5px solid var(--forest); border-radius: 45% 55% 30% 50%; transform: rotate(-8deg); }
.route-line::after { content: ""; position: absolute; width: 8px; height: 8px; border: 3px solid white; border-radius: 50%; background: var(--orange); left: 30px; top: -7px; }
.metric-chart { padding: 13px; margin-top: 9px; }
.metric-chart > div { display: flex; justify-content: space-between; }
.metric-chart b { font-size: 11px; }
.metric-chart span { color: var(--muted); font-size: 8px; }
.metric-chart svg { width: 100%; height: 100px; margin-top: 4px; overflow: visible; }
.chart-line { fill: none; stroke-width: 4; stroke-linecap: round; }
.chart-line--blue { stroke: var(--blue); }
.chart-line--red { stroke: var(--red); }
.chart-line--green { stroke: #2b8b59; }
.chart-grid { fill: none; stroke: #dfe3de; stroke-width: 1; stroke-dasharray: 4 5; }
.period-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; background: #e8ebe7; border-radius: 12px; }
.period-tabs button { min-height: 34px; border: 0; border-radius: 9px; background: transparent; font-size: 10px; }
.period-tabs button.selected { background: white; color: var(--forest); font-weight: 800; box-shadow: var(--shadow-small); }
.trend-stat { margin-top: 9px; padding: 14px; display: grid; grid-template-columns: 38px 1fr 1fr; align-items: center; }
.trend-stat > svg { color: var(--forest); }
.trend-stat span, .trend-stat b { display: block; }
.trend-stat span { color: var(--muted); font-size: 8px; }
.trend-stat b { font-size: 15px; margin-top: 3px; }
.trend-stat small { color: #2b8b59; font-size: 8px; }
.comparison-hero { display: flex; align-items: center; gap: 15px; padding: 16px; border-radius: 20px; color: white; background: var(--forest); }
.comparison-hero > svg { width: 45px; height: 45px; }
.comparison-hero span, .comparison-hero strong, .comparison-hero p { display: block; }
.comparison-hero span { font-size: 10px; opacity: .75; }
.comparison-hero strong { font-size: 29px; margin: 3px 0; }
.comparison-hero p { font-size: 8px; opacity: .7; }
.capability-table { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-small); }
.capability-head, .capability-row { display: grid; grid-template-columns: 1.2fr .75fr .75fr .65fr; align-items: center; }
.capability-head { min-height: 34px; padding: 0 10px; color: var(--muted); background: #edf0ec; font-size: 8px; }
.capability-row { position: relative; min-height: 58px; padding: 8px 10px 19px; border-top: 1px solid var(--line); font-size: 9px; }
.capability-row b { font-size: 10px; }
.capability-row > span { font-variant-numeric: tabular-nums; }
.capability-row strong.up { color: #248455; }
.capability-row strong.down { color: var(--red); }
.capability-row strong.flat { color: var(--muted); }
.capability-row small { position: absolute; left: 10px; bottom: 5px; color: var(--muted); font-size: 7px; }
.action-note { margin-top: 8px; padding: 11px; display: flex; gap: 8px; box-shadow: none; }
.action-note--good { color: #2a7a52; background: #e8f3eb; border-color: #a9cdb4; }
.action-note--warn { color: #9b5a0e; background: var(--orange-soft); border-color: #e5bd88; }
.action-note b { font-size: 10px; }
.action-note p { font-size: 8px; margin-top: 2px; }

.profile-hero { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 9px 2px 15px; }
.profile-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; color: white; background: var(--forest); font-size: 20px; font-weight: 800; }
.profile-hero h1 { font-size: 20px; }
.profile-hero p { color: var(--muted); font-size: 9px; margin-top: 4px; }
.profile-hero button { border: 0; background: transparent; }
.profile-goal, .device-summary { padding: 13px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.profile-goal > svg, .device-summary > svg { color: var(--forest); }
.profile-goal b, .profile-goal span, .device-summary b, .device-summary span { display: block; }
.profile-goal b, .device-summary b { font-size: 11px; }
.profile-goal span, .device-summary span { color: var(--muted); font-size: 8px; margin-top: 3px; }
.profile-goal button { border: 0; color: var(--forest); background: transparent; font-size: 9px; font-weight: 800; }
.profile-actions { margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-small); }
.profile-actions button { width: 100%; min-height: 50px; display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 5px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; font-size: 10px; cursor: pointer; }
.profile-actions button:last-child { border-bottom: 0; }
.profile-actions button > svg:first-child { color: var(--forest); justify-self: center; width: 17px; }
.profile-actions button > svg:last-child { color: var(--muted); width: 16px; }
.settings-card { padding: 3px 13px; }
.settings-card > div { min-height: 43px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.settings-card > div:last-child { border-bottom: 0; }
.settings-card span { color: var(--muted); font-size: 9px; }
.settings-card b { font-size: 10px; }
.report-upload { margin-top: 22px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border: 1px dashed #97ad9e; border-radius: 22px; background: #f7f9f5; text-align: center; }
.report-upload > svg { width: 40px; height: 40px; color: var(--forest); }
.report-upload h2 { font-size: 17px; margin: 12px 0 5px; }
.report-upload p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.report-upload .progress-bar { width: 100%; margin-top: 16px; }
.report-upload + .safety-banner { margin-top: 10px; }
.report-meta { padding: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; position: relative; }
.report-meta > div span, .report-meta > div b { display: block; }
.report-meta span { color: var(--muted); font-size: 8px; }
.report-meta b { font-size: 10px; margin-top: 3px; }
.report-meta > .status-badge { position: absolute; right: 10px; top: 10px; }
.report-table { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.report-table > div { min-height: 42px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 10px; border-top: 1px solid var(--line); font-size: 9px; }
.report-table > div:first-child { border-top: 0; background: #edf0ec; }
.report-table strong { color: var(--forest); }
.consent-box { display: flex; gap: 8px; align-items: flex-start; margin-top: 11px; padding: 12px; border-radius: 13px; background: var(--mint); font-size: 9px; line-height: 1.5; }

.ai-detail-page { padding-bottom: 80px; }
.analysis-context { padding: 10px 12px; border-radius: 13px; background: var(--mint); }
.analysis-context span, .analysis-context b, .analysis-context small { display: block; }
.analysis-context span { color: var(--muted); font-size: 8px; }
.analysis-context b { color: var(--forest); font-size: 12px; margin: 3px 0; }
.analysis-context small { color: var(--muted); font-size: 8px; }
.ai-long-message { display: grid; grid-template-columns: 34px 1fr; gap: 8px; margin-top: 12px; }
.ai-long-message > div:last-child > p { padding: 10px 12px; border-radius: 4px 14px 14px; background: white; border: 1px solid var(--line); font-size: 10px; line-height: 1.55; }
.ai-long-message .card { padding: 11px; margin-top: 7px; box-shadow: none; }
.ai-long-message .card b { font-size: 10px; color: var(--forest); }
.ai-long-message .card p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.ai-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.ai-detail-page .composer { bottom: 4px; }
.history-list { display: grid; gap: 8px; }
.history-list .card { min-height: 65px; display: flex; justify-content: space-between; align-items: center; padding: 13px; }
.history-list b, .history-list span { display: block; }
.history-list b { font-size: 12px; }
.history-list span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.dialog-backdrop { position: absolute; z-index: 90; inset: 0; display: flex; align-items: flex-end; padding: 12px; background: rgba(15,24,19,.45); }
.confirm-dialog { width: 100%; padding: 18px; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.confirm-dialog h2 { font-size: 17px; }
.confirm-dialog p { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 6px; }
.confirm-dialog .dialog-error { margin-top: 10px; padding: 8px 10px; border-radius: 10px; color: var(--red); background: var(--red-soft); font-weight: 700; }
.conversation-end-anchor { width: 1px; height: 1px; }
.nutrition-analysis-update-backdrop { z-index: 120; background: rgba(13, 35, 24, .52); backdrop-filter: blur(4px); }
.nutrition-analysis-update-dialog { position: relative; overflow: hidden; padding: 22px 18px 18px; border: 1px solid rgba(67, 139, 86, .18); background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,250,240,.98)); box-shadow: 0 22px 54px rgba(17, 54, 34, .28); }
.nutrition-analysis-update-dialog::before { content: ""; position: absolute; width: 180px; height: 180px; right: -82px; top: -108px; border-radius: 50%; background: radial-gradient(circle, rgba(121,205,67,.28), rgba(121,205,67,0) 70%); pointer-events: none; }
.nutrition-analysis-update-dialog__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; color: white; border-radius: 14px; background: linear-gradient(145deg, #85cc28, #078c57); box-shadow: 0 8px 20px rgba(19, 129, 76, .24); }
.nutrition-analysis-update-dialog__icon svg { width: 21px; height: 21px; }
.nutrition-analysis-update-dialog > small { color: #44805e; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.nutrition-analysis-update-dialog h2 { margin-top: 4px; color: #143f2b; font-size: 18px; }
.nutrition-analysis-update-dialog p { max-width: 310px; color: #5d6d64; font-size: 10px; line-height: 1.7; }
.nutrition-analysis-update-progress { display: flex; align-items: center; gap: 11px; width: fit-content; margin-top: 14px; padding: 8px 12px; color: #789083; border: 1px solid rgba(37,111,70,.1); border-radius: 12px; background: rgba(255,255,255,.78); font-size: 11px; font-weight: 800; }
.nutrition-analysis-update-progress svg { width: 14px; height: 14px; color: #4e9a68; }
.nutrition-analysis-update-progress strong { color: #15834f; font-size: 14px; }
.agent-plan-basis { display: flex; gap: 10px; margin: 10px 0; padding: 12px; }
.agent-plan-basis > svg { flex: 0 0 auto; color: var(--forest); }
.agent-plan-basis b { font-size: 11px; }
.agent-plan-basis p { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.agent-plan-stamp { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--forest); font-size: 8px; }
.training-program-loading { grid-template-columns: 30px 1fr; gap: 10px; min-height: 92px; }
.training-program-loading > svg { color: var(--forest); }
.training-program-loading h2 { font-size: 13px; }
.training-program-loading p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.auth-login-backdrop { position: fixed; }
.auth-login-dialog { position: relative; }
.auth-gate { position: absolute; z-index: 80; inset: 0 0 -74px; display: grid; align-items: end; padding-top: 30px; background: rgba(17, 31, 24, .42); }
.auth-page--embedded { position: relative; max-height: calc(100% - 22px); overflow-y: auto; border-radius: 24px 24px 0 0; background: var(--paper); box-shadow: 0 -12px 30px rgba(17, 31, 24, .16); }
.auth-gate__close { position: absolute; z-index: 90; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 20px; cursor: pointer; }
.dialog-close { position: absolute; right: 13px; top: 11px; width: 36px; height: 36px; border: 0; border-radius: 11px; background: #edf0ec; color: var(--ink); font-size: 22px; cursor: pointer; }
.dialog-kicker { display: block; margin-bottom: 5px; color: var(--forest); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.account-preview { margin-top: 14px; padding: 13px; display: flex; align-items: center; gap: 10px; }
.account-preview > svg { color: var(--forest); }
.account-preview b { font-size: 12px; }
.account-preview p { margin-top: 2px; }
.persistent-state { margin-top: 12px; }
.ai-detail-actions .button--ghost { color: white; background: var(--forest); border: 1px solid var(--forest); }
button:focus-visible, input:focus-visible, textarea:focus-visible, [role="button"]:focus-visible { outline: 3px solid rgba(47,101,77,.34); outline-offset: 2px; }
.capability-card { margin-top: 9px; }
.capability-card b { font-size: 12px; }
.state-list { display: grid; gap: 8px; margin-top: 12px; }
.state-row { min-height: 61px; padding: 12px; display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 8px; box-shadow: none; }
.state-row.active { border-color: #b7a06f; background: #f8f0df; }
.state-row > svg { color: var(--forest); }
.state-row b, .state-row span { display: block; }
.state-row b { font-size: 11px; }
.state-row span { color: var(--muted); font-size: 8px; margin-top: 3px; }
.empty-state { padding: 28px 18px; text-align: center; border: 1px dashed #bdc8bf; border-radius: 17px; }
.empty-state > div:first-child { color: var(--forest); }
.empty-state b { display: block; font-size: 13px; margin: 8px 0 4px; }
.empty-state p { color: var(--muted); font-size: 9px; line-height: 1.5; }
.empty-state .button { margin-top: 12px; }

/* V21 visual language: warm canopy light, scientific green, realistic depth. */
:root {
  color: #13251d;
  background: #dfe7df;
  --ink: #13251d;
  --muted: #68786f;
  --paper: #f8f8f3;
  --surface: rgba(255, 255, 255, .86);
  --line: rgba(17, 91, 58, .12);
  --forest: #0b6a43;
  --forest-deep: #06462f;
  --mint: #e9f5e5;
  --mint-bright: #9bdd3c;
  --orange: #fb4516;
  --orange-soft: #fff0e8;
  --blue: #256fe8;
  --blue-soft: #eaf1ff;
  --red: #b9473f;
  --red-soft: #fae8e5;
  --shadow: 0 22px 58px rgba(21, 55, 39, .16);
  --shadow-small: 0 8px 24px rgba(25, 59, 42, .08), 0 1px 2px rgba(16, 64, 41, .05);
  --green-gradient: linear-gradient(118deg, #8ccf18 0%, #38b92d 44%, #079b57 100%);
  --canopy-glow: radial-gradient(circle at 86% 7%, rgba(255,255,255,.98) 0 7%, rgba(255,255,255,0) 28%), radial-gradient(circle at 16% 18%, rgba(204,235,170,.32), rgba(255,255,255,0) 29%), radial-gradient(circle at 82% 72%, rgba(227,239,188,.25), rgba(255,255,255,0) 31%);
}

body { color: var(--ink); background: #dfe7df; }
.prototype-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(185, 226, 100, .28), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.92), transparent 25%),
    linear-gradient(145deg, #dfe9df 0%, #f5f4ed 44%, #dce8df 100%);
}
.demo-dock {
  background: rgba(250, 250, 246, .82);
  border-color: rgba(20, 92, 59, .12);
  box-shadow: 0 24px 60px rgba(24, 55, 39, .13);
  backdrop-filter: blur(20px);
}
.brand-mark, .demo-list button.is-selected > span:first-child { background: var(--green-gradient); border-color: transparent; box-shadow: 0 7px 16px rgba(25, 141, 69, .22); }
.demo-list button.is-selected { border-color: rgba(64, 160, 75, .2); background: linear-gradient(100deg, rgba(227,244,203,.92), rgba(235,248,235,.72)); }
.adapter-note { background: rgba(235, 246, 230, .9); }

.phone-frame {
  background: linear-gradient(145deg, #183126, #080d0a 58%, #254433);
  box-shadow: 0 36px 90px rgba(18, 43, 30, .32), inset 0 0 0 1px rgba(255,255,255,.2);
}
.phone-screen { background: var(--paper); }
.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--canopy-glow), linear-gradient(180deg, #fbfaf5 0%, #f7f8f2 55%, #fbfaf6 100%);
}
.status-bar, .screen-content, .bottom-nav, .home-indicator { position: absolute; }
.screen-content { z-index: 1; background: transparent; }
.status-bar {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 80;
}

.page { padding-left: 18px; padding-right: 18px; }
.home-page .page-header, .hub-page .page-header {
  height: 66px;
  grid-template-columns: 0 1fr auto;
  margin: 0 -2px 4px;
}
.home-page .page-header__title, .hub-page .page-header__title { text-align: left; }
.home-page .page-header__title strong, .hub-page .page-header__title strong {
  color: var(--forest-deep);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.page-header__title strong { color: var(--forest-deep); }
.page-header__title-button { display: block; padding: 0; color: inherit; border: 0; background: transparent; cursor: pointer; text-align: left; }
.icon-button, .header-actions button {
  border: 1px solid rgba(13, 89, 56, .08);
  background: rgba(255,255,255,.54);
  box-shadow: 0 5px 18px rgba(20,70,43,.05);
}
.header-actions { gap: 4px; }

.card {
  background: var(--surface);
  border-color: rgba(18, 93, 59, .1);
  border-radius: 20px;
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(14px) saturate(1.06);
}
.section-title { min-height: 44px; margin-top: 10px; }
.section-title h2 { color: #17392a; font-size: 15px; letter-spacing: -.01em; }
.button { border-radius: 14px; }
.button--primary {
  color: white;
  background: var(--green-gradient);
  border-color: rgba(9, 130, 70, .45);
  box-shadow: 0 8px 18px rgba(20, 151, 72, .2), inset 0 1px 0 rgba(255,255,255,.28);
}
.button--primary:hover { background: linear-gradient(118deg, #79c214, #28a928 48%, #07884e); }
.button--secondary { color: var(--forest); background: rgba(255,255,255,.8); border-color: rgba(12, 109, 66, .42); }
.status-badge { border-radius: 8px; }
.status-badge--green { color: #137449; background: #edf7e8; }
.status-badge--orange { color: #c65216; background: #fff0e3; }

.sync-line { justify-content: flex-start; color: #335f4b; font-size: 10px; padding: 0 0 12px 2px; }
.dot-live { width: 8px; height: 8px; background: linear-gradient(135deg, #b7df10, #19a85c); box-shadow: 0 0 0 4px rgba(97, 185, 56, .09); }
.home-page .page-header { background: transparent; }
.conversation-timeline { padding: 4px 0 18px; }
.conversation-timeline::before { display: none; }
.timeline-rail { display: none; }
.message-row { grid-template-columns: 38px 1fr; gap: 10px; margin-bottom: 14px; }
.message-row--user { grid-template-columns: 1fr 38px; }
.message-avatar {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 50%;
  color: #0d5034;
  background: linear-gradient(145deg, #f2f3ef, #d9e6de);
  box-shadow: 0 6px 14px rgba(23, 62, 42, .12);
}
.message-avatar--coach { border-radius: 11px; background: #fb4516; box-shadow: 0 7px 18px rgba(244, 69, 20, .2); }
.message-avatar--coach img { width: 50px; height: 50px; }
.message-meta { color: #7d8b83; font-size: 8px; }
.message-bubble {
  max-width: 96%;
  padding: 11px 13px;
  border: 1px solid rgba(17, 92, 58, .08);
  border-radius: 5px 17px 17px 17px;
  color: #1c2d25;
  background: rgba(255,255,255,.9);
  box-shadow: 0 9px 24px rgba(27, 57, 42, .08);
}
.message-row--user .message-bubble {
  color: #183b28;
  background: linear-gradient(116deg, #d3f38c 0%, #b9e981 100%);
  border-color: rgba(85, 157, 42, .15);
  border-radius: 17px 5px 17px 17px;
  box-shadow: 0 8px 18px rgba(69, 133, 44, .12);
}
.agent-card { padding: 13px; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(28,62,43,.08); }
.agent-card__head > span svg { color: #07995a; }
.ai-summary {
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-color: rgba(14, 94, 59, .1);
}
.ai-summary__icon {
  position: relative;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 9px;
  background: #fb4516;
  box-shadow: 0 5px 12px rgba(244,69,20,.18);
}
.ai-summary__icon img { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; max-width: none; transform: translate(-50%,-50%); }
.go-see { border-color: rgba(15, 105, 65, .25); background: rgba(255,255,255,.72); }
.quick-replies button { border-color: rgba(14, 105, 65, .45); color: var(--forest); background: rgba(255,255,255,.68); }
.composer {
  border-color: rgba(13, 102, 62, .12);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 -6px 26px rgba(25,59,41,.08), 0 8px 18px rgba(25,59,41,.06);
  backdrop-filter: blur(18px);
}
.composer button { border-radius: 13px; background: var(--green-gradient); box-shadow: 0 6px 14px rgba(20, 145, 70, .22); }

.segmented { border-color: rgba(13, 104, 64, .55); background: rgba(255,255,255,.72); border-radius: 14px; box-shadow: 0 6px 18px rgba(24,62,41,.05); }
.segmented button.active { background: var(--green-gradient); }
.date-strip { border-color: rgba(17,91,58,.09); }
.date-strip button.is-selected { background: var(--green-gradient); box-shadow: 0 7px 16px rgba(25, 146, 69, .18); }
.period-strip { margin-top: 5px; padding: 11px 12px; border-radius: 13px; color: #49675a; background: rgba(240,247,232,.82); }
.plan-list { gap: 11px; }
.plan-card { grid-template-columns: 56px 1fr; gap: 11px; padding: 12px; }
.plan-card__icon, .record-card__icon {
  width: 54px;
  min-height: 68px;
  color: #08764a;
  border: 1px solid rgba(57, 154, 67, .12);
  border-radius: 17px;
  background: radial-gradient(circle at 30% 20%, #efffd1, #e2f4dc 60%, #f8faf5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.plan-card__icon svg, .record-card__icon svg { filter: drop-shadow(0 4px 6px rgba(18, 102, 57, .12)); }
.plan-card__icon--image { overflow: visible; background: rgba(247, 250, 243, .72); }
.plan-card__icon--image img { width: 62px; height: 58px; object-fit: contain; }
.plan-card__body b { color: #172820; font-size: 13px; }
.plan-card__metrics strong { color: var(--forest); }
.plan-ai-button { border-color: rgba(13,105,65,.34); background: rgba(255,255,255,.72); }
.record-card { border-radius: 20px; }

.nutrition-status-card { padding: 7px 15px; }
.nutrition-status-row { border-color: rgba(17,91,58,.09); }
.nutrition-status-row:nth-child(1) > svg, .nutrition-status-row:nth-child(1) > strong { color: #079d59; }
.nutrition-status-row:nth-child(2) > svg, .nutrition-status-row:nth-child(2) > strong { color: #ef8b00; }
.nutrition-status-row:nth-child(3) > svg, .nutrition-status-row:nth-child(3) > strong { color: #3659e9; }
.nutrition-status-row:nth-child(1) .progress-bar span { background: linear-gradient(90deg, #0ca45d, #5bc052); }
.nutrition-status-row:nth-child(2) .progress-bar span { background: linear-gradient(90deg, #f29a06, #e87600); }
.nutrition-status-row:nth-child(3) .progress-bar span { background: linear-gradient(90deg, #4c56eb, #2d42d4); }
.nutrition-plan-entry {
  color: var(--ink);
  background: radial-gradient(circle at 90% 8%, rgba(255,255,255,.96), transparent 28%), linear-gradient(122deg, rgba(248,250,239,.96), rgba(242,248,225,.9));
  border-color: rgba(104, 157, 48, .15);
  box-shadow: 0 12px 28px rgba(46,80,37,.09);
}
.nutrition-plan-entry span { color: var(--forest); opacity: 1; font-weight: 800; }
.nutrition-plan-entry p { color: var(--muted); opacity: 1; }
.nutrition-plan-entry > svg { color: var(--forest); }
.nutrition-entry-actions .button--secondary { color: white; background: var(--green-gradient); border-color: transparent; }
.nutrition-entry-actions .button--primary { color: var(--forest); background: rgba(255,255,255,.68); border-color: rgba(10,101,62,.4); box-shadow: none; }
.meal-summary { background: rgba(255,255,255,.82); }
.meal-summary > div { border-color: rgba(17,91,58,.09); }
.meal-summary > div:nth-child(1) svg { color: #ef9b00; }
.meal-summary > div:nth-child(2) svg { color: #0a9a59; }
.meal-summary > div:nth-child(3) svg { color: #4259d9; }

.profile-hero {
  grid-template-columns: 66px 1fr auto;
  margin: 4px 0 8px;
  padding: 15px;
  border: 1px solid rgba(18,93,59,.1);
  border-radius: 21px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(14px);
}
.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #164b38, #0c7e4e 58%, #90c731);
  box-shadow: 0 8px 20px rgba(21,91,55,.2), inset 0 1px 0 rgba(255,255,255,.28);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-goal {
  background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.95), transparent 30%), linear-gradient(112deg, #f7faea, #eaf4c8);
  border-color: rgba(116,165,44,.17);
}
.profile-goal > svg { color: #8aaa24; filter: drop-shadow(0 4px 7px rgba(116,142,38,.18)); }
.device-summary > svg { color: #14231d; filter: drop-shadow(0 4px 5px rgba(11,30,21,.13)); }
.profile-actions { border-color: rgba(18,93,59,.1); border-radius: 20px; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); }
.profile-actions button { border-color: rgba(17,91,58,.09); background: transparent; }
.profile-actions button:hover { background: rgba(237,247,230,.75); }
.settings-card { background: rgba(255,255,255,.78); }

/* V21 primary-page component reconstruction */
.hub-subtitle {
  margin: -7px 0 8px;
  color: #799083;
  font-size: 10px;
  letter-spacing: .02em;
}
.assistant-live-dot {
  width: 10px;
  height: 10px;
  margin-left: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #bedf08, #0aa357);
  box-shadow: 0 0 0 4px rgba(117, 191, 42, .1);
}
.home-page--v21 .page-header { padding-bottom: 4px; }
.home-assistant-status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 2px 12px;
  color: #35624e;
  font-size: 10px;
  border-bottom: 1px solid rgba(20, 76, 51, .09);
}
.home-assistant-status b { color: #0a6d43; }
.home-assistant-status small { margin-left: auto; color: #8a9b92; }
.home-ai-primary-entry {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr 20px;
  align-items: center;
  gap: 11px;
  margin: 7px 0 5px;
  padding: 12px 13px;
  color: white;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #075f39, #0a8b50 70%, #6dae2d);
  box-shadow: 0 12px 24px rgba(7, 95, 57, .2);
  text-align: left;
}
.home-ai-primary-entry__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.16); }
.home-ai-primary-entry__icon svg { width: 25px; height: 25px; }
.home-ai-primary-entry > span:nth-child(2) { display: grid; gap: 2px; }
.home-ai-primary-entry small { color: rgba(255,255,255,.74); font-size: 8px; }
.home-ai-primary-entry b { font-size: 17px; line-height: 1.15; }
.home-ai-primary-entry em { color: rgba(255,255,255,.84); font-size: 8px; font-style: normal; }
.home-ai-primary-entry > svg { width: 18px; opacity: .8; }
.home-v21-flow { padding-top: 8px; }
.home-time-separator {
  margin: 0 auto 12px;
  color: #84948b;
  font-size: 9px;
  text-align: center;
}
.home-intro-message { margin-bottom: 10px; }
.home-plan-message { margin-bottom: 12px; }
.home-plan-message .message-stack { width: 100%; min-width: 0; }
.home-coach-card {
  width: 100%;
  padding: 15px 14px 13px;
  border-radius: 20px;
  background: radial-gradient(circle at 86% 4%, rgba(255,255,255,.98), transparent 28%), linear-gradient(142deg, rgba(255,255,255,.97), rgba(248,250,239,.94));
  box-shadow: 0 14px 30px rgba(35, 70, 49, .1);
}
.home-coach-card__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px;
}
.home-coach-card__head h2 { margin: 0; color: #17241f; font-size: 17px; letter-spacing: -.04em; }
.home-coach-card__head span { color: #1a9a48; font-size: 10px; font-weight: 800; }
.home-coach-card__head strong { color: #079f43; font-size: 23px; line-height: 1; }
.home-coach-card__head strong small { color: #25372e; font-size: 10px; font-weight: 600; }
.readiness-track {
  height: 7px;
  margin: 13px 0 14px;
  overflow: hidden;
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, #e4e8e2 0 29px, transparent 29px 35px);
}
.readiness-track span { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(90deg, #11a34d 0 29px, transparent 29px 35px); }
.home-health-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}
.home-health-metrics > div { display: grid; gap: 3px; padding: 1px 10px; border-right: 1px solid rgba(25, 74, 52, .1); }
.home-health-metrics > div:first-child { padding-left: 0; }
.home-health-metrics > div:last-child { padding-right: 0; border-right: 0; }
.home-health-metrics span { color: #4e6358; font-size: 10px; }
.home-health-metrics strong { color: #075d37; font-size: 23px; font-weight: 650; }
.home-health-metrics > div:first-child strong { color: #1f6fe5; }
.home-health-metrics > div:last-child strong { color: #5136eb; }
.home-health-metrics small { font-size: 10px; font-weight: 500; }
.home-device-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px;
  color: #31473c;
  border: 1px solid rgba(29, 84, 57, .07);
  border-radius: 10px;
  background: rgba(244, 246, 240, .86);
  font-size: 9px;
}
.home-device-chip svg:first-child { color: #101a16; }
.home-device-chip svg:last-child { color: #8b9b92; }
.home-session-card {
  margin-top: 12px;
  padding: 13px 12px 9px;
  border: 1px solid rgba(104, 152, 42, .12);
  border-radius: 17px;
  background: radial-gradient(circle at 78% 0%, rgba(255,255,255,.84), transparent 34%), linear-gradient(132deg, #f7faea, #f4f7e5);
}
.home-session-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.home-session-title .session-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #0c9a50;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #e4f4dd);
  box-shadow: 0 6px 14px rgba(31, 105, 57, .12);
}
.home-session-title .session-icon svg { width: 25px; height: 25px; }
.home-session-title h3 { margin: 0; color: #17231e; font-size: 18px; letter-spacing: -.04em; }
.home-session-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-top: 1px solid rgba(46, 85, 58, .09);
  color: #32483c;
  font-size: 10px;
}
.home-session-row svg { width: 17px; color: #49a728; }
.home-session-row b { color: #17261e; font-size: 10px; }
.home-fuel-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0 11px;
  padding: 9px 10px;
  color: #4a554e;
  border-radius: 11px;
  background: linear-gradient(90deg, #fff6e4, #f9f4e8);
  font-size: 9px;
}
.home-fuel-note svg { width: 18px; color: #ef9a06; }
.home-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.home-primary-actions--single { grid-template-columns: 1fr; }
.home-primary-actions .button { min-height: 39px; padding-inline: 8px; }
.home-user-prompt {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px 42px;
}
.home-user-prompt > div {
  padding: 11px 14px;
  color: #20352a;
  border-radius: 17px 5px 17px 17px;
  background: linear-gradient(118deg, #d2ef8f, #bde681);
  box-shadow: 0 8px 18px rgba(74, 132, 46, .12);
  font-size: 11px;
}
.home-user-prompt img { width: 37px; height: 37px; object-fit: cover; border-radius: 50%; box-shadow: 0 5px 13px rgba(24, 66, 44, .13); }
.home-explain-message .message-bubble + .message-bubble { margin-top: 6px; }
.home-evidence-actions { display: flex; gap: 7px; margin-top: 8px; }
.home-evidence-actions .button { min-height: 34px; padding: 7px 10px; font-size: 9px; }

.training-hub-v21 .date-strip { margin-top: 7px; }
.training-program-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding: 13px 14px;
  background: linear-gradient(120deg, rgba(244,250,229,.96), rgba(255,255,255,.9));
}
.training-program-copy { display: flex; align-items: center; gap: 10px; }
.training-program-copy img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; box-shadow: 0 6px 14px rgba(30, 91, 51, .12); }
.training-program-copy > div { display: grid; gap: 4px; }
.training-program-card span { color: #60786c; font-size: 9px; }
.training-program-card h2 { margin: 0; color: #14281e; font-size: 15px; }
.training-program-score { display: grid; justify-items: end; gap: 2px; }
.training-program-score strong { color: #159348; font-size: 23px; }
.training-program-score strong small { color: #3b5b49; font-size: 10px; }
.training-program-card > .progress-bar { grid-column: 1 / -1; }
.training-program-card > p { grid-column: 1 / -1; margin: -3px 0 0; color: #476759; font-size: 8px; }
.training-plan-actual { display: grid; gap: 10px; margin-top: 9px; padding: 13px; box-shadow: none; }
.training-plan-actual__head { display: flex; align-items: end; justify-content: space-between; }
.training-plan-actual__head > div { display: grid; gap: 2px; }
.training-plan-actual__head small { color: #7c8c83; font-size: 8px; }
.training-plan-actual__head b { color: #20382c; font-size: 13px; }
.training-plan-actual__head > span { color: #137546; font-size: 9px; font-weight: 800; }
.training-plan-actual__head > span.is-pending { color: #7b887f; }
.training-plan-actual__metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0; border-block: 1px solid rgba(23, 76, 46, .08); }
.training-plan-actual__metrics > div { display: grid; gap: 3px; padding: 0 8px; border-right: 1px solid rgba(23, 76, 46, .08); }
.training-plan-actual__metrics > div:first-child { padding-left: 1px; }
.training-plan-actual__metrics > div:last-child { padding-right: 1px; border-right: 0; }
.training-plan-actual__metrics span { color: #7d8b82; font-size: 7px; }
.training-plan-actual__metrics strong { color: #243c2f; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1; }
.training-plan-actual__metrics strong small { color: #6d7c73; font-size: 7px; font-weight: 650; }
.training-plan-actual__figure-title { display: flex; align-items: baseline; margin: 0 0 -8px; color: #1b2821; font-family: Arial, "Helvetica Neue", sans-serif; }
.training-plan-actual__figure-title span { font-size: 8px; font-weight: 750; letter-spacing: -.01em; }
.training-plan-actual__chart { width: 100%; height: 154px; margin-top: -3px; font-family: Arial, "Helvetica Neue", sans-serif; }
.training-plan-actual__chart .recharts-surface { overflow: visible; }
.training-plan-actual__legend { display: flex; align-items: center; gap: 11px; margin-top: -6px; color: #26322b; font-family: Arial, "Helvetica Neue", sans-serif; font-size: 7px; }
.training-plan-actual__legend span { display: inline-flex; align-items: center; gap: 4px; }
.training-plan-actual__legend i { width: 8px; height: 8px; border: 1px solid #26322b; }
.training-plan-actual__legend i.is-plan { background: #cfd8d1; }
.training-plan-actual__legend i.is-actual { background: #4da84e; }
.training-plan-actual__legend small { margin-left: auto; color: #98a39c; font-size: 7px; }
.training-plan-actual > p { margin: 0; color: #78887f; font-size: 8px; }
.training-today-card { display: block; padding: 14px; }
.training-today-link {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.training-today-visual { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 11px; }
.training-today-visual > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #0c9b52;
  border-radius: 17px;
  background: radial-gradient(circle at 30% 20%, #fff, #e4f4dc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 7px 15px rgba(28, 105, 56, .1);
}
.training-today-visual > span svg { width: 30px; height: 30px; }
.training-today-visual small { color: #819189; font-size: 8px; }
.training-today-visual h2 { margin: 3px 0; color: #15251d; font-size: 17px; }
.training-today-visual p { margin: 0; color: #687c71; font-size: 8px; }
.training-today-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 13px 0 10px; padding: 11px 0; border-block: 1px solid rgba(20, 78, 51, .09); }
.training-today-metrics > div { display: grid; gap: 3px; text-align: center; border-right: 1px solid rgba(20, 78, 51, .09); }
.training-today-metrics > div:last-child { border-right: 0; }
.training-today-metrics strong { color: #075f39; font-size: 17px; }
.training-today-metrics strong small { font-size: 8px; font-weight: 600; }
.training-today-metrics span { color: #778b80; font-size: 8px; }
.training-ai-note { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 9px; border-radius: 12px; background: #f5f7f2; }
.training-ai-note .message-avatar { width: 27px; height: 27px; border-radius: 8px; }
.training-ai-note .message-avatar img { width: 37px; height: 37px; }
.training-ai-note p { margin: 0; color: #52655b; font-size: 8px; line-height: 1.5; }
.training-today-card .plan-ai-button { width: 100%; margin-top: 8px; }
.training-week-card { padding: 4px 13px; }
.training-week-card > button {
  display: grid;
  grid-template-columns: 35px 34px 1fr auto 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  color: #24372d;
  border: 0;
  border-bottom: 1px solid rgba(21, 78, 51, .09);
  background: transparent;
  text-align: left;
}
.training-week-card > button:last-child { border-bottom: 0; }
.week-day { color: #687b71; font-size: 9px; }
.week-icon { display: grid; place-items: center; width: 31px; height: 31px; color: #0e9a53; border-radius: 10px; background: #e9f4e4; }
.week-icon--rest { color: #485fdc; background: #eef0fa; }
.week-icon svg { width: 18px; }
.week-copy { display: grid; gap: 4px; }
.week-copy b { color: #203129; font-size: 10px; }
.week-copy small { color: #839189; font-size: 8px; }
.training-week-card > button > svg { width: 14px; color: #95a29b; }

.nutrition-home-v21 .section-title { min-height: 34px; margin-top: 5px; }
.nutrition-home-v21 .nutrition-status-card { padding: 5px 13px; }
.nutrition-home-v21 .nutrition-status-row { grid-template-columns: 34px 1fr 36px; min-height: 57px; }
.nutrition-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #079b5a; border-radius: 10px; background: #e7f5eb; }
.nutrition-icon--carb { color: #ef9200; background: #fff3df; }
.nutrition-icon--protein { color: #635bce; background: #f0efff; }
.nutrition-icon--fat { color: #b56b32; background: #f8ede4; }
.nutrition-icon svg { width: 18px; }
.nutrition-plan-entry { display: block; padding: 12px 13px; }
.nutrition-plan-head { display: flex; justify-content: space-between; align-items: center; padding: 1px 1px 9px; }
.nutrition-plan-head span { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.nutrition-plan-head span svg { width: 18px; }
.nutrition-plan-head b { color: #55685d; font-size: 9px; }
.fuel-plan-row { display: grid; grid-template-columns: 34px 70px 1fr; align-items: center; gap: 9px; min-height: 53px; border-top: 1px solid rgba(25, 79, 52, .08); }
.fuel-plan-icon { display: grid; place-items: center; width: 31px; height: 31px; color: #079c58; border-radius: 10px; background: #e9f5e8; }
.fuel-plan-icon--orange { color: #ec8500; background: #fff1df; }
.fuel-plan-icon--blue { color: #405be0; background: #edf0ff; }
.fuel-plan-icon svg { width: 17px; }
.fuel-plan-row > div { display: grid; gap: 3px; }
.fuel-plan-row > div b { color: #283b31; font-size: 10px; }
.fuel-plan-row > div small { color: #89978f; font-size: 8px; }
.fuel-plan-row p { margin: 0; color: #384a41; font-size: 9px; text-align: right; }
.nutrition-entry-actions { margin-top: 9px; }
.meal-summary > div { grid-template-columns: 34px 1fr auto; min-height: 53px; gap: 8px; }
.meal-summary > div > span:nth-child(2) { display: grid; gap: 3px; color: #26382e; font-weight: 750; }
.meal-summary small { color: #8a978f; font-size: 8px; font-weight: 500; }
.meal-icon { display: grid !important; place-items: center; width: 30px; height: 30px; color: #0d9a55; border-radius: 10px; background: #eaf5e8; }
.meal-icon--breakfast { color: #ef9500; background: #fff3df; }
.meal-icon--dinner { color: #455adf; background: #eef0fc; }
.meal-icon svg { width: 17px; }
.nutrition-ai-entry { display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 9px; margin-top: 9px; padding: 10px 11px; }
.nutrition-ai-entry .message-avatar { width: 32px; height: 32px; border-radius: 9px; }
.nutrition-ai-entry .message-avatar img { width: 43px; height: 43px; }
.nutrition-ai-entry b { color: #20352a; font-size: 10px; }
.nutrition-ai-entry p { margin: 3px 0 0; color: #728078; font-size: 8px; line-height: 1.45; }
.nutrition-ai-entry button { display: flex; align-items: center; gap: 2px; color: #0b7845; border: 0; background: transparent; font-size: 9px; font-weight: 800; }
.nutrition-ai-entry button svg { width: 13px; }
.nutrition-ai-button { width: 100%; margin-top: 8px; min-height: 36px; }

.profile-page-v21 .section-title { min-height: 34px; margin-top: 5px; }
.profile-page-v21 .profile-hero { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; }
.profile-page-v21 .profile-hero > button { align-self: start; padding: 5px 8px; color: #087848; border: 1px solid rgba(9, 121, 72, .28); border-radius: 9px; background: rgba(255,255,255,.62); font-size: 9px; font-weight: 800; }
.profile-completion { display: grid; gap: 4px; margin-top: 7px; }
.profile-completion > span { width: 118px; height: 4px; overflow: hidden; border-radius: 9px; background: #e4e8e2; }
.profile-completion i { display: block; height: 100%; border-radius: inherit; background: var(--green-gradient); }
.profile-completion small { color: #829087; font-size: 7px; }
.profile-goal { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 12px; }
.profile-goal > div { display: grid; gap: 4px; }
.profile-goal > div small { color: #79877f; font-size: 8px; }
.profile-goal > div b { color: #183326; font-size: 12px; }
.profile-goal > div span { color: #607269; font-size: 8px; }
.profile-goal > button { padding: 6px; color: #0a7d4a; border: 0; background: transparent; }
.profile-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; }
.profile-card-icon--goal { color: #e29100; background: #fff3d9; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.profile-card-icon--watch { color: #17221c; background: #eef1ed; }
.profile-card-icon svg { width: 21px; }
.profile-page-v21 .device-summary { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 12px; }
.profile-device-actions { margin-top: 8px; }
.profile-insights { padding: 2px 13px; }
.profile-insights > div { min-height: 42px; }
.profile-insights span { display: flex; align-items: center; gap: 7px; }
.profile-insights span svg { width: 16px; color: #0b8c50; }
.profile-settings-actions button { min-height: 45px; }
.profile-coach-entry { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; margin-top: 9px; padding: 10px 12px; }
.profile-coach-entry .message-avatar { width: 32px; height: 32px; border-radius: 9px; }
.profile-coach-entry .message-avatar img { width: 43px; height: 43px; }
.profile-coach-entry > div { display: grid; gap: 2px; }
.profile-coach-entry b { color: #1b3327; font-size: 10px; }
.profile-coach-entry span { color: #7d8a82; font-size: 8px; }
.profile-coach-entry > svg { width: 15px; color: #8c9a92; }

.bottom-nav {
  height: 64px;
  background: rgba(255,255,255,.84);
  border-color: rgba(17,91,58,.11);
  box-shadow: 0 -8px 26px rgba(26,62,42,.07);
  backdrop-filter: blur(20px) saturate(1.1);
}
.bottom-nav button { color: #315d49; gap: 3px; }
.bottom-nav button.is-active { color: #087a49; }
.bottom-nav button.is-active svg {
  width: 32px;
  height: 28px;
  padding: 5px;
  color: white;
  background: var(--green-gradient);
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(20,145,70,.2);
}
.bottom-nav button span { font-size: 10px; }

/* V22 screenshot-faithful component geometry */
.page { padding-left: 22px; padding-right: 22px; }
.hub-page { padding-bottom: 20px; }
.card {
  border-color: rgba(26, 73, 50, .1);
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(32, 61, 45, .09);
  backdrop-filter: blur(8px) saturate(1.02);
}
.home-page .page-header, .hub-page .page-header {
  height: 58px;
  margin: 0 0 1px;
}
.home-page .page-header__title strong, .hub-page .page-header__title strong { font-size: 21px; }
.hub-subtitle { margin: -4px 0 11px; color: #0c5838; font-size: 12px; }
.icon-button, .header-actions button { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
.assistant-live-dot { width: 10px; height: 10px; margin: 0 2px 0 9px; }
.section-title { min-height: 37px; margin-top: 6px; }
.section-title h2 { font-size: 14px; font-weight: 800; }
.button { min-height: 39px; border-radius: 9px; font-size: 12px; }
.status-badge { min-height: 23px; padding: 3px 8px; border-radius: 7px; font-size: 9px; font-weight: 600; }

.home-assistant-status { padding: 0 0 12px; font-size: 10px; }
.home-page { padding-left: 16px; padding-right: 16px; }
.home-assistant-status small { display: none; }
.home-v21-flow { padding-top: 8px; }
.home-time-separator { margin-bottom: 14px; font-size: 10px; }
.message-row { grid-template-columns: 38px 1fr; gap: 10px; }
.message-avatar { width: 36px; height: 36px; }
.message-bubble { padding: 12px 14px; border-radius: 5px 11px 11px 11px; font-size: 11px; line-height: 1.55; }
.home-coach-card { padding: 15px 13px 12px; border-radius: 12px; }
.home-plan-message .message-stack { width: 288px; max-width: 288px; }
.home-coach-card__head h2 { font-size: 17px; }
.home-coach-card__head span { font-size: 11px; }
.home-coach-card__head strong { font-size: 22px; }
.readiness-track { position: relative; height: 5px; margin: 14px 0 17px; overflow: visible; background: repeating-linear-gradient(90deg, #e3e5e1 0 26px, transparent 26px 31px); }
.readiness-track > span { overflow: hidden; background: repeating-linear-gradient(90deg, #05984e 0 26px, transparent 26px 31px); }
.readiness-track > img { position: absolute; z-index: 2; left: calc(78% - 17px); top: -14px; width: 34px; height: 30px; object-fit: contain; }
.home-health-metrics { margin-bottom: 13px; }
.home-health-metrics span { font-size: 11px; }
.home-health-metrics strong { font-size: 23px; }
.home-device-chip { min-height: 31px; padding: 4px 9px 4px 5px; border-radius: 8px; font-size: 10px; }
.home-device-chip img { width: 26px; height: 26px; object-fit: contain; }
.home-session-card { margin-top: 10px; padding: 8px 11px 5px; border-radius: 12px; }
.home-session-title { gap: 10px; margin-bottom: 4px; }
.home-session-title img { width: 58px; height: 38px; margin-left: -6px; object-fit: contain; }
.home-session-title h3 { font-size: 18px; }
.home-session-row { min-height: 32px; grid-template-columns: 22px 1fr auto; font-size: 11px; }
.home-session-row b { font-size: 10px; }
.home-fuel-note { min-height: 31px; margin: 7px 0 8px; padding: 1px 10px; border-radius: 8px; font-size: 10px; }
.home-fuel-note img { width: 24px; height: 29px; object-fit: contain; }
.home-primary-actions { gap: 10px; }
.home-primary-actions .button { min-height: 33px; padding-block: 6px; }
.home-user-prompt { margin-bottom: 14px; }
.home-user-prompt > div { padding: 11px 14px; border-radius: 11px 5px 11px 11px; font-size: 11px; }
.home-evidence-actions .button { min-height: 33px; border-radius: 8px; font-size: 10px; }

.training-tabs { height: 31px; margin: 5px 0 12px; border-radius: 8px; }
.training-tabs button { font-size: 12px; }
.training-hub-v21 .date-strip { height: 82px; margin: 0; padding: 0 0 10px; gap: 1px; }
.training-return-today {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  margin: 7px 0 2px;
  padding: 7px 12px;
  color: white;
  border: 0;
  border-radius: 11px;
  background: var(--green-gradient);
  box-shadow: 0 7px 16px rgba(25, 128, 58, .18);
  cursor: pointer;
}
.training-return-today > svg { width: 18px; height: 18px; }
.training-return-today > span { justify-self: start; color: inherit; font-size: 11px; font-weight: 800; }
.training-return-today > small { color: rgba(255,255,255,.76); font-size: 9px; font-variant-numeric: tabular-nums; }
.training-return-today:focus-visible { outline: 3px solid rgba(43, 171, 79, .28); outline-offset: 2px; }
.training-return-today:active { transform: scale(.985); }
.date-strip button { display: grid; grid-template-rows: 16px 26px 16px; align-items: center; justify-items: center; min-height: 70px; border-radius: 11px; }
.date-strip span { font-size: 10px; color: #18221d; }
.date-strip b { margin: 0; font-size: 13px; }
.date-strip button.is-selected { color: white; background: transparent; box-shadow: none; }
.date-strip button.is-selected span { color: #18221d; }
.date-strip button.is-selected b { display: grid; place-items: center; width: 30px; height: 30px; color: white; border-radius: 50%; background: var(--green-gradient); box-shadow: 0 5px 12px rgba(35, 128, 53, .2); }
.date-dot { display: grid; place-items: center; width: 11px; height: 11px; color: white; border: 1px solid #139a4c; border-radius: 50%; font-size: 7px; font-style: normal; }
.date-dot--planned { border: 0; background: linear-gradient(135deg, #86c715, #139a4c); }
.date-dot--done { border: 0; background: #19984d; }
.date-dot--recorded { border: 0; background: #5d7f74; box-shadow: 0 0 0 2px rgba(93, 127, 116, .14); }
.training-program-card { gap: 8px 12px; margin-top: 12px; padding: 12px 13px; border-radius: 13px; background: rgba(255,255,255,.86); }
.training-program-copy img { width: 72px; height: 51px; margin: -2px -8px -2px -7px; object-fit: contain; border-radius: 0; box-shadow: none; }
.training-program-copy h2 { font-size: 15px; }
.training-program-copy span { font-size: 11px; }
.training-program-score span { color: #187848; font-size: 10px; }
.training-program-score strong { font-size: 24px; }
.training-program-track { grid-column: 1 / -1; margin: 2px 0 4px; }
.training-program-track > img { display: none; }
.training-program-card > p { font-size: 10px; }
.training-today-card { padding: 11px 12px 12px; border-radius: 13px; background: radial-gradient(circle at 86% 0%, #fff, transparent 30%), linear-gradient(135deg, #fffef7, #f8f8ed); }
.training-today-visual { grid-template-columns: 82px 1fr auto; gap: 6px; min-height: 59px; }
.training-today-visual > img { width: 88px; height: 61px; margin-left: -8px; object-fit: contain; }
.training-today-visual h2 { font-size: 21px; }
.training-today-metrics { margin: 6px 0; padding: 7px 0; }
.training-today-metrics span { order: -1; color: #202d26; font-size: 9px; }
.training-today-metrics strong { color: #0b673b; font-size: 16px; }
.training-today-metrics strong small { font-size: 8px; }
.training-ai-note { grid-template-columns: 25px auto 1fr auto; gap: 5px; min-height: 31px; margin-bottom: 7px; padding: 2px 5px; border-radius: 7px; }
.training-ai-note .message-avatar { width: 24px; height: 24px; }
.training-ai-note .message-avatar img { width: 33px; height: 33px; }
.training-ai-note b { color: #283d31; font-size: 9px; white-space: nowrap; }
.training-ai-note p { font-size: 8px; }
.training-ai-note button { display: flex; align-items: center; gap: 2px; color: #0b7243; border: 0; background: transparent; font-size: 9px; white-space: nowrap; }
.training-ai-note button svg { width: 13px; }
.training-week-card { padding: 2px 11px; }
.training-week-card > button { grid-template-columns: 48px 1fr auto 14px; min-height: 53px; gap: 8px; }
.training-week-card > button > img { width: 58px; height: 47px; margin-left: -6px; object-fit: contain; }
.training-week-card > button.is-current {
  margin-inline: -3px;
  padding-inline: 3px;
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(221, 242, 205, .78), rgba(241, 247, 233, .52) 58%, rgba(255, 255, 255, 0));
  box-shadow: inset 3px 0 0 rgba(76, 164, 65, .28);
}
.week-copy b { font-size: 12px; }
.week-copy small { font-size: 10px; }
.week-state { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; white-space: nowrap; }
.week-state > i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.week-state--in-progress,
.week-state--completed,
.week-state--today { color: #347f44; font-weight: 700; }
.week-state--syncing { color: #3f6d77; }
.week-state--sync-failed { color: #a33f3f; font-weight: 700; }
.week-state--skipped,
.week-state--draft { color: #737b76; }
.week-state--pending-confirmation { color: #80621d; font-weight: 700; }
.week-state--missed { color: #9a5629; font-weight: 700; }
.week-state--planned { color: #46544c; }
.week-state--today > i,
.week-state--syncing > i { background: transparent; border: 1.5px solid currentColor; }
.week-plan-flag {
  display: inline-flex;
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 4px;
  color: #4d6f47;
  background: #e7efe3;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: 1px;
}
.training-week-card > button.is-current { background: linear-gradient(90deg, rgba(223, 241, 198, .58), rgba(255, 255, 255, .2)); }
.training-week-card > button.is-current .week-copy b { color: var(--forest); }

.nutrition-home-v21 .page-header { margin-bottom: 0; }
.nutrition-header-button { border: 1.5px solid #123d2d !important; border-radius: 50% !important; }
.nutrition-status-card { padding: 11px 16px 10px !important; }
.nutrition-status-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.nutrition-status-head h2 { color: #16251e; font-size: 15px; }
.nutrition-status-head span { color: #0c7142; font-size: 10px; }
.nutrition-home-v21 .nutrition-status-row { grid-template-columns: 38px 1fr 34px; min-height: 44px; gap: 8px; }
.nutrition-icon { width: 34px; height: 34px; border-radius: 0; background: transparent !important; }
.nutrition-icon svg { width: 27px; height: 27px; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nutrition-icon > img { width: 38px; height: 38px; object-fit: contain; }
.nutrition-status-row > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 4px; }
.nutrition-status-row > div > span { font-size: 11px; font-weight: 700; }
.nutrition-status-row > div > b { font-size: 17px; font-weight: 500; }
.nutrition-status-row > div > b small { color: #253129; font-size: 10px; }
.nutrition-status-row .progress-bar { grid-column: 1 / -1; margin-top: 3px; }
.nutrition-status-row > strong { align-self: center; color: #202c25; font-size: 12px; }
.nutrition-status-row--fat .progress-bar span { background: #b97745; }
.hydration-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 2px; }
.hydration-quick-actions > button { min-height: 70px; padding: 8px 4px; border: 0; border-radius: 14px; color: #244238; background: rgba(235,244,237,.92); box-shadow: inset 0 0 0 1px rgba(41,102,72,.09); display: grid; place-items: center; align-content: center; gap: 2px; }
.hydration-quick-actions > button:active { transform: scale(.97); }
.hydration-quick-actions > button:disabled { opacity: .45; cursor: not-allowed; }
.hydration-quick-actions > button[aria-disabled="true"] { opacity: .52; }
.hydration-future-note { margin: 5px 0 0; color: #7a684c; font-size: 9px; font-weight: 700; text-align: center; }
.hydration-quick-actions b { font-size: 11px; }
.hydration-quick-actions small { color: #668077; font-size: 9px; }
.hydration-vessel { display: grid; place-items: center; width: 28px; height: 30px; color: #2e8c72; border: 1.5px solid currentColor; border-radius: 8px 8px 10px 10px; }
.hydration-vessel svg { width: 15px; height: 15px; }
.hydration-vessel--bottle { width: 18px; border-radius: 4px 4px 7px 7px; position: relative; }
.hydration-vessel--bottle::before { content: ""; position: absolute; top: -5px; width: 9px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.hydration-vessel--jug { width: 34px; border-radius: 7px 7px 11px 11px; }
.hydration-more { background: rgba(248,250,246,.96) !important; }
.nutrition-entry-actions--center { display: flex; justify-content: center; }
.nutrition-entry-actions--center .button { width: min(210px, 72%); }
.nutrition-schedule-tabs { margin: 6px 0 8px; }
.nutrition-day-context { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 8px; }
.nutrition-day-context > svg { width: 20px; color: var(--forest); }
.nutrition-day-context b, .nutrition-day-context span { display: block; }
.nutrition-day-context b { font-size: 11px; }
.nutrition-day-context div > span { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.nutrition-cycle-overview { display: grid; gap: 8px; margin-bottom: 9px; }
.nutrition-cycle-week { padding: 10px; }
.nutrition-cycle-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.nutrition-cycle-days button { min-width: 0; min-height: 55px; padding: 4px 1px; border: 1px solid rgba(35,93,66,.08); border-radius: 9px; color: var(--muted); background: #f7f9f5; display: grid; place-items: center; }
.nutrition-cycle-days span, .nutrition-cycle-days small { font-size: 8px; }
.nutrition-cycle-days b { color: var(--ink); font-size: 11px; }
.nutrition-cycle-days .is-training { color: var(--forest); background: #eef6e8; }
.nutrition-cycle-days .is-selected { color: white; background: var(--forest); box-shadow: 0 5px 12px rgba(24,87,57,.18); }
.nutrition-cycle-days .is-selected b { color: white; }
.meal-row--editable { display: block; }
.meal-row-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.meal-row .meal-delete { min-width: 34px; justify-content: center; color: #9a5546; background: #f8eeeb; }
.meal-foods { display: grid; gap: 5px; margin: 10px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.meal-foods > div { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.meal-foods span b, .meal-foods span small { display: block; }
.meal-foods span small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.meal-foods button { min-width: 34px; justify-content: center; }
.meal-row .meal-add-food { width: 100%; justify-content: center; }
.meal-create-panel { margin-top: 10px; }
.meal-create-button { margin-top: 0 !important; }
.meal-type-picker { padding: 12px; }
.meal-type-picker > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.meal-type-picker > div:first-child > button { width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: var(--soft); }
.meal-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.meal-type-grid > button { min-height: 62px; border: 1px solid rgba(35,93,66,.1); border-radius: 12px; color: var(--forest); background: #f5f9f4; display: grid; grid-template-columns: 24px 1fr; align-items: center; text-align: left; padding: 8px; }
.meal-type-grid svg { grid-row: 1 / 3; width: 18px; }
.meal-type-grid b { font-size: 11px; }
.meal-type-grid small { color: var(--muted); font-size: 9px; }
.meal-type-grid > button:disabled { opacity: .42; }
.empty-meal--first { grid-template-columns: 42px 1fr auto 16px !important; }
.first-meal-icon { display: grid !important; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--forest) !important; background: var(--mint); }
.first-meal-icon svg { width: 18px; }
.nutrition-plan-entry { padding: 8px 11px 10px; border-radius: 13px; }
.nutrition-plan-head { justify-content: flex-start; gap: 9px; padding: 0 1px 6px; }
.nutrition-plan-head img { width: 66px; height: 40px; margin-left: -9px; object-fit: contain; }
.nutrition-plan-head h2 { font-size: 18px; }
.fuel-plan-list { padding: 2px 10px; border-radius: 11px; background: rgba(255,255,255,.82); }
.fuel-plan-row { grid-template-columns: 50px 1fr auto; gap: 8px; min-height: 56px; }
.fuel-plan-row > img { width: 46px; height: 51px; object-fit: contain; }
.fuel-plan-row > div { gap: 5px; }
.fuel-plan-row > div b { font-size: 12px; }
.fuel-plan-row > div p { color: #34473c; font-size: 11px; text-align: left; }
.nutrition-remind-switch { display: grid; justify-items: center; gap: 3px; }
.nutrition-remind-switch button { width: 43px; height: 24px; padding: 2px; border: 0; border-radius: 15px; background: #198f42; }
.nutrition-remind-switch button span { display: block; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: white; }
.nutrition-remind-switch button[aria-checked="false"] { background: #c8d0ca; }
.nutrition-remind-switch button[aria-checked="false"] span { margin-left: 0; }
.nutrition-remind-switch button:disabled { opacity: .58; }
.nutrition-remind-switch small { font-size: 9px; }
.fuel-plan-row.is-complete { background: rgba(230, 244, 226, .54); }
.fuel-plan-row.is-complete img { filter: saturate(.72); }

.analysis-plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.analysis-plan__head > div { display: grid; gap: 3px; }
.analysis-plan__head b { font-size: 13px; }
.analysis-plan__head span { color: var(--muted); font-size: 9px; }
.training-compare-table { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.training-compare-head, .training-compare-row { display: grid; grid-template-columns: .72fr 1.15fr 1.15fr 1fr; align-items: center; gap: 6px; }
.training-compare-head { min-height: 30px; padding: 0 9px; color: var(--muted); background: #eef2ed; font-size: 8px; }
.training-compare-row { min-height: 47px; padding: 7px 9px; border-top: 1px solid var(--line); font-size: 8.5px; }
.training-compare-row b { font-size: 9px; }
.training-compare-row span { color: #5d6a63; line-height: 1.35; }
.training-compare-row strong { justify-self: start; padding: 3px 5px; border-radius: 6px; font-size: 8px; line-height: 1.25; }
.training-compare-row .is-met { color: #167347; background: #e2f2e7; }
.training-compare-row .is-above { color: #196d81; background: #e1f1f4; }
.training-compare-row .is-below { color: #9a5c13; background: #fff0d5; }
.training-compare-row .is-unplanned { color: #6d6679; background: #eeeaf2; }
.analysis-evidence { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.analysis-evidence span { padding: 4px 7px; color: #496253; border: 1px solid rgba(31, 96, 61, .13); border-radius: 999px; background: #f2f6f1; font-size: 7.5px; }

/* HOME-01 · structured post-run message */
.training-performance-card { overflow: hidden; padding: 0; border-color: rgba(20,95,57,.12); background: rgba(255,255,255,.94); }
.training-performance-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 10px; background: linear-gradient(125deg, rgba(239,248,224,.96), rgba(255,255,255,.92)); }
.training-performance-card__head > div { min-width: 0; display: grid; gap: 2px; }
.training-performance-card__head span { display: flex; align-items: center; gap: 4px; color: #39805b; font-size: 7px; font-weight: 800; }
.training-performance-card__head span svg { width: 12px; height: 12px; }
.training-performance-card__head b { color: #143a27; font-size: 13px; }
.training-performance-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid rgba(26,80,51,.09); background: rgba(250,252,248,.9); }
.training-performance-metrics > div { min-width: 0; padding: 10px 8px 9px; }
.training-performance-metrics > div + div { border-left: 1px solid rgba(26,80,51,.08); }
.training-performance-metrics span, .training-performance-metrics strong { display: block; }
.training-performance-metrics span { color: #829086; font-size: 7px; }
.training-performance-metrics strong { margin-top: 4px; overflow: hidden; color: #126c43; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.training-performance-metrics strong small { color: #6f8076; font-size: 6.5px; font-weight: 500; }
.training-performance-match { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin: 10px 12px 0; padding-bottom: 9px; border-bottom: 1px solid rgba(25,79,50,.09); }
.training-performance-match > div { min-width: 0; display: grid; gap: 2px; }
.training-performance-match span { color: #859289; font-size: 7px; }
.training-performance-match b { overflow: hidden; color: #2b4435; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.training-performance-match > strong { color: #15904d; font-size: 16px; font-variant-numeric: tabular-nums; }
.training-performance-match > strong small { color: #6e7e74; font-size: 7px; font-weight: 500; }
.training-performance-summary { margin: 9px 12px 0; color: #52655a; font-size: 8.5px; line-height: 1.55; text-wrap: pretty; }
.training-performance-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 11px 12px 12px; }
.training-performance-actions:has(> :only-child) { grid-template-columns: 1fr; }
.training-performance-actions .button { min-width: 0; min-height: 34px; margin: 0; padding-inline: 7px; font-size: 8.5px; }
.training-performance-actions .button svg { width: 12px; height: 12px; }
.post-training-checkin-card {
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(29, 91, 57, .12);
  border-radius: 16px;
  background: linear-gradient(155deg, #fff, #f4f7f1);
  box-shadow: 0 10px 26px rgba(21, 67, 42, .07);
}
.post-training-checkin-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.post-training-checkin-card__head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #254936;
  font-size: 11px;
  font-weight: 800;
}
.post-training-checkin-card__head > span svg { width: 16px; color: #327d55; }
.post-training-checkin-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  padding-block: 10px;
  border-block: 1px solid rgba(30, 82, 52, .09);
}
.post-training-checkin-card__metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #7a877f;
  border-right: 1px solid rgba(30, 82, 52, .08);
  font-size: 8px;
  text-align: center;
}
.post-training-checkin-card__metrics span:last-child { border-right: 0; }
.post-training-checkin-card__metrics b {
  overflow: hidden;
  color: #1f6543;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-training-checkin-card__intro {
  margin: 10px 0 6px;
  color: #627269;
  font-size: 9px;
  line-height: 1.55;
}
.post-training-checkin-card__steps {
  border-block: 1px solid rgba(30, 82, 52, .09);
}
.post-training-checkin-card__steps button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 9px;
  width: 100%;
  min-height: 54px;
  padding: 8px 2px;
  color: #2f4a3b;
  border: 0;
  border-bottom: 1px solid rgba(30, 82, 52, .08);
  background: transparent;
  text-align: left;
}
.post-training-checkin-card__steps button:last-child { border-bottom: 0; }
.post-training-checkin-card__steps button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #337a55;
  border-radius: 8px;
  background: #e7efe7;
}
.post-training-checkin-card__steps button > span svg { width: 15px; height: 15px; }
.post-training-checkin-card__steps button b { align-self: end; font-size: 10px; }
.post-training-checkin-card__steps button small { align-self: start; color: #839087; font-size: 8px; }
.post-training-checkin-card__steps button > svg { grid-column: 3; grid-row: 1 / 3; width: 13px; color: #8a968e; }
.post-training-checkin-card__steps button.is-complete > span { color: #fff; background: #338359; }
.post-training-checkin-card__steps button:disabled { opacity: 1; cursor: default; }
.post-training-checkin-card__progress {
  height: 5px;
  margin: 11px 0 9px;
  overflow: hidden;
  border-radius: 3px;
  background: #e3e9e3;
}
.post-training-checkin-card__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #318158, #72a447);
  transition: width .24s ease;
}
.post-training-checkin-card__hint {
  display: block;
  color: #78877e;
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
}
.post-training-checkin-card > .button { width: 100%; min-height: 38px; margin-top: 2px; }
.training-performance-insights {
  display: grid;
  gap: 9px;
  margin: 10px 12px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 80, 51, .09);
}
.training-performance-insights > div { display: grid; gap: 5px; }
.training-performance-insights span { color: #397858; font-size: 8px; font-weight: 800; }
.training-performance-insights ul { display: grid; gap: 4px; margin: 0; padding-left: 14px; }
.training-performance-insights li,
.training-performance-insights p { margin: 0; color: #5d6d63; font-size: 8px; line-height: 1.5; }

/* TRAIN-ANALYSIS · current forest-science visual language */
.training-analysis-page { padding-bottom: 30px; }
.training-analysis-page .page-header { margin-bottom: 6px; }
.training-analysis-page .card { margin-top: 10px; }
.training-analysis-hero {
  position: relative;
  overflow: hidden;
  padding: 15px 14px 13px;
  color: #f8fff8;
  border-color: rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 92% 2%, rgba(255,255,255,.3), transparent 25%),
    radial-gradient(circle at 12% 115%, rgba(155,220,45,.34), transparent 39%),
    linear-gradient(138deg, #123c2b 0%, #0b7446 52%, #11a35b 100%);
  box-shadow: 0 15px 30px rgba(8,74,43,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
.training-analysis-hero::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 46px;
  width: 128px;
  height: 64px;
  opacity: .18;
  transform: rotate(-8deg);
  background: repeating-radial-gradient(ellipse at center, transparent 0 9px, rgba(255,255,255,.45) 10px 11px, transparent 12px 18px);
  pointer-events: none;
}
.training-analysis-hero__topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: rgba(245,255,247,.78); font-size: 8px; }
.training-analysis-hero__topline span { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.training-analysis-hero__topline svg { width: 12px; height: 12px; color: #c5f34f; }
.training-analysis-hero__title { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 58px; align-items: center; gap: 12px; margin: 13px 0 15px; }
.training-analysis-hero__title > div:first-child { min-width: 0; }
.training-analysis-hero__title span { color: #c9f48f; font-size: 9px; font-weight: 700; }
.training-analysis-hero__title h1 { max-width: 245px; margin: 4px 0 0; color: white; font-size: 17px; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.execution-score { display: grid; place-items: center; align-content: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 4px rgba(255,255,255,.05); backdrop-filter: blur(7px); }
.execution-score strong { font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.execution-score small { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 7px; }
.training-analysis-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(4,52,34,.28); backdrop-filter: blur(9px); }
.training-analysis-stats > div { position: relative; min-width: 0; padding: 9px 8px 8px; }
.training-analysis-stats > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.training-analysis-stats svg { position: absolute; right: 7px; top: 8px; width: 13px; height: 13px; color: rgba(198,243,91,.72); }
.training-analysis-stats span, .training-analysis-stats strong { display: block; }
.training-analysis-stats span { color: rgba(238,249,241,.62); font-size: 7.5px; }
.training-analysis-stats strong { margin-top: 5px; overflow: hidden; font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.training-analysis-stats strong small { color: rgba(255,255,255,.62); font-size: 7px; font-weight: 500; }
.training-analysis-page .analysis-copy { padding: 13px 14px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(243,249,237,.86)); }
.analysis-section-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.analysis-section-label > span { display: flex; align-items: center; gap: 5px; color: #176440; font-size: 9px; font-weight: 800; }
.analysis-section-label > span svg { width: 13px; height: 13px; color: #7bbd1d; }
.training-analysis-page .analysis-copy > p { margin: 9px 0 0; color: #2d4337; font-size: 10.5px; line-height: 1.65; text-wrap: pretty; }
.training-analysis-page .analysis-evidence { gap: 5px; margin-top: 10px; }
.training-analysis-page .analysis-evidence span { padding: 4px 7px; color: #4d6658; border-color: rgba(36,102,63,.1); background: rgba(233,243,229,.72); font-size: 7px; }
.training-analysis-page .analysis-plan { padding: 13px 12px 12px; background: rgba(255,255,255,.9); }
.training-analysis-page .analysis-plan__head { align-items: end; margin: 0 2px 10px; }
.training-analysis-page .analysis-plan__head > div { gap: 2px; }
.training-analysis-page .analysis-plan__head span { color: #4e8d68; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.training-analysis-page .analysis-plan__head b { color: #173c29; font-size: 14px; }
.training-analysis-page .analysis-plan__head > small { color: #7c8c83; font-size: 8px; }
.training-analysis-page .training-compare-table { border-color: rgba(30,83,53,.1); border-radius: 9px; }
.training-analysis-page .training-compare-head,
.training-analysis-page .training-compare-row { grid-template-columns: .78fr 1.12fr 1.12fr 1.08fr; gap: 6px; }
.training-analysis-page .training-compare-head { min-height: 27px; color: #809087; background: #f2f5f0; font-size: 7px; letter-spacing: .04em; }
.training-analysis-page .training-compare-row { min-height: 43px; padding-block: 6px; border-color: rgba(32,78,52,.08); font-size: 8px; }
.training-analysis-page .training-compare-row:nth-child(odd) { background: rgba(247,249,245,.62); }
.training-analysis-page .training-compare-row b { color: #254333; font-size: 8.5px; }
.training-analysis-page .training-compare-row span { color: #5c6f64; }
.training-analysis-page .training-compare-row strong { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 5px; border-radius: 6px; font-size: 7px; font-weight: 700; }
.training-analysis-page .training-compare-row strong i { flex: 0 0 auto; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.analysis-followup { margin-top: 9px; padding: 0 2px; border-block: 1px solid rgba(20,88,55,.1); }
.analysis-followup .ai-summary { min-height: 54px; border: 0; }
.analysis-followup .ai-summary__copy b { color: #1a4931; font-size: 10px; }
.analysis-followup .go-see { min-height: 30px; padding-inline: 8px; }
.analysis-nutrition-feedback { display: grid; grid-template-columns: 28px 1fr 14px; align-items: center; gap: 8px; width: 100%; padding: 10px 8px; border: 0; border-top: 1px solid rgba(20,88,55,.1); color: #164f33; background: transparent; text-align: left; cursor: pointer; }
.analysis-nutrition-feedback > svg:first-child { width: 20px; height: 20px; padding: 5px; box-sizing: content-box; border-radius: 9px; background: #e6f2e3; }
.analysis-nutrition-feedback span, .analysis-nutrition-feedback b, .analysis-nutrition-feedback small { display: block; min-width: 0; }
.analysis-nutrition-feedback b { font-size: 10px; }
.analysis-nutrition-feedback small { margin-top: 2px; color: #718078; font-size: 8px; line-height: 1.4; }
.training-analysis-page .adjustment-card { padding: 13px 14px 14px; background: linear-gradient(145deg, #fbfcf7, #f2f7ea); }
.adjustment-card__head { display: flex; align-items: center; gap: 9px; }
.adjustment-card__head > span { display: grid; place-items: center; width: 31px; height: 31px; color: #14683f; border-radius: 9px; background: linear-gradient(145deg, #dff2ae, #c5e87b); }
.adjustment-card__head svg { width: 16px; height: 16px; }
.adjustment-card__head div { display: grid; gap: 1px; }
.adjustment-card__head small { color: #5d956e; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.adjustment-card__head b { color: #173d29; font-size: 12px; }
.training-analysis-page .adjustment-card > p { margin-top: 9px; color: #40554a; font-size: 10px; line-height: 1.6; }
.training-analysis-page .adjustment-card .bottom-actions { margin-top: 11px; }

.schedule-scope-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 0; padding: 3px; border-radius: 11px; background: rgba(24,72,48,.07); }
.schedule-scope-tabs button { min-height: 31px; color: #67756e; border: 0; border-radius: 8px; background: transparent; font-size: 9px; font-weight: 700; }
.schedule-scope-tabs button.active { color: #124c32; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(30,70,48,.08); }
.cycle-overview-entry { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 34px; margin-top: 8px; color: #176b43; border: 0; border-top: 1px solid rgba(24,72,48,.1); background: transparent; font-size: 9px; font-weight: 800; }
.cycle-overview-entry svg { width: 13px; }
.training-cycle-overview { display: grid; gap: 8px; padding-bottom: 12px; }
.cycle-overview-head { display: flex; justify-content: space-between; align-items: end; padding: 8px 2px 3px; }
.cycle-overview-head span { color: #347154; font-size: 8px; }
.cycle-overview-head h2 { margin: 2px 0 0; font-size: 17px; }
.cycle-overview-head strong { color: #147145; font-size: 21px; }
.cycle-overview-head small { color: #748078; font-size: 9px; }
.cycle-stage { display: grid; gap: 7px; padding: 9px 0 3px; border-top: 1px solid rgba(25, 83, 53, .1); }
.cycle-stage__head { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 0 2px; }
.cycle-stage__head > span { width: 27px; height: 27px; display: grid; place-items: center; color: white; border-radius: 9px; background: #0b7b49; font-size: 10px; font-weight: 900; }
.cycle-stage__head > div { display: grid; gap: 2px; }
.cycle-stage__head b { color: #1a3829; font-size: 11px; }
.cycle-stage__head small { color: #75857c; font-size: 7px; }
.cycle-stage__head em { color: #54806a; font-size: 7px; font-style: normal; }
.cycle-week-card { padding: 10px; box-shadow: none; }
.cycle-week-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cycle-week-title span { display: grid; gap: 2px; }
.cycle-week-title b { font-size: 11px; }
.cycle-week-title small { color: #7a867f; font-size: 8px; }
.cycle-week-title em { color: #28724c; font-size: 8px; font-style: normal; }
.cycle-week-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cycle-week-days button { display: grid; justify-items: center; gap: 2px; min-height: 54px; padding: 5px 2px; color: #526158; border: 1px solid rgba(24,72,48,.08); border-radius: 10px; background: #f5f7f3; }
.cycle-week-days button span, .cycle-week-days button small { font-size: 7px; }
.cycle-week-days button b { font-size: 11px; }
.cycle-week-days button.is-selected { color: #0c6940; border-color: rgba(18,121,70,.35); background: #e8f4df; }
.cycle-week-days button.is-done small { color: #14834b; font-weight: 800; }
.training-rest-day { display: flex; align-items: center; gap: 11px; min-height: 88px; padding: 15px; box-shadow: none; }
.training-rest-day > svg { width: 31px; color: #63806e; }
.training-rest-day b { font-size: 13px; }
.training-rest-day p { margin: 4px 0 0; color: #728078; font-size: 9px; line-height: 1.5; }
.record-date-summary { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; margin-top: 9px; padding: 11px; box-shadow: none; }
.record-date-summary > svg { color: #167548; }
.record-date-summary > div { display: grid; gap: 3px; }
.record-date-summary b { font-size: 11px; }
.record-date-summary span { color: #6b7971; font-size: 8px; }

.training-history-view { display: grid; gap: 12px; padding-top: 10px; }
.history-month-card { padding: 14px; border-color: #d9e4dc; background: linear-gradient(150deg, #fff 0%, #f7faf7 100%); }
.history-month-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; text-align: center; }
.history-month-head button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d8e1da; border-radius: 50%; background: #fff; color: #3b5145; }
.history-month-head button svg { width: 17px; }
.history-month-head span { color: #7b8b81; font-size: 9px; letter-spacing: .08em; }
.history-month-head h2 { margin: 2px 0 0; color: #20332a; font-size: 16px; }
.history-month-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 13px 0 12px; padding: 10px 0; border-block: 1px solid #e5ebe6; }
.history-month-metrics > div { padding: 0 8px; border-right: 1px solid #e5ebe6; }
.history-month-metrics > div:last-child { border-right: 0; }
.history-calendar-disclosure { border-top: 1px solid #e5ebe6; }
.history-calendar-disclosure summary { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0 0; color: #446354; font-size: 9px; font-weight: 800; cursor: pointer; list-style: none; }
.history-calendar-disclosure summary::-webkit-details-marker { display: none; }
.history-calendar-disclosure summary svg { width: 14px; }
.history-calendar-disclosure[open] summary { margin-bottom: 8px; }
.history-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.history-calendar__weekday { padding: 4px 0 6px; color: #8a978f; font-size: 8px; text-align: center; }
.history-calendar > button, .history-calendar__empty { aspect-ratio: 1; min-width: 0; }
.history-calendar > button { position: relative; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #53645a; font-size: 10px; }
.history-calendar > button:hover { background: #edf3ee; }
.history-calendar > button.has-plan { background: #f1f5ef; }
.history-calendar > button.has-activity { background: #dfeee4; color: #164c32; font-weight: 700; }
.history-calendar > button.selected { box-shadow: inset 0 0 0 1.5px #2b7650; }
.history-calendar > button i { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #9baa9f; }
.history-calendar > button.has-activity i { background: #2b7650; }
.history-calendar-legend { display: flex; justify-content: center; gap: 14px; margin-top: 10px; color: #7c8b82; font-size: 8px; }
.history-calendar-legend span { display: flex; align-items: center; gap: 5px; }
.history-calendar-legend i { width: 7px; height: 7px; border-radius: 50%; background: #9baa9f; }
.history-calendar-legend i.activity { background: #2b7650; }
.history-activity-list { display: grid; gap: 8px; }
.history-activity-card { display: grid; grid-template-columns: 34px 1fr auto 14px; align-items: center; gap: 9px; padding: 11px; cursor: pointer; box-shadow: none; }
.history-activity-card > svg { width: 14px; color: #9aa79f; }
.history-activity-date { display: grid; justify-items: center; padding-right: 8px; border-right: 1px solid #e6ebe7; }
.history-activity-date strong { color: #254e38; font-size: 17px; line-height: 1; }
.history-activity-date span { margin-top: 3px; color: #839087; font-size: 8px; }
.history-activity-copy { min-width: 0; display: grid; gap: 3px; }
.history-activity-copy b { overflow: hidden; color: #26352d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.history-activity-copy span { color: #53645a; font-size: 9px; }
.history-activity-copy small { color: #89958d; font-size: 8px; }
.record-selected-plan { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 14px; align-items: center; gap: 9px; padding: 11px; border-color: #bad2c0; background: linear-gradient(110deg, #eef6ee, #fff); cursor: pointer; box-shadow: none; }
.record-selected-plan__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #dcecdf; color: #246442; }
.record-selected-plan__icon svg { width: 17px; }
.record-selected-plan > div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.record-selected-plan span, .record-selected-plan small { color: #76867b; font-size: 8px; }
.record-selected-plan b { overflow: hidden; color: #26382e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.record-selected-plan > svg { width: 14px; color: #8a998f; }
.history-calendar > button.has-adjusted-plan { box-shadow: inset 0 0 0 1.5px #477ed1; }
.history-calendar > button.has-adjusted-plan i { background: #477ed1; }
.history-plan-changes { padding: 0; overflow: hidden; box-shadow: none; }
.history-plan-changes > button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-bottom: 1px solid #e6ece7; background: #fff; text-align: left; }
.history-plan-changes > button:last-child { border-bottom: 0; }
.history-plan-changes > button > svg:first-child { width: 16px; color: #477ed1; }
.history-plan-changes > button > svg:last-child { width: 14px; color: #99a69e; }
.history-plan-changes > button > span { min-width: 0; display: grid; gap: 3px; }
.history-plan-changes b { overflow: hidden; color: #293a31; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.history-plan-changes small { color: #7b8980; font-size: 8px; }
.history-plan-changes > p { margin: 0; padding: 13px; color: #7d8b82; font-size: 9px; text-align: center; }
.plan-adjustment-diff { grid-template-columns: 1fr auto; }
.plan-adjustment-diff > div:first-child span { display: flex; align-items: center; gap: 4px; }
.plan-adjustment-diff > div:first-child span svg { width: 11px; }
.plan-adjustment-diff > small { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #748279; font-size: 8px; }
.plan-adjustment-diff > small svg { width: 11px; }

.nutrition-reminder-settings .page-intro { margin-top: 8px; }
.nutrition-reminder-list { display: grid; gap: 10px; margin: 12px 0; }
.nutrition-reminder-editor { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 13px; box-shadow: none; }
.nutrition-reminder-editor > img { width: 52px; height: 58px; object-fit: contain; border-radius: 10px; background: #f5f7f3; }
.nutrition-reminder-editor__copy { min-width: 0; display: grid; align-content: center; gap: 3px; }
.nutrition-reminder-editor__copy span, .nutrition-reminder-editor__copy small { color: #718077; font-size: 8px; }
.nutrition-reminder-editor__copy b { color: #26362d; font-size: 10px; }
.nutrition-reminder-editor label { grid-column: 1 / -1; display: grid; grid-template-columns: auto 68px auto; justify-content: center; align-items: center; gap: 8px; color: #4b5d53; font-size: 9px; }
.nutrition-reminder-editor input { width: 68px; height: 34px; border: 1px solid #b8c9bd; border-radius: 9px; background: #f9fbf9; color: #19482f; font: 700 13px/1 inherit; text-align: center; }
.reminder-minute-presets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.reminder-minute-presets button { min-height: 30px; border: 1px solid #dce5de; border-radius: 8px; background: #f6f8f6; color: #5d6e64; font-size: 8px; }
.reminder-minute-presets button.selected { border-color: #2e7651; background: #e3efe7; color: #21583c; font-weight: 700; }
.record-week-card { margin-bottom: 9px; }
.nutrition-entry-actions { gap: 9px; margin-top: 8px; }
.nutrition-entry-actions .button { min-height: 34px; padding-block: 7px; }
.nutrition-entry-actions .button--primary { color: white; background: var(--green-gradient); border-color: transparent; }
.nutrition-entry-actions .button--secondary { color: #0c633b; background: rgba(255,255,255,.7); border-color: #176f45; }
.meal-summary { padding: 2px 10px; }
.meal-summary > button { display: grid; grid-template-columns: 50px 1fr auto auto 13px; align-items: center; gap: 7px; width: 100%; min-height: 53px; padding: 0; border: 0; border-bottom: 1px solid rgba(24, 74, 49, .09); background: transparent; text-align: left; }
.meal-summary > button:last-child { border-bottom: 0; }
.meal-summary > button > img { width: 48px; height: 48px; object-fit: contain; object-position: center; transform-origin: center; }
.meal-summary > button > img.meal-image--breakfast { transform: scale(1); }
.meal-summary > button > img.meal-image--lunch { transform: scale(1.04); }
.meal-summary > button > img.meal-image--dinner { transform: scale(1.04); }
.meal-summary > button > img.meal-image--snack { transform: scale(.78); }
.meal-summary > button > span { font-size: 12px; font-weight: 700; }
.meal-summary > button > b { font-size: 10px; font-weight: 500; }
.meal-summary > button > svg { width: 14px; color: #0a5735; }
.nutrition-ai-entry { grid-template-columns: 35px 1fr auto; min-height: 44px; padding: 6px 10px; border-radius: 11px; }
.nutrition-ai-entry p { color: #293b31; font-size: 10px; }

.profile-page-v21 .hub-subtitle { margin-top: -6px; }
.profile-page-v21 .profile-hero { min-height: 96px; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 11px 12px; border-radius: 13px; }
.profile-page-v21 .profile-avatar { width: 68px; height: 68px; }
.profile-page-v21 .profile-hero h1 { font-size: 18px; }
.profile-page-v21 .profile-hero p { margin-top: 4px; font-size: 11px; }
.profile-page-v21 .profile-hero > button { display: flex; align-items: center; gap: 4px; min-height: 31px; padding: 5px 8px; border-radius: 7px; font-size: 10px; }
.profile-page-v21 .profile-hero > button svg { width: 14px; }
.profile-completion { gap: 5px; margin-top: 10px; }
.profile-completion b { color: #27372f; font-size: 9px; font-weight: 500; }
.profile-completion > span { width: 100%; height: 4px; }
.profile-goal { display: grid; grid-template-columns: 88px 1fr 14px; min-height: 102px; gap: 10px; margin-top: 9px; padding: 8px 12px 8px 7px; background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.92), transparent 32%), linear-gradient(112deg, #fbf8e8, #eff7d7); }
.profile-goal > img { width: 98px; height: 94px; margin-left: -7px; object-fit: contain; }
.profile-goal > div { gap: 6px; }
.profile-goal > div small { color: #147443; font-size: 11px; }
.profile-goal > div b { color: #17231d; font-size: 16px; }
.profile-goal > div span { display: flex; align-items: center; gap: 6px; color: #35483d; font-size: 10px; }
.profile-goal > div span i { color: #8a978f; font-style: normal; }
.profile-goal > div span svg { width: 15px; color: #0f8a4b; }
.profile-goal > div .profile-training-days { color: #6b7b72; font-size: 9px; }
.profile-goal > svg { width: 15px; color: #0a4b30; }
.profile-goal--readonly { cursor: default; }
.profile-page-v21 .device-summary { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; padding: 2px 11px; }
.profile-device-main { display: grid; grid-template-columns: 85px 1fr 14px; align-items: center; gap: 5px; min-height: 75px; padding: 0; border: 0; border-bottom: 1px solid rgba(23,72,48,.1); background: transparent; text-align: left; }
.profile-device-main img { width: 92px; height: 78px; margin-left: -8px; object-fit: contain; }
.profile-device-main span { display: grid; gap: 5px; }
.profile-device-main b { font-size: 13px; }
.profile-device-main small { color: #52655b; font-size: 10px; }
.profile-device-main > svg { width: 14px; }
.profile-device-health { display: grid; grid-template-columns: 34px 1fr 14px; align-items: center; gap: 7px; min-height: 46px; padding: 0; border: 0; background: transparent; text-align: left; font-size: 11px; }
.profile-device-health > svg { width: 24px; color: #0d6b41; }
.profile-device-health > svg:last-child { width: 14px; color: #23372c; }
.profile-device-sync { position: absolute; right: 37px; top: 29px; min-height: 25px; padding: 3px 7px; color: #46714f; border: 0; border-radius: 6px; background: #eff5e7; font-size: 9px; }
.profile-insights { padding: 2px 11px; }
.profile-insights > button, .profile-insights > div { display: grid; grid-template-columns: 42px 1fr 14px; align-items: center; gap: 8px; width: 100%; min-height: 55px; padding: 0; border: 0; border-bottom: 1px solid rgba(23,72,48,.1); background: transparent; text-align: left; }
.profile-insights > button:last-child, .profile-insights > div:last-child { border-bottom: 0; }
.profile-insights > button > img, .profile-insights > div > img { width: 40px; height: 45px; object-fit: contain; }
.profile-insights > button > img { transform: none; }
.profile-insights > button > svg, .profile-insights > div > svg { width: 28px; color: #159557; }
.profile-insights > button > svg:last-child { width: 14px; color: #23372c; }
.profile-insights span { display: grid; gap: 4px; }
.profile-insights b { font-size: 12px; }
.profile-insights small { color: #5d6b63; font-size: 10px; }
.profile-settings-actions { border-radius: 12px; }
.profile-settings-actions button { min-height: 42px; padding: 0 11px; font-size: 11px; }
.profile-coach-entry { min-height: 44px; padding: 6px 10px; border-radius: 11px; }
.profile-coach-entry b { font-size: 12px; }
.profile-coach-entry span { font-size: 10px; }
.profile-basis { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 12px 0 2px; color: #69786f; font-size: 9px; }
.profile-basis svg { width: 14px; }

.bottom-nav { height: 57px; }
.screen-content.has-bottom-nav { bottom: 70px; }
.bottom-nav button { gap: 2px; color: #183b2b; }
.bottom-nav button svg { width: 24px; height: 24px; padding: 0; stroke-width: 1.6; }
.bottom-nav button > img { width: 32px; height: 27px; object-fit: contain; filter: saturate(.78) brightness(.9); transform: scale(var(--nav-icon-scale, 1)); }
.bottom-nav button:nth-child(1) > img { --nav-icon-scale: 1.08; }
.bottom-nav button:nth-child(2) > img { --nav-icon-scale: 1; }
.bottom-nav button:nth-child(3) > img { --nav-icon-scale: 1.24; }
.bottom-nav button:nth-child(4) > img { --nav-icon-scale: 1.02; }
.bottom-nav button:nth-child(4) > img { border-radius: 50%; }
.bottom-nav button.is-active > img { filter: none; }
.bottom-nav button.is-active svg { width: 25px; height: 25px; padding: 0; color: #16a339; background: transparent; border-radius: 0; box-shadow: none; fill: rgba(75, 185, 37, .18); }
.bottom-nav button span { font-size: 10px; font-weight: 500; }
.bottom-nav button.is-active span { color: #0d8a3f; font-weight: 800; }
.training-today-metrics strong { font-variant-numeric: tabular-nums; }
.training-pace-metric strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.08;
  white-space: nowrap;
}
.training-today-metrics .training-pace-range { display: inline-flex; order: 0; align-items: baseline; gap: 2px; color: inherit; font-size: 14px; font-weight: 800; }
.training-pace-range > i { color: #507063; font-size: 11px; font-style: normal; font-weight: 600; }
.training-pace-metric strong > small { margin-top: 3px; color: #66786d; line-height: 1; }
.composer { grid-template-columns: 1fr 34px 44px; }
.composer .composer-attach { width: 34px; color: #18231d; background: transparent; box-shadow: none; }
.composer .composer-send { width: 44px; color: white; background: var(--green-gradient); }

/* V23 · unified mobile typography and text-flow rhythm */
.phone-screen {
  color: var(--ink);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.page-header__title,
.page-header__title strong,
.section-title,
.section-title h2,
.agent-card__head,
.agent-card__head > span,
.button {
  min-width: 0;
}
.page-header__title strong {
  font-size: var(--type-page-title);
  line-height: 1.2;
  text-wrap: balance;
}
.section-title h2 {
  font-size: var(--type-section-title);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.card,
.message-stack,
.agent-card,
.agent-card__head > span {
  min-width: 0;
}
.card :where(p, span, small, b, strong),
.message-bubble,
.button {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}
.agent-card__head {
  gap: 10px;
  align-items: center;
}
.agent-card__head > span {
  flex: 1 1 auto;
  font-size: var(--type-card-title);
  line-height: var(--leading-tight);
}
.agent-card__head .status-badge {
  flex: 0 0 auto;
  align-self: center;
}
.agent-card > p,
.training-feedback-prompt > p {
  margin: 10px 0 0;
  color: #53645b;
  font-size: var(--type-body);
  line-height: var(--leading-body);
  text-wrap: pretty;
}
.training-feedback-prompt .button {
  min-height: 36px;
  margin-top: 11px;
  padding: 7px 12px;
  font-size: var(--type-button);
  line-height: 1.35;
}
.button {
  font-size: var(--type-button);
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}
.status-badge {
  font-size: var(--type-caption);
  line-height: 1.25;
}
.message-bubble {
  font-size: 11px;
  line-height: 1.6;
}
.page-intro p,
.lead,
.incomplete-chat-card p,
.empty-state p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}
.field > span,
.choice-field > b,
.score-field__head b {
  font-size: var(--type-card-title);
  line-height: var(--leading-tight);
}
.metric strong,
.training-performance-metrics strong,
.training-analysis-stats strong,
.home-health-metrics strong {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .prototype-stage { background: var(--paper); }
}

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { opacity: .55; } to { opacity: 1; } }
@keyframes conditional-in { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 980px) {
  .prototype-stage { grid-template-columns: 250px 430px; gap: 22px; }
  .stage-note { display: none; }
}

@media (max-width: 720px) {
  .prototype-stage { display: block; min-height: 100svh; padding: 0; background: var(--paper); }
  .demo-dock, .stage-note { display: none; }
  .phone-wrap, .phone-frame, .phone-screen { width: 100%; height: 100svh; }
  .phone-frame { padding: 0; border-radius: 0; box-shadow: none; }
  .phone-screen { border-radius: 0; }
  .status-bar { padding-top: max(10px, env(safe-area-inset-top)); height: calc(34px + env(safe-area-inset-top)); }
  .screen-content { top: calc(34px + env(safe-area-inset-top)); bottom: env(safe-area-inset-bottom); }
  .screen-content.has-bottom-nav { bottom: calc(73px + env(safe-area-inset-bottom)); }
  .bottom-nav { bottom: env(safe-area-inset-bottom); }
  .home-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Modal isolation: keep the auth sheet above both page content and tab bar. */
.bottom-nav-lock { display: contents; }
.phone-modal-layer {
  position: absolute;
  z-index: 120;
  inset: 34px 0 13px;
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  overscroll-behavior: none;
}
.phone-modal-layer .auth-gate {
  inset: 0;
  padding-top: 0;
  overscroll-behavior: none;
}
.phone-modal-layer .auth-page--embedded {
  max-height: calc(100% - 18px);
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.screen-content[inert],
.bottom-nav-lock[inert] {
  pointer-events: none;
  user-select: none;
}
.anthropometric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.anthropometric-grid .field { min-width: 0; }
.anthropometric-grid .unit-input { min-width: 0; }
.anthropometric-grid input { min-width: 0; width: 100%; }
.field-error { margin: -8px 0 12px; color: #a44734; font-size: 12px; line-height: 1.45; }

.incomplete-profile-card,
.profile-completion-entry,
.incomplete-chat-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-color: rgba(39, 94, 70, .16);
  background: linear-gradient(145deg, rgba(245, 250, 237, .98), rgba(255, 255, 255, .96));
}

.incomplete-profile-card { margin-top: 20px; text-align: left; }
.incomplete-profile-card h1,
.profile-completion-entry h2 { margin: 0; color: var(--ink); }
.incomplete-profile-card p,
.profile-completion-entry p,
.incomplete-chat-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.incomplete-profile-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: var(--green); background: rgba(103, 190, 58, .12); }
.incomplete-chat-card { margin-top: 8px; }
.incomplete-chat-card > svg { color: var(--green); }
.profile-hero--incomplete { opacity: .92; }
.step-card__head { display: flex; align-items: center; justify-content: space-between; }
.step-card__head > small { color: #587066; font-size: 9px; font-variant-numeric: tabular-nums; }
.step-card__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: #2f6550; font-size: 9px; font-weight: 800; font-variant-numeric: tabular-nums; }
.step-card__next { display: block; margin-top: 8px; padding-top: 8px; color: #697a71; border-top: 1px solid rgba(22,85,52,.1); font-size: 9px; }
.profile-hero--account-entry { cursor: pointer; }
.profile-hero--account-entry:focus-visible { outline: 3px solid rgba(34, 171, 91, .28); outline-offset: 2px; }
.profile-hero-link { display: grid; justify-items: end; gap: 4px; color: #2d5c44; }
.profile-hero-link small { font-size: 9px; white-space: nowrap; }
.profile-hero-link svg { width: 16px; }
.profile-service-actions button { grid-template-columns: 30px 1fr 18px; min-height: 50px; padding: 5px 11px; }
.profile-service-actions button > span { display: grid; gap: 3px; }
.profile-service-actions button b { color: #17251e; font-size: 11px; }
.profile-service-actions button small { color: #718078; font-size: 9px; }

.utility-page { padding-bottom: 22px; }
.utility-hero, .form-intro { display: grid; justify-items: center; gap: 7px; margin: 10px 0 17px; padding: 21px 18px; border: 1px solid rgba(27, 108, 67, .12); border-radius: 18px; background: linear-gradient(145deg, rgba(241,249,233,.98), rgba(255,255,255,.94)); text-align: center; box-shadow: 0 10px 28px rgba(21,71,44,.07); }
.utility-hero > svg, .form-intro > svg { width: 35px; height: 35px; padding: 8px; color: #0f8150; border-radius: 13px; background: rgba(32, 157, 83, .11); }
.utility-hero span { color: #1d824f; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.utility-hero h1, .form-intro h1 { margin: 0; font-size: 19px; }
.utility-hero p, .form-intro p { margin: 0; color: #69776f; font-size: 10px; line-height: 1.55; }
.form-intro--warm { background: linear-gradient(145deg, rgba(255,246,226,.98), rgba(247,252,239,.95)); }
.form-intro--warm > svg { color: #d96b21; background: rgba(238,126,48,.12); }
.settings-list { overflow: hidden; border: 1px solid rgba(19,88,55,.11); border-radius: 15px; background: rgba(255,255,255,.88); box-shadow: 0 9px 24px rgba(20,67,43,.06); }
.settings-list__row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 56px; padding: 7px 12px; color: #17251e; border: 0; border-bottom: 1px solid rgba(23,72,48,.09); background: transparent; text-align: left; }
.settings-list button.settings-list__row { cursor: pointer; }
.settings-list__row:last-child { border-bottom: 0; }
.settings-list__row > svg:first-child { width: 20px; color: #16814f; }
.settings-list__row > svg:last-child { width: 15px; color: #718078; }
.settings-list__row > span { display: grid; gap: 3px; }
.settings-list__row b { font-size: 11px; }
.settings-list__row small { color: #718078; font-size: 9px; }
.settings-list--danger .settings-list__row > svg:first-child, .settings-list--danger .settings-list__row b { color: #a44734; }
.logout-button { color: #9b3e31; border-color: rgba(164,71,52,.24); background: rgba(255,255,255,.75); }
.utility-footnote { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 13px 0 0; color: #76837c; font-size: 9px; text-align: center; }
.utility-footnote svg { width: 13px; }
.phone-field, .verification-field { display: grid; align-items: center; overflow: hidden; border: 1px solid rgba(24,80,52,.17); border-radius: 13px; background: rgba(255,255,255,.86); }
.phone-field { grid-template-columns: 50px 1fr; }
.phone-field b { padding-left: 13px; color: #375746; font-size: 11px; }
.phone-field input, .verification-field input { min-width: 0; border: 0; background: transparent; }
.verification-field { grid-template-columns: 1fr auto; }
.verification-field button { min-height: 40px; padding: 0 12px; color: #0b7c49; border: 0; border-left: 1px solid rgba(24,80,52,.12); background: rgba(232,247,224,.65); font-size: 10px; font-weight: 800; }
.verification-field button:disabled { color: #9ca8a1; background: #f4f6f3; }
.form-hint { margin: -5px 0 8px; color: #2c8353; font-size: 9px; }
.choice-list { display: grid; gap: 9px; }
.choice-list button { display: flex; align-items: center; justify-content: space-between; min-height: 59px; padding: 10px 14px; color: #17251e; border: 1px solid rgba(23,72,48,.11); border-radius: 14px; background: rgba(255,255,255,.86); text-align: left; }
.choice-list button.selected { border-color: rgba(28,147,76,.44); background: linear-gradient(120deg, rgba(239,249,229,.95), rgba(255,255,255,.96)); box-shadow: 0 8px 20px rgba(29,110,65,.08); }
.choice-list button > span { display: grid; gap: 4px; }
.choice-list button b { font-size: 12px; }
.choice-list button small { color: #718078; font-size: 9px; }
.choice-list button svg { width: 18px; color: #14914e; }
.app-mark { display: grid; justify-items: center; gap: 7px; margin: 12px 0 19px; text-align: center; }
.app-mark > div { width: 60px; height: 60px; display: grid; place-items: center; color: white; border-radius: 18px; background: linear-gradient(145deg, #fb841f, #ed3f13); box-shadow: inset 0 1px rgba(255,255,255,.55), 0 10px 25px rgba(224,75,18,.22); font-size: 18px; font-weight: 900; letter-spacing: -.04em; }
.app-mark h1 { margin: 3px 0 0; font-size: 18px; }
.app-mark p { max-width: 285px; margin: 0; color: #69776f; font-size: 10px; line-height: 1.65; }
.app-mark--about { padding: 20px 13px; border-radius: 20px; background: radial-gradient(circle at 18% 12%, rgba(255,255,255,.9), transparent 36%), linear-gradient(145deg, #eef8dd, #fffaf0); }
.about-principles { padding: 4px 13px; }
.about-principles > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; min-height: 62px; border-bottom: 1px solid rgba(23,72,48,.09); }
.about-principles > div:last-child { border-bottom: 0; }
.about-principles svg { width: 21px; color: #16814f; }
.about-principles span { display: grid; gap: 4px; }
.about-principles b { font-size: 11px; }
.about-principles small { color: #718078; font-size: 9px; line-height: 1.45; }
.legal-updated { margin: 10px 0; color: #75817a; font-size: 9px; text-align: center; }
.legal-document { display: grid; gap: 10px; }
.legal-document section { padding: 14px; border: 1px solid rgba(23,72,48,.11); border-radius: 14px; background: rgba(255,255,255,.86); }
.legal-document h2 { margin: 0 0 7px; font-size: 13px; }
.legal-document p { margin: 0; color: #596a61; font-size: 10px; line-height: 1.75; }
.utility-page textarea, .utility-page select { width: 100%; border: 1px solid rgba(24,80,52,.17); border-radius: 13px; background: rgba(255,255,255,.86); font: inherit; }
.utility-page textarea { min-height: 118px; padding: 11px 12px; resize: vertical; line-height: 1.6; }
.utility-page select { min-height: 42px; padding: 0 12px; }
.utility-page .field > small { justify-self: end; color: #7d8983; font-size: 9px; }
.profile-completion-entry { margin-top: 14px; }
.profile-completion-entry > svg { color: var(--green); }
.profile-locked-features { display: grid; gap: 0; }
.profile-locked-features > div { display: flex; align-items: center; gap: 12px; padding: 14px 2px; color: var(--muted); }
.profile-locked-features > div + div { border-top: 1px solid rgba(28, 57, 45, .09); }
.profile-locked-features span { display: grid; gap: 3px; }
.profile-locked-features b { color: var(--ink); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* V22 · cross-module visual polish: quieter surfaces, stronger rhythm, one clear action hierarchy */
:root {
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #e3e8e1;
  --muted: #68756e;
  --shadow: 0 12px 32px rgba(23, 55, 38, .07);
  --shadow-small: 0 4px 14px rgba(23, 55, 38, .045);
}
.phone-screen, .screen-content { background: var(--paper); }
.screen-content { overscroll-behavior: contain; }
.page { padding-inline: 20px; padding-bottom: 30px; }
.hub-page { padding-bottom: 34px; }
.page-header { height: 58px; margin-bottom: 10px; }
.page-header__title strong { color: #123c2b; font-size: 17px; font-weight: 750; }
.page-header__title span { color: rgba(18,60,43,.62); font-size: 8px; }
.icon-button, .header-actions button { border: 1px solid rgba(24, 78, 52, .1); background: rgba(255,255,255,.74); }
.card { border-color: rgba(24, 78, 52, .1); border-radius: 18px; box-shadow: var(--shadow-small); }
.section-title { min-height: 48px; margin-top: 10px; }
.section-title h2 { color: #173b2b; font-size: 16px; font-weight: 750; }
.button { min-height: 44px; border-radius: 12px; font-size: 11px; font-weight: 750; box-shadow: none; }
.button--primary { background: #0f7848; border-color: #0f7848; }
.button--primary:hover { background: #0b633b; }
.button--secondary { color: #0f6840; border-color: rgba(15,104,64,.38); background: rgba(255,255,255,.82); }
.status-badge { min-height: 24px; padding-inline: 9px; font-size: 9px; }
.metric strong, .training-analysis-stats strong, .nutrition-status-row b, .nutrition-status-row strong { font-variant-numeric: tabular-nums; }

/* Navigation */
.bottom-nav { height: 64px; background: rgba(255,255,255,.985); border-top-color: rgba(24,78,52,.09); box-shadow: 0 -5px 18px rgba(24,78,52,.045); }
.bottom-nav button { gap: 3px; color: #6e7c74; }
.bottom-nav button span { font-size: 10px; font-weight: 650; }
.bottom-nav button.is-active { color: #087a46; }
.bottom-nav button.is-active svg { background: #e7f3e5; border-radius: 9px; }

/* Home / Agent */
.home-page--v21 { padding-inline: 16px; }
.home-v21-flow { gap: 11px; }
.message-bubble { border-color: rgba(24,78,52,.09); border-radius: 16px 16px 16px 5px; box-shadow: 0 3px 12px rgba(23,55,38,.04); }
.message-row--user .message-bubble { border-radius: 16px 16px 5px 16px; }
.home-training-card { border-color: rgba(23,111,65,.13); box-shadow: 0 8px 24px rgba(29,89,55,.07); }
.home-health-metrics { padding-block: 12px; }
.agent-question-suggestions { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(24,78,52,.08); }
.quick-replies { gap: 8px; }
.quick-replies button { min-height: 40px; border-radius: 11px; color: #155f3b; border-color: rgba(15,104,64,.28); background: rgba(255,255,255,.84); }
.composer { min-height: 58px; border-radius: 18px; border-color: rgba(24,78,52,.13); box-shadow: 0 -4px 18px rgba(23,55,38,.06); }

/* Training hub and execution */
.hub-subtitle { color: rgba(18,60,43,.7); }
.segmented, .schedule-scope-tabs { padding: 4px; border: 1px solid rgba(24,78,52,.11); border-radius: 14px; background: #edf1eb; box-shadow: none; }
.segmented button, .schedule-scope-tabs button { min-height: 38px; border-radius: 10px; font-weight: 700; }
.segmented button.active, .schedule-scope-tabs button.active { color: #0c633b; background: white; box-shadow: 0 2px 8px rgba(23,55,38,.06); }
.record-week-card, .cycle-card, .plan-card, .training-card, .training-day-card { border-color: rgba(24,78,52,.1); box-shadow: var(--shadow-small); }
.cycle-card { padding: 16px; }
.plan-card, .record-card { gap: 12px; }
.training-day-card { overflow: hidden; }
.training-day-card .bottom-actions { margin-top: 12px; }
.training-return-today { min-height: 42px; border-radius: 12px; box-shadow: none; }

/* Nutrition */
.nutrition-home-v21 .nutrition-day-context { margin-bottom: 10px; padding: 12px 13px; }
.nutrition-status-card { padding: 16px; }
.nutrition-status-head { margin-bottom: 8px; }
.nutrition-status-row { min-height: 58px; }
.hydration-quick-actions { gap: 10px; }
.hydration-quick-actions button { min-height: 82px; border-color: rgba(24,78,52,.1); border-radius: 16px; background: rgba(255,255,255,.78); box-shadow: none; }
.nutrition-plan-entry { padding: 15px; }
.fuel-plan-list { margin-top: 10px; border-block: 1px solid rgba(24,78,52,.08); }
.fuel-plan-row { min-height: 54px; padding-block: 8px; }
.nutrition-entry-actions { grid-template-columns: 1fr 1fr; display: grid; gap: 8px; }
.nutrition-entry-actions .button { width: 100%; min-width: 0; padding-inline: 7px; }
.nutrition-plan-page .agent-proof, .nutrition-replace-hint { border-radius: 12px; }
.nutrition-node-v2 { border-color: rgba(24,78,52,.1); box-shadow: none; }
.nutrition-product-card { border-color: rgba(24,78,52,.08); }
.nutrition-feedback-managed { min-height: 30px; padding-right: 4px; }

/* Training analysis */
.training-analysis-page { padding-inline: 20px; }
.training-analysis-hero { padding: 16px; border-color: rgba(24,78,52,.11); box-shadow: var(--shadow-small); }
.training-analysis-hero__title h1 { line-height: 1.25; }
.analysis-copy, .analysis-plan, .adjustment-card { margin-top: 10px; box-shadow: none; }
.analysis-copy { padding: 15px; }
.training-compare-table { overflow: hidden; border-radius: 12px; border: 1px solid rgba(24,78,52,.08); }
.training-compare-head, .training-compare-row { padding-inline: 9px; }
.analysis-followup { margin-top: 12px; padding: 2px 0; border-color: rgba(20,88,55,.09); }
.analysis-nutrition-feedback { min-height: 54px; }

/* Profile and utilities */
.profile-page-v21 { padding-inline: 20px; }
.profile-hero { padding: 16px; box-shadow: var(--shadow-small); }
.profile-page-v21 .section-title { margin-top: 12px; }
.profile-device-card, .profile-avatar-card, .profile-service-actions, .settings-list { box-shadow: none; }
.profile-device-card > button, .profile-avatar-card > button, .profile-service-actions button, .settings-list__row { min-height: 58px; }
.utility-hero, .form-intro { padding: 18px; border-color: rgba(24,78,52,.1); background: #f0f5ed; box-shadow: none; }
.choice-list button { min-height: 60px; border-color: rgba(24,78,52,.11); box-shadow: none; }

/* Auth sheet */
.auth-page--embedded { background: #f8f9f5; box-shadow: 0 -10px 26px rgba(17,31,24,.13); }
.auth-page--embedded::before { opacity: .45; }
.auth-gate__close { width: 40px; height: 40px; border-color: rgba(24,78,52,.12); box-shadow: none; }

/* Guest preview / authenticated session layer */
.phone-session-banner {
  position: absolute;
  z-index: 72;
  top: 34px;
  left: 0;
  right: 0;
  min-height: 42px;
  padding: 5px 12px;
  background: color-mix(in srgb, var(--paper) 94%, white);
  border-bottom: 1px solid rgba(23, 79, 59, .1);
}
.screen-content.has-session-banner { top: calc(76px + env(safe-area-inset-top)); }
.session-mode-bar {
  min-height: 31px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 10px;
  color: #284b3b;
  background: #e9f0e8;
}
.session-mode-bar > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: #668475;
}
.session-mode-bar > span svg { width: 14px; height: 14px; }
.session-mode-bar div { min-width: 0; }
.session-mode-bar b,
.session-mode-bar small { display: block; }
.session-mode-bar b { font-size: 10px; line-height: 1.2; }
.session-mode-bar small {
  overflow: hidden;
  margin-top: 1px;
  color: #718078;
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-mode-bar button {
  min-width: 64px;
  min-height: 28px;
  padding: 4px 9px;
  color: white;
  border: 0;
  border-radius: 9px;
  background: var(--forest);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.session-mode-bar.is-authenticated {
  grid-template-columns: 28px minmax(0, 1fr);
  background: #edf3ee;
}
.session-mode-bar.is-authenticated > span { background: #2e7b55; }
.auth-page .auth-benefit {
  position: relative;
  margin-top: 10px;
  padding: 9px 11px;
  color: #2e5a44;
  border: 1px solid rgba(23, 79, 59, .12);
  border-radius: 11px;
  background: rgba(220, 234, 224, .62);
  font-size: 10px;
  line-height: 1.55;
}
.auth-page--embedded h1 { max-width: 300px; font-size: 25px; line-height: 1.2; }
.auth-page--embedded .auth-symbol { width: 54px; height: 54px; margin-bottom: 12px; border-radius: 18px 18px 18px 7px; }
.auth-page--embedded .auth-actions { margin-top: 18px; }
[data-auth-required] { position: relative; }
[data-auth-required]::after {
  content: "登录后可用";
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 2px;
  padding: 2px 5px;
  color: #315943;
  border: 1px solid rgba(23, 79, 59, .13);
  border-radius: 999px;
  background: #eef4ec;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}
.auth-mode-authenticated [data-auth-required]::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .auth-page--embedded,
  .session-mode-bar,
  .session-mode-bar button { transition: none !important; animation: none !important; }
}

@media (max-width: 430px) {
  .page { padding-inline: 18px; }
  .home-page--v21 { padding-inline: 16px; }
  .page-intro h1, .onboarding h1 { font-size: 23px; }
}

/* PLAN-04 / PLAN-05 → 首页 Agent → 训练界面同步闭环 */
.plan-agent-flow {
  margin: 10px 0 4px 44px;
  border-color: rgba(34, 139, 84, 0.22);
  background: linear-gradient(145deg, #ffffff 0%, #f2fbf5 100%);
}

.plan-agent-flow--loading,
.plan-agent-flow--synced {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.plan-agent-flow--loading > svg,
.plan-agent-flow--synced > svg {
  color: #198754;
}

.plan-agent-flow--loading p,
.plan-agent-flow--synced p,
.plan-agent-flow--preview > p {
  margin: 7px 0 0;
  color: #50645a;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: 0;
}

.plan-agent-flow--synced button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #15834f;
  color: #fff;
  font-weight: 700;
}

.plan-agent-flow__head,
.plan-agent-flow__head > span,
.plan-agent-flow__changes span,
.plan-agent-flow__changes small {
  display: flex;
  align-items: center;
}

.plan-agent-flow__head {
  justify-content: space-between;
  gap: 8px;
}

.plan-agent-flow__head > span {
  gap: 6px;
  color: #155f3d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.plan-agent-flow__head .status-badge {
  font-size: 11px;
  font-weight: 650;
}

.plan-agent-flow__head svg {
  width: 16px;
}

.plan-agent-flow__changes {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.plan-agent-flow__changes > div {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(22, 103, 64, 0.1);
}

.plan-agent-flow__changes b {
  color: #18251e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.plan-agent-flow__changes span,
.plan-agent-flow__changes small {
  gap: 5px;
  color: #63736a;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.plan-agent-flow__changes svg {
  width: 12px;
  height: 12px;
}

.plan-agent-flow__actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8px;
  margin-top: 12px;
}

.plan-agent-flow__actions .button {
  min-width: 0;
  padding-inline: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.plan-agent-flow__hint {
  display: block;
  margin-top: 10px;
  color: #718078;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.training-agent-sync-receipt {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  overflow: hidden;
  padding: 14px 16px 13px;
  border-color: rgba(29, 104, 65, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(119, 185, 87, .08), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 252, .99), rgba(247, 250, 245, .97));
  box-shadow: 0 1px 1px rgba(13, 55, 34, .035), 0 10px 24px rgba(17, 61, 37, .07);
}

.training-agent-sync-receipt__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #167047;
  background: linear-gradient(145deg, #edf7e8, #e5f1e6);
  box-shadow: inset 0 0 0 1px rgba(25, 112, 70, .08);
}

.training-agent-sync-receipt__icon > svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.training-agent-sync-receipt__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.training-agent-sync-receipt__body > b {
  color: #15271d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.training-agent-sync-receipt__body > span {
  color: #52665b;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0;
  text-wrap: pretty;
}

.training-agent-sync-receipt__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(25, 83, 51, .08);
}

.training-agent-sync-receipt__meta > small {
  color: #7a887f;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.training-agent-sync-receipt__meta > .status-badge {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: #397357;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.training-agent-sync-receipt__meta > .status-badge::before {
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #55a96d;
  content: "";
}

.plan-agent-redirect {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.plan-agent-redirect > svg {
  color: #198754;
}

.plan-agent-redirect > p {
  margin: 0;
  color: #607067;
}

/* 原型小程序端：训练—首页—我的，首页作为中轴主入口 */
.bottom-nav {
  grid-template-columns: repeat(3, 1fr);
  height: 64px;
  overflow: visible;
}
.bottom-nav button:nth-child(1) > img,
.bottom-nav button:nth-child(3) > img { --nav-icon-scale: 1; border-radius: 50%; }
.bottom-nav button.is-primary {
  align-self: end;
  height: 74px;
  padding-bottom: 4px;
  transform: translateY(-6px);
}
.bottom-nav button.is-primary > img {
  width: 46px;
  height: 46px;
  padding: 7px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #dff56b, #6fca45);
  box-shadow: 0 9px 22px rgba(24, 112, 62, .23);
  filter: none;
}
.bottom-nav button.is-primary span { color: #075f39; font-weight: 900; }

.home-plan-message { grid-template-columns: 38px minmax(0, 1fr); }
.home-plan-message > .message-avatar { display: grid; }
.home-plan-message .message-stack { width: 100%; max-width: none; justify-self: stretch; }
.home-page--v21 .home-time-separator { display: none; }
.home-page--v21 .home-intro-message { display: grid; margin-bottom: 2px; }
.home-page--v21 .home-v21-flow { padding-top: 4px; }
.home-page--v21 .home-plan-message { margin-bottom: 12px; }
.home-decision-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(22, 104, 60, .14);
  background: linear-gradient(160deg, rgba(255,255,255,.99), rgba(244,249,238,.97));
  box-shadow: 0 18px 38px rgba(23, 77, 48, .14);
}
.home-decision-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #0a8c53 0 58%, #d9ef4b 58% 78%, #f3a21a 78%);
}
.home-decision-kicker { display: flex; align-items: center; justify-content: space-between; margin: 1px 0 8px; }
.home-decision-kicker > span { color: #567066; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.home-decision-kicker button { min-height: 26px; padding: 4px 8px; color: #317054; border: 1px solid rgba(22, 104, 60, .12); border-radius: 99px; background: #f2f7ef; font-size: 8px; font-weight: 800; }
.home-decision-card .home-coach-card__head { grid-template-columns: 1fr auto; align-items: end; }
.home-decision-card .home-coach-card__head small { color: #6e8278; font-size: 9px; }
.home-decision-card .home-coach-card__head h2 { margin-top: 2px; font-size: 21px; }
.home-decision-card .home-coach-card__head strong { font-size: 31px; }
.home-recovery-advice { margin: 6px 0 0; color: #4b6256; font-size: 9px; line-height: 1.55; }
.home-decision-card .readiness-track { height: 6px; margin: 9px 0 8px; }
.home-recovery-basis { display: flex; justify-content: space-between; gap: 5px; color: #6a7d73; font-size: 8px; }
.home-session-card--compact { margin-top: 10px; padding: 10px; }
.home-session-card--compact .home-session-title { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; margin-bottom: 8px; }
.home-session-card--compact .home-session-title img { width: 38px; height: 38px; object-fit: contain; }
.home-session-card--compact .home-session-title small { color: #728278; font-size: 8px; }
.home-session-card--compact .home-session-title h3 { margin-top: 2px; font-size: 14px; }
.home-session-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0; border-block: 1px solid rgba(27, 85, 53, .09); }
.home-session-metrics span { display: grid; gap: 2px; color: #7b8b82; border-right: 1px solid rgba(27, 85, 53, .09); font-size: 7px; text-align: center; }
.home-session-metrics span:last-child { border-right: 0; }
.home-session-metrics b { color: #1a3b2b; font-size: 10px; }
.home-training-structure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding-top: 8px; }
.home-training-structure span { display: grid; grid-template-columns: 17px 1fr; align-items: center; gap: 4px; color: #496053; font-size: 7px; line-height: 1.35; }
.home-training-structure b { display: grid; place-items: center; width: 17px; height: 17px; color: white; border-radius: 6px; background: #258552; font-size: 8px; }
.home-plan-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.home-plan-choice button { min-height: 34px; color: #456152; border: 1px solid #cbd8ce; border-radius: 11px; background: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; }
.home-plan-choice button.is-selected { color: white; border-color: #087a49; background: linear-gradient(135deg, #087a49, #2a9a57); box-shadow: 0 6px 14px rgba(10, 116, 68, .16); }
.home-fueling-cycle { position: relative; padding: 10px; border-radius: 14px; background: #fffaf0; }
.home-fueling-cycle__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.home-fueling-cycle__head > span { color: #79551b; font-size: 10px; font-weight: 900; }
.home-fueling-cycle__head button { display: flex; align-items: center; gap: 2px; color: #9a6511; border: 0; background: transparent; font-size: 8px; font-weight: 800; }
.home-fueling-cycle__head svg { width: 12px; }
.home-fueling-phase { display: grid; grid-template-columns: 20px 72px 1fr; align-items: center; gap: 6px; min-height: 32px; border-top: 1px solid rgba(160, 105, 18, .1); }
.home-fueling-phase > b { display: grid; place-items: center; width: 18px; height: 18px; color: white; border-radius: 50%; background: #f09b13; font-size: 8px; }
.home-fueling-phase span { color: #775421; font-size: 9px; font-weight: 900; }
.home-fueling-phase small { display: block; margin-top: 1px; color: #a08458; font-size: 7px; font-weight: 600; }
.home-fueling-phase strong { color: #5b4b32; font-size: 8px; line-height: 1.35; }
.home-gi-mode { width: 100%; margin-top: 5px; padding: 7px 8px; color: #6d5d3a; border: 1px dashed rgba(159, 108, 28, .28); border-radius: 9px; background: rgba(255,255,255,.68); font-size: 7px; line-height: 1.45; text-align: left; }
.home-card-links { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; }
.home-card-links button { min-height: 31px; color: #116b43; border: 1px solid rgba(16, 105, 64, .22); border-radius: 10px; background: rgba(255,255,255,.84); font-size: 8px; font-weight: 900; }
.home-rest-copy { margin-top: 10px; padding: 14px; color: #456153; border-radius: 14px; background: #f1f6ee; font-size: 10px; line-height: 1.6; }
.home-ai-nutrition-prompts { display: grid; gap: 7px; margin: 6px 0 4px; padding: 9px; border: 1px solid rgba(16, 103, 63, .1); border-radius: 14px; background: rgba(255,255,255,.72); }
.home-ai-nutrition-prompts > div:first-child { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 7px; }
.home-ai-nutrition-prompts svg { width: 18px; color: #0a7b49; }
.home-ai-nutrition-prompts span { display: grid; gap: 1px; }
.home-ai-nutrition-prompts b { color: #183d2b; font-size: 9px; }
.home-ai-nutrition-prompts small { color: #71837a; font-size: 7px; }
.home-ai-nutrition-prompts > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.home-ai-nutrition-prompts button { min-height: 29px; padding: 4px; color: #4f655a; border: 1px solid #d3ddd5; border-radius: 9px; background: white; font-size: 7px; }

.training-coros-sync { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; margin: 8px 0; padding: 10px; background: linear-gradient(120deg, #edf5ef, #fff); }
.training-coros-sync > svg { width: 23px; color: #087a49; }
.training-coros-sync div { display: grid; gap: 3px; }
.training-coros-sync b { color: #183d2b; font-size: 10px; }
.training-coros-sync span { color: #6d7e75; font-size: 7px; line-height: 1.45; }
.training-feedback-pending { margin: 7px 2px 0; color: #74847c; font-size: 8px; line-height: 1.45; text-align: center; }

.plan-detail-status { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 9px; margin: 0 0 12px; padding: 11px 13px; }
.plan-detail-status > svg { width: 18px; color: #17804f; }
.plan-detail-status b { color: #244638; font-size: 10px; }
.plan-detail-status p { margin-top: 2px; color: #76847d; font-size: 8px; }

.device-handoff-hero { display: grid; justify-items: center; gap: 8px; padding: 24px 18px; text-align: center; background: radial-gradient(circle at 50% 0, #e5f5cb, #fff 52%); }
.device-handoff-hero > svg { width: 46px; height: 46px; color: #087a49; }
.device-handoff-hero > span { color: #1d8152; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.device-handoff-hero h1 { margin: 0; color: #19382a; font-size: 22px; }
.device-handoff-hero p { color: #64766d; font-size: 9px; line-height: 1.65; }
.device-handoff-flow { margin-top: 10px; padding: 7px 12px; }
.device-handoff-flow > div { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; min-height: 43px; border-bottom: 1px solid var(--line); color: #415b4e; font-size: 9px; }
.device-handoff-flow > div:last-child { border-bottom: 0; }
.device-handoff-flow b { display: grid; place-items: center; width: 21px; height: 21px; color: white; border-radius: 50%; background: #17804f; }
.device-sync-limit { display: flex; gap: 8px; margin: 10px 0; padding: 10px; color: #6a5a3d; border-radius: 12px; background: #fff7e9; }
.device-sync-limit svg { flex: 0 0 auto; width: 16px; }
.device-sync-limit p { font-size: 8px; line-height: 1.55; }

.today-fueling-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px; background: linear-gradient(135deg, #fffaf0, #fff); }
.today-fueling-summary small { color: #aa7419; font-size: 8px; font-weight: 900; }
.today-fueling-summary h1 { margin: 4px 0; color: #4d3920; font-size: 19px; }
.today-fueling-summary p { max-width: 240px; color: #85765e; font-size: 8px; line-height: 1.55; }
.today-fueling-summary > strong { color: #e7920b; font-size: 30px; }
.today-fueling-summary > strong small { font-size: 11px; }
.today-fueling-timeline { display: grid; gap: 8px; margin-top: 10px; }
.today-fueling-phase { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 13px; }
.today-fueling-phase > b { display: grid; place-items: center; width: 28px; height: 28px; color: white; border-radius: 10px; background: #e9940f; }
.today-fueling-phase > div > span { color: #8f6119; font-size: 9px; font-weight: 900; }
.today-fueling-phase > div > span small { margin-left: 5px; color: #9a8c72; font-size: 7px; }
.today-fueling-phase h2 { margin: 4px 0; color: #3e392e; font-size: 12px; }
.today-fueling-phase p { color: #857d6d; font-size: 7px; line-height: 1.5; }
.today-fueling-gi { display: grid; grid-template-columns: 28px 1fr 16px; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px; color: #466052; border: 1px dashed #b9ccb9; border-radius: 13px; background: #f4f8f1; text-align: left; }
.today-fueling-gi > svg { width: 20px; }
.today-fueling-gi span { display: grid; gap: 2px; }
.today-fueling-gi b { font-size: 9px; }
.today-fueling-gi small { color: #75857c; font-size: 7px; line-height: 1.4; }
.today-fueling-actions { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8px; margin-top: 10px; }
.today-fueling-footnote { margin: 8px 4px; color: #88958e; font-size: 7px; line-height: 1.5; text-align: center; }

.feedback-conversation-page { padding-bottom: 18px; }
.feedback-conversation { display: grid; gap: 8px; }
.feedback-conversation .message-row { margin-bottom: 0; }
.feedback-conversation .message-bubble b { color: #0b6f43; }
.feedback-step-label { display: block; margin-bottom: 3px; color: #789086; font-size: 7px; font-weight: 900; letter-spacing: .03em; }
.feedback-objective-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px; }
.feedback-objective-card__head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feedback-objective-card__head > span:first-child { color: #789086; font-size: 8px; font-weight: 900; }
.feedback-objective-card > div:not(.feedback-objective-card__head) { display: grid; gap: 3px; padding-right: 5px; border-right: 1px solid var(--line); }
.feedback-objective-card > div:not(.feedback-objective-card__head):last-of-type { border-right: 0; }
.feedback-objective-card b { color: #173c29; font-size: 10px; }
.feedback-objective-card small { color: #7e8b84; font-size: 7px; }
.feedback-objective-card p { grid-column: 1 / -1; color: #718078; font-size: 7px; line-height: 1.5; }
.feedback-question { margin-top: 2px; }
.feedback-quick-replies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-left: 43px; }
.feedback-quick-replies--three { grid-template-columns: repeat(3, 1fr); }
.feedback-quick-replies button,
.feedback-cause-grid button { min-height: 32px; color: #52665b; border: 1px solid #cbd7ce; border-radius: 10px; background: white; font-size: 8px; }
.feedback-quick-replies button.is-selected,
.feedback-cause-grid button.is-selected { color: white; border-color: #087a49; background: #087a49; }
.feedback-cause-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-left: 43px; }
.feedback-ai-preview { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; padding: 10px; background: #edf6ea; }
.feedback-ai-preview > svg { width: 18px; color: #0a7c49; }
.feedback-ai-preview b { color: #16432c; font-size: 9px; }
.feedback-ai-preview p { margin-top: 2px; color: #61756a; font-size: 7px; line-height: 1.5; }
.feedback-conversation-page .page-primary { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .bottom-nav button.is-primary { transform: none; }
}

/* V30 · serious runner visual system: quiet, legible, and product-first */
:root {
  --ink: #122018;
  --muted: #65736b;
  --paper: #f2f4ef;
  --surface: #fbfcf9;
  --line: rgba(24, 61, 42, .11);
  --forest: #0b5c3a;
  --forest-deep: #073f29;
  --mint: #e1ebe3;
  --orange-soft: #eee9dc;
  --shadow: 0 18px 46px rgba(17, 45, 30, .12);
  --shadow-small: 0 8px 22px rgba(17, 45, 30, .065);
  --type-page-title: 24px;
  --type-section-title: 17px;
  --type-card-title: 15px;
  --type-body: 13px;
  --type-caption: 11px;
  --type-button: 13px;
  color: var(--ink);
  background: #dce2dc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* Direct desktop access keeps the prototype navigator visible for stakeholder review. */
.prototype-stage.is-app-preview {
  min-height: 100dvh;
  grid-template-columns: minmax(220px, 250px) 414px minmax(160px, 190px);
  gap: 24px;
  place-content: center;
  padding: 20px;
  background: #dce2dc;
}
.prototype-stage.is-app-preview .stage-note {
  display: block;
  align-self: center;
  margin-bottom: 0;
}
.prototype-stage.is-app-preview .phone-frame {
  box-shadow: 0 34px 84px rgba(19, 42, 30, .25), inset 0 0 0 2px #414a44;
}
@media (max-width: 720px) {
  .prototype-stage.is-app-preview .stage-note { display: none; }
}

.phone-screen,
.screen-content { background: var(--paper); }
.screen-content { overscroll-behavior: contain; }
.page { padding-inline: 20px; padding-bottom: 34px; }
.hub-page { padding-bottom: 38px; }
.page-header {
  height: 62px;
  margin: 0 0 8px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}
.page-header--root { grid-template-columns: minmax(0, 1fr) 44px; }
.page-header--root .page-header__side:first-child { display: none; }
.page-header--root .page-header__title { text-align: left; }
.home-page .page-header--root,
.hub-page .page-header--root { grid-template-columns: minmax(0, 1fr) 44px; }
.page-header__title strong,
.home-page .page-header__title strong,
.hub-page .page-header__title strong {
  color: var(--ink);
  font-size: 23px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.page-header__title span { margin-bottom: 4px; font-size: 10px; letter-spacing: 0; }
.icon-button,
.header-actions button {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(251, 252, 249, .82);
  box-shadow: none;
}
.assistant-live-dot { width: 9px; height: 9px; box-shadow: 0 0 0 4px rgba(29, 146, 72, .1); }
.hub-subtitle { margin: -5px 0 16px; color: var(--muted); font-size: 12px; }
.section-title { min-height: 52px; margin-top: 12px; }
.section-title h2 { color: var(--ink); font-size: 17px; font-weight: 740; letter-spacing: -.02em; }
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: none;
}
.button { min-height: 46px; border-radius: 14px; font-size: 13px; font-weight: 720; }
.button--primary { background: var(--forest); border-color: var(--forest); }
.button--secondary { color: var(--forest); background: transparent; border-color: rgba(11, 92, 58, .28); }
.status-badge { min-height: 25px; padding-inline: 9px; border-radius: 9px; font-size: 10px; }
.metric strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.metric span { font-size: 10px; }

/* Guest state is informative, not a second header. */
.phone-session-banner { min-height: 38px; padding: 4px 12px; background: var(--paper); }
.screen-content.has-session-banner { top: calc(72px + env(safe-area-inset-top)); }
.session-mode-bar { min-height: 29px; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 7px; padding: 3px 5px; border-radius: 9px; background: #e7ece7; }
.session-mode-bar > span { width: 22px; height: 22px; border-radius: 7px; background: #65766c; }
.session-mode-bar b { font-size: 10px; }
.session-mode-bar small { font-size: 8.5px; }
.session-mode-bar button { min-width: 66px; min-height: 27px; border-radius: 8px; font-size: 9px; }

/* Navigation: one calm system instead of three cartoon treatments. */
.bottom-nav {
  height: 68px;
  bottom: 13px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 249, .98);
  box-shadow: 0 -8px 24px rgba(22, 54, 36, .055);
}
.screen-content.has-bottom-nav { bottom: 81px; }
.bottom-nav button,
.bottom-nav button.is-primary {
  position: relative;
  align-self: stretch;
  height: 68px;
  min-height: 48px;
  padding: 8px 0 6px;
  gap: 4px;
  color: #7a867f;
  transform: none;
}
.bottom-nav button svg,
.bottom-nav button.is-primary > svg,
.bottom-nav button.is-active svg {
  width: 23px;
  height: 23px;
  padding: 0;
  color: currentColor;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  stroke-width: 1.8;
}
.bottom-nav button span,
.bottom-nav button.is-primary span { color: inherit; font-size: 10.5px; font-weight: 620; }
.bottom-nav button.is-active,
.bottom-nav button.is-active span { color: var(--forest); font-weight: 760; }
.bottom-nav button.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--forest);
  transform: translateX(-50%);
}
.bottom-nav { height: 64px; overflow: visible; }
.bottom-nav button.is-primary {
  align-self: end;
  height: 74px;
  padding-bottom: 4px;
  transform: translateY(-6px);
}
.bottom-nav button.is-active::before { display: none; }
.bottom-nav button > img { width: 32px; height: 27px; object-fit: contain; filter: saturate(.78) brightness(.9); }
.bottom-nav button.is-active > img { filter: none; }
.bottom-nav button.is-primary > img {
  width: 46px;
  height: 46px;
  padding: 7px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #dff56b, #6fca45);
  box-shadow: 0 9px 22px rgba(24, 112, 62, .23);
}

/* Home: one AI action, one daily decision, readable supporting detail. */
.home-page--v21 { padding-inline: 18px; }
.home-page .page-header { background: var(--paper); }
.home-assistant-status { display: none; }
.home-v21-flow { gap: 14px; padding: 4px 0 22px; }
.home-page--v21 .home-intro-message,
.home-page--v21 .home-plan-message {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
}
.home-page--v21 .home-plan-message > .message-avatar { display: grid; }
.home-page--v21 .home-plan-message .message-stack {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.home-page--v21 .home-intro-message .message-bubble {
  max-width: min(100%, 292px);
}
.home-ai-primary-entry {
  min-height: 92px;
  grid-template-columns: 50px minmax(0, 1fr) 20px;
  gap: 13px;
  padding: 17px;
  color: white;
  border: 0;
  border-radius: 22px;
  background: var(--forest-deep);
  box-shadow: 0 16px 34px rgba(7, 63, 41, .19);
}
.home-ai-primary-entry__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255,255,255,.1);
}
.home-ai-primary-entry__icon svg { width: 23px; height: 23px; stroke-width: 1.8; }
.home-ai-primary-entry small { color: rgba(255,255,255,.66); font-size: 10px; }
.home-ai-primary-entry b { font-size: 21px; font-weight: 760; letter-spacing: -.03em; }
.home-ai-primary-entry em { color: rgba(255,255,255,.76); font-size: 10px; }
.home-decision-card {
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.home-decision-card::before { display: none; }
.home-decision-kicker { margin: 0 0 12px; }
.home-decision-kicker > span { color: var(--muted); font-size: 10px; letter-spacing: 0; }
.home-decision-kicker button { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 8px; color: #617168; background: #edf0eb; font-size: 9px; }
.home-decision-kicker > small { display: inline-flex; align-items: center; gap: 4px; color: #718078; font-size: 9px; font-weight: 700; }
.home-decision-kicker > small svg { width: 13px; height: 13px; }
.home-decision-card .home-coach-card__head { align-items: center; }
.home-decision-card .home-coach-card__head small { color: var(--muted); font-size: 11px; }
.home-decision-card .home-coach-card__head h2 { margin-top: 3px; font-size: 25px; font-weight: 760; letter-spacing: -.04em; }
.home-decision-card .home-coach-card__head strong { color: var(--forest); font-size: 35px; font-variant-numeric: tabular-nums; }
.home-decision-card .home-coach-card__head strong small { font-size: 10px; }
.home-recovery-advice { margin-top: 9px; color: #526159; font-size: 11px; line-height: 1.65; }
.home-decision-card .readiness-track { height: 7px; margin: 12px 0 9px; background: #e6ebe6; }
.home-recovery-basis { color: #758078; font-size: 10px; font-variant-numeric: tabular-nums; }
.home-session-card--compact {
  margin-top: 16px;
  padding: 14px;
  border: 0;
  border-radius: 17px;
  background: #eef2ec;
}
.home-session-card--compact .home-session-title { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; margin-bottom: 11px; }
.home-session-card--compact .home-session-title img { width: 40px; height: 40px; }
.home-session-card--compact .home-session-title small { color: var(--muted); font-size: 9px; }
.home-session-card--compact .home-session-title h3 { margin-top: 3px; font-size: 15px; line-height: 1.35; }
.home-session-metrics { padding: 10px 0; }
.home-session-metrics span { gap: 3px; color: #748078; font-size: 9px; }
.home-session-metrics b { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-training-structure { gap: 7px; padding-top: 10px; }
.home-training-structure span { grid-template-columns: 20px 1fr; gap: 5px; color: #4f6157; font-size: 9px; }
.home-training-structure b { width: 20px; height: 20px; border-radius: 7px; background: var(--forest); font-size: 9px; }
.home-plan-choice { gap: 9px; margin: 12px 0; }
.home-plan-choice button { min-height: 43px; border-radius: 13px; font-size: 11px; }
.home-plan-choice button.is-selected { border-color: var(--forest); background: var(--forest); box-shadow: none; }
.home-fueling-summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 14px; align-items: center; gap: 9px; width: 100%; min-height: 58px; margin-top: 4px; padding: 9px 10px; color: #3f463f; border: 1px solid rgba(92, 87, 69, .12); border-radius: 14px; background: #eeece4; text-align: left; }
.home-fueling-summary__icon { display: grid; place-items: center; width: 32px; height: 32px; color: #6b6658; border-radius: 11px; background: rgba(255,255,255,.58); }
.home-fueling-summary__icon svg { width: 18px; height: 18px; }
.home-fueling-summary > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.home-fueling-summary small { color: #777368; font-size: 9px; }
.home-fueling-summary b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-fueling-summary > svg { width: 14px; color: #7b7b72; }
.home-fueling-cycle { padding: 14px; border-radius: 17px; background: #eeece4; }
.home-fueling-cycle__head { margin-bottom: 5px; }
.home-fueling-cycle__head > span { color: #4f4a3e; font-size: 13px; }
.home-fueling-cycle__head button { color: #666154; font-size: 10px; }
.home-fueling-phase { min-height: 44px; grid-template-columns: 24px 88px 1fr; gap: 8px; border-top-color: rgba(73, 67, 53, .11); }
.home-fueling-phase > b { width: 21px; height: 21px; background: #716b5e; font-size: 9px; }
.home-fueling-phase span { color: #4e493e; font-size: 11px; }
.home-fueling-phase small { color: #858074; font-size: 9px; }
.home-fueling-phase strong { color: #423f38; font-size: 10px; line-height: 1.45; }
.home-gi-mode { margin-top: 7px; padding: 9px 10px; color: #625d51; border-color: rgba(84, 77, 60, .2); border-radius: 11px; background: rgba(255,255,255,.44); font-size: 9px; }
.home-card-links { margin-top: 10px; }
.home-card-links button { min-height: 40px; border: 0; border-radius: 12px; color: var(--forest); background: #e5eee6; font-size: 10px; }
.home-ai-nutrition-prompts { gap: 10px; margin-top: 8px; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-ai-nutrition-prompts > div:first-child { grid-template-columns: 30px 1fr; gap: 9px; }
.home-ai-nutrition-prompts svg { width: 20px; }
.home-ai-nutrition-prompts b { font-size: 12px; }
.home-ai-nutrition-prompts small { font-size: 9px; }
.home-ai-nutrition-prompts > div:last-child { gap: 7px; }
.home-ai-nutrition-prompts button { min-height: 38px; border-radius: 11px; font-size: 9px; }
.agent-question-suggestions { margin-top: 12px; padding-top: 14px; }
.agent-question-suggestions__head b { font-size: 12px; }
.agent-question-suggestions__head span { font-size: 9px; }
.quick-replies { gap: 7px; }
.quick-replies button { min-height: 42px; padding: 8px; border-color: var(--line); border-radius: 12px; color: #43594d; font-size: 10px; }
.composer { min-height: 62px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 -8px 24px rgba(18, 50, 32, .07); }
.composer input { font-size: 12px; }
.composer .composer-send { border-radius: 14px; background: var(--forest); box-shadow: none; }

/* Training: editorial hierarchy with data that can actually be read. */
.training-hub-v21 { padding-inline: 20px; }
.training-tabs,
.schedule-scope-tabs { height: auto; min-height: 42px; margin: 4px 0 12px; padding: 3px; border: 0; border-radius: 13px; background: #e5e9e4; }
.training-tabs button,
.schedule-scope-tabs button { min-height: 36px; border-radius: 10px; font-size: 12px; }
.training-tabs button.active,
.schedule-scope-tabs button.active { color: var(--ink); background: var(--surface); box-shadow: 0 2px 8px rgba(23,55,38,.07); }
.schedule-scope-tabs { margin-bottom: 14px; }
.training-program-card {
  gap: 12px 14px;
  margin-top: 0;
  padding: 17px;
  border: 0;
  border-radius: 21px;
  background: #e4ece4;
}
.training-program-copy { gap: 11px; }
.training-program-copy img { width: 68px; height: 48px; margin-left: -7px; object-fit: contain; border-radius: 0; box-shadow: none; }
.training-program-copy h2 { color: var(--ink); font-size: 16px; line-height: 1.35; }
.training-program-copy span { color: #5f7066; font-size: 11px; }
.training-program-score span { color: #5f7066; font-size: 10px; }
.training-program-score strong { color: var(--forest); font-size: 28px; font-variant-numeric: tabular-nums; }
.training-program-card > p { margin-top: 0; color: #53655b; font-size: 10px; }
.agent-plan-stamp { color: #5b7064; font-size: 9px; }
.training-plan-version { width: fit-content; padding: 3px 7px; border-radius: 6px; color: #315c45 !important; background: rgba(255,255,255,.58); font-size: 8px !important; font-weight: 750; letter-spacing: .02em; }
.training-program-track { position: relative; grid-column: 1 / -1; overflow: visible; }
.training-program-revision-tick { position: absolute; z-index: 2; top: -4px; width: 1px; height: 12px; background: #c87927; box-shadow: 0 0 0 2px #e4ece4; }
.training-program-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .85fr 1fr; gap: 8px; }
.training-program-metrics > span { display: grid; gap: 3px; min-width: 0; padding-right: 7px; border-right: 1px solid rgba(23,61,42,.1); }
.training-program-metrics > span:last-child { padding-right: 0; border-right: 0; }
.training-program-metrics small { color: #6d7d73; font-size: 8px; }
.training-program-metrics b { color: #20382c; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.35; }
.training-program-revision { grid-column: 1 / -1; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(185,112,35,.16); border-radius: 11px; color: #79501e; background: rgba(255,248,235,.64); }
.training-program-revision > svg { width: 15px; }
.training-program-revision > span { display: grid; gap: 2px; }
.training-program-revision b { font-size: 9px; }
.training-program-revision small { color: #7c6b51; font-size: 8px; line-height: 1.45; }
.training-profile-pending { grid-column: 1 / -1; padding: 8px 9px; border-radius: 9px; color: #76501f; background: #fff3dd; font-size: 8px; line-height: 1.5; }
.training-mileage-revision-note { display: flex; align-items: center; gap: 6px; margin: -2px 0 -7px; color: #74634c; font-size: 7px; }
.training-mileage-revision-note i { width: 1px; height: 12px; background: #c87927; }
.training-plan-history { margin: 10px 0; overflow: hidden; border: 1px solid rgba(24,78,52,.1); border-radius: 16px; background: var(--surface); }
.training-plan-history > summary { min-height: 56px; display: grid; grid-template-columns: 25px 1fr 14px; align-items: center; gap: 9px; padding: 10px 13px; color: #264535; cursor: pointer; list-style: none; }
.training-plan-history > summary::-webkit-details-marker { display: none; }
.training-plan-history > summary > svg:first-child { width: 18px; }
.training-plan-history > summary > svg:last-child { width: 14px; transition: transform .18s ease; }
.training-plan-history[open] > summary > svg:last-child { transform: rotate(90deg); }
.training-plan-history > summary span { display: grid; gap: 3px; }
.training-plan-history > summary b { font-size: 11px; }
.training-plan-history > summary small { color: #718078; font-size: 8px; }
.training-plan-history__content { display: grid; gap: 8px; padding: 0 12px 12px; }
.training-plan-history__revision, .training-plan-history__item { display: grid; gap: 4px; padding: 11px; border-radius: 11px; background: #f1f5ef; }
.training-plan-history__revision > span { color: #668074; font-size: 8px; }
.training-plan-history__revision b { font-size: 11px; }
.training-plan-history__revision small, .training-plan-history__item small { color: #6c7b73; font-size: 10px; line-height: 1.5; }
.training-plan-history__item { grid-template-columns: 1fr auto; background: #f7f7f3; }
.training-plan-history__item > span { display: grid; gap: 3px; }
.training-plan-history__item b { font-size: 10px; }
.training-plan-history__item strong { color: var(--forest); font-size: 11px; }
.training-plan-history__item p, .training-plan-history__item > small { grid-column: 1 / -1; margin: 0; color: #5f7067; font-size: 10px; line-height: 1.5; }
.cycle-overview-entry { min-height: 38px; color: var(--forest); border-top-color: rgba(24,61,42,.1); font-size: 10px; }
.training-plan-actual { gap: 12px; margin-top: 12px; padding: 16px; border: 0; border-radius: 19px; background: var(--surface); }
.training-plan-actual__head small { font-size: 9px; }
.training-plan-actual__head b { font-size: 15px; }
.training-plan-actual__head > span { font-size: 10px; }
.training-plan-actual__row { grid-template-columns: 54px 1fr 62px; gap: 9px; }
.training-plan-actual__row > span { font-size: 10px; }
.training-plan-actual__row > i { height: 7px; }
.training-plan-actual__row--actual > i b { background: var(--forest); }
.training-plan-actual__row strong { font-size: 10px; font-variant-numeric: tabular-nums; }
.training-plan-actual > p { font-size: 9px; }
.training-coros-sync { grid-template-columns: 34px 1fr auto; gap: 10px; margin: 10px 0; padding: 13px; border: 0; border-radius: 17px; background: #e9eee9; }
.training-coros-sync > svg { width: 21px; }
.training-coros-sync b { font-size: 11px; }
.training-coros-sync span { font-size: 9px; }
.training-week-card { padding: 2px 14px; border: 0; border-radius: 19px; }
.training-week-card > button { grid-template-columns: 48px 1fr auto 14px; min-height: 66px; gap: 10px; }
.training-week-card > button > img { width: 54px; height: 45px; margin-left: -6px; object-fit: contain; }
.training-week-card .week-copy b { font-size: 11px; line-height: 1.4; }
.training-week-card .week-copy small { margin-top: 4px; font-size: 9px; }
.week-state { font-size: 9px; }
.training-week-card > button.is-current { margin-inline: -6px; padding-inline: 6px; border-radius: 13px; background: #edf2ed; }

/* TRAIN-HUB period comparison: faithful to the supplied STRIDE data-dashboard reference. */
.schedule-scope-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cycle-status-dashboard {
  --cycle-cyan: #2a9aaa;
  --cycle-purple: #7959d6;
  --cycle-green: #169b55;
  --cycle-orange: #d98516;
  --cycle-red: #cc4b43;
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
  color: #17211c;
  font-variant-numeric: tabular-nums;
}
.cycle-status-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 3px 1px 0; }
.cycle-status-heading > div { min-width: 0; }
.cycle-status-heading > div > span { color: var(--cycle-green); font-size: 8px; font-weight: 820; letter-spacing: .14em; }
.cycle-status-heading h2 { margin-top: 4px; font-size: 20px; font-weight: 780; line-height: 1.18; letter-spacing: -.035em; }
.cycle-status-heading p { margin-top: 5px; color: #748078; font-size: 9px; }
.cycle-range-tabs { display: grid; border: 1px solid rgba(24, 61, 42, .09); background: #e8ece8; }
.cycle-range-tabs { grid-template-columns: repeat(4, 1fr); min-height: 34px; padding: 2px; border-radius: 10px; }
.cycle-range-tabs button { border: 0; color: #758078; background: transparent; cursor: pointer; transition: color .16s ease, background .16s ease, transform .12s ease; }
.cycle-range-tabs button { min-height: 28px; border-radius: 8px; font-size: 9px; font-weight: 720; }
.cycle-range-tabs button.active { color: #17211c; background: #fbfcf9; box-shadow: 0 2px 8px rgba(23,55,38,.07); }
.cycle-range-tabs button:active { transform: scale(.97); }
.cycle-metric-strip { display: grid; grid-auto-columns: minmax(132px, 42%); grid-auto-flow: column; gap: 8px; margin-inline: -20px; padding: 0 20px 3px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.cycle-metric-strip::-webkit-scrollbar { display: none; }
.cycle-metric-card { position: relative; min-height: 116px; padding: 13px; overflow: hidden; border: 1px solid rgba(24, 61, 42, .09); border-radius: 15px; background: #fbfcf9; scroll-snap-align: start; }
.cycle-metric-card::after { content: ""; position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cycle-metric-card > div { display: grid; gap: 2px; padding-right: 12px; }
.cycle-metric-card > div b { color: #48564e; font-size: 10px; font-weight: 720; }
.cycle-metric-card > div small { color: #9aa29d; font-size: 7px; font-weight: 700; letter-spacing: .04em; }
.cycle-metric-card > strong { display: block; margin-top: 15px; color: currentColor; font-size: 23px; font-weight: 760; line-height: 1; letter-spacing: -.035em; }
.cycle-metric-card > strong em { margin-left: 3px; color: #8b958f; font-size: 8px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.cycle-metric-card > span { display: block; margin-top: 9px; color: currentColor; font-size: 9px; font-weight: 720; }
.cycle-metric-card > span small { color: #9aa29d; font-size: 8px; font-weight: 500; }
.cycle-metric-card--cyan { color: var(--cycle-cyan); }
.cycle-metric-card--purple { color: var(--cycle-purple); }
.cycle-metric-card--green { color: var(--cycle-green); }
.cycle-metric-card--orange { color: var(--cycle-orange); }
.cycle-metric-card--red { color: var(--cycle-red); }
.cycle-chart-stack { display: grid; gap: 10px; }
.cycle-trend-card { padding: 14px 12px 8px; border: 1px solid rgba(24, 61, 42, .09); border-radius: 16px; background: #fbfcf9; }
.cycle-trend-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 2px 5px; }
.cycle-trend-card__head > div { display: grid; gap: 3px; min-width: 0; }
.cycle-trend-card__head b { font-size: 11px; font-weight: 760; }
.cycle-trend-card__head span { overflow: hidden; color: #8a948e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.cycle-trend-card__head > small { color: #43524a; font-size: 12px; font-weight: 760; white-space: nowrap; }
.cycle-trend-chart { width: 100%; height: 164px; }
.cycle-trend-chart .recharts-surface { overflow: visible; }
.cycle-zone-card { padding: 14px 12px 8px; border: 1px solid rgba(24, 61, 42, .09); border-radius: 16px; background: #fbfcf9; }
.cycle-zone-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 0 2px 10px; }
.cycle-zone-head > div:first-child { display: grid; gap: 2px; }
.cycle-zone-head > div:first-child span { color: #7a857e; font-size: 8px; }
.cycle-zone-head > div:first-child b { font-size: 11px; }
.cycle-zone-head > div[role="tablist"] { display: grid; grid-template-columns: repeat(2, 1fr); padding: 2px; border-radius: 8px; background: #e8ece8; }
.cycle-zone-head > div[role="tablist"] button { min-width: 45px; min-height: 27px; padding: 0 8px; border: 0; border-radius: 6px; color: #78837d; background: transparent; font-size: 8px; font-weight: 700; }
.cycle-zone-head > div[role="tablist"] button.active { color: #17211c; background: #fff; box-shadow: 0 1px 5px rgba(23,55,38,.07); }
.cycle-comparison-table { width: 100%; overflow: hidden; border-top: 1px solid rgba(24, 61, 42, .08); }
.cycle-comparison-table__head,
.cycle-comparison-table__row { display: grid; grid-template-columns: 68px minmax(70px, 1fr) 84px 50px; align-items: center; min-height: 36px; gap: 6px; padding-inline: 3px; }
.cycle-comparison-table__head { min-height: 30px; color: #8c9690; font-size: 7px; font-weight: 700; }
.cycle-comparison-table__head > span:nth-child(3),
.cycle-comparison-table__head > span:nth-child(4) { text-align: end; }
.cycle-comparison-table__row { border-top: 1px solid rgba(24, 61, 42, .07); color: #48564e; font-size: 8px; }
.cycle-comparison-table__row > b { overflow: hidden; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 8px; text-overflow: ellipsis; }
.cycle-comparison-table__row > strong { color: #58665e; font-size: 8px; font-weight: 740; text-align: end; white-space: nowrap; }
.cycle-comparison-table__row > small { color: #8e9892; font-size: 8px; text-align: end; }
.cycle-comparison-table__row .zone-recovery,
.cycle-comparison-table__row .zone-easy { color: var(--cycle-green); }
.cycle-comparison-table__row .zone-marathon { color: var(--cycle-cyan); }
.cycle-comparison-table__row .zone-threshold { color: var(--cycle-orange); }
.cycle-comparison-table__row .zone-interval { color: var(--cycle-red); }
.cycle-status-footnote { padding: 0 2px; color: #8c9690; font-size: 8px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .cycle-range-tabs button { transition: none; }
}

/* Profile: remove decorative clip art and make settings feel intentional. */
.profile-page-v21 { padding-inline: 20px; }
.profile-hero {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 16px;
  border: 0;
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.profile-avatar { width: 62px; height: 62px; border-radius: 18px; overflow: hidden; }
.profile-hero h1 { font-size: 21px; letter-spacing: -.03em; }
.profile-hero p { margin-top: 4px; font-size: 11px; }
.profile-hero small { font-size: 10px; }
.profile-goal {
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 96px;
  gap: 13px;
  margin-top: 12px;
  padding: 16px;
  border: 0;
  border-radius: 19px;
  background: #e5ece4;
}
.profile-goal > img { width: 84px; height: 82px; margin-left: -8px; object-fit: contain; }
.profile-goal > div { gap: 6px; }
.profile-goal > div small { color: #597065; font-size: 10px; }
.profile-goal > div b { color: var(--ink); font-size: 16px; }
.profile-goal > div span { color: #4d6257; font-size: 10px; }
.profile-goal > div .profile-training-days { font-size: 9px; }
.profile-page-v21 .device-summary { padding: 4px 14px; border: 0; border-radius: 19px; }
.profile-device-main { grid-template-columns: 72px minmax(0, 1fr) auto 16px; min-height: 72px; gap: 8px; border-bottom: 0; }
.profile-device-main > .status-badge { display: inline-flex; gap: 0; white-space: nowrap; }
.profile-device-main img { width: 78px; height: 68px; margin-left: -8px; object-fit: contain; }
.profile-device-main b { font-size: 12px; }
.profile-device-main small { font-size: 9px; line-height: 1.45; }
.profile-device-health { min-height: 48px; font-size: 11px; }
.profile-device-sync { top: 25px; font-size: 9px; }
.profile-insights { padding: 2px 14px; border: 0; border-radius: 19px; }
.profile-insights > button,
.profile-insights > div { grid-template-columns: 42px 1fr 16px; min-height: 64px; gap: 10px; }
.profile-insights > button > img { width: 40px; height: 46px; object-fit: contain; }
.profile-insights b { font-size: 12px; }
.profile-insights small { font-size: 9px; line-height: 1.45; }
.profile-actions { border: 0; border-radius: 19px; box-shadow: none; }
.profile-actions button { min-height: 56px; padding-inline: 12px; font-size: 11px; }
.profile-settings-actions button > span { display: grid; gap: 3px; min-width: 0; text-align: left; }
.profile-settings-actions button > span b { font-size: 11px; }
.profile-settings-actions button > span small { color: #77857d; font-size: 9px; font-weight: 500; }

.history-plan-change-disclosure { margin-top: 12px; border: 1px solid rgba(27, 82, 51, .1); border-radius: 14px; background: rgba(255,255,255,.72); overflow: hidden; }
.history-plan-change-disclosure > summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; color: #476052; font-size: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.history-plan-change-disclosure > summary::-webkit-details-marker { display: none; }
.history-plan-change-disclosure > summary svg { width: 15px; color: #477ed1; }
.history-plan-change-disclosure[open] > summary { border-bottom: 1px solid rgba(27, 82, 51, .08); }
.history-plan-change-disclosure .history-plan-changes { margin: 0; border: 0; border-radius: 0; }

@media (max-width: 720px) {
  .prototype-stage.is-app-preview { min-height: 100dvh; display: block; padding: 0; }
  .prototype-stage.is-app-preview .phone-wrap,
  .prototype-stage.is-app-preview .phone-frame,
  .prototype-stage.is-app-preview .phone-screen { width: 100%; height: 100dvh; }
  .prototype-stage.is-app-preview .phone-frame { padding: 0; border-radius: 0; box-shadow: none; }
  .prototype-stage.is-app-preview .phone-screen { border-radius: 0; }
  .prototype-stage.is-app-preview .home-indicator { display: none; }
  .prototype-stage.is-app-preview .bottom-nav { bottom: env(safe-area-inset-bottom); }
}

/* V31 · optical refinement only: structure, dimensions, and behavior stay unchanged. */
:root {
  --ink: #10231a;
  --muted: #66766d;
  --paper: #f3f5f0;
  --surface: #fcfdf9;
  --line: rgba(10, 76, 43, .105);
  --forest: #075f3b;
  --forest-deep: #043f2a;
  --mint: #e3eee4;
  --mint-bright: #b8e85c;
  --orange: #d97814;
  --shadow: 0 1px 1px rgba(7, 48, 29, .04), 0 20px 48px rgba(12, 54, 33, .115);
  --shadow-small: 0 1px 1px rgba(7, 48, 29, .035), 0 10px 26px rgba(12, 54, 33, .075);
}

::selection { color: #fff; background: rgba(7, 95, 59, .86); }

.prototype-stage,
.prototype-stage.is-app-preview {
  background:
    radial-gradient(circle at 16% 12%, rgba(185, 232, 92, .24), transparent 30%),
    radial-gradient(circle at 78% 84%, rgba(60, 128, 88, .11), transparent 36%),
    linear-gradient(145deg, #edf1e8 0%, #f7f8f4 48%, #dfe7df 100%);
}

.demo-dock {
  border-color: rgba(17, 83, 48, .1);
  background: linear-gradient(160deg, rgba(255, 255, 252, .93), rgba(244, 248, 239, .9));
  box-shadow: 0 24px 64px rgba(20, 65, 39, .12), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.brand-mark {
  background: linear-gradient(145deg, #0a7548, #06472f);
  box-shadow: 0 9px 20px rgba(6, 77, 44, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.demo-list button.is-selected {
  border-color: rgba(26, 132, 70, .22);
  background: linear-gradient(100deg, rgba(218, 244, 207, .9), rgba(242, 249, 238, .82));
  box-shadow: inset 3px 0 0 #65bd3f;
}
.adapter-note {
  border: 1px solid rgba(32, 128, 70, .09);
  background: linear-gradient(105deg, rgba(228, 246, 220, .9), rgba(242, 248, 237, .8));
}

.phone-frame {
  background: linear-gradient(150deg, #27362e 0%, #09130e 38%, #193026 100%);
  box-shadow: 0 36px 88px rgba(11, 42, 25, .27), inset 0 0 0 1px rgba(211, 231, 218, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.prototype-stage.is-app-preview .phone-frame {
  box-shadow: 0 36px 88px rgba(11, 42, 25, .27), inset 0 0 0 1px rgba(211, 231, 218, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.phone-screen {
  background:
    radial-gradient(circle at 8% 0%, rgba(188, 229, 105, .13), transparent 28%),
    linear-gradient(180deg, #f8faf5 0%, var(--paper) 36%, #f0f3ed 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.screen-content {
  background:
    radial-gradient(circle at 6% -4%, rgba(190, 229, 109, .1), transparent 25%),
    linear-gradient(180deg, rgba(249, 250, 246, .98), rgba(242, 245, 239, .98));
}
.dynamic-island {
  background: linear-gradient(180deg, #030604, #0b110d);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06), 0 1px 3px rgba(3, 12, 7, .18);
}

.page-header__title strong,
.home-page .page-header__title strong,
.hub-page .page-header__title strong,
.section-title h2 { color: #0d2117; }
.icon-button,
.header-actions button {
  border-color: rgba(10, 76, 43, .1);
  background: linear-gradient(150deg, rgba(255, 255, 252, .92), rgba(240, 245, 239, .84));
  box-shadow: 0 4px 12px rgba(13, 59, 35, .045), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .14s ease;
}
.icon-button:hover,
.header-actions button:hover {
  color: var(--forest);
  border-color: rgba(7, 95, 59, .2);
  box-shadow: 0 7px 16px rgba(13, 59, 35, .075), inset 0 1px 0 rgba(255, 255, 255, .94);
}
.icon-button:active,
.header-actions button:active { transform: scale(.96); }

.card {
  border-color: var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 252, .98), rgba(248, 251, 246, .96));
  box-shadow: var(--shadow-small);
}
.card--clickable {
  transition: border-color .18s ease, box-shadow .18s ease, transform .14s ease, background .18s ease;
}
.card--clickable:hover {
  border-color: rgba(7, 95, 59, .18);
  background: linear-gradient(155deg, #fff, #f5faf2);
  box-shadow: 0 1px 1px rgba(7, 48, 29, .035), 0 14px 30px rgba(12, 54, 33, .1);
  transform: translateY(-1px);
}
.card--clickable:active { transform: translateY(0) scale(.992); }

.button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .14s ease;
}
.button--primary {
  border-color: #075a38;
  background: linear-gradient(145deg, #087247, #045534);
  box-shadow: 0 9px 20px rgba(5, 83, 49, .16), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.button--primary:hover {
  border-color: #043f29;
  background: linear-gradient(145deg, #086a42, #03472d);
  box-shadow: 0 11px 24px rgba(5, 83, 49, .21), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.button--secondary {
  background: rgba(252, 253, 249, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.button--secondary:hover { background: rgba(232, 243, 232, .78); }

.status-badge--green { color: #08603b; background: linear-gradient(135deg, #e4f3df, #edf7e9); }
.status-badge--orange { color: #a45a0a; background: linear-gradient(135deg, #f5e9d4, #faf1e4); }
.status-badge--blue { color: #2e6d87; background: linear-gradient(135deg, #e3eff2, #eef5f7); }
.status-badge--red { color: #9b4039; background: linear-gradient(135deg, #f5e4e1, #faefed); }
.metric strong { color: #0d3826; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }

.session-mode-bar,
.training-tabs,
.schedule-scope-tabs,
.cycle-range-tabs {
  border-color: rgba(10, 76, 43, .075);
  background: linear-gradient(180deg, #e8ece6, #e2e8e1);
  box-shadow: inset 0 1px 2px rgba(18, 55, 35, .045);
}
.training-tabs button.active,
.schedule-scope-tabs button.active,
.cycle-range-tabs button.active {
  background: linear-gradient(160deg, #fff, #f7faf5);
  box-shadow: 0 3px 9px rgba(17, 59, 37, .09), inset 0 1px 0 #fff;
}

.bottom-nav {
  border-top-color: rgba(11, 78, 45, .1);
  background: linear-gradient(180deg, rgba(255, 255, 252, .98), rgba(246, 249, 244, .985));
  box-shadow: 0 -10px 30px rgba(16, 57, 35, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.bottom-nav button { transition: color .18s ease, filter .18s ease, transform .14s ease; }
.bottom-nav button:active { transform: scale(.95); }
.bottom-nav button.is-primary > img {
  background: linear-gradient(145deg, #dff57b 0%, #a9e253 44%, #68c742 100%);
  box-shadow: 0 10px 24px rgba(22, 112, 59, .25), inset 0 1px 0 rgba(255, 255, 255, .72);
}

.home-ai-primary-entry {
  background:
    radial-gradient(circle at 88% 15%, rgba(184, 232, 92, .22), transparent 30%),
    linear-gradient(145deg, #06472f, #032f21);
  box-shadow: 0 18px 38px rgba(5, 58, 36, .21), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.home-ai-primary-entry__icon {
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.home-decision-card,
.profile-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(194, 228, 126, .12), transparent 28%),
    linear-gradient(155deg, #fff, #f8faf5);
  box-shadow: 0 1px 1px rgba(7, 48, 29, .035), 0 16px 34px rgba(12, 54, 33, .085);
}
.home-session-card--compact,
.training-program-card,
.profile-goal {
  background:
    radial-gradient(circle at 8% 15%, rgba(185, 229, 103, .12), transparent 32%),
    linear-gradient(145deg, #edf3eb, #e4ece5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}
.home-fueling-summary,
.home-fueling-cycle {
  background: linear-gradient(145deg, #f2efe6, #eae9e0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .64);
}
.readiness-track,
.training-plan-actual__row > i { box-shadow: inset 0 1px 2px rgba(13, 58, 35, .1); }

.training-week-card,
.training-plan-actual,
.profile-page-v21 .device-summary,
.profile-insights,
.profile-actions {
  background: linear-gradient(155deg, rgba(255, 255, 252, .98), rgba(247, 250, 245, .96));
  box-shadow: 0 1px 1px rgba(7, 48, 29, .03), 0 9px 24px rgba(12, 54, 33, .06);
}
.card.training-plan-actual {
  border: 1px solid rgba(35, 50, 42, .1);
  background: #fff;
  box-shadow: 0 1px 1px rgba(7, 48, 29, .025), 0 7px 18px rgba(12, 54, 33, .045);
}
.training-coros-sync {
  background: linear-gradient(145deg, #edf2ec, #e6ece7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.training-week-card > button.is-current {
  background: linear-gradient(100deg, rgba(226, 241, 221, .92), rgba(244, 248, 241, .86));
  box-shadow: inset 3px 0 0 #68be45;
}

.cycle-metric-card,
.cycle-trend-card,
.cycle-zone-card {
  border-color: rgba(10, 76, 43, .09);
  background: linear-gradient(155deg, #fff, #f7faf5);
  box-shadow: 0 8px 22px rgba(12, 54, 33, .055), inset 0 1px 0 #fff;
}
.cycle-metric-card::after { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent); }

.composer {
  border-color: rgba(10, 76, 43, .11);
  background: linear-gradient(160deg, rgba(255, 255, 252, .99), rgba(247, 250, 245, .98));
  box-shadow: 0 -10px 28px rgba(15, 55, 34, .075), inset 0 1px 0 rgba(255, 255, 255, .94);
}
.composer .composer-send {
  background: linear-gradient(145deg, #087247, #045534);
  box-shadow: 0 6px 14px rgba(5, 83, 49, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
}

@media (prefers-reduced-motion: reduce) {
  .card--clickable,
  .button,
  .icon-button,
  .header-actions button,
  .bottom-nav button { transition: none; }
}

/* TRAIN-HUB · Agent interpretation, styled as a compact sports-science report. */
.cycle-agent-summary {
  position: relative;
  min-height: 220px;
  padding: 0 16px 17px;
  overflow: hidden;
  border: 0;
  border-radius: 14px 24px 14px 14px;
  background:
    linear-gradient(rgba(13, 73, 43, .028) 1px, transparent 1px) 0 54px / 100% 26px,
    #fbfcf8;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 26px rgba(11, 57, 34, .07);
}
.cycle-agent-summary::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 3px;
  height: 38px;
  background: #0b6c43;
}
.cycle-agent-summary__head,
.cycle-agent-summary__identity,
.cycle-agent-summary__state,
.cycle-agent-summary__error > div,
.cycle-agent-summary__error button { display: flex; align-items: center; }
.cycle-agent-summary__head {
  min-height: 62px;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(12, 70, 42, .1);
}
.cycle-agent-summary__identity { gap: 10px; min-width: 0; }
.cycle-agent-summary__identity > div { display: grid; gap: 1px; min-width: 0; }
.cycle-agent-summary__identity b { color: #15271d; font-size: 11px; font-weight: 760; letter-spacing: -.01em; }
.cycle-agent-summary__identity small { color: #849087; font-size: 7px; letter-spacing: .035em; }
.cycle-agent-summary__mark {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px 12px 8px 8px;
  color: #fffaf4;
  background: #e86f12;
  box-shadow: 0 5px 12px rgba(181, 78, 6, .16), inset 0 1px 0 rgba(255, 255, 255, .25);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.cycle-agent-summary__state {
  flex: 0 0 auto;
  gap: 5px;
  color: #527062;
  font-size: 7px;
  font-weight: 690;
  white-space: nowrap;
}
.cycle-agent-summary__state svg { width: 12px; height: 12px; color: #13834e; stroke-width: 1.8; }
.cycle-agent-summary--loading .cycle-agent-summary__state svg { animation: cycle-agent-spin .8s linear infinite; }
.cycle-agent-summary__content { display: grid; gap: 0; padding-top: 15px; }
.cycle-agent-summary__eyebrow,
.cycle-agent-summary__evidence > span,
.cycle-agent-summary__action > span {
  color: #176d45;
  font-size: 7px;
  font-weight: 820;
  letter-spacing: .02em;
}
.cycle-agent-summary__eyebrow small,
.cycle-agent-summary__evidence > span small,
.cycle-agent-summary__action > span small {
  margin-left: 5px;
  color: #9aa39d;
  font-size: 6px;
  font-weight: 720;
  letter-spacing: .1em;
}
.cycle-agent-summary__content h3 {
  max-width: 95%;
  margin-top: 7px;
  color: #0e2619;
  font-size: 17px;
  font-weight: 790;
  line-height: 1.28;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.cycle-agent-summary__content > p {
  margin-top: 10px;
  color: #536159;
  font-size: 9px;
  font-weight: 480;
  line-height: 1.72;
  text-wrap: pretty;
}
.cycle-agent-summary__evidence {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid rgba(12, 70, 42, .11);
}
.cycle-agent-summary__evidence ul { margin: 0; padding: 0; list-style: none; }
.cycle-agent-summary__evidence li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 29px;
  border-bottom: 1px solid rgba(12, 70, 42, .075);
}
.cycle-agent-summary__evidence li > span {
  color: #a2aaa5;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}
.cycle-agent-summary__evidence li > b {
  color: #2d4a3b;
  font-size: 8px;
  font-weight: 660;
  line-height: 1.4;
}
.cycle-agent-summary__action {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  margin: 13px -4px 0;
  padding: 11px 8px 12px;
  border-top: 1px solid rgba(16, 103, 62, .14);
  border-bottom: 1px solid rgba(16, 103, 62, .09);
  background: rgba(225, 238, 220, .52);
}
.cycle-agent-summary__action > span { line-height: 1.35; }
.cycle-agent-summary__action > span small { display: block; margin: 2px 0 0; }
.cycle-agent-summary__action p { color: #315042; font-size: 8px; font-weight: 560; line-height: 1.55; }
.cycle-agent-summary__action > svg { width: 14px; height: 14px; color: #146d44; stroke-width: 1.7; }
.cycle-agent-summary__basis {
  overflow: hidden;
  margin-top: 10px;
  color: #8b9690;
  font-size: 6px;
  line-height: 1.45;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cycle-agent-summary__loading { display: grid; gap: 10px; margin-top: 22px; }
.cycle-agent-summary__loading > span {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: #e5ebe4;
  animation: cycle-agent-pulse 1.1s ease-in-out infinite alternate;
}
.cycle-agent-summary__loading > span:nth-child(1) { width: 72%; }
.cycle-agent-summary__loading > span:nth-child(2) { width: 94%; animation-delay: .12s; }
.cycle-agent-summary__loading > span:nth-child(3) { width: 58%; animation-delay: .24s; }
.cycle-agent-summary__loading small { margin-top: 4px; color: #74877b; font-size: 8px; }
.cycle-agent-summary__error { display: grid; gap: 16px; margin-top: 28px; }
.cycle-agent-summary__error > div { gap: 7px; color: #8b5c24; font-size: 9px; }
.cycle-agent-summary__error > div svg { width: 14px; height: 14px; }
.cycle-agent-summary__error button {
  width: fit-content;
  min-height: 31px;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(8, 91, 55, .18);
  border-radius: 7px;
  color: #0b6540;
  background: #f9fbf7;
  font-size: 8px;
  font-weight: 760;
  cursor: pointer;
}
.cycle-agent-summary__error button:focus-visible { outline: 2px solid #d97417; outline-offset: 2px; }
.cycle-agent-summary__error button:active { transform: scale(.98); }
.cycle-agent-summary__error button svg { width: 12px; height: 12px; }
@keyframes cycle-agent-spin { to { transform: rotate(360deg); } }
@keyframes cycle-agent-pulse { from { opacity: .48; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cycle-agent-summary--loading .cycle-agent-summary__state svg,
  .cycle-agent-summary__loading > span { animation: none; }
}

/* RECORD-03 · reuse the TRAIN-HUB sports-science report hierarchy for one workout. */
.record-detail-page .record-training-evaluation {
  min-height: 0;
  margin-top: 18px;
}
.record-training-evaluation .cycle-agent-summary__content > p {
  max-width: 34em;
}
.record-training-evaluation .cycle-agent-summary__basis {
  white-space: normal;
}
/* TRAIN-HUB · Distilled report layout: one insight surface, everything else flows. */
.cycle-status-dashboard { gap: 18px; }
.cycle-status-heading { align-items: center; padding-top: 5px; }
.cycle-status-heading .status-badge {
  padding: 0;
  color: #337153;
  background: transparent;
  box-shadow: none;
}
.cycle-status-heading .status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #48a65f;
  box-shadow: 0 0 0 3px rgba(72, 166, 95, .1);
}
.cycle-range-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 34px;
  margin-top: -5px;
  padding: 2px;
  border: 1px solid rgba(12, 70, 42, .08);
  border-radius: 10px;
  background: #e8ede7;
  box-shadow: inset 0 1px 2px rgba(18, 55, 35, .04);
}
.cycle-range-tabs button {
  min-width: 0;
  min-height: 30px;
  padding: 0 5px;
  border-radius: 8px;
  color: #748078;
  background: transparent;
  font-family: inherit;
  font-size: 8.5px;
}
.cycle-range-tabs button.active {
  color: #124a30;
  background: #fbfcf9;
  box-shadow: 0 2px 7px rgba(18, 66, 39, .08), inset 0 1px 0 #fff;
}
.cycle-metric-strip {
  grid-auto-columns: minmax(112px, 36%);
  gap: 0;
  margin: -2px -20px 0;
  padding: 0 20px;
  border-top: 1px solid rgba(13, 73, 43, .08);
  border-bottom: 1px solid rgba(13, 73, 43, .08);
  background: rgba(232, 238, 230, .5);
}
.cycle-metric-card {
  min-height: 100px;
  padding: 14px 13px 12px;
  border: 0;
  border-right: 1px solid rgba(13, 73, 43, .08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cycle-metric-card:first-child { border-left: 1px solid rgba(13, 73, 43, .08); }
.cycle-metric-card::after {
  top: 16px;
  right: 13px;
  width: 4px;
  height: 4px;
  box-shadow: none;
}
.cycle-metric-card > strong { margin-top: 13px; font-size: 21px; }
.cycle-metric-card > span { margin-top: 7px; }
.cycle-chart-stack {
  gap: 0;
  border-top: 1px solid rgba(12, 70, 42, .12);
  border-bottom: 1px solid rgba(12, 70, 42, .12);
}
.cycle-trend-card {
  padding: 18px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cycle-trend-card + .cycle-trend-card { border-top: 1px solid rgba(12, 70, 42, .085); }
.cycle-trend-card__head { padding: 0 2px 8px; }
.cycle-trend-card__head b { font-size: 12px; }
.cycle-trend-card__head > small { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.cycle-trend-chart { height: 156px; }
.cycle-zone-card {
  padding: 3px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cycle-zone-head { padding: 0 2px 12px; }
.cycle-zone-head > div[role="tablist"] {
  padding: 0;
  border-bottom: 1px solid rgba(12, 70, 42, .11);
  border-radius: 0;
  background: transparent;
}
.cycle-zone-head > div[role="tablist"] button {
  min-width: 43px;
  min-height: 28px;
  border-radius: 0;
}
.cycle-zone-head > div[role="tablist"] button.active {
  color: #12633e;
  background: transparent;
  box-shadow: inset 0 -1px 0 #16804d;
}
.cycle-comparison-table { border-top-color: rgba(12, 70, 42, .13); }
.cycle-comparison-table__row { min-height: 39px; }
.cycle-status-footnote {
  margin-top: -6px;
  padding-top: 10px;
  border-top: 1px solid rgba(12, 70, 42, .08);
}

/* TRAIN-HUB · Mobile density and mileage data-color roles. */
.cycle-metric-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-columns: auto;
  grid-auto-flow: row;
  overflow: visible;
  scroll-snap-type: none;
}
.cycle-metric-card {
  min-width: 0;
  min-height: 92px;
  padding: 13px 14px 12px;
  border-right: 1px solid rgba(13, 73, 43, .08);
  scroll-snap-align: none;
}
.cycle-metric-card:nth-child(odd) { border-left: 1px solid rgba(13, 73, 43, .08); }
.cycle-metric-card:nth-child(-n + 2) { border-bottom: 1px solid rgba(13, 73, 43, .08); }
.cycle-metric-card > strong { margin-top: 11px; font-size: 22px; }
.cycle-metric-card > span { margin-top: 6px; }
.training-plan-actual {
  --mileage-plan: #7193ad;
  --mileage-actual: #e47d27;
}
.training-plan-actual__legend i {
  border: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(28, 50, 39, .08);
}
.training-plan-actual__legend i.is-plan { background: var(--mileage-plan); }
.training-plan-actual__legend i.is-actual { background: var(--mileage-actual); }
.training-plan-actual__metrics > div:nth-child(1) strong { color: var(--mileage-actual); }
.training-plan-actual__metrics > div:nth-child(2) strong { color: #4f7088; }
.training-plan-actual__metrics > div:nth-child(3) strong { color: #176d45; }

/* HOME-01 · One Chinese UI typeface keeps CJK, Latin, and numbers visually coherent. */
.home-page--v21 {
  --home-font-ui: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-family: var(--home-font-ui);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.home-page--v21 :where(button, input, textarea) {
  font-family: inherit;
}

/* TRAIN-HUB · long-term performance comparisons use the same period on both sides. */
.cycle-performance-compare,
.cycle-long-term-card,
.cycle-zone-distribution {
  padding: 16px 0 2px;
  border-top: 1px solid rgba(12, 70, 42, .12);
}
.cycle-performance-compare__head,
.cycle-long-term-card__head,
.record-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cycle-performance-compare__head > div,
.cycle-long-term-card__head > div,
.record-section-head > div { min-width: 0; }
.cycle-performance-compare__head span,
.cycle-long-term-card__head span,
.record-section-head span {
  display: block;
  color: #4e765f;
  font-size: 7.5px;
  font-weight: 780;
  letter-spacing: .1em;
}
.cycle-performance-compare__head h3,
.cycle-long-term-card__head h3,
.record-section-head h2 {
  margin: 3px 0 0;
  color: #173828;
  font-size: 13px;
  line-height: 1.25;
}
.cycle-performance-compare__head > small,
.cycle-long-term-card__head > small,
.record-section-head > small {
  flex: none;
  padding-top: 3px;
  color: #87928b;
  font-size: 7.5px;
}
.cycle-performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  border-top: 1px solid rgba(12, 70, 42, .09);
  border-left: 1px solid rgba(12, 70, 42, .09);
}
.cycle-performance-grid article {
  min-width: 0;
  padding: 11px 10px;
  border-right: 1px solid rgba(12, 70, 42, .09);
  border-bottom: 1px solid rgba(12, 70, 42, .09);
  background: rgba(250, 252, 248, .72);
}
.cycle-performance-grid span,
.cycle-performance-grid b,
.cycle-performance-grid small { display: block; }
.cycle-performance-grid span { color: #7c8881; font-size: 7.5px; }
.cycle-performance-grid b {
  margin-top: 5px;
  overflow: hidden;
  color: #174d32;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cycle-performance-grid small { margin-top: 4px; color: #4f8063; font-size: 7px; }
.cycle-long-term-tabs {
  display: flex;
  gap: 5px;
  margin: 12px -20px 0;
  padding: 0 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cycle-long-term-tabs::-webkit-scrollbar { display: none; }
.cycle-long-term-tabs button {
  flex: none;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(20, 75, 46, .11);
  border-radius: 6px;
  color: #6f7d74;
  background: #f4f7f2;
  font-family: inherit;
  font-size: 8px;
}
.cycle-long-term-tabs button.active {
  border-color: rgba(18, 106, 64, .24);
  color: #0f6840;
  background: #eaf3eb;
}
.cycle-long-term-tabs button:focus-visible { outline: 2px solid #d97417; outline-offset: 2px; }
.cycle-long-term-chart { height: 176px; margin-top: 4px; }
.cycle-zone-distribution__group { padding: 12px 1px 8px; }
.cycle-zone-distribution__group + .cycle-zone-distribution__group { border-top: 1px solid rgba(12, 70, 42, .08); }
.cycle-zone-distribution__group > b { color: #34483c; font-size: 9px; }
.cycle-zone-distribution__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cycle-zone-distribution__row > span { color: #7d8982; font-size: 7px; }
.cycle-zone-distribution__bar,
.record-zone-distribution__bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8ede8;
}
.cycle-zone-distribution__bar i,
.record-zone-distribution__bar i { display: block; height: 100%; }
.cycle-zone-distribution__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 0 56px;
}
.cycle-zone-distribution__legend span { display: inline-flex; align-items: center; gap: 3px; color: #89928d; font-size: 6.5px; }
.cycle-zone-distribution__legend i { width: 5px; height: 5px; border-radius: 1px; }

/* RECORD-03 · one-workout report. Historical comparisons stay in TRAIN-HUB. */
.record-detail-page { padding-bottom: 36px; }
.record-detail-page .macro-strip {
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(12, 70, 42, .1);
}
.record-session-summary,
.record-session-chart,
.record-zone-section,
.record-split-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 70, 42, .1);
}
.record-session-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 11px;
  border-top: 1px solid rgba(12, 70, 42, .09);
  border-left: 1px solid rgba(12, 70, 42, .09);
}
.record-session-metrics article {
  min-width: 0;
  padding: 10px 9px;
  border-right: 1px solid rgba(12, 70, 42, .09);
  border-bottom: 1px solid rgba(12, 70, 42, .09);
  background: rgba(250, 252, 248, .72);
}
.record-session-metrics span,
.record-session-metrics b { display: block; }
.record-session-metrics span { color: #7b8780; font-size: 7.5px; }
.record-session-metrics b { margin-top: 5px; color: #174d32; font-size: 15px; font-variant-numeric: tabular-nums; }
.record-session-metrics b small { color: #7c8881; font-size: 7px; font-weight: 560; }
.record-load-range { padding: 12px 2px 2px; }
.record-load-range > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: #68766e; font-size: 7.5px; }
.record-load-range > div:first-child b { color: #3f654f; }
.record-load-range__track { position: relative; height: 7px; margin-top: 9px; border-radius: 2px; background: #e4e9e4; }
.record-load-range__track span { position: absolute; inset-block: 0; border-radius: 2px; background: #9fc8a8; }
.record-load-range__track i { position: absolute; z-index: 1; top: -3px; width: 2px; height: 13px; border-radius: 1px; background: #d46f22; box-shadow: 0 0 0 2px #fbfcf9; }
.record-session-chart__canvas { height: 164px; margin-top: 4px; }
.record-zone-distribution { padding: 12px 1px 8px; }
.record-zone-distribution + .record-zone-distribution { border-top: 1px solid rgba(12, 70, 42, .08); }
.record-zone-distribution > b { color: #34483c; font-size: 9px; }
.record-zone-distribution__bar { margin-top: 8px; }
.record-zone-distribution__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin-top: 10px; }
.record-zone-distribution__legend span { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 5px; color: #6f7c74; font-size: 7px; }
.record-zone-distribution__legend span > i { width: 6px; height: 6px; border-radius: 1px; }
.record-zone-distribution__legend span > b { color: #435349; font-variant-numeric: tabular-nums; }
.record-split-table { margin-top: 11px; border-top: 1px solid rgba(12, 70, 42, .12); }
.record-split-table__head,
.record-split-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr .8fr 1fr;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid rgba(12, 70, 42, .075);
  font-variant-numeric: tabular-nums;
}
.record-split-table__head { min-height: 28px; color: #89928d; font-size: 6.5px; }
.record-split-table__row { color: #536159; font-size: 7.5px; }
.record-split-table__row b { color: #1e4a32; }
.record-elevation-chart { padding-bottom: 3px; }
.record-analysis-gate {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  border: 1px dashed rgba(18, 106, 64, .22);
  border-radius: 8px;
  background: #f3f7f1;
}
.record-analysis-gate > svg { width: 20px; height: 20px; color: #2c8055; }
.record-analysis-gate b { color: #234d35; font-size: 9px; }
.record-analysis-gate p { margin: 4px 0 0; color: #6f7d74; font-size: 7.5px; line-height: 1.6; }
.record-detail-page .record-training-evaluation { margin-top: 20px; }
.training-performance-metrics--expanded { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.training-performance-metrics--expanded > div:nth-child(4) { border-left: 0; }
.training-performance-metrics--expanded > div:nth-child(n + 4) { border-top: 1px solid rgba(26,80,51,.08); }
.training-performance-function-summary { padding: 11px 12px; border-bottom: 1px solid rgba(26,80,51,.09); background: #f1f6ef; }
.training-performance-function-summary span,
.training-performance-function-summary b { display: block; }
.training-performance-function-summary span { color: #6f8076; font-size: 7px; }
.training-performance-function-summary b { margin-top: 4px; color: #176742; font-size: 9px; }
.training-performance-function-summary p { margin: 6px 0 0; color: #607066; font-size: 7.5px; line-height: 1.55; }

/* TRAIN-HUB · grouped like RECORD-03, without repeating the top function metrics. */
.cycle-period-report {
  margin-top: 2px;
  padding-top: 17px;
  border-top: 1px solid rgba(12, 70, 42, .12);
}
.cycle-period-report > p {
  max-width: 34em;
  margin: 7px 0 0;
  color: #78857d;
  font-size: 7.5px;
  line-height: 1.55;
}
.cycle-performance-group {
  margin-top: 23px;
}
.cycle-performance-group + .cycle-performance-group {
  padding-top: 20px;
  border-top: 1px solid rgba(12, 70, 42, .085);
}
.cycle-performance-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 1px;
}
.cycle-performance-group__head span {
  display: block;
  color: #4e765f;
  font-size: 7px;
  font-weight: 780;
  letter-spacing: .1em;
}
.cycle-performance-group__head h3 {
  margin: 3px 0 0;
  color: #173828;
  font-size: 12px;
  line-height: 1.25;
}
.cycle-performance-group__head > small {
  flex: none;
  padding-top: 3px;
  color: #8a958e;
  font-size: 7px;
}
.cycle-performance-group__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid rgba(12, 70, 42, .09);
  background: rgba(250, 252, 248, .7);
}
.cycle-performance-group__metrics.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cycle-performance-group__metrics:has(> :only-child) {
  grid-template-columns: 1fr;
}
.cycle-performance-group__metrics article {
  min-width: 0;
  padding: 10px 9px;
}
.cycle-performance-group__metrics article + article {
  border-inline-start: 1px solid rgba(12, 70, 42, .085);
}
.cycle-performance-group__metrics span,
.cycle-performance-group__metrics b,
.cycle-performance-group__metrics small { display: block; }
.cycle-performance-group__metrics span {
  overflow: hidden;
  color: #7b8780;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cycle-performance-group__metrics b {
  margin-top: 5px;
  overflow: hidden;
  color: #174d32;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cycle-performance-group__metrics small {
  margin-top: 4px;
  overflow: hidden;
  color: #4f8063;
  font-size: 6.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cycle-performance-group__tabs {
  display: inline-flex;
  gap: 2px;
  margin-top: 11px;
  padding: 2px;
  border-radius: 7px;
  background: #e9eee8;
}
.cycle-performance-group__tabs button {
  min-height: 27px;
  padding: 0 10px;
  border-radius: 5px;
  color: #718078;
  background: transparent;
  font-family: inherit;
  font-size: 7.5px;
}
.cycle-performance-group__tabs button.active {
  color: #12623e;
  background: #fbfcf9;
  box-shadow: 0 2px 6px rgba(18, 66, 39, .07);
}
.cycle-performance-group__tabs button:focus-visible {
  outline: 2px solid #d97417;
  outline-offset: 2px;
}
.cycle-performance-group .cycle-long-term-chart {
  height: 154px;
  margin-top: 2px;
}

/* The post-run report body is shared by HOME-01 and RECORD-03. */
.training-performance-headline {
  margin: 11px 12px 0;
  color: #173828;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.record-shared-training-report {
  overflow: hidden;
  background: rgba(255, 255, 255, .86);
}
.record-shared-training-report .training-performance-report-body {
  border-top: 1px solid rgba(23, 75, 46, .08);
}
.record-shared-training-report > small {
  display: block;
  margin: 11px 12px 13px;
  padding-top: 9px;
  border-top: 1px solid rgba(23, 75, 46, .08);
  color: #89938d;
  font-size: 6.8px;
  line-height: 1.5;
}
.record-training-evaluation--locked {
  min-height: 0;
  margin-top: 18px;
}
.record-summary-locked__body {
  padding: 14px 13px 13px;
  border-top: 1px solid rgba(23, 75, 46, .08);
  background: rgba(250, 252, 248, .9);
}
.record-summary-locked__body > span {
  color: #327553;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .07em;
}
.record-summary-locked__body > span small {
  margin-left: 4px;
  color: #91a097;
  font-size: 6px;
}
.record-summary-locked__body > h3 {
  margin: 7px 0 0;
  color: #183c29;
  font-size: 12px;
  line-height: 1.45;
}
.record-summary-locked__body > p {
  margin: 6px 0 0;
  color: #6e7d74;
  font-size: 7.5px;
  line-height: 1.55;
}
.record-summary-locked__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.record-summary-locked__steps button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(23, 105, 64, .13);
  border-radius: 7px;
  color: #286d4a;
  background: #fff;
  text-align: left;
}
.record-summary-locked__steps button > svg { width: 16px; height: 16px; }
.record-summary-locked__steps button > span { min-width: 0; }
.record-summary-locked__steps b,
.record-summary-locked__steps small { display: block; }
.record-summary-locked__steps b { color: #244535; font-size: 8px; }
.record-summary-locked__steps small { margin-top: 2px; color: #829087; font-size: 6.5px; }
.record-summary-locked__steps button.is-complete { color: #2a8155; background: #edf6ec; }
.record-summary-locked__steps button:focus-visible { outline: 2px solid #d97417; outline-offset: 2px; }

/* Multi-turn questions keep chat cues; Agent answers read like reports. */
.home-page .conversation-message {
  margin-bottom: 18px;
}
.home-page .conversation-message--answer {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.home-page .conversation-message--answer > .message-avatar {
  width: 30px;
  height: 30px;
  border-width: 1px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(210, 78, 12, .12);
}
.home-page .conversation-message--answer > .message-avatar img {
  width: 43px;
  height: 43px;
}
.home-page .conversation-message--answer .message-stack { width: 100%; }
.home-agent-answer {
  width: 100%;
  min-width: 0;
  padding: 1px 0 15px;
  border-bottom: 1px solid rgba(13, 73, 43, .11);
}
.home-agent-answer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
}
.home-agent-answer > header span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #176d45;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.4;
  letter-spacing: 0;
}
.home-agent-answer > header svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}
.home-agent-answer > header time {
  color: #98a19b;
  font-size: 10px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
.home-agent-answer > p {
  margin-top: 8px;
  max-width: 30em;
  color: #25382e;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.72;
  letter-spacing: 0;
  text-wrap: pretty;
  white-space: pre-line;
}
.home-agent-answer > footer {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(13, 73, 43, .07);
}
.home-agent-answer > footer > span {
  color: #7b8981;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}
.home-agent-answer > footer > p {
  color: #87928b;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}
.home-page .message-row--user.conversation-message {
  margin-top: 2px;
  margin-bottom: 20px;
}
.home-page .message-row--user.conversation-message .message-meta {
  margin: 0 5px 5px;
  color: #8a958f;
  font-size: 10px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
.home-page .message-row--user.conversation-message .message-bubble {
  min-width: 0;
  max-width: min(82%, 264px);
  padding: 9px 12px;
  border: 0;
  border-radius: 13px 13px 4px 13px;
  color: #183b28;
  background: #d8eda9;
  box-shadow: 0 4px 11px rgba(48, 99, 38, .08);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0;
}
.home-page .conversation-message--with-card .message-bubble {
  max-width: 92%;
  box-shadow: none;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: 0;
}

/* Completion quality gate · keep helper text readable on primary mobile pages. */
.page-header__title-button {
  min-height: 30px;
  line-height: 1.2;
  overflow: visible;
}
.training-plan-actual > p {
  font-size: 10px;
  line-height: 1.55;
}
.today-fueling-summary small {
  font-size: 10px;
  font-weight: 700;
}
.today-fueling-summary p {
  max-width: 236px;
  font-size: 10px;
  line-height: 1.6;
}
.today-fueling-phase > div > span {
  font-size: 11px;
  font-weight: 700;
}
.today-fueling-phase > div > span small {
  font-size: 10px;
}
.today-fueling-phase p,
.today-fueling-gi small,
.today-fueling-footnote {
  font-size: 10px;
  line-height: 1.55;
}
.today-fueling-gi b { font-size: 11px; }
.today-fueling-gi {
  grid-template-columns: 30px minmax(0, 1fr) auto 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .14s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.today-fueling-gi em {
  color: #25744d;
  font-size: 9px;
  font-style: normal;
  font-weight: 740;
  white-space: nowrap;
}
.today-fueling-gi:hover { border-color: rgba(44, 130, 73, .3); box-shadow: 0 8px 20px rgba(37, 103, 59, .09); }
.today-fueling-gi:active { transform: scale(.985); }
.today-fueling-gi:focus-visible { outline: 2px solid #23804f; outline-offset: 2px; }

/* NUT-10 · Gut-training guide keeps the current training context intact. */
.gut-training-page { padding-bottom: 92px; background: linear-gradient(180deg, #fbfcf7 0%, #f6f8f2 100%); }
.gut-training-hero {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(72, 131, 73, .14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 8%, rgba(221, 240, 143, .54), transparent 34%),
    linear-gradient(140deg, #eef7df 0%, #fafcf2 72%);
  box-shadow: 0 10px 26px rgba(38, 89, 52, .08);
  animation: gut-guide-enter .28s cubic-bezier(.16, 1, .3, 1) both;
}
.gut-training-hero__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #177c4c;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(34, 112, 64, .1);
}
.gut-training-hero__icon svg { width: 23px; }
.gut-training-hero > div { min-width: 0; }
.gut-training-hero > div > small { color: #3f7d57; font-size: 9px; font-weight: 760; letter-spacing: .08em; }
.gut-training-hero h1 { margin-top: 4px; color: #173c27; font-size: 19px; line-height: 1.25; letter-spacing: -.025em; }
.gut-training-hero p { margin-top: 7px; color: #5c7064; font-size: 10px; line-height: 1.65; }
.gut-training-preserved {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #2c714b;
  background: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 700;
}
.gut-training-preserved svg { width: 12px; height: 12px; }
.gut-training-section { margin-top: 18px; padding-top: 17px; border-top: 1px solid rgba(25, 83, 49, .11); }
.gut-training-section__heading { display: flex; align-items: center; gap: 10px; }
.gut-training-section__heading > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #19764a; background: #e8f2e3; }
.gut-training-section__heading svg { width: 17px; height: 17px; }
.gut-training-section__heading div { display: grid; gap: 1px; }
.gut-training-section__heading small { color: #849087; font-size: 7px; font-weight: 760; letter-spacing: .11em; }
.gut-training-section__heading h2 { color: #1d3528; font-size: 14px; }
.gut-training-principles { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.gut-training-principles li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 10px 2px; border-bottom: 1px solid rgba(26, 79, 47, .08); }
.gut-training-principles li > svg { width: 15px; height: 15px; margin-top: 1px; padding: 2px; border-radius: 50%; color: #fff; background: #47a45f; }
.gut-training-principles span { display: grid; gap: 3px; }
.gut-training-principles b { color: #294536; font-size: 11px; }
.gut-training-principles small { color: #728079; font-size: 9px; line-height: 1.55; }
.gut-training-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.gut-training-benefits > div { min-height: 86px; padding: 12px 9px; border-radius: 14px; background: #edf3e9; }
.gut-training-benefits b { color: #24613e; font-size: 10px; }
.gut-training-benefits p { margin-top: 7px; color: #6e7c74; font-size: 8px; line-height: 1.55; }
.gut-training-steps { display: grid; gap: 0; margin: 13px 0 0; padding: 0; list-style: none; counter-reset: gut-step; }
.gut-training-steps li { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 9px; min-height: 55px; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(26, 79, 47, .08); counter-increment: gut-step; }
.gut-training-steps li::before { content: counter(gut-step); position: absolute; top: 10px; left: 0; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: #fff; background: #26794c; font-size: 9px; font-weight: 800; }
.gut-training-steps b { color: #2a4938; font-size: 10px; }
.gut-training-steps p { color: #6c7c73; font-size: 9px; line-height: 1.55; }
.gut-training-safety { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin-top: 17px; padding: 11px 12px; border-radius: 13px; color: #786744; background: #f7f2e5; }
.gut-training-safety svg { width: 16px; height: 16px; }
.gut-training-safety p { font-size: 8px; line-height: 1.55; }
.gut-training-actions { grid-template-columns: 1fr; background: linear-gradient(180deg, rgba(246, 248, 242, 0), #f6f8f2 24%); }
.gut-training-actions .button { width: 100%; }
@keyframes gut-guide-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .today-fueling-gi { transition: none; }
  .gut-training-hero { animation: none; }
}
.profile-basis {
  font-size: 10px;
  line-height: 1.5;
}

/* TRAIN-HUB · Put the weekly execution path before retrospective mileage data. */
.training-week-priority {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
}
.training-week-priority__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}
.training-week-priority__head > div {
  min-width: 0;
}
.training-week-priority__head > div > span {
  color: #278353;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .12em;
}
.training-week-priority__head h2 {
  margin-top: 4px;
  color: #17291f;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.training-week-priority__head p {
  margin-top: 5px;
  color: #77867e;
  font-size: 10px;
  line-height: 1.45;
}
.training-week-card--priority {
  padding: 4px 8px;
  border: 1px solid rgba(24, 78, 52, .09);
  border-radius: 18px;
  background: rgba(255, 255, 252, .82);
  box-shadow: 0 10px 26px rgba(29, 70, 45, .07);
}
.training-week-card--priority > button {
  grid-template-columns: 48px minmax(0, 1fr) auto 14px;
  gap: 9px;
  min-height: 70px;
  padding: 6px 5px;
  border-bottom-color: rgba(21, 78, 51, .075);
  border-radius: 0;
  cursor: pointer;
  transition: background .16s ease, transform .12s ease, box-shadow .16s ease;
}
.training-week-card--priority > button:active {
  transform: scale(.985);
}
.training-week-card--priority > button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #1f8753;
  outline-offset: 2px;
}
.training-week-card--priority > button > img {
  width: 54px;
  height: 46px;
  margin-inline-start: -5px;
  object-fit: contain;
}
.training-week-card--priority .week-copy {
  min-width: 0;
}
.training-week-card--priority .week-copy b {
  color: #23372c;
  font-size: 11px;
  font-weight: 730;
  line-height: 1.42;
  text-wrap: pretty;
}
.training-week-card--priority .week-copy small {
  margin-top: 1px;
  color: #829087;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.week-row-trailing {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 58px;
}
.training-week-card--priority .week-state {
  font-size: 8px;
  font-weight: 650;
}
.week-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #526159;
  background: #edf1ed;
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
}
.week-row-action--today,
.week-row-action--in-progress {
  color: #fff;
  background: linear-gradient(135deg, #2f9658, #156c43);
  box-shadow: 0 5px 12px rgba(30, 116, 68, .18);
}
.week-row-action--completed {
  color: #2b714b;
  background: #e6f1e7;
}
.week-row-action--missed {
  color: #8b542f;
  background: #f7ece3;
}
.training-week-card--priority > button.is-current,
.training-week-card--priority > button.is-today {
  margin-inline: 0;
  padding-inline: 5px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 94% 20%, rgba(209, 236, 118, .34), transparent 32%),
    linear-gradient(90deg, rgba(224, 243, 200, .72), rgba(247, 250, 242, .78));
  box-shadow: inset 3px 0 0 #67be43;
}
.training-week-card--priority > button.is-today .week-copy b {
  color: #155d3a;
}
@media (max-width: 360px) {
  .training-week-card--priority > button {
    grid-template-columns: 43px minmax(0, 1fr) auto 12px;
    gap: 7px;
  }
  .training-week-card--priority > button > img {
    width: 48px;
    height: 42px;
  }
  .week-row-trailing { min-width: 52px; }
  .week-row-action { padding-inline: 6px; font-size: 8px; }
}

/* TRAIN-HUB · Layout audit polish: calmer surfaces, clearer weekly hierarchy. */
.training-hub-v21 .training-program-card {
  gap: 10px 12px;
  padding: 16px;
  border: 1px solid rgba(24, 78, 52, .08);
  border-radius: 20px;
  background: #e8efe7;
  box-shadow: none;
}
.training-hub-v21 .training-program-copy {
  min-width: 0;
  gap: 9px;
}
.training-hub-v21 .training-program-copy img {
  width: 56px;
  height: 48px;
  margin-left: -5px;
}
.training-hub-v21 .training-program-copy > div {
  min-width: 0;
  gap: 3px;
}
.training-hub-v21 .training-program-copy h2 {
  color: #172b20;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.32;
  word-break: keep-all;
  text-wrap: balance;
}
.training-hub-v21 .training-tabs button,
.training-hub-v21 .schedule-scope-tabs button {
  min-height: 44px;
}
.training-hub-v21 .training-program-copy > div > span:last-child {
  color: #627268;
  font-size: 10px;
}
.training-hub-v21 .training-plan-version {
  padding: 3px 6px;
  border-radius: 6px;
  color: #315d46 !important;
  background: rgba(255, 255, 255, .56);
}
.training-hub-v21 .training-program-score {
  align-self: center;
  gap: 1px;
}
.training-hub-v21 .training-program-score strong {
  font-size: 26px;
  line-height: 1;
}
.training-hub-v21 .training-program-metrics {
  gap: 0;
  padding: 1px 0;
}
.training-hub-v21 .training-program-metrics > span {
  gap: 4px;
  padding: 1px 9px;
}
.training-hub-v21 .training-program-metrics > span:first-child { padding-left: 0; }
.training-hub-v21 .training-program-metrics > span:last-child { padding-right: 0; }
.training-hub-v21 .training-program-metrics small { font-size: 8px; line-height: 1.25; }
.training-hub-v21 .training-program-metrics b { font-size: 10px; line-height: 1.35; }
.training-hub-v21 .training-program-revision {
  padding: 8px 9px;
  border-color: rgba(170, 111, 43, .15);
  border-radius: 10px;
  background: #f8f4e9;
}
.training-hub-v21 .agent-plan-stamp { margin-top: 1px; }

.training-hub-v21 .training-week-priority {
  gap: 11px;
  margin: 8px 0 12px;
}
.training-hub-v21 .training-week-priority__head {
  align-items: flex-start;
  padding: 0 2px;
}
.training-hub-v21 .training-week-priority__head > div > span {
  color: #278353;
  font-size: 9px;
  letter-spacing: normal;
}
.training-hub-v21 .training-week-priority__head h2 {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: normal;
  text-wrap: balance;
}
.training-hub-v21 .training-week-priority__head p {
  margin-top: 4px;
  color: #748279;
  font-size: 10px;
}
.training-hub-v21 .training-week-card--priority {
  padding: 4px 8px;
  border-color: rgba(24, 78, 52, .1);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(29, 70, 45, .055);
}
.training-hub-v21 .training-week-card--priority > button {
  grid-template-columns: 46px minmax(0, 1fr) auto 12px;
  gap: 8px;
  min-height: 68px;
  padding: 6px 6px;
  border-bottom-color: rgba(21, 78, 51, .07);
  transition: transform .12s ease, background .16s ease;
}
.training-hub-v21 .training-week-card--priority > button > img {
  width: 50px;
  height: 44px;
  margin-inline-start: -4px;
}
.training-hub-v21 .training-week-card--priority .week-copy b {
  font-size: 11px;
  line-height: 1.38;
}
.training-hub-v21 .training-week-card--priority .week-copy small {
  color: #7b8a81;
  font-size: 9px;
}
.training-hub-v21 .week-row-trailing {
  gap: 5px;
  min-width: 56px;
}
.training-hub-v21 .week-row-action {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 9px;
  background: #eef1ee;
}
.training-hub-v21 .week-row-action--today,
.training-hub-v21 .week-row-action--in-progress {
  background: #247d4b;
  box-shadow: none;
}
.training-hub-v21 .training-week-card--priority > button.is-current,
.training-hub-v21 .training-week-card--priority > button.is-today {
  border-radius: 12px;
  background: #f0f6e8;
  box-shadow: inset 3px 0 0 #64b844;
}

.training-hub-v21 .card.training-plan-actual {
  margin-top: 14px;
  padding: 16px;
  border-color: rgba(35, 50, 42, .09);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(12, 54, 33, .04);
}
.training-hub-v21 .training-plan-actual__head b { font-size: 15px; line-height: 1.3; }
.training-hub-v21 .training-plan-actual__metrics { padding: 10px 0; }
.training-hub-v21 .training-plan-actual__metrics span { font-size: 8px; }
.training-hub-v21 .training-plan-actual__metrics strong { font-size: 15px; }
.training-hub-v21 .training-plan-actual__figure-title span { font-size: 9px; }
.training-hub-v21 .training-plan-history {
  border-color: rgba(24, 78, 52, .09);
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 360px) {
  .training-hub-v21 .training-program-card { padding: 14px; }
  .training-hub-v21 .training-program-copy img { width: 48px; height: 44px; }
  .training-hub-v21 .training-program-copy h2 { font-size: 14px; }
  .training-hub-v21 .training-program-metrics > span { padding-inline: 6px; }
  .training-hub-v21 .training-program-metrics b { font-size: 9px; }
  .training-hub-v21 .training-week-priority__head h2 { font-size: 17px; }
}

/* Phase-one distillation · keep the visible product focused on training execution. */
.training-phase-one-progress {
  display: grid;
  gap: 16px;
  margin: 6px 0 18px;
  padding: 4px 2px 16px;
}
.training-phase-one-progress__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}
.training-phase-one-progress__head > div { min-width: 0; }
.training-phase-one-progress__head small {
  color: #36815a;
  font-size: 10px;
  font-weight: 720;
}
.training-phase-one-progress__head h2 {
  margin: 5px 0 4px;
  color: #14271d;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.24;
  text-wrap: balance;
}
.training-phase-one-progress__head p {
  max-width: 275px;
  color: #6d7c73;
  font-size: 11px;
  line-height: 1.55;
  text-wrap: pretty;
}
.training-phase-one-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 15px 0;
  border-block: 1px solid rgba(26, 79, 52, .1);
}
.training-phase-one-metrics > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid rgba(26, 79, 52, .08);
}
.training-phase-one-metrics > div:first-child { padding-left: 2px; }
.training-phase-one-metrics > div:last-child { padding-right: 2px; border-right: 0; }
.training-phase-one-metrics small { color: #76847c; font-size: 10px; }
.training-phase-one-metrics b {
  color: #173d2a;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}
.training-phase-one-metrics b span { color: #7b8880; font-size: 10px; font-weight: 620; }
.training-phase-one-bars {
  display: grid;
  gap: 13px;
  padding: 15px;
  border-radius: 18px;
  background: #f0f4ef;
}
.training-phase-one-bars > div { display: grid; gap: 7px; }
.training-phase-one-bars > div > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.training-phase-one-bars b { color: #263b30; font-size: 11px; }
.training-phase-one-bars small {
  color: #69786f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.training-phase-one-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 91, 55, .1);
}
.training-phase-one-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #318354;
}
.training-phase-one-track--orange i { background: #d98235; }
.training-phase-one-bars > p { color: #7b887f; font-size: 10px; line-height: 1.45; }
.training-phase-one-agent {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(42, 115, 72, .11);
  border-radius: 19px;
  background: #f7faf4;
}
.training-phase-one-agent .message-avatar { width: 42px; height: 42px; }
.training-phase-one-agent > div { min-width: 0; }
.training-phase-one-agent small { color: #3a825b; font-size: 10px; font-weight: 730; }
.training-phase-one-agent h3 {
  margin: 4px 0 6px;
  color: #173b29;
  font-size: 15px;
  line-height: 1.35;
  text-wrap: balance;
}
.training-phase-one-agent p {
  color: #53665b;
  font-size: 11px;
  line-height: 1.65;
  text-wrap: pretty;
}
.training-phase-one-agent span {
  display: block;
  margin-top: 8px;
  color: #8a958e;
  font-size: 9px;
  line-height: 1.45;
}
.training-phase-one-progress > .button { justify-self: stretch; }

/* NUT-01 · one connected plan instead of three floating cards. */
.today-fueling-timeline {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(75, 104, 86, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 7px 22px rgba(42, 79, 53, .05);
}
.today-fueling-phase {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 15px 14px;
  border-bottom: 1px solid rgba(63, 96, 76, .09);
  background: transparent;
}
.today-fueling-phase:last-child { border-bottom: 0; }
.today-fueling-phase > b { width: 30px; height: 30px; border-radius: 10px; }
.today-fueling-phase h2 { font-size: 13px; line-height: 1.4; text-wrap: balance; }
.today-fueling-summary h1 { font-size: 21px; line-height: 1.25; text-wrap: balance; }
.today-fueling-actions .button { min-height: 46px; }

@media (max-width: 360px) {
  .training-phase-one-progress__head { gap: 10px; }
  .training-phase-one-progress__head h2 { font-size: 18px; }
  .training-phase-one-metrics > div { padding-inline: 8px; }
  .training-phase-one-metrics b { font-size: 15px; }
  .today-fueling-phase { grid-template-columns: 30px minmax(0, 1fr); }
  .today-fueling-phase .status-badge { grid-column: 2; justify-self: start; }
}

/* V32 · functional layout polish: keep behavior, reduce visual crowding. */
.home-fueling-summary {
  grid-template-columns: 34px minmax(0, 1fr) auto 12px;
  gap: 8px;
  min-height: 60px;
  padding: 10px 11px;
  border-color: rgba(76, 86, 73, .1);
  background: linear-gradient(145deg, #f1f0e9, #e9ece5);
}
.home-fueling-summary small {
  color: #6f7a73;
  font-size: 10px;
  line-height: 1.25;
}
.home-fueling-summary b {
  overflow: visible;
  color: #26382e;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}
.home-fueling-summary .status-badge {
  min-width: 32px;
  justify-content: center;
}

/* Daily home conversation: fueling is a complete second turn, not a footnote. */
.home-fueling-message {
  margin: 2px 0 10px;
}
.home-fueling-message .message-stack {
  width: 100%;
  min-width: 0;
  gap: 9px;
}
.home-fueling-message .message-bubble {
  max-width: 92%;
}
.home-fueling-message .home-fueling-cycle {
  width: 100%;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(108, 93, 55, .13);
  border-radius: 16px;
  background: linear-gradient(145deg, #f5f1e7, #ebece4);
  box-shadow: 0 12px 26px rgba(57, 64, 47, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.home-fueling-cycle__head {
  gap: 10px;
  margin-bottom: 7px;
}
.home-fueling-cycle__head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3e483f;
  font-size: 13px;
  font-weight: 850;
}
.home-fueling-cycle__head > span svg {
  width: 17px;
  height: 17px;
  color: #b86c27;
}
.home-fueling-cycle__head .status-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}
.home-fueling-cycle__intro {
  margin: 0 0 8px;
  color: #77776d;
  font-size: 10px;
  line-height: 1.55;
}
.home-fueling-cycle__phases {
  border-block: 1px solid rgba(83, 78, 61, .11);
}
.home-fueling-message .home-fueling-phase {
  grid-template-columns: 24px minmax(58px, 72px) minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 58px;
  padding: 8px 0;
  border-top: 1px solid rgba(83, 78, 61, .1);
}
.home-fueling-message .home-fueling-phase:first-child {
  border-top: 0;
}
.home-fueling-message .home-fueling-phase > b {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #6e6c5f;
  font-size: 9px;
}
.home-fueling-message .home-fueling-phase span {
  color: #3f4941;
  font-size: 11px;
}
.home-fueling-message .home-fueling-phase small {
  margin-top: 3px;
  color: #89887e;
  font-size: 8px;
  line-height: 1.35;
}
.home-fueling-message .home-fueling-phase strong {
  color: #4d5048;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.45;
}
.home-fueling-message .home-fueling-phase .status-badge {
  min-width: 42px;
  justify-content: center;
  padding-inline: 6px;
  white-space: nowrap;
}
.home-fueling-cycle__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  color: #326148;
  border: 1px solid rgba(44, 104, 70, .17);
  border-radius: 11px;
  background: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 800;
}
.home-fueling-cycle__action svg {
  width: 14px;
  height: 14px;
}
.home-fueling-cycle__action:active {
  transform: scale(.99);
}
.home-fueling-cycle__action:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .home-fueling-message .home-fueling-phase {
    grid-template-columns: 22px 58px minmax(0, 1fr);
  }
  .home-fueling-message .home-fueling-phase .status-badge {
    grid-column: 3;
    justify-self: start;
  }
}

.training-hub-v21 .schedule-scope-tabs {
  min-height: 42px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(19, 77, 49, .11);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.training-hub-v21 .schedule-scope-tabs button {
  min-height: 42px;
  border-radius: 0;
  color: #78857d;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
}
.training-hub-v21 .schedule-scope-tabs button.active {
  color: #184c32;
  background: transparent;
  box-shadow: inset 0 -2px 0 #2c8754;
}
.training-hub-v21 .training-program-card {
  gap: 13px 14px;
  padding: 17px 16px 16px;
  border-color: rgba(24, 78, 52, .07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .48), transparent 36%),
    #e9efea;
}
.training-hub-v21 .training-program-copy { gap: 10px; }
.training-hub-v21 .training-program-copy h2 {
  font-size: 16px;
  line-height: 1.3;
}
.training-hub-v21 .training-program-copy > div > span:last-child { font-size: 11px; }
.training-hub-v21 .training-program-score > span { font-size: 9px; }
.training-hub-v21 .training-program-score strong { font-size: 27px; }
.training-hub-v21 .training-program-metrics {
  padding: 11px 0 1px;
  border-top: 1px solid rgba(24, 78, 52, .09);
}
.training-hub-v21 .training-program-metrics > span { gap: 5px; padding-inline: 10px; }
.training-hub-v21 .training-program-metrics small {
  color: #728078;
  font-size: 9px;
  line-height: 1.3;
}
.training-hub-v21 .training-program-metrics b {
  color: #20382b;
  font-size: 11px;
  line-height: 1.4;
}
.training-hub-v21 .agent-plan-stamp {
  color: #75827a;
  font-size: 9px;
  line-height: 1.45;
}
.training-hub-v21 .training-week-priority__head p,
.training-hub-v21 .training-week-card--priority .week-copy small { font-size: 10px; }

.cycle-status-heading > div > span {
  color: #3b805c;
  font-size: 10px;
  letter-spacing: .04em;
}
.cycle-status-heading h2 {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.cycle-status-heading p {
  margin-top: 5px;
  color: #738078;
  font-size: 10px;
}
.cycle-metric-card > div b { font-size: 11px; }
.cycle-metric-card > div small,
.cycle-metric-card > span { font-size: 9px; }
.cycle-status-footnote,
.today-fueling-footnote {
  color: #74827a;
  font-size: 10px;
  line-height: 1.55;
}
.today-fueling-footnote {
  max-width: 320px;
  margin: 10px auto 6px;
  padding-inline: 8px;
}

.profile-page-v21 .profile-hero {
  padding: 15px;
  border: 1px solid rgba(25, 77, 51, .075);
  border-radius: 18px;
  background: rgba(255, 255, 252, .86);
  box-shadow: 0 8px 22px rgba(24, 61, 42, .05);
}
.profile-page-v21 .profile-hero p,
.profile-page-v21 .profile-hero small { line-height: 1.45; }
.profile-goal {
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 92px;
  padding: 14px 15px;
  border-radius: 17px;
  background: linear-gradient(145deg, #e9efe8, #e5ece4);
}
.profile-goal > img {
  width: 74px;
  height: 72px;
  margin-left: -7px;
}
.profile-goal > div small,
.profile-goal > div span,
.profile-goal > div .profile-training-days { font-size: 10px; line-height: 1.4; }
.profile-page-v21 .device-summary,
.profile-insights,
.profile-actions {
  border: 1px solid rgba(25, 77, 51, .07);
  border-radius: 17px;
  background: rgba(255, 255, 252, .76);
}
.profile-page-v21 .device-summary,
.profile-insights { padding-inline: 13px; }
.profile-actions button { min-height: 54px; }
.profile-settings-actions button > span small,
.profile-insights small,
.profile-device-main small { font-size: 10px; }

@media (max-width: 360px) {
  .training-hub-v21 .training-program-card { padding: 15px 14px; }
  .training-hub-v21 .training-program-copy h2 { font-size: 15px; }
  .training-hub-v21 .training-program-metrics > span { padding-inline: 6px; }
  .training-hub-v21 .training-program-metrics b { font-size: 10px; }
  .profile-page-v21 .profile-hero { grid-template-columns: 60px minmax(0, 1fr) auto; padding: 13px; }
  .profile-page-v21 .profile-avatar { width: 58px; height: 58px; }
}

/* PLAN-04 · training prescription layout aligned with the current product language. */
.plan-detail-page {
  padding-inline: 20px;
  padding-bottom: 92px;
}
.plan-detail-page .page-header { margin-bottom: 12px; }
.plan-detail-page .plan-detail-hero {
  position: relative;
  margin: 0;
  padding: 18px 17px 16px;
  overflow: hidden;
  color: #14271d;
  border: 1px solid rgba(24, 78, 52, .08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 4%, rgba(199, 232, 137, .38), transparent 34%),
    linear-gradient(145deg, #f2f6ee, #e7eee7);
  box-shadow: 0 10px 28px rgba(24, 65, 43, .065);
}
.plan-detail-page .plan-detail-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 17px;
  left: 17px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, #2e8956 0 68%, #d78330 68% 100%);
}
.plan-detail-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5e7266;
  font-size: 10px;
  line-height: 1.35;
}
.plan-detail-hero__meta > span { opacity: 1; }
.plan-detail-hero__meta small {
  color: #2f7851;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .02em;
}
.plan-detail-page .plan-detail-hero h1 {
  max-width: 280px;
  margin: 12px 0 5px;
  color: #13271c;
  font-size: 24px;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.plan-detail-page .plan-detail-hero > p {
  max-width: 300px;
  margin: 0;
  color: #62736a;
  font-size: 10px;
  line-height: 1.55;
  text-wrap: pretty;
}
.plan-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 78, 52, .1);
}
.plan-detail-page .plan-detail-metrics .metric {
  min-width: 0;
  padding: 0 11px;
}
.plan-detail-page .plan-detail-metrics .metric:first-child { padding-left: 0; }
.plan-detail-page .plan-detail-metrics .metric:last-child { padding-right: 0; }
.plan-detail-page .plan-detail-metrics .metric + .metric {
  border-left: 1px solid rgba(24, 78, 52, .09);
}
.plan-detail-page .plan-detail-metrics .metric strong {
  color: #17452e;
  font-size: 20px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: none;
}
.plan-detail-page .plan-detail-metrics .metric strong small {
  color: #61756a;
  font-size: 8px;
}
.plan-detail-page .plan-detail-metrics .metric > span {
  margin-top: 6px;
  color: #75837b;
  font-size: 9px;
}
.plan-detail-page .plan-detail-status {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 66px;
  margin: 10px 0 4px;
  padding: 10px 13px;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 252, .74);
  box-shadow: none;
}
.plan-detail-page .plan-detail-status > svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  overflow: visible;
  color: #2e8055;
  border-radius: 10px;
  background: #e5f0e5;
}
.plan-detail-page .plan-detail-status b {
  color: #244335;
  font-size: 11px;
  line-height: 1.35;
}
.plan-detail-page .plan-detail-status p {
  margin-top: 3px;
  color: #748078;
  font-size: 9px;
  line-height: 1.45;
}
.plan-detail-page .plan-detail-status .status-badge {
  align-self: center;
  white-space: nowrap;
}
.plan-detail-start-button {
  width: 100%;
  min-height: 49px;
  margin: 10px 0 2px;
  gap: 8px;
  border-radius: 14px;
  background: #176f47;
  box-shadow: 0 9px 20px rgba(20, 92, 57, .14);
  font-size: 12px;
}
.plan-detail-start-button:hover { background: #125f3c; }
.plan-detail-start-button:active { transform: translateY(1px) scale(.995); }
.plan-detail-start-button > svg { width: 16px; height: 16px; fill: currentColor; }
.plan-detail-page .section-title {
  min-height: 48px;
  margin-top: 12px;
}
.plan-detail-page .section-title h2 { font-size: 15px; }
.plan-detail-page .structure-list {
  padding: 3px 14px;
  border: 1px solid rgba(24, 78, 52, .075);
  border-radius: 17px;
  background: rgba(255, 255, 252, .82);
  box-shadow: none;
}
.plan-detail-page .structure-list > div {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 50px;
  border-bottom-color: rgba(24, 78, 52, .075);
}
.plan-detail-page .structure-list span {
  width: 25px;
  height: 25px;
  color: #236b47;
  border-radius: 8px;
  background: #e4efe5;
  font-size: 9px;
}
.plan-detail-page .structure-list > div > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.plan-detail-page .structure-list small {
  color: #7a877f;
  font-size: 8px;
  line-height: 1.2;
}
.plan-detail-page .structure-list b {
  overflow: hidden;
  color: #2b3e34;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-detail-page .structure-list strong {
  color: #315c46;
  font-size: 10px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-detail-page .gear-row {
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 15px;
  background: #eef2eb;
  box-shadow: none;
}
.plan-detail-page .gear-row > svg {
  width: 20px;
  color: #286e4a;
}
.plan-detail-page .gear-row b { color: #274536; font-size: 11px; }
.plan-detail-page .gear-row p { color: #69786f; font-size: 9px; }
.plan-detail-page .ai-summary {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-top: 11px;
  padding: 13px 2px 2px;
  border-top: 1px solid rgba(24, 78, 52, .09);
}
.plan-detail-page .ai-summary__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(219, 77, 24, .13);
}
.plan-detail-page .ai-summary__copy b {
  color: #24543b;
  font-size: 11px;
}
.plan-detail-page .ai-summary__copy p {
  display: block;
  margin-top: 4px;
  overflow: visible;
  color: #65756c;
  font-size: 10px;
  line-height: 1.55;
  -webkit-line-clamp: unset;
}
.plan-detail-adjust {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 0 3px;
  color: #286346;
  border: 0;
  border-top: 1px solid rgba(24, 78, 52, .08);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.plan-detail-adjust > svg:first-child { width: 18px; }
.plan-detail-adjust > svg:last-child { width: 14px; color: #87948c; }
.plan-detail-adjust:hover { color: #155b39; }
.plan-detail-adjust:active { transform: translateY(1px); }
.plan-detail-adjust:focus-visible,
.plan-detail-start-button:focus-visible {
  outline: 2px solid #d98235;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .plan-detail-page { padding-inline: 16px; }
  .plan-detail-page .plan-detail-hero { padding-inline: 15px; }
  .plan-detail-page .plan-detail-hero h1 { font-size: 22px; }
  .plan-detail-page .plan-detail-metrics .metric { padding-inline: 8px; }
  .plan-detail-page .plan-detail-metrics .metric strong { font-size: 18px; }
}

/* PLAN-04 · reference-led long-form training prescription. */
.plan-detail-page {
  --plan-detail-green: #1f744b;
  --plan-detail-green-deep: #164f35;
  --plan-detail-soft: #edf3eb;
  --plan-detail-warm: #d78330;
  padding-inline: 20px;
  padding-bottom: 112px;
}
.plan-detail-page .page-header { margin-bottom: 0; }
.plan-detail-page .plan-detail-hero {
  margin: 0 -20px;
  padding: 18px 20px 22px;
  border: 0;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 92% 5%, rgba(181, 221, 103, .42), transparent 30%),
    linear-gradient(155deg, #f2f6ed 0%, #e5eee4 100%);
  box-shadow: none;
}
.plan-detail-page .plan-detail-hero::after { display: none; }
.plan-detail-page .plan-detail-hero__meta {
  color: #5f7167;
  font-size: 10px;
}
.plan-detail-page .plan-detail-hero__meta small {
  color: #4f755f;
  font-size: 9px;
  font-weight: 650;
}
.plan-detail-page .plan-detail-hero h1 {
  max-width: none;
  margin: 16px 0 6px;
  color: #12271c;
  font-size: 28px;
  font-weight: 790;
  line-height: 1.18;
  letter-spacing: -.045em;
}
.plan-detail-page .plan-detail-hero > p {
  color: #5f7167;
  font-size: 11px;
  line-height: 1.45;
}
.plan-detail-page .plan-detail-hero > .plan-detail-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin-top: 20px;
}
.plan-detail-context-grid article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 70px;
  padding: 11px;
  border: 1px solid rgba(24, 78, 52, .075);
  border-radius: 16px;
  background: rgba(255, 255, 252, .72);
}
.plan-detail-context-grid article > svg {
  width: 23px;
  color: var(--plan-detail-green);
}
.plan-detail-context-grid article:last-child > svg { color: #559653; }
.plan-detail-context-grid article > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.plan-detail-context-grid small {
  color: #7a877f;
  font-size: 8px;
  line-height: 1.25;
}
.plan-detail-context-grid b {
  overflow: hidden;
  color: #294235;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-detail-page .plan-detail-hero > .plan-detail-sync-line {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  color: #47705a;
  font-size: 9px;
  line-height: 1.4;
}
.plan-detail-sync-line > svg { width: 14px; height: 14px; color: #2f8458; }
.plan-detail-sync-line > span { display: flex; align-items: baseline; gap: 6px; }
.plan-detail-sync-line b { color: #315f47; font-weight: 700; }
.plan-detail-sync-line small { color: #7b8d82; font-size: inherit; }

.plan-detail-intro {
  display: grid;
  gap: 6px;
  margin: 25px 0 15px;
}
.plan-detail-intro > span {
  color: #387c58;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .04em;
}
.plan-detail-intro h2 {
  margin: 0;
  color: #17281f;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.plan-detail-intro p {
  max-width: 335px;
  margin: 0;
  color: #6b7971;
  font-size: 10px;
  line-height: 1.6;
  text-wrap: pretty;
}

.plan-detail-phase-stack {
  display: grid;
  gap: 14px;
}
.plan-detail-phase {
  overflow: hidden;
  border: 1px solid rgba(24, 78, 52, .085);
  border-radius: 20px;
  background: rgba(255, 255, 252, .88);
  box-shadow: 0 8px 24px rgba(24, 62, 41, .045);
}
.plan-detail-phase > header {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 10px 14px;
  background: #edf1ed;
}
.plan-detail-phase--main > header {
  color: #fff;
  background: linear-gradient(135deg, #2a7c4f, #4f953f);
}
.plan-detail-phase > header > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #315846;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 780;
}
.plan-detail-phase > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.plan-detail-phase > header b { color: #263c31; font-size: 13px; line-height: 1.3; }
.plan-detail-phase > header small { color: #748078; font-size: 8px; line-height: 1.35; }
.plan-detail-phase--main > header b { color: #fff; }
.plan-detail-phase--main > header small { color: rgba(255, 255, 255, .78); }
.plan-detail-phase--main > header > span { color: #276d46; background: #fff; }
.plan-detail-phase__rows { padding: 2px 14px; }
.plan-detail-phase__rows > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border-bottom: 1px solid rgba(24, 78, 52, .075);
}
.plan-detail-phase__rows > div:last-child { border-bottom: 0; }
.plan-detail-phase__rows > div > svg {
  width: 19px;
  color: #557266;
}
.plan-detail-phase--main .plan-detail-phase__rows > div > svg { color: #2e7f54; }
.plan-detail-phase__rows > div > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.plan-detail-phase__rows b {
  color: #263a30;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.3;
}
.plan-detail-phase__rows small {
  overflow: hidden;
  color: #7a867f;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-detail-phase__rows strong {
  color: #3c5548;
  font-size: 10px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-detail-ai-advice {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 18px 2px 6px;
  border-top: 1px solid rgba(24, 78, 52, .1);
}
.plan-detail-ai-advice__head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.plan-detail-ai-advice__head .ai-summary__icon {
  width: 36px;
  height: 36px;
}
.plan-detail-ai-advice__head > div { display: grid; gap: 3px; }
.plan-detail-ai-advice__head b { color: #24543b; font-size: 12px; }
.plan-detail-ai-advice__head small { color: #7a877f; font-size: 8px; }
.plan-detail-ai-advice > p {
  margin: 0;
  color: #5d6f65;
  font-size: 11px;
  line-height: 1.75;
  text-wrap: pretty;
}
.plan-detail-final-actions {
  display: grid;
  gap: 8px;
  margin-top: 21px;
}
.plan-detail-final-actions .button {
  width: 100%;
  min-height: 49px;
  gap: 8px;
  border-radius: 14px;
  background: #176f47;
  box-shadow: 0 9px 20px rgba(20, 92, 57, .14);
}
.plan-detail-final-actions .button > svg { width: 16px; fill: currentColor; }
.plan-detail-final-actions > button:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  color: #2b6949;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.plan-detail-final-actions > button:last-child > svg { width: 16px; }

@media (max-width: 360px) {
  .plan-detail-page { padding-inline: 16px; }
  .plan-detail-page .plan-detail-hero { margin-inline: -16px; padding-inline: 16px; }
  .plan-detail-page .plan-detail-hero h1 { font-size: 25px; }
  .plan-detail-context-grid { gap: 7px; }
  .plan-detail-context-grid article { grid-template-columns: 24px minmax(0, 1fr); padding-inline: 9px; }
  .plan-detail-phase__rows > div { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; }
}
