/* ============================================================================
   Recomp — clean & calm. Light, paper-like, one sage accent, real checkboxes.
   A planner you tick off. No blur, no gradients.
   ============================================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('/vendor/fonts/fraunces.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f2ec;           /* warm-neutral off-white (deliberately not cream) */
  --surface: #ffffff;
  --surface-2: #faf9f4;
  --ink: #22261f;             /* warm near-black, faint green cast */
  --ink-dim: #5b615a;
  --ink-faint: #9a9f96;
  --line: #e6e3da;
  --line-soft: #eeece4;
  --ring-track: #e4e1d7;

  --accent: #4c9a82;          /* calm sage — done / on-track */
  --accent-strong: #3b876f;
  --accent-tint: #e8f2ec;
  --warn: #c47a33;            /* amber — pace / attention */
  --warn-tint: #f7ede0;
  --danger: #c8382f;          /* red — destructive actions only */
  --danger-tint: #faeae8;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --display: 'Fraunces', ui-serif, Georgia, serif;

  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(30, 34, 28, 0.04), 0 4px 12px -8px rgba(30, 34, 28, 0.10);
  --shadow-md: 0 1px 2px rgba(30, 34, 28, 0.04), 0 14px 34px -16px rgba(30, 34, 28, 0.16);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
button { font-family: inherit; }

/* ---- Layout --------------------------------------------------------------- */
.app { display: none; }
.app.ready { display: block; }
.viewport { max-width: 640px; margin: 0 auto; padding: calc(var(--safe-t) + 10px) 16px calc(96px + var(--safe-b)); }

.appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px 8px;
}
.appbar h1 { font-family: var(--display); font-optical-sizing: auto; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.appbar .sub { font-size: 13px; color: var(--ink-faint); margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.gear {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-dim); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s, transform 0.2s var(--ease);
}
.gear:hover { background: var(--surface-2); }
.gear:active { transform: scale(0.94); }

.view { display: none; }
.view.active { display: block; }
/* gentle staggered entrance — the one orchestrated motion on the page */
.view.active > .weekbar,
.view.active .stack > * { animation: rise 0.45s var(--ease) both; }
.view.active .stack > *:nth-child(2) { animation-delay: 0.05s; }
.view.active .stack > *:nth-child(3) { animation-delay: 0.10s; }
.view.active .stack > *:nth-child(4) { animation-delay: 0.15s; }
.view.active .stack > *:nth-child(5) { animation-delay: 0.20s; }
.view.active .stack > *:nth-child(n+6) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.stack > * + * { margin-top: 14px; }

/* ---- Card + section ------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid rgba(30, 34, 28, 0.05); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.card.pad-lg { padding: 24px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 10px;
}
.card + .card { margin-top: 14px; }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.empty { color: var(--ink-faint); font-size: 14px; text-align: center; padding: 18px 0; }

/* ---- Week strip ----------------------------------------------------------- */
.weekbar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.weekbar .nav {
  width: 32px; height: 56px; flex: none; border: none; background: none; cursor: pointer;
  color: var(--ink-faint); font-size: 18px; border-radius: var(--r-sm);
}
.weekbar .nav:hover { background: var(--line-soft); color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; flex: 1; }
.daychip {
  border: none; background: none; cursor: pointer; border-radius: 15px;
  padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: background 0.15s;
}
.daychip:hover { background: var(--line-soft); }
.daychip .dow { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-faint); text-transform: uppercase; }
/* progress ring: fills sage by completion fraction (--p) */
.ring {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--ring-track) 0);
  transition: background 0.6s var(--ease);
}
.ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--paper); transition: background 0.2s; }
.daychip:hover .ring::before { background: var(--line-soft); }
.dom {
  position: relative; z-index: 1; font-family: var(--display); font-optical-sizing: auto;
  font-size: 15px; font-weight: 560; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1;
}
.daychip.today .dom { color: var(--accent-strong); }
.daychip.selected .ring::before { background: var(--accent-strong); }
.daychip.selected .dom { color: #fff; }
.daychip.selected.today .dom { color: #fff; }
.tdot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tdot.empty { background: transparent; }

/* ---- Day progress summary ------------------------------------------------- */
.day-progress { padding: 0 4px 2px; margin-bottom: 4px; }
.dp-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dp-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.6s var(--ease); }
.dp-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--ink-dim); }
.dp-meta .streak { font-weight: 600; color: var(--accent-strong); background: var(--accent-tint); padding: 3px 10px; border-radius: 99px; font-size: 12px; }
.dp-meta .dp-alldone { color: var(--accent-strong); font-weight: 600; }

/* ---- Checkable rows (the core interaction) -------------------------------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 13px; padding: 13px 2px; cursor: pointer;
  border-top: 1px solid var(--line-soft);
}
.rows .row:first-child { border-top: none; }
.check {
  width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid var(--line);
  background: var(--surface); display: grid; place-items: center;
  transition: all 0.2s var(--ease);
}
.check svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3.5; fill: none;
  opacity: 0; transform: scale(0.5); transition: all 0.2s var(--ease); }
.row.done .check { background: var(--accent); border-color: var(--accent); }
.row.done .check svg { opacity: 1; transform: scale(1); }
.row .body { flex: 1; min-width: 0; }
.row .title { display: block; font-size: 15px; font-weight: 500; }
.row .meta { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.row.done .title { color: var(--ink-dim); }
.row .chev {
  border: none; background: none; color: var(--ink-faint); font-size: 15px; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; flex: none;
}
.row .chev:hover { background: var(--line-soft); color: var(--ink); }
.row .scalepick { display: flex; gap: 5px; flex: none; }
.row .scalepick button {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-dim); font-weight: 600; cursor: pointer;
}
.row .scalepick button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pill {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-strong); letter-spacing: 0.02em;
}
.pill.rest { background: var(--line-soft); color: var(--ink-faint); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 18px; transition: background 0.18s, transform 0.15s var(--ease), border-color 0.18s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px var(--accent); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.full { width: 100%; text-align: center; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.ghost { background: none; border-color: transparent; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---- Hero stat (Progress) ------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.stat .v { font-family: var(--display); font-optical-sizing: auto; font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; }
.stat .v small { font-family: var(--font); font-size: 12px; color: var(--ink-dim); font-weight: 600; }
.bignum { font-family: var(--display); font-optical-sizing: auto; font-size: 52px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.bignum small { font-family: var(--font); font-size: 16px; color: var(--ink-dim); font-weight: 600; letter-spacing: 0; }

.flag { display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); }
.flag.on_track { background: var(--accent-tint); }
.flag.too_fast, .flag.stalled { background: var(--warn-tint); }
.flag.unknown { background: var(--surface-2); }
.flag .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.flag.on_track .dot { background: var(--accent); }
.flag.too_fast .dot, .flag.stalled .dot { background: var(--warn); }
.flag.unknown .dot { background: var(--ink-faint); }
.flag .msg { font-size: 13.5px; line-height: 1.45; }
.flag .msg b { display: block; margin-bottom: 1px; }

/* ---- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 5px; }
.input, select.input {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hint { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }

/* day-of-week multi-toggle (settings) */
.dow-pick { display: flex; gap: 6px; }
.dow-pick button {
  flex: 1; padding: 9px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-dim); font-weight: 600; font-size: 13px; cursor: pointer;
}
.dow-pick button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* segmented control (Home / At IKEA) */
.seg { display: inline-flex; background: var(--line-soft); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: none; background: none; cursor: pointer; padding: 8px 18px; border-radius: 999px;
  font-family: var(--font); font-weight: 600; font-size: 13.5px; color: var(--ink-dim);
  transition: color 0.2s, background 0.25s var(--ease), box-shadow 0.25s; }
.seg button.on { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.seg button:active { transform: scale(0.97); }
.seg-full { display: flex; width: 100%; }
.seg-full button { flex: 1; text-align: center; padding: 11px 0; font-size: 14.5px; }
.seg-sm { padding: 2px; }
.seg-sm button { padding: 5px 13px; font-size: 12px; }

/* ---- Table (history) ------------------------------------------------------ */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-faint); padding: 7px 4px; font-weight: 600; }
.tbl td { padding: 10px 4px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.tbl tr td:last-child { text-align: right; }
.del { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 15px; }
.del:hover { color: var(--warn); }
.chart-wrap { position: relative; height: 240px; margin: 2px 0 12px; }

/* ---- Guide (rendered markdown, light) ------------------------------------- */
.guide { padding: 22px; }
.guide h1 { font-family: var(--display); font-optical-sizing: auto; font-size: 27px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.guide h2 { font-family: var(--display); font-optical-sizing: auto; font-size: 21px; font-weight: 600; margin: 26px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); letter-spacing: -0.01em; }
.guide h3 { font-size: 14.5px; margin: 16px 0 5px; color: var(--accent-strong); }
.guide p, .guide li { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.guide strong { color: var(--ink); }
.guide ul { padding-left: 20px; }
.guide li { margin: 3px 0; }
.guide hr { border: none; }
.guide table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; display: block; overflow-x: auto; }
.guide th, .guide td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line-soft); }
.guide th { color: var(--ink-faint); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
.guide code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 13px; }

/* accordion (exercises in guide) */
.acc { border-top: 1px solid var(--line-soft); }
.acc:first-of-type { border-top: none; }
.acc summary { list-style: none; cursor: pointer; padding: 12px 2px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .nm { font-weight: 500; font-size: 15px; }
.acc summary .tg { font-size: 12px; color: var(--ink-faint); }
.acc .cue { padding: 0 2px 14px; color: var(--ink-dim); font-size: 14px; line-height: 1.55; }
.acc .cue a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.acc .cue a:hover { text-decoration: underline; }
.wtag { font-size: 10px; font-weight: 700; color: var(--accent-strong); background: var(--accent-tint);
  padding: 2px 7px; border-radius: 999px; margin-right: 8px; }

/* ---- Recipe cards (Meals) ------------------------------------------------- */
.recipe-card { padding: 16px 18px; }
.recipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.recipe-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.slot-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.rname { font-family: var(--display); font-optical-sizing: auto; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.roll { border: 1px solid var(--line); background: var(--surface); color: var(--ink-dim);
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer; flex: none; font-size: 15px;
  transition: transform 0.45s var(--ease), color 0.2s, border-color 0.2s; }
.roll:hover { color: var(--accent-strong); border-color: var(--accent); }
.roll:active { transform: scale(0.9); }
.roll.spin { transform: rotate(360deg); }
.recipe-actions { display: flex; gap: 6px; flex: none; }
.hide-btn { font-size: 13px; }
.hide-btn:hover { color: var(--warn); border-color: var(--warn); }
.roll-sm { width: 28px; height: 28px; font-size: 13px; }
.meal-row .title { text-transform: none; }
.meal-row .meta { text-transform: capitalize; }
.recipe-inner { margin-top: 12px; }
.rmeta { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-strong); background: var(--accent-tint); padding: 3px 9px; border-radius: 999px; }
.ringredients { font-size: 14px; color: var(--ink); margin: 10px 0; line-height: 1.5; }
.ringredients .cue { color: var(--accent-strong); font-size: 12px; }
.rsteps { margin: 0; padding-left: 20px; }
.rsteps li { font-size: 14px; color: var(--ink-dim); line-height: 1.5; margin: 4px 0; }

/* ---- Bottom tab bar ------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center; gap: 4px;
  padding: 8px 8px calc(8px + var(--safe-b));
  background: rgba(246,245,241,0.92);
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  flex: 1; max-width: 96px; min-width: 0;
  background: none; border: none; cursor: pointer; color: var(--ink-faint);
  padding: 6px 4px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; transition: color 0.2s;
}
.tabbar button .ico { font-size: 19px; line-height: 1; transition: transform 0.25s var(--ease); }
.tabbar button.active { color: var(--accent-strong); }
.tabbar button.active .ico { transform: translateY(-1px) scale(1.08); }

/* ---- Login ---------------------------------------------------------------- */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 340px; padding: 30px 26px; text-align: center; }
.login-card .mark { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; }
.login-card h1 { font-family: var(--display); font-optical-sizing: auto; font-size: 30px; font-weight: 600; margin: 2px 0 4px; letter-spacing: -0.02em; }
.login-card p { color: var(--ink-faint); font-size: 14px; margin: 0 0 20px; }
.login-err { color: var(--warn); font-size: 13px; min-height: 18px; margin-top: 9px; }
.login-screen { overflow-y: auto; }

/* ---- Onboarding ----------------------------------------------------------- */
.onboard-card { width: 100%; max-width: 440px; padding: 30px 26px; text-align: center; }
.onboard-card .mark { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; }
.onboard-card h1 { font-family: var(--display); font-optical-sizing: auto; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0 4px; }
.onboard-card p { color: var(--ink-faint); font-size: 14px; margin: 0 0 20px; line-height: 1.45; }
.onboard-card .field, .onboard-card .field label { text-align: left; }
.onboard-preview { text-align: left; font-size: 13px; color: var(--ink-dim); background: var(--accent-tint); border-radius: var(--r-sm); padding: 11px 13px; margin: 6px 0 16px; line-height: 1.5; }
.onboard-preview:empty { display: none; }
.onboard-preview b { color: var(--ink); }

/* ---- Sheet + toast -------------------------------------------------------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(31,36,33,0.32);
  display: none; align-items: flex-end; justify-content: center; }
.sheet-backdrop.open { display: flex; animation: fade 0.25s ease both; }
.sheet { width: 100%; max-width: 560px; margin: 0 8px calc(8px + var(--safe-b)); background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-height: 88vh; overflow-y: auto;
  animation: up 0.35s var(--ease) both; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet h2 { font-family: var(--display); font-optical-sizing: auto; font-weight: 600; margin: 0 0 16px; font-size: 23px; letter-spacing: -0.01em; }
.sheet .actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet .actions .btn { flex: 1; text-align: center; }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } }

.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%) translateY(16px);
  z-index: 200; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.35s var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Pantry --------------------------------------------------------------- */
.pantry-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-faint); margin: 14px 2px 4px; }
.pantry-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 4px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.pantry-name { font-size: 14.5px; font-weight: 500; }
.pantry-cue { font-size: 12px; color: var(--ink-faint); }
.pantry-row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; cursor: pointer; }
.staple-dot { color: var(--accent); font-weight: 800; }

/* ---- Danger / reset ------------------------------------------------------- */
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 8px 18px -10px var(--danger); }
.btn.danger:hover { background: #a92f27; }
.danger-outline { color: var(--danger); border-color: rgba(200, 56, 47, 0.35); background: none; }
.danger-outline:hover { background: var(--danger-tint); border-color: var(--danger); }
.danger-box { background: var(--danger-tint); border: 1px solid rgba(200, 56, 47, 0.28); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 16px; }
.danger-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--danger); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.danger-box h2 { color: var(--danger); margin: 0 0 8px; font-size: 21px; }
.danger-box p { color: var(--ink-dim); font-size: 14px; line-height: 1.55; margin: 0; }
.danger-box p b { color: var(--ink); }
.reset-err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 6px 0 0; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
