: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; }
.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; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid--three { grid-template-columns: repeat(3, 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); }
.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; }
.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; }
.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; }
.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-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-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--planned { color: #294135; }
.week-state--rest { color: #394854; }
.week-state--today { color: #347f44; font-weight: 700; }
.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; }

/* 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-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 { 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 > 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; } }

@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 { 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; }
}
