/* FitCalc — premium athletic editorial design tokens and components. Two equal-quality themes; fiery orange is the dominant structural accent
 * (active nav, instrument ticks, selected controls, arrows); a lime/forest-green secondary accent is reserved for small marks (the gauge pointer);
 * matte gold is reserved for the approved logo and fine hairline separators. */
:root {
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, "Times New Roman", serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;   /* bold condensed-style editorial headings (system sans, no runtime font fetch) */
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px; --gap: 14px; --measure: 30rem;
  --orange-ink: #241a10;                                          /* the dark label colour readable on either theme's orange — identical in both */
  --pd-1: #eef0f1; --pd-2: #c9cdd0; --pd-3: #a3a8ac; --pd-ink: #22242a;   /* the satin-palladium primary button — identical in both themes */
  color-scheme: light dark;
}
:root[data-theme="dark"] {
  --bg: #161512; --bg-elev: #1b1a16; --surface: #211f1b; --surface-2: #2a2721; --surface-3: #312e27;
  --text: #f2efe7; --text-2: #cfcabd; --muted: #a9a496; --edge: rgba(255, 255, 255, .07); --edge-strong: rgba(255, 255, 255, .22);
  --gold-hair: rgba(196, 170, 112, .26);           /* deliberately muted champagne on graphite */
  --orange: #ff5000;                               /* dark theme: unchanged fiery orange */
  --accent: var(--orange); --accent-ink: var(--orange-ink); --accent-text: var(--orange); --accent-soft: rgba(255, 80, 0, .14); --ring-track: rgba(255, 255, 255, .10); --ring-over: #cfcabd;
  --danger: #ff9a86; --danger-bg: rgba(255, 154, 134, .10); --ok: #c6e35d; --focus: #e9d59a; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 24px -14px rgba(0,0,0,.7);
}
:root[data-theme="light"] {
  --bg: #f7f2e7; --bg-elev: #fbf7ee; --surface: #fffdf7; --surface-2: #f2ecdd; --surface-3: #e9e2d0;
  --text: #17261c; --text-2: #34443a; --muted: #5a6357; --edge: rgba(23, 38, 28, .10); --edge-strong: rgba(23, 38, 28, .38);
  --gold-hair: rgba(176, 141, 78, .42);            /* delicate, darker champagne-gold on ivory */
  --orange: #e99152;                               /* light theme only: softer, warm apricot orange (less intense on ivory than the dark theme's fiery tone) */
  --accent: var(--orange); --accent-ink: var(--orange-ink); --accent-text: #a6551f; --accent-soft: rgba(233, 145, 82, .14); --ring-track: rgba(23, 38, 28, .10); --ring-over: #5a6357;
  --danger: #a3341f; --danger-bg: rgba(163, 52, 31, .07); --ok: #80a85f; --focus: #1f4d34; --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 22px -16px rgba(58, 45, 20, .35);
}                                                 /* --accent-text: a darker, same-hue burnt-apricot for SMALL TEXT on light surfaces — the decorative --accent fails 4.5:1 there; fills/borders/dots use the softer decorative tone in this theme */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font-body); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { top: 8px; }
.shell { max-width: var(--measure); margin: 0 auto; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
.shell--plain { padding-bottom: 32px; }
main { outline: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 6px 2px 10px; }
.brand { display: flex; align-items: center; gap: 9px; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: var(--text-2); }
.brand .logo { display: block; height: 20px; width: auto; }
.beta-strip { flex-basis: 100%; order: 1; margin: 6px 2px 0; font-size: .78rem; color: var(--muted); }
.display { font: 800 2.5rem/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; margin: 6px 2px 2px; }
.sub { color: var(--muted); font-size: 1.02rem; margin: 0 2px 14px; }
.h2 { font: 500 1.5rem/1.2 var(--font-head); margin-bottom: 8px; }
.lbl { font: 500 .95rem/1.2 var(--font-body); color: var(--text-2); letter-spacing: .02em; margin-bottom: 8px; }
.help { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.fine { color: var(--muted); font-size: .82rem; text-align: center; margin: 6px 0 0; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 18px; margin: 0 0 var(--gap); box-shadow: var(--shadow); }
.card--gold { border-color: var(--gold-hair); }
.card--next { border-color: var(--gold-hair); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.card--warn { border-color: var(--danger); }
.rule { border: 0; border-top: 1px solid var(--gold-hair); margin: 14px 0; }
.num-xl { font: 500 3.5rem/1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.015em; }
.num-xl small { font: 500 1.05rem var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); }
.macro { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.macro:first-child { padding-left: 0; } .macro + .macro { border-left: 1px solid var(--gold-hair); }
.macro-l { color: var(--muted); font-size: .88rem; }
.macro-v { font: 500 1.75rem/1.1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; }
.macro-v small { font: 500 .85rem var(--font-body); color: var(--muted); }
.hero .macro-v::after { content: ""; display: block; width: 20px; height: 2px; margin-top: 6px; border-radius: 1px; background: var(--ok); }   /* a static accent, not a progress bar — Today's hero macros only */
/* the instrument-style gauge (Today's daily target): an arc of individual ticks, orange up to the recorded share, dim beyond it; a small lime /
 * forest-green pointer marks the boundary. Over 100 % the lit ticks and pointer switch to the neutral `ring-over` tone and park at the arc's end —
 * exceeding the target is stated as a number, never rewarded with the accent colour. */
.gauge { position: relative; width: 100%; max-width: 21rem; margin: 2px auto 0; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge-tick { stroke: var(--ring-track); stroke-width: 4.5; stroke-linecap: round; transition: stroke .4s ease; }
.gauge-tick--on { stroke: var(--accent); }
.gauge-tick--over { stroke: var(--ring-over); }
.gauge-pointer { fill: var(--ok); transition: cx .4s ease, cy .4s ease; }
.gauge-pointer--over { fill: var(--ring-over); }
.gauge-center { position: absolute; left: 0; right: 0; top: 62%; transform: translateY(-50%); display: grid; justify-items: center; }
.gauge-center .num-xl { line-height: .95; }
.gauge-pct { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.next-title { font: 500 1.35rem/1.25 var(--font-head); margin: 2px 0 4px; }
.state { font: 500 1.2rem/1.3 var(--font-head); margin-bottom: 4px; }
.intake { margin-top: 14px; } .intake .help { margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.stat { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; } .stat dt { color: var(--muted); font-size: .86rem; line-height: 1.25; }
.stat dd { margin: 3px 0 0; font: 500 1.45rem/1.15 var(--font-head); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.stat--over dt { color: var(--text-2); }                         /* an overshoot is stated plainly: neutral, never an alarm and never a reward */
.tag { color: var(--muted); font: 400 .8rem var(--font-body); }
.macro-r { color: var(--muted); font-size: .8rem; line-height: 1.25; }
.actions { display: grid; gap: 8px; margin-top: 14px; }
.note { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--edge-strong); border-radius: 14px; color: var(--text-2); font-size: .92rem; } .note p { margin: 0; overflow-wrap: anywhere; }
.week-card { margin-top: 12px; } .week-card .stats { grid-template-columns: minmax(0, 1fr); }
/* Tomorrow preview (compact, read-only) */
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; } .tm-head .lbl { margin: 0; } .tm-head .chip { margin-top: 0; }
.tm-date { font: 500 1.15rem/1.25 var(--font-head); margin-top: 6px; } .tm-status { color: var(--text-2); font-size: .95rem; margin-top: 2px; }
.tm-kcal { font: 500 2.1rem/1.1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; margin-top: 10px; white-space: nowrap; } .tm-kcal small { font: 500 .95rem var(--font-body); color: var(--muted); }
.tm-macros { margin-top: 10px; } .tm-macros .macro-v { font-size: 1.35rem; }
.tm-basis { margin-top: 10px; } .tm-basis-notes { margin: 8px 0 0; }
.tm-details { margin-top: 12px; } .tm-h { font: 600 .78rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
/* Sleep-record deletion confirmation */
.confirm { margin: 0 0 16px; padding: 14px; border: 1px solid var(--danger); border-radius: 14px; background: var(--danger-bg); }
.confirm h2 { font: 500 1.25rem/1.25 var(--font-head); margin-bottom: 6px; } .confirm p, .confirm li { overflow-wrap: anywhere; }
.confirm-list { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-2); font-size: .92rem; }
.confirm .btnrow { margin-top: 12px; flex-wrap: wrap; } .confirm .btnrow .btn { flex: 1 1 10rem; }
.btn.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); box-shadow: none; }          /* .btn.btn--danger: must beat the later .btn rule — the destructive choice may never look like the satin primary or the safe one */
.btn.btn--danger .ico { background: none; color: currentColor; width: auto; height: auto; padding: 0; }
.plan { margin: 0; padding-left: 1.1em; } .plan li { margin: 2px 0; }
.notes { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-2); font-size: .92rem; }
.notes-card summary, details summary { cursor: pointer; color: var(--text-2); }
.notes-card summary::marker, details summary::marker { color: var(--ok); }               /* the disclosure chevron only — the summary text keeps its own colour */
.notes-card summary::-webkit-details-marker, details summary::-webkit-details-marker { color: var(--ok); }
details pre { white-space: pre-wrap; word-break: break-word; font: .78rem/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); background: var(--surface-2); padding: 10px; border-radius: 10px; }

/* buttons — the signature satin-palladium primary action, identical construction in both themes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px;
  border: 1.5px solid var(--accent); background: linear-gradient(160deg, var(--pd-1) 0%, var(--pd-2) 55%, var(--pd-3) 100%); color: var(--pd-ink);
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 2px rgba(0,0,0,.12), 0 3px 10px -4px rgba(0,0,0,.4);
}
.btn:hover { background: linear-gradient(160deg, color-mix(in srgb, var(--pd-1) 100%, white 10%) 0%, var(--pd-2) 55%, var(--pd-3) 100%); }
.btn:active { background: linear-gradient(160deg, var(--pd-2) 0%, var(--pd-3) 100%); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.btn .ico { flex: none; width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: var(--accent); color: var(--pd-ink); }   /* dark-ink glyph reads reliably on both the fiery and the softer apricot orange */
.btn--ghost { background: transparent; color: var(--text); border-color: var(--edge-strong); box-shadow: none; }
.btn--ghost:hover, .btn--ghost:active { background: var(--surface-2); }
.btn--ghost .ico { background: none; color: currentColor; width: auto; height: auto; padding: 0; }
.btn--block { display: flex; width: 100%; margin-top: 12px; }
.btn[disabled], .iconbtn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.btnrow { display: flex; gap: 10px; margin-top: 8px; } .btnrow .btn { flex: 1; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--edge-strong); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.linkbtn { background: none; border: 0; color: var(--accent-text); text-decoration: underline; font: inherit; cursor: pointer; padding: 4px; }

/* forms */
.form .field, .form .check, .form .radios { margin: 0 0 16px; }
.field label, .radios legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--edge-strong); border-radius: 14px; background: var(--surface-2); }
.input-wrap:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.input-wrap input { flex: 1; width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; background: transparent; border: 0; color: var(--text); font: 500 1.1rem var(--font-body); font-variant-numeric: tabular-nums; outline: none; }
.input-wrap input[disabled] { opacity: .5; }
.unit { padding-right: 14px; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.field--bad .input-wrap { border-color: var(--danger); background: var(--danger-bg); }
.err, .help, .banner { overflow-wrap: anywhere; }
.err { color: var(--danger); font-size: .9rem; margin-top: 6px; font-weight: 600; }
.check { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-weight: 500; } .check .help, .check .err { grid-column: 2; }
.radios { border: 0; padding: 0; min-width: 0; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; margin-bottom: 8px; border: 1px solid var(--edge-strong); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.radio input { position: relative; appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 0; padding: 0; border: 2px solid var(--edge-strong); border-radius: 50%; background: var(--surface); }
.radio input:checked { border-color: var(--accent); }                                    /* the selected ring stays orange; only the inner dot below is the secondary accent */
/* absolute + translate(-50%,-50%): centres on the ring's own box regardless of border width, zoom or viewport — no per-control pixel nudging */
.radio input:checked::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: 8px; } .seg legend { grid-column: 1 / -1; } .seg .radio { margin: 0; justify-content: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 > *, .grid2 > * { min-width: 0; } .grid3 .field label, .grid2 .field label { overflow-wrap: anywhere; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.daybox { position: relative; } .daybox input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.daybox span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--edge-strong); border-radius: 12px; background: var(--surface-2); font-size: .85rem; }
.daybox input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.daybox input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.banner { border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 var(--gap); border: 1px solid var(--edge-strong); background: var(--surface-2); }
.banner--error { border-color: var(--danger); background: var(--danger-bg); } .banner--error strong { color: var(--danger); }
.banner--ok { border-color: var(--ok); } .banner ul { margin: 6px 0 0; padding-left: 1.1em; } .banner a { color: inherit; }
.chip { display: inline-block; font-size: .74rem; line-height: 1.3; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--edge-strong); color: var(--text-2); margin-top: 6px; }
.chip--gold { border-color: var(--gold-hair); color: var(--text); } .chip--dashed { border-style: dashed; }

/* day navigation + history */
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.daynav-c { display: flex; flex-direction: column; align-items: center; text-align: center; } .daynav-d { font: 500 1.1rem var(--font-head); }
.histlist { list-style: none; margin: 0; padding: 0; } .hist { padding: 14px 16px; }
.hist h3 { font: 500 1.1rem var(--font-head); margin-bottom: 8px; } .hist h4 { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.hcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .hcols > * { min-width: 0; }
.hnum { font: 500 1.6rem/1.1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; } .hnum small { font: 500 .8rem var(--font-body); color: var(--muted); }
.hnum--none, .hmiss { color: var(--muted); font-size: .95rem; font-family: var(--font-body); } .hnum2 { font: 500 1.25rem var(--font-head); } .hmac { color: var(--muted); font-size: .82rem; }
.hw { margin-top: 8px; color: var(--text-2); font-size: .9rem; } .hw span { color: var(--muted); }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--bg-elev) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--gold-hair); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.tabbar nav { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: var(--muted); text-decoration: none; font-size: .74rem; }
.tabbar a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }          /* icon and label stay orange; the underline below is the only secondary-accent touch */
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 18px; height: 2px; border-radius: 1px; background: var(--ok); }
.tabbar a:focus-visible { outline-offset: -4px; }
/* Narrow screens: the calorie number and its unit stay TOGETHER on one line (nowrap). What gives way is the ring column — smaller ring, a caption that may wrap onto two short lines — not the number. */
@media (max-width: 380px) { .num-xl { font-size: 2.75rem; white-space: nowrap; } .num-xl small { font-size: 1rem; } .stat dd { font-size: 1.3rem; } .macro { padding: 0 8px; } .display { font-size: 2.2rem; } .grid3 { grid-template-columns: 1fr; } .hcols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* spacing inside state / message cards */
.card > p + .btn, .card > p + button, .card > ul + .btn, .card > .help + .btn { margin-top: 14px; }
.card > .btn + details, .card > p + details { margin-top: 14px; }
.card--warn { margin-top: 6px; } .card--warn p { margin-bottom: 2px; }

/* Progress sub-navigation and Reports (REPORTS-1) */
.subnav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--edge-strong); border-radius: 14px; background: var(--surface-2); }
.subnav a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; text-align: center; }
.subnav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.rp-controls .seg { margin-bottom: 12px; } .rp-range { text-align: center; font-size: 1rem; overflow-wrap: anywhere; } .rp-stepper .daynav-c { min-width: 0; flex: 1; padding: 0 6px; }
.rp-sections .check { margin-bottom: 12px; } .rp-sections .check:last-child { margin-bottom: 0; }
.rp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px; } .rp-actions .btn { min-width: 0; text-align: center; }
.rp-status { margin-top: 12px; } .rp-status .banner { margin: 0; } .rp-share-na { margin-top: 10px; }
.rpt { font-size: .92rem; overflow-wrap: anywhere; }
.rpt-mast { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gold-hair); }
.rpt-brand { display: flex; align-items: center; gap: 8px; letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; color: var(--text-2); } .rpt-brand .logo { display: block; height: 18px; width: auto; }
.rpt-title { font: 500 1.6rem/1.15 var(--font-head); margin: 6px 0 2px; } .rpt-sub { color: var(--muted); margin: 0; }
.rpt-h { font: 500 1.15rem/1.25 var(--font-head); margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--gold-hair); }
.rpt-kv { margin: 0 0 10px; } .rpt-kv > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 2px 12px; padding: 4px 0; }
.rpt-kv dt { color: var(--muted); } .rpt-kv dd { margin: 0; font-weight: 600; } .rpt-kv dd small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.rpt-p { margin: 8px 0; } .rpt-p--muted { color: var(--muted); font-size: .84rem; }
.rpt-list { margin: 6px 0 10px; padding-left: 1.1em; } .rpt-list li { margin: 4px 0; }
.rpt-tablewrap { margin: 8px 0 10px; } .rpt-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.rpt-table th { text-align: left; font-weight: 600; background: var(--surface-2); border-bottom: 1px solid var(--gold-hair); padding: 6px 8px; vertical-align: bottom; }
.rpt-table td { padding: 6px 8px; border-bottom: 1px solid var(--edge); vertical-align: top; } .rpt-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.rpt-chart { margin: 8px 0; } .rpt-chart figcaption { font-weight: 600; font-size: .86rem; margin-bottom: 4px; } .rpt-chart svg { width: 100%; height: auto; display: block; }
.rpt-chart text { fill: var(--muted); font-size: 9px; } .rpt-grid { stroke: var(--edge-strong); stroke-width: .5; } .rpt-line { fill: none; stroke: var(--accent); stroke-width: 1.5; } .rpt-dot { fill: var(--accent); }
@media (max-width: 560px) {
  .rpt-kv > div { grid-template-columns: minmax(0, 1fr); }
  .rpt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rpt-table, .rpt-table tbody { display: block; width: 100%; }
  .rpt-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--edge-strong); }
  .rpt-table td { display: block; border: 0; padding: 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .rpt-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .72rem; line-height: 1.25; }
  .rpt-table td:first-child { grid-column: 1 / -1; font-weight: 700; font-size: .95rem; } .rpt-table td:first-child::before { display: none; }
  .rpt-table td.w { grid-column: 1 / -1; } .rpt-table td.r { text-align: left; }
}

/* BACKUP-UI-1: Me > Backup and restore */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk-notes { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-2); font-size: .92rem; } .bk-notes li { margin: 4px 0; }
.bk-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 10px; margin-top: 14px; } .bk-actions .btn { min-width: 0; text-align: center; }
.bk-status { margin-top: 12px; outline: none; } .bk-status .banner { margin: 0; }
.bk-preview { margin-top: 14px; padding: 14px; border: 1px solid var(--gold-hair); border-radius: 14px; background: var(--surface-2); outline: none; overflow-wrap: anywhere; }
.bk-preview h3 { font: 500 1.2rem/1.25 var(--font-head); margin: 0 0 6px; }
.bk-kv { margin: 10px 0; } .bk-name { overflow-wrap: anywhere; word-break: break-word; }
.bk-warn { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--edge-strong); border-radius: 12px; } .bk-warn ul { margin: 6px 0 0; padding-left: 1.1em; } .bk-warn li { margin: 4px 0; }
.bk-bad { margin-top: 14px; overflow-wrap: anywhere; } .bk + .btnrow { margin-top: 10px; }
.bk-preview + .btnrow, .bk-preview + .confirm, .bk-bad + .btnrow { margin-top: 12px; }
.bk .confirm .btn--block { margin-top: 8px; }