/* VereinsDeckel Verwaltung. Die Token sind die der App (shared/.../ui/theme/Color.kt, Theme.kt,
   Type.kt), einmal als CSS-Variablen nachgezogen. Dieselben Regeln: Grün ist Geld, Messing der
   Deckel, Blau die Karte, Bernstein Aufmerksamkeit, Rot Zerstörung — und die Vereinsfarbe
   (--accent, aus verein.css) färbt nur Navigation und Avatare.
   Keine Inline-Styles: Die Content-Security-Policy lässt nur dieses Blatt zu. Was eine
   berechnete Breite braucht (Balken, Diagramme), ist SVG mit Attributen. */

:root {
  --primary: #146B4C; --on-primary: #FFFFFF; --primary-container: #A5F2CB; --on-primary-container: #00281A;
  --secondary: #7A5314; --on-secondary: #FFFFFF; --secondary-container: #FFDEA8; --on-secondary-container: #281800;
  --tertiary: #2B5C87; --on-tertiary: #FFFFFF; --tertiary-container: #CDE5FF; --on-tertiary-container: #001D33;
  --error: #B3261E; --on-error: #FFFFFF; --error-container: #F9DEDC; --on-error-container: #410E0B;
  --warning: #A03E00; --on-warning: #FFFFFF; --warning-container: #FFDCC4; --on-warning-container: #331200;
  --surface: #F7F9F6; --on-surface: #191D1A; --on-surface-variant: #414942;
  --panel: #FFFFFF; --panel-sub: #F2F5F0; --surface-high: #E6E9E4; --surface-highest: #E1E4DF;
  --outline: #717971; --hairline: #C1C9C0;
  --accent: #146B4C; --on-accent: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8ED8B6; --on-primary: #003824; --primary-container: #005237; --on-primary-container: #A5F2CB;
    --secondary: #E9C68A; --on-secondary: #422C00; --secondary-container: #5E4100; --on-secondary-container: #FFDEA8;
    --tertiary: #9BCBFA; --on-tertiary: #003354; --tertiary-container: #0B4A76; --on-tertiary-container: #CDE5FF;
    --error: #F2B8B5; --on-error: #601410; --error-container: #8C1D18; --on-error-container: #F9DEDC;
    --warning: #FFB77C; --on-warning: #542100; --warning-container: #773100; --on-warning-container: #FFDCC4;
    --surface: #0E1310; --on-surface: #E1E4DE; --on-surface-variant: #C1C9C0;
    --panel: #1B201C; --panel-sub: #252B26; --surface-high: #252B26; --surface-highest: #303631;
    --outline: #8B938A; --hairline: #414942;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font: 400 14px/20px system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.2px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ Schrift */
.headline { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: 0; }
.title-m { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: 0.1px; }
.title-s { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.1px; }
.body-s, .cap { font-size: 12px; line-height: 16px; letter-spacing: 0.3px; }
.cap, .muted { color: var(--on-surface-variant); }
.label-m { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; color: var(--on-surface-variant); }
.label-s { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.6px; color: var(--on-surface-variant); }
/* Die Geldstimme: eigene Grade, immer Tabellenziffern. */
.money-d, .money-l, .money-m, .money-s, .tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-d { font-size: 44px; line-height: 52px; font-weight: 700; letter-spacing: -1px; }
.money-l { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.5px; }
.money-m { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.2px; }
.money-s { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0; }
.c-primary { color: var(--primary); } .c-secondary { color: var(--secondary); } .c-tertiary { color: var(--tertiary); }
.c-warning { color: var(--warning); } .c-error { color: var(--error); } .c-muted { color: var(--on-surface-variant); }

/* ------------------------------------------------------------------- Icons */
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; stroke: none; }
.ic-s { width: 14px; height: 14px; } .ic-m { width: 18px; height: 18px; } .ic-l { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ Gerüst */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.side { display: flex; flex-direction: column; gap: 20px; width: 264px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; padding: 20px 12px 16px; background: var(--panel-sub); border-right: 1px solid var(--hairline); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 8px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background: var(--accent); color: var(--on-accent); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text .title-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group .label-s { padding: 0 14px 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--on-surface-variant); font-weight: 600; letter-spacing: 0.1px; }
.nav-item:hover { background: var(--surface-high); color: var(--on-surface); }
.nav-item[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.grow { flex-grow: 1; }
.who { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--hairline); }
.who-text { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.who-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 500; letter-spacing: 0.5px; }
.avatar-s { width: 32px; height: 32px; } .avatar-l { width: 52px; height: 52px; font-size: 17px; font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--on-surface-variant); }
.icon-btn:hover { background: var(--surface-high); color: var(--on-surface); }

main { display: flex; flex-direction: column; gap: 24px; flex-grow: 1; min-width: 0; max-width: 1240px; padding: 32px 32px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: none; }

/* ------------------------------------------------------------------ Flächen */
.panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 18px 24px 10px; }
.panel-note { padding: 0 24px 8px; }
.panel-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.panel-foot { padding: 12px 24px 14px; }
.sub { padding: 12px; border-radius: 10px; background: var(--panel-sub); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--panel-sub); color: var(--on-surface-variant); }
.note-warn { background: var(--warning-container); color: var(--on-warning-container); }
.note-error { background: var(--error-container); color: var(--on-error-container); }
.note-ok { background: var(--primary-container); color: var(--on-primary-container); }
.note b { color: var(--on-surface); } .note-warn b, .note-error b, .note-ok b { color: inherit; }
.cols { display: grid; gap: 24px; align-items: start; }
.cols-main { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-side { grid-template-columns: minmax(0, 1fr) 392px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stack-tight { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.two { display: flex; flex-direction: column; min-width: 0; }
.two > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Überschriften in einem Zweizeiler laufen um; nur die Unterzeile kürzt. */
.two > h2 { overflow: visible; white-space: normal; }
.head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.head-row > .two { flex: 1 1 200px; }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; min-width: 0; border-left: 1px solid var(--hairline); }
.figure:first-child { border-left: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.bg-primary { background: var(--primary); } .bg-tertiary { background: var(--tertiary); } .bg-secondary { background: var(--secondary); }
.bar { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.bar-thin { height: 6px; border-radius: 3px; }
.chart { display: block; width: 100%; height: auto; max-height: 96px; }
.f-track { fill: var(--surface-highest); } .f-hair { fill: var(--hairline); }
.f-primary { fill: var(--primary); } .f-secondary { fill: var(--secondary); } .f-tertiary { fill: var(--tertiary); }
.f-warning { fill: var(--warning); } .f-error { fill: var(--error); } .f-muted { fill: var(--on-surface-variant); }
.chart text { fill: var(--on-surface-variant); font-size: 10px; font-weight: 500; text-anchor: middle; }
.chart text.now { fill: var(--on-surface); font-weight: 700; }

/* ------------------------------------------------------------------ Chips */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; }
.chip-bar, .chip-ok { background: var(--primary-container); color: var(--on-primary-container); }
.chip-karte { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.chip-deckel { background: var(--secondary-container); color: var(--on-secondary-container); }
.chip-warn { background: var(--warning-container); color: var(--on-warning-container); }
.chip-error { background: var(--error-container); color: var(--on-error-container); }
.chip-neutral { color: var(--on-surface-variant); box-shadow: inset 0 0 0 1px var(--outline); }

/* ------------------------------------------------------------------ Knöpfe und Felder */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--outline); background: transparent; color: var(--on-surface); font-weight: 600; letter-spacing: 0.1px; white-space: nowrap; }
.btn:hover { background: var(--surface-high); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-brass { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); }
.btn-primary:hover, .btn-brass:hover { filter: brightness(1.08); background: var(--primary); }
.btn-brass:hover { background: var(--secondary); }
.btn-danger { border-color: var(--error); color: var(--error); }
.btn-quiet { border-color: transparent; background: var(--surface-high); }
.btn-wide { width: 100%; min-height: 48px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--outline); white-space: nowrap; font-weight: 600; }
.pill[aria-current="true"] { background: var(--on-surface); border-color: var(--on-surface); color: var(--surface); }
.pill .tnum { opacity: 0.72; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; color: var(--on-surface-variant); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--outline); background: var(--panel); color: var(--on-surface); }
.search { display: flex; align-items: center; gap: 8px; flex-grow: 1; min-width: 150px; min-height: 44px; padding: 0 12px; border: 1px solid var(--outline); border-radius: 10px; color: var(--on-surface-variant); }
.field textarea { min-height: 88px; padding: 10px 12px; resize: vertical; font: inherit; }
.search input { flex-grow: 1; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; color: var(--on-surface); }
.search:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.toolbar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 16px 24px 12px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: inline-flex; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid var(--outline); }
.swatch input:checked + span { border-color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--on-surface); }
.swatch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.swatch svg { width: 24px; height: 24px; border-radius: 50%; }

/* ------------------------------------------------------------------ Tabellen */
.t { width: 100%; border-collapse: collapse; }
.t th { padding: 10px 8px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; color: var(--on-surface-variant); border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.t td { padding: 8px; height: 52px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t th:first-child, .t td:first-child { padding-left: 24px; }
.t th:last-child, .t td:last-child { padding-right: 24px; }
.t .num { text-align: right; }
.t .nowrap { white-space: nowrap; }
/* Die Textspalte nimmt den Rest und kürzt mit Auslassung, statt die Tabelle aus der Fläche zu schieben. */
.t td.fill { width: 100%; max-width: 0; }
.only-sm { display: none; }
.t tbody tr.pick { position: relative; }
.t tbody tr.pick:hover, .t tbody tr[aria-selected="true"] { background: var(--surface-high); }
.t tbody tr.pick a.cover::after { content: ""; position: absolute; inset: 0; }
.t tr.sum td { border-top: 2px solid var(--on-surface); border-bottom: 0; font-weight: 600; }
.t tr.group td { height: 36px; padding-top: 16px; padding-bottom: 4px; color: var(--muted); text-transform: uppercase; }
.t tr.area td { height: auto; padding-top: 14px; padding-bottom: 6px; background: var(--panel-sub); }
.t-tight td { height: 40px; }
.t.t-flush th:first-child, .t.t-flush td:first-child { padding-left: 0; }
.t.t-flush th:last-child, .t.t-flush td:last-child { padding-right: 0; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }
.badge-lock { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; background: var(--warning-container); color: var(--on-warning-container); }
.empty { padding: 32px 24px; color: var(--on-surface-variant); }
.code { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px; border-radius: 10px; background: var(--primary-container); color: var(--on-primary-container); }
.code strong { font: 700 36px/44px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 2px; }
.steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: var(--surface-high); font-size: 12px; font-weight: 500; }
.photo { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--hairline); }
.photo-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; border-radius: 10px; border: 1px dashed var(--outline); background: var(--panel-sub); color: var(--on-surface-variant); text-align: center; }
.back { display: none; }
/* Dialoge: über der Seite, zentriert, wie die Dialoge der App (Radius large, abgedunkelter Grund). */
.dialog { display: none; }
@supports selector(:popover-open) {
  .dialog { position: fixed; inset: 0; margin: auto; width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--hairline); border-radius: 24px; background: var(--panel); color: var(--on-surface); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4); overflow: auto; text-align: left; }
  .dialog:popover-open { display: flex; flex-direction: column; }
  .dialog::backdrop { background: rgba(9, 13, 10, 0.55); }
  /* Hinter dem Dialog ist die Seite still: nichts klickt durch den Schleier, nichts scrollt weg. */
  body:has(.dialog:popover-open) { overflow: hidden; pointer-events: none; }
  .dialog:popover-open { pointer-events: auto; }
}
@supports not selector(:popover-open) {
  .dialog { display: block; margin-top: 8px; padding: 0; border: 1px solid var(--hairline); border-radius: 16px; background: var(--panel); text-align: left; }
}
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 4px; }
.dialog-body { padding: 12px 24px 24px; }
.dialog-body .form-grid { grid-template-columns: 1fr 1fr; }
.dialog-body .panel { border: 0; }
@media (max-width: 860px) { .dialog-body .form-grid { grid-template-columns: 1fr; } }
details { position: relative; display: inline-block; text-align: left; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.confirm { position: absolute; right: 0; top: calc(100% + 6px); z-index: 3; width: 300px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--hairline); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.confirm-left { right: auto; left: 0; }
.confirm-wide { width: min(640px, calc(100vw - 32px)); padding: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.more-list { display: flex; flex-direction: column; }
.more-list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 24px; border-bottom: 1px solid var(--hairline); font-weight: 600; }
.more-list a:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ Anmeldung */
.gate { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.gate-card { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 420px; padding: 32px 28px; }
.gate-card form { display: flex; flex-direction: column; gap: 16px; }

/* ------------------------------------------------------------------ Schmaler */
@media (max-width: 1180px) {
  .cols-main, .cols-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .side { display: none; }
  main { padding: 20px 16px calc(92px + env(safe-area-inset-bottom, 0px)); gap: 16px; }
  .headline { font-size: 24px; line-height: 32px; }
  .cols { gap: 16px; } .cols-2 { grid-template-columns: minmax(0, 1fr); } .stack { gap: 16px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 16px; } .figure:nth-child(odd) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .money-l { font-size: 26px; line-height: 32px; } .money-d { font-size: 38px; line-height: 46px; }
  .panel-head { padding: 16px 16px 8px; } .panel-note { padding: 0 16px 8px; } .panel-body { padding: 16px; }
  .panel-foot { padding: 12px 16px; } .toolbar { padding: 12px 16px; }
  .t th:first-child, .t td:first-child { padding-left: 16px; } .t th:last-child, .t td:last-child { padding-right: 16px; }
  .hide-sm { display: none; }
  .t td.fill .two > :first-child { white-space: normal; }
  .only-sm { display: inline; }
  .two > .only-sm { display: block; margin-top: 4px; }
  .btn.only-sm { display: inline-flex; }
  /* Ein langes Abzeichen unter dem Namen bricht um, statt am Zellenrand abzureißen. */
  .two > .only-sm .chip { height: auto; min-height: 24px; padding: 3px 8px; white-space: normal; }
  /* Aufgeklappte Formulare stehen am Telefon im Fluss, nicht als schwebende Karte am Rand. */
  details[open] { display: block; width: 100%; }
  .confirm, .confirm-left { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .more-list a { padding: 0 16px; }
  /* Geteilte Ansicht: auf dem Telefon Liste oder Einzelnes, nie beides. */
  .split.has-sel .split-list, .split:not(.has-sel) .split-detail { display: none; }
  .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--primary); font-weight: 600; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--panel-sub); border-top: 1px solid var(--hairline); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 10px; color: var(--on-surface-variant); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.4px; }
  .tab .pip { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 28px; border-radius: 14px; }
  .tab[aria-current="page"] { color: var(--on-surface); font-weight: 700; }
  .tab[aria-current="page"] .pip { background: var(--accent); color: var(--on-accent); }
}
@media (prefers-reduced-motion: no-preference) { .nav-item, .btn, .pill { transition: background-color 120ms ease; } }
@media print {
  .side, .tabs, .actions, .toolbar { display: none; }
  main { max-width: none; padding: 0; } .panel { border-color: #999; break-inside: avoid; }
}
