/* Thinh Gymer · brand v9 */
@font-face{font-family:Barlow;font-weight:400;font-display:swap;src:url(/fonts/barlow-vietnamese-400-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Barlow;font-weight:400;font-display:swap;src:url(/fonts/barlow-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Barlow;font-weight:500;font-display:swap;src:url(/fonts/barlow-vietnamese-500-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Barlow;font-weight:500;font-display:swap;src:url(/fonts/barlow-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Barlow;font-weight:600;font-display:swap;src:url(/fonts/barlow-vietnamese-600-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Barlow;font-weight:600;font-display:swap;src:url(/fonts/barlow-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Barlow;font-weight:700;font-display:swap;src:url(/fonts/barlow-vietnamese-700-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Barlow;font-weight:700;font-display:swap;src:url(/fonts/barlow-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --midnight: #01047B; --acid: #DEF434; --app-bg: #E6ECF2;
  --display: 'Barlow Condensed', Barlow, sans-serif;
  --paper: #F2F2F2; --card: #FFFFFF; --ink: #2F2F2F; --ink-2: #474747; --muted: #666666; --faint: #9A9A9A;
  --line: #E4E4E4; --line-2: #EDEDED; --field: #F5F6FA;
  --blue: #0F7FC4; --blue-600: #01047B; --blue-50: rgba(15,127,196,.08); --blue-100: rgba(15,127,196,.14);
  --yellow: #DEF434; --yellow-50: #FDF6DA;
  --ok: #12804C; --ok-50: #E3F3EA; --warn: #9A5300; --warn-50: #FCF0DE; --bad: #BF3526; --bad-50: #FBE8E6;
  --mp: #0F7FC4; --mc: #2F2F2F; --mf: #9AA1B4;
  --r-xl: 24px; --r: 20px; --r-sm: 14px; --r-xs: 11px;
  --sh: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px -14px rgba(20,20,20,.14);
  --sh-lift: 0 2px 4px rgba(20,20,20,.05), 0 18px 40px -18px rgba(20,20,20,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.45 Barlow, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--blue-100); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; }
.row > .btn { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; padding-top: 6px; padding-bottom: 6px; }
.row.wrap { flex-wrap: wrap; }
.row.wrap > .btn { flex: none; white-space: nowrap; }

/* ---------- layout ---------- */
.view { max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 18px calc(var(--nav-h) + 48px + var(--safe-b)); min-height: 100vh; }
.login-view { width: min(100%, 430px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px calc(24px + var(--safe-b)); }
.login-view h1 { font-size: 1.6rem; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.view > * + * { margin-top: 14px; }

/* page header */
.ph { display: flex; align-items: flex-end; gap: 12px; padding: 18px 2px 6px; }
.ph-t { flex: 1; min-width: 0; }
.ph-t small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.ph h1 { font-size: 32px; line-height: 1.08; }
.ph-sub { align-items: center; padding-top: 6px; }
.ph-sub h1 { font-size: 26px; }
.ph-back { margin-left: -8px; }
.week-badge { display: grid; place-items: center; min-width: 64px; padding: 8px 10px; border-radius: 18px; background: var(--yellow); color: var(--ink); line-height: 1; text-align: center; }
.week-badge small { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.week-badge b { font-size: 28px; margin: 2px 0; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); border: 1px solid rgba(47,47,47,.04); position: relative; }
.card-k { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card-k .ic { color: var(--blue); width: 17px; height: 17px; }
.card-h { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card-h small { font-size: 13px; font-weight: 500; color: var(--muted); }
[data-href], [data-act].card { cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
[data-href]:active, [data-act].card:active { transform: scale(.985); }
@media (hover: hover) { [data-href]:hover, [data-act].card:hover { box-shadow: var(--sh-lift); } }
.card-note { display: flex; gap: 12px; background: transparent; box-shadow: none; border: 1px dashed var(--line); padding: 14px 16px; }
.card-note .ic { color: var(--blue); margin-top: 2px; }
.card-note p { font-size: 15px; color: var(--ink-2); }
.card-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px; }

.num-xl { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.num-lg { font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.num-xl u, .num-lg u { text-decoration: none; font-size: .42em; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.num-lg.muted { color: var(--faint); font-size: 26px; }
.meta { font-size: 15px; color: var(--muted); margin-top: 4px; }
.meta.strong { color: var(--ink-2); font-weight: 600; }
.meta.warn { color: var(--warn); font-weight: 600; }
.meta .ic { width: 15px; height: 15px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; }
.fine .ic { width: 15px; height: 15px; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); text-transform: none; white-space: nowrap; }
.tag-now { background: var(--yellow); color: var(--ink); }
.tag-warn { background: var(--warn-50); color: var(--warn); }
.tag-deload { background: var(--blue-50); color: var(--blue); }
.tag-time { padding: 6px 12px; font-size: 13px; }
.tag-time .ic { width: 14px; height: 14px; }

/* ---------- dashboard ---------- */
.dash { display: grid; gap: 12px; }
.dash-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 369px) { .dash-2 { grid-template-columns: 1fr; } }
.card-hero { padding: 20px; border-radius: var(--r-xl); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card-tile { display: flex; flex-direction: column; min-height: 168px; padding: 16px; }
.card-tile .card-k { font-size: 12px; margin-bottom: 8px; }
.tile-empty { color: var(--muted); font-size: 15px; }
.dot-p, .dot-c, .dot-f { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.dot-p { background: var(--mp); } .dot-c { background: var(--mc); } .dot-f { background: var(--mf); }
.goal-only { flex: 1; display: grid; place-items: center; padding-top: 4px; }
.goal-dl { margin: 0; display: grid; gap: 2px; font-size: 13px; }
.goal-dl div { display: flex; justify-content: space-between; gap: 8px; }
.goal-dl dt { color: var(--muted); } .goal-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-dl-lg { width: 100%; max-width: 320px; font-size: 16px; gap: 6px; }
.goal-nd { display: flex; align-items: center; gap: 10px; }
.goal-nd p { font-weight: 600; font-size: 15px; } .goal-nd small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.goal-m { display: grid; gap: 6px; }
.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--line-2); }
.ring-val { fill: none; stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-in b { font-size: 22px; font-variant-numeric: tabular-nums; }
.card-center .ring-in b { font-size: 36px; }
.ring-in small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .6s var(--ease); }

/* ---------- banners, chips ---------- */
.banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; line-height: 1.4; }
.banner > .ic:first-child { width: 22px; height: 22px; }
.banner span { flex: 1; }
.banner-blue { background: var(--blue-50); color: #1F2F86; }
.banner-blue > .ic { color: var(--blue); }
.banner-warn { background: var(--warn-50); color: #5F3600; }
.banner-warn > .ic { color: var(--warn); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.1; white-space: nowrap; width: fit-content; }
.chip .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.chip-ok { background: var(--ok-50); color: var(--ok); }
.chip-warn { background: var(--warn-50); color: var(--warn); }
.chip-bad { background: var(--bad-50); color: var(--bad); }
.chip-skip { background: #2F2F2F; color: #fff; }
.chip-blue { background: var(--blue-50); color: var(--blue); }
.chip-muted { background: var(--line-2); color: var(--ink-2); }
.chip-lg { font-size: 17px; padding: 8px 14px; }
.planbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--blue); color: #fff; font-size: 15px; }
.planbar b { display: block; }
.planbar span { flex: 1; }
.planbar .icon-btn { color: #fff; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-sm); font-weight: 700; font-size: 16px; letter-spacing: .005em; transition: transform .12s var(--ease), background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(15,127,196,.7); }
.btn-primary:hover { background: var(--blue-600); }
.btn-soft { background: var(--blue-50); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn-lg { min-height: 56px; font-size: 18px; border-radius: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--ink); flex: none; }
.icon-btn:hover { background: rgba(47,47,47,.06); }
.icon-btn:disabled { opacity: .3; }
.icon-btn .ic { width: 22px; height: 22px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 15px; min-height: 40px; }
.link-btn.sm { font-size: 14px; color: var(--muted); min-height: 36px; }
.link-btn .ic { width: 16px; height: 16px; }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: var(--r-sm); }
.seg > button, .seg > label { flex: 1; min-height: 44px; border-radius: var(--r-xs); font-weight: 600; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 6px; transition: background .15s, color .15s, box-shadow .15s; }
.seg > .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px -2px rgba(0,0,0,.08); }
.seg > button:disabled { opacity: .4; }
.seg-sm > button { min-height: 38px; font-size: 14px; }
.seg-dates .seg-date { position: relative; cursor: pointer; }
.seg-date input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.seg-date .ic { width: 16px; height: 16px; }
.seg-tabs { margin-bottom: 14px; }
.seg-status > button { font-size: 14px; padding: 0 2px; }
.seg-status > .on-on { background: var(--ok); color: #fff; }
.seg-status > .on-near { background: var(--warn); color: #fff; }
.seg-status > .on-off { background: var(--bad); color: #fff; }
.seg-status > .on-skip { background: #2F2F2F; color: #fff; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); }
input[type=text], input:not([type]), input[inputmode], input[type=date], select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
input.invalid, input[aria-invalid=true] { border-color: var(--bad) !important; background: var(--bad-50) !important; }
.input-unit { display: flex; align-items: center; position: relative; }
.input-unit em { position: absolute; right: 14px; font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
.input-unit input { padding-right: 56px; }
.big-field { display: grid; gap: 4px; }
.big-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.big-input { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 4px; transition: border-color .15s; }
.big-input:focus-within { border-color: var(--blue); }
.big-input input { border: 0; padding: 0; min-height: 0; font-size: 52px; font-weight: 700; letter-spacing: -.02em; background: transparent; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.big-input input::placeholder { color: #CFCFCF; }
.big-input em { font-style: normal; font-size: 22px; font-weight: 600; color: var(--muted); }
.help { font-size: 15px; color: var(--muted); }
.field-err { display: flex; gap: 8px; align-items: flex-start; color: var(--bad); font-weight: 600; font-size: 15px; }
.field-err .ic { margin-top: 2px; }
.q { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.q legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 8px; color: var(--ink-2); }
.q legend small { font-weight: 400; color: var(--muted); }
.ci-fields { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ci-required { color: var(--bad); font-weight: 700; }
.ci-choice { display: flex; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; }
.ci-prompt textarea { width: 100%; }
.ci-poses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ci-pose { display: grid; align-content: start; gap: 8px; min-width: 0; }
.ci-pose > b { text-align: center; }
.ci-photo-slot { position: relative; }
.ci-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-upload { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 76px; aspect-ratio: 1; max-height: 150px; border: 1px dashed var(--muted); border-radius: var(--r-sm); background: var(--paper); color: var(--blue); }
.ci-upload > .ic { width: 20px; height: 20px; }
.ci-photo-busy { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); pointer-events: none; }
.ci-photo-slot .photo-x { top: 2px; right: 2px; width: 44px; height: 44px; }
.ci-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.ci-upload:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.ci-pose .field-err { overflow-wrap: anywhere; }
.card.progress-photo-link { margin-block: 16px; padding-inline: 18px; }
.tool-ic.checkin-link-icon { flex: none; width: 36px; height: 36px; }
.tool-ic.checkin-link-icon .ic { width: 19px; height: 19px; }
.checkin-history[open] .checkin-history-chevron { transform: rotate(180deg); }
.progress-photo-period { gap: 10px; }
.progress-photo-thumbs { display: flex; flex: none; }
.progress-photo-thumbs .progress-photo-frame { position: relative; width: 32px; height: 38px; min-height: 0; margin: 0; border: 2px solid var(--card); border-radius: 50%; }
.progress-photo-thumbs .progress-photo-frame + .progress-photo-frame { margin-left: -7px; }
.progress-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.progress-photo-actions .btn { flex: 1 1 auto; padding-inline: 10px; font-size: .875rem; }
.progress-photo-grid, .progress-photo-compare { display: grid; gap: 10px; }
.progress-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.progress-photo-grid a { color: inherit; text-align: center; min-width: 0; }
.progress-photo-frame { margin-top: 6px; display: grid; place-items: center; overflow: hidden; background: var(--paper); border-radius: var(--r-sm); min-height: 76px; }
.progress-photo-grid .progress-photo-frame { aspect-ratio: 3 / 4; position: relative; }
.progress-photo-grid img, .progress-photo-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.progress-photo-compare figure { margin: 0; min-width: 0; }
.progress-photo-compare figcaption small { display: block; color: var(--muted); }
.progress-photo-compare img { display: block; width: 100%; max-height: 65vh; object-fit: contain; }
.progress-photo-compare .progress-photo-frame a { width: 100%; }
.progress-photo-missing { display: grid; justify-items: center; gap: 4px; color: var(--muted); }
.progress-photo-frame [hidden] { display: none; }
.seg.progress-photo-poses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 12px; }
.progress-photo-poses a { display: grid; place-items: center; min-height: 44px; font-weight: 600; color: var(--ink); border-radius: var(--r-sm); }
.progress-photo-poses a.on { background: var(--card); color: var(--blue); }
.progress-photo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.progress-photo-pair .progress-photo-frame { aspect-ratio: 3 / 4; }
.progress-photo-pair .progress-photo-frame a, .progress-photo-pair img { height: 100%; }
.progress-photo-pair img { max-height: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scale5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale5 button { display: grid; gap: 2px; place-items: center; min-height: 68px; border-radius: var(--r-sm); background: var(--paper); transition: background .15s, color .15s, transform .12s; padding: 6px 2px; }
.scale5 button:active { transform: scale(.95); }
.scale5 b { font-size: 22px; } .scale5 small { font-size: 11.5px; line-height: 1.1; color: var(--muted); font-weight: 500; }
.scale5 .fill { background: var(--blue-50); color: var(--blue); }
.scale5 .on { background: var(--blue); color: #fff; }
.scale5 .on small { color: rgba(255,255,255,.85); }
.scale5-sm button { min-height: 60px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.toggle:first-of-type { border-top: 0; }
.toggle > span { flex: 1; display: grid; }
.toggle small { color: var(--muted); font-size: 14px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 50px; height: 30px; border-radius: 99px; background: #D5D5D5; position: relative; transition: background .2s; flex: none; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--blue); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- lists ---------- */
.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line-2); width: 100%; text-align: left; min-height: 56px; }
.li:first-child { border-top: 0; }
.li-main { flex: 1; min-width: 0; display: grid; }
.li-main b { font-weight: 600; font-size: 16px; }
.li-main small { color: var(--muted); font-size: 14px; }
.li-num { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.li-num small { font-size: 13px; color: var(--muted); font-weight: 600; }
.li-ic { color: var(--faint); width: 18px; height: 18px; }
details.hist summary, details.guide summary { list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; min-height: 28px; }
details summary::-webkit-details-marker { display: none; }
details.hist[open] summary, details.guide[open] summary { margin-bottom: 8px; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; margin-top: 12px; overflow: visible; }
.c-grid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.c-lbl { font-size: 11px; fill: var(--muted); font-family: Barlow, sans-serif; font-weight: 500; }
.c-lbl.c-on { fill: var(--ink); font-weight: 700; }
.c-scale { fill: none; stroke: #8A8A8A; stroke-width: 1; vector-effect: non-scaling-stroke; }
.c-dot { fill: var(--card); stroke: #767676; stroke-width: 1; vector-effect: non-scaling-stroke; }
.c-trend { fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.c-point-hit { fill: transparent; cursor: pointer; }
.weight-chart a:focus-visible .c-point-hit { fill: var(--blue-50); fill-opacity: .5; }
.chart-readout { font-size: .875rem; color: var(--ink); }
details.card-note { display: block; }
details.card-note summary { cursor: pointer; font-weight: 600; }
details.card-note p { margin-top: 8px; }
.c-end { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.c-band { fill: var(--ok-50); }
.c-bar { fill: #CFD6F7; } .c-hit { fill: var(--blue); } .c-none { fill: none; stroke: #C8C8C8; stroke-dasharray: 2 2; }
.c-goal { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .5; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #9A9A9A; background: #fff; }
.lg-line { width: 18px; height: 3px; border-radius: 2px; background: var(--blue); }
.lg-band { width: 14px; height: 10px; background: var(--ok-50); border-radius: 2px; }
.empty-chart { display: grid; place-items: center; gap: 6px; padding: 28px 0; color: var(--muted); text-align: center; }
.mini-chart .label { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ---------- empty / fatal / skeleton ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 16px; }
.empty-ic { width: 44px; height: 44px; color: var(--blue); padding: 10px; background: var(--blue-50); border-radius: 16px; box-sizing: content-box; }
.empty h3 { font-size: 20px; } .empty p { color: var(--muted); max-width: 34ch; }
.empty .btn { margin-top: 8px; }
.empty-sm { padding: 18px 8px; } .empty-sm .empty-ic { width: 26px; height: 26px; }
.fatal { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.fatal h1 { font-size: 26px; } .fatal p { color: var(--muted); max-width: 32ch; }
.tag-line { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
body.is-fatal .nav { display: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .06em; font-size: 20px; }
.logo-ic { width: 40px; height: 40px; color: var(--blue); }
.skel { display: grid; gap: 12px; padding-top: 24px; }
.sk { background: linear-gradient(90deg, #e9e9e9 0%, #f6f6f6 50%, #e9e9e9 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r); }
.sk-h { height: 64px; width: 70%; } .sk-hero { height: 170px; } .sk-tile { height: 150px; }
.sk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Two dashboard pages share the existing shell and bottom toolbar. */
.dashboard-swipe { touch-action:pan-y pinch-zoom; }
.dashboard-dots { display:flex; justify-content:center; align-items:center; gap:0; margin:6px 0 0; }
.dashboard-dots a { width:28px; min-height:44px; display:grid; place-items:center; border-radius:12px; }
.dashboard-dots a:first-child { justify-items:end; padding-right:4px; }
.dashboard-dots a:last-child { justify-items:start; padding-left:4px; }
.dashboard-dots a span { width:7px; height:7px; border-radius:50%; background:var(--midnight); opacity:.25; }
.dashboard-dots a[aria-current="page"] span { opacity:1; }
.dashboard-dots a:focus-visible { outline:2px solid var(--midnight); outline-offset:-4px; }
@media(pointer:coarse) { .dashboard-dots a { width:44px; } }
.premium-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 3px; }
.premium-heading h2 { margin:0; font-family:var(--display); font-size:27px; text-transform:uppercase; color:#fff; }
.premium-heading > span { font-size:11px; letter-spacing:.08em; color:var(--acid); font-weight:700; }
.premium-section-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px 12px; }
.premium-section-head .card-k { margin:0; }
.premium-explanation { margin-top:10px; padding-top:12px; border-top:1px solid var(--line); }
.premium-explanation summary { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:44px; font-size:14px; color:var(--blue); cursor:pointer; list-style:none; }
.premium-explanation p { font-size:14px; margin:10px 0; overflow-wrap:anywhere; }
.premium-next { border-left:3px solid var(--midnight)!important; }
.premium-dashboard { display:grid; gap:12px; }
.premium-dashboard .card { margin:0; }
.results-value { font-family:var(--display); font-size:64px; font-weight:800; line-height:1.05; color:var(--midnight); margin-top:18px; overflow-wrap:anywhere; }
.results-value > span { font-family:Barlow,sans-serif; font-size:20px; font-weight:500; margin-left:8px; }
.results-value.is-text { font-size:30px; line-height:1.2; }
.view:has(.premium-account) .dash > .card-hero { border-top:3px solid var(--acid); }
.view[data-surface] .results-dashboard .results-hero { background:linear-gradient(145deg,#01047b,#08265e); color:#fff; border:1px solid rgba(222,244,52,.4); border-top:3px solid var(--acid); box-shadow:0 12px 28px -16px rgba(1,4,123,.6); }
.results-hero .card-k .ic { color:var(--acid); }
.view[data-surface] .results-hero .card-k,.results-hero .results-value,.results-hero .results-ends strong { color:#fff; }
.results-hero .results-change strong { color:var(--acid); }
.results-hero .tag { background:var(--acid); color:var(--midnight); }
.results-hero .meta,.results-hero .results-change > span,.results-hero .results-ends span,.results-hero .results-y,.results-hero .results-axis { color:rgba(255,255,255,.74); }
.results-hero .results-line { stroke:var(--acid); }
.results-hero .results-point { fill:var(--acid); }
.results-hero .results-grid { stroke:rgba(255,255,255,.18); }
.results-hero .results-ends,.results-hero .premium-explanation,.results-hero .results-history > div { border-color:rgba(255,255,255,.18); }
.results-hero .premium-explanation summary { color:var(--acid); }
.results-hero .results-clip-panel { background:rgba(255,255,255,.09); }
.results-hero .results-clip-label { color:var(--acid); }
.results-hero .results-clip-empty { color:rgba(255,255,255,.65); }
.results-hero .results-clip-empty a { color:var(--acid); }
.results-clips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:14px 0; }
.results-clip-panel { min-width:0; background:var(--app-bg); border-radius:14px; padding:12px; }
.results-clip-label { display:block; font-size:13px; font-weight:600; color:var(--midnight); }
.results-clip-empty { min-height:100px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:9px; color:var(--muted); margin:10px 0; font-size:13px; text-align:center; }
.results-clip-empty .ic { width:26px; height:26px; }
.results-clip-empty a { color:var(--blue); text-decoration:underline; min-height:44px; display:grid; place-items:center; }
.results-clip-panel > strong { font-size:14px; font-weight:600; display:block; overflow-wrap:anywhere; }
.results-change { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin:9px 0 18px; }
.results-change strong { color:var(--midnight); font-size:18px; }
.results-change > span { font-size:14px; color:var(--muted); }
.results-chart { display:flex; gap:10px; width:100%; height:132px; margin-top:20px; }
.results-y { display:flex; flex-direction:column; justify-content:space-between; padding:4px 0; min-width:35px; color:var(--muted); font-size:12px; }
.results-chart svg { display:block; flex:1; min-width:0; width:100%; height:132px; overflow:visible; }
.results-line { stroke:var(--midnight); stroke-width:2.5; vector-effect:non-scaling-stroke; }
.results-grid { stroke:var(--line); stroke-width:1; vector-effect:non-scaling-stroke; }
.results-point { fill:var(--midnight); }
.results-axis { display:flex; justify-content:space-between; margin:6px 0 16px 45px; font-size:12px; color:var(--muted); }
.results-ends { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding-top:14px; border-top:1px solid var(--line); }
.results-ends > div:last-child { text-align:right; }
.results-ends span { display:block; color:var(--muted); font-size:13px; }
.results-ends strong { display:block; font-size:20px; color:var(--midnight); margin-top:3px; overflow-wrap:anywhere; }
.results-history > div { display:flex; justify-content:space-between; gap:15px; padding:9px 0; border-bottom:1px solid var(--line); font-size:14px; }
.results-history strong { text-align:right; overflow-wrap:anywhere; }
.results-milestones { list-style:none; margin:16px 0 0; padding:0; }
.results-milestones li { display:grid; grid-template-columns:48px minmax(0,1fr); gap:12px; padding:0 0 18px; }
.results-milestones time { font-size:13px; color:var(--blue); padding-top:2px; }
.results-milestones li > div { border-left:2px solid var(--line); padding-left:14px; }
.results-milestones p { margin:6px 0 0; font-size:14px; color:var(--muted); overflow-wrap:anywhere; }
.results-target { margin:16px 0; }
.results-target > span { color:var(--muted); font-size:14px; }
.results-target strong { display:block; font:800 38px var(--display); color:var(--midnight); overflow-wrap:anywhere; }
.results-target strong small { font:500 16px Barlow,sans-serif; }
.premium-goal { font-size:22px; color:var(--midnight); margin:10px 0; overflow-wrap:anywhere; }
.premium-copy { margin:12px 0; overflow-wrap:anywhere; }
.premium-assessment { border-bottom:1px solid var(--line); padding:12px 0; }
.premium-assessment:last-child { border:0; }
.premium-assessment summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; cursor:pointer; list-style:none; }
.premium-assessment summary small { display:block; color:var(--muted); font-size:14px; margin-top:4px; }
.premium-assessment summary span { min-width:0; overflow-wrap:anywhere; }
/* ---------- bottom nav + FAB ---------- */
.nav { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(2px + var(--safe-b)); width: min(calc(100% - 20px), 520px); height: var(--nav-h);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(47,47,47,.06); border-radius: 26px; box-shadow: 0 12px 34px -14px rgba(20,20,20,.3); }
.nav a { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 11px; line-height: 14px; font-weight: 600; padding: 6px 0; min-height: 52px; white-space: nowrap; align-content: center; position: relative; transition: color .15s; }
@media (max-width: 345px) { .nav { width: calc(100% - 8px); padding-inline: 2px; } .nav a { font-size: 10px; } }
.nav a .ic { width: 24px; height: 24px; padding: 3px 14px; box-sizing: content-box; border-radius: 15px; transition: background .2s var(--ease), color .2s; }
.nav a.on { color: var(--blue); }
.nav a.on .ic { background: var(--blue-50); }
.steps-action { width: 100%; text-align: start; cursor: pointer; }
.steps-card .link-btn { display: flex; min-height: 40px; align-items: center; text-align: start; }
.fab { justify-self: center; width: 60px; height: 60px; margin-top: -26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 5px var(--paper), 0 12px 24px -8px rgba(15,127,196,.75); transition: transform .25s var(--ease), background .15s; }
.fab svg { width: 28px; height: 28px; transition: transform .28s var(--ease); }
.fab:active { transform: scale(.94); }
body.sheet-open .fab svg { transform: rotate(45deg); }
body.sheet-open .fab { background: var(--ink); }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(18,18,22,.38); opacity: 0; transition: opacity .25s; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.scrim.show { opacity: 1; }
.sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 28px 28px 0 0; padding: 6px 18px calc(22px + var(--safe-b)); transform: translateY(100%); transition: transform .3s var(--ease); box-shadow: 0 -10px 40px -20px rgba(0,0,0,.4); }
.sheet.show { transform: none; }
.sheet { scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: #DADADA; margin: 4px auto 6px; }
.sh-head { display: flex; align-items: center; gap: 6px; margin: 0 -8px 12px; position: sticky; top: -6px; background: var(--card); z-index: 2; padding: 4px 0; }
.sh-title { flex: 1; text-align: center; min-width: 0; }
.sh-title h2 { font-size: 20px; } .sh-title small { color: var(--muted); font-size: 14px; }
.sh-spacer { width: 44px; }
.sheet-scroll { display: grid; gap: 14px; }
.sh-head:has(+ .tools) .sh-title h2 { font-size: 1.125rem; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 4px; padding: 0 0 6px; }
.tool { display: grid; align-content: start; justify-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 4px 0; border-radius: 12px; text-align: center; }
.tool:hover .tool-ic { background: var(--midnight); color: var(--acid); }
.tool:active { transform: scale(.96); }
.tool-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.tool .tool-ic { background: rgba(1,4,123,.08); color: var(--midnight); }
.tool-ic .ic { width: 24px; height: 24px; }
.tool b { font-size: .875rem; line-height: 1.2; overflow-wrap: anywhere; }
.leave-bar { position: sticky; bottom: calc(-22px - var(--safe-b)); margin: 14px -18px calc(-22px - var(--safe-b)); padding: 16px 18px calc(16px + var(--safe-b)); background: var(--ink); color: #fff; display: grid; gap: 10px; animation: enter .2s var(--ease); }
.leave-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.leave-bar .btn-soft { background: #fff; color: var(--ink); }

/* ---------- toast / sync / rest ---------- */
.toast { position: fixed; z-index: 80; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0; transition: transform .25s var(--ease), opacity .2s;
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--sh-lift); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ic { width: 20px; height: 20px; }
.toast-ok .ic { color: #7EE2AE; } .toast-err { background: var(--bad); } .toast-info .ic { color: #A8B8FF; }
.sync { position: fixed; z-index: 45; right: 12px; top: calc(10px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,.95); box-shadow: var(--sh); font-size: 13px; font-weight: 600; color: var(--muted); opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.sync.show { opacity: 1; transform: none; }
.sync .ic { width: 15px; height: 15px; }
.sync-ok { color: var(--ok); } .sync-warn { color: var(--warn); }
.sync.show button { pointer-events: auto; text-decoration: underline; font-weight: 700; }
.set-instruction { margin-top: 8px; }
.sets .set-feedback td { text-align: start; }
.finish-missing { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.finish-missing li { display: grid; gap: 5px; justify-items: start; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
.finish-missing .field { width: 100%; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rest { position: fixed; z-index: 42; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 22px + var(--safe-b)); display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px; border-radius: 99px; background: var(--ink); color: #fff; box-shadow: var(--sh-lift); animation: enter .25s var(--ease); }
.rest-ring { width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(var(--blue) var(--p), rgba(255,255,255,.15) 0); mask: radial-gradient(circle, transparent 11px, #000 12px); -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); }
.rest-t { display: grid; line-height: 1; padding-right: 4px; }
.rest-t small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.rest-t b { font-size: 22px; font-variant-numeric: tabular-nums; }
.rest .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); min-height: 36px; padding: 0 12px; }

/* ---------- mealplan ---------- */
.daystrip { display: flex; align-items: center; gap: 2px; margin: 6px -8px 0; }
.daystrip .icon-btn { width: 36px; }
.ds { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 16px; min-height: 72px; transition: background .15s; position: relative; }
.ds small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ds b { font-size: 19px; font-variant-numeric: tabular-nums; }
.ds i { height: 16px; display: grid; place-items: center; }
.ds i .ic { width: 14px; height: 14px; stroke-width: 3; }
.ds-on i { background: #DEF434; color: #2F2F2F; border-radius: 50%; } .ds-near i { color: var(--warn); } .ds-off i { color: var(--bad); } .ds-incomplete i { color: var(--faint); }
.ds.today::after { content: ''; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.ds.on { background: var(--ink); color: #fff; }
.ds.on small { color: rgba(255,255,255,.7); }
.ds.on i { color: #fff; }
.ds.on.today::after { background: #fff; }
.macro-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.mbars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.mbar-top { display: grid; gap: 1px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mbar-top b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mbar-top b small { font-size: 12px; color: var(--muted); }
.mbar-track { height: 8px; border-radius: 99px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.mbar-track i { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.mbar.p i { background: var(--mp); } .mbar.c i { background: var(--mc); } .mbar.f i { background: var(--mf); }
.day-card { display: grid; gap: 8px; padding: 16px; }
.day-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-row .meta { margin: 0; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 20px; bottom: 20px; width: 2px; background: var(--line); border-radius: 1px; }
.tl { position: relative; padding-left: 32px; }
.tl + .tl { margin-top: 12px; }
.tl-dot { position: absolute; left: 2px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--faint); }
.tl-on .tl-dot { border-color: var(--ok); background: var(--ok); } .tl-near .tl-dot { border-color: var(--warn); background: var(--warn); }
.tl-off .tl-dot { border-color: var(--bad); background: var(--bad); }
.tl-skip .tl-dot { border-color: #2F2F2F; background: #2F2F2F; }
.tl-now .tl-dot { border-color: var(--ink); background: var(--yellow); box-shadow: 0 0 0 4px rgba(246,208,80,.35); }
.tl-card { padding: 16px; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-head h3 { font-size: 19px; flex: 1; min-width: 0; }
.tl-time { font-weight: 700; font-size: 14px; color: var(--card); background: var(--midnight); padding: 3px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.tl-macro { font-size: 14px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.items { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 4px; }
.it { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px; margin: 0 -8px; border-radius: 14px; min-height: 60px; transition: background .15s; }
.it:hover, .it:active { background: var(--paper); }
.thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--paper); }
.thumb-ph { display: grid; place-items: center; color: var(--blue); font-size: 20px; font-weight: 700; background: var(--blue-50); }
.it-main { flex: 1; min-width: 0; display: grid; }
.it-main b { font-weight: 600; font-size: 16px; }
.it-main small { font-size: 14px; color: var(--muted); }
.it-swap { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--blue); background: var(--blue-50); padding: 7px 10px; border-radius: 10px; }
.it-swap .ic { width: 15px; height: 15px; }
.it-go { color: var(--faint); width: 18px; height: 18px; }
.tl-card .seg-status { margin-top: 10px; }
.note { margin-top: 10px; font-size: 15px; min-height: 44px; }
.week-sum .ws-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin: 6px 0 4px; }
.ws-grid div { background: var(--paper); border-radius: 14px; padding: 10px 4px; display: grid; }
.ws-grid b { font-size: 26px; line-height: 1.1; }
.ws-grid small { font-size: 12px; color: var(--muted); }
.week-sum .row { margin-top: 10px; }
.hero-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r); background: var(--paper); }
.hero-ph { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--faint); font-size: 14px; }
.hero-ph .ic { width: 30px; height: 30px; }
.dish { font-size: 22px; }
.macro-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.macro-chips span { background: var(--paper); padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.macro-chips b { color: var(--ink); }
.times { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.times span { display: inline-flex; gap: 5px; align-items: center; }
.sheet h4, .sub-h { font-size: 16px; margin-top: 4px; }
.steps { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); text-align: left; transition: border-color .15s, background .15s; }
.opt.on { border-color: var(--blue); background: var(--blue-50); }
.opt-main { flex: 1; display: grid; gap: 1px; }
.opt-main b { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.opt-main small { font-size: 13.5px; color: var(--muted); }
.delta-line { color: var(--ink-2) !important; font-weight: 600; }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.opt.on .radio { background: var(--blue); border-color: var(--blue); color: #fff; }
.radio .ic { width: 14px; height: 14px; stroke-width: 3; }
.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px; }
.preview div { display: grid; gap: 2px; }
.preview small { font-size: 13px; opacity: .72; }
.preview b { font-size: 22px; font-variant-numeric: tabular-nums; }
.confirm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.confirm-list li { padding: 12px; border-radius: 16px; background: var(--paper); display: grid; gap: 8px; }
.confirm-list li.missing { box-shadow: inset 0 0 0 1.5px var(--warn); }
.confirm-list .seg { background: var(--card); }
.cl-head { display: flex; align-items: center; gap: 8px; }
.cl-head b { flex: 1; }

/* ---------- workout ---------- */
.plan-card .card-k .ic { color: var(--blue); }
.plan-name { font-size: 22px; }
.plan-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.plan-prog .bar { flex: 1; margin: 0; }
.plan-prog span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.plan-prog b { color: var(--ink); font-size: 17px; }
.weekbar { display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.wb-t { flex: 1; display: grid; text-align: center; line-height: 1.15; }
.wb-t b { font-size: 20px; } .wb-t b small { font-size: 14px; color: var(--muted); }
.wb-t span { font-size: 14px; color: var(--muted); }
.sess-list { display: grid; gap: 10px; }
.sess { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 12px; }
.sess-date { display: grid; place-content: center; justify-items: center; gap: 3px; width: 52px; height: 60px; border-radius: 14px; background: var(--paper); line-height: 1; flex: none; }
.sess-date small { font-size: 12px; font-weight: 600; color: var(--muted); }
.sess-date b { font-size: 22px; }
.sess-todo .sess-date, .sess-progress .sess-date { background: var(--blue); color: #fff; }
.sess-todo .sess-date small, .sess-progress .sess-date small { color: rgba(255,255,255,.8); }
.sess-done .sess-date { background: var(--ok-50); color: var(--ok); }
.sess-main { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.sess-main h3 { font-size: 19px; }
.sess-main .meta { margin: 0; font-size: 14px; }
.sess-go { color: var(--faint); }
.rest-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.rest-row.today { color: var(--ink); }
.rest-card { display: flex; gap: 14px; align-items: flex-start; }
.rest-ic { width: 40px; height: 40px; padding: 9px; box-sizing: content-box; background: var(--blue-50); color: var(--blue); border-radius: 16px; }
.rest-card h3 { font-size: 19px; }
.rest-card a { color: var(--blue); font-weight: 600; }
.sess-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sess-bar .meta { margin: 0; }
.ex-preview { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ex-preview li { display: flex; gap: 12px; align-items: center; padding: 14px; }
.ex-preview div { display: grid; } .ex-preview small { color: var(--muted); font-size: 14px; }
.ex-n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.ex { padding: 16px 14px; }
.ex-head { display: flex; align-items: flex-start; gap: 12px; }
.ex-t { flex: 1; min-width: 0; }
.ex-t h3 { font-size: 20px; line-height: 1.2; }
.ex-t small { font-size: 14.5px; font-weight: 700; color: var(--ink-2, #2F2F2F); }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper); padding: 5px 9px; border-radius: 9px; }
.ex-chips .ic { width: 14px; height: 14px; color: var(--blue); }
.hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.hint .ic { margin-top: 2px; }
.hint-up { background: var(--ok-50); color: var(--ok); }
.hint-hold { background: var(--blue-50); color: #23339A; }
.last { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 10px; font-variant-numeric: tabular-nums; }
.last .ic { width: 15px; height: 15px; }
.sets { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 6px; table-layout: fixed; }
.sets th { line-height: 1.15; vertical-align: bottom; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 2px; text-align: center; }
.sets th:nth-child(1) { width: 30px; } .sets th:nth-child(2) { width: 58px; } .sets th:nth-child(5) { width: 48px; }
.sets td { padding: 0 2px; text-align: center; vertical-align: middle; }
.c-n { font-weight: 700; color: var(--muted); }
.c-t { font-size: 14px; font-weight: 700; line-height: 1.1; }
.sets input { min-height: 48px; padding: 6px 2px; text-align: center; font-size: 20px; font-weight: 700; border: 1.5px solid transparent; background: var(--field); border-radius: 12px; font-variant-numeric: tabular-nums; }
.sets input::placeholder { color: #B9BDC9; font-weight: 600; }
.sets input:disabled { background: transparent; }
.sets tr.beat input { background: var(--ok-50); color: var(--ok); }
.sets tr.skip { opacity: .4; }
.tick { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--faint); transition: background .15s, color .15s, border-color .15s, transform .12s; }
.tick .ic { width: 20px; height: 20px; stroke-width: 3; }
.tick:active { transform: scale(.92); }
.tick:is([aria-pressed=true], [aria-checked=true]) { background: var(--blue); border-color: var(--blue); color: #fff; }
.sets tr.done .c-n { color: var(--blue); }
.alt-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.alt-row span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.alt-row select { min-height: 42px; font-size: 15px; padding: 8px 10px; }
.cue summary { list-style: none; }
.cue summary::-webkit-details-marker { display: none; }
.cue p { font-size: 15px; color: var(--ink-2); padding: 0 0 6px; }
.cue textarea { font-size: 15px; }
.ex .note { min-height: 44px; }
.done-card { display: flex; gap: 14px; align-items: center; background: var(--ok-50); border-color: transparent; box-shadow: none; }
.done-ic { width: 26px; height: 26px; padding: 10px; box-sizing: content-box; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; }
.done-card h3 { font-size: 18px; color: #0B5A35; }
.safety { display: flex; gap: 10px; font-size: 14px; color: var(--muted); padding: 6px 4px; }
.safety .ic { color: var(--warn); margin-top: 2px; }
#sheet-body:has(.fin-stats) .sh-title h2 { text-transform: uppercase; color: var(--midnight); font: 800 24px/1.1 var(--display); letter-spacing: .02em; }
.fin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: center; }
.fin-stats div { background: var(--paper); border-radius: 16px; padding: 14px 4px; display: grid; }
.fin-stats b { font: 800 34px/1 var(--display); color: var(--midnight); } .fin-stats small { font-size: 12.5px; color: var(--muted); }

/* ---------- check-in ---------- */
.sum { display: grid; }
.sum-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.sum-row:first-child { border-top: 0; padding-top: 4px; }
.sum-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.sum-ic .ic { width: 19px; height: 19px; }
.sum-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sum-k { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sum-v b { font-size: 18px; } .sum-v small { display: block; font-size: 14px; color: var(--ink-2); }
.sum-sub { font-size: 14px; color: var(--muted); }
.sum-main .row { margin-top: 8px; }
.nd { font-weight: 600; color: var(--faint); }
.reply { display: flex; gap: 14px; background: var(--ink); color: #fff; border: 0; }
.reply .card-k { color: rgba(255,255,255,.7); }
.reply-ic { width: 24px; height: 24px; padding: 9px; box-sizing: content-box; border-radius: 14px; background: var(--blue); flex: none; }
.reply h4 { font-size: 15px; margin-top: 10px; color: var(--yellow); }
.reply p { font-size: 16px; line-height: 1.5; }
.answers { margin: 0; display: grid; gap: 10px; }
.answers div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.answers dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.answers dd { margin: 2px 0 0; white-space: pre-wrap; }

/* ---------- setting ---------- */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 20px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 22px; flex: none; }
.pf-main { flex: 1; min-width: 0; display: grid; }
.pf-name { border: 0 !important; padding: 0 !important; min-height: 0 !important; font-size: 22px !important; font-weight: 700; background: transparent !important; box-shadow: none !important; }
.pf-main small { color: var(--muted); font-size: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-weight: 600; }
.set-row:first-of-type { border-top: 0; }
.set-row > span { display: inline-flex; gap: 6px; align-items: center; }
.set-row .seg { min-width: 150px; }
.set-row select { width: auto; max-width: 60%; min-height: 42px; font-size: 15px; }
.info-dl { margin: 0; display: grid; }
.info-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.info-dl div:first-child { border-top: 0; }
.info-dl dt { color: var(--muted); } .info-dl dd { margin: 0; font-weight: 600; text-align: right; }
.guide-body h4 { font-size: 16px; margin: 14px 0 6px; color: var(--blue); }
.guide-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.guide-body p, .guide-body li { font-size: 15.5px; color: var(--ink-2); }
.safety-card { display: flex; gap: 12px; background: var(--warn-50); box-shadow: none; border: 0; }
.safety-card > .ic { color: var(--warn); width: 22px; height: 22px; margin-top: 2px; }
.safety-card h3 { font-size: 17px; color: #5F3600; }
.safety-card p { font-size: 15px; color: #5F3600; }
.foot { text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--faint); font-weight: 600; text-transform: uppercase; padding: 10px 0; }
.foot .ic { color: var(--blue); }

/* ---------- larger screens: same order, wider grid ---------- */
@media (min-width: 760px) {
  .view { max-width: 760px; padding-left: 28px; padding-right: 28px; }
  .ph h1 { font-size: 38px; }
  .dash { grid-template-columns: 1fr 1fr; }
  .card-hero { grid-column: 1 / -1; }
  .dash-2 { display: contents; }
  .sess-list { grid-template-columns: 1fr 1fr; }
  .rest-row { grid-column: span 1; }
}
@media (min-width: 1100px) {
  .view { max-width: 1100px; }
  .dash { grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: minmax(180px, auto); }
  .card-hero { grid-column: 1; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
  .card-hero .num-xl { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* progress photos */
.photo-pick, .photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-sm); overflow: hidden; background: var(--field); display: grid; place-items: center; text-decoration: none; color: var(--ink); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo small { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.92); padding: 2px 8px; border-radius: 99px; }
.photo-add { border: 1.5px dashed var(--line); cursor: pointer; color: var(--blue); transition: border-color .15s var(--ease), background .15s var(--ease); }
.photo-add:hover, .photo-add:focus-within { border-color: var(--blue); background: var(--blue-50); }
.photo-add .ic { width: 26px; height: 26px; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-add.busy { cursor: progress; } .photo-add.busy .spin { width: 22px; height: 22px; }
.photo-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(47,47,47,.72); color: #fff; cursor: pointer; }
.photo-x .ic { width: 16px; height: 16px; }
.cue-btn { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 12px 2px; border: 0; border-top: 1px solid var(--line-2); background: none; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.cue-btn .ic:last-child { margin-left: auto; color: var(--faint); }
.cue .cue-btn { margin-top: 0; }
.tech h4 { margin: 16px 0 6px; } .tech h4:first-child { margin-top: 4px; }
.pre { white-space: pre-line; }
.checklist { list-style: disc; padding: 0 0 0 22px; margin: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 2px; }
.checklist li::marker { color: var(--midnight); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tech-video { display: block; width: 100%; max-height: 55vh; border-radius: var(--r-sm); background: #000; }
.photos-meal { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos-meal .photo { aspect-ratio: 1; }
.photo > a { position: absolute; inset: 0; }
.food-photo { display: flex; gap: 12px; align-items: center; }
.food-photo img { width: 64px; height: 64px; border-radius: var(--r-xs); object-fit: cover; background: var(--field); }

/* V7 client overview screens */
.view[data-surface] {
  --blue-08: rgba(15,127,196,.08);
  --blue-14: rgba(15,127,196,.14);
  --ink-70: rgba(47,47,47,.72);
  --ink-10: rgba(47,47,47,.10);
  --ink-05: rgba(47,47,47,.05);
  --r: 22px;
  --muted: var(--ink-70);
  --faint: var(--ink-70);
  --ink-2: var(--ink);
  --ok: var(--blue);
  --ok-50: var(--blue-08);
  --warn: var(--ink);
  --warn-50: var(--ink-05);
  --bad: var(--ink);
  --bad-50: var(--ink-05);
  --field: var(--paper);
  --line: var(--ink-10);
  --line-2: var(--ink-05);
  position: relative;
  isolation: isolate;
  max-width: 650px;
  padding-inline: 16px;
  padding-top: max(20px, env(safe-area-inset-top));
  font-size: 14px;
  line-height: 1.25;
}
.view[data-surface] > * + * { margin-top: 12px; }
.view[data-surface] .card { border-radius: var(--r); padding: 16px; border: 1px solid var(--ink-10); box-shadow: none; }
.view[data-surface] .card-k { font-size: 13px; color: var(--ink-70); margin-bottom: 0; }
.view[data-surface] .card-k .ic { width: 18px; height: 18px; }
.view[data-surface] .meta { font-size: 14px; }
.view[data-surface] .fine, .view[data-surface] .tag { font-size: 13px; }
.view[data-surface] .num-lg { font-size: 34px; line-height: 1; }
.view[data-surface] .num-lg u { font-size: 16px; margin-left: 3px; color: inherit; }
.view[data-surface] .btn { min-height: 44px; font-size: 15px; }
.view[data-surface] .btn-primary { box-shadow: none; }
.view[data-surface] .btn-primary:hover { background: var(--blue); }
.view[data-surface] .banner-warn { color: var(--ink); }
.view[data-surface] .banner-blue { color: var(--ink); background: var(--blue-08); }
.view[data-surface] .link-btn { min-height: 44px; min-width: 44px; }
.view[data-surface] .bar { height: 8px; background: var(--blue-14); }
.view[data-surface] .ring-track { stroke: var(--blue-14); }
.view[data-surface] .v7-outline, .view[data-surface] .week-sum .btn { border: 1px solid var(--blue-14); color: var(--blue); background: var(--card); }
.view[data-surface] .seg > .on { color: var(--card); background: var(--ink); box-shadow: none; }
.view[data-surface] .ph { padding: 0; align-items: center; }
.view[data-surface] .ph h1 { font-size: 28px; }
body:has(.view[data-surface]) { --nav-h: 76px; }
.view[data-surface] ~ .nav { bottom: calc(12px + var(--safe-b)); width: min(calc(100% - 24px), 520px); border-radius: 28px; border-color: rgba(47,47,47,.10); background: var(--card); backdrop-filter: none; }
.view[data-surface] ~ .nav a { letter-spacing: .03em; }
.view[data-surface] ~ .nav a.on .ic { background: rgba(15,127,196,.08); }
.view[data-surface] ~ .sync-ok { color: var(--blue); }
.view[data-surface] ~ .toast-ok .ic, .view[data-surface] ~ .toast-info .ic { color: var(--card); }
.view[data-surface] ~ .toast-err { background: var(--ink); }
.disclosure-arrow { margin-inline-start: auto; color: var(--muted); }
[aria-expanded="true"] > .disclosure-arrow, details[open] > summary > .disclosure-arrow { transform: rotate(180deg); }

/* Dashboard */
.dash-hero { overflow: hidden; isolation: isolate; }
.dash-date { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-greeting { margin-top: 8px; }
.dash-date, .dash-greeting { color: var(--ink-70); }
.dash-hero h1 { font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.dash-hero .week-badge { display: inline-block; min-width: 0; border: 1px solid var(--ink-10); border-radius: 8px; background: var(--card); font-size: 13px; font-weight: 600; padding: 4px 7px; text-transform: uppercase; white-space: nowrap; }
.dash-hero .banner { min-height: 44px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.25; border-radius: 16px; background: color-mix(in srgb, var(--blue) 8%, var(--card)); }
.dash-hero .banner > .ic { width: 18px; height: 18px; }
.dash-hero .banner b { font-weight: 600; }
.view[data-surface="dashboard"] .dash { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; }
.view[data-surface="dashboard"] .dash-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.view[data-surface="dashboard"] .card-hero { grid-area: auto; display: block; }
.view[data-surface="dashboard"] .hero-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-block: 10px; }
.trend-delta { margin-top: 4px; font-weight: 600; }
.trend-latest { text-align: end; color: var(--ink-70); display: grid; }
.trend-latest strong { color: var(--ink); font-size: 20px; }
.trend-latest small { font-size: 14px; font-weight: 600; }
.view[data-surface="dashboard"] .card-tile { min-height: 0; gap: 8px; align-items: flex-start; }
.view[data-surface="dashboard"] .dash-2:last-child .card-tile { gap: 5px; }
.dash-macros { display: flex; flex-wrap: wrap; gap: 4px; }
.dash-macros span { font-size: 13px; font-weight: 600; border-radius: 8px; background: var(--paper); padding: 3px 5px; }
.dash .goal-only { margin: 0; }
.dash .goal-only .ring-in b { font-size: 19px; }
.dash .goal-nd { flex-wrap: wrap; }
.dash .goal-nd small { font-size: 13px; }
.dash .steps-action { min-height: 44px; margin-block: -12px -6px; }
.dash .steps-card .num-lg u { color: var(--ink-70); }
.dash .steps-card .bar { width: 100%; margin-block: 3px 0; }
.dash .checkin-status { white-space: normal; font-size: 14px; margin: 1px 0; }
.dash .checkin-overdue { background: var(--yellow); color: var(--ink); }

/* Mealplan */
.meal-calendar { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px 6px; align-items: center; }
.meal-calendar .ph { justify-content: center; text-align: center; }
.meal-calendar .ph h1 { overflow-wrap: anywhere; }
.meal-calendar .daystrip { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7,minmax(44px,1fr)); margin: 0; }
.daystrip .ds small { font-size: 13px; }
.daystrip .ds b { font-size: 20px; }
.daystrip .ds i { width: 16px; }
.daystrip .ds-on i { background: var(--blue); color: var(--card); }
.daystrip .ds:not(.ds-on):not(.on) i { color: var(--ink-70); }
.daystrip .ds.on small { color: var(--card); }
.view[data-surface="meal"] .macro-card .card-k { font-weight: 700; color: var(--ink); }
.macro-card .macro-top { align-items: center; gap: 16px; margin-top: 12px; }
.macro-card .ring-in b { font-size: 24px; }
.macro-card .ring-in small { font-size: 13px; }
.macro-card .mbars { display: grid; grid-template-columns: minmax(0,1fr); flex: 1; gap: 10px; margin: 0; min-width: 0; }
.macro-card .mbar-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 5px; font-size: 14px; color: var(--ink); }
.macro-card .mbar-top b { font-size: 14px; font-weight: 500; color: var(--ink-70); }
.macro-card .mbar-top small { font-size: 13px; }
.macro-card .mbar { --macro-color: var(--blue); }
.macro-card .mbar.c { --macro-color: var(--ink); }
.macro-card .mbar.f { --macro-color: var(--yellow); }
.macro-card .mbar-top span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; background: var(--macro-color); }
.macro-card .mbar .mbar-track i { background: var(--macro-color); }
.macro-card .mbar-track { background: rgba(47,47,47,.08); margin-top: 4px; }
.day-card .day-row { justify-content: space-between; }
.day-card .meta { margin: 0; }
.view[data-surface="meal"] .timeline::before { content: none; }
.view[data-surface="meal"] .tl { padding: 0; }
.view[data-surface="meal"] .tl-card { padding: 0; }
.view[data-surface="meal"] .tl-now .tl-card { border: 2px solid var(--midnight); }
.meal-disclosure { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 12px 14px; text-align: start; }
.meal-title { min-width: 0; display: grid; gap: 5px; overflow-wrap: anywhere; }
.meal-heading-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.meal-heading-row .tl-time { flex: none; white-space: nowrap; }
.meal-heading-row strong { flex: 1; min-width: 0; }
.meal-title .meal-macros { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0; }
.meal-macros > span { color: var(--midnight); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meal-title strong, .tl-now .meal-title strong { font-size: 24px; line-height: 1; font-weight: 700; }
.meal-title .tl-macro { font-weight: 400; margin-top: 2px; }
.tl-now .meal-disclosure { row-gap: 6px; }
.tl-now .meal-disclosure .tag-now { grid-column: 1 / -1; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--midnight); background: transparent; }
.meal-status-mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: var(--card); background: var(--blue); }
.tl-near .meal-status-mark, .tl-off .meal-status-mark, .tl-skip .meal-status-mark { background: var(--ink); }
.meal-content { padding: 0 14px 8px; }
.meal-content .items { gap: 0; margin-top: 0; }
.meal-content .items li + li { border-top: 1px solid var(--ink-05); }
.meal-content .it { padding: 10px 0; margin: 0; }
.meal-content .it-main b { font-size: 17px; overflow-wrap: anywhere; }
.meal-content .thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-08); }
.meal-content .it-swap { min-width: 44px; min-height: 44px; border: 1px solid var(--blue-14); background: var(--card); border-radius: 12px; }
.meal-content .seg-status { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.meal-content .seg-status > button { font-size: 13px; line-height: 1.1; overflow-wrap: anywhere; }
body:has(.view[data-surface="meal"]) .sheet .seg-status > button { min-height: 44px; font-size: 13px; }
body:has(.view[data-surface="meal"]) .sheet .seg > .on { background: var(--ink); color: var(--card); box-shadow: none; }
body:has(.view[data-surface="meal"]) .sheet .tag-warn { background: var(--paper); color: var(--ink); }
.meal-content .photo-x { width: 44px; height: 44px; inset: 0 0 auto auto; }
.week-sum .ws-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 10px 0 6px; }
.week-sum .ws-grid div { border-radius: 12px; overflow-wrap: anywhere; }
.week-sum .ws-grid b { font-size: 20px; }
.week-sum .ws-grid small { font-size: 13px; }
.week-sum .card-k { flex-wrap: wrap; }
.week-sum .week-through { margin-top: 2px; }

/* Workout */
.workout-plan > .card-k { margin-top: 8px; }
.workout-plan > .meta { margin-top: 5px; overflow-wrap: anywhere; }
.workout-plan .weekbar { box-shadow: none; background: transparent; padding: 0; gap: 3px; margin-inline: -8px; }
.workout-plan .wb-t { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; text-align: start; }
.workout-plan .wb-t h1 { font-size: 28px; white-space: nowrap; }
.workout-plan .wb-t small { font-size: 18px; color: var(--ink-70); }
.workout-plan .wb-t span { white-space: nowrap; }
.workout-plan .plan-prog { margin-top: 8px; }
.training-week .sess-list { margin-top: 8px; gap: 8px; grid-template-columns: minmax(0,1fr); }
.view[data-surface="workout"] .sess { padding: 12px 14px; min-height: 72px; gap: 12px; }
.training-week .sess-date { width: 46px; height: 50px; border-radius: 12px; border: 1px solid var(--ink-10); background: transparent; color: var(--ink); }
.training-week .sess-date.past { border-color: transparent; background: var(--blue-08); }
.training-week .sess-date small { font-size: 13px; color: var(--ink-70); }
.training-week .sess-date b { font-size: 18px; }
.training-week .sess-main { gap: 2px; overflow-wrap: anywhere; }
.training-week .sess-main h3 { font-size: 17px; }
.sess-status { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.sess-progress .sess-status { color: var(--blue); }
.training-week .ring-in b { font-size: 13px; }
.training-week .rest-row { justify-content: flex-start; gap: 10px; color: var(--ink-70); font-weight: 400; }
.view[data-surface="workout"] .rest-card { background: transparent; border: 0; padding-block: 4px; }
.view[data-surface="workout"] .rest-ic { width: 18px; height: 18px; padding: 0; background: transparent; color: var(--ink-70); }

/* Trend weight */
.view[data-surface="weight"] .ph h1 { font-size: 24px; }
.view[data-surface="weight"] .num-xl { font-size: 44px; }
.view[data-surface="weight"] .num-xl u { font-size: 16px; color: inherit; }
.trend-range { margin-top: 14px; }
.trend-range > button { min-height: 44px; min-width: 44px; }
.view[data-surface="weight"] .weight-chart { margin-top: 12px; }
.view[data-surface="weight"] .c-trend { stroke-width: 3; }
.view[data-surface="weight"] .c-lbl { font-size: 13px; fill: var(--ink-70); }
@media (max-width: 408px) {
  .view[data-surface="weight"] .c-lbl { font-size: 15px; }
}
.view[data-surface="weight"] .c-grid { stroke: var(--ink-10); stroke-dasharray: 4 4; }
.view[data-surface="weight"] .c-dot { stroke: rgba(47,47,47,.55); }
.view[data-surface="weight"] .c-end { stroke-width: 2px; vector-effect: non-scaling-stroke; }
.view[data-surface="weight"] .c-band, .view[data-surface="weight"] .lg-band { fill: var(--ink-05); background: var(--ink-05); }
.trend-area-top { stop-color: var(--blue); stop-opacity: .16; }
.trend-area-bottom { stop-color: var(--blue); stop-opacity: 0; }
.view[data-surface="weight"] .weight-info { padding: 0 14px; }
.weight-info summary { display: flex; align-items: center; gap: 10px; min-height: 52px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; }
.weight-info summary::-webkit-details-marker { display: none; }
.weight-info-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; color: var(--blue); background: var(--blue-08); }
.weight-info p { padding-bottom: 14px; color: var(--ink-70); }
.view[data-surface="weight"] .weigh-ins { padding-bottom: 4px; }
.weigh-ins .li { min-height: 60px; padding: 6px 0; border-color: var(--ink-05); }
.weigh-ins .li-num { font-size: 20px; white-space: nowrap; }
.weight-edit-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--ink-70); }
@font-face{font-family:'Barlow Condensed';font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Condensed';font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/barlow-condensed-vietnamese-700-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Barlow Condensed';font-weight:800;font-style:normal;font-display:swap;src:url(/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Condensed';font-weight:800;font-style:normal;font-display:swap;src:url(/fonts/barlow-condensed-vietnamese-800-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Barlow Condensed';font-weight:800;font-style:italic;font-display:swap;src:url(/fonts/barlow-condensed-latin-800-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Condensed';font-weight:800;font-style:italic;font-display:swap;src:url(/fonts/barlow-condensed-vietnamese-800-italic.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}

/* V9: the band scrolls with the client page, behind the existing content. */
html:has(.view), body:has(.view) { background: var(--app-bg); }
body:has(.view) {
  --band: 150px;
  background:
    linear-gradient(180deg, var(--midnight) 0px, var(--midnight) calc(var(--band)*.45),
      #0B4FA6 var(--band), #5E9FD4 calc(var(--band) + 120px),
      #B9D4EA calc(var(--band) + 240px), var(--app-bg) calc(var(--band) + 380px)),
    var(--app-bg);
}
body:has(.view[data-surface="dashboard"]) { --band: 250px; }
body:has(.view[data-surface="meal"]) { --band: 205px; }
body:has(.view[data-surface="workout"]) { --band: 178px; }
body:has(.view[data-surface="session"]) { --band: 190px; }
body:has(.view[data-surface="checkin"]) { --band: 200px; }
body:has(.view) *, body:has(.view) *::before, body:has(.view) *::after { transition: none; }
body:has(.view) :is(.sk, .spin, .leave-bar, .rest) { animation: none; }
body:has(.view) :is(.btn, .fab, .tick, .scale5 button):active { transform: none; }
body:has(.view) .fab svg { transform: none; }
body:has(.view) .btn-primary, .view[data-surface] .btn-primary:hover { background: var(--midnight); color: var(--card); }
.view[data-surface] .card {
  border-color: rgba(1,4,123,.06);
  box-shadow: 0 1px 2px rgba(1,4,123,.04), 0 10px 24px -16px rgba(1,4,123,.25);
}
.view[data-surface] :is(h1, .num-lg, .num-xl, .li-num) {
  font-family: var(--display); font-weight: 800; letter-spacing: -.01em;
}
.view[data-surface] :is(.ph h1, .dash-hero h1, .workout-plan .wb-t h1) {
  font-size: 38px; line-height: .95; text-transform: uppercase; color: var(--card); overflow-wrap: anywhere;
}
.view[data-surface] .ph { min-height: 44px; }
.view[data-surface] .ph :is(.ph-back, .ph-t small), .meal-calendar > .icon-btn { color: var(--card); }
.view[data-surface] .ph .ph-t small { color: rgba(255,255,255,.82); }
.view[data-surface] .ph-back:focus-visible, .meal-calendar > .icon-btn:focus-visible, .workout-plan .icon-btn:focus-visible { outline-color: var(--card); }
.view[data-surface] > .empty, .workout-plan .empty, .view[data-surface] > .meta.center { background: var(--card); border-radius: var(--r); padding: 16px; }
.view[data-surface] .num-lg, .view[data-surface] .num-xl { font-size: 42px; color: var(--midnight); }
.view[data-surface] .num-xl u, .view[data-surface] .num-lg u, .weigh-ins .li-num small { font-family: Barlow,sans-serif; font-size: 15px; }
.view[data-surface] .seg > .on, body:has(.view[data-surface="meal"]) .sheet .seg > .on { background: var(--midnight); color: var(--card); }
.view[data-surface] .card-k, .view[data-surface] .card-h { color: var(--midnight); }
.view[data-surface="setting"] .card-h {
  display: inline-flex; background: rgba(255,255,255,.78); padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; color: var(--midnight);
}
.view[data-surface] ~ .nav a.on { color: var(--midnight); font-weight: 800; }
.view[data-surface] ~ .nav a.on .ic { background: var(--midnight); color: var(--acid); }
.view[data-surface] ~ .nav .fab { background: var(--acid); color: var(--midnight); border: 4px solid var(--app-bg); box-shadow: 0 8px 20px rgba(1,4,123,.30); }
.view[data-surface] ~ .nav .fab svg { stroke: currentColor; }
.ring-midnight { stop-color: var(--midnight); }
.ring-ocean { stop-color: var(--blue); }

.view[data-surface="dashboard"] .dash-hero { background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.dash-hero :is(.dash-date,.dash-greeting) { color: var(--card); font-size: 19px; font-weight: 700; line-height: 1.2; }
.view[data-surface="dashboard"] .dash-hero h1 { font-size: 48px; }
.dash-hero .week-badge { color: var(--midnight); background: var(--acid); border: 0; font-size: 14px; font-weight: 800; padding: 6px 9px; }
.view[data-surface="dashboard"] .dash-hero .banner { background: rgba(255,255,255,.96); }
.dash .checkin-overdue { color: var(--acid); background: var(--midnight); }
.dash .goal-only { width: 100%; padding: 0; }
.dash .card-tile { container-type: inline-size; }
.view[data-surface="dashboard"] .dash .card-tile .num-lg { font-size: min(30px, 23cqi); white-space: nowrap; }
.view[data-surface="dashboard"] .dash .steps-card .num-lg { font-size: min(28px, 21cqi); }
.view[data-surface="dashboard"] .dash .card-tile .num-lg u { font-size: .46em; margin-left: 2px; }
.dash .dash-macros span { color: var(--midnight); font-weight: 700; }
.view[data-surface="dashboard"] .steps-card .bar { background: rgba(15,127,196,.12); }
.view[data-surface="dashboard"] .steps-card .bar i { background: var(--midnight); }
:is(.dash .goal-only, .view[data-surface="goal"], .training-week .sess-done) .ring-val { stroke: var(--midnight); }
:is(.dash .goal-only, .view[data-surface="goal"] .card-center) .ring-in b { font: 800 36px/1 var(--display); color: var(--midnight); }
.dash .goal-only .ring-in b { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; font-size: 32px; }
.dash .goal-only .ring-in b span { font-size: 16px; }
:is(.goal-only, .macro-card) .ring .ring-track { stroke: rgba(15,127,196,.12); }
.dash .trend-latest strong { font: 800 26px/1 var(--display); color: var(--midnight); }
.dash .trend-latest small { font-family: Barlow,sans-serif; }

.meal-calendar .daystrip .ds { color: var(--card); padding-bottom: 14px; min-height: 80px; }
.meal-calendar .daystrip .ds.on { color: var(--midnight); background: var(--acid); }
.meal-calendar .daystrip .ds small, .meal-calendar .daystrip .ds i { color: inherit; }
.meal-calendar .daystrip .ds-on i { color: var(--midnight); background: var(--acid); }
.meal-calendar .daystrip .ds.on.ds-on i { color: var(--midnight); background: var(--acid); box-shadow: inset 0 0 0 1px var(--midnight); }
.meal-calendar .ds.today::after { background: var(--acid); bottom: 5px; }
.meal-calendar .ds.on.today::after { background: var(--midnight); }
.meal-calendar .ds b { font-family: var(--display); }
.view[data-surface="meal"] :is(.macro-card,.day-card) .card-k { color: var(--midnight); font-weight: 700; }
.macro-card .ring-in b { font: 700 38px/.9 var(--display); color: var(--midnight); }
.macro-card .ring-in small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.macro-card .mbar.p { --macro-color: var(--midnight); }
.macro-card .mbar.c { --macro-color: var(--blue); }
.macro-card .mbar.f { --macro-color: var(--acid); }
.macro-card .mbar-top span { color: var(--midnight); font-weight: 700; }
.macro-card .mbar-top span::before { border-radius: 50%; }
.macro-card .mbar-top b { font: 700 19px/1 var(--display); color: var(--midnight); }
.macro-card .mbar-top small { font: 600 13px Barlow,sans-serif; color: var(--ink-2); }
.macro-card .mbar-track { height: 9px; }
.macro-card .mbar.f .mbar-track i { box-shadow: inset 0 0 0 1px rgba(1,4,123,.22); }
.meal-status-mark { background: var(--midnight); }
.day-card .btn { text-transform: uppercase; letter-spacing: .05em; }

.workout-plan :is(.wb-t span, .wb-t small, .plan-prog span, .meta, .icon-btn) { color: var(--card); }
.view[data-surface] .workout-plan .card-k, .workout-plan .card-k .ic, .workout-plan .plan-prog b { color: var(--card); }
.workout-plan .wb-t small { color: rgba(255,255,255,.60); }
.view[data-surface] :is(.plan-prog, .session-progress) .bar { background: rgba(255,255,255,.18); }
.view[data-surface] :is(.plan-prog, .session-progress) .bar i { background: var(--acid); }
.training-week .rest-row { color: var(--midnight); }
.training-week .sess-done .sess-date { background: var(--midnight); border-color: transparent; }
.training-week .sess-done .sess-date small { color: rgba(222,244,52,.8); }
.training-week .sess-done .sess-date b { color: var(--acid); }
.training-week .sess-done .sess-status { color: var(--midnight); background: var(--acid); padding: 3px 9px; border-radius: 10px; font-size: 13px; line-height: 1.25; font-weight: 700; }
.view[data-surface="workout"] .card.sess-missed { background: #FFF6F5; box-shadow: none; }
.training-week .sess-missed .sess-date { background: var(--bad-50); border-color: transparent; }
.training-week .sess-missed :is(.sess-date small, .sess-date b, .sess-status) { color: var(--bad); }
.training-week .sess-unfinished .sess-status { color: var(--blue); }
.training-week .sess-main h3, .training-week .sess-date b { color: var(--midnight); }
.view[data-surface="workout"] .rest-card { color: var(--midnight); background: rgba(255,255,255,.93); }

html:has(.view[data-surface="session"]), body:has(.view[data-surface="session"]) { overflow-x: clip; }
.view[data-surface="session"] { width: 100%; overflow-wrap: anywhere; }
.view[data-surface="session"] .ph h1 { font-size: 52px; }
.view[data-surface="session"] .ph-t small { text-transform: uppercase; letter-spacing: .06em; }
.view[data-surface="session"] .sess-bar { color: var(--card); }
.view[data-surface="session"] .sess-bar .chip { color: var(--card); background: rgba(255,255,255,.14); }
.view[data-surface="session"] .sess-bar .meta { color: inherit; }
.session-progress { display: flex; flex: 1 1 180px; align-items: center; gap: 10px; }
.session-progress .bar { flex: 1; margin: 0; }
.view[data-surface="session"] .ex { padding-inline: 14px; }
.view[data-surface="session"] .last { align-items: flex-start; }
.view[data-surface="session"] .ex-n { width: 36px; height: 36px; border-radius: 11px; background: var(--midnight); color: var(--card); font: 800 20px var(--display); }
.view[data-surface="session"] .ex-t h3, .view[data-surface="session"] .ex-preview b { font: 800 24px/1 var(--display); text-transform: uppercase; color: var(--midnight); overflow-wrap: anywhere; }
.ex .prescription { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13px; }
.prescription span { padding: 3px 8px; border-radius: 8px; background: var(--paper); }
.prescription .prescription-rir { background: var(--midnight); color: var(--card); }
.view[data-surface="session"] .ex-chips span { color: var(--midnight); background: var(--blue-08); border-radius: 999px; }
.view[data-surface="session"] .card.done-card { background: var(--card); box-shadow: var(--sh); border: 0; }
.view[data-surface="session"] .done-card .meta { color: var(--ink-70); }
.view[data-surface="session"] .done-ic { background: var(--midnight); color: var(--card); }
.view[data-surface="session"] .card:has([data-act="s-past"]) .row { margin-top: 16px; }
.view[data-surface="session"] .done-card h3 { color: var(--midnight); }
.view[data-surface="session"] .sets { border-spacing: 0 6px; }
.view[data-surface="session"] .sets :is(th,td) { padding-inline: 0; text-align: center; overflow-wrap: anywhere; }
.view[data-surface="session"] .sets th:nth-child(1) { width: 24px; }
.view[data-surface="session"] .sets th:nth-child(2) { width: 38px; }
.view[data-surface="session"] .sets th:nth-child(5) { width: 40px; }
.view[data-surface="session"] .sets input {
  width: calc(100% - 6px); height: 42px; min-height: 42px; padding: 0; border-radius: 11px;
  color: var(--midnight); background: var(--paper); font: 700 20px var(--display);
}
.view[data-surface="session"] .sets input:disabled { background: transparent; }
.view[data-surface="session"] .sets input::placeholder { color: var(--muted); font: 500 16px var(--display); }
.view[data-surface="session"] .sets .c-n { font: 700 20px var(--display); color: var(--midnight); }
.view[data-surface="session"] .sets .tick { width: 40px; height: 40px; margin-inline: auto; }
.view[data-surface="session"] .sets .tick:is([aria-pressed="true"], [aria-checked="true"]) { background: var(--acid); border-color: var(--acid); color: var(--midnight); }
.view[data-surface="session"] .sets tr.done { background: rgba(222,244,52,.25); }
.view[data-surface="session"] .sets tr.beat:not(.done) input:not(:disabled) { background: var(--blue-08); }
.view[data-surface="session"] .sets tr.done input:not(:disabled) { background: transparent; }
.view[data-surface="session"] .sets input:focus:not(:disabled) { border-color: var(--blue); background: var(--card); }
.view[data-surface="session"] .sets .set-feedback td { text-align: start; }
.view[data-surface="session"] :is(.alt-row,.cue-btn) { color: var(--midnight); }
.view[data-surface="session"] :is(.alt-row select, .ex textarea, input[type="time"]) { min-width: 0; font-size: max(16px, 1rem); }
.view[data-surface="session"] .cue-btn .ic:last-child { color: var(--blue); }
.view[data-surface="session"] :is(textarea, .alt-row select) { background: var(--paper); }
.view[data-surface="session"] [data-act="s-finish"].btn-primary { background: var(--acid); color: var(--midnight); text-transform: uppercase; }
.view[data-surface="session"] .safety { padding: 12px 14px; background: var(--card); border-radius: 16px; border-inline-start: 4px solid var(--acid); }

.view[data-surface="checkin"] .ph h1, .view[data-surface="setting"] .ph h1 { font-size: 44px; }
.view[data-surface="checkin"] .ph h1 { max-width: 190px; }
.checkin-client { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.view[data-surface="checkin"] .checkin-client .card-k { font: 800 24px/1 var(--display); overflow-wrap: anywhere; }
.checkin-sent { flex: none; background: var(--acid); color: var(--midnight); }
.sum-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.sum-tiles .sum-row { padding: 10px; border: 0; border-radius: 14px; background: #F3F6FA; gap: 6px; overflow-wrap: anywhere; }
.sum-tiles .sum-row .sum-ic { width: 18px; height: 18px; background: none; }
.sum-tiles .sum-row .sum-ic .ic { width: 15px; height: 15px; }
.sum-tiles .sum-trend { grid-column: 1 / -1; padding: 14px; color: var(--card); background: linear-gradient(135deg,var(--midnight),var(--blue)); }
.sum-tiles .sum-trend :is(.sum-k,.sum-sub,.sum-ic,.nd) { color: inherit; }
.sum-tiles .sum-trend .sum-v b { color: var(--card); font-size: 37px; }
.sum-tiles .sum-trend .sum-v small { display: table; background: var(--acid); color: var(--midnight); padding: 3px 8px; border-radius: 8px; margin-block: 4px; font-weight: 700; }
.sum-tiles .sum-lifts { grid-column: 1 / -1; }
.sum-tiles .sum-v b { font: 800 30px/1.05 var(--display); color: var(--midnight); }
.sum-tiles .sum-v :is(.sum-count, .sum-unit) { display: block; overflow-wrap: normal; font: 600 13px/1.2 Barlow,sans-serif; }
.sum-tiles .sum-count span { display: block; font: 800 30px/1.05 var(--display); }
.sum-tiles .sum-sub { font-size: 13px; }
.view[data-surface="checkin"] .answers div { background: none; border-top: 1px solid var(--line-2); border-radius: 0; padding: 8px 0; }
.view[data-surface="checkin"] .answers dd { color: var(--midnight); }
.view[data-surface="checkin"] .answer-bool { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--app-bg); color: var(--midnight); font-weight: 700; }
.view[data-surface="checkin"] .answer-bool.is-yes { color: var(--acid); background: var(--midnight); }
.view[data-surface="checkin"] [data-act="ci3-edit"] { margin-top: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--midnight); }
.view[data-surface="checkin"] :is(.progress-photo-link,.checkin-history) { color: var(--midnight); }
.view[data-surface="checkin"] .checkin-link-icon { color: var(--midnight); background: rgba(222,244,52,.55); }

.view[data-surface="setting"] .avatar { width: 56px; height: 56px; border-radius: 18px; background: var(--acid); color: var(--midnight); font: 800 26px var(--display); }
.view[data-surface="setting"] .pf-name, .view[data-surface="setting"] .info-dl dd { color: var(--midnight); }
.view[data-surface="setting"] .toggle i { background: #CDD5DF; }
.view[data-surface="setting"] .toggle input:checked + i { background: var(--midnight); }
.view[data-surface="setting"] .toggle input:checked + i::after { background: var(--card); }
.view[data-surface="setting"] [data-act="set-sync"] { color: var(--card); background: var(--midnight); }
.view[data-surface="setting"] [data-act="set-forget"] { color: #BF3526; }
.view[data-surface="setting"] .foot { color: var(--midnight); opacity: .5; font: 800 14px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.view[data-surface="weight"] .num-xl { font-size: 44px; }
.view[data-surface="session"] .sets th:nth-child(2) { font-size: 10px; letter-spacing: 0; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .needs-morning-log .fab { animation: accent-pulse 2.4s ease-out infinite; }
  .view[data-surface="session"] .sets input:focus { animation: set-focus 1.1s step-end infinite; }
  .checkin-sent.just-sent { animation: checkin-sent .5s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes accent-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(222,244,52,.55); } 60% { box-shadow: 0 0 0 12px rgba(222,244,52,0); } }
@keyframes set-focus { 50% { border-color: rgba(15,127,196,.25); } }
@keyframes checkin-sent { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } to { transform: scale(1); opacity: 1; } }

/* Give set number and target range room after removing the RIR column. */
.view[data-surface="session"] .sets th:nth-child(1){width:38px}
.view[data-surface="session"] .sets th:nth-child(2){width:66px;font-size:12px}
.view[data-surface="session"] .sets .c-n,.view[data-surface="session"] .sets .c-t{padding-inline:6px;white-space:nowrap}
.view[data-surface="session"] .sets .c-t{font-size:16px}

/* Exercise title shares the number badge's 36px row; prescription sits below. */
.view[data-surface="session"] .ex-head{align-items:center}
.view[data-surface="session"] .ex-t h3{font-size:28px;line-height:36px;min-height:36px}
.view[data-surface="session"] .ex .prescription{align-items:center;gap:6px;margin-top:10px;line-height:20px}
.view[data-surface="session"] .prescription span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:14px;font-weight:700}
.view[data-surface="session"] .prescription-rest{background:var(--blue-08);color:var(--midnight)}
.view[data-surface="session"] .prescription-rest .ic{width:14px;height:14px;color:var(--blue)}

/* Completion is a read-only indicator, updated from valid set numbers. */
.sets .tick[aria-readonly="true"]{cursor:default;display:inline-flex;align-items:center;justify-content:center}

/* Premium · private journey. Deliberately distinct from the daily tracker. */
.view[data-surface]:has(.journey-dashboard) { padding-top:28px; }
.view[data-surface] .journey-header { padding:0 4px 18px; margin:0 0 6px; border:0; border-radius:0; box-shadow:none; color:var(--midnight); }
.journey-identity { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:20px; }
.journey-wordmark { display:flex; align-items:center; gap:9px; }
.journey-mark { width:38px; height:38px; flex:none; }
.journey-mark-dot { fill:var(--acid); stroke:currentColor; stroke-width:1; }
.journey-wordmark b { display:block; font-size:15px; font-weight:600; letter-spacing:.1em; line-height:1.25; }
.journey-wordmark span { display:block; font-size:10px; letter-spacing:.18em; margin-top:4px; }
.journey-edition { font-size:11px; font-weight:500; letter-spacing:.17em; padding:8px 0 8px 16px; border-left:1px solid currentColor; }
.journey-owner { display:flex; justify-content:space-between; gap:12px; align-items:baseline; padding:12px 0 8px; border-top:1px solid rgba(1,4,123,.16); }
.journey-owner > span:first-child { font-size:11px; letter-spacing:.08em; line-height:1.4; }
.journey-owner > span:last-child { font-size:14px; font-weight:500; overflow-wrap:anywhere; text-align:right; }
.view[data-surface] .journey-header .dash-date { font-size:12px; color:var(--muted); padding:0; margin:0; }
.journey-header .week-badge { background:none; color:var(--midnight); padding:0; font-size:12px; font-weight:500; }
.premium-account:not(.journey-header) .journey-identity,.premium-account:not(.journey-header) .journey-owner { color:#fff; }
.premium-account:not(.journey-header) .journey-owner { border-color:rgba(255,255,255,.25); }
.premium-account:not(.journey-header) .dash-date { padding-top:12px; }
.journey-dashboard { gap:20px; }
.journey-panel { background:var(--card); border:1px solid rgba(1,4,123,.07); border-radius:28px; padding:28px 24px 8px; min-width:0; }
.journey-eyebrow { display:block; font-size:11px; font-weight:500; letter-spacing:.13em; color:var(--muted); line-height:1.5; }
.view[data-surface] .journey-intro h1 { font:600 36px/1.08 var(--display); text-transform:uppercase; color:var(--midnight); margin:10px 0 0; max-width:22ch; overflow-wrap:anywhere; letter-spacing:.005em; }
.journey-progress { display:flex; align-items:center; flex-direction:column; margin:20px 0 24px; }
.journey-gauge { position:relative; width:200px; height:200px; }
.journey-gauge svg { display:block; width:100%; height:100%; }
.journey-gauge-ticks { stroke:rgba(1,4,123,.25); stroke-width:4; }
.journey-gauge-track { stroke:var(--app-bg); stroke-width:4; }
.journey-gauge-fill { stroke:var(--midnight); stroke-width:4; stroke-linecap:round; }
.journey-gauge-dot { fill:var(--acid); stroke:var(--midnight); stroke-width:1.5; }
.journey-gauge-value { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; }
.journey-gauge-value strong { font:600 76px/.95 var(--display); letter-spacing:-.03em; color:var(--midnight); font-variant-numeric:tabular-nums; }
.journey-gauge-value strong small { font:400 24px Barlow,sans-serif; margin-left:3px; }
.journey-gauge-value > span { font-size:14px; color:var(--muted); margin-top:8px; }
.journey-progress-caption { margin-top:10px; text-align:center; }
.journey-progress-caption p { color:var(--midnight); font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.journey-progress-caption > span { display:flex; align-items:center; justify-content:center; gap:10px; font-size:14px; color:var(--muted); margin-top:5px; }
.journey-progress-caption i { display:inline-block; width:24px; height:1px; background:var(--midnight); opacity:.35; }
.journey-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:20px 0; border-block:1px solid var(--line); }
.journey-metrics > div { padding:0 12px; min-width:0; border-left:1px solid var(--line); }
.journey-metrics > div:first-child { padding-left:0; border:0; }
.journey-metrics > div:last-child { padding-right:0; }
.journey-metrics > div > span { display:block; font-size:12px; color:var(--muted); }
.journey-metrics strong { display:block; color:var(--midnight); font:600 27px/1.15 var(--display); margin-top:7px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.journey-metrics strong small { font:400 13px Barlow,sans-serif; }
.journey-metrics strong.is-text { font:500 16px/1.3 Barlow,sans-serif; }
.journey-metrics > div > small { display:block; color:var(--muted); font-size:11px; line-height:1.4; margin-top:6px; overflow-wrap:anywhere; }
.journey-method > summary { display:flex; justify-content:center; align-items:center; gap:8px; min-height:44px; cursor:pointer; list-style:none; font-size:12px; color:var(--muted); }
.journey-method > summary::-webkit-details-marker { display:none; }
.journey-method summary .ic { width:13px; height:13px; }
.journey-method p { font-size:14px; line-height:1.5; color:var(--muted); padding:0 0 16px; overflow-wrap:anywhere; }
.journey-stage { padding:4px 6px; }
.journey-stage-line { display:flex; align-items:flex-start; gap:14px; }
.journey-stage-dot { flex:none; width:10px; height:10px; border-radius:50%; background:var(--midnight); box-shadow:0 0 0 4px var(--paper),0 0 0 5px rgba(1,4,123,.2); margin-top:4px; }
.journey-stage h2 { font-size:20px; font-weight:500; line-height:1.3; color:var(--midnight); margin-top:6px; overflow-wrap:anywhere; }
.journey-destination { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; border-left:1px solid rgba(1,4,123,.18); padding:14px 0 0 18px; margin:0 0 0 4px; font-size:14px; color:var(--muted); }
.journey-destination strong { color:var(--midnight); font-weight:500; overflow-wrap:anywhere; }
.journey-destination strong small { font-size:14px; }
.journey-destination time { margin-left:auto; }
.journey-focus { padding:22px; border-radius:22px; background:var(--midnight); color:#fff; }
.journey-focus-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px 12px; flex-wrap:wrap; }
.journey-focus h2 { font-size:17px; font-weight:500; line-height:1.3; }
.journey-focus-head > span { color:rgba(255,255,255,.7); font-size:12px; }
.journey-focus ul { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:12px; }
.journey-focus li { display:flex; gap:12px; font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.journey-focus li::before { content:''; flex:none; width:12px; height:1px; background:var(--acid); margin-top:11px; }
.journey-focus > p { font-size:16px; margin-top:12px; }
.view[data-surface] .journey-dashboard .results-disclosure { background:transparent; padding:0 6px; border:0; border-radius:0; box-shadow:none; }
.journey-dashboard .results-disclosure > summary { min-height:56px; border-block:1px solid rgba(1,4,123,.13); padding-block:14px; font-size:15px; }
.journey-dashboard .results-disclosure > summary { display:flex; justify-content:space-between; align-items:center; gap:16px; list-style:none; cursor:pointer; color:var(--midnight); }
.journey-dashboard .results-disclosure > summary::-webkit-details-marker { display:none; }
.journey-dashboard .results-disclosure > summary small { display:block; margin-top:6px; font-size:12px; line-height:1.4; color:var(--muted); }
.journey-dashboard .results-disclosure > summary > .ic { flex:none; width:18px; height:18px; }
.journey-dashboard .results-disclosure[open] > summary > .ic,.journey-method[open] > summary > .ic { transform:rotate(180deg); }
.journey-dashboard .results-detail-content { display:grid; gap:16px; margin-top:16px; border:0; padding-top:0; font-size:16px; line-height:1.45; }
.journey-dashboard .results-detail-content > .card { min-width:0; }
body:has(.journey-dashboard) .nav { background:rgba(242,242,242,.96); border:1px solid rgba(1,4,123,.1); box-shadow:0 6px 24px -16px rgba(1,4,123,.25); }
body:has(.journey-dashboard) .nav .fab { border-color:var(--paper); }
@media(min-width:560px) {
  .journey-panel { padding:32px 32px 8px; }
  .view[data-surface] .journey-intro h1 { font-size:44px; max-width:24ch; }
  .journey-progress { flex-direction:row; justify-content:center; gap:28px; margin:24px 0; }
  .journey-progress-caption { text-align:left; margin:0; }
  .journey-progress-caption > span { justify-content:flex-start; }
  .journey-metrics strong { font-size:32px; }
}
@media(max-width:359px) {
  .journey-panel { padding:24px 18px 6px; }
  .view[data-surface] .journey-intro h1 { font-size:32px; }
  .journey-gauge { width:180px; height:180px; }
  .journey-metrics > div { padding:0 8px; }
  .journey-metrics strong { font-size:24px; }
  .journey-edition { font-size:10px; padding-left:10px; }
  .journey-wordmark b { font-size:13px; }
  .journey-wordmark span { font-size:9px; }
}

/* Premium v3 · blue atmosphere, lime orbits, explicit multi-goal KPI score. */
.premium-ambient { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.premium-ambient svg { width:100%; height:100%; opacity:.28; }
.premium-ambient path { stroke:var(--acid); stroke-width:1.2; vector-effect:non-scaling-stroke; }
.premium-ambient .ambient-orbit-one path:last-child { stroke-width:.6; opacity:.6; }
.premium-ambient .ambient-orbit-two { opacity:.6; }
body:has(.premium-account) .journey-header { color:#fff; }
body:has(.premium-account) .journey-owner { border-color:rgba(255,255,255,.22); color:rgba(255,255,255,.8); }
body:has(.premium-account) .journey-header .dash-date { color:#fff; margin-top:16px; }
body:has(.premium-account) .journey-header .week-badge { color:var(--midnight); background:var(--acid); padding:5px 9px; border-radius:8px; }
.journey-welcome { margin:12px 0 0; color:#fff; }
.journey-welcome p { font-size:16px; line-height:1.4; opacity:.85; }
.journey-welcome h2 { font:700 34px/1.12 var(--display); margin:4px 0 0; overflow-wrap:anywhere; }
.journey-edition { display:flex; align-items:center; gap:7px; border:1px solid rgba(222,244,52,.5); border-radius:18px 5px 18px 5px; padding:9px 12px; color:var(--acid); background:rgba(255,255,255,.035); flex:none; }
.journey-edition svg { width:12px; height:12px; }
.journey-edition span { position:relative; overflow:hidden; font:800 italic 23px/1 var(--display); letter-spacing:.045em; }
.journey-edition::after { content:''; position:absolute; inset:-20% -70%; background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.65) 50%,transparent 60%); transform:translateX(-70%); }
.journey-dashboard .journey-focus { border:1px solid rgba(255,255,255,.14); box-shadow:0 10px 32px -20px rgba(1,4,123,.5); }
.journey-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 22px; }
.journey-kpi { min-width:0; padding:12px 10px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.journey-kpi > span { display:block; font-size:13px; line-height:1.3; min-height:34px; color:var(--muted); overflow-wrap:anywhere; }
.journey-kpi > strong { display:block; font:700 28px/1.1 var(--display); color:var(--midnight); margin:8px 0; }
.journey-kpi strong small { font:400 13px Barlow,sans-serif; }
.journey-kpi > small { color:var(--muted); font-size:12px; line-height:1.4; }
.journey-kpi progress { display:block; appearance:none; -webkit-appearance:none; width:100%; height:3px; border:0; border-radius:3px; overflow:hidden; background:var(--app-bg); color:var(--midnight); }
.journey-kpi progress::-webkit-progress-bar { background:var(--app-bg); }
.journey-kpi progress::-webkit-progress-value { background:var(--midnight); }
.journey-kpi progress::-moz-progress-bar { background:var(--midnight); }
.kpi-method-body { padding-bottom:14px; }
.kpi-explanation { padding:16px 0; border-top:1px solid var(--line); }
.kpi-explanation header { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color:var(--midnight); font-size:16px; }
.kpi-explanation header span { font-size:14px; }
.kpi-explanation p { padding:0; margin-top:10px; }
.kpi-explanation .kpi-source { color:var(--blue); font-size:13px; }
.kpi-explanation dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 0; }
.kpi-explanation dt { color:var(--muted); font-size:12px; }
.kpi-explanation dd { margin:5px 0 0; color:var(--midnight); font-size:17px; overflow-wrap:anywhere; }
.journey-method .kpi-equation { font-size:18px; color:var(--midnight); border-top:1px solid var(--line); padding-top:14px; }
#dashboard-content.dashboard-swipe { view-transition-name:premium-pages; }
html[data-dashboard-direction]::view-transition-old(root),html[data-dashboard-direction]::view-transition-new(root) { animation:none; mix-blend-mode:normal; }
html[data-dashboard-direction]::view-transition-group(premium-pages) { animation-duration:420ms; animation-timing-function:cubic-bezier(.2,.8,.2,1); }
html[data-dashboard-direction='forward']::view-transition-old(premium-pages) { animation:premium-out-left 360ms cubic-bezier(.22,.61,.36,1) both; }
html[data-dashboard-direction='forward']::view-transition-new(premium-pages) { animation:premium-in-right 360ms cubic-bezier(.22,.61,.36,1) both; }
html[data-dashboard-direction='back']::view-transition-old(premium-pages) { animation:premium-out-right 360ms cubic-bezier(.22,.61,.36,1) both; }
html[data-dashboard-direction='back']::view-transition-new(premium-pages) { animation:premium-in-left 360ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes premium-out-left { to { transform:translateX(-100%); } }
@keyframes premium-in-right { from { transform:translateX(100%); } }
@keyframes premium-out-right { to { transform:translateX(100%); } }
@keyframes premium-in-left { from { transform:translateX(-100%); } }
@keyframes premium-orbit-one { 0%,100% { transform:translate(-3%,0) rotate(-6deg); } 50% { transform:translate(3%,3%) rotate(4deg); } }
@keyframes premium-orbit-two { 0%,100% { transform:translate(2%,0) rotate(4deg); } 50% { transform:translate(-2%,-3%) rotate(-5deg); } }
@keyframes premium-glint { 0%,75% { transform:translateX(-70%); } 100% { transform:translateX(70%); } }
@media(prefers-reduced-motion:no-preference) {
  body:has(.view) .premium-ambient .ambient-orbit-one { transform-origin:50% 30%; animation:premium-orbit-one 24s ease-in-out infinite !important; }
  body:has(.view) .premium-ambient .ambient-orbit-two { transform-origin:50% 50%; animation:premium-orbit-two 31s ease-in-out infinite !important; }
  body:has(.view) .journey-edition::after { animation:premium-glint 9s ease-in-out infinite !important; }
}
@media(max-width:359px) {
  .journey-edition { padding:8px; gap:5px; }
  .journey-edition span { font-size:19px; }
  .journey-edition svg { width:9px; height:9px; }
  .journey-wordmark { gap:5px; }
  .journey-kpi { padding:10px 7px; }
  .journey-kpi > span { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  html:not([data-premium-motion='on'])[data-dashboard-direction]::view-transition-old(premium-pages),html:not([data-premium-motion='on'])[data-dashboard-direction]::view-transition-new(premium-pages) { animation:none; }
}


/* Keep Premium header legible above the blue background, overriding legacy hero rules. */
body:has(.premium-account) .view[data-surface] .premium-account .journey-identity,
body:has(.premium-account) .view[data-surface] .premium-account .journey-wordmark,
body:has(.premium-account) .view[data-surface] .premium-account .journey-wordmark b,
body:has(.premium-account) .view[data-surface] .premium-account .journey-wordmark span,
body:has(.premium-account) .view[data-surface] .premium-account .dash-date { color:#fff; }
body:has(.premium-account) .view[data-surface] .premium-account .journey-edition { color:var(--acid); }
.journey-welcome { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.journey-welcome > div { min-width:0; }
html[data-premium-motion='on'] body:has(.view) .premium-ambient .ambient-orbit-one { transform-origin:50% 30%; animation:premium-orbit-one 24s ease-in-out infinite !important; }
html[data-premium-motion='on'] body:has(.view) .premium-ambient .ambient-orbit-two { transform-origin:50% 50%; animation:premium-orbit-two 31s ease-in-out infinite !important; }
html[data-premium-motion='on'] body:has(.view) .journey-edition::after { animation:premium-glint 9s ease-in-out infinite !important; }
html[data-premium-motion='off'] body:has(.view) .premium-ambient .ambient-orbit,
html[data-premium-motion='off'] body:has(.view) .journey-edition::after { animation:none !important; }

/* Match the standard dashboard's greeting, date and week badge exactly. */
.view[data-surface] .premium-account .journey-welcome p { color:var(--card); font-size:19px; font-weight:700; line-height:1.2; opacity:1; }
.view[data-surface] .premium-account .journey-welcome h2 { font:800 48px/.95 var(--display); text-transform:uppercase; color:var(--card); letter-spacing:-.01em; }
.view[data-surface] .premium-account .dash-date { font-size:19px; font-weight:700; line-height:1.2; }
.view[data-surface] .premium-account .week-badge { color:var(--midnight); background:var(--acid); border:0; font-size:14px; font-weight:800; padding:6px 9px; border-radius:8px; }
.journey-welcome { padding-top:14px; border-top:1px solid rgba(255,255,255,.2); margin-top:0; }

.journey-edition .premium-lettering { display:inline-flex; font:800 23px/1 var(--display); letter-spacing:.035em; padding-right:3px; }
.journey-edition .premium-lettering b { font:inherit; font-style:normal; }
.journey-edition .premium-lettering i { font:inherit; font-style:italic; }
@media(max-width:359px) { .journey-edition .premium-lettering { font-size:20px; } }

/* Premium score refinement · centered galaxy, concise objective and square KPI tiles. */
.journey-edition .premium-lettering { font-style:italic; }
.view[data-surface] .premium-account .dash-date { margin-top:0; margin-bottom:12px; }
.journey-welcome { border:0; padding-top:0; }
.journey-intro .journey-eyebrow { display:flex; align-items:center; gap:8px; color:var(--midnight); font-size:14px; font-weight:600; letter-spacing:.055em; }
.journey-intro .journey-eyebrow .ic { width:18px; height:18px; color:var(--blue); flex:none; }
.view[data-surface] .journey-intro h1 { font:700 clamp(16px,4.6vw,20px)/1.3 var(--display); text-transform:none; white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis; letter-spacing:0; margin-top:8px; }
.journey-progress { flex-direction:column; justify-content:center; align-items:center; margin:14px 0 22px; gap:0; }
.journey-gauge { width:240px; height:240px; }
.journey-gauge .galaxy-halo { position:absolute; inset:0; width:100%; height:100%; }
.galaxy-cloud { transform-origin:50% 50%; transform-box:view-box; }
.galaxy-cloud circle { fill:var(--blue); }
.galaxy-cloud circle:nth-child(4n) { fill:var(--midnight); }
.journey-gauge-value { display:block; }
.journey-gauge-value > strong { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font:700 76px/.95 var(--display); }
.journey-gauge-value > span { position:absolute; top:calc(50% + 39px); left:50%; transform:translateX(-50%); margin:0; background:var(--app-bg); color:var(--midnight); border:1px solid rgba(1,4,123,.05); border-radius:999px; padding:5px 11px; white-space:nowrap; font-size:13px; line-height:1.2; }
.journey-kpis { gap:10px; margin-bottom:14px; }
.journey-kpi { aspect-ratio:1; display:grid; grid-template-rows:minmax(2.5em,auto) 1fr auto; justify-items:center; text-align:center; padding:12px 10px; border:0; border-radius:15px; background:var(--midnight); color:#fff; }
.journey-kpi > span { align-self:start; min-height:0; color:#fff; font-size:13px; line-height:1.25; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.journey-kpi > strong { align-self:center; margin:6px 0; color:#fff; font-size:32px; line-height:1; }
.journey-kpi > strong small { color:#fff; }
.journey-kpi > small { color:rgba(255,255,255,.85); font-size:14px; line-height:1.2; overflow-wrap:anywhere; }
@keyframes galaxy-drift { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:no-preference) {
  html:not([data-premium-motion='off']) body:has(.view) .galaxy-cloud { animation:galaxy-drift 100s linear infinite !important; }
}
html[data-premium-motion='on'] body:has(.view) .galaxy-cloud { animation:galaxy-drift 100s linear infinite !important; }
html[data-premium-motion='off'] body:has(.view) .galaxy-cloud { animation:none !important; }
@media(max-width:359px) {
  .journey-gauge { width:216px; height:216px; }
  .journey-kpis { gap:7px; }
  .journey-kpi { padding:10px 6px; border-radius:12px; }
  .journey-kpi > span { font-size:12px; }
  .journey-kpi > strong { font-size:28px; }
  .journey-kpi > small { font-size:12px; }
}

.journey-kpi { min-height:0; padding:10px 8px; font-size:12px; grid-template-rows:2.4em 1fr 1.2em; }
.journey-kpi > span { font-size:12px; line-height:1.2; }
.journey-kpi > strong { font-size:28px; margin:0; }
.journey-kpi > small { font-size:13px; line-height:1.2; }
@media(max-width:359px) {
  .journey-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .journey-kpi:last-child:nth-child(odd) { grid-column:1 / -1; width:calc(50% - 3.5px); justify-self:center; }
}

/* Refined header and KPI readouts; simple horizontal paging without fading. */
.journey-identity { border-bottom:1px solid rgba(255,255,255,.4); padding-bottom:18px; margin-bottom:16px; }
.journey-edition { position:relative; overflow:hidden; isolation:isolate; }
.journey-edition::after { inset:-50% -70%; pointer-events:none; z-index:2; }
.journey-edition .premium-lettering { position:relative; z-index:1; }
.view[data-surface] .journey-intro h1 { font-size:clamp(18px,5.2vw,24px); text-transform:uppercase; }
.journey-gauge-value > strong { top:calc(50% - 8px); }
.journey-kpi { aspect-ratio:auto; min-height:126px; justify-items:start; text-align:left; grid-template-rows:2.4em 1fr auto; padding:12px 10px; }
.journey-kpi > strong { margin:8px 0; }
.journey-kpi > small { display:block; width:100%; }
.journey-kpi > small > span { display:block; font-size:12px; color:rgba(255,255,255,.72); line-height:1.3; }
.journey-kpi > small > b { display:block; margin-top:3px; font-size:14px; font-weight:400; color:#fff; line-height:1.25; }
html[data-dashboard-direction]::view-transition-group(premium-pages) { animation:none; }
.premium-ambient .ambient-orbit-three { opacity:.55; }
@media(prefers-reduced-motion:no-preference) {
  html:not([data-premium-motion='off']) body:has(.view) .premium-ambient .ambient-orbit-three { transform-origin:50% 40%; animation:premium-orbit-two 38s ease-in-out infinite !important; }
}
html[data-premium-motion='on'] body:has(.view) .premium-ambient .ambient-orbit-three { transform-origin:50% 40%; animation:premium-orbit-two 38s ease-in-out infinite !important; }
html[data-premium-motion='off'] body:has(.view) .premium-ambient .ambient-orbit-three { animation:none !important; }
@media(max-width:359px) { .view[data-surface] .journey-intro h1 { font-size:17.5px; } }

.journey-kpi { grid-template-rows:2.4em 1fr 52px; }
.journey-kpi > small { align-self:end; }

.journey-gauge-value > span { font-weight:600; }

/* Soft elevation and more compact KPI cards. */
.view[data-surface] .journey-panel { box-shadow:0 4px 12px -6px rgba(1,4,123,.12),0 18px 40px -20px rgba(1,4,123,.3); }
.view[data-surface] .journey-focus { box-shadow:0 5px 14px -7px rgba(1,4,123,.2),0 15px 30px -16px rgba(1,4,123,.4); }
.journey-kpi { min-height:0; padding:10px 9px; box-shadow:0 6px 14px -8px rgba(1,4,123,.42); }
.journey-kpi > strong { margin:2px 0; }
.galaxy-cloud circle:nth-child(7n) { fill:var(--acid); opacity:.95; r:1.3px; }

/* KPI carousel: one row at every width, independent of dashboard paging. */
.kpi-carousel { min-width:0; }
.journey-kpis { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(96px,calc((100% - (var(--kpi-visible) - 1) * 10px) / var(--kpi-visible))); gap:10px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-padding-inline:3px; overscroll-behavior-x:contain; touch-action:pan-x pan-y pinch-zoom; scrollbar-width:none; padding:2px 3px 12px; margin:0 -3px; }
.journey-kpis::-webkit-scrollbar { display:none; }
.journey-kpis > .journey-kpi,.journey-kpis > .journey-kpi:last-child:nth-child(odd) { grid-column:auto; width:auto; justify-self:stretch; scroll-snap-align:start; }
.kpi-carousel-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 8px; }
.kpi-carousel-controls button { min-height:44px; padding:0 10px; color:var(--midnight); font-size:14px; }
.kpi-carousel-controls button:disabled { opacity:.3; cursor:default; }
.kpi-carousel-controls output { font-size:13px; color:var(--muted); }
#dashboard-content.dashboard-swipe { touch-action:pan-x pan-y pinch-zoom; }
.dashboard-swipe > .dash,.dashboard-swipe .journey-intro,.dashboard-swipe .journey-progress,.dashboard-swipe .journey-method,.dashboard-swipe .journey-stage,.dashboard-swipe .journey-focus,.dashboard-swipe .results-disclosure,.dashboard-swipe > .dashboard-dots { touch-action:pan-y pinch-zoom; }

/* Do not squeeze KPI cards to fit: keep a comfortable card width and scroll the rest. */
.journey-kpis { grid-auto-columns:clamp(140px,calc((100% - 20px) / 3),190px); }
.journey-kpis > .journey-kpi { min-height:140px; padding:12px; grid-template-rows:2.6em 1fr 52px; }
.journey-kpis > .journey-kpi > span { font-size:13px; }

.journey-kpis { grid-auto-columns:var(--kpi-card-width,140px); padding:4px 6px 14px; margin-inline:-6px; scroll-padding-inline:6px; }

/* Always show three complete slots; paginate whole groups with accessible dots. */
.journey-kpis { display:flex; gap:0; padding:0; margin:0; scroll-padding:0; }
.kpi-page { flex:0 0 100%; min-width:0; box-sizing:border-box; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:4px 4px 6px; scroll-snap-align:start; scroll-snap-stop:always; }
.kpi-page > .journey-kpi { width:auto; min-width:0; min-height:140px; padding:10px 8px; grid-template-rows:minmax(2.6em,auto) 1fr auto; }
.kpi-page .journey-kpi > span { display:block; overflow:visible; font-size:12px; overflow-wrap:anywhere; }
.kpi-page .journey-kpi > small > span { font-size:11px; }
.kpi-page .journey-kpi > small > b { font-size:12px; overflow-wrap:anywhere; }
.kpi-page .journey-kpi-empty { background:var(--mist,#E6ECF2); color:var(--midnight); box-shadow:none; }
.kpi-page .journey-kpi-empty > span,.kpi-page .journey-kpi-empty > strong { color:var(--midnight); opacity:.55; }
.kpi-carousel-controls { justify-content:center; gap:0; margin:0; }
.kpi-carousel-controls button { display:grid; place-items:center; width:20px; min-height:28px; padding:0; border:0; background:transparent; }
.kpi-carousel-controls button > span { display:block; width:7px; height:7px; border-radius:50%; background:var(--midnight); opacity:.22; }
.kpi-carousel-controls button[aria-current='true'] > span { opacity:1; }
.kpi-carousel-controls button:focus-visible { outline:2px solid var(--ocean); outline-offset:-3px; border-radius:10px; }

/* Compact score footer and a clear current-phase card. */
.journey-panel > .journey-method > summary { min-height:32px; }
.journey-stage { padding:18px; border:1px solid rgba(1,4,123,.08); border-radius:22px; background:rgba(255,255,255,.88); box-shadow:0 5px 14px -6px rgba(1,4,123,.12),0 16px 32px -16px rgba(1,4,123,.28); }
.journey-stage-heading { display:flex; align-items:center; gap:8px; }
.journey-stage-heading > .ic { width:16px; height:16px; color:#0F7FC4; flex:none; }
.journey-stage-heading .journey-eyebrow { font-size:10px; letter-spacing:1.3px; color:var(--midnight); font-weight:600; }
.journey-stage h2 { margin:9px 0 14px; font-size:20px; font-weight:600; line-height:1.35; }
.journey-stage .journey-destination { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0; padding:12px 14px; border:0; border-radius:13px; background:var(--mist,#E6ECF2); }
.journey-destination-goal { display:flex; flex-direction:column; gap:5px; min-width:0; }
.journey-stage .journey-destination-goal > span { font-size:12px; line-height:1.35; font-weight:600; color:var(--midnight); overflow-wrap:anywhere; }
.journey-stage .journey-destination-goal > strong { font-size:23px; line-height:1.2; font-weight:600; color:var(--midnight); overflow-wrap:anywhere; }
.journey-stage .journey-destination-goal > strong > small { font-size:14px; font-weight:400; }
.journey-destination-date { display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex:none; }
.journey-destination-date > span { font-size:11px; font-weight:600; color:var(--midnight); }
.journey-stage .journey-destination-date > time { margin:0; font-size:14px; font-weight:600; color:var(--midnight); }

/* Public guest tour uses the existing app views and synthetic browser-only state. */
.guest-banner { background: #01047b; color: white; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; font-size: 16px; }
.guest-banner div { flex: 1 1 280px; max-width: 760px; }
.guest-banner strong, .guest-banner span { display: block; }
.guest-banner span { font-size: 14px; margin-top: 4px; }
.guest-banner a { color: #def434; padding: 8px 0; font-weight: 600; }
