/* Gym tracker: "Iron" style. Copied from the approved prototype (design/gym-prototype.html);
   keep the two in step. Fonts are served from static/fonts (see README.txt there). */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bebas-neue-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/source-sans-3.woff2) format("woff2"); }

:root {
  --bg: #f1f2f4; --card: #ffffff; --fg: #161a20; --muted: #555d69; --line: #d6dae0; --step: #eceef1;
  --accent: #c2470a; --soft: #fdeee3; --ok: #15803d; --ok-soft: #e3f4e8; --hot: #b42318; --warn: #a15c07; --ink: #ffffff;
  --chart: #3f6aa8; --z1: #fde3cf; --z2: #f8b98a; --z3: #ee8a4c; --z4: #d0601e; --z5: #9e3d0b;
  --page: #e6e8eb;
  --f-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161b; --card: #1b2129; --fg: #edf0f4; --muted: #a0a9b5; --line: #2c343f; --step: #262e38;
    --accent: #ff8a3d; --soft: #3a2416; --ok: #4ade80; --ok-soft: #173524; --hot: #ff7b6e; --warn: #f5b041; --ink: #1a0d03;
    --chart: #82a6dc; --z1: #4a2c18; --z2: #7a411b; --z3: #b55a20; --z4: #e8782e; --z5: #ffaa6b;
    --page: #0b0e11;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161b; --card: #1b2129; --fg: #edf0f4; --muted: #a0a9b5; --line: #2c343f; --step: #262e38;
  --accent: #ff8a3d; --soft: #3a2416; --ok: #4ade80; --ok-soft: #173524; --hot: #ff7b6e; --warn: #f5b041; --ink: #1a0d03;
  --chart: #82a6dc; --z1: #4a2c18; --z2: #7a411b; --z3: #b55a20; --z4: #e8782e; --z5: #ffaa6b;
  --page: #0b0e11;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--fg); font: 16px/1.5 var(--f-body); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- app frame ---------- */
/* On a phone the app fills the screen; on a computer it's a phone-width column in the middle. */
.app { max-width: 440px; margin: 16px auto; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: clip; display: flex; flex-direction: column; min-height: calc(100dvh - 32px); }
@media (max-width: 479px) {
  .app { margin: 0; min-height: 100dvh; border: 0; border-radius: 0; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
  .top { padding-top: calc(6px + env(safe-area-inset-top, 0px)); top: 0; }
  .tabs { padding-bottom: env(safe-area-inset-bottom, 0px); bottom: 0; }
}
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 6px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.top .back { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 12px; }
.top .title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .who { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: .9rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .85rem; }
.screen { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.tabs { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-top: 1px solid var(--line); }
.tabs button { min-height: 60px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.tabs button[aria-current="page"] { color: var(--accent); }
.app button:active { filter: brightness(.93); }

/* ---------- shared pieces ---------- */
h2.big { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: .95; letter-spacing: .01em; text-wrap: balance; }
h3.sec { margin: 4px 0 -6px; font-size: 1rem; }
.sub { margin: 0; color: var(--muted); }
.crumb { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; background: var(--step); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--muted); }
.chip b { color: var(--fg); font-size: 1.05rem; font-weight: 800; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--step); color: var(--muted); white-space: nowrap; }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.next { background: var(--accent); color: var(--ink); }
.pill.prog { background: var(--soft); color: var(--accent); }
.pill.p-top { background: var(--accent); color: var(--ink); }
.pill.p-amrap { background: var(--hot); color: var(--ink); }
.btn { min-height: 52px; border-radius: 999px; padding: 0 20px; font-weight: 800; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.wide { width: 100%; }
.row2 { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.note { margin: 0; color: var(--muted); font-style: italic; }
.banner { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--ok); background: var(--card); color: var(--ok); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.info { font-size: .9rem; color: var(--muted); background: var(--step); border-radius: 12px; padding: 10px 12px; margin: 0; }

/* ---------- who's training ---------- */
.who-screen { justify-content: center; gap: 20px; padding-block: 48px; }
.who-screen h2 { text-align: center; }
.who-pick { display: grid; gap: 12px; }
.who-pick button { min-height: 88px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); display: flex; align-items: center; gap: 14px; padding: 0 18px; text-align: left; }
.who-pick .avatar { width: 52px; height: 52px; font-size: 1.3rem; color: var(--ink); }
.who-pick b { font-size: 1.3rem; display: block; }
.who-pick span { color: var(--muted); font-size: .9rem; }

/* ---------- home ---------- */
.next-card { display: flex; flex-direction: column; gap: 12px; }
.next-card .label { font-size: .88rem; color: var(--muted); }
.next-btn { min-height: 76px; border-radius: 18px; border: 0; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; text-align: left; }
.next-btn b { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; display: block; }
.next-btn span { font-weight: 600; font-size: .9rem; }
.week-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.week-strip button { min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.week-strip b { font-size: .95rem; }
.week-strip span { font-size: .72rem; color: var(--muted); }
.week-strip .is-done { border-color: var(--ok); }
.week-strip .is-done span { color: var(--ok); font-weight: 700; }
.week-strip .is-next { border: 2px solid var(--accent); }
.mini { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.mini .big-n { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }

/* ---------- program ---------- */
.week { display: flex; flex-direction: column; gap: 8px; }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.week-head b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.day-row { min-height: 60px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.day-row b { display: block; }
.day-row span.s { font-size: .85rem; color: var(--muted); }
.day-row.is-next { border: 2px solid var(--accent); }
.collapsed { color: var(--muted); font-size: .9rem; margin: -4px 0 0; }

/* ---------- day ---------- */
.block { width: 100%; min-height: 72px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.block .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--step); display: grid; place-items: center; color: var(--muted); }
.block b { display: block; line-height: 1.25; }
.block span.s { font-size: .85rem; color: var(--muted); }
.block.is-done { border-color: var(--ok); }
.block.is-done .ic { background: var(--ok-soft); color: var(--ok); }

/* ---------- exercise / superset ---------- */
.swap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.swap select { min-height: 44px; font-size: 16px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); max-width: 100%; min-width: 0; }
.swapped { font-size: .82rem; font-weight: 700; color: var(--accent); }
.prev strong { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { min-height: 44px; border: 0; background: transparent; border-radius: 999px; font-weight: 700; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.sets { display: flex; flex-direction: column; gap: 12px; }
.set { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.set.done { border-color: var(--ok); }
.set-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.set-head .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.set-no { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; }
.tgt { grid-column: 1 / -1; margin-top: -6px; font-size: .92rem; color: var(--muted); }
.part { grid-column: 1 / -1; font-weight: 700; margin: 2px 0 -6px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { text-align: center; font-size: .9rem; font-weight: 700; color: var(--muted); }
.fld input { width: 100%; min-width: 0; height: 56px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--step); color: var(--fg); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fld input::placeholder { color: var(--muted); opacity: .65; font-weight: 600; }
.fld input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent); }
.vol { grid-column: 2; justify-self: end; font-size: .9rem; color: var(--muted); }
.vol-l { grid-column: 1; font-size: .9rem; color: var(--muted); }
.log { min-height: 48px; border-radius: 999px; padding: 0 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; border: 2px solid var(--accent); background: transparent; color: var(--accent); }
.set.done .log { background: var(--ok); border-color: var(--ok); color: var(--ink); }
.pr { font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 4px; background: var(--ok); color: var(--ink); margin-left: 6px; }
.add { align-self: flex-start; min-height: 44px; border: 1px dashed var(--line); background: transparent; border-radius: 12px; padding: 0 14px; font-weight: 600; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; color: var(--muted); }
.foot b { color: var(--fg); }
.saved { display: inline-flex; align-items: center; gap: 6px; }
.saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.saved.sending::before { background: var(--muted); }

/* ---------- circuit ---------- */
.moves { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.moves li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.moves li:last-child { border-bottom: 0; }
.moves b { font-variant-numeric: tabular-nums; }
.result { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.result .plus { font-family: var(--f-display); font-size: 2rem; line-height: 56px; color: var(--muted); }

/* ---------- stats, charts ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile .k { font-size: .85rem; color: var(--muted); }
.tile .v { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.tile .v small { font-family: var(--f-body); font-size: .9rem; font-weight: 700; color: var(--muted); margin-left: 3px; }
.tile .d { font-size: .82rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .82rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.good { color: var(--ok); } .status.warn { color: var(--warn); }
.chart-card { position: relative; }
.chart-card h3 { margin: 0 0 2px; font-size: 1rem; }
.chart-card p.c { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 12px var(--f-body); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--chart); }
.chart .bar.hl { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; pointer-events: none; background: var(--fg); color: var(--bg); font-size: .85rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); }
.zones { display: flex; flex-direction: column; gap: 8px; }
.zone { display: grid; grid-template-columns: 58px 1fr 104px; align-items: center; gap: 10px; font-size: .88rem; }
.zone .track { height: 18px; background: var(--step); border-radius: 4px; overflow: hidden; }
.zone .fill { height: 100%; border-radius: 0 4px 4px 0; }
.zone .m { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.zone .m b { color: var(--fg); }
.table-wrap { overflow-x: auto; }
table.splits { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.splits th { text-align: right; font-weight: 700; color: var(--muted); font-size: .8rem; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.splits td { text-align: right; padding: 8px; border-bottom: 1px solid var(--line); }
.splits th:first-child, .splits td:first-child { text-align: left; }
.act { width: 100%; min-height: 64px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.act:last-child { border-bottom: 0; }
.act .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--step); display: grid; place-items: center; color: var(--muted); }
.act span.s { display: block; font-size: .85rem; color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.switch button { width: 52px; height: 32px; border-radius: 999px; border: 0; background: var(--line); position: relative; padding: 0; }
.switch button::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); transition: transform .15s ease-out; }
.switch button[aria-checked="true"] { background: var(--ok); }
.switch button[aria-checked="true"]::after { transform: translateX(20px); }
textarea.notes { width: 100%; min-height: 96px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 10px 12px; font-size: 16px; resize: vertical; }
.sum-list { display: flex; flex-direction: column; }
.sum-list div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-list div:last-child { border-bottom: 0; }
.sum-list span { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .app button { transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .switch button::after { transition: none; }
}

/* ---------- app shell extras (not in the prototype) ---------- */
.top .spacer { width: 44px; flex: none; }
.empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty h3 { margin: 0; font-size: 1.05rem; }
.empty p { margin: 0; color: var(--muted); }
.preview-flag { font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.error { color: var(--hot); font-weight: 700; margin: 0; }
a.btn { text-decoration: none; color: var(--fg); }
a.btn.primary { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* Home's "Up next" and day tiles are links (they open a day); look like the prototype's buttons. */
a.next-btn, .week-strip a { text-decoration: none; color: inherit; }
a.next-btn { color: var(--ink); }
.week-strip a { min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; text-align: center; }
.week-strip a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.who-screen { display: flex; flex-direction: column; }

/* ---------- programs: list and upload (step 5) ---------- */
.row2.one { grid-template-columns: 1fr; }
.prog-list { display: flex; flex-direction: column; padding-block: 4px; }
.prog-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prog-row:last-child { border-bottom: 0; }
.prog-row b { display: block; }
.prog-row .s, .ol-day .s, .ol-week summary .s { font-size: .85rem; color: var(--muted); }
.prog-row .btn { min-height: 44px; padding: 0 14px; flex: none; }
.file-pick { position: relative; overflow: hidden; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.banner.bad { border-color: var(--hot); color: var(--hot); }
.check h3 { margin: 0 0 6px; font-size: 1rem; }
.check ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.check.bad { border-color: var(--hot); }
.check.bad h3 { color: var(--hot); }
.check.warn h3 { color: var(--warn); }
.ol-week { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; }
.ol-week summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-weight: 800; list-style: none; }
.ol-week summary::-webkit-details-marker { display: none; }
.ol-week summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.ol-week[open] summary::after { content: "–"; }
.ol-week summary .s { margin-left: auto; font-weight: 400; }
.ol-day { padding: 8px 0; border-top: 1px solid var(--line); }
.ol-day b { display: block; }
.ol-week[open] { padding-bottom: 6px; }

/* ---------- program overview and day (step 6) ---------- */
button.week-head { width: 100%; border: 0; background: transparent; padding: 0; text-align: left; color: inherit; }
a.day-row, a.block { text-decoration: none; color: inherit; }
.prog-row a { color: inherit; text-decoration: none; }
.blocks { display: flex; flex-direction: column; gap: 10px; }
.blocks h3.sec { margin: 8px 0 0; }
.blocks h3.sec:first-child { margin-top: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; margin-right: 2px; }
.block > svg.i { color: var(--muted); }

/* ---------- exercise screen extras (step 7) ---------- */
.set.one .fld { grid-column: 1 / -1; }
.saved.error { color: var(--hot); font-weight: 700; }
.saved.error::before { background: var(--hot); }
.prev b { color: var(--fg); }

/* ---------- superset, run and activity (step 8) ---------- */
.fld.wide { grid-column: 1 / -1; }
.set .part .pill { margin-left: 6px; vertical-align: middle; }

/* ---------- circuit / MetCon (step 9) ---------- */
.result.one { grid-template-columns: 1fr; }
.card.logged { border-color: var(--ok); }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; font-size: .95rem; }
.check-row input { width: 22px; height: 22px; accent-color: var(--accent); }
.intervals { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.intervals .fld input { height: 48px; font-size: 22px; }
.intervals .fld label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld input.text-in { height: 52px; font-size: 18px; font-weight: 600; text-align: left; padding: 0 12px; }
.splits-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; }
.splits-box summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; list-style: none; }
.splits-box summary::-webkit-details-marker { display: none; }
.splits-box summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.splits-box[open] summary::after { content: "–"; }
.splits-box[open] { padding-bottom: 14px; }

/* ---------- offline queue (step 10) ---------- */
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--muted); text-decoration: none; pointer-events: none; }
.sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sync.waiting { color: var(--warn); }
.sync.waiting::before { background: var(--warn); }
.sync.bad { color: var(--hot); }
.sync.signin { pointer-events: auto; text-decoration: underline; }
.sync.bad::before { background: var(--hot); }

/* ---------- finish + summary (step 11) ---------- */
.feel { display: flex; flex-direction: column; gap: 8px; }
.feel-l { font-weight: 700; font-size: .95rem; }
.feel-l .sub { font-weight: 400; font-size: .85rem; }
.feel-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.feel-row button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-variant-numeric: tabular-nums; padding: 0; }
.feel-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
