/* Prygenix Fit. Black-and-white Prygenix theme; light and dark follow the device. Mobile first. */

:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #ededed;
  --ink: #0a0a0a;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --line-strong: #b5b5b5;
  --on-ink: #ffffff;
  --done: #0a0a0a;
  --danger: #8a1c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --surface: #161616;
    --surface-2: #222222;
    --ink: #f2f2f2;
    --ink-2: #cfcfcf;
    --muted: #9a9a9a;
    --line: #2c2c2c;
    --line-strong: #474747;
    --on-ink: #0b0b0b;
    --done: #f2f2f2;
    --danger: #ff9a9a;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { opacity: .9; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------------------------------------------------------------- shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 1.05rem; }
.topnav { margin-left: auto; display: none; gap: 4px; }
.topnav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.topnav a.on { background: var(--ink); color: var(--on-ink); }
.topnav a:not(.on):hover { background: var(--surface-2); }
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--ink); }
.topbar-in > .iconbtn { margin-left: auto; }
@media (min-width: 760px) {
  .topbar-in > .iconbtn { margin-left: 4px; }
  .topnav { display: flex; }
  .tabbar { display: none; }
  main { padding-bottom: 48px; }
}
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- building blocks */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.chart .axis text, .chart .grid line { pointer-events: none; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card.ink .muted { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card.ink .eyebrow { color: color-mix(in srgb, var(--on-ink) 60%, transparent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-inline: 10px; }
.btn.quiet:hover { background: var(--surface-2); filter: none; }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn.big { min-height: 54px; font-size: 1.05rem; }
.card.ink .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.card.ink .btn.ghost { background: transparent; color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 40%, transparent); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); flex: none; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:disabled { opacity: .3; cursor: default; background: transparent; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 1rem; font-weight: 450;
}
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .iconbtn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip.rest { color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }

#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 760px) { #toast { bottom: 28px; } }

/* ---------------------------------------------------------------- sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.signin-box { width: 100%; max-width: 400px; }
.signin-box .logo { width: 56px; height: 56px; margin-bottom: 18px; }
.signin-box h1 { font-size: 1.9rem; margin-bottom: 8px; }
.signin-box form { margin-top: 24px; }
.code-input { font-family: var(--mono); font-size: 1.5rem !important; letter-spacing: .4em; text-align: center; }
.devcode { font-family: var(--mono); background: var(--surface-2); padding: 8px 10px; border-radius: 8px; font-size: .85rem; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .93rem; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list .icon { margin-top: 2px; }

/* ---------------------------------------------------------------- today */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week div { text-align: center; padding: 8px 0; border-radius: 10px; font-size: .75rem; font-weight: 650; color: var(--muted); border: 1px solid var(--line); }
.week div b { display: block; font-size: 1rem; color: var(--ink); font-weight: 700; }
.week div.today { border-color: var(--ink); }
.week div.trained { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.week div.trained b { color: var(--on-ink); }
.ex-preview { list-style: none; margin: 0; padding: 0; }
.ex-preview li { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.ex-preview li:first-child { border-top: 0; }
.ex-preview .lbl { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ex-preview .sr-text { font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.ex-preview li.section { display: block; padding-top: 14px; }
.card.ink .ex-preview li { border-color: color-mix(in srgb, var(--on-ink) 18%, transparent); }
.card.ink .ex-preview .lbl, .card.ink .ex-preview .sr-text { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .v { font-size: 1.55rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .k { font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* ---------------------------------------------------------------- workout logger */
.wk-head { position: sticky; top: calc(51px + env(safe-area-inset-top)); z-index: 15; background: var(--bg); padding: 6px 0 12px; margin-bottom: 4px; }
.wk-progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.wk-progress i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .25s; }
.ex-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; }
.ex-card.complete { border-color: var(--line-strong); }
.ex-card.complete .ex-title h3::after { content: " ✓"; }
.ex-title { display: flex; align-items: flex-start; gap: 10px; }
.ex-title .lbl { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: 2px; min-width: 22px; }
.ex-title h3 a { text-decoration: none; }
.ex-title h3 a:hover { text-decoration: underline; }
.ex-meta { font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.ex-last { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin-top: 8px; color: var(--ink); }
.sets { margin-top: 10px; display: grid; gap: 6px; }
.set-row { display: grid; grid-template-columns: 30px 1fr 1fr 48px; gap: 8px; align-items: center; }
.set-row.head { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.set-row .n { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-align: center; }
.set-row input { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; min-height: 46px; padding: 6px; }
.set-row.done input { background: var(--surface-2); border-color: transparent; }
.check { width: 48px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.check .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.set-row.done .check { background: var(--done); border-color: var(--done); color: var(--on-ink); }
.ex-actions { display: flex; gap: 4px; margin-top: 6px; }
.section-head { margin: 18px 2px 2px; }

.timer { position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 40; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.timer .t { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 84px; }
.timer .lab { font-size: .8rem; opacity: .7; flex: 1; line-height: 1.25; }
.timer button { background: transparent; border: 1px solid color-mix(in srgb, var(--on-ink) 35%, transparent); color: var(--on-ink); border-radius: 999px; min-height: 38px; padding: 0 12px; font-weight: 650; cursor: pointer; }
.timer.over { animation: flash .6s ease-in-out 3; }
@keyframes flash { 50% { opacity: .55; } }
@media (min-width: 760px) { .timer { bottom: 24px; } }
.sync { font-size: .78rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; }
.sync.off i { background: transparent; border: 1.5px solid var(--muted); }

/* ---------------------------------------------------------------- history */
.list { display: flex; flex-direction: column; }
.list-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); text-decoration: none; }
.list-item:first-child { border-top: 0; }
.list-item:hover { background: var(--surface-2); border-radius: 10px; }
.datebox { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; line-height: 1.1; }
.datebox b { display: block; font-size: 1.15rem; }
.datebox span { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.month { margin: 18px 4px 6px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.data td { padding: 8px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }
table.data .r { text-align: right; }
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .series { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series.soft { stroke: var(--line-strong); stroke-width: 1.5; }
.chart .dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.chart .dot.soft { fill: var(--muted); }
.chart .bar { fill: var(--ink); }
.chart .bar.zero { fill: var(--line); }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--on-ink); font-size: .8rem; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s; z-index: 5; }
.tip.show { opacity: 1; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 2px; background: var(--ink); display: inline-block; }
.legend i.soft { background: var(--muted); height: 8px; width: 8px; border-radius: 50%; }

/* ---------------------------------------------------------------- plan editor */
.day-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.day-card summary::-webkit-details-marker { display: none; }
.day-card summary .chev { margin-left: auto; transition: transform .2s; }
.day-card[open] summary .chev { transform: rotate(90deg); }
.day-card .body { margin-top: 14px; display: grid; gap: 12px; }
.ex-edit { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.ex-edit .top { display: grid; grid-template-columns: 58px 1fr auto; gap: 8px; align-items: center; }
.ex-edit .mid { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 8px; }
.ex-edit .bot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-edit input, .ex-edit select { min-height: 40px; font-size: .92rem; padding: 7px 9px; }
.ex-edit .tools { display: flex; }
.mini-label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; }
.savebar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
@media (min-width: 760px) { .savebar { bottom: 16px; } }
.template-card h3 { margin-bottom: 4px; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: .92rem; }

/* ---------------------------------------------------------------- static pages */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.doc h1 { margin: 18px 0 8px; }
.doc h2 { margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }

/* ---------------------------------------------------------------- choices, setup wizard */
.choice-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice-grid.two { grid-template-columns: 1fr 1fr; } .choice-grid.three { grid-template-columns: repeat(3, 1fr); } }
.choice { text-align: left; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; color: var(--ink); }
.choice:hover { border-color: var(--ink-2); }
.choice .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; margin-top: 1px; }
.choice.radio .box { border-radius: 50%; }
.choice .box .icon { width: 16px; height: 16px; stroke-width: 3; opacity: 0; }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice.on .box { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choice.on .box .icon { opacity: 1; }
.choice b { display: block; font-weight: 650; }
.choice span.d { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.choice.big { padding: 18px; }
.choice.big b { font-size: 1.05rem; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.steps { display: flex; gap: 6px; margin: 2px 0 14px; }
.steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--surface-2); }
.steps i.on { background: var(--ink); }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 4px; }
.q { display: grid; gap: 8px; }
.q > .ql { font-weight: 650; font-size: .95rem; }
.q > .qh { font-size: .82rem; color: var(--muted); margin-top: -4px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.warn { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }

/* ---------------------------------------------------------------- diet */
.meal { display: grid; gap: 6px; }
.meal + .meal { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.meal ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem; display: grid; gap: 2px; }
.meal .spread .num { white-space: nowrap; }
.card.ink .meal + .meal { border-color: color-mix(in srgb, var(--on-ink) 18%, transparent); }

/* ---------------------------------------------------------------- people */
.invite-msg { white-space: pre-wrap; font-size: .9rem; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); }
.person { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person.off h3 { text-decoration: line-through; color: var(--muted); }

/* ---------------------------------------------------------------- food log */
.seg { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; margin: -6px 0 16px; }
.seg a { text-decoration: none; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.datenav { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.meter { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 8px; transition: width .3s; }
.card.ink .meter { background: color-mix(in srgb, var(--on-ink) 22%, transparent); }
.card.ink .meter i { background: var(--on-ink); }
.meter.over i { background-image: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--bg) 45%, transparent) 4px 8px); }
.big { font-size: 2rem; font-weight: 750; line-height: 1.1; }
.big span { font-size: .95rem; font-weight: 550; opacity: .75; }
.right { text-align: right; }
.stack.tight { gap: 6px; }
.results { display: grid; gap: 2px; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 10px 2px; cursor: pointer; color: var(--ink); }
.results > .result:first-of-type, .results > .eyebrow + .result { border-top: 0; }
button.result:hover { background: var(--surface-2); border-radius: 8px; }
.picker { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.picker input { max-width: 120px; }
.quick summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 4px 0; }
.quick form { margin-top: 10px; }
.slot-group + .slot-group { margin-top: 14px; }
.entry { display: grid; grid-template-columns: 1fr auto 40px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.slot-group .spread + .entry { border-top: 0; }
.linkcard { text-decoration: none; color: inherit; }
.linkcard:hover { border-color: var(--line-strong); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }
.chart .target { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.legend i.dash { background: none; border-top: 2px dashed var(--ink-2); height: 0; }
