/* GuyDiets — one family (Archivo, variable width), one loud element: the nutrition-facts label. */
:root {
  --paper: #F3F5F2;
  --surface: #FFFFFF;
  --ink: #22302A;
  --steel: #5A6762;
  --line: #CBD3CE;
  --field: #2E6B47;
  --field-ink: #FFFFFF;
  --plate: #F5C518;
  --plate-ink: #22302A;
  --warn-bg: #FFF4D6;
  --warn-ink: #6A4A00;
  --err: #B3261E;
  --label-bg: #FFFFFF;
  --label-ink: #000000;
  --radius: 6px;
  --gutter: 16px;
  --measure: 68ch;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17201C;
    --surface: #1F2A25;
    --ink: #E6ECE8;
    --steel: #A3B0AA;
    --line: #34433C;
    --field: #7CC79A;
    --field-ink: #10241A;
    --warn-bg: #3A3016;
    --warn-ink: #F5DE9A;
    --err: #FF8A80;
  }
}
:root[data-theme="dark"] {
  --paper: #17201C; --surface: #1F2A25; --ink: #E6ECE8; --steel: #A3B0AA;
  --line: #34433C; --field: #7CC79A; --field-ink: #10241A; --warn-bg: #3A3016; --warn-ink: #F5DE9A; --err: #FF8A80;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--field); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plate); color: var(--plate-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Type scale (1.25 ratio). Headlines use the condensed width for punch. */
h1, h2, h3 { line-height: 1.08; margin: 0 0 0.5em; font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--steel); max-width: 56ch; }
.muted { color: var(--steel); }
small, .small { font-size: 0.875rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font-weight: 900; font-size: 1.5rem; font-variation-settings: "wdth" 62; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.logo span { color: var(--field); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--plate); }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 700; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 6px 12px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; z-index: 5; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-head { position: relative; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 0; border-radius: var(--radius); padding: 14px 22px; cursor: pointer; line-height: 1.2; }
.btn-plate { background: var(--plate); color: var(--plate-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18); }
.btn-plate:hover { filter: brightness(1.05); }
.btn-field { background: var(--field); color: var(--field-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding: 40px 0; }

/* Hero: the calculator is the hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--steel); font-size: 0.85rem; }
input[type="number"], input[type="email"], input[type="text"], select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 12px; min-height: 48px;
}
input:focus, select:focus { border-color: var(--field); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--field) 25%, transparent); }
.pair { display: flex; gap: 8px; }
.pair > * { flex: 1; min-width: 0; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; margin: 0; text-align: center; padding: 11px 6px; cursor: pointer; font-weight: 600; font-size: 0.95rem; border-left: 1px solid var(--line); }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--plate); outline-offset: -3px; }
.field-error { color: var(--err); font-size: 0.875rem; margin-top: 4px; min-height: 1.2em; }

/* ===== The signature element: a nutrition-facts label ===== */
.nf {
  background: var(--label-bg); color: var(--label-ink);
  border: 1.5px solid #000; padding: 6px 10px 10px;
  font-variation-settings: "wdth" 100; width: 100%; max-width: 380px;
  font-size: 0.95rem; line-height: 1.3;
}
.nf-title { font-weight: 900; font-variation-settings: "wdth" 62; font-size: 2.6rem; line-height: 1; margin: 0; letter-spacing: -0.01em; }
.nf-sub { padding: 4px 0 2px; border-bottom: 1px solid #000; }
.nf-bar10 { border-top: 10px solid #000; }
.nf-bar5 { border-top: 5px solid #000; }
.nf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid #000; padding: 3px 0; }
.nf-row:first-child { border-top: 0; }
.nf-row.indent { padding-left: 1.2em; }
.nf-cal { display: flex; justify-content: space-between; align-items: end; padding: 2px 0 4px; }
.nf-cal .k { font-weight: 900; font-size: 1.8rem; font-variation-settings: "wdth" 72; }
.nf-cal .v { font-weight: 900; font-size: 3rem; line-height: 0.95; font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; }
.nf-dvhead { text-align: right; font-weight: 800; font-size: 0.85rem; padding: 3px 0; }
.nf b { font-weight: 800; }
.nf .num { font-variant-numeric: tabular-nums; }
.nf-foot { font-size: 0.78rem; padding-top: 6px; line-height: 1.35; }
.nf-flash .v, .nf-flash .num { animation: nf-tick 0.45s ease-out; }
@keyframes nf-tick { from { background: var(--plate); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .nf-flash .v, .nf-flash .num { animation: none; } }

/* Notices */
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); padding: 12px 14px; font-size: 0.95rem; }
.note:empty { display: none; }

/* Tool directory (not identical cards: a ruled list) */
.tool-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tool-list li { border-bottom: 1px solid var(--line); }
.tool-list a, .tool-list .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 20px 0; text-decoration: none; color: var(--ink); }
.tool-list a:hover .tool-name { color: var(--field); }
.tool-name { font-size: 1.55rem; font-weight: 800; font-variation-settings: "wdth" 72; line-height: 1.1; }
.tool-desc { grid-column: 1; color: var(--steel); }
.tool-go { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; color: var(--field); white-space: nowrap; }

/* Plan promo band */
.band { background: var(--ink); color: var(--paper); }
.band a:not(.btn) { color: var(--plate); }
.band .lede { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .band-grid { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.85em; width: 12px; height: 7px; border-left: 3px solid var(--plate); border-bottom: 3px solid var(--plate); transform: rotate(-45deg); }

/* Email capture */
.capture { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.capture-row { display: flex; gap: 10px; flex-wrap: wrap; }
.capture-row input { flex: 1 1 220px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 10px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--field); }
.form-msg.bad { color: var(--err); }

/* Articles */
.article { padding: 48px 0 64px; }
.article .wrap { max-width: 760px; }
.prose { max-width: var(--measure); font-size: 1.1rem; line-height: 1.65; }
.prose h2 { margin-top: 1.8em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.98rem; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }
.byline { color: var(--steel); font-size: 0.95rem; margin-bottom: 2em; }
.callout { border-left: 5px solid var(--plate); padding: 4px 0 4px 16px; margin: 1.5em 0; }
.tool-inline { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 2em 0; }
.tool-inline p:last-child { margin: 0; }

/* Guide index */
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.guide-list li { border-bottom: 1px solid var(--line); padding: 22px 0; }
.guide-list a { font-size: 1.55rem; font-weight: 800; font-variation-settings: "wdth" 72; text-decoration: none; color: var(--ink); line-height: 1.15; }
.guide-list a:hover { color: var(--field); }
.guide-list p { margin: 6px 0 0; color: var(--steel); }

/* Meal plan */
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.day-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; }
.day-tabs button { font: inherit; font-weight: 700; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px 14px; cursor: pointer; }
.day-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-tabs button .lock { font-size: 0.8em; margin-left: 4px; }
.meal { border-top: 1px solid var(--line); padding: 18px 0; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 20px; }
.meal:first-child { border-top: 2px solid var(--ink); }
.meal-slot { font-weight: 700; color: var(--steel); }
.meal-name { font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 80; margin: 0 0 6px; line-height: 1.2; }
.meal ul { margin: 0; padding-left: 1.1em; color: var(--ink); }
.meal-how { color: var(--steel); font-size: 0.95rem; margin: 8px 0 0; }
.meal-macros { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.95rem; }
.meal-macros b { font-size: 1.15rem; display: block; }
@media (max-width: 640px) {
  .meal { grid-template-columns: 1fr; }
  .meal-macros { text-align: left; white-space: normal; }
  .meal-macros b { display: inline; margin-right: 8px; }
}
.day-total { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 2px solid var(--ink); padding-top: 12px; font-variant-numeric: tabular-nums; }
.locked { position: relative; }
.locked .meals { filter: blur(6px); user-select: none; pointer-events: none; }
.unlock { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 16px; }
.unlock .capture { max-width: 460px; box-shadow: 0 10px 40px rgba(0,0,0,0.18); }
.grocery { columns: 2 260px; column-gap: 40px; }
.grocery section { break-inside: avoid; margin-bottom: 20px; }
.grocery h3 { font-size: 1.15rem; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.grocery ul { list-style: none; padding: 0; margin: 0; }
.grocery li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.grocery li span:last-child { color: var(--steel); white-space: nowrap; }

/* Chart (cut planner) */
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); }
.chart .tick { fill: var(--steel); font-size: 12px; }
.chart .line { fill: none; stroke: var(--field); stroke-width: 3; }
.chart .goal { stroke: var(--ink); stroke-dasharray: 4 4; }
.chart .dot { fill: var(--field); }

/* Two-column tool page */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; gap: 28px; } }
.result-col { position: sticky; top: 16px; }
@media (max-width: 860px) { .result-col { position: static; } }

.bf-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 14px; font-size: 0.8rem; }
.bf-scale div { padding: 8px 4px; background: var(--surface); border: 1px solid var(--line); text-align: center; line-height: 1.25; }
.bf-scale div.on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); margin-top: 0; padding: 40px 0 24px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 8px; }
.foot-grid nav a { color: var(--ink); text-decoration: none; }
.foot-grid nav a:hover { text-decoration: underline; }
.foot-grid p { color: var(--steel); max-width: 36ch; }
.fine { margin-top: 28px; font-size: 0.82rem; color: var(--steel); }
.fine p { max-width: 90ch; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Print the meal plan cleanly */
@media print {
  .site-head, .site-foot, .no-print, .day-tabs, .unlock { display: none !important; }
  .locked .meals { filter: none; }
  body { background: #fff; color: #000; }
}

/* Email card sitting on the dark band keeps normal ink colors */
.band .capture { color: var(--ink); }
.band .capture .muted { color: var(--steel); }

/* ================= Members' app ================= */
.app-head .head-row { min-height: 56px; }
.app-badge { font-weight: 800; font-size: 0.8rem; background: var(--plate); color: var(--plate-ink); border-radius: 4px; padding: 2px 8px; }
.app-wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.app-foot { padding: 0 0 96px; }
.app-foot .fine { margin-top: 0; }
.app-foot a { color: var(--steel); }
.app-intro { padding: 32px 0 20px; max-width: 640px; }
.app-h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; margin: 0 0 8px; }
.app-top { padding: 24px 0 18px; }
.app-top .muted { margin: 0; }
.app-kicker { margin: 0 0 4px; font-weight: 700; color: var(--field); font-size: 0.95rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.card-h { font-size: 1.45rem; margin: 0 0 10px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .meal:first-child { border-top: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wide { width: 100%; max-width: 380px; }
.btn-danger { background: transparent; color: var(--err); border: 2px solid var(--err); }
.link-btn { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--field); background: none; border: 0; padding: 8px 0 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
.today-grid aside { position: sticky; top: 16px; }
@media (max-width: 820px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-grid aside { position: static; order: -1; }
  .today-grid .nf { max-width: none; }
}

.weigh-row { display: flex; gap: 10px; align-items: center; }
.weigh-row input { max-width: 160px; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.weigh-row .unit { font-weight: 700; color: var(--steel); min-width: 1.6em; }
.weigh-meta { margin: 10px 0 0; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li.rest { padding: 12px 0; }
.check { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; flex: 1; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 28px; height: 28px; flex: none; border: 2px solid var(--ink); border-radius: 6px; display: grid; place-items: center; background: var(--surface); }
.check input:checked + .box { background: var(--field); border-color: var(--field); }
.check input:checked + .box::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--field-ink); border-bottom: 3px solid var(--field-ink); transform: translateY(-2px) rotate(-45deg); }
.check input:focus-visible + .box { outline: 3px solid var(--plate); outline-offset: 2px; }
.check input:disabled + .box { opacity: 0.85; }
.check.done > span:last-child { color: var(--steel); text-decoration: line-through; text-decoration-thickness: 1.5px; }
@media (prefers-reduced-motion: no-preference) { .check input:checked + .box { animation: pop 0.22s ease-out; } }
@keyframes pop { 50% { transform: scale(1.15); } }

.checkin { border: 2px solid var(--ink); }
.ci-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 12px; }
.ci-stats > div { display: flex; flex-direction: column; }
.ci-stats b { font-size: 1.35rem; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.ci-list { list-style: none; margin: 0; padding: 0; }
.ci-list li { border-top: 1px solid var(--line); padding: 12px 0; }
.ci-list li:first-child { border-top: 0; }
.ci-list p { margin: 4px 0 0; }
.ci-head { display: flex; justify-content: space-between; gap: 12px; }

.paywall { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 40px; }
@media (max-width: 760px) { .paywall { grid-template-columns: 1fr; } }
.ticks-ink li::before { border-color: var(--field); }

.chart-box { margin: 4px 0 8px; }
.chart .dot-soft { fill: color-mix(in srgb, var(--steel) 55%, transparent); }
.gro-item { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; font-size: 1rem; cursor: pointer; }
.gro-item input { width: 18px; height: 18px; accent-color: var(--field); }
.gro-item input:checked + span { text-decoration: line-through; color: var(--steel); }

.kit-seg { max-width: 420px; margin-bottom: 16px; }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.sched li:first-child { border-top: 0; }
.sched li.is-today b { color: var(--field); }
.ok { color: var(--field); font-weight: 700; }
.lift-table { width: 100%; border-collapse: collapse; }
.lift-table th, .lift-table td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lift-table th { border-bottom: 2px solid var(--ink); font-size: 0.9rem; }
.lift-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.check-inline { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--field); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px;
  background: var(--surface); border-top: 1.5px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px;
  color: var(--steel); text-decoration: none; font-size: 0.78rem; font-weight: 700; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--plate) 35%, transparent); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 30;
  background: var(--ink); color: var(--paper); font-weight: 700; padding: 10px 16px; border-radius: 8px; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
@media print { .tabbar, .app-head, .app-foot, .app-top, .toast { display: none !important; } .card { border: 0; padding: 0; } }
.card .form-msg:empty, .card .field-error:empty { display: none; }
.app-foot .fine p { max-width: none; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; font-size: 1.08rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 900; font-variation-settings: "wdth" 72; font-size: 1.2rem; }
