/* Stockroom — Oberfläche. Warmes Graphit + "Goldene Stunde", Bodoni Moda + Jost.
   Ein Template-Set für Handy und Desktop: Sidebar ab 1024 px, darunter Tab-Leiste mit goldenem "+".
   Alle Farben als Tokens, Hell-Modus vollwertig (prefers-color-scheme). Keine fremden Quellen (CSP default-src 'self'). */
:root {
  color-scheme: dark;
  --bg: #0B0A09;
  --surface: #14120F;
  --surface-2: #1E1B17;
  --line: #2F2A24;
  --fg: #F1EBE2;
  --muted: #ABA295;
  --faint: #8F877B;
  --metal: linear-gradient(180deg, #F8DDB8 0%, #EDB985 30%, #D79A5E 55%, #C4874D 70%, #E8B07C 100%);
  --metal-edge: inset 0 1px 0 rgba(255, 244, 228, 0.65), inset 0 -1px 0 rgba(60, 30, 5, 0.35);
  --grain-o: 0.05;
  --vignette: rgba(0, 0, 0, 0.32);
  --gold: #E9B07A;
  --gold-text: #EDB884;
  --gold-ink: #1E1308;
  --gold-soft: rgba(233, 176, 122, 0.13);
  --gold-glow: rgba(233, 176, 122, 0.28);
  --focus: #EDB884;
  --ok: #5FD39A;
  --warn: #E8D45C;
  --bad: #FF7A6B;
  --crit: #FF5C8A;
  --mix-1: #8A5A2E; --mix-1-ink: #FFF4E4;
  --mix-g: #6B645A; --mix-g-ink: #FFF4E4;
  --mix-3: #C88746; --mix-3-ink: #1E1308;
  --mix-5: #F2C08A; --mix-5-ink: #1E1308;
  --mix-6: #A7513A; --mix-6-ink: #FFF4E4;
  --mix-7: #5E7A74; --mix-7-ink: #FFFFFF;
  /* stock room */
  --floor: #16181D; --floor-line: #20232A; --wall-a: #111317; --wall-b: #0E1013;
  --stencil: rgba(233, 176, 122, 0.16);
  --pallet-t: #4B3D2F; --pallet-l: #2F271F; --pallet-r: #3B3127;
  --b1-t: #66594B; --b1-l: #322B25; --b1-r: #4A4037; --b1-tape: #8A7A64;
  --b2-t: #EBC9A2; --b2-l: #B4875B; --b2-r: #D3A877; --b2-tape: #F7DDBE;
  --door-a: rgba(233, 176, 122, 0.55); --door-b: rgba(233, 176, 122, 0);
  --glass: rgba(18, 20, 24, 0.86);
  --shadow: 0 1px 0 rgba(255, 240, 220, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 34px rgba(0, 0, 0, 0.38);
  --font-ui: "Jost", "Futura", "Avenir Next", -apple-system, system-ui, sans-serif;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", ui-serif, Georgia, serif;
  --font-stencil: "Saira Stencil One", "Arial Narrow", Impact, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F5F1EA; --surface: #FFFDF9; --surface-2: #EEE7DC; --line: #DDD3C5;
    --fg: #1C1917; --muted: #5F574D; --faint: #6A6258; --grain-o: 0.035; --vignette: rgba(90, 60, 25, 0.07);
    --gold: #E2A468; --gold-text: #8A4F18; --gold-ink: #1E1308; --focus: #8A4F18;
    --gold-soft: rgba(201, 135, 66, 0.14); --gold-glow: rgba(201, 135, 66, 0.25);
    --ok: #176B41; --warn: #7A5C00; --bad: #B0301F; --crit: #B0124A;
    --mix-1: #D9A066; --mix-1-ink: #1E1308; --mix-g: #8A8175; --mix-g-ink: #1E1308;
    --mix-3: #C9803F; --mix-3-ink: #1E1308; --mix-5: #74421A; --mix-5-ink: #FFFFFF;
    --mix-6: #A7513A; --mix-6-ink: #FFFFFF; --mix-7: #3F5E57; --mix-7-ink: #FFFFFF;
    --floor: #E8E1D6; --floor-line: #DCD3C6; --wall-a: #DDD3C5; --wall-b: #D2C7B8;
    --stencil: rgba(148, 86, 28, 0.18);
    --pallet-t: #C7A985; --pallet-l: #9C8160; --pallet-r: #B29473;
    --b1-t: #CBBDAA; --b1-l: #A39580; --b1-r: #B9AA95; --b1-tape: #A89580;
    --b2-t: #F3D3AB; --b2-l: #CC9A66; --b2-r: #E2B684; --b2-tape: #FFF0DD;
    --door-a: rgba(226, 164, 104, 0.6); --door-b: rgba(226, 164, 104, 0);
    --glass: rgba(255, 255, 255, 0.88);
    --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 10px 28px rgba(60, 40, 20, 0.08);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F1EA; --surface: #FFFDF9; --surface-2: #EEE7DC; --line: #DDD3C5;
  --fg: #1C1917; --muted: #5F574D; --faint: #6A6258; --grain-o: 0.035; --vignette: rgba(90, 60, 25, 0.07);
  --gold: #E2A468; --gold-text: #8A4F18; --gold-ink: #1E1308; --focus: #8A4F18;
  --gold-soft: rgba(201, 135, 66, 0.14); --gold-glow: rgba(201, 135, 66, 0.25);
  --ok: #176B41; --warn: #7A5C00; --bad: #B0301F; --crit: #B0124A;
  --mix-1: #D9A066; --mix-1-ink: #1E1308; --mix-g: #8A8175; --mix-g-ink: #1E1308;
  --mix-3: #C9803F; --mix-3-ink: #1E1308; --mix-5: #74421A; --mix-5-ink: #FFFFFF;
  --mix-6: #A7513A; --mix-6-ink: #FFFFFF; --mix-7: #3F5E57; --mix-7-ink: #FFFFFF;
  --floor: #E8E1D6; --floor-line: #DCD3C6; --wall-a: #DDD3C5; --wall-b: #D2C7B8;
  --stencil: rgba(148, 86, 28, 0.18);
  --pallet-t: #C7A985; --pallet-l: #9C8160; --pallet-r: #B29473;
  --b1-t: #CBBDAA; --b1-l: #A39580; --b1-r: #B9AA95; --b1-tape: #A89580;
  --b2-t: #F3D3AB; --b2-l: #CC9A66; --b2-r: #E2B684; --b2-tape: #FFF0DD;
  --door-a: rgba(226, 164, 104, 0.6); --door-b: rgba(226, 164, 104, 0);
  --glass: rgba(255, 255, 255, 0.88);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 10px 28px rgba(60, 40, 20, 0.08);
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
  overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
input, select, textarea { font-size: 16px; }          /* unter 16 px zoomt Safari beim Antippen */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
a { color: var(--gold-text); text-underline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hint { font-size: 12.5px; color: var(--muted); }
.lead { margin-top: -8px; }
.up { color: var(--ok); } .down { color: var(--bad); } .gold { color: var(--gold-text); }

/* ---------- Schale ---------- */
.preview-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; padding-top: calc(6px + env(safe-area-inset-top, 0px)); background: var(--gold-soft); color: var(--gold-text); border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: 13px; font-weight: 600; text-align: center; }
.preview-banner svg { width: 16px; height: 16px; }
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: none; }
main {
  min-width: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 calc(112px + env(safe-area-inset-bottom, 0px));
}
.inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; }
.view { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1024px) {
  .app { grid-template-columns: 236px minmax(0, 1fr); }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 22px 14px; border-right: 1px solid var(--line); background: var(--surface);
  }
  main { padding-block: 10px 48px; padding-left: 32px; padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .tabbar { display: none !important; }
  .m-only { display: none !important; }
}
@media (max-width: 1023px) { .d-only { display: none !important; } }
/* Home-Bildschirm-App mit durchscheinender Statusleiste: dunkler Streifen, damit die Uhrzeit auch im Hell-Modus lesbar bleibt */
@media (display-mode: standalone) {
  body.shell::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: #0B0A09; z-index: 120; }
}

.wordmark { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 26px; letter-spacing: 0; }
.wordmark b { color: var(--gold); font-style: normal; }
.m-only.wordmark { font-size: 22px; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid rgba(233, 176, 122, 0.35); background: radial-gradient(120% 120% at 30% 20%, #3A2F24, #120F0C 70%); box-shadow: inset 0 1px 0 rgba(255, 230, 200, 0.12); flex: none; }
.logo svg { width: 20px; height: 20px; }
.side-nav { display: grid; gap: 4px; }
.nav-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; min-height: 44px; border-radius: 12px; border: 0; background: transparent;
  color: var(--muted); font-weight: 500; text-align: left; text-decoration: none;
}
.nav-btn[aria-current="page"] { background: linear-gradient(90deg, var(--gold-soft), transparent 85%); color: var(--gold-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent); }
.nav-btn .count { margin-left: auto; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.side-add { margin: 10px 0 2px; }
.side-label { font-size: 12.5px; color: var(--muted); padding: 18px 12px 6px; }
.product-chip { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.product-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); flex: none; }
.product-chip small { display: block; color: var(--muted); font-size: 12px; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; min-height: 44px; }
.who b { display: block; }
.who small { display: block; color: var(--muted); font-size: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--surface-2); color: var(--gold-text); border: 1px solid var(--line); flex: none; }
.avatar-link { display: grid; place-items: center; width: 44px; height: 44px; flex: none; text-decoration: none; }

/* Tab-Leiste (Handy) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 48px; padding: 6px 2px 2px;
  border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 500; text-decoration: none;
}
.tab[aria-current="page"] { color: var(--gold-text); }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--glass); }
.fab {
  justify-self: center; width: 58px; height: 58px; margin-top: -22px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-ink);
  background: var(--metal); border: 1px solid rgba(120, 70, 25, 0.55);
  box-shadow: var(--metal-edge), 0 8px 24px var(--gold-glow), 0 0 0 5px var(--bg);
  text-shadow: 0 1px 0 rgba(255, 240, 220, 0.45);
}
.fab:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(60, 30, 5, 0.45), 0 2px 8px var(--gold-glow), 0 0 0 5px var(--bg); }
.fab svg { width: 26px; height: 26px; stroke-width: 2.2; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding-block: 8px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: var(--bg); }
.topbar .grow { flex: 1 1 auto; min-width: 0; }
.greet { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.sub { color: var(--muted); font-size: 13px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 32px; max-width: 58vw;
  border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.2;
}
.chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); flex: none; }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); font-weight: 600; }
.chip svg { width: 16px; height: 16px; }

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--fg); font-weight: 600; text-decoration: none; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--metal); color: var(--gold-ink); border: 1px solid rgba(120, 70, 25, 0.55); box-shadow: var(--metal-edge), 0 6px 18px var(--gold-glow); text-shadow: 0 1px 0 rgba(255, 240, 220, 0.45); }
.btn.primary:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(60, 30, 5, 0.45), 0 2px 8px var(--gold-glow); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.tall { min-height: 56px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-btn:hover { background: var(--surface-2); color: var(--fg); }
  .btn:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--fg) 6%); }
  .btn.primary:hover { background: var(--metal); filter: brightness(1.05); }
  .opt:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
}

.card { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--fg) 3%), var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }
.section-title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); font-weight: 500; letter-spacing: -0.01em; padding-top: 4px; }
.mini-tag { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.4; padding: 0 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); vertical-align: 1px; letter-spacing: .02em; }
.tag { font-size: 12.5px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tag.fc { background: var(--gold-soft); color: var(--gold-text); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.empty { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); padding: 6px 0; }
.empty svg { margin-top: 2px; }
.empty-card { display: flex; gap: 14px; align-items: flex-start; }
.quiet-card { background: var(--surface); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.notice svg { margin-top: 1px; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.notice.warn svg { color: var(--warn); }
.notice.bad { border-color: color-mix(in srgb, var(--bad) 60%, transparent); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); margin-bottom: 14px; }
.notice.bad svg { color: var(--bad); }
.notice.good { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); margin-bottom: 14px; }
.notice.good svg { color: var(--ok); }

/* Stufen-Pille: Farbe + Symbol + Wort */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid color-mix(in srgb, currentColor 38%, transparent); }
.pill svg { width: 16px; height: 16px; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill.yellow { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.red { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.pill.gap { color: var(--crit); background: color-mix(in srgb, var(--crit) 15%, transparent); }
.pill.setup { color: var(--muted); background: var(--surface-2); }

.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); white-space: nowrap; }
.status-chip::before { content: ""; width: 9px; height: 9px; background: currentColor; flex: none; }
.status-chip.s-proposed { color: var(--gold-text); } .status-chip.s-proposed::before { border-radius: 50%; background: transparent; border: 2px solid currentColor; }
.status-chip.s-approved { color: var(--gold-text); } .status-chip.s-approved::before { border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 2px solid currentColor; }
.status-chip.s-ordered { color: var(--warn); } .status-chip.s-ordered::before { transform: rotate(45deg) scale(.85); }
.status-chip.s-arrived { color: var(--ok); } .status-chip.s-arrived::before { border-radius: 2px; }
.status-chip.s-active { color: var(--ok); } .status-chip.s-active::before { border-radius: 50%; }
.status-chip.s-depleted { color: var(--muted); } .status-chip.s-depleted::before { height: 3px; border-radius: 2px; }
.status-chip.s-cancelled { color: var(--muted); } .status-chip.s-cancelled::before { clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }

/* ---------- Formulare ---------- */
.stack { display: grid; gap: 14px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.fld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fld.grow { flex: 1 1 200px; }
.fld.narrow { max-width: 130px; }
.fld label, .qty-field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.fld small { font-size: 12.5px; color: var(--muted); }
.fld small.measured { color: var(--gold-text); }
input[type=text], input[type=number], input[type=password], input[type=time], input[type=date], select {
  min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  font-variant-numeric: tabular-nums; width: 100%; min-width: 0; color: var(--fg);
}
input[type=date] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; }
input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.qty-field { display: grid; gap: 6px; min-width: 0; }
.qty-input { width: 100%; max-width: 320px; min-height: 60px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--gold) 60%, transparent); background: var(--surface-2); font-family: var(--font-display); font-size: 32px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.small-input { width: 130px; }
input[type=date].small-input { width: 160px; }
.sheet .qty-input { max-width: none; }

/* ---------- Aktionskarte ---------- */
.actions { display: grid; gap: 14px; }
.action {
  position: relative; display: grid; gap: 14px; padding: 20px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: radial-gradient(120% 140% at 0% 0%, var(--gold-soft), transparent 55%), var(--surface);
  box-shadow: 0 0 0 4px var(--gold-soft), var(--shadow);
}
.action.quiet { border-color: var(--line); box-shadow: var(--shadow); background: var(--surface); }
.action.done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 10%, transparent), var(--shadow); background: var(--surface); }
.action-row { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.action-row > div:last-child { min-width: 0; }
.action-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--metal); box-shadow: var(--metal-edge); color: var(--gold-ink); flex: none; }
.action.quiet .action-ic { background: var(--surface-2); box-shadow: none; color: var(--muted); }
.action.done .action-ic { background: color-mix(in srgb, var(--ok) 18%, transparent); box-shadow: none; color: var(--ok); }
.action h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0; }
.action p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.action .btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.btns details.inline[open] { flex: 1 1 100%; }
details.inline > summary + * { margin-top: 12px; }
.overdue { display: flex; gap: 8px; align-items: flex-start; color: var(--bad); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.action .overdue { color: var(--bad); margin-top: 0; }
.check-draw path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero: Lager ---------- */
.hero { display: grid; gap: 8px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: radial-gradient(90% 120% at 72% 28%, color-mix(in srgb, var(--gold) 8%, var(--surface)) 0%, var(--surface) 48%, var(--bg) 100%); box-shadow: inset 0 0 0 1px var(--line), inset 0 -60px 90px var(--vignette), var(--shadow); }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .hero-body { grid-template-columns: 290px minmax(0, 1fr); } }
.hero-info { padding: 20px 20px 4px; display: grid; align-content: start; gap: 10px; min-width: 0; }
.when { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.big { font-family: var(--font-display); font-weight: 500; font-size: clamp(58px, 8.5vw, 92px); letter-spacing: -0.015em; line-height: 1; font-variant-numeric: lining-nums; }
.big-unit { font-size: 15px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.backlog { color: var(--bad); font-weight: 600; font-size: 14px; }
.facts { display: grid; gap: 6px; font-size: 14px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; align-items: baseline; }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 859px) {
  .facts dt .mini-tag { display: block; width: fit-content; margin-top: 2px; }
  .hero .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero .facts > div { display: grid; gap: 2px; justify-content: start; align-content: start; }
  .hero .facts dd { text-align: left; }
  .scene { max-height: 300px; }
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.scene-wrap { position: relative; min-width: 0; }
.scene { display: block; width: 100%; height: auto; max-height: 440px; }
.scene polygon { stroke-linejoin: round; }
.bx { transition: opacity .35s ease, transform .35s ease; transform-box: fill-box; }
.bx .t { fill: var(--t); } .bx .l { fill: var(--l); } .bx .r { fill: var(--r); }
.bx .tape { stroke: var(--tape); stroke-width: 1.4; fill: none; }
.bx.b1 { --t: var(--b1-t); --l: var(--b1-l); --r: var(--b1-r); --tape: var(--b1-tape); }
.bx.b2 { --t: var(--b2-t); --l: var(--b2-l); --r: var(--b2-r); --tape: var(--b2-tape); }
.bx.ghost { --t: transparent; --l: transparent; --r: transparent; --tape: transparent; }
.bx.ghost polygon { stroke: var(--gold); stroke-width: .8; stroke-dasharray: 2 2; opacity: .45; }
.bx.gone { opacity: 0; transform: translateY(-10px); }
.bx.drop { animation: drop .55s cubic-bezier(.2,.9,.3,1.2) backwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
.zone polygon { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1; stroke-dasharray: 4 3; }
.scrub { padding: 6px 20px 18px; display: grid; gap: 6px; }
.scrub-row { display: flex; align-items: center; gap: 12px; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--fg); padding: 0; }
.play svg { width: 16px; height: 16px; stroke: none; }
.track { position: relative; flex: 1; min-width: 0; height: 44px; }
.track input[type=range] { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; border: 0; }
.track input[type=range]:focus { box-shadow: none; }
.track input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 0 var(--now, 32%), color-mix(in srgb, var(--gold) 30%, var(--line)) var(--now, 32%) 100%); }
.track input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -8px; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--gold), 0 4px 12px var(--gold-glow); }
.track input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); }
.mk { position: absolute; top: 4px; width: 2px; height: 10px; border-radius: 2px; transform: translateX(-1px); pointer-events: none; }
.mk.today { background: var(--fg); opacity: .6; }
.mk.order { background: var(--gold); } .mk.out { background: var(--bad); } .mk.arr { background: var(--ok); }
.scrub-labels { position: relative; display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); padding-left: 56px; gap: 8px; }
.sl-today { position: absolute; left: calc(56px + 11px + (100% - 56px - 22px) * var(--f, 0.32)); transform: translateX(-50%); color: var(--muted); }
.scrub-keys, .scrub .legend { padding-left: 56px; }
.scrub-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.scrub-keys i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.scrub .legend { margin-top: 4px; }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 4px; align-content: start; padding: 16px 18px; min-width: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--fg) 3%), var(--surface)); }
.kpi .v { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.15; font-variant-numeric: lining-nums; }
.kpi .d { font-size: 12.5px; color: var(--muted); }
.kpi .d b { font-weight: 600; }

/* ---------- Grafiken ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--faint); stroke-width: 1; }
.chart-note { margin-top: 8px; }
.tip { position: absolute; pointer-events: none; z-index: 5; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.key { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key svg { width: 22px; height: 10px; }

/* ---------- Tabellen: am Handy werden Zeilen zu Karten ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th { white-space: nowrap; text-align: right; font-weight: 500; color: var(--faint); font-size: 12.5px; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.tbl td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl tbody th { text-align: left; font-weight: 500; color: var(--fg); font-size: 13.5px; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.strong { font-weight: 600; }
.tbl .today-row th, .tbl .today-row td { color: var(--muted); }
@media (max-width: 860px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  .tbl tbody tr:last-child { margin-bottom: 0; }
  .tbl tbody th, .tbl tbody td { display: block; padding: 0; border: 0; text-align: left; }
  .tbl .c-day { grid-column: 1 / 3; grid-row: 1; font-weight: 600; }
  .tbl .c-units { grid-column: 3; grid-row: 1; text-align: right; font-size: 16px; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; line-height: 1.3; }
  .tbl td.c-units::before { display: none; }
  .tbl .c-units::after { content: " pouches"; font-size: 12px; font-weight: 400; color: var(--muted); }
  .tbl td[colspan] { grid-column: 1 / -1; }
}

/* ---------- Unter-Tabs ---------- */
.subtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.subtab { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 500; white-space: nowrap; text-decoration: none; }
.subtab[aria-current="page"] { background: var(--gold-soft); color: var(--gold-text); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

/* ---------- Lieferungen ---------- */
.batch { display: grid; gap: 14px; }
.batch.is-cancelled { opacity: .8; }
.batch-head { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.batch-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-right: auto; }
.batch-qty { font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.step { display: grid; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; align-content: start; }
.step .bar { height: 5px; border-radius: 4px; background: var(--line); }
.step.done .bar { background: var(--gold); }
.step.now .bar { background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 25%, var(--line))); }
.step.done, .step.now { color: var(--fg); }
.step.now > span:first-of-type { font-weight: 600; }
.step small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
@media (max-width: 560px) { .step { font-size: 11px; } .step small { display: none; } }
.progress { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.progress div { height: 100%; background: var(--gold); border-radius: 10px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; }
.kv > div { display: grid; gap: 2px; min-width: 0; align-content: start; }
.kv > div.wide { grid-column: 1 / -1; }
.kv dt { font-size: 12.5px; color: var(--muted); }
.kv dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.correct { border-top: 1px solid var(--line); padding-top: 12px; }
.correct > summary { display: inline-flex; }
.correct form { margin-top: 12px; }
.correct .hint { margin-top: 8px; }

/* ---------- Protokoll ---------- */
.log { display: grid; }
.log-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.log-item:last-child { border-bottom: 0; }
.log-item time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.who-tag { font-size: 12.5px; color: var(--gold-text); font-weight: 600; }
.log-diff { display: grid; gap: 2px; margin-top: 4px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.log-diff .old { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 480px) { .log-item { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- Prognose ---------- */
.mixbar { display: flex; gap: 2px; height: 36px; border-radius: 10px; overflow: hidden; }
.mixbar .seg { display: grid; place-items: center; font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; }
.mixlegend { display: grid; gap: 8px; margin-top: 12px; }
.mixlegend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mixlegend .sw { width: 12px; height: 12px; border-radius: 3px; }
.mixlegend li.sum { border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 480px) { .mixlegend li { grid-template-columns: 14px minmax(0, 1fr) auto; } .mixlegend li > :nth-child(3) { display: none; } }
.mix-1 { background: var(--mix-1); color: var(--mix-1-ink); } .mix-g { background: var(--mix-g); color: var(--mix-g-ink); }
.mix-3 { background: var(--mix-3); color: var(--mix-3-ink); } .mix-5 { background: var(--mix-5); color: var(--mix-5-ink); }
.mix-6 { background: var(--mix-6); color: var(--mix-6-ink); } .mix-7 { background: var(--mix-7); color: var(--mix-7-ink); }
.derive { display: grid; font-variant-numeric: tabular-nums; }
.derive > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.derive dt { color: var(--muted); min-width: 0; }
.derive dd { text-align: right; min-width: 0; }
.derive > div.total { border-bottom: 0; font-weight: 600; font-size: 16px; }
.derive > div.total dt { color: var(--fg); }
.note-block { margin-top: 10px; }
.plan-list { display: grid; gap: 10px; }
.plan { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.plan > div { min-width: 0; }
.plan.off { opacity: .8; }
.plan-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-form .fld { flex: 1 1 130px; }
.plan-form .fld.grow { flex: 2 1 200px; }
.switch { position: relative; width: 56px; height: 44px; flex: none; border: 0; background: transparent; padding: 0; }
.switch span { position: absolute; left: 2px; top: 6px; width: 52px; height: 32px; border-radius: 99px; background: var(--line); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch[aria-checked="true"] span { background: var(--gold); }
.switch[aria-checked="true"] span::after { transform: translateX(20px); }

/* ---------- Einstellungen ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sku-list { display: grid; gap: 12px; margin-top: 12px; }
.sku-row { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: flex-end; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.sku-name { flex: 1 1 100%; display: grid; min-width: 0; }
.sku-name small { font-size: 12.5px; }
.sku-row .fld { flex: 1 1 130px; }
.sku-row .fld.narrow { flex: 0 1 110px; }
.sku-row input[type=text], .sku-row input[type=number] { background: var(--surface); }
details.correct .sku-row { margin-top: 12px; }
.people { display: grid; gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; }
.person small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- Sheet (natives <dialog>) ---------- */
dialog.sheet {
  width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow: auto;
  margin: auto auto 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.35);
}
dialog.sheet[open] { display: grid; gap: 14px; animation: up .28s cubic-bezier(.2,.9,.3,1) backwards; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .5); }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 22px; border-bottom: 1px solid var(--line); padding-bottom: 22px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.grabber { width: 40px; height: 5px; border-radius: 4px; background: var(--line); justify-self: center; }
.sheet-panel { display: grid; gap: 14px; min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); padding: 0; flex: none; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: center; width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; }
.opt[disabled] { opacity: .55; cursor: not-allowed; }
.opt .action-ic { width: 40px; height: 40px; border-radius: 12px; }
.opt[disabled] .action-ic { background: var(--surface); box-shadow: none; color: var(--muted); }
.opt small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- Meldung ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; border-radius: 14px;
  background: var(--fg); color: var(--bg); font-weight: 500; font-size: 14px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; width: max-content; max-width: calc(100% - 32px);
  box-shadow: var(--shadow);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { background: var(--surface-2); color: var(--fg); border: 1.5px solid var(--bad); }
.toast.err svg { color: var(--bad); }
.toast > span { min-width: 0; }
.toast-x { width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; padding: 0; flex: none; opacity: .75; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* ---------- Anmeldung und Konto ---------- */
body.plain { display: block; }
.plain-main { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.plain-main.top { place-items: start center; padding-top: max(16px, env(safe-area-inset-top)); }
.plain-card { width: 100%; max-width: 400px; display: grid; gap: 14px; padding: 28px 22px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: radial-gradient(120% 90% at 50% 0%, var(--gold-soft), transparent 60%), var(--surface); }
.plain-wide { width: 100%; max-width: 480px; display: grid; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.plain-title { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.kv.two { grid-template-columns: 1fr 1fr; margin-top: 10px; }

/* ---------- Material (Körnung) ---------- */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; background-image: url("icons/grain.svg"); opacity: var(--grain-o); mix-blend-mode: overlay; transform: translateZ(0); }
@media (hover: none) { body::before { mix-blend-mode: normal; opacity: calc(var(--grain-o) * .5); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .bx.gone { transform: none; }
  .check-draw path { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .action, .kpis { animation: rise .45s cubic-bezier(.2,.8,.25,1) backwards; }
  .view > :nth-child(n+8) { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media print { body::before, .tabbar, .sidebar { display: none; } }
