:root {
  color-scheme: light;
  --page: #f6f5f2;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d68;
  --hairline: rgba(11, 11, 11, 0.10);
  --track: #e1e0d9;
  --accent: #2a78d6;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --reserve: #8a8880;
  --reserve-2: #c3c2b7;
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --critical: #d03b3b;
  --good-wash: rgba(12, 163, 12, 0.10);
  --warn-wash: rgba(250, 178, 25, 0.18);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #262624;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #9a988f;
    --hairline: rgba(255, 255, 255, 0.10);
    --track: #2c2c2a;
    --accent: #3987e5;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --reserve: #8f8d85;
    --reserve-2: #5a5953;
    --good-text: #0ca30c;
    --critical: #e66767;
    --good-wash: rgba(12, 163, 12, 0.16);
    --warn-wash: rgba(250, 178, 25, 0.14);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #262624;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #9a988f;
  --hairline: rgba(255, 255, 255, 0.10);
  --track: #2c2c2a;
  --accent: #3987e5;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --reserve: #8f8d85;
  --reserve-2: #5a5953;
  --good-text: #0ca30c;
  --critical: #e66767;
  --good-wash: rgba(12, 163, 12, 0.16);
  --warn-wash: rgba(250, 178, 25, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar h1 { font-size: 20px; margin: 0; letter-spacing: -0.01em; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  cursor: pointer;
}
.icon-btn:active { background: var(--surface-2); }

main {
  max-width: 560px; margin: 0 auto;
  padding: 4px 16px calc(96px + env(safe-area-inset-bottom));
  display: grid; gap: 12px;
}
.tab { display: grid; gap: 12px; }
.tab[hidden], .card[hidden] { display: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
}
.card h2 { font-size: 15px; margin: 0 0 12px; color: var(--ink-2); font-weight: 600; }

.hero-sub { margin: -6px 0 10px; font-size: 14px; color: var(--ink-2); }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-sub[hidden] { display: none; }

.expenses { display: grid; gap: 8px; }
.expenses:empty { display: none; }
.desc-field {
  display: flex; align-items: center; height: 44px; padding: 0 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px;
}
.desc-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.desc-field input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 16px;
}
.remove-btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.remove-btn:active { background: var(--surface-2); }
.add-btn {
  margin-top: 8px; height: 40px; padding: 0 4px; border: 0; background: transparent;
  color: var(--accent); font: inherit; font-weight: 600; cursor: pointer;
}
.expenses-total {
  display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--hairline); font-variant-numeric: tabular-nums;
}
.expenses-total[hidden], .expenses-note[hidden], .reserved[hidden] { display: none; }
.expenses-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.expenses-note .ico { font-size: 12px; }
.expenses-note.ok .ico { color: var(--good); }
.expenses-note.warn .ico { color: var(--warning); }
.reserved { margin: 0; font-size: 13px; color: var(--muted); }
.reserve-dot { background: var(--reserve-2); }

.hint { margin: -6px 0 12px; font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding: 20px 16px; }
.eyebrow { margin: 0; font-size: 14px; color: var(--ink-2); }
.hero-value { margin: 2px 0 10px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 4px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.status:empty { display: none; }
.status.good { background: var(--good-wash); }
.status.warn { background: var(--warn-wash); }
.status .ico { font-size: 13px; }
.status.good .ico { color: var(--good); }
.status.warn .ico { color: var(--warning); }

/* Stacked bars */
.bars { position: relative; display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; }
.bar-label { font-size: 13px; color: var(--muted); }
.bar {
  display: flex; gap: 2px; height: 22px;
  border-radius: 4px; overflow: hidden; background: var(--track);
}
.bar.thin { height: 12px; }
.chart-card { position: relative; }
.seg {
  border: 0; padding: 0; margin: 0; min-width: 0;
  cursor: pointer; transition: flex-grow .25s ease;
}
.seg:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tooltip {
  position: absolute; z-index: 3; pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 6px 10px; border-radius: 8px;
  background: var(--ink); color: var(--surface);
  font-size: 13px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.tooltip b { font-weight: 600; }

.ratio { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.ratio[hidden] { display: none; }
.ratio h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ratio-row { grid-template-columns: 72px 1fr 76px; }
.ratio-val { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.legend {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 13px; color: var(--ink-2);
}
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Pillars */
.pillars { display: grid; gap: 10px; }
.pillar {
  display: grid; gap: 8px;
  padding: 12px; border-radius: 12px; background: var(--surface-2);
}
.pillar-head { display: flex; align-items: center; gap: 8px; }
.pillar-name { font-weight: 600; flex: 1; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.pillar { cursor: pointer; text-align: left; }
.pillar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pillar[hidden] { display: none; }
.pillar-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.chevron { width: 8px; height: 8px; margin: 0 2px 0 2px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex: none; }
.meter-labels { display: flex; justify-content: space-between; margin-top: -4px; font-size: 11px; color: var(--muted); }
.pillar-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pillar-meta b { color: var(--ink); font-weight: 600; }

/* Deviation meter: track centered on target, marker shows current */
.meter { position: relative; height: 6px; border-radius: 3px; background: var(--track); }
.meter .band {
  position: absolute; top: 0; bottom: 0;
  background: color-mix(in srgb, var(--good) 22%, transparent);
  border-radius: 3px;
}
.meter .mid { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 2px; margin-left: -1px; background: var(--muted); border-radius: 1px; }
.meter .mark {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; border: 2px solid var(--surface-2);
  transition: left .25s ease;
}

.action { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.action .ico { font-size: 12px; }
.action.ok .ico { color: var(--good); }
.action.buy .ico, .action.sell .ico { color: var(--warning); }
.action.ok { color: var(--good-text); }

/* Money inputs */
.money-field {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px; height: 44px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px;
}
.money-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.currency { color: var(--muted); }
.money-field input, .suffix-field input, .settings-pillar input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 16px; /* evita lo zoom su iOS */
  font-variant-numeric: tabular-nums;
}
.money-field input { text-align: right; }

.split { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.split:empty { display: none; }
.split li {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-variant-numeric: tabular-nums;
}
.split li span:nth-child(2) { flex: 1; }
.split li b { font-weight: 600; }

.footnote { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Settings sheet */
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: 20px 20px 0 0;
  background: var(--surface); color: var(--ink);
}
.sheet[open] { display: flex; flex-direction: column; animation: up .22s ease-out; }
.sheet::backdrop { background: rgba(0, 0, 0, .4); }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
.sheet-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 8px; border-bottom: 1px solid var(--hairline); flex: none;
}
.sheet-head h2 { margin: 0; font-size: 17px; text-align: center; }
.sheet-head .text-btn { justify-self: start; padding: 0 10px; }
.sheet-head .text-btn.strong { justify-self: end; font-weight: 700; }
.sheet-head .text-btn:disabled { color: var(--muted); opacity: .6; cursor: not-allowed; }
.sheet-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  display: grid; gap: 22px; align-content: start;
}
.sheet-body[hidden] { display: none; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
fieldset > legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 4px; cursor: pointer;
}
.switch-row small { display: block; font-size: 13px; color: var(--muted); }
.switch-row input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  position: relative; width: 50px; height: 30px; border-radius: 15px;
  background: var(--track); cursor: pointer; transition: background .2s;
}
.switch-row input::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.switch-row input:checked { background: var(--accent); }
.switch-row input:checked::after { transform: translateX(20px); }
.switch-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.presets { display: grid; gap: 8px; }
.preset {
  display: grid; gap: 6px; text-align: left;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--surface-2); color: var(--ink);
  font: inherit; cursor: pointer;
}
.preset[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.preset-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.mini-bar[hidden] { display: none; }
.mini-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.mini-bar span { flex-basis: 0; }
.preset-pcts { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.age-rule {
  display: grid; gap: 8px; margin-top: 8px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--surface-2);
}
.age-rule-row { display: flex; gap: 8px; }
.suffix-field.age-field { flex: 1; width: auto; background: var(--surface); }
.age-rule .secondary-btn { padding: 0 18px; background: var(--surface); }
.age-rule .preset-pcts { margin: 0; }
.secondary-btn:disabled { opacity: .45; cursor: not-allowed; }
.preset-note { margin: 2px 0 0; }

#settingsPillars { display: grid; gap: 8px; }
.settings-pillar {
  display: grid; grid-template-columns: 10px 1fr 96px; align-items: center; gap: 10px;
}
.settings-pillar .name, .suffix-field {
  height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 4px;
}
.settings-pillar .pct { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hairline); }
.settings-pillar .pct input { text-align: right; }
.settings-pillar .pct span { color: var(--muted); }
.settings-pillar :focus-within { border-color: var(--accent); }
.sum { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.sum.bad { color: var(--critical); }
.sum.ok { color: var(--good-text); }

.row-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
fieldset .hint { margin: 0; }
.suffix-field { width: 160px; flex: none; }
.suffix-field input { text-align: right; }
.suffix-field span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.primary-btn, .secondary-btn, .danger-btn, .text-btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 12px;
}
.primary-btn { height: 48px; border: 0; background: var(--accent); color: #fff; }
.primary-btn:disabled { opacity: .4; cursor: not-allowed; }
.secondary-btn { height: 44px; border: 1px solid var(--hairline); background: var(--surface-2); color: var(--ink); }
.danger-btn { height: 44px; border: 0; background: transparent; color: var(--critical); }
.text-btn { height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--accent); }

/* Barra delle schede */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
}
.tabbar button {
  display: grid; justify-items: center; gap: 2px; height: 52px; padding: 6px 0 0;
  border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.tabbar button[aria-current="page"] { color: var(--accent); }

/* Messaggio con Annulla */
.toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 7;
  transform: translateX(-50%); width: min(528px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 12px; background: var(--ink); color: var(--surface);
  font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast[hidden] { display: none; }
.toast span { flex: 1; min-width: 0; }
.toast button {
  height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--surface); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.toast button[hidden] { display: none; }

/* Promemoria backup */
.banner { border-color: color-mix(in srgb, var(--warning) 55%, transparent); background: var(--warn-wash); }
.banner p { margin: 0 0 12px; font-size: 15px; }
.banner-actions { display: flex; justify-content: flex-end; gap: 8px; }
.primary-btn.small, .secondary-btn.small { height: 40px; padding: 0 14px; font-size: 15px; }
.banner .secondary-btn { padding: 0 14px; background: var(--surface); }

/* Primo avvio */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 12px; counter-increment: step; }
.steps li::before {
  content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 14px;
}
.steps li > div { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.steps li b { color: var(--ink); font-size: 15px; }
.steps .secondary-btn.small, .steps .primary-btn.small { flex: none; }

/* Cosa fare */
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo-list li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.todo-list li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.todo-ok { color: var(--ink-2); font-size: 15px !important; }
.todo-ok .ico { color: var(--good); }
.todo-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.todo-note[hidden] { display: none; }

/* Dati: strumenti per pilastro */
.groups { display: grid; gap: 10px; }
.group { padding: 10px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.group-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 4px; }
.group-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.group-meta { flex: 1; font-size: 12px; color: var(--muted); white-space: nowrap; }
.group-total { font-variant-numeric: tabular-nums; }
.group.zero .group-meta { color: var(--muted); }
.group-items { display: grid; gap: 6px; }
.group-items:empty { display: none; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 108px 40px; gap: 6px; align-items: center; }
.item .remove-btn { width: 40px; }
.item .money-field { padding: 0 10px; }
.group .add-btn { margin-top: 0; justify-self: start; font-size: 15px; }

/* Spese previste */
.expense { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.expense-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; align-items: center; }
.expense-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.expense .money-field { padding: 0 10px; min-width: 0; }
.month-field { padding: 0 10px; }
.month-field select { font-size: 15px; }
.month-field select.placeholder { color: var(--muted); }
.past-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.past-note::before { content: "▲ "; color: var(--warning); font-size: 11px; }
.past-note[hidden] { display: none; }

/* Fondo di emergenza: modalità e calcolatore */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  margin-top: 10px; padding: 4px; border-radius: 12px; background: var(--surface-2);
}
.segmented button {
  min-height: 40px; padding: 6px 8px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1.2; cursor: pointer;
}
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mode-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
#toggleCalc { margin-top: 8px; }
.calc { display: grid; gap: 10px; margin-top: 4px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.calc[hidden], .calc-row[hidden] { display: none; }
.calc .segmented { margin-top: 0; background: var(--surface); }
.calc .segmented button[aria-checked="true"] { background: var(--surface-2); }
.calc-row { display: flex; align-items: center; gap: 8px; }
.calc-row .suffix-field { width: 96px; background: var(--surface); }
.calc-row .suffix-field.months { width: 104px; }
.calc-row .money-field { flex: 1; min-width: 0; }
.calc-base { font-size: 14px; color: var(--ink-2); }
.times { color: var(--muted); }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.calc-result b { font-size: 20px; }

/* Riassegnazione strumenti */
.reassign-intro { margin: 0; }
.reassign-list { display: grid; gap: 10px; }
.reassign-row { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.reassign-row div { display: grid; gap: 2px; }
.reassign-row div span { font-size: 13px; color: var(--muted); }
.pillar-select {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--hairline);
}
.pillar-select select {
  appearance: none; -webkit-appearance: none; width: 100%; min-width: 0;
  border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; cursor: pointer;
}
.pillar-select::after {
  content: ""; flex: none; width: 7px; height: 7px; margin: -4px 2px 0 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
