/* JINH Tool – Brand- und Designsystem der Website (27.11.2026, Leonard: „zu grau, trist und zu dunkel“).
   Quelle: website/current/src/styles/tokens.css, motion-tokens.css, base.css, reservation.css. Primitive unten unverändert
   übernommen: Waldgrün, Reisweiß, Nebel, Gold, Olive, Papier, Tinte; Abstände, Radien, Schatten, Dauern und Kurven.
   Zwei Farbwelten, beide aus dem Website-System: „Wald“ (Sơn mài, dunkel = Seiten auf Waldgrün) und „Papier“ (Giấy, hell =
   Kartenpapier .light). Der Server setzt data-theme. Zusätzlich nur die Rollen, die die Website nicht hat: Tischzustände,
   „wartet“ (Safran) und „über Zeit“ (Zinnober). Überschriften in Chakra Petch (Versalien, 500, Laufweite 0.06em), Text in
   Lexend, Ziffern in Chakra Petch. Knöpfe als Pillen mit Goldglas wie auf der Website. Schriften und Logo selbst gehostet
   (assets/fonts, assets/brand). CSP: keine Inline-Styles; Balkenhöhen als Stufen l0–l10. Animiert werden nur transform,
   opacity und Farben; prefers-reduced-motion schaltet alles ab. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/chakra-petch-vietnamese-500-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/chakra-petch-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/chakra-petch-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/lexend-vietnamese-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/lexend-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/lexend-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Primitive der Website (tokens.css, motion-tokens.css) ---------- */
:root {
  --forest-950: #07150f; --forest-900: #0a1f16; --forest-850: #0d291b; --forest-800: #123523; --forest-700: #1b4a31;
  --rice-100: #f2ebdf; --rice-50: #faf6ef; --mist-300: #d1d2c7; --muted-300: #b7b8aa;
  --gold-300: #b79a62; --gold-200: #cfb784; --olive-300: #a9c46c; --olive-500: #5d7b31; --olive-600: #4f6b28; --lacquer-500: #c98563;
  --paper-100: #f4f5ec; --ink-900: #101811; --ink-700: #2f3a31; --ink-muted: #536052;
  --accent-rgb: 183 154 98; --accent-hi-rgb: 207 183 132; --rice-rgb: 242 235 223; --forest-rgb: 7 21 15; --ink-rgb: 16 24 17;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem;
  --radius-sm: 0.5rem; --radius-md: 0.85rem; --radius-lg: 1.4rem; --radius-pill: 999px;
  --motion-short: 180ms; --motion-medium: 420ms; --duration-normal: 320ms;
  --motion-ease-organic: cubic-bezier(0.22, 1, 0.36, 1); --motion-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Chakra Petch", "Arial Narrow", Arial, sans-serif;
  --font-body: "Lexend", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --tracking-heading: 0.06em; --tracking-label: 0.14em; --tracking-control: 0.01em;
  --text-label: 0.8125rem; --text-sm: 0.875rem; --text-control: 0.9375rem; --text-base: 1rem;

  /* Rollen des Tools (Kurznamen bleiben, damit Tischplan und Skripte unverändert greifen) */
  --ease: var(--motion-ease-organic); --spring: var(--motion-ease-spring); --fast: var(--motion-short); --normal: var(--duration-normal);
  --r-lg: var(--radius-lg); --r: var(--radius-md); --r-sm: var(--radius-sm); --tap: 2.75rem;
  --side-w: 240px; --rail-w: 76px; --tabs-h: 64px;
  --font: var(--font-body); --digits: "Chakra Petch", "Lexend", system-ui, sans-serif;
}

/* ---------- Farbwelten ---------- */
/* A „Wald“ (Sơn mài): Waldgrün der Website, Reisweiß, Gold als Handlung. Kontraste auf forest-950: ink 15,8:1, ink-2 11,9:1,
   ink-3 9,3:1, Gold 6,96:1, Safran 9,1:1, Grün 8,9:1, Zinnober 6,1:1. */
:root, [data-theme="wald"] {
  --base: var(--forest-950); --side: var(--forest-900);
  --s1: var(--forest-850); --s2: var(--forest-800); --s3: var(--forest-700);
  --line: rgb(var(--rice-rgb) / 0.11); --rule: rgb(var(--accent-rgb) / 0.22); --line-2: rgb(var(--rice-rgb) / 0.42);
  --edge: rgb(var(--rice-rgb) / 0.06);
  --ink: var(--rice-100); --ink-2: var(--mist-300); --ink-3: var(--muted-300);
  --eyebrow: var(--gold-300);
  --accent: var(--gold-300); --accent-hi: var(--gold-200); --accent-ink: var(--forest-950); --accent-soft: rgb(var(--accent-rgb) / 0.14);
  --action: var(--gold-300); --action-ink: var(--forest-950);
  --ghost-bg: rgb(var(--rice-rgb) / 0.05); --ghost-border: rgb(var(--accent-rgb) / 0.32); --hover: rgb(var(--accent-rgb) / 0.08);
  --field: rgb(var(--forest-rgb) / 0.45); --field-focus: rgb(var(--forest-rgb) / 0.65);
  --busy: var(--rice-100); --busy-ink: var(--forest-950);
  --ask: #e8a93c; --ask-soft: rgb(232 169 60 / 0.16); --badge-ink: var(--forest-950);
  --ok: #74c34f; --ok-soft: rgb(116 195 79 / 0.14);
  --alarm: #ef7352; --alarm-soft: rgb(239 115 82 / 0.16);
  --bar: rgb(var(--rice-rgb) / 0.2); --bar-hot: rgb(var(--rice-rgb) / 0.58);
  --plan-floor: #081a11; --plan-image-filter: grayscale(1) invert(1); --plan-image-opacity: 0.22;
  --shadow: inset 0 1px 0 rgb(255 250 235 / 0.07), 0 24px 60px -30px rgb(0 0 0 / 0.6);
  --shadow-float: 0 30px 70px rgb(0 0 0 / 0.5);
  --overlay: rgb(var(--forest-rgb) / 0.9);
  --glow: radial-gradient(circle at 15% 12%, rgb(120 144 90 / 0.10), transparent 34rem), radial-gradient(circle at 85% 78%, rgb(201 133 99 / 0.06), transparent 32rem);
  --palm: url("brand/palmblatt-dunkel.svg");
  color-scheme: dark;
}
/* B „Papier“ (Giấy): Kartenpapier der Website (.light) – Papierton, Tinte, Olive für Etiketten und Handlung, Waldgrün belegt. */
[data-theme="papier"] {
  --base: var(--paper-100); --side: #fbfbf5;
  --s1: #fdfdf9; --s2: #ecede0; --s3: #dcdecd;
  --line: rgb(var(--ink-rgb) / 0.11); --rule: rgb(93 123 49 / 0.30); --line-2: rgb(var(--ink-rgb) / 0.5);
  --edge: rgb(var(--ink-rgb) / 0.07);
  --ink: var(--ink-900); --ink-2: var(--ink-700); --ink-3: var(--ink-muted);
  --eyebrow: var(--olive-600);
  --accent: var(--olive-600); --accent-hi: var(--forest-700); --accent-ink: var(--rice-50); --accent-soft: rgb(93 123 49 / 0.14);
  --action: var(--forest-700); --action-ink: var(--rice-50);
  --ghost-bg: rgb(var(--ink-rgb) / 0.03); --ghost-border: rgb(var(--ink-rgb) / 0.22); --hover: rgb(27 74 49 / 0.07);
  --field: #fff; --field-focus: #fff;
  --busy: var(--forest-700); --busy-ink: var(--rice-50);
  --ask: #94560a; --ask-soft: rgb(232 169 60 / 0.24); --badge-ink: #fff;
  --ok: #2e6f1f; --ok-soft: rgb(63 138 42 / 0.12);
  --alarm: #b03a1c; --alarm-soft: rgb(176 58 28 / 0.10);
  --bar: rgb(var(--ink-rgb) / 0.14); --bar-hot: rgb(27 74 49 / 0.62);
  --plan-floor: #eceee2; --plan-image-filter: grayscale(1); --plan-image-opacity: 0.34;
  --shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.05), 0 14px 40px -18px rgb(var(--ink-rgb) / 0.18);
  --shadow-float: 0 24px 60px -20px rgb(var(--ink-rgb) / 0.3);
  --overlay: rgb(253 253 249 / 0.94);
  --glow: radial-gradient(circle at 12% 8%, rgb(93 123 49 / 0.07), transparent 34rem);
  --palm: url("brand/palmblatt.svg");
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--base); }
body { margin: 0; min-height: 100vh; background: var(--glow), var(--base); background-attachment: fixed; color: var(--ink);
  font: 400 var(--text-control)/1.5 var(--font); font-variant-numeric: lining-nums tabular-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
/* Dunkle Schrift auf Papier wirkt dünner als helle auf Waldgrün: eine halbe Stufe kräftiger (wie .light der Website). */
[data-theme="papier"] body { font-weight: 450; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent-hi); text-decoration-color: rgb(var(--accent-rgb) / 0.45); text-decoration-thickness: 1px; text-underline-offset: 0.28em;
  transition: color var(--fast), text-decoration-color var(--fast); }
a:hover { text-decoration-color: currentColor; }
[data-theme="papier"] a { text-decoration-color: rgb(var(--ink-rgb) / 0.3); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--tracking-heading); text-transform: uppercase;
  line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(1.4rem, 1.1vw + 1rem, 1.8rem); }
h2 { font-size: 1rem; }
p { margin: 0; text-wrap: pretty; }
code { font-size: 0.9em; padding: 0.05rem 0.35rem; border-radius: 6px; background: var(--s2); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 99; padding: 0.75rem 1rem; background: var(--action); color: var(--action-ink);
  border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 0.5rem; }
.num, .time, .tno, .pax { font-family: var(--digits); font-weight: 500; letter-spacing: 0.03em; }
.pax small { font-family: var(--font); font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0; }
/* Dachzeile der Website (.eyebrow): Versalien, gesperrt, Gold auf Waldgrün, Olive auf Papier */
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--eyebrow); }
.muted { color: var(--ink-2); }
.warn { color: var(--ask); font-weight: 600; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hülle ---------- */
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--side-w); display: flex; flex-direction: column; gap: 2px;
  padding: 20px 14px 12px; background: var(--side); border-right: 1px solid var(--rule); overflow-y: auto; }
/* Logo der Website als Maske in Reisweiß (wie .site-logo__mark), daneben „Tool“ als Dachzeile */
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark__logo { display: block; width: 74px; aspect-ratio: 600 / 302; flex: none; background: var(--ink);
  -webkit-mask: url("brand/jinh-logo.png") center / contain no-repeat; mask: url("brand/jinh-logo.png") center / contain no-repeat; }
.mark small { color: var(--eyebrow); font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.side > .mark { padding: 2px 10px 16px; }
.side__nav { display: flex; flex-direction: column; gap: 3px; }
.side__grp { padding: 18px 12px 6px; font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--eyebrow); }
.side__nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--ink-2);
  text-decoration: none; font-size: var(--text-control); font-weight: 500; letter-spacing: var(--tracking-control);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.side__nav a:hover { background: var(--hover); color: var(--ink); }
.side__nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.4); }
.side__nav a[aria-current="page"] .ic { stroke: var(--accent); }
.side__nav .badge { margin-left: auto; }
.me { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--rule); }
.me__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; }
.me__link:hover, .me__link[aria-current="page"] { background: var(--hover); }
.me__text { display: grid; min-width: 0; line-height: 1.25; }
.me__text b { font-weight: 600; font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__text small { color: var(--ink-3); font-size: 0.75rem; }
.av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.45);
  display: grid; place-items: center; font: 500 0.8125rem var(--digits); color: var(--accent-hi); }
.app__main { margin-left: var(--side-w); min-width: 0; }
.main { max-width: 1240px; margin: 0 auto; padding: 28px 32px 64px; }
.bar { display: none; }
.tabs, .fab { display: none; }

/* Tablet: schmale Symbolleiste */
@media (max-width: 1099px) {
  .side { width: var(--rail-w); padding: 16px 10px; align-items: center; }
  .side > .mark { padding: 4px 0 12px; flex-direction: column; gap: 4px; }
  .side > .mark .mark__logo { width: 50px; }
  .side > .mark small, .side__label, .side__grp, .me__text { display: none; }
  .side__grp { display: block; height: 1px; padding: 0; margin: 10px 6px; background: var(--rule); font-size: 0; }
  .side__nav a { justify-content: center; width: 50px; min-height: 46px; padding: 0; position: relative; }
  .side__nav .badge { position: absolute; top: 2px; right: 0; margin: 0; }
  .me { flex-direction: column; border-top: 0; }
  .app__main { margin-left: var(--rail-w); }
  .main { padding: 22px 22px 56px; }
}
/* Handy: Kopfzeile oben, Tabs unten, „Eintragen“ schwebend */
@media (max-width: 699px) {
  .side { display: none; }
  .app__main { margin-left: 0; }
  .bar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 56px; padding: 6px max(14px, env(safe-area-inset-left)); padding-top: max(6px, env(safe-area-inset-top));
    background: color-mix(in srgb, var(--base) 90%, transparent); border-bottom: 1px solid var(--rule); backdrop-filter: blur(16px) saturate(140%); }
  .bar .mark__logo { width: 62px; }
  .main { padding: 18px max(16px, env(safe-area-inset-left)) calc(var(--tabs-h) + 88px + env(safe-area-inset-bottom)); }
  .phead .seg--head { display: none; }
  .tabs { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px max(8px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--base) 92%, transparent);
    border-top: 1px solid var(--rule); backdrop-filter: blur(16px) saturate(140%); }
  .tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 50px; padding-top: 5px;
    font-size: 0.75rem; font-weight: 500; color: var(--ink-3); text-decoration: none; transition: color var(--fast) var(--ease); }
  .tabs a .ic { width: 23px; height: 23px; transition: transform var(--fast) var(--spring); }
  .tabs a[aria-current="page"] { color: var(--ink); }
  .tabs a[aria-current="page"] .ic { stroke: var(--accent); }
  .tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -7px; left: 50%; width: 28px; height: 2px; margin-left: -14px; border-radius: 2px; background: var(--accent); }
  .tabs a:active .ic { transform: scale(0.9); }
  .tabs .badge { position: absolute; top: 0; left: calc(50% + 5px); height: 18px; min-width: 18px; padding: 0 5px; font-size: 0.6875rem; line-height: 18px; }
  .fab { position: fixed; z-index: 21; right: 16px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 20px 0 16px; border-radius: var(--radius-pill); font-weight: 600; letter-spacing: var(--tracking-control); text-decoration: none; }
}

/* ---------- Knöpfe (Website base.css: Pillen, Goldglas, Hover hebt um 2 px) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--ghost-border); background: var(--ghost-bg); color: var(--ink); font-weight: 600; font-size: var(--text-control);
  letter-spacing: var(--tracking-control); line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--fast) var(--ease), background-color var(--fast), border-color var(--fast), color var(--fast), box-shadow var(--fast); }
.btn:hover { border-color: rgb(var(--accent-rgb) / 0.6); background: var(--hover); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(0.98); transition-timing-function: var(--spring); }
.btn .ic { width: 18px; height: 18px; }
/* Goldglas (Liquid Glass der Website) – ohne Weichzeichner, die Flächen darunter sind ruhig */
.btn--primary, .fab {
  border: 1px solid rgb(var(--accent-hi-rgb) / 0.7); color: var(--rice-50); text-shadow: 0 1px 2px rgb(7 21 15 / 0.45);
  background: linear-gradient(180deg, rgb(255 250 235 / 0.2) 0%, rgb(255 250 235 / 0.05) 46%, transparent 56%),
    linear-gradient(180deg, rgb(var(--accent-rgb) / 0.42) 0%, rgb(var(--accent-rgb) / 0.26) 100%), var(--s1);
  box-shadow: inset 0 1px 0.5px rgb(255 250 235 / 0.55), inset 0 -1px 1px rgb(var(--accent-hi-rgb) / 0.22), inset 0 0 14px rgb(var(--accent-hi-rgb) / 0.12),
    0 8px 24px -10px rgb(0 0 0 / 0.55); }
.btn--primary:hover, .fab:hover { border-color: rgb(var(--accent-hi-rgb) / 0.95); background-color: transparent;
  background: linear-gradient(180deg, rgb(255 250 235 / 0.24) 0%, rgb(255 250 235 / 0.06) 46%, transparent 56%),
    linear-gradient(180deg, rgb(var(--accent-rgb) / 0.5) 0%, rgb(var(--accent-rgb) / 0.32) 100%), var(--s1);
  box-shadow: inset 0 1px 0.5px rgb(255 250 235 / 0.7), inset 0 -1px 1px rgb(var(--accent-hi-rgb) / 0.3), inset 0 0 18px rgb(var(--accent-hi-rgb) / 0.18),
    0 10px 28px -10px rgb(var(--accent-rgb) / 0.5); }
[data-theme="papier"] .btn--primary, [data-theme="papier"] .fab {
  border-color: rgb(var(--accent-rgb) / 0.75); color: var(--forest-950); text-shadow: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.7) 0%, rgb(255 255 255 / 0.2) 48%, transparent 58%),
    linear-gradient(180deg, rgb(var(--accent-rgb) / 0.3) 0%, rgb(var(--accent-rgb) / 0.44) 100%), #fff;
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.9), inset 0 -1px 1px rgb(var(--accent-rgb) / 0.35), 0 6px 18px -10px rgb(70 55 20 / 0.45); }
[data-theme="papier"] .btn--primary:hover, [data-theme="papier"] .fab:hover { border-color: rgb(var(--accent-rgb) / 0.95);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.95), inset 0 -1px 1px rgb(var(--accent-rgb) / 0.45), 0 10px 24px -10px rgb(var(--accent-rgb) / 0.6); }
.btn--ask { background: var(--ask); border-color: var(--ask); color: var(--base); }
.btn--ask:hover { background: var(--ask); border-color: var(--ask); filter: brightness(1.06); }
.btn--danger { border-color: rgb(239 115 82 / 0.6); color: var(--alarm); background: transparent; }
[data-theme="papier"] .btn--danger { border-color: var(--alarm); }
.btn--danger:hover { border-color: var(--alarm); background: var(--alarm-soft); }
.btn--quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn--quiet:hover { border-color: transparent; color: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--text-sm); }
.btn--lg { min-height: 52px; font-size: var(--text-base); padding: 0 24px; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent; background: transparent;
  color: var(--ink-2); cursor: pointer; text-decoration: none; font-size: 1.25rem; line-height: 1; transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.iconbtn:hover { background: var(--hover); border-color: var(--ghost-border); color: var(--ink); }
.kbd { font: 500 0.6875rem/1 var(--font); padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 5px; color: inherit; opacity: 0.75; margin-left: 2px; }
.inl { display: inline-flex; margin: 0; }

/* Umschalter (Haus, Ansicht): Pillen; gewählt im Goldglas wie die Auswahlflächen der Reservierung */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill); background: var(--ghost-bg); border: 1px solid var(--rule); }
.seg__item { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid transparent; color: var(--ink-2);
  text-decoration: none; font-size: var(--text-sm); font-weight: 600; letter-spacing: var(--tracking-control); white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast); }
.seg__item:hover { color: var(--ink); background: var(--hover); }
.seg__item[aria-current="true"], .seg__item[aria-current="page"], .fp-seg__item[aria-current="page"] { color: var(--ink); border-color: rgb(var(--accent-hi-rgb) / 0.75);
  background: linear-gradient(180deg, rgb(var(--rice-rgb) / 0.14) 0%, rgb(var(--rice-rgb) / 0.04) 46%, transparent 56%),
    linear-gradient(180deg, rgb(var(--accent-rgb) / 0.34) 0%, rgb(var(--accent-rgb) / 0.2) 100%);
  box-shadow: inset 0 1px 0.5px rgb(var(--rice-rgb) / 0.45), 0 6px 18px -10px rgb(var(--accent-rgb) / 0.6); }
[data-theme="papier"] .seg__item[aria-current="true"], [data-theme="papier"] .seg__item[aria-current="page"], [data-theme="papier"] .fp-seg__item[aria-current="page"] {
  border-color: rgb(var(--accent-rgb) / 0.7); color: var(--forest-950);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.8) 0%, rgb(255 255 255 / 0.3) 48%, transparent 58%), linear-gradient(180deg, rgb(var(--accent-rgb) / 0.22) 0%, rgb(var(--accent-rgb) / 0.36) 100%), #fff;
  box-shadow: inset 0 1px 0.5px #fff, 0 4px 12px -8px rgb(70 55 20 / 0.5); }

.st { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.st i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.st--ask { color: var(--ask); } .st--ask i { background: repeating-linear-gradient(135deg, var(--ask) 0 2px, transparent 2px 4px); outline: 1.5px solid var(--ask); }
.st--ok { color: var(--ok); } .st--ok i { background: var(--ok); border-radius: 50%; }
.st--busy { color: var(--ink); } .st--busy i { background: var(--busy); outline: 1px solid var(--line-2); }
.st--soon { color: var(--ink-2); } .st--soon i { border: 1.5px dashed var(--ink-2); }
.st--alarm { color: var(--alarm); } .st--alarm i { background: var(--alarm); transform: rotate(45deg); }
.st--free { color: var(--ink-3); } .st--free i { border: 1.5px solid var(--line-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600;
  background: var(--ghost-bg); color: var(--ink-2); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--fast), color var(--fast), background-color var(--fast); }
.chip:hover { color: var(--ink); border-color: rgb(var(--accent-rgb) / 0.55); background: var(--hover); }
.chip[aria-current="page"] { background: var(--accent-soft); border-color: rgb(var(--accent-hi-rgb) / 0.75); color: var(--ink); }
.chip__n { color: var(--ink); font-family: var(--digits); font-weight: 500; }
.badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); font: 600 0.75rem/20px var(--font); text-align: center; background: var(--ask); color: var(--badge-ink); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; background: var(--s2); color: var(--ink-2); white-space: nowrap; }
.tag--ask { background: var(--ask-soft); color: var(--ask); }
.tag--alarm { background: var(--alarm-soft); color: var(--alarm); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }

/* Karten: ruhige, etwas hellere Fläche wie .panel der Website, große Rundung, feine Kante und weicher Schatten */
.card { background: var(--s1); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.sec { padding: 20px 22px; margin-bottom: 18px; }
.sec__h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; font-size: 1rem; }
.sec__h small { color: var(--ink-3); font-family: var(--font); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sec__foot { margin-top: 12px; }
.sec__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.cols > .card { margin-bottom: 0; }
.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r); background: var(--ok-soft); border-left: 3px solid var(--ok); }
.notice--error { background: var(--alarm-soft); border-color: var(--alarm); }
.notice--warn { background: var(--ask-soft); border-color: var(--ask); }
.hint { margin-top: 12px; color: var(--ink-2); font-size: var(--text-sm); }
.empty { color: var(--ink-2); padding: 6px 0; }

/* Seitenkopf */
.phead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.phead__text { min-width: 0; }
.phead__sub { margin-top: 6px; color: var(--ink-2); font-size: var(--text-control); }
.phead__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.daynav { display: flex; align-items: center; gap: 6px; }
.daynav__label { font-weight: 600; white-space: nowrap; }

/* Formulare (Website reservation.css: Feldrand ≥ 3:1, Fokus mit Goldrand und Hof) */
.form { display: grid; gap: 6px; padding: 22px; margin-bottom: 18px; }
.form label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.form .check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: var(--text-control); font-weight: 400; min-height: var(--tap); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: var(--tap); padding: 9px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font-size: var(--text-base); line-height: 1.4;
  transition: border-color var(--fast), background-color var(--fast), box-shadow var(--fast); }
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: rgb(var(--rice-rgb) / 0.6); }
[data-theme="papier"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):hover { border-color: rgb(var(--ink-rgb) / 0.7); }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--field-focus);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.2); outline: none; }
[data-theme="papier"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus { box-shadow: 0 0 0 4px rgb(93 123 49 / 0.2); }
::placeholder { color: rgb(var(--rice-rgb) / 0.6); }
[data-theme="papier"] ::placeholder { color: rgb(var(--ink-rgb) / 0.55); }
textarea { min-height: 5rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.form__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.grid2, .grid3 { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid2 > div, .grid3 > div { display: grid; gap: 6px; }
.tpl { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; min-width: 0; }
.tpl legend { padding: 0; margin-bottom: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.tpl__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl__opt { position: relative; display: inline-flex !important; align-items: center; margin: 0 !important; }
.tpl__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpl__opt span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--ghost-bg); color: var(--ink-2);
  border: 1px solid var(--line-2); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: border-color var(--fast), background-color var(--fast), color var(--fast); }
.tpl__opt span:hover { border-color: rgb(var(--accent-rgb) / 0.6); background: var(--hover); }
.tpl__opt input:checked + span { background: var(--accent-soft); border-color: rgb(var(--accent-hi-rgb) / 0.8); color: var(--ink); }
.tpl__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.tpl__texts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.8125rem; color: var(--ink-3); }
.tpl__texts b { color: var(--ink-2); font-weight: 600; }

/* Kennzahlen-Kacheln */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.kpis--6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { padding: 16px 20px; background: var(--s1); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.kpi dt { color: var(--eyebrow); font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.kpi dd { margin: 4px 0 0; color: var(--ink-3); font-size: 0.8125rem; }
.kpi__n { font-size: 2.25rem; line-height: 1.1; color: var(--ink); }
@media (max-width: 699px) {
  .kpis { gap: 8px; }
  .kpi { padding: 12px 14px; border-radius: var(--r); }
  .kpi dt { font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
  .kpi__n { font-size: 1.6rem; }
  .kpi dd small { display: block; }
}

/* Auslastungsband (Heute) */
.band { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 56px; align-items: stretch; }
.band li { display: flex; }
.band__slot { position: relative; flex: 1; display: flex; align-items: flex-end; border-radius: 4px; text-decoration: none; transition: background-color var(--fast); }
.band__slot:hover { background: var(--hover); }
.band__slot i { display: block; width: 100%; background: var(--bar); border-radius: 4px 4px 0 0; min-height: 3px; }
.band__slot.is-hot i { background: var(--bar-hot); }
.band__slot.is-past i { opacity: 0.45; }
.band__slot.is-now i { background: var(--accent); opacity: 1; }
.band__slot.is-now::before { content: ""; position: absolute; top: -6px; bottom: -4px; left: -2px; width: 2px; background: var(--alarm); border-radius: 1px; }
.band__slot.is-now::after { content: ""; position: absolute; top: -9px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--alarm); }
.axis { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; font: 500 0.6875rem var(--digits); color: var(--ink-3); }
.l0 { height: 4%; } .l1 { height: 10%; } .l2 { height: 20%; } .l3 { height: 30%; } .l4 { height: 40%; } .l5 { height: 50%; }
.l6 { height: 60%; } .l7 { height: 70%; } .l8 { height: 80%; } .l9 { height: 90%; } .l10 { height: 100%; }

/* Listenzeilen (Heute) */
.list { list-style: none; margin: 0; padding: 0; }
.li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "t w r" "t m m" "t a a"; gap: 2px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .time { grid-area: t; align-self: start; font-size: 1.0625rem; padding-top: 1px; }
.li .who { grid-area: w; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li__right { grid-area: r; justify-self: end; }
.li__right .tno { font-size: 1rem; }
.li .meta { grid-area: m; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.8125rem; color: var(--ink-2); }
.li__note { flex-basis: 100%; color: var(--ink-3); }
.li__acts { grid-area: a; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.li--alarm .time { color: var(--alarm); }
.li--ask .time { color: var(--ask); }
.li--done { opacity: 0.6; }
.li--more { display: block; }
.li--more a { font-weight: 500; }

/* Tabelle */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table thead th { font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--eyebrow); }
.table tbody th { font-weight: 600; }
.table tbody tr { transition: background-color var(--fast); }
.table tbody tr:hover { background: var(--hover); }

/* ---------- Anfragen ---------- */
.inbox { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.inbox__list { padding: 6px 0; min-width: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows .day { padding: 16px 20px 6px; font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--eyebrow); }
.rows .empty { padding: 18px; }
.rowl { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; grid-template-areas: "t w p r" "t m m m"; gap: 2px 12px; align-items: center;
  padding: 12px 20px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; transition: background-color var(--fast) var(--ease); }
.rowl:hover { background: var(--hover); }
.rowl[aria-current="true"] { background: var(--accent-soft); border-left-color: var(--accent); }
.rowl .time { grid-area: t; align-self: start; font-size: 1.0625rem; padding-top: 1px; }
.rowl--angefragt .time { color: var(--ask); }
.rowl__who { grid-area: w; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowl__pax { grid-area: p; }
.rowl__right { grid-area: r; justify-self: end; }
.rowl__meta { grid-area: m; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.8125rem; color: var(--ink-2); }
.rowl__note { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowl__note .ic { width: 14px; height: 14px; }
.keys { display: none; padding: 10px 18px 6px; font-size: 0.75rem; color: var(--ink-3); }
.js .keys { display: block; }
.inbox__detail { position: sticky; top: 16px; padding: 24px 26px 26px; min-width: 0; }
.inbox__detail--empty { display: grid; place-items: center; min-height: 240px; }
.back { display: none; align-items: center; gap: 4px; margin: -4px 0 10px; font-weight: 600; text-decoration: none; }
.d__head h2 { font-family: var(--font); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.005em; text-transform: none; }
.d__head h2:focus { outline: none; }
.d__sub { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--ink-2); font-size: 0.875rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 18px 0 14px; }
.facts > div { padding: 12px 14px; border-radius: var(--r); background: var(--s2); min-width: 0; }
.facts dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eyebrow); }
.facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.big { font-size: 1.25rem; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.contact__mail { overflow-wrap: anywhere; }
.d__note { margin-top: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--s2); }
.d__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.checks { margin-top: 18px; }
.checks .label { margin-bottom: 8px; }
.checks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks__list .hint { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); font-size: 0.875rem; color: var(--ink); background: var(--s2); }
.checks__list .ic { width: 18px; height: 18px; margin-top: 1px; }
.hint--ok .ic { stroke: var(--ok); }
.hint--ask { background: var(--ask-soft) !important; } .hint--ask .ic { stroke: var(--ask); }
.hint--alarm { background: var(--alarm-soft) !important; } .hint--alarm .ic { stroke: var(--alarm); }
.d__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.d__acts .act { display: contents; }
.decline { margin-top: 12px; }
.decline[open] summary { border-color: var(--alarm); color: var(--alarm); }
.decline .act { display: grid; gap: 8px; margin-top: 12px; padding: 16px; border-radius: var(--r); background: var(--s2); }
.decline label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.decline .btn--danger { justify-self: start; }
@media (max-width: 1099px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox__detail--empty { display: none; }
  .inbox--detail .inbox__list, .main:has(.inbox--detail) .filters { display: none; }
  .inbox__detail { position: static; }
  .back { display: inline-flex; }
  .keys, .kbd { display: none !important; }
}
@media (max-width: 699px) {
  .inbox__detail { padding: 16px; }
  .d__acts .btn { flex: 1 1 100%; }
  .rowl { padding: 12px 14px; }
  .li__acts { gap: 6px; }
  .li__acts .btn { padding-inline: 12px; }
}

/* Mehr */
.more { list-style: none; margin: 0; padding: 0; }
.more__item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.more li:last-child .more__item { border-bottom: 0; }
.more__item span { flex: 1; display: grid; }
.more__item b { font-weight: 600; }
.more__item small { color: var(--ink-3); font-size: 0.8125rem; }
.more__item .ic { stroke: var(--accent); }
.more__item .ic--end { stroke: var(--ink-3); }
.ic--end { width: 18px; height: 18px; }
.logout-m { margin-top: 8px; }

/* Schichten */
.week { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin-bottom: 16px; }
.week__day { padding: 14px 16px; }
.week__day.is-today { border-color: rgb(var(--accent-hi-rgb) / 0.75); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.4), var(--shadow); }
.shifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shift { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t d" "w d" "a d" "n d"; gap: 2px 8px; padding: 10px 12px; border-radius: var(--r); background: var(--s2); border-left: 3px solid var(--line-2); }
.shift--kueche { border-left-color: var(--ask); } .shift--service { border-left-color: var(--accent); } .shift--bar { border-left-color: var(--ok); }
.shift .time { grid-area: t; font-size: 0.875rem; }
.shift__who { grid-area: w; font-weight: 600; }
.shift .tag { grid-area: a; justify-self: start; }
.shift__note { grid-area: n; font-size: 0.8125rem; }
.shift__del { grid-area: d; align-self: start; }

/* Speisekarte */
.dishes { list-style: none; margin: 0; padding: 0; }
.dish { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dish:last-child { border-bottom: 0; }
.dish__name { font-weight: 600; }
.dish.is-out .dish__name { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--alarm); }
.dish__acts { display: flex; gap: 4px; }
@media (max-width: 699px) {
  .dish { grid-template-columns: minmax(0, 1fr) auto; }
  .dish__state { grid-column: 1; }
  .dish__acts { grid-column: 2; grid-row: 1 / span 2; }
}

/* Kennzahlen: Balken je Tag */
.bars { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 200px; }
.bars__day { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; min-width: 0; text-align: center; }
.bars__n { font-size: 0.8125rem; color: var(--ink-2); min-height: 1.2em; }
.bars__bar { display: flex; align-items: flex-end; }
.bars__bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--bar); }
.bars__day.is-today .bars__bar i { background: var(--accent); }
.bars__d { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.bars--dense { gap: 2px; }
.bars--dense .bars__n { font-size: 0.625rem; }
@media (max-width: 699px) { .bars--dense .bars__n { display: none; } }

/* Anmelden */
.body--plain { background: var(--palm) right -12rem top -10rem / min(64rem, 120vw) auto no-repeat, var(--glow), var(--base); }
.plain { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(100%, 420px); display: grid; gap: 18px; }
.mark--login { justify-self: center; flex-direction: column; gap: 10px; margin: 0; }
.mark--login .mark__logo { width: 132px; }
.mark--login small { font-size: 0.75rem; }
.login__card { padding: 26px 26px 28px; }
.login__card h1 { margin-bottom: 6px; }
.login__card .btn { margin-top: 18px; }
.login__foot { text-align: center; font-size: 0.875rem; }

/* Rückgängig-Leiste */
.undo { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: var(--radius-pill); background: var(--busy); color: var(--busy-ink);
  box-shadow: var(--shadow-float); animation: rise var(--normal) var(--ease); }
.undo__text { flex: 1; min-width: 0; font-size: 0.9375rem; }
.undo__form { margin: 0; }
.undo .btn--quiet { color: var(--busy-ink); border-color: transparent; font-weight: 600; }
.undo .btn--quiet:hover { background: rgb(128 128 128 / 0.18); }
.undo .iconbtn { color: var(--busy-ink); }
.undo.is-gone { opacity: 0; transform: translate(-50%, 12px); transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease); pointer-events: none; }
@media (max-width: 699px) { .undo { bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom)); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Tischplan (src/Floor.php, assets/tischplan.js) ---------- */
.main:has(.fp) { max-width: 1480px; }
.fp { color: var(--ink); }
.fp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hatch__bg { fill: var(--ask-soft); }
.hatch__ln { fill: var(--ask); opacity: 0.5; }
.fp h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.fp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.fp-title { flex: 1 1 16rem; min-width: 0; }
.fp-eyebrow { color: var(--eyebrow); font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.fp-title h1 { margin-top: 4px; }
.fp-title__day { color: var(--ink-2); font-family: var(--font); font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 6px; white-space: nowrap; }
.fp-day { display: flex; align-items: center; gap: 6px; }
.fp-dayform { display: flex; gap: 6px; align-items: center; margin: 0; }
.fp-dayform input { width: auto; min-width: 9.5rem; }
.js .fp-dayform__go { display: none; }

.fp-time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: 4px; margin-bottom: 14px; padding: 8px;
  background: var(--s1); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fp-step { display: grid; place-items: center; width: 38px; border-radius: var(--radius-pill); color: var(--ink-2); text-decoration: none; font-size: 1.35rem; transition: background-color var(--fast), color var(--fast); }
.fp-step:hover { background: var(--hover); color: var(--accent-hi); }
.fp-step.is-off { color: var(--line-2); }
.fp-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(3.1rem, 1fr); gap: 3px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: none; }
.fp-slots::-webkit-scrollbar { display: none; }
.fp-slots li { scroll-snap-align: center; }
.fp-slot { position: relative; display: grid; grid-template-rows: 2.3rem auto; gap: 3px; padding: 5px 2px 4px; border-radius: var(--r); color: var(--ink-2);
  text-decoration: none; text-align: center; transition: background-color var(--fast) var(--ease); }
.fp-slot:hover { background: var(--hover); color: var(--ink); }
.fp-slot__bar { position: relative; display: flex; align-items: flex-end; margin: 0 auto; width: 0.9rem; border-radius: 4px; background: var(--ghost-bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fp-slot__bar i { display: block; width: 100%; border-radius: 4px; background: var(--bar); }
.fp-slot.is-full .fp-slot__bar i { background: var(--bar-hot); }
.fp-slot__t { font: 500 0.8125rem var(--digits); }
.fp-slot.is-break { opacity: 0.5; }
.fp-slot.is-now::after { content: ""; position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--alarm); }
.fp-slot[aria-current="true"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--accent-hi-rgb) / 0.8), 0 6px 18px -10px rgb(var(--accent-rgb) / 0.6); }
.fp-slot[aria-current="true"] .fp-slot__t { color: var(--accent); }
.fp-slot[aria-current="true"] .fp-slot__bar i { background: var(--accent); }

.fp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.fp-stats > div { flex: 1 1 9rem; padding: 12px 18px; background: var(--s1); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fp-stats dt { color: var(--eyebrow); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.fp-stats dd { margin: 0; color: var(--ink-3); }
.fp-stats b { color: var(--ink); font: 500 1.4rem var(--digits); }
.fp-stats__open { display: inline-block; margin-left: 6px; padding: 0 9px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.75rem; color: var(--ask); background: var(--ask-soft); }

.fp-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1180px) {
  .fp-grid { grid-template-columns: minmax(0, 1fr) 23rem; }
  .fp-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; scrollbar-width: thin; }
}
.fp-planwrap { background: var(--s1); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px; min-width: 0; }
.fp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 10px; }
.fp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.fp-zoom { display: flex; gap: 4px; align-items: center; }
.fp-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill); background: var(--ghost-bg); border: 1px solid var(--rule); }
.fp-seg__item { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid transparent; color: var(--ink-2); text-decoration: none; font-size: var(--text-sm); font-weight: 600; transition: background-color var(--fast), color var(--fast); }
.fp-seg__item:hover { color: var(--ink); background: var(--hover); }

.plan { position: relative; border-radius: var(--r); overflow: auto; background: var(--plan-floor); overscroll-behavior: contain; }
.plan__svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 13rem); margin-inline: auto; user-select: none; -webkit-user-select: none; }
.plan--hoch .plan__svg { max-width: 38rem; max-height: none; }
html:not(.js) .plan:not(.plan--hoch) .plan__svg { min-width: 34rem; }
.js .plan { touch-action: pan-x pan-y; }
.js .plan.is-zoomed { max-height: 70vh; }
.js .plan.is-zoomed .plan__svg { max-height: none; max-width: none; margin: 0; }
.plan.is-dragging { cursor: grabbing; }
.plan__floor { fill: var(--plan-floor); }
/* Grundriss (plans/, weiße Architektenzeichnung): im Dunkeln umgekehrt als helle Linien, auf Papier grau */
.plan__image { filter: var(--plan-image-filter); opacity: var(--plan-image-opacity); pointer-events: none; }

/* Tische (flacher Plan) */
.t { cursor: pointer; outline: none; }
.t rect, .t ellipse { stroke-width: 0.3; transition: fill var(--fast) var(--ease), stroke var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.t text { text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-family: var(--font); }
.t__name { font-family: var(--digits) !important; font-weight: 500; }
.t__info { font-weight: 500; }
.t__flag { display: none; fill: var(--alarm); stroke: var(--plan-floor); stroke-width: 0.25; }
.t__name { letter-spacing: 0.02em; }
.t--frei rect, .t--frei ellipse { fill: var(--s2); stroke: var(--line-2); }
.t--frei text { fill: var(--ink-2); }
.t--bald rect, .t--bald ellipse { stroke: var(--ink); stroke-dasharray: 1 0.7; stroke-width: 0.4; }
.t--bald .t__name { fill: var(--ink); }
.t--bald .t__info { fill: var(--ink-2); }
.t--bestaetigt rect, .t--bestaetigt ellipse { fill: var(--busy); stroke: var(--busy); }
.t--bestaetigt text { fill: var(--busy-ink); }
.t--angefragt rect, .t--angefragt ellipse { fill: url(#hatch); stroke: var(--ask); stroke-width: 0.45; }
.t--angefragt text { fill: var(--ask); paint-order: stroke; stroke: var(--plan-floor); stroke-width: 0.5; }
.t--spaet rect, .t--spaet ellipse { stroke: var(--alarm); stroke-width: 0.9; }
.t--spaet .t__flag { display: inline; }
.t:hover rect, .t:hover ellipse { filter: brightness(1.08); }
.t:focus-visible rect, .t:focus-visible ellipse, .t--sel rect, .t--sel ellipse { stroke: var(--accent); stroke-width: 0.8; stroke-dasharray: none; }
.fp--moving .t { opacity: 0.28; }
.fp--moving .t--target, .fp--moving .t--small, .fp--moving .t--source, .fp--moving .t--pick { opacity: 1; }
.fp--moving .t--target rect, .fp--moving .t--target ellipse { fill: var(--s2); stroke: var(--accent); stroke-width: 0.6; stroke-dasharray: none; }
.fp--moving .t--target text { fill: var(--accent); }
.fp--moving .t--small { opacity: 0.8; }
.fp--moving .t--small rect, .fp--moving .t--small ellipse { fill: var(--s1); stroke: var(--ask); stroke-width: 0.45; stroke-dasharray: 0.45 0.45; }
.fp--moving .t--source rect, .fp--moving .t--source ellipse { stroke: var(--ink); stroke-width: 0.6; stroke-dasharray: 0.4 0.4; }
.fp--moving .t--pick rect, .fp--moving .t--pick ellipse { fill: var(--accent); stroke: var(--accent); stroke-width: 0.8; }
.fp--moving .t--pick text { fill: var(--accent-ink); stroke: none; }

/* Miniatur (Puppenhaus aus dem Blender-Modell): gleiche Zustände, Linien in Bildpunkten */
.fp-seg--view .fp-seg__item { min-height: 32px; }
.plan--mini { background: #07150f; }
.plan--mini .plan__svg { max-height: calc(100vh - 11rem); }
.plan__mini { pointer-events: none; }
.plan--mini .t__top, .plan--mini .t__badge, .plan--mini .t__pill, .plan--mini .t__guest > * { vector-effect: non-scaling-stroke; }
.plan--mini .t__top { fill: rgb(242 235 223 / 0); stroke: rgb(242 235 223 / 0); stroke-width: 2px; transition: fill var(--fast) var(--ease), stroke var(--fast) var(--ease); }
.plan--mini .t:hover .t__top { fill: rgb(207 183 132 / 0.18); stroke: rgb(207 183 132 / 0.7); }
.plan--mini .t--bald .t__top { stroke: #f2ebdf; stroke-dasharray: 6 4; }
.plan--mini .t--angefragt .t__top { fill: url(#hatch-mini); stroke: #e8a93c; stroke-width: 2.5px; }
.plan--mini .t--bestaetigt .t__top { fill: rgb(242 235 223 / 0.30); stroke: #f2ebdf; }
.plan--mini .t--spaet .t__top { stroke: #ef7352; stroke-width: 4px; }
.plan--mini .t--sel .t__top, .plan--mini .t:focus-visible .t__top { stroke: #cfb784; stroke-width: 3.5px; stroke-dasharray: none; filter: drop-shadow(0 0 6px rgb(207 183 132 / 0.9)); }
.plan--mini .t__badge { fill: rgb(7 21 15 / 0.9); stroke: rgb(242 235 223 / 0.55); stroke-width: 1.5px; }
.plan--mini .t text { fill: #f2ebdf; stroke: none; paint-order: normal; }
.plan--mini .t__pill { fill: rgb(7 21 15 / 0.9); }
.plan--mini .t--frei:not(.t--bald) .t__pill { display: none; }
.plan--mini .t--bald .t__badge { stroke: #f2ebdf; stroke-dasharray: 4 3; }
.plan--mini .t--angefragt .t__badge { stroke: #e8a93c; stroke-width: 2px; stroke-dasharray: 4 3; }
.plan--mini .t--angefragt .t__info, .plan--mini .t--angefragt .t__name { fill: #e8a93c; }
.plan--mini .t--bestaetigt .t__badge { fill: #f2ebdf; stroke: #f2ebdf; }
.plan--mini .t--bestaetigt .t__name { fill: #07150f; }
.plan--mini .t--spaet .t__badge { stroke: #ef7352; stroke-width: 3px; }
.plan--mini .t--spaet .t__pill { fill: #ef7352; }
.plan--mini .t--spaet .t__info { fill: #07150f; }
.plan--mini .t--sel .t__badge, .plan--mini .t:focus-visible .t__badge { fill: #cfb784; stroke: #cfb784; stroke-dasharray: none; }
.plan--mini .t--sel .t__name, .plan--mini .t:focus-visible .t__name { fill: #07150f; }
.t__guest { display: none; }
.t__guest.is-on { display: inline; }
.t__guest > * { fill: #f4e7cf; stroke: #2b2116; stroke-width: 1.2px; }
.t--angefragt .t__guest > * { fill: rgb(244 231 207 / 0.5); stroke: #e8a93c; stroke-dasharray: 3 2; }
.fp--moving .plan--mini .t { opacity: 0.45; }
.fp--moving .plan--mini .t--target, .fp--moving .plan--mini .t--small, .fp--moving .plan--mini .t--source, .fp--moving .plan--mini .t--pick { opacity: 1; }
.fp--moving .plan--mini .t--target .t__top { fill: rgb(207 183 132 / 0.38); stroke: #cfb784; stroke-width: 3px; stroke-dasharray: none; }
.fp--moving .plan--mini .t--small .t__top { fill: rgb(7 21 15 / 0.35); stroke: #e8a93c; stroke-width: 2px; stroke-dasharray: 3 3; }
.fp--moving .plan--mini .t--source .t__top { stroke: #f2ebdf; stroke-width: 2.5px; stroke-dasharray: 3 3; }
.fp--moving .plan--mini .t--pick .t__top { fill: rgb(207 183 132 / 0.7); stroke: #faf6ef; stroke-width: 3px; }

/* Seitenspalte: Detailblatt und Listen */
.fp-side { display: grid; gap: 12px; min-width: 0; }
.fp-card, .fp-detail { background: var(--s1); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; }
.fp-card--warn { border-color: var(--ask); }
.fp-card--warn h2 { color: var(--ask); }
.fp-card h2 { margin-bottom: 12px; }
.fp-count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.45rem; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--ink); font: 500 0.8125rem var(--digits); letter-spacing: 0.02em; }
.fp-empty { margin: 4px 0 0; font-size: 0.9rem; }
.fp-detail { border-color: rgb(var(--accent-hi-rgb) / 0.7); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.3), var(--shadow-float); }
.fp-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fp-detail__head h2 { font-size: 1.25rem; }
.fp-detail__head h2:focus { outline: none; }
.fp-detail__head p { margin-top: 2px; font-size: 0.875rem; }
.fp-detail__state { margin: 12px 0 12px; padding: 9px 14px; border-radius: var(--r); background: var(--s2); font-size: 0.9rem; border-left: 3px solid var(--line-2); }
.fp-detail__state--bestaetigt { border-left-color: var(--busy); }
.fp-detail__state--angefragt { border-left-color: var(--ask); }
.fp-reslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-res { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: var(--r); background: var(--s2); border-left: 3px solid var(--line-2); }
.fp-res--angefragt { border-left-color: var(--ask); }
.fp-res--spaet { border-left-color: var(--alarm); }
.fp-res.is-now { background: var(--accent-soft); border-left-color: var(--accent); }
.fp-detail .fp-res.is-past { display: none; }
.fp-detail .fp-res.is-first-next { margin-top: 26px; position: relative; }
.fp-detail .fp-res.is-first-next::before { content: "Danach an diesem Tisch"; position: absolute; top: -22px; left: 0; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--eyebrow); }
.fp-detail .fp-res.is-next .fp-res__actions .fp-moveform, .fp-detail .fp-res.is-next .fp-res__note { display: none; }
.fp-past { margin-top: 10px; font-size: 0.8125rem; }
.fp-res__time b { display: block; font-size: 1.05rem; }
.fp-res__time span { color: var(--ink-3); font-size: 0.8125rem; font-family: var(--digits); }
.fp-res__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fp-res__who strong { font-weight: 600; }
.fp-res__meta { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--ink-2); font-size: 0.875rem; }
.fp-res__note { margin-top: 6px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--s1); font-size: 0.875rem; color: var(--ink-2); }
.fp-res__actions { display: grid; gap: 6px; margin-top: 10px; }
.fp-res__actions .btn, .fp-res__actions .inl, .fp-res__actions .inl .btn { width: 100%; min-width: 0; }
.fp-res__actions .btn { white-space: normal; text-align: center; padding-inline: 12px; }
.fp-res > * { min-width: 0; }
.fp-moveform summary { cursor: pointer; color: var(--ink-2); font-size: 0.875rem; padding: 6px 0; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.fp-moveform summary::-webkit-details-marker { display: none; }
.fp-moveform__form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fp-moveform__form select { flex: 1 1 12rem; width: auto; }
html:not(.js) .fp-moveform summary { color: var(--accent); }

.fp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fp-list__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "t w p" "t tb tb"; column-gap: 8px; align-items: baseline;
  padding: 9px 12px; border-radius: var(--r); background: var(--s2); color: var(--ink); text-decoration: none; border-left: 3px solid var(--busy);
  transition: background-color var(--fast) var(--ease); }
a.fp-list__item:hover { background: var(--hover); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.35); }
.fp-list__item--angefragt { border-left-color: var(--ask); }
.fp-list__item--ohne { border-left-color: var(--alarm); }
.fp-list__item b { grid-area: t; font-family: var(--digits); font-weight: 500; }
.fp-list__who { grid-area: w; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-list__item .fp-pill { grid-area: p; }
.fp-pill { font: 500 0.8125rem var(--digits); color: var(--ink-2); white-space: nowrap; }
.fp-list__tables { grid-area: tb; color: var(--ink-3); font-size: 0.8125rem; }
.fp-list__item--ohne .fp-list__tables { color: var(--alarm); }
.fp-stamp { font-size: 0.8125rem; }

/* Leiste beim Umsetzen per Antippen */
.fp-movebar { position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(40rem, calc(100% - 24px)); transform: translateX(-50%);
  background: var(--s1); border: 1px solid rgb(var(--accent-hi-rgb) / 0.75); border-radius: var(--r-lg); padding: 14px 18px; box-shadow: var(--shadow-float); animation: rise var(--normal) var(--ease); }
.fp-movebar__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fp-movebar__text { flex: 1 1 14rem; min-width: 0; }
.fp-movebar__who { font-weight: 600; }
.fp-movebar__msg { color: var(--ink-2); font-size: 0.92rem; }
.fp-movebar__msg.is-warn { color: var(--ask); }
.fp-movebar__actions { display: flex; gap: 8px; }

/* Tablet/Handy mit JavaScript: Detailblatt als Blatt von unten, Plan bleibt dahinter bedienbar */
@media (max-width: 1179px) {
  .js .fp-details { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; max-height: min(72vh, 40rem); overflow-y: auto; overscroll-behavior: contain;
    padding: 0 max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)); pointer-events: none; }
  .js .fp-details .fp-detail { pointer-events: auto; border-radius: var(--r-lg) var(--r-lg) var(--r) var(--r); animation: sheet var(--normal) var(--ease); padding-top: 18px; position: relative; }
  .js .fp-details .fp-detail::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
  .js .fp--moving .fp-details { display: none; }
}
@media (min-width: 700px) and (max-width: 1179px) { .js .fp-details { left: var(--rail-w); } }
@media (max-width: 699px) {
  .js .fp-details { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); max-height: min(64vh, 36rem); }
  .fp-movebar { bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom)); }
  .fp-head { gap: 8px; }
  .fp-day { flex: 1 1 100%; justify-content: space-between; }
  .fp-dayform { flex: 1; }
  .fp-dayform input { flex: 1; min-width: 0; }
  .fp-head .seg--head { display: none; }
  .fp-stats { gap: 6px; }
  .fp-stats > div { flex: 1 1 6rem; padding: 8px 10px; }
  .fp-stats b { font-size: 1.15rem; }
  .fp-stats dt { font-size: 0.75rem; }
  .fp-wide { display: none; }
  .fp-planwrap { padding: 4px; }
  .fp-legend .st { font-size: 0.75rem; }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .side, .tabs, .fab, .bar, .undo { display: none !important; }
  .app__main { margin: 0; }
}
