:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:calc(17px * var(--fs,1));color:var(--text);background:var(--bg);color-scheme:light;--navy:#12334b;--blue:#176b87;--cash:#0f4a43;--line:#dce4e9;--muted:#5b6b76;--red:#b42332;--green:#1f8a5b;--surface:#fff;--nav-height:74px;
  --bg:#f2f5f7;--text:#17212b;--surface-2:#fbfcfc;--panel:#f2f5f7;--line-soft:#e8edef;--chip:#e2e9ed;--chip-text:#43535e;--input-border:#cbd6dc;--button-text:#263c48;--tab-active:#e3eef2;--accent-text:var(--navy);--link:var(--blue);
  --soft-bg:#eef6f8;--soft-border:#bad2da;--soft-text:#155c72;--alert-bg:#fff0f0;--alert-border:#f1c8cc;--alert-text:#8c1a28;--notice-bg:#fff8dc;--notice-border:#ead99a;--notice-text:#675414}
/* Dark mode: chosen per phone under Konto → Darstellung (data-theme on <html>). */
:root[data-theme="dark"]{color-scheme:dark;--navy:#0f2a3d;--blue:#1d7896;--cash:#0d3d37;--line:#2c3942;--muted:#9aabb6;--red:#ff7b80;--green:#2a9a68;--surface:#1a2228;
  --bg:#0f1418;--text:#e6edf1;--surface-2:#1f282f;--panel:#222c33;--line-soft:#26323a;--chip:#26323a;--chip-text:#c3d0d8;--input-border:#3a4a55;--button-text:#dbe5ea;--tab-active:#23394a;--accent-text:#7cc4e0;--link:#7cc4e0;
  --soft-bg:#183442;--soft-border:#2a5466;--soft-text:#8fd0e6;--alert-bg:#3a1a1f;--alert-border:#6b2a33;--alert-text:#ffb3bb;--notice-bg:#3a3215;--notice-border:#6b5c22;--notice-text:#f0dc8c}
:root[data-theme="dark"] .product-card,:root[data-theme="dark"] .login-card{box-shadow:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100dvh}
button,input,select{font:inherit}
button{touch-action:manipulation;cursor:pointer}
.app-shell{max-width:620px;min-height:100vh;min-height:100dvh;margin:auto;background:var(--bg)}
.content{padding:14px 14px calc(var(--nav-height) + 24px + env(safe-area-inset-bottom))}
.muted,.hint{color:var(--muted);line-height:1.45}
.negative-text{color:var(--red)}
/* Mindestens 4,5:1 (Gesamtdurchgang 09.11.2026): --green bleibt für Knöpfe mit weißer Schrift. */
.positive-text{color:#17784e}
:root[data-theme="dark"] .positive-text{color:#3cb87f}

/* Header with name and balance */
.mobile-header{padding:calc(14px + env(safe-area-inset-top)) 16px 16px;background:var(--head-member);color:#fff}
.mobile-header.cashier{background:var(--head-cash)}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.header-top h1{flex:1 1 auto;margin:0;min-width:0;overflow:hidden;font-size:calc(21px * var(--fs,1));line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.logout-button{flex:0 0 auto;min-height:42px;padding:8px 10px;border:1px solid #ffffff60;border-radius:11px;background:transparent;color:#fff;font-size:calc(15px * var(--fs,1));font-weight:650}
.balance-strip{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 14px;border-radius:14px;background:#ffffff16}
.balance-strip .strip-left>span:first-child{color:#d3e4ea;font-size:calc(15px * var(--fs,1))}
.balance-strip strong{font-size:calc(29px * var(--fs,1));white-space:nowrap}
.balance-strip.negative strong{color:#ff8f94}

/* Shop */
.category-bar{display:flex;gap:8px;align-items:center;margin:2px 0 12px}
.category-row{display:flex;flex:1;gap:8px;min-width:0;overflow:auto;scrollbar-width:none}
.category{flex:1 0 auto;min-height:48px;padding:10px 18px;border:0;border-radius:999px;background:var(--chip);color:var(--chip-text);font-weight:700}
.category.active{background:var(--head-member);color:#fff}
.scan-button{flex:0 0 auto;width:54px;min-height:48px;border:0;border-radius:999px;background:var(--chip);font-size:calc(22px * var(--fs,1))}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-card{display:flex;min-height:140px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:14px 10px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:inherit;text-align:center;box-shadow:0 2px 8px #17354b0c}
.product-card:active,.qty-btn:active,.button:active{transform:scale(.97)}
.product-icon{font-size:calc(40px * var(--fs,1));line-height:1}
.product-name{font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.product-price{color:var(--link);font-size:calc(20px * var(--fs,1));font-weight:800}
.alert{margin:0 0 12px;padding:11px 13px;border:1px solid var(--alert-border);border-radius:12px;background:var(--alert-bg);color:var(--alert-text);font-size:calc(15px * var(--fs,1));line-height:1.45}

/* Bottom navigation, always at the bottom edge */
.tabs{position:fixed;bottom:0;left:50%;z-index:6;display:grid;grid-template-columns:repeat(var(--tab-count,3),minmax(0,1fr));gap:4px;width:100%;max-width:620px;transform:translateX(-50%);padding:6px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.tab{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:58px;padding:5px 2px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:calc(14px * var(--fs,1));font-weight:700}
.tab-icon{font-size:calc(22px * var(--fs,1));line-height:1.1}
.tabs[style*="--tab-count:6"] .tab{font-size:calc(12px * var(--fs,1))}
.tabs[style*="--tab-count:7"] .tab{font-size:calc(10.5px * var(--fs,1));padding-left:0;padding-right:0;white-space:nowrap;letter-spacing:-.2px}
.tabs[style*="--tab-count:7"]{gap:1px;padding-left:4px;padding-right:4px}
/* Six tabs (cash area): "Einzahlen" in one line at 360-375 px (Tester p45, 01.11.2026) */
.tabs[style*="--tab-count:6"]{gap:2px;padding-left:6px;padding-right:6px}
.tabs[style*="--tab-count:6"] .tab{padding-left:0;padding-right:0;white-space:nowrap;letter-spacing:-.2px}
@media (max-width:350px){.tabs[style*="--tab-count:6"] .tab{font-size:calc(11px * var(--fs,1))}}
.tab.active{background:var(--tab-active);color:var(--accent-text)}

/* Cards, lists, forms */
.history-card{margin-top:4px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.history-card+.history-card{margin-top:14px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.section-heading h2{margin:0;font-size:calc(19px * var(--fs,1))}
.history-list{display:grid;gap:10px;margin-top:12px}
.history-entry{padding:13px;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface-2)}
.history-top{display:flex;justify-content:space-between;gap:8px;font-weight:700}
.history-entry.reversed .history-top>span:not(.storno-tag),.history-entry.reversed>small{text-decoration:line-through;color:var(--muted)}
.storno-tag{flex:0 0 auto;margin-left:auto;padding:1px 8px;border-radius:8px;background:var(--alert-bg,#fde8ea);color:var(--alert-text,#8a1f2b);font-style:normal;font-size:calc(14px * var(--fs,1));font-weight:800;align-self:center}
.storno-tag.part{background:var(--notice-bg,#fff6d6);color:var(--notice-text,#6b5200)}
.history-entry small{display:block;margin-top:5px;color:var(--muted);font-size:calc(15px * var(--fs,1));line-height:1.4}
.history-empty{padding:18px 4px;color:var(--muted);text-align:center}
.text-input{width:100%;min-width:0;min-height:50px;padding:12px 13px;border:1px solid var(--input-border);border-radius:12px;background:var(--surface);color:var(--text);font-size:calc(17px * var(--fs,1))}
.field{display:block;margin:14px 0 6px;font-size:calc(15px * var(--fs,1));font-weight:700}
.button{min-height:50px;padding:11px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--button-text);font-weight:650}
.button.primary{border-color:var(--blue);background:var(--blue);color:#fff}
.button.secondary{border-color:var(--soft-border);background:var(--soft-bg);color:var(--soft-text)}
.button.full{width:100%}
.button:disabled{opacity:.45;cursor:not-allowed}
.password-submit{width:100%;margin-top:18px}
.account-card .muted{margin-top:0}
.notice{margin:0 0 14px;padding:12px;border:1px solid var(--notice-border);border-radius:12px;background:var(--notice-bg);color:var(--notice-text);font-size:calc(15px * var(--fs,1));line-height:1.45}
.toast{position:fixed;bottom:calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));left:50%;z-index:20;max-width:calc(100vw - 36px);transform:translateX(-50%);padding:13px 17px;border-radius:12px;background:#17384d;color:#fff;box-shadow:0 5px 18px #0003;opacity:0;pointer-events:none;transition:opacity .15s}
.toast.show{opacity:1;pointer-events:auto}
/* Kinds of messages (Ideen Punkt 13), same values as style.css at the PC */
:root{--ok:#217a59;--warn:#b45309;--warn-soft:#fff4e5;--warn-line:#f3c58a;--bad:#b42332;--info:#17384d}
:root[data-theme="dark"]{--warn-soft:#3a2a14;--warn-line:#8a5a1c}
.toast{display:flex;align-items:center;gap:10px;border-left:7px solid transparent;font-size:calc(16px * var(--fs,1))}
.toast-sign{font-size:1.2em;font-weight:800;line-height:1}
.toast-success{background:var(--ok);border-left-color:#14573e}
.toast-info{background:var(--info)}
.toast-warning{background:var(--warn-soft);color:#7a3a06;border:2px solid var(--warn);border-left-width:7px;font-weight:600}
:root[data-theme="dark"] .toast-warning{color:#ffd9a8}
.toast-error{background:var(--bad);border-left-color:#7d1520}
.ask-dialog{text-align:left}
/* "?" top right in the windows (Nutzer, 01.11.2026) */
.dialog-help{position:absolute;top:12px;right:12px;z-index:2;min-width:40px;min-height:40px;padding:4px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--blue);font-size:calc(18px * var(--fs,1));font-weight:800;box-shadow:0 1px 3px #0002}
.ask-dialog .ask-kicker,.ask-dialog h2,.booking-dialog h2,.sheet-dialog h2{padding-right:46px}
.ask-dialog form{display:grid;gap:12px}
.ask-kicker{font-size:calc(13px * var(--fs,1));font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--link)}
.ask-dialog h2{margin:0;font-size:calc(23px * var(--fs,1));line-height:1.25}
.ask-text{margin:0;color:var(--text);line-height:1.5;white-space:pre-line}
.ask-rows div.strong dd,.ask-rows div.strong dt{font-weight:800}
/* 221: Mitglied | Kasse */
.ask-group{margin:12px 4px 4px;font-size:calc(12px * var(--fs,1));font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-align:left}.ask-group:first-of-type{margin-top:4px}.ask-rows dd b{font-weight:800}.ask-rows div.strong dd{font-size:calc(21px * var(--fs,1))}
.ask-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.ask-actions .button{min-height:58px;margin:0;font-size:calc(17px * var(--fs,1));font-weight:700}
.ask-warning{border-top:8px solid var(--warn)}
.ask-warning .ask-kicker{color:var(--warn)}
.ask-warning .ask-text,.ask-warning .ask-rows div{background:var(--warn-soft);border:1px solid var(--warn-line)}
.ask-warning .ask-text{padding:12px 14px;border-radius:14px;font-weight:600}
.button.warning-action{border:2px solid var(--warn);background:var(--surface);color:var(--warn)}
/* Meine Auswertung (Ideen Punkt 16) */
.report-bars{display:grid;gap:8px}
.report-bar{display:grid;grid-template-columns:62px 1fr 78px;gap:8px;align-items:center;font-size:calc(14px * var(--fs,1))}
.report-bar b{text-align:right}
.bar-track{display:flex;height:16px;border-radius:8px;background:var(--panel);overflow:hidden}
.bar-drinks{background:#3b8fb0}.bar-snacks{background:#d8913a}.bar-tally{background:#7a5bb5}
.legend-row{display:flex;flex-wrap:wrap;gap:4px 14px}.legend-row span{white-space:nowrap}.legend-row .legend{margin-left:0}
.legend{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin:0 4px 0 8px}
.deposit-modes{grid-template-columns:repeat(3,1fr)}
.inactive-toggle{margin-top:10px}
#invite-url{font-size:calc(14px * var(--fs,1))}
.history-card .checkbox-line{display:flex;gap:10px;align-items:flex-start;margin:12px 0;line-height:1.4}
.history-entry .button.secondary{margin-top:8px;min-height:44px}
.ask-danger{border-top:8px solid var(--bad)}
.ask-actions.one{grid-template-columns:1fr}
/* Backup traffic light (Wunsch 30.10.2026) */
.header-top{gap:6px}
/* Names of 12 characters a little smaller, so they fit beside ⟳, ? and Abmelden (Punkt 7) */
.header-top h1.long{font-size:calc(19px * var(--fs,1))}
.balance-strip{flex-wrap:wrap;align-items:center}.strip-left{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
#backup-slot:empty{display:none}
.backup-pill{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 10px;border-radius:18px;border:1px solid #ffffff40;background:#ffffff18;color:#e3f5ec;font-size:calc(12px * var(--fs,1));font-weight:700;white-space:nowrap}
.backup-pill.ok span{color:#8fe3b8}
.backup-pill.warn{background:var(--warn-soft);color:#7a3a06;border-color:var(--warn)}
.backup-pill.bad{background:var(--bad);color:#fff}
/* Systemzustand for the fixed administrator (Punkt 9) */
.system-problems{text-align:left;margin:10px 0;padding-left:20px;color:var(--bad)}
.system-errors{text-align:left;display:grid;gap:8px;max-height:40vh;overflow:auto;margin:10px 0;font-size:calc(14px * var(--fs,1))}
.system-errors div{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.system-errors small{color:var(--muted);word-break:break-word}
.system-buttons{display:grid;gap:8px;margin:10px 0}
.ask-danger .ask-kicker{color:var(--bad)}
dialog .toast{width:max-content;max-width:min(420px,calc(100vw - 60px))}

/* Login */
.login-wrap{min-height:100vh;min-height:100dvh;padding-bottom:24px;background:linear-gradient(var(--head-member) 0 230px,var(--bg) 230px)}
.login-wrap.cashier{background:linear-gradient(var(--head-cash) 0 230px,var(--bg) 230px)}
.login-hero{display:flex;flex-direction:column;align-items:center;gap:4px;padding:calc(30px + env(safe-area-inset-top)) 20px 26px;color:#fff;text-align:center}
.login-hero .brand-mark{width:64px;height:64px;margin-bottom:8px;border-radius:18px;background:#ffffff22;font-size:calc(22px * var(--fs,1))}
.login-hero strong{font-size:calc(24px * var(--fs,1))}
.login-hero small{color:#d3e4ea;font-size:calc(16px * var(--fs,1))}
.brand-mark{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;background:#1b7893;color:#fff;font-size:calc(16px * var(--fs,1));font-weight:850}
.login-card{width:calc(100% - 28px);max-width:440px;margin:0 auto;padding:24px 20px 14px;border-radius:22px;background:var(--surface);box-shadow:0 10px 34px #12334b1f}
.login-card h1{margin:0 0 6px;font-size:calc(26px * var(--fs,1))}
.login-card>p{margin:0 0 6px;color:var(--muted);line-height:1.5}
.login-card .button.go{margin-top:22px}
.login-switch{margin-top:8px;font-size:calc(16px * var(--fs,1))}
/* Fingerprint login (Android app) */
.login-card .button.finger-login{display:flex;width:100%;flex-direction:column;align-items:center;gap:2px;margin:14px 0 4px;font-size:calc(19px * var(--fs,1))}
.button small.passkey-hint{display:block;font-size:calc(14px * var(--fs,1));font-weight:500;opacity:.85}
.button.primary:has(.passkey-hint){display:flex;flex-direction:column;align-items:center;gap:2px}
.finger-login small{font-size:calc(15px * var(--fs,1));font-weight:500;opacity:.85}
.login-retry{margin:4px 0 6px;padding:10px 12px;border:2px solid var(--blue);border-radius:12px;background:color-mix(in srgb,var(--blue) 10%,transparent);font-weight:650;line-height:1.4}
.finger-or{margin:12px 0 0;color:var(--muted);text-align:center;font-weight:650}
.finger-devices{margin:18px 0 6px;font-size:calc(16px * var(--fs,1))}
.finger-device{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.finger-device span{min-width:0;overflow-wrap:anywhere}
.finger-device small{display:block;margin-top:3px;color:var(--muted);font-size:calc(14px * var(--fs,1))}
.unlock-finger{display:flex;align-items:center;gap:10px;margin:14px 0 0;font-weight:650}
.unlock-finger input{width:22px;height:22px;flex:none}
.unlock-finger[hidden]{display:none}
/* Punkt 122: Haken „Künftig mit Passkey anmelden“, klein darunter die Entsperrung */
.passkey-offer{display:flex;align-items:flex-start;gap:10px;margin:14px 0 2px;font-weight:650;line-height:1.35;cursor:pointer}
.passkey-offer input{width:22px;height:22px;flex:none;margin:1px 0 0}
.passkey-offer .passkey-hint,.unlock-finger .passkey-hint{display:block;font-size:calc(14px * var(--fs,1));font-weight:500;color:var(--muted)}
.unlock-finger{align-items:flex-start}
.login-error{margin-top:14px;padding:10px 12px;border-radius:10px;background:var(--alert-bg);color:var(--alert-text);font-size:calc(15px * var(--fs,1));line-height:1.4}
.login-notice[hidden]{display:none}
.login-notice{width:calc(100% - 28px);max-width:440px;margin:16px auto 0;font-size:calc(13px * var(--fs,1))}
.loading-card{display:grid;min-height:100vh;place-content:center;justify-items:center;color:var(--muted)}
.loading-card .brand-mark{margin-bottom:8px}

/* Booking sheet slides up from the bottom */
.sheet-dialog{width:100%;max-width:620px;margin:auto auto 0;padding:22px 20px calc(18px + env(safe-area-inset-bottom));border:0;border-radius:24px 24px 0 0;background:var(--surface);color:var(--text);text-align:center}
.sheet-dialog[open]{animation:sheet-up .18s ease-out}
@keyframes sheet-up{from{transform:translateY(40px);opacity:.4}}
.sheet-dialog::backdrop,.booking-dialog::backdrop,.scanner-dialog::backdrop{background:#07151d99}
.sheet-icon{font-size:calc(52px * var(--fs,1));line-height:1}
.sheet-dialog h2{margin:8px 0 2px;font-size:calc(24px * var(--fs,1))}
.sheet-unit{margin:0;color:var(--muted)}
.qty-picker{display:flex;align-items:center;justify-content:center;gap:24px;margin:18px 0}
.qty-picker strong{min-width:52px;font-size:calc(40px * var(--fs,1))}
.qty-btn{display:grid;place-items:center;width:62px;height:62px;padding:0;border:2px solid var(--blue);border-radius:50%;background:var(--soft-bg);color:var(--link);font-size:calc(32px * var(--fs,1));font-weight:700;line-height:1}
.qty-btn.small{width:46px;height:46px;font-size:calc(24px * var(--fs,1))}
.qty-btn:disabled{opacity:.3;cursor:not-allowed}
.sheet-sum{display:grid;gap:6px;margin:0;text-align:left}
.sheet-sum div{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;background:var(--panel)}
.sheet-sum dd{margin:0;font-size:calc(18px * var(--fs,1));font-weight:800}
.button.go{width:100%;min-height:60px;margin-top:16px;border:0;border-radius:16px;background:var(--green);color:#fff;font-size:calc(20px * var(--fs,1));font-weight:800}
.button.plain{width:100%;margin-top:6px;border:0;background:none;color:var(--chip-text)}

/* Success screen after booking */
.success{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;background:var(--green);color:#fff;text-align:center;animation:fade-in .15s ease-out}
.success[hidden]{display:none}
@keyframes fade-in{from{opacity:0}}
.success-check{display:grid;place-items:center;width:120px;height:120px;border-radius:50%;background:#ffffff2a;font-size:calc(70px * var(--fs,1))}
.success h2{margin:22px 0 6px;font-size:calc(32px * var(--fs,1))}
.success p{margin:4px 0;font-size:calc(20px * var(--fs,1))}
.success .success-balance{margin-top:22px;font-size:calc(17px * var(--fs,1));opacity:.95}
.success-balance strong{display:block;font-size:calc(36px * var(--fs,1))}
.success.negative .success-balance strong{color:#ffd9dd}
.success .button{margin-top:32px;min-height:56px;padding:0 40px;border:2px solid #fff;border-radius:16px;background:transparent;color:#fff;font-size:calc(19px * var(--fs,1));font-weight:700}

/* Scanner */
.scanner-dialog{width:min(520px,calc(100vw - 24px));padding:18px;border:0;background:var(--surface);color:var(--text);border-radius:18px;box-shadow:0 20px 70px #0005}
.scanner-head{display:flex;align-items:center;justify-content:space-between}
.scanner-head h2{margin:0;font-size:calc(20px * var(--fs,1))}
.close-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--button-text);font-size:calc(24px * var(--fs,1))}
.scanner-info{margin:-6px 0 10px;color:var(--muted);font-size:calc(12px * var(--fs,1));overflow-wrap:anywhere}
.scanner-info:empty{display:none}
.torch-button{margin-left:auto;margin-right:8px;font-size:calc(20px * var(--fs,1))}
.torch-button[hidden]{display:none}
.torch-button.on{border-color:#e0b100;background:#fff1b8}
.scanner-dialog video{width:100%;max-height:50vh;margin-top:12px;border-radius:12px;background:#101820;object-fit:cover}
.scanner-dialog video[hidden]{display:none}
.scanner-dialog .hint{margin:12px 0;font-size:calc(15px * var(--fs,1))}
.scan-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}

/* Dialogs: storno and cashier unlock */
.booking-dialog{width:min(440px,calc(100vw - 28px));padding:22px;border:0;border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 20px 70px #0005}
.booking-dialog h2{margin:0 0 16px;font-size:calc(21px * var(--fs,1))}
.booking-details{display:grid;gap:10px;margin:0;padding:14px;border-radius:12px;background:var(--panel)}
.booking-details div{display:flex;justify-content:space-between;gap:12px}
.booking-details dt{color:var(--muted)}
.booking-details dd{margin:0;font-weight:750}
.booking-dialog .hint{margin:15px 0}
.booking-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}
.storno-button{margin-top:8px;min-height:44px;padding:8px 12px;font-size:calc(15px * var(--fs,1))}
.storno-lines{margin:10px 0}
.storno-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.storno-line small{display:block;color:var(--muted)}
.storno-stepper{display:flex;align-items:center;gap:10px}
.storno-stepper strong{min-width:22px;text-align:center;font-size:calc(20px * var(--fs,1))}

/* Cash-box area */
.mode-switch{display:grid;grid-template-columns:1fr 1fr;margin:0 0 14px;padding:4px;border-radius:14px;background:var(--chip)}
.mode-switch button{min-height:46px;padding:10px;border:0;border-radius:11px;background:transparent;color:var(--chip-text);font-weight:700}
.mode-switch button.active{background:var(--surface);color:var(--accent-text);box-shadow:0 1px 4px #12334b26}
/* 227: Wer gibt aus? */
.fb-who-label{margin:4px 2px 6px;font-weight:800;text-align:left}.fb-who{margin-bottom:8px}.fb-club-hint{margin:0 0 10px;text-align:left}
.member-list{display:grid;gap:8px;margin-top:12px}
.member-pick{display:flex;justify-content:space-between;align-items:center;min-height:52px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);text-align:left}
.member-pick span{font-weight:650}
/* 232: Leergut-Art: name, below small the kind, amount right in one line */
.ek-row>span{display:flex;flex-direction:column;gap:2px;min-width:0}.ek-row>span small{color:var(--muted);font-weight:500;font-size:calc(13px * var(--fs,1))}.ek-row .ek-cents{white-space:nowrap;margin-left:10px}
#ek-tile-grid{margin-top:12px}.ek-back-row{margin:0 0 10px}
.quick-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:8px;margin:10px 0 14px}
.quick-row .button{padding:10px 4px;white-space:nowrap}
/* Punkt 179 (Nutzer, 14.11.2026): Einzahlen always 3 per row and bigger, like the PC (+1 +5 +10 / +20 +30 +50). */
.deposit-quick-row{grid-template-columns:repeat(3,1fr);gap:10px}
.deposit-quick-row .button{min-height:58px;padding:14px 6px;font-size:1.25rem;font-weight:800}
.group-title{margin:18px 0 4px}
.qty-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.qty-row span small{display:block;color:var(--muted)}
.qty-row .qty-input{max-width:90px;margin:0}
.qty-pair{display:flex;gap:6px;flex:0 0 auto}
.qty-pair .text-input{width:84px;margin:0}

/* Monthly cash report of the club */
.report-block{margin-top:10px}
.report-block dt{min-width:0;overflow-wrap:anywhere}
.report-block dd{white-space:nowrap}
.report-total{padding-top:8px;border-top:1px solid var(--input-border);font-size:calc(18px * var(--fs,1))}
.report-sub dt{padding-left:14px;color:var(--muted)}.report-sub dd{color:var(--muted)}
.report-subtitle{margin:18px 0 0;font-size:calc(17px * var(--fs,1))}
.report-link{margin-top:14px}
.back-link{display:inline-flex;align-items:center;min-height:44px;margin:0 0 6px;padding:0 4px;border:0;background:none;color:var(--link);font-size:calc(17px * var(--fs,1));font-weight:700}

/* Administration (cashiers with administrator rights) */
.admin-sections{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 0 12px;padding:4px;border-radius:14px;background:var(--chip)}
.admin-sections button{min-height:44px;padding:8px 4px;border:0;border-radius:11px;background:transparent;color:var(--chip-text);font-weight:700}
.admin-sections button.active{background:var(--surface);color:var(--accent-text);box-shadow:0 1px 4px #12334b26}
.admin-item{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:56px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;text-align:left}
.admin-item span{min-width:0;font-weight:650;overflow-wrap:anywhere}
.admin-item small{display:block;margin-top:2px;color:var(--muted);font-size:calc(14px * var(--fs,1));font-weight:500}
.admin-item b{flex:0 0 auto;white-space:nowrap}
.admin-item.inactive{opacity:.6}
.admin-dialog{max-height:calc(100dvh - 24px);overflow:auto}
.admin-dialog .check-line{display:flex;align-items:center;gap:10px;margin:14px 0 0;font-weight:650}
.admin-dialog .check-line input{width:22px;height:22px}
/* Rights of a cashier, as at the PC */
.rights-field{margin:16px 0 0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:14px}
.rights-field legend{padding:0 6px;font-weight:800}
.rights-templates{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.rights-templates .button{min-height:42px;padding:6px 12px}
.rights-group{margin-top:10px;padding-top:6px;border-top:1px solid var(--line-soft)}
.admin-dialog .rights-group-head{margin-top:6px}
.rights-list{padding-left:20px}
.admin-dialog .right-line{align-items:flex-start;margin-top:10px}
.admin-dialog .right-line input{flex:0 0 auto;margin-top:1px}
.right-line span{display:grid;gap:2px}
.right-line small{color:var(--muted);font-weight:500;line-height:1.35}
.rights-field.all .rights-list,.rights-field.all .rights-group-head{opacity:.55}
.rights-admin-note{display:none}
.rights-field.all .rights-admin-note{display:block;font-weight:700}
.admin-extra{margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}
.admin-extra h3{margin:0;font-size:calc(17px * var(--fs,1))}
.admin-extra .button{width:100%;margin-top:12px}
.form-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.form-pair input[type=date]{padding-left:8px;padding-right:6px;font-size:calc(15px * var(--fs,1))}

/* Second confirmation for bookings with surcharge */
.warning-dialog{border-top:8px solid var(--red);text-align:center}
.warning-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 10px;border-radius:50%;background:var(--alert-bg);color:var(--red);font-size:calc(38px * var(--fs,1));font-weight:900}
.warning-dialog h2{margin:0 0 10px;color:var(--red);font-size:calc(24px * var(--fs,1))}
.warning-text{margin:0 0 14px;line-height:1.45}
.warning-dialog .booking-details{text-align:left}
.warning-question{margin:16px 0 4px;font-weight:700}
.button.danger{min-height:58px;margin-top:10px;border-color:var(--red);background:var(--red);color:#fff;font-size:calc(18px * var(--fs,1));font-weight:800}
.report-choices{display:grid;gap:10px}
.report-choice{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;text-align:left}
.report-choice:active{transform:scale(.98)}
.link-button{padding:0;border:0;background:none;color:var(--accent-text);font:inherit;font-weight:700;text-decoration:underline;text-align:left}
.flagged-entry{border-left:4px solid var(--red);padding-left:10px}
.report-choice-icon{font-size:calc(30px * var(--fs,1));line-height:1}
.report-choice-text{flex:1;display:flex;flex-direction:column;gap:2px}
.report-choice-text strong{font-size:calc(18px * var(--fs,1))}
.report-choice-text small{color:var(--muted);font-size:calc(15px * var(--fs,1))}
.report-choice-arrow{font-size:calc(28px * var(--fs,1));color:var(--muted)}
.report-count{margin:0 0 10px;color:var(--chip-text);font-size:calc(15px * var(--fs,1))}

/* Wareneingang: Kisten in verschiedenen Größen */
.crate-rows{margin:4px 0 6px}
.crate-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.crate-row .text-input{width:84px;margin:0}
.crate-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}

/* Einzahlen: Umschalter Mitglied | Barkasse */
.deposit-modes{margin-bottom:12px}

/* Barkasse: Münzen und Scheine zählen */
.coin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.coin{display:flex;flex-direction:column;gap:2px;font-weight:600;font-size:calc(15px * var(--fs,1))}
.coin .text-input{margin:0}

/* Freigetränk für Arbeit */
.free-drink-button{margin:0 0 12px}

/* Produktmodus Einfach / Ausführlich */
.mode-switch{margin-bottom:10px}
.mode-switch .admin-sections{margin:4px 0}
.admin-sections.four{grid-template-columns:repeat(2,1fr)}
/* Listen & Strichliste (Kassen-Bereich → Berichte) */
.small-hint{margin:0 0 12px;color:var(--muted);font-size:calc(14px * var(--fs,1));line-height:1.45}
.muted-text{color:var(--muted);font-size:calc(13px * var(--fs,1))}
.tally-page-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.tally-page-row strong{display:block}.tally-page-row small{color:var(--muted)}
.member-asleep{opacity:.75}.member-asleep small{display:inline;margin-left:6px;font-weight:600;color:var(--muted)}
.tally-blocked{margin:6px 0 0;color:#7a3a06;font-weight:600}
:root[data-theme="dark"] .tally-blocked{color:#f0b46a}
.tally-new-row{flex-wrap:wrap}.tally-new-blocked{flex-basis:100%}
.tally-earlier{padding:12px 0;border-top:1px solid var(--line)}
.tally-earlier-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.tally-earlier-head strong{display:block}.tally-earlier-head small{color:var(--muted)}
.tally-earlier-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
/* Offline view of the browser (Nutzer, 01.11.2026) */
.offline-banner{margin:0 0 14px;padding:14px;border:2px solid var(--warn);border-radius:14px;background:var(--warn-soft);color:#7a3a06;font-size:calc(17px * var(--fs,1))}
.offline-banner .button{margin-top:10px}
.offline-hint{margin:0 0 12px}
.offline-amount{margin:0 0 8px;font-size:calc(30px * var(--fs,1));font-weight:800}
.tally-next{margin:12px 0;padding:12px;border-radius:12px;background:var(--surface-2,#eef6f0);border:1px solid var(--line)}.tally-next p{margin:0 0 10px}
.tally-new-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.tally-new-row strong{display:block}.tally-new-row small{color:var(--muted)}.tally-new-actions{display:flex;gap:6px;flex-shrink:0}
.tally-photo-button{position:relative;white-space:nowrap;cursor:pointer}
.tally-page-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
/* Printed always light, also from the dark theme (Nutzer, 31.10.2026): white paper, black text, only debts red. */
@media print{*{background-color:transparent!important;color:#000!important;box-shadow:none!important;border-color:#bbb!important;text-shadow:none!important}.negative-text,.negative-text *{color:#b42332!important}.bar-track{background:#eee!important}.bar-drinks{background:#3b8fb0!important}.bar-snacks{background:#d8913a!important}.bar-track,.bar-track i{-webkit-print-color-adjust:exact;print-color-adjust:exact}html{background:#fff!important}.mobile-header,.tabs,.back-link,.report-print,.toast,button:not(.link-button),select,input,label.field,.form-pair,.booking-actions,.date-range{display:none!important}body,.app-shell{background:#fff!important;color:#000!important;padding:0!important;min-height:0!important}.history-card{box-shadow:none!important;border:0!important;margin:0 0 4mm!important;padding:0!important;break-inside:auto}.history-entry{break-inside:avoid}.link-button{color:#000!important;text-decoration:none!important;padding:0!important}}
.mo-price-label{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:calc(13px * var(--fs,1));color:var(--muted)}.mo-price-label .text-input{width:92px;min-height:34px;padding:4px 8px}
.purchase-fold{margin:0 0 14px}.purchase-fold>summary{cursor:pointer;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-weight:700;color:var(--blue);list-style-position:inside}.purchase-fold[open]>summary{margin-bottom:10px}
.buy-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--line)}.buy-name small{display:block;color:var(--muted);font-size:calc(14px * var(--fs,1))}
.buy-inputs{display:flex;align-items:flex-end;gap:6px}.buy-inputs .crate-row{margin:0}.buy-field{display:flex;flex-direction:column;gap:2px;font-size:calc(12px * var(--fs,1));color:var(--muted)}.buy-field .text-input{width:72px;margin:0;text-align:center}.buy-plus{padding-bottom:12px;color:var(--muted)}
.buy-item .purchase-total{grid-column:2;justify-self:end;font-size:calc(14px * var(--fs,1));color:var(--muted);font-weight:600}
.tally-shoot{display:flex;justify-content:center;align-items:center;width:100%;box-sizing:border-box;margin:14px 0 6px}
.danger-text{color:var(--red)}
.photo-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:var(--surface);color:var(--text);display:flex;flex-direction:column}
.photo-dialog:not([open]){display:none}
.photo-dialog::backdrop{background:#07151d99}
.photo-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;border-bottom:1px solid var(--line)}
.photo-dialog-body{flex:1;overflow:auto;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
.photo-summary{margin:0 0 6px}.photo-unsure{color:#a07800;font-weight:700}
.tally-legend-phone{margin:0 0 10px;font-size:calc(14px * var(--fs,1));color:var(--muted)}.tally-legend-phone i{display:inline-block;width:12px;height:12px;border-radius:3px;margin:0 4px 0 8px;vertical-align:-1px}.tally-legend-phone i:first-child{margin-left:0}
.photo-zoom{display:flex;gap:8px;margin:0 0 8px}.photo-zoom .button{flex:1;min-height:40px}.photo-zoom .button.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.photo-canvas-wrap{overflow:auto;border-radius:6px}.photo-canvas{display:block;width:100%;height:auto;touch-action:pan-x pan-y pinch-zoom;cursor:pointer}
.photo-saved{min-height:1.4em;margin:6px 0 0}
.photo-dialog-body img{display:block;width:100%;height:auto;border-radius:6px;cursor:zoom-in}
.photo-dialog-body img.zoomed{width:250%;max-width:none;cursor:zoom-out}
.tally-file,.probe-file,.interim-file,.next-shot-file{position:absolute;inset:0;opacity:0;cursor:pointer}
a.report-choice{text-decoration:none;color:inherit}
a.button{display:flex;align-items:center;justify-content:center;text-decoration:none}
/* Schrift (Ideen Punkt 17): every font-size is multiplied by --fs (1, 1.25); set per member, the cash box stays normal. */
:root[data-font="large"]{--fs:1.25;--nav-height:96px}
:root[data-font="large"] .tab{min-height:68px}
.admin-sections.two{grid-template-columns:repeat(2,1fr)}
.payees{margin:4px 0 2px;font-size:calc(17px * var(--fs,1));font-weight:700;line-height:1.5}
.view-subheading{margin:14px 0 8px;font-size:calc(16px * var(--fs,1))}
/* Einfache Ansicht: big tiles with plus and minus, one button books everything. */
.simple-grid{display:grid;gap:12px}
.simple-item{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:14px;border:2px solid var(--line);border-radius:18px;background:var(--surface)}
.simple-item.picked{border-color:var(--blue)}
.simple-item .product-icon{font-size:calc(40px * var(--fs,1))}
.simple-name{display:flex;flex:1 1 90px;flex-direction:column;gap:3px;min-width:0}
.simple-name strong{font-size:calc(21px * var(--fs,1));overflow-wrap:anywhere}
.simple-name span{color:var(--link);font-size:calc(19px * var(--fs,1));font-weight:700}
.simple-stepper{display:flex;align-items:center;gap:8px;margin-left:auto}
.simple-stepper .qty-btn{width:56px;height:56px;font-size:calc(30px * var(--fs,1))}
.simple-stepper .qty-btn:disabled{opacity:.35}
.simple-qty{min-width:30px;text-align:center;font-size:calc(26px * var(--fs,1))}
.simple-actions{position:sticky;bottom:calc(var(--nav-height) + 10px + env(safe-area-inset-bottom));z-index:4;display:grid;gap:6px;margin-top:14px;padding:8px;border-radius:18px;background:var(--bg)}
.simple-book{min-height:64px;font-size:calc(21px * var(--fs,1))}
/* With bigger letters the button would cover the tiles: it stays below the list. */
:root[data-font="large"] .simple-actions{position:static}
.simple-book:disabled{border-color:var(--line);background:var(--chip);color:var(--chip-text)}
.simple-clear{min-height:48px;font-size:calc(17px * var(--fs,1))}
.simple-free{min-height:60px;margin:0 0 12px;font-size:calc(18px * var(--fs,1))}
.simple-balance{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 16px;text-align:center}
.simple-balance span{color:var(--muted);font-size:calc(18px * var(--fs,1))}
.simple-balance strong{font-size:calc(52px * var(--fs,1));line-height:1.1}
.simple-balance.negative strong{color:var(--red)}
.simple-balance small{color:var(--red);font-size:calc(17px * var(--fs,1))}
.simple-list .history-entry{font-size:calc(18px * var(--fs,1))}
.simple-list .history-entry small{font-size:calc(16px * var(--fs,1))}
.storno-big{width:100%;min-height:58px;margin-top:10px;font-size:calc(18px * var(--fs,1))}
.content.simple~.tabs .tab{font-size:calc(16px * var(--fs,1))}
/* Long labels (Auswertung) break with a hyphen instead of running into the next tab. */
.tab{min-width:0;overflow-wrap:anywhere;hyphens:auto;text-align:center;line-height:1.15}
.content.simple~.tabs[style*="--tab-count:4"] .tab{font-size:calc(14px * var(--fs,1))}
.content.simple~.tabs .tab-icon{font-size:calc(24px * var(--fs,1))}
/* Geld anfordern (Ideen Punkt 14) */
.request-note{display:grid;gap:8px}
.request-note.bring{background:var(--warn-soft);border-color:var(--warn-line)}
.request-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.request-actions .button{margin:0;min-height:48px}
.request-tile:disabled{opacity:.5}

/* Bestellungen (Ideen Punkt 21) */
.order-entry .order-lines{margin:6px 0;padding-left:18px;line-height:1.5}.order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.order-actions .button{flex:1 1 auto;min-width:0}
.order-form .qty-pair .text-input{max-width:92px}

/* Druck kompakt: Einträge als Tabellenzeilen (Name · Details · Betrag) statt
   Karten, damit Berichte auf wenige A4-Seiten passen. */
@media print{
  @page{size:A4;margin:12mm}
  html,body{font-size:10pt!important}
  .app-shell{max-width:none!important}
  .section-heading{margin:0 0 1.5mm!important}
  .section-heading h2,.report-subtitle{font-size:12pt!important;margin:3mm 0 1.5mm!important}
  .hint,.report-count{font-size:9pt!important;margin:0 0 2mm!important}
  .history-card+.history-card{margin-top:0!important}
  .history-list{display:block!important;margin-top:0!important}
  .history-entry{display:grid!important;grid-template-columns:minmax(30%,auto) 1fr auto;column-gap:4mm;align-items:baseline;padding:.8mm 0!important;border:0!important;border-bottom:.2mm solid #ccc!important;border-radius:0!important;font-size:10pt!important}
  .history-top{display:contents!important;font-weight:600}
  .history-top>:first-child{grid-column:1;grid-row:1}
  .history-top>:last-child:not(:first-child){grid-column:3;grid-row:1;text-align:right;white-space:nowrap}
  .storno-tag{grid-column:1;grid-row:2;justify-self:start;padding:0!important;font-size:8.5pt!important}
  .history-entry small{grid-column:2;margin:0!important;font-size:8.5pt!important;line-height:1.3;color:#444!important}
  .booking-details{gap:0!important;padding:0!important}
  .booking-details div{padding:.6mm 0;border-bottom:.2mm solid #e2e2e2}
  .booking-details dt{color:#000!important}
  .report-total{font-size:11pt!important}
  .report-columns{display:block!important;columns:2;column-gap:10mm!important}
  .report-columns>div{break-inside:avoid}
  .notice{display:none!important}
}

/* Anleitung (mobile.js showHelp) */
.help-choices{display:grid;gap:8px}
.help-dialog{border:0;padding:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;background:#fff}
.help-dialog[open]{display:flex;flex-direction:column}
.help-dialog .help-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #dce4e9;background:#fff}
.help-dialog .help-bar strong{margin-right:auto}
.help-dialog iframe{flex:1;width:100%;border:0}
.help-button{flex:0 0 auto;min-width:34px;min-height:42px;padding:6px 7px;border:1px solid #ffffff60;border-radius:11px;background:transparent;color:#fff;font-size:calc(18px * var(--fs,1));font-weight:750}
/* Aktualisieren next to „?“ (Nutzer, 01.11.2026) */
/* Hinweise (Punkt 23): plain without, yellow or red with the number */
.notice-button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:34px;min-height:42px;padding:4px 5px;border:1px solid #ffffff60;border-radius:11px;background:transparent;color:#fff;font-size:calc(17px * var(--fs,1));line-height:1}
.notice-button.none span{opacity:.75}
.notice-button.warn{background:#ffc928;border-color:#ffc928;color:#1a1a1a}
.notice-button.bad{background:#d42a3a;border-color:#d42a3a;color:#fff}
.notice-button b{font-size:calc(17px * var(--fs,1));font-weight:900;color:inherit}
.logout-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:42px;padding:4px 5px;border:1px solid #ffffff60;border-radius:11px;background:transparent;color:#fff}
#notice-slot:empty{display:none}
.notice-list{display:grid;gap:8px;text-align:left;max-height:60vh;overflow:auto}
.notice-row{padding:10px 12px;border:1px solid var(--line);border-left:6px solid var(--warn);border-radius:12px}
.notice-row.bad{border-left-color:var(--bad)}
.notice-row.seen{opacity:.6}
.notice-more{justify-self:start;margin:4px 0 0;padding:6px 2px;border:0;background:none;color:var(--muted);font:inherit;font-size:calc(14px * var(--fs,1));text-decoration:underline}
.notice-old{display:grid;gap:8px}
.notice-old[hidden]{display:none}
.notice-none{margin:0}
.notice-row p{margin:0 0 6px;line-height:1.35}
.notice-actions{display:flex;flex-wrap:wrap;gap:8px}
.logout-big{min-height:52px}
/* Punkt 128: Abmelden allein, rot umrandet */
.logout-wrap{margin:4px 0 14px}
.button.logout-big{background:transparent;border:2px solid var(--red);color:var(--red)}
.refresh-button{flex:0 0 auto;min-width:34px;min-height:42px;padding:4px 5px;border:1px solid #ffffff60;border-radius:11px;background:transparent;color:#fff;font-size:calc(22px * var(--fs,1));font-weight:700;line-height:1}
.refresh-button span{display:inline-block}
.refresh-button.spinning span{animation:refresh-spin .8s linear infinite}
@keyframes refresh-spin{to{transform:rotate(360deg)}}
.login-help{display:block;margin:6px auto 0;background:none;border:0;color:#57717e;text-decoration:underline;font-size:14px;padding:10px 0}

/* Freibier (mobile.js freibierHtml): big and warm on top of Buchen; paying
   for a drink yourself is only a small link while it runs. */
.freibier-card{margin:0 0 14px;padding:14px;border:3px solid #d99a00;border-radius:16px;background:#fff4d1;color:#4a3400}
.freibier-head{display:flex;gap:12px;align-items:center}
.freibier-icon{font-size:calc(38px * var(--fs,1));line-height:1}
.freibier-head div{display:flex;flex-direction:column;gap:2px;min-width:0}
.freibier-head strong{font-size:calc(21px * var(--fs,1));line-height:1.2}
.freibier-head span{font-weight:600}
.freibier-head small{font-size:calc(14px * var(--fs,1))}
.freibier-take{width:100%;min-height:58px;margin-top:12px;font-size:calc(20px * var(--fs,1));font-weight:800;background:#9a5b00;border-color:#7a4800;color:#fff}
.freibier-end{width:100%;margin-top:8px}
/* Wer hat schon? (Punkt 20) */
.freibier-who{width:100%;margin-top:8px}
.ends-time{margin-top:8px}
/* Freibier window, fits a phone without scrolling (Punkt 22, approved draft) */
.fb-window{text-align:left;padding-top:14px}
.fb-window form{display:block}
.fb-window .fb-title{margin:0 0 4px;font-size:calc(22px * var(--fs,1))}
.fb-window .field{display:block;margin:5px 0 2px}
.fb-window .text-input{min-height:46px;padding-top:8px;padding-bottom:8px}
.fb-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ends-time{display:block}
.ends-time .text-input{width:auto}
.ends-time.pale .text-input{opacity:.45}
.fb-window .ends-hint{margin:4px 0 0;min-height:1.2em}
.fb-price{margin:6px 0 5px;color:var(--muted);font-size:calc(15px * var(--fs,1));line-height:1.35}
.fb-go{min-height:52px;font-size:calc(19px * var(--fs,1))}
.fb-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.fb-actions .button{min-height:48px}
.ends-hint{margin:6px 0 0;font-weight:700}
.freibier-wait{margin:8px 0 0;font-weight:800;font-size:calc(17px * var(--fs,1))}
.freibier-rule{margin:8px 0 0;font-size:calc(14px * var(--fs,1))}
.freibier-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.who-text{font-weight:700;margin:0 0 10px}
.who-list{display:grid;gap:6px;max-height:55vh;overflow:auto;text-align:left}
.who-row{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.who-time{color:var(--muted);font-variant-numeric:tabular-nums}
.who-name{font-weight:700}
.who-qty{grid-column:2}
.who-cancelled .who-name,.who-cancelled .who-qty{text-decoration:line-through;color:var(--muted)}
.who-paper{grid-column:1/3}
.cashier-freibier{margin:0 0 14px}
.freibier-blocked{margin:6px 0 14px}
/* "Bitte prüfen" in the cash area (Punkt 6) */
.check-card{border:2px solid var(--warn);background:var(--warn-soft)}
.check-card h2{color:#7a3a06}
.check-row+.check-row{margin-top:12px;padding-top:12px;border-top:1px solid #0000001a}
.check-row p{margin:0 0 8px}
.check-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.paid-drinks{margin:14px 0 0;min-height:52px}

/* Auge an Feldern für ein neues Passwort (Nutzer, 02.11.2026) */
.pw-wrap{position:relative;display:block}
.pw-wrap .text-input{padding-right:58px}
.pw-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:44px;height:38px;border:1px solid var(--input-border);border-radius:10px;background:var(--soft-bg);color:var(--text);font-size:20px;line-height:1;cursor:pointer;opacity:.75}
.pw-eye.on{opacity:1;border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}

/* Pflicht-Haken beim Einladungslink: groß und gut antippbar */
.invite-ack{display:flex;gap:12px;align-items:center;margin:14px 0;padding:12px 14px;border:2px solid var(--warn);border-radius:12px;background:var(--warn-soft);font-weight:700;line-height:1.35;cursor:pointer}
.invite-ack input{flex:0 0 auto;width:28px;height:28px;margin:0;accent-color:var(--warn)}

/* Bemerkung Pflicht bei Ausgabe/Einnahme (0. A+B) */
.note-required{display:inline-block;margin-left:4px;padding:1px 8px;border-radius:999px;background:var(--warn);color:#fff;font-size:.8em;font-weight:800}
.text-input.note-must{border:2px solid var(--warn)}
/* Einkauf neu (Projektstand 0. E): Getränke | Snacks, Leergut, bezahlt, Belege */
.buy-groups{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.buy-group{display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;border:2px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);font:inherit;font-size:calc(19px * var(--fs,1));font-weight:800;cursor:pointer}
.buy-group span{font-size:1.3em}
.buy-group.active{border-color:var(--blue);background:var(--blue);color:#fff}
.buy-line{display:grid;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}
.buy-line .buy-inputs{flex-wrap:wrap}
.buy-line .buy-field .text-input{width:88px}
.buy-start{display:grid;gap:8px;margin:6px 0 10px}
.empties-block{margin-top:6px}
.empties-sum,.order-estimate{margin:10px 0 0;text-align:right;font-size:calc(16px * var(--fs,1))}
.bill-block{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--soft-bg)}
.bill-sum{margin:0 0 6px}
.bill-note{margin:6px 0 0;font-weight:700}
.bill-reasons{margin-top:8px}
.bill-reasons .check-line{display:flex;gap:10px;align-items:center;min-height:44px;padding:6px 10px;margin:6px 0;border:2px solid var(--warn);border-radius:12px;background:var(--warn-soft);font-weight:700}
.bill-reasons input{width:22px;height:22px;accent-color:var(--warn)}
.receipts-block{margin-top:10px}
.receipt-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.receipt-shoot{position:relative;overflow:hidden;text-align:center}
.receipt-shoot input{position:absolute;inset:0;opacity:0;cursor:pointer}
.receipt-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.receipt-thumb{position:relative;width:76px;height:76px;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.receipt-thumb img{width:100%;height:100%;object-fit:cover}
.receipt-remove{position:absolute;top:2px;right:2px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-weight:800;cursor:pointer}
#print-sheet{display:none}
@media print{
  body.print-order>*:not(#print-sheet){display:none!important}
  body.print-order #print-sheet{display:block!important;font-size:11pt}
  #print-sheet h1{font-size:18pt;margin:0 0 4mm}
  #print-sheet table{width:100%;border-collapse:collapse;margin:4mm 0}
  #print-sheet th,#print-sheet td{border-bottom:1px solid #999;padding:2mm;text-align:left}
  #print-sheet .num{text-align:right}
  #print-sheet .print-sum{font-weight:700}
  /* Punkt 272 (wie PC bd92210b): the order printed big; row height and font per number of sorts (printOrder) */
  #print-sheet h1{font-size:28pt}
  #print-sheet>p{font-size:14pt;margin:0 0 4mm}
  #print-sheet table{font-size:var(--order-font,18pt)}
  #print-sheet th{font-size:13pt;border-bottom:2px solid #000;padding:2mm 3mm;text-transform:none;letter-spacing:0;color:#000;background:none;font-weight:700}
  #print-sheet .order-note{font-size:14pt;margin:4mm 0 0}
  #print-sheet td{height:var(--order-row,14mm);padding:0 3mm;border-bottom:1px solid #777;font-weight:600;vertical-align:middle}
  #print-sheet td.num,#print-sheet th.num{width:28mm;text-align:right}
  #print-sheet td.num{font-weight:800}
}

/* Einkaufs-Fenster als Formular (Nutzer, 03.11.2026): links, groß, volle Breite */
.ask-form .ask-kicker{display:none}
.ask-form .ask-kicker.shown{display:block;text-align:left}
.ask-form h2,.ask-form .ask-text{text-align:left}
.ask-form .order-form{text-align:left}
.order-form .buy-line{position:relative;padding:12px 0}
.order-form .buy-line .buy-name strong{display:block;padding-right:44px;font-size:calc(19px * var(--fs,1))}
.order-form .buy-line .buy-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px}
.order-form .buy-line .buy-field{font-size:calc(14px * var(--fs,1));font-weight:700;color:var(--text)}
.order-form .buy-line .buy-field small{font-weight:400;color:var(--muted)}
.order-form .buy-line .buy-field .text-input{width:100%;text-align:right}
.sort-remove{position:absolute;top:8px;right:0;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-weight:800;cursor:pointer}
.sort-add{display:block;margin:10px 0 4px}
.sort-add-select{border:2px dashed var(--blue);color:var(--blue);font-weight:800;background:var(--soft-bg)}
.order-form .empties-block,.order-form .receipts-block{margin-top:14px;padding:4px 12px 12px;border:2px solid var(--line);border-radius:14px}
.order-form .bill-block{margin-top:14px;border-width:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Abstände und gleiche Kästchen (Nutzer, 03.11.2026): nichts klebt aneinander,
   Kacheln einer Liste sind gleich hoch. :where hält die Regeln schwach, damit
   eigene Abstände (z. B. .button.go) weiter gelten. */
:where(.history-card,.order-form,.sheet-dialog form,.login-card)>:where(.text-input,.pw-wrap)+:where(.text-input,.pw-wrap){margin-top:10px}
:where(.history-card,.order-form,.sheet-dialog form,.login-card)>:where(.text-input,.pw-wrap)+:where(.button,button){margin-top:14px}
:where(.history-card,.content)>:where(.button.full)+:where(.text-input){margin-top:10px}
.content>.button+.admin-sections{margin-top:12px}
.mode-switch>.hint{grid-column:1/-1;margin:6px 8px}
.report-choices,.help-choices{grid-auto-rows:1fr}
.tab{white-space:nowrap;overflow:hidden}
@media (max-width:520px){.app-shell .tabs[style*="--tab-count"]:not([style*="--tab-count:5"]):not([style*="--tab-count:6"]):not([style*="--tab-count:7"]) .tab{font-size:min(calc(14px * var(--fs,1)),14px)}}
@media (max-width:350px){.app-shell .tabs[style*="--tab-count"]:not([style*="--tab-count:5"]):not([style*="--tab-count:6"]):not([style*="--tab-count:7"]) .tab{font-size:min(calc(14px * var(--fs,1)),12px)}}

/* Einzahlen vormerken (Punkt 36) */
.pledge-new{margin:0 0 12px;min-height:58px;font-size:calc(18px * var(--fs,1))}
.pledge-mine{margin:0 0 12px;border:2px solid var(--blue)}
.booking-actions>.button{margin-top:0;min-height:50px}

/* Übergabe im Kasse-Reiter (Punkt 35) */
.mode-count{display:inline-block;min-width:22px;margin-left:4px;padding:0 6px;border-radius:11px;background:var(--red);color:#fff;font-size:calc(13px * var(--fs,1));line-height:22px}
.transfer-modes{margin-top:4px}
/* Abstand zwischen Karten und dem, was lose dazwischen steht (Knopf
   „Als PDF speichern“, Hinweise, Umschalter), Nutzer 03.11.2026 */
.content>.history-card+:not(.history-card),.content>:not(.history-card)+.history-card{margin-top:14px}
.content>.button.report-print+.small-hint{margin:6px 0 0}
@media (max-width:520px){.app-shell .tabs[style*="--tab-count"][style*="--tab-count:5"] .tab{font-size:min(calc(12.5px * var(--fs,1)),12.5px)}}
/* Tester tx-162: bei 360 px ragte „Auswertung“ 1 px über das Feld hinaus */
@media (max-width:380px){.app-shell .tabs[style*="--tab-count"][style*="--tab-count:5"] .tab{font-size:min(calc(12px * var(--fs,1)),12px);letter-spacing:-.3px}}
@media (max-width:350px){.app-shell .tabs[style*="--tab-count"][style*="--tab-count:5"] .tab{font-size:min(calc(14px * var(--fs,1)),10px)}}
.content>.back-link+.report-print{margin-top:10px}
.content>.button.report-print+.button.report-print{margin-top:8px}

/* Zusatz Punkt 41: einfache Ansicht, ein Tippen = 1 Stück */
.simple-tap{width:100%;flex-wrap:nowrap;text-align:left;font:inherit;color:var(--text);cursor:pointer;box-shadow:0 2px 0 var(--line)}
.simple-tap:active{transform:translateY(1px);border-color:var(--blue)}
.simple-tap:disabled{opacity:.6}
.simple-tap .tap-badge{flex:none;margin-left:auto;min-width:64px;padding:12px 14px;border-radius:14px;background:var(--blue);color:#fff;text-align:center;font-size:calc(22px * var(--fs,1));font-weight:800}
.simple-tap-hint{margin:0 0 8px}

/* Kasse gehört jetzt zu einem Mitglied (Weg B): deutlich */
.linked-member{border:2px solid var(--blue)}
.linked-member .button{margin-top:10px}
.fa-qty{margin-top:8px}

/* Snacks einbuchen: Suche, ohne Menge der Betrag neben dem Namen */
.pack-search{margin:10px 0 4px}
.buy-line[hidden],.pack-none[hidden],.pack-head[hidden]{display:none}
.pack-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:6px 0}
.pack-line>strong,.pack-line>.buy-name{flex:1 1 auto;min-width:0;max-width:100%}
.pack-line .pack-euro,.pack-fields{margin-left:auto}
.pack-fields{display:grid;grid-template-columns:66px 86px;gap:8px}
.pack-line strong{overflow-wrap:break-word;hyphens:auto;font-size:calc(18px * var(--fs,1))}
.pack-euro{display:flex;align-items:center;gap:6px;font-size:calc(17px * var(--fs,1));font-weight:700}
.pack-euro .text-input{width:112px;margin:0;border-width:2px;text-align:right;font-weight:700}
.pack-qty{grid-template-columns:minmax(0,1fr) 66px 86px;gap:8px}
.pack-head{display:grid;align-items:end;margin-top:6px;font-size:calc(13px * var(--fs,1));font-weight:700;color:var(--muted);text-align:right}
.pack-head span:first-child{grid-column:2}
.pack-qty .text-input{margin:0;padding:10px 8px;border-width:2px;text-align:right;font-weight:700}

/* Große Schrift: keine Seite steht waagerecht über */
button,.button{min-width:0}
.member-pick>*{min-width:0;overflow-wrap:anywhere}
@media (max-width:520px){.tabs[style*="--tab-count:6"] .tab{font-size:min(calc(12px * var(--fs,1)),12px)}}
@media (max-width:350px){.tabs[style*="--tab-count:6"] .tab{font-size:min(calc(11px * var(--fs,1)),11px)}}
:root[data-font="large"] .section-heading{flex-wrap:wrap}
:root[data-font="large"] .finger-device{flex-wrap:wrap}
.finger-device .button{flex:none}
/* Lange Pfade und Adressen brechen um */
body{overflow-wrap:break-word}

/* "Lädt …" (Nutzer, 08.11.2026): locks everything while the page waits for the Kasse. */
.busy-overlay{position:fixed;inset:0;z-index:19;display:none;align-items:center;justify-content:center;padding:24px;background:#0b1a2499;cursor:wait;touch-action:none}
.busy-overlay.show{display:flex;animation:fade-in .15s ease-out}
.busy-card{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:220px;max-width:340px;padding:26px 30px;border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 20px 70px #0006;text-align:center}
.busy-card b{font-size:calc(26px * var(--fs,1))}
.busy-slow{font-size:calc(16px * var(--fs,1));line-height:1.4}
.busy-spinner{width:46px;height:46px;border:5px solid #9fb3c040;border-top-color:#2f7fb5;border-radius:50%;animation:refresh-spin .8s linear infinite}
@media (prefers-reduced-motion:reduce){.busy-spinner{animation-duration:2.4s}}

/* Einlesen mit KI (Punkt 54): waiting window, what it was read with, Claude's numbers. */
.ai-wait-dialog{border:0;padding:0;background:transparent;max-width:none;overflow:visible}
.ai-wait-dialog::backdrop{background:#0b1a24aa}
.ai-wait-card .ai-wait-sheet{font-weight:700}
.ai-wait-card .ai-wait-time{font-variant-numeric:tabular-nums}
.ai-wait-card .button{margin-top:4px;min-width:200px}
.read-with{margin:0 0 6px;padding:8px 12px;border-radius:10px;background:var(--surface-2,#eef2f5);border-left:5px solid #7b8a95;font-size:calc(16px * var(--fs,1))}
.read-with-ai{background:#eaf2ff;border-left-color:#1f5fbf;color:#123a73}
.ai-type,.ai-read-list .ai-pay{font-family:ui-monospace,Consolas,"Courier New",monospace;color:#1f5fbf;font-weight:700}
.ai-read-list{margin:14px 0 4px;padding:12px;border:2px solid #1f5fbf55;border-radius:12px;background:#f4f8ff}
.ai-read-list h3{margin:0 0 8px;color:#123a73}
.ai-read-list h4{margin:12px 0 4px}
.ai-read-list table{width:100%;border-collapse:collapse}
.ai-read-list th,.ai-read-list td{padding:5px 6px;border-bottom:1px solid #1f5fbf22;text-align:right}
.ai-read-list th:first-child{text-align:left}
.ai-read-list th small{display:block;font-weight:400;color:var(--muted)}
.ai-read-list ul{margin:0;padding-left:18px}
.ai-read-list li{margin:4px 0}
:root[data-theme="dark"] .read-with-ai{background:#16304f;color:#cfe2ff;border-left-color:#6ea8ff}
:root[data-theme="dark"] .ai-read-list{background:#14243a;border-color:#6ea8ff66}
:root[data-theme="dark"] .ai-read-list h3{color:#cfe2ff}
:root[data-theme="dark"] .ai-type,:root[data-theme="dark"] .ai-read-list .ai-pay{color:#8fbcff}
.ai-note{margin:0 0 8px;padding:8px 12px;border-radius:10px;background:var(--warn-soft,#fff3d6);border:1px solid var(--warn-line,#e0b050);font-size:calc(15px * var(--fs,1))}

/* Kopffarben (Punkt 58, Nutzer 09.11.2026): in Hell und Dunkel gleich. Echte
   Kasse Mein Konto grün, Kasse blau; Test-Kasse (data-brand="test" setzt
   lib/brand.js) dunkles Orange und dunkles Rot, dazu das Band „TEST-KASSE“
   leicht durchsichtig über den ganzen Kopf (Variante D). The Android bar
   follows (mobile.js syncBarColor). */
:root{--head-member:#0f3d2e;--head-cash:#0f2a3d}
:root[data-brand="test"]{--head-member:#8a4510;--head-cash:#7d1d1d}
:root[data-brand="test"] .mobile-header,:root[data-brand="test"] .print-preview-bar{position:relative;overflow:hidden}
:root[data-brand="test"] .mobile-header>*,:root[data-brand="test"] .print-preview-bar>*{position:relative;z-index:1}
:root[data-brand="test"] .mobile-header::before,:root[data-brand="test"] .print-preview-bar::before{content:"TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE\A      TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE\A TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE\A      TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE\A TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE · TEST-KASSE";position:absolute;inset:calc(4px + env(safe-area-inset-top)) 0 0 -8px;z-index:0;white-space:pre;overflow:hidden;font-weight:800;font-size:18px;line-height:36px;letter-spacing:.12em;color:#fff;opacity:.13;pointer-events:none}

/* Seite „Listen“ (Punkt 59): kleine Reiter Offen | Neu | Andere | Früher, beim Scrollen oben. */
.admin-sections.lists-subs{grid-template-columns:repeat(4,1fr);position:sticky;top:6px;z-index:4;box-shadow:0 2px 10px #0000001f}
/* 349 (Tester-Fund): the admin tabs sit right at the top, no 6 px strip with content showing through. */
.admin-sections.lists-subs:has([data-action="fa-sub"]){top:0;box-shadow:0 -6px 0 var(--bg),0 2px 10px #0000001f}
.lists-subs button{display:flex;align-items:center;justify-content:center;gap:4px}
.lists-subs .sub-count{display:inline-block;min-width:20px;padding:1px 6px;border-radius:999px;background:#f3c24a;color:#2a2000;font-size:calc(12px * var(--fs,1));line-height:1.4}
@media (max-width:350px){.tabs[style*="--tab-count:7"] .tab{font-size:min(calc(10px * var(--fs,1)),10px);letter-spacing:-.3px}}

/* Stufe 1, Punkt 65: Guthaben danach klein unter dem Betrag */
.history-entry .balance-after{display:block;text-align:right;margin-top:-2px;font-size:calc(15px * var(--fs,1));color:var(--muted)}
.history-entry .balance-after b{font-weight:700;color:var(--text)}
.history-entry .balance-after b.negative-text{color:var(--red)}

/* Punkt 66: Vorschau vor dem Drucken, oben Zurück, Als PDF, Über die Kasse drucken */
.print-preview{border:0;padding:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:#8a949b}
.print-preview[open]{display:flex;flex-direction:column}
.print-preview-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top));background:var(--head-member);color:#fff;font-size:14px;box-shadow:0 2px 8px #0004}
.print-preview-bar button,.print-preview-bar select{font:inherit;border:0;border-radius:8px;padding:8px 12px;min-height:44px}
.print-preview-bar button{background:#fff;color:var(--head-member);font-weight:700;cursor:pointer}
.print-preview-bar .pv-name{font-weight:700;font-size:15px;padding:0 4px}
.print-preview-bar .pv-copies{display:inline-flex;align-items:center;gap:4px}
.print-preview-bar .pv-copies select{min-width:64px}
.print-preview-bar .pv-hint{flex:1 1 260px;opacity:.9;font-size:13px}
.print-preview-frame{flex:1;width:100%;border:0;background:#8a949b}
@media print{.print-preview{display:none!important}}

/* Punkt 57: Buchen am Handy abgeschaltet */

/* Punkt 62: Bar ausgezahlt und Aufs Guthaben nebeneinander, deutlich */
.refund-split{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.refund-part{padding:10px;border:2px solid var(--line);border-radius:14px;background:var(--surface)}
.refund-part .field{margin-top:0;font-weight:800}
.refund-part .text-input{font-size:calc(22px * var(--fs,1));font-weight:800;text-align:right}
.refund-quick{display:flex;gap:8px;margin-top:10px}
.refund-quick .button{flex:1;min-height:44px}
@media (max-width:340px){.refund-split{grid-template-columns:1fr}}

/* Punkt 64: Buchungen eines Einkaufs als eine Karte mit Unterzeilen */
.purchase-group{border-left:5px solid var(--navy)}
.group-lines{margin-top:8px;border-top:1px solid var(--line-soft)}
.group-line{display:flex;justify-content:space-between;gap:10px;padding:7px 0 7px 10px;border-bottom:1px solid var(--line-soft);font-weight:600}
.group-line:last-child{border-bottom:0}
.group-line small{margin-top:2px}
.group-line>span:last-child{white-space:nowrap}

/* Punkt 63b: Meine Freibier-Anlässe */
.attended-list{display:grid;gap:8px}
.attended-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface-2)}
.attended-row small{display:block;margin-top:3px;color:var(--muted)}
.attended-qty{font-weight:800;white-space:nowrap}
.group-line.reversed>span{text-decoration:line-through;color:var(--muted)}
.group-line.reversed .storno-tag{text-decoration:none;margin-left:6px}
.group-goods{font-weight:700;color:var(--text)!important}
/* Punkt 57: Kachel gesperrt ohne Buchen am Handy */
.admin-sections button:disabled{opacity:.75;cursor:not-allowed}
.locked-hint{color:#7a4300!important;font-weight:700}
:root[data-theme="dark"] .locked-hint{color:#ffd29a!important}
/* Freigetränke für Arbeiten: Auswahl untereinander, Text ganz lesbar */
.work-filters{display:grid;gap:8px;margin:8px 0 12px}
.work-filters .text-input{width:100%}
/* Punkt 3: Kassenblatt und Freigetränke-Liste prüfen und buchen */
.paper-photo{margin:0 0 10px}
/* 218: „Ganzes Blatt“ | „Groß“ like the tally lists */
.paper-photo-wrap{max-height:62vh;overflow:auto;margin:0 0 10px;border:1px solid var(--line);border-radius:10px}.paper-photo-wrap .paper-photo{display:block;width:100%;margin:0}.paper-photo-wrap .paper-photo.zoomed{width:250%;max-width:none}
.paper-top{margin:10px 0}
.paper-field{display:grid;gap:3px;min-width:0}
.paper-field span{font-size:calc(13px * var(--fs,1));color:var(--muted);font-weight:600}
.paper-row{display:grid;gap:8px;margin:0 0 10px;padding:10px 12px;border:2px solid var(--line);border-radius:12px;background:var(--surface)}
.paper-row.off{opacity:.6}
.paper-row.mismatch{border-color:#d4ac0d;background:#f1c40f26}
.paper-row.similar{border-color:#e67e22}
.paper-row.has-error{border-color:#d64545}
.paper-include{display:flex;gap:10px;align-items:center;font-size:calc(17px * var(--fs,1))}
.paper-include input{width:24px;height:24px;flex:none}
.paper-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.paper-money input{padding-left:8px;padding-right:6px}
.paper-written,.paper-ai-note{margin:0;color:var(--muted);font-size:calc(13px * var(--fs,1))}
.paper-check:empty{display:none}
.paper-check p{margin:0;font-size:calc(14px * var(--fs,1));line-height:1.4;font-weight:600}
.paper-error,.paper-bad{color:#b42332}
.paper-mismatch,.paper-similar,.paper-warn{color:#8f5a00}
.paper-sum{margin:12px 0 8px;font-size:calc(15px * var(--fs,1));line-height:1.5}
.paper-book{margin-top:4px;font-size:calc(18px * var(--fs,1))}
.paper-blank-head{margin-top:10px}
/* A plain button (Verwerfen) has width:100%: in the row only as wide as its word (Tester, 32c4b26). */
.tally-page-row>.button{flex:none;white-space:nowrap;width:auto;margin-top:0}
.tally-page-row{flex-wrap:wrap}
.button.plain.danger-text{color:var(--red)}
.tally-page-row>div{flex:1 1 150px;min-width:0}
/* Punkt 76: „Löschen“ neben dem Betrag */
.amount-row{display:flex;gap:8px;align-items:stretch}
.amount-row .text-input{flex:1;min-width:0}
.amount-row .amount-clear{flex:none;white-space:nowrap}
/* Punkt 69: kleine Reiter überall gleich, Formulare zuklappen */
details.fold>summary{list-style:none;cursor:pointer}
details.fold>summary::-webkit-details-marker{display:none}
details.fold[open]>summary{margin-bottom:12px}
.sub-tabs button{line-height:1.15;padding:6px 3px;font-size:calc(13.5px * var(--fs,1))}
/* Punkt 85: Ausgaben-Zeilen antippen */
.expense-link{padding:0;border:0;background:none;color:var(--accent-text);font:inherit;font-weight:700;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.expense-back{margin:0 0 12px}
/* Punkt 69: Freibier als Band, halbe Knöpfe, Verlauf mit Filter */
.freibier-band{margin:0 0 12px;padding:10px 12px;border:2px solid #d99a00;border-radius:14px;background:#fff4d1;color:#4a3400}
.fb-band-row{display:flex;align-items:center;gap:10px}
.freibier-band .freibier-icon{font-size:calc(26px * var(--fs,1))}
.fb-band-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.fb-band-text strong{font-size:calc(16px * var(--fs,1));line-height:1.2}
.fb-band-text small{font-size:calc(13px * var(--fs,1))}
.fb-band-take{flex:none;min-height:46px;padding:8px 14px;font-weight:800;background:#9a5b00;border-color:#7a4800;color:#fff}
.fb-band-take:disabled{background:#e8c66a;border-color:#c9a23a;color:#4a3400;opacity:1}
.fb-band-more{display:flex;gap:8px;margin-top:4px}
.fb-band-more .button{min-height:36px;padding:4px 6px;color:#4a3400;font-size:calc(14px * var(--fs,1));text-decoration:underline}
.half-buttons{display:flex;gap:8px;margin:0 0 12px}
.half-buttons .button{flex:1;margin:0;padding-left:6px;padding-right:6px;min-width:0}
/* Punkt 127 (Entwurf A): feste Leiste mit fünf Feldern und Bild */
.history-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0 0 12px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.history-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;padding:6px 2px;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--chip);color:var(--chip-text);font-weight:700;font-size:min(calc(13px * var(--fs,1)),13.5px);line-height:1.15;white-space:nowrap;letter-spacing:-.01em}
.history-chip:first-child{border-left:0}
.history-chip-icon{font-size:calc(20px * var(--fs,1));line-height:1.1}
.history-chip.active{background:var(--blue);color:#fff}
.history-month{margin:14px 2px 6px;font-size:calc(13px * var(--fs,1));color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.fb-band-more{align-items:center;flex-wrap:wrap}
.fb-band-more small{flex:1 1 auto;font-size:calc(12.5px * var(--fs,1))}
.fb-band-end{flex:none;min-height:42px;padding:6px 12px;color:#4a3400;border-color:#b07c00;background:#fff}
/* Punkt 69: Einkauf und Lager kürzer */
.order-more{display:contents}
.order-more>summary{list-style:none;cursor:pointer}
.order-more>summary::-webkit-details-marker{display:none}
.order-more[open]>.order-actions{flex-basis:100%}
.order-done{margin-top:12px}
.refund-band{margin:0 0 12px}
.refund-band>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:2px solid #d99a00;border-radius:14px;background:#fff4d1;color:#4a3400;font-weight:800}
.refund-band>summary::-webkit-details-marker{display:none}
.refund-band .band-open{padding:6px 12px;border:1px solid #b07c00;border-radius:10px;background:#fff;font-size:calc(14px * var(--fs,1))}
.refund-band[open] .band-open{visibility:hidden}
.refund-band[open]>summary{margin-bottom:10px}
.stock-rows{display:flex;flex-direction:column}
.stock-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.stock-row>div{flex:1;min-width:0;display:flex;flex-direction:column}
.stock-row small{font-size:calc(13px * var(--fs,1));color:var(--muted)}
.stock-qty{font-size:calc(20px * var(--fs,1));min-width:2.5ch;text-align:right}
.stock-count-btn{flex:none;min-height:42px;padding:6px 12px}
/* Punkt 86: Meine Auswertung als Tabelle mit Stück und Betrag */
.my-table{width:100%;margin-top:10px;border-collapse:collapse;font-variant-numeric:tabular-nums}
.my-table th,.my-table td{padding:9px 4px;border-bottom:1px solid var(--line);text-align:left;font-weight:400}
.my-table th{font-size:calc(12px * var(--fs,1));color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.my-table .my-qty{width:3.2em;text-align:right;color:var(--muted);white-space:nowrap}
.my-table .my-crates{width:3.6em;text-align:right;color:var(--muted);white-space:nowrap}
/* Punkt 236: with the column Kästen the table stays within 360 px, also in large print. */
.my-table th.my-qty,.my-table th.my-crates{letter-spacing:0}
:root[data-font="large"] .my-table th.my-qty,:root[data-font="large"] .my-table th.my-crates{font-size:11px}
:root[data-font="large"] .my-table td.my-qty,:root[data-font="large"] .my-table td.my-crates{font-size:.85em}
:root[data-font="large"] .my-table th,:root[data-font="large"] .my-table td{padding-left:2px;padding-right:2px}
:root[data-font="large"] .my-table .my-qty{padding-left:7px}
:root[data-font="large"] .my-table{font-size:.83em}
/* Tester punkt-236: air between Stück and Betrag in large print. */
:root[data-font="large"] .my-table .my-cents{padding-left:12px}
.my-table .my-cents{text-align:right;white-space:nowrap}
.my-table tr.my-sub td:first-child{padding-left:16px}
.my-table tr.my-big td{font-weight:800;background:var(--surface-2)}
/* Reiterleiste mit 5 Reitern: „Auswertung“ ganz lesbar bei 390 px (Anleitungs-Chat) */
.tabs[style*="--tab-count:5"]{gap:2px;padding-left:6px;padding-right:6px}
.tabs[style*="--tab-count:5"] .tab{padding-left:0;padding-right:0;letter-spacing:-.2px}
/* Kontrast mindestens 4,5:1 (Tester, wie am PC 9b380bd): Weiß auf Orange
   5,4:1; in Dunkel --red heller (6,4:1, Tester), Weiß auf Rot dafür dunkler, die Farben der
   Prüfseite heller. Der blaue Hauptknopf hat in Dunkel schon 5,0:1. */
:root[data-theme="dark"] .mode-count{background:#b8323a}
:root[data-theme="dark"] .button.danger{background:#b8323a;border-color:#b8323a}
:root[data-theme="dark"] .paper-error,:root[data-theme="dark"] .paper-bad{color:#ff8a8a}
:root[data-theme="dark"] .paper-mismatch,:root[data-theme="dark"] .paper-similar,:root[data-theme="dark"] .paper-warn{color:#e8a33d}
.stock-row small.negative-text{color:var(--red);font-weight:700}
/* Ollama (lokal): Wahl der Leseart und Hinweis, dass es dauert */
.ai-ways{display:grid;gap:8px;margin:10px 0}
.ai-way{display:flex;gap:10px;align-items:flex-start;padding:12px;border:2px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer}
.ai-way:has(input:checked){border-color:var(--blue);background:var(--soft-bg)}
.ai-way.off{opacity:.6;cursor:not-allowed}
.ai-way input{width:22px;height:22px;flex:none;margin-top:2px}
.ai-way span{display:flex;flex-direction:column;gap:3px}
.ai-way small{color:var(--muted);font-size:calc(14px * var(--fs,1))}
.ai-way small.ai-slow{color:var(--notice-text);background:var(--notice-bg);border:1px solid var(--notice-border);border-radius:8px;padding:4px 8px;font-weight:700}
.ai-wait-slow{display:block;margin:6px 0;padding:8px 10px;border-radius:10px;background:var(--notice-bg);color:var(--notice-text);font-weight:700}
.ai-way,.ai-way span,.ai-way b{text-align:left}

/* Punkt 103: Schrift mit KI in der Foto-Ansicht */
.hw-section{margin:14px 0 4px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.hw-section h3{margin:0 0 6px;font-size:calc(17px * var(--fs,1))}
.hw-status{display:flex;align-items:center;gap:8px;margin:6px 0;font-weight:600}
.hw-items{display:grid;gap:8px;margin:8px 0}
.hw-item{display:flex;align-items:center;gap:10px;padding:6px;border:1px solid var(--line);border-radius:10px}
/* Tall cells (many rows) whole and scaled down, never cut (Tester, 103). */
.hw-cuts{display:flex;flex-direction:column;gap:4px;flex:none;max-width:40%}
.hw-item img{display:block;width:auto;height:auto;max-width:100%;max-height:180px;object-fit:contain;border-radius:6px;background:#fff}
.hw-item b{display:block;font-size:calc(17px * var(--fs,1))}
.hw-item small{display:block;color:var(--muted)}

/* Punkt 29: Schild „🛡 Admin“ an der Ecke (Entwurf Variante A); lila dunkler als im Entwurf, damit Weiß auf 11 px 4,5:1 erreicht */
.has-admin-badge{position:relative}
.admin-badge{position:absolute;top:-9px;right:-6px;z-index:1;padding:2px 8px;border-radius:999px;background:#7e22ce;color:#fff;font-size:11px;font-weight:800;line-height:1.4;white-space:nowrap;box-shadow:0 1px 3px #0006;pointer-events:none}
.check-line.has-admin-badge .admin-badge{position:static;margin-left:8px;vertical-align:middle;box-shadow:none}

/* 103: jeder Ausschnitt von „Zahlung“ einzeln abwählbar, Durchgestrichenes markiert */
.hw-pay{flex-direction:column;align-items:stretch}
.hw-part{display:flex;align-items:center;gap:10px;padding:4px;border-radius:8px;cursor:pointer}
.hw-part img{width:auto;height:auto;max-width:40%;max-height:180px;object-fit:contain;flex:none;border-radius:6px;background:#fff}
.hw-part-read{display:flex;flex-direction:column;gap:2px}
.hw-part-read input{width:22px;height:22px;vertical-align:middle}
.hw-part.off b{text-decoration:line-through;color:var(--muted)}
.hw-part.off img{opacity:.55}
.hw-part.struck{outline:2px dashed #b26a00;outline-offset:-2px}
.hw-struck{font-style:normal;font-weight:700;color:#8f5a00}
:root[data-theme="dark"] .hw-struck{color:#f0b46a}
:root[data-theme="dark"] .hw-part.struck{outline-color:#f0b46a}
.hw-sum{margin:4px 0 0;padding-top:6px;border-top:1px solid var(--line)}
/* Zusatz 218: Zahlung abgleichen */
.pay-check-row{display:flex;justify-content:space-between;align-items:center;gap:6px 10px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line)}.pay-check-row .pay-booking{min-height:36px;padding:4px 12px}

/* Punkt 89: Dokumente unter Verwaltung */
.doc-kinds{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.doc-kinds button{min-height:42px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-weight:700}
.doc-kinds button.active{background:var(--blue);border-color:var(--blue);color:#fff}
.doc-filters{display:grid;gap:8px;margin-bottom:8px}
.doc-list{display:grid}
.doc-row{display:flex;align-items:center;gap:10px;width:100%;padding:12px 4px;border:0;border-top:1px solid var(--line);background:none;color:var(--text);text-align:left;font:inherit}
.doc-icon{font-size:24px;width:34px;text-align:center;flex:none}
.doc-text{flex:1;min-width:0}.doc-text b{display:block}.doc-text small{display:block;color:var(--muted)}
.doc-arrow{color:var(--blue);font-size:22px;font-weight:700}
.doc-dialog .doc-picture{display:block;width:100%;height:auto;margin:6px 0;border-radius:6px;background:#fff}
.doc-dialog .photo-dialog-head button{flex:none;white-space:nowrap}
.doc-dialog .photo-dialog-head strong{min-width:0}
.doc-dialog .button.full{margin-top:8px;text-decoration:none;display:flex;align-items:center;justify-content:center}
.doc-info{margin-top:8px}
.doc-search{display:grid;gap:4px;margin:4px 0 8px}.doc-search .field-label{font-weight:750}
.notice-line{margin:6px 0;padding:8px 10px;border:1px solid var(--warn-line,#e7b36a);border-radius:8px;background:var(--warn-soft,#fff4e0);color:var(--text)}
.doc-desc{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text)}
.doc-snippet{display:block;margin-top:3px;font-size:.92em;color:var(--text);overflow-wrap:anywhere}
.doc-snippet mark{background:#fde68a;color:#1f2937;border-radius:3px;padding:0 2px;font-weight:700}

/* Punkt 25: Nachrichten in der Glocke */
.msg-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 0}
.msg-toolbar .button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:6px 2px;font-size:min(calc(13px * var(--fs,1)),14px);line-height:1.2;white-space:nowrap}
.msg-toolbar .button span{font-size:calc(19px * var(--fs,1))}
.msg-tag{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:800;vertical-align:middle}
.msg-tag.yellow{background:#f3c24a;color:#2a2000}
.msg-tag.red{background:#b42332;color:#fff}
.msg-tag.plain{background:var(--line);color:var(--text)}
.msg-actions{display:flex;flex-wrap:wrap;gap:8px}
.msg-reply{width:100%}
.msg-choice{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.msg-choice label{display:flex}
.msg-choice input{position:absolute;opacity:0;pointer-events:none}
.msg-choice span{padding:8px 12px;min-height:40px;display:flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:700;cursor:pointer}
.msg-choice input:checked+span{background:var(--blue);border-color:var(--blue);color:#fff}
.msg-choice input:focus-visible+span{outline:3px solid var(--blue);outline-offset:2px}
.msg-group{display:flex;margin:4px 0}
.msg-people-list{display:grid;max-height:240px;overflow:auto;margin-top:6px}
.msg-body{width:100%}
.msg-sent-list{display:grid;gap:10px}
.msg-sent{padding:10px 12px;border:1px solid var(--line);border-left:6px solid var(--warn);border-radius:12px}
.msg-sent.red{border-left-color:var(--bad)}
.msg-sent p{margin:0 0 6px}
.msg-body-text{white-space:pre-wrap}
.msg-stats{margin:6px 0}
.msg-reply-shown{margin:6px 0;padding:6px 8px;border-radius:8px;background:var(--bg)}
.msg-reply-shown p{margin:2px 0 0;white-space:pre-wrap}
.msg-compose{text-align:left}
.msg-compose .field{display:block;margin:10px 0 6px}
.msg-sent-list{text-align:left}
.msg-sent.ended{border-left-style:dashed}
.msg-standard{margin:4px 0 0;width:100%}

/* Jahresübersicht in der App (Fund des Nutzers, 10.11.2026) */
.yo-row dd{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.yo-row dd small{color:var(--muted);font-weight:400}
.yo-row dt{flex:1;min-width:0}
.yo-bar{display:block;height:6px;margin-top:6px;border-radius:3px;background:var(--line);overflow:hidden}
.yo-bar i{display:block;height:100%;border-radius:3px}
.yo-bar i.plus{background:#17784e}.yo-bar i.minus{background:var(--red)}
:root[data-theme="dark"] .yo-bar i.plus{background:#3cb87f}

/* Punkt 106/107: Beleg an Kassenbewegungen, Leergut zurück */
.move-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.receipt-chip{font:inherit;font-size:.85rem;font-weight:700;padding:5px 10px;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:inherit;cursor:pointer}
.move-tag{font-size:.85rem;font-weight:700;padding:5px 10px;border-radius:999px;background:#e3f3ea;color:#17784e}
:root[data-theme="dark"] .move-tag{background:#173d2a;color:#7fdcae}
.attended-row .receipt-chip{margin-top:6px}
.receipt-dialog .receipt-shot{margin-bottom:12px}
.receipt-dialog .receipt-shot small{display:block;color:var(--muted)}
.receipt-dialog .receipt-buttons{margin-top:10px}
.receipt-chip:not(.missing){background:#e3f3ea;border-color:#2f8a5b;color:#17784e}
:root[data-theme="dark"] .receipt-chip:not(.missing){background:#14301f;border-color:#2f6b45;color:#4fd08f}

/* Punkt 10 Benachrichtigungen */
.notify-state{font-weight:700;margin:0 0 6px}
.notify-state.on{color:#17784e}
:root[data-theme="dark"] .notify-state.on{color:#3cb87f}
.notify-card .admin-sections{margin:10px 0}
.notify-step{margin-top:10px}
.notify-step .button.full{text-decoration:none;display:flex;align-items:center;justify-content:center}
.notify-topic{user-select:all;font-size:.95em;padding:2px 6px;border-radius:6px;background:var(--chip);color:var(--chip-text)}
.notify-card .check-line,.fa-notify-people .check-line,#fa-notify-telegram,#fa-notify-ntfy{accent-color:var(--blue)}
.history-card > .check-line{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:650}
.fa-notify-people .check-line{display:flex;align-items:center;gap:10px;min-height:44px}

/* Punkt 81 Inventur */
.inv-row{display:grid;grid-template-columns:minmax(0,1fr) 84px 48px;gap:8px;align-items:center}
.inv-row .inv-count{min-height:48px;text-align:center;font-size:1.1rem;font-weight:700;padding:8px}
.inv-row .inv-same{min-height:48px;padding:0;font-size:1.2rem;font-weight:800}
.inv-open{margin-top:12px}
.inv-row.no-same{grid-template-columns:minmax(0,1fr) 96px}
.inv-group{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin:0 0 6px;padding:10px 12px;border-radius:12px;background:var(--panel)}

/* Punkt 112: Stand sofort, verbinde im Hintergrund */
.connecting-banner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;border-color:var(--blue);background:var(--tab-active);color:var(--text)}
.connect-dot{width:14px;height:14px;border-radius:50%;border:3px solid var(--blue);border-right-color:transparent;animation:spin 0.9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Punkt 113 Probe einlesen */
.probe-note{margin:0 0 8px}
.probe-table{width:100%;border-collapse:collapse;margin-top:8px;font-size:.95rem}
.probe-table th,.probe-table td{padding:7px 6px;border-bottom:1px solid var(--line);text-align:right}
.probe-table th:first-child{text-align:left}
.probe-table thead th{font-size:.8rem;color:var(--muted)}
.probe-writeins{margin:4px 0;padding-left:20px}

/* Dunkel: Warnhinweise lesbar (Offline-Hinweis war dunkelbraun auf dunkel) */
:root[data-theme="dark"] .offline-banner,:root[data-theme="dark"] .toast-warning,:root[data-theme="dark"] .backup-pill.warn{color:#ffd8a8}

/* Punkt 114 A: Aufteilung bar / Guthaben deutlich, Zusammenfassung vor dem Buchen */
.refund-part.refund-cash{border-color:var(--green);border-left-width:7px}
.refund-part.refund-credit{border-color:var(--blue);border-left-width:7px}
.split-sure .order-form,.split-sure .refund-box{display:none}
.split-summary{margin-top:6px}
.split-title{margin:0 0 10px;font-size:calc(20px * var(--fs,1));font-weight:800}
.split-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.split-tile{display:flex;flex-direction:column;gap:6px;padding:14px 12px;border:3px solid var(--line);border-radius:16px;background:var(--surface)}
.split-tile span{font-weight:700}
.split-tile strong{font-size:calc(30px * var(--fs,1));font-weight:900;line-height:1.1}
.split-tile.cash{border-color:var(--green)}
.split-tile.credit{border-color:var(--blue)}
.split-tile.zero{opacity:.55;border-style:dashed}
.split-summary .button{margin-top:12px}
@media (max-width:340px){.split-tiles{grid-template-columns:1fr}}
.purchase-group .split-change{margin-top:10px}
.refund-part .split-rest{display:block;margin-top:8px;font-size:calc(22px * var(--fs,1));font-weight:800;text-align:right}
/* tx-130: Beträge in beiden Kacheln auf gleicher Höhe, Abstand der Zeilen unter den Kacheln */
.split-tile{justify-content:space-between}
.split-tiles+p,.split-tiles~.small-hint{margin-top:10px}

/* Punkt 128: Handy-Gestaltungswünsche */
.period-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px;margin:0 0 10px;align-items:start}
.period-pair.custom{grid-template-columns:1fr}
.period-pair .text-input{width:100%;margin:0}
.work-filters .period-pair{margin:0}
.theme-choices button{white-space:nowrap;font-size:min(calc(16px * var(--fs,1)),17px);padding-left:2px;padding-right:2px}
.payee-box{margin:12px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.payee-box+.payee-box{margin-top:14px}
.payee-label{margin:0 0 2px;font-size:calc(15px * var(--fs,1));letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#a3540a}
:root[data-theme="dark"] .payee-label{color:#f0b060}
.payee-box .payees{margin:0;font-size:calc(20px * var(--fs,1));font-weight:800;line-height:1.35}
.payee-label:has(small){display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px}
.payee-label small{white-space:nowrap;font-size:calc(13px * var(--fs,1));font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}
.payee-box .hint{margin:2px 0 0}
#finger-card .button,.account-card details.fold>summary.button,.logout-big{display:flex;width:100%;min-height:52px;align-items:center;justify-content:center;text-align:center}
#finger-card .passkey-line{margin:0 0 10px}

/* Punkt 131: Probe einlesen, Foto mit den erkannten Kästchen */
.probe-figure{margin:12px 0}
.probe-zoom{display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;cursor:zoom-in}
.probe-zoom img{display:block;width:100%;height:auto}
.probe-figure.zoomed .probe-zoom{max-height:75vh;overflow:auto;cursor:zoom-out}
.probe-figure.zoomed .probe-zoom img{width:250%;max-width:none}
.probe-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 0 0;font-weight:700;font-size:calc(14px * var(--fs,1))}
.probe-legend span{display:inline-flex;align-items:center;gap:6px}
.probe-key{display:inline-block;width:16px;height:16px;border:3px solid;border-radius:3px}
.probe-key.mark{border-color:#16a34a;background:#16a34a2e}
.probe-key.full{border-color:#e74c3c;background:#e74c3c2e}
.probe-key.unsure{border-color:#eab308;background:#eab3082e}
.probe-zoom-hint{margin:4px 0 0}
/* Tester tx-164: „Zurückziehen“ brach bei 360 px mitten im Wort um. Weniger
   Innenabstand, nur zwischen Wörtern umbrechen; bei großer Schrift untereinander. */
.booking-actions .button,.request-actions .button{padding-left:6px;padding-right:6px;overflow-wrap:normal;word-break:normal}
:root[data-font="large"] .booking-actions,:root[data-font="large"] .request-actions{grid-template-columns:1fr}
@media (max-width:340px){.booking-actions,.request-actions{grid-template-columns:1fr}}
/* Tester tx-164: bei großer Schrift ragte „Kassenbericht“ (Verein) bei 360 px
   über seinen Reiter hinaus; die kleinen Reiter wachsen nur begrenzt mit. */
.sub-tabs button{font-size:min(calc(13.5px * var(--fs,1)),14.5px)}
/* Tester tx-164: „Abmelden“ so breit wie die Knöpfe in den Karten darüber
   (Karte: 16 px Innenabstand und 1 px Rand). */
.logout-wrap{padding:0 17px}

/* Punkt 126 (Variante A): Anmeldeseite ohne Scrollen. „oder“ mittig mit
   Linien, gleicher Abstand nach oben und unten; Hilfe näher an „Als Kassierer
   anmelden“; Kassierer-Anmeldung mit schmalem Kopf (Logo, daneben Name). */
.hero-text{display:flex;flex-direction:column;align-items:center;gap:4px}
.finger-or{display:flex;align-items:center;gap:12px;margin:14px 0}
.finger-or::before,.finger-or::after{content:"";flex:1;border-top:1px solid var(--input-border)}
.login-card .finger-or+.button.finger-login{margin-top:0}
.login-card .login-switch{margin-top:6px;padding-top:8px;padding-bottom:4px}
.login-card .login-help{margin:0 auto;padding:2px 0 6px}
.login-wrap.cashier{background:linear-gradient(var(--head-cash) 0 130px,var(--bg) 130px)}
.login-hero.compact{flex-direction:row;justify-content:center;gap:14px;padding:calc(18px + env(safe-area-inset-top)) 20px 20px;text-align:left}
.login-hero.compact .brand-mark{width:50px;height:50px;margin:0;border-radius:14px}
.login-hero.compact .hero-text{align-items:flex-start;gap:0}
.login-hero.compact strong{font-size:calc(22px * var(--fs,1))}
/* Punkt 126: etwas knapper, damit Passkey-Knopf und Haken ohne Scrollen passen (360 × 740). */
.login-hero:not(.compact){padding-top:calc(22px + env(safe-area-inset-top));padding-bottom:18px}
.login-hero:not(.compact) .brand-mark{width:56px;height:56px;margin-bottom:6px}
.login-card .button.go[type="submit"]{margin-top:16px}
.login-card .finger-or{margin:10px 0}
.login-wrap.cashier .login-card>p:not(.finger-or):not(.login-retry){font-size:calc(15px * var(--fs,1));line-height:1.4}
.login-hero.compact{padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:14px}
.login-wrap.cashier{background:linear-gradient(var(--head-cash) 0 118px,var(--bg) 118px)}
/* Punkt 126 (Tester tx-168): Kassierer-Anmeldung (und knapp auch
   Mitglieder) mit Haken und Passkey-Knopf ragte bei 360 × 740 über den Rand:
   alles etwas dichter, die Kassierer-Überschrift kleiner. */
.login-wrap{padding-bottom:4px}
.login-card{padding-top:16px}
.login-wrap.cashier .login-card h1{font-size:calc(23px * var(--fs,1));margin-bottom:4px}
.login-card .passkey-offer{margin-top:10px}
.login-card .button.go[type="submit"]{margin-top:12px}
.login-card .login-switch{padding-top:4px}

/* Punkt 38: Strichliste zwischendurch fotografieren */
.interim-shoot{position:relative;overflow:hidden;white-space:nowrap}
.interim-zoom{max-height:62vh;overflow:auto;cursor:pointer}
.interim-zoom canvas{display:block;width:100%;height:auto}
.interim-figure.zoomed .interim-zoom canvas{width:260%}
.interim-figure .button{margin-top:8px}
.interim-dialog [data-interim-save]{margin-top:10px;min-height:54px}
.pending-note{display:block;font-size:calc(12.5px * var(--fs,1));opacity:.9}
.simple-balance .pending-note{margin-top:4px;color:var(--muted);opacity:1}
/* Punkt 220: „… bereits abgezogen (Strichliste vom …)“ in its own line under the balance, right, small and grey. */
/* Punkt 220 (Nutzer, angezeichnet): the amount always in the line of „Dein Guthaben“;
   „… bereits abgezogen / Strichliste vom …“ right under it, level with „System in
   Ordnung“, so the box does not get higher. */
.balance-strip:has(.strip-right){align-items:flex-start}
.balance-strip .strip-right{display:flex;flex-direction:column;align-items:flex-end;min-width:0}
.balance-strip .strip-right strong{line-height:1;margin-top:-6px}
.balance-strip .pending-note{margin-top:2px;text-align:right;color:#ffffffb8;opacity:1;font-size:calc(12px * var(--fs,1));line-height:1.2}

/* Punkt 3: Einzahlungsblatt, Zwischenstand, Tätigkeit fehlt (gelb) */
.paper-blank-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.paper-row.needs-task{border-color:#d8913a;background:#fff6e8}
:root[data-theme="dark"] .paper-row.needs-task{background:#3a2a12}
.paper-needs-task{margin:6px 0 0;font-weight:700;color:#7a4300}
:root[data-theme="dark"] .paper-needs-task{color:#ffd29a}
.paper-booked-note{margin:6px 0 0;font-size:calc(14px * var(--fs,1));color:var(--muted)}

/* Punkt 11: Kassenzettel mit KI lesen */
.receipt-ai{margin-top:8px}
.receipt-ai-box{margin-top:8px;text-align:left}
.receipt-ai-box ul{margin:2px 0 6px;padding-left:18px}
.receipt-ai-preview{display:block;max-width:100%;max-height:55vh;margin:8px auto 0;border-radius:8px;border:1px solid var(--line)}

/* Punkt 134 (Variante A): Guthaben im Kopf deutlich größer, bei Mitgliedern ohne Sicherungsschild */
.balance-strip.member-strip .strip-left>span:first-child{font-size:calc(17px * var(--fs,1));font-weight:700;color:#fff}
.balance-strip.member-strip strong{font-size:calc(36px * var(--fs,1));font-weight:850}
.simple-more{margin-top:10px}
.doc-filters .period-pair{margin:0}

/* Punkt 137 (Variante A): „Guthaben danach“ rechts in der Datumszeile, gleich groß wie das Datum */
.history-entry .date-line{display:flex;justify-content:space-between;align-items:baseline;gap:2px 6px;flex-wrap:wrap;margin-top:5px}
.history-entry .date-line>small{margin-top:0;font-size:calc(13px * var(--fs,1))}
.history-entry .date-line .balance-after{margin:0 0 0 auto;text-align:right;white-space:nowrap}
.simple-list .history-entry .date-line>small{font-size:calc(13px * var(--fs,1))}
@media print{.history-entry .date-line{display:contents!important}}

/* Punkt 134 Nachtrag (Variante A): rote Zeile im Kopf bei Guthaben unter null */
.balance-strip .minus-line{flex:1 0 100%;margin-top:-4px;padding:7px 10px;border:1px solid var(--alert-border);border-radius:10px;background:var(--alert-bg);color:var(--alert-text);font-size:calc(14.5px * var(--fs,1));font-weight:650;line-height:1.3}
/* Punkt 134 Ergaenzung: Betrag im Minus hellrot (#ff8f94 auf Gruen, Kontrast 4,3); auf dem orangen Test-Kopf etwas heller, sonst unter 3 */
/* Punkt 134 (Nutzer, Variante B): Mitglieder kraeftiges Rot #ff5a60 (auf Gruen 3,1); auf Orange erreicht kein kraeftiges Rot 3, daher #ffa3a7 (3,1). Kasse bleibt #ff8f94. */
.balance-strip.member-strip.negative strong{color:#ff5a60}
:root[data-brand="test"] .balance-strip.member-strip.negative strong{color:#ffa3a7}

/* Punkt 138 (Variante A): einfache Ansicht – ganze Karte ist der Knopf, Name links, Preis rechts */
.simple-tap{min-height:104px;padding:0 16px;gap:14px}
.simple-tap .product-icon{font-size:calc(44px * var(--fs,1));line-height:1}
.simple-tap .simple-name{flex:1 1 auto;font-size:calc(24px * var(--fs,1));font-weight:800;overflow-wrap:anywhere}
.simple-tap .simple-price{flex:none;color:var(--link);font-size:calc(24px * var(--fs,1));font-weight:800;white-space:nowrap}
/* Bestätigung: genau ein Stück, Preis groß, ohne − 1 + und „Zusammen“ */
#booking-dialog.single .qty-picker,#booking-dialog.single .sheet-sum>div:first-child{display:none}
#booking-dialog.single .sheet-unit{margin:2px 0 12px;color:var(--link);font-size:calc(30px * var(--fs,1));font-weight:800}
/* Stornieren: einfach ohne Plus/Minus und „Alles auswählen“; in Erweitert Abstand zur Gutschrift */
#storno-dialog.single #storno-all{display:none}
.storno-one{margin:0}
#storno-all{display:block;margin:12px 0 14px auto}

/* Punkt 140: Kategorie und Betrag in einer Zeile, Übergabe als drei große Knöpfe */
.cat-amount{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:8px}
.cat-amount .text-input{width:100%}
.receipt-shoot{white-space:nowrap}
.transfer-choice{min-height:64px;font-size:calc(17px * var(--fs,1));font-weight:800}
.transfer-choice .sub-count{display:inline-block;min-width:22px;margin-left:8px;padding:1px 7px;border-radius:999px;background:#f3c24a;color:#2a2000;font-size:calc(13px * var(--fs,1));line-height:1.4;text-align:center}
.transfer-choice>b{color:var(--muted);font-size:calc(22px * var(--fs,1))}
/* Tester tx-189: zentrierter Titel neben dem „?“ wirklich mittig (links derselbe Platz) */
.sheet-dialog h2{padding-left:46px}

/* Punkt 141: Uhrzeit in der Zeile von „Endet“, Auswahl kürzer; „Heute noch …“ eigene Zeile */
.ends-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;align-items:center;margin-top:0}
.ends-row .text-input{width:100%}
.ends-row.pale input[type=time]{opacity:.45}
.ends-row.pale select.text-input{opacity:1}
.free-left{margin-top:-4px}
/* Tester zu 141: Titel „Freibier ausgeben“ mittig (Platz links und rechts für „?“) */
.fb-window .fb-title{text-align:center}

/* Punkt 144 (Variante B): sechs Filter in einer Reihe, Schrift etwas kleiner, bei 360 px ohne Umbruch */
.history-chip{font-size:min(calc(11px * var(--fs,1)),11.5px);white-space:nowrap;padding-left:1px;padding-right:1px}
.history-chip-icon{font-size:calc(18px * var(--fs,1))}
/* Punkt 145 (Variante A): die vier Kopf-Knöpfe etwa 44 × 38 px, Abstand 6 px, Zeichen größer */
.header-top{gap:6px}
.header-top :is(.notice-button,.refresh-button,.help-button,.logout-icon){min-width:44px;height:38px;min-height:38px;padding:0 5px;border-radius:10px}
.header-top .notice-button{font-size:min(calc(19px * var(--fs,1)),21px)}
.header-top .notice-button b{font-size:min(calc(18px * var(--fs,1)),20px)}
.header-top .refresh-button{font-size:min(calc(24px * var(--fs,1)),26px)}
.header-top .help-button{font-size:min(calc(20px * var(--fs,1)),22px)}
.header-top .logout-icon svg{width:24px;height:24px}

/* Punkt 133: Strichcode im einfachen Modus (Erweitert) */
.simple-scan{margin:0 0 12px}
/* Punkt 146 (Fehler echte Kasse): „Entfernen“ nicht volle Breite, sonst steht der Gerätename senkrecht */
#finger-card .finger-device .button{width:auto;flex:none;min-height:46px;padding-left:14px;padding-right:14px}
.finger-device span{flex:1 1 auto}
/* Punkt 146: „＋ Passkey hinzufügen“ unter den Geräten */
#finger-card .passkey-add{margin-top:12px}

/* Punkt 148 (Variante B): Kasse › Listen – alle Listen untereinander mit Bild, Fenster zum Anlegen */
.list-pick{justify-content:flex-start;gap:12px;text-decoration:none;font-size:calc(16px * var(--fs,1))}
.list-pick b{flex:1 1 auto;min-width:0}
.list-pick-icon{flex:none;width:30px;text-align:center;font-size:calc(24px * var(--fs,1));line-height:1}
.list-pick-arrow{flex:none;color:var(--muted);font-size:calc(22px * var(--fs,1))}
.list-pick-dialog h2{text-align:center}
.list-pick-dialog .hint{text-align:center;margin:0 0 12px}
.list-pick-dialog .button{margin-top:10px}
.lists-menu .member-list{grid-template-columns:minmax(0,1fr);margin-top:0}
.list-pick b{white-space:normal;overflow-wrap:anywhere}
.list-pick-icon{width:34px}
.list-pick{background:var(--panel)}

/* Punkt 149 (Variante A): Verwaltung als eine Reiterzeile wie die Filter im Verlauf, „Admin“ leicht gelb */
.admin-bar{margin-bottom:12px}
.history-chip.admin-chip{background:var(--notice-bg);color:var(--notice-text)}
.admin-bar .history-chip{font-size:10.5px}

/* Punkt 151: Getränke/Snacks-Umschalter wie beim Einkauf, mit Abstand zur Linie bzw. zum Suchfeld darunter */
.group-pick{margin:4px 0 16px}
.group-pick .buy-group{min-height:56px;font-size:calc(17px * var(--fs,1));gap:8px}
.group-pick .group-count{font-size:.8em;font-weight:700;opacity:.8}
.list-pick-dialog .tally-blocked-top{margin:4px 0 10px;text-align:left}

/* Punkt 152 (Variante B, Schrift Normal): Erweitert – zwei breite Knöpfe untereinander, Bild links, kleine Zeile */
.wide-actions{display:grid;gap:8px;margin:0 0 12px}
.wide-action{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:58px;padding:8px 14px;text-align:left}
.wide-icon{flex:none;font-size:calc(22px * var(--fs,1));line-height:1}
.wide-text{display:flex;flex-direction:column;min-width:0}
.wide-text b{font-size:calc(16.5px * var(--fs,1));font-weight:800;line-height:1.2}
.wide-text small{font-size:calc(12.5px * var(--fs,1));font-weight:500;color:var(--muted);line-height:1.3}
.wide-action:disabled .wide-text small{opacity:.8}

/* Punkt 153 (Variante C): Produktgruppen als Leiste mit Bild, ab sechs seitlich wischbar */
.category-bar .group-bar-wrap{flex:1 1 auto;min-width:0;position:relative}
.category-bar .group-bar{margin:0}
.group-bar.many{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(68px,1fr);overflow-x:auto;scrollbar-width:none}
.group-bar.many::-webkit-scrollbar{display:none}
.group-bar .history-chip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Tester tx-221 Hinweis: dezente Ausblendung rechts, nur wenn die Leiste weitergeht */
.group-bar-wrap.more::after{content:'';position:absolute;top:1px;right:1px;bottom:1px;width:30px;border-radius:0 13px 13px 0;pointer-events:none;background:linear-gradient(to right,transparent,var(--bg))}
/* Tester tx-222: kein leerer Rand oben in der Verlauf-Karte (ohne Überschrift) */
.balance-switch+.history-card>.history-list:first-child{margin-top:0}

/* Punkt 154 Schreibweise A: „davon 8 Kästen + 13 Flaschen“ klein unter Freibier ausgegeben */

/* Punkt 111: Suchfeld ganz oben im Filter der Berichte, deutlich umrandet */
.report-search{width:100%;margin:0 0 10px;border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.more-rows{margin:0 0 8px}

/* Punkt 158: Fenster nach dem Einzahlen, in der Mitte, bleibt bis „Erledigt“ */
.done-dialog{width:calc(100% - 24px);max-width:420px;margin:auto;padding:20px 16px 16px;border:0;border-radius:20px;background:var(--surface);color:var(--text);text-align:center}
.done-dialog::backdrop{background:rgba(0,0,0,.6)}
.done-ok{color:var(--green);font-weight:800;font-size:calc(16px * var(--fs,1))}
.done-amount{font-size:calc(36px * var(--fs,1));font-weight:800;margin:2px 0;font-variant-numeric:tabular-nums}
.done-who{margin:0 0 14px;color:var(--muted)}
.done-who b{color:var(--text)}
.done-who b.negative-text{color:var(--red)}
.done-extra{margin:-8px 0 12px}
.done-note{padding:12px 14px;border:2px solid var(--notice-border);border-radius:14px;background:var(--notice-bg);color:var(--notice-text);text-align:left}
.done-note-title{margin-bottom:6px;font-weight:800}
.done-note-place{font-size:calc(21px * var(--fs,1));font-weight:800;line-height:1.35}
.done-button{margin-top:14px;min-height:54px;font-size:calc(18px * var(--fs,1))}

/* Punkt 49 Zusatz: kleines Schloss oben rechts im Fenster „Sicherung und System“ */
.health-lock{font-size:18px;line-height:1}
.health-lock.open{border-color:var(--green)}

/* Punkt 160/161: wer verworfen oder zurückgeholt hat; Hinweis vor dem Zurückholen */
.tally-who{display:block;width:fit-content;margin-top:4px;padding:3px 8px;border-radius:6px;background:var(--alert-bg);color:var(--alert-text);font-size:calc(13px * var(--fs,1))}
.tally-who.back{padding:0;background:none;color:var(--green)}
.restore-warn{margin:10px 0 0;padding:10px 12px;border-left:5px solid var(--notice-border);border-radius:8px;background:var(--notice-bg);color:var(--notice-text);text-align:left}
.tally-earlier-head>.button{flex:none;white-space:nowrap}
.history-card>.tally-who.back{margin:-6px 0 10px}

/* Punkt 162/163: Foto und Aus Galerie nebeneinander; Vorschau nach dem Foto; Frage „Hängt die Liste noch?“ */
.tally-shoot-pair{margin:14px 0 6px}
.tally-shoot-pair .tally-shoot{margin:0}
/* 223: Abhängtag */
.tally-due{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;margin:12px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font:inherit;text-align:left;cursor:pointer}.tally-due b{font-weight:800;white-space:nowrap}.tally-shoot-pair>a.button,.tally-shoot-pair>button.button{display:flex;align-items:center;justify-content:center;text-align:center;margin:0;min-height:52px}.tally-due-change{color:var(--blue);font-weight:800;white-space:nowrap}
.shot-preview{width:100%;max-width:620px;height:100%;max-height:none;margin:0 auto;padding:12px 12px calc(14px + env(safe-area-inset-bottom));border:0;background:var(--bg);color:var(--text);overflow:auto}
.shot-preview::backdrop{background:var(--bg)}
.shot-sheet{display:block;width:100%;max-height:62vh;object-fit:contain;border-radius:8px;background:#fff}
.shot-code{margin:10px 0 4px;padding:8px 10px;border:1px solid var(--soft-border);border-radius:12px;background:var(--soft-bg);color:var(--soft-text);font-weight:800}
.shot-count{margin:0 0 10px;color:var(--muted);font-size:calc(14px * var(--fs,1))}
/* Punkt 258: Stand davor and Dazu each on its own line, Dazu stands out */
.shot-count .shot-before,.shot-count .shot-since{display:block;margin-top:2px}
.shot-count .shot-since{color:var(--text);font-weight:700;font-size:calc(16px * var(--fs,1))}
.shot-ok{min-height:52px;margin-bottom:8px;border-color:var(--green);background:var(--green);color:#fff;font-weight:800}
.hang-dialog h2{margin:0 0 2px;font-size:calc(19px * var(--fs,1))}
.hang-choice{display:flex;flex-direction:column;min-height:56px;margin-top:8px;font-weight:800;line-height:1.2}
.hang-choice small{font-weight:500;font-size:calc(12.5px * var(--fs,1));opacity:.9}
.hang-final{border-color:var(--green);background:var(--green);color:#fff}
.shot-again{position:absolute;inset:0;opacity:0;cursor:pointer}
.shot-preview .receipt-buttons .button{display:flex;align-items:center;justify-content:center;min-height:48px;padding-inline:8px;white-space:normal;line-height:1.2;text-align:center}

/* Punkt 170: Zwischenstand antippbar, Verwerfen-Knopf */
.interim-discard{margin-top:8px;border:2px solid var(--alert-border);background:none;color:var(--red)}
.photo-dialog-head strong small{display:block;font-weight:500;color:var(--muted)}

/* Punkt 169: ausgemalt = zählt nicht, rot */
.photo-full{color:var(--red);font-weight:700}

/* Punkt 173: Passkey-Geräte abmelden klebt nicht am Einladungslink */
.button.devices-remove{display:block;margin-bottom:16px}

/* Punkt 47: Ersatzliste Getränke prüfen – Betrag je Zeile, je Mitglied Guthaben danach */
.paper-amount{margin:6px 0 0;font-size:15px}
.paper-members{margin:8px 0 0;padding-left:18px;font-size:14px;line-height:1.5}

/* Punkt 132 (Nutzer, 14.11.2026): gebuchte Liste berichtigen, wie der Entwurf. */
.correct-note{margin:0 0 10px;padding:10px 12px;border-left:5px solid var(--green);border-radius:6px;background:var(--soft-bg);line-height:1.45}
.correct-title{margin:4px 0 8px;font-size:calc(20px * var(--fs,1))}
.correct-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.correct-line strong{display:block}.correct-line small{color:var(--muted)}
.correct-calc{display:grid;grid-template-columns:1fr auto;gap:6px 12px;margin:12px 0;padding:10px 12px;border-radius:10px;background:var(--soft-bg);font-variant-numeric:tabular-nums}
.correct-calc span:nth-child(even){text-align:right}.correct-calc small{display:block;color:var(--muted)}
.correct-buttons{margin-top:12px}
.correct-buttons.single{grid-template-columns:1fr}
.correct-dialog .tally-page-row strong{font-size:calc(18px * var(--fs,1))}.correct-dialog .tally-page-row small{display:block;font-size:calc(15px * var(--fs,1))}
.tally-earlier .correct-note{margin:8px 0 0}

/* Punkt 180 (Nutzer, 14.11.2026, Variante A): Buchung öffnen, Fenster von unten. */
.booking-open{padding:0;border:0;background:none;color:var(--accent-text);font:inherit;font-weight:800;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.booking-sheet{width:100%;max-width:640px;margin:auto auto 0;padding:10px 16px calc(16px + env(safe-area-inset-bottom));border:0;border-radius:18px 18px 0 0;background:var(--surface);color:var(--text);max-height:88dvh;overflow:auto}
.booking-sheet::backdrop{background:#07151d99}
.booking-sheet-grab{width:46px;height:5px;margin:0 auto 10px;border-radius:3px;background:var(--line)}
.booking-sheet-top{font-size:calc(19px * var(--fs,1));font-weight:800;margin-bottom:10px}
.booking-sheet-details dd{text-align:right;overflow-wrap:anywhere}
.booking-sheet .correct-note{margin:10px 0 0}
.booking-sheet-buttons{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px}
.booking-fix .button.primary.danger{background:var(--red);border-color:var(--red)}
.booking-sheet .button.danger-text{color:var(--red);border-color:var(--red)}
/* Punkt 181: Mindestbetrag und PINs sofort rot. */
.text-input.input-bad{border:2px solid var(--red)}
.field-error{margin:4px 0 8px;color:var(--red);font-weight:700}
/* 181 (Anleitungen-Chat b6a62f7): Kästchen groß umrandet wie am PC, Knopf mit Abstand. */
.history-card .checkbox-line.enroll-manual{align-items:center;margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-size:calc(17px * var(--fs,1));font-weight:700;cursor:pointer}
.enroll-manual input{width:26px;height:26px;flex:none;accent-color:var(--green)}
#enroll-submit{margin-top:16px}
/* Punkt 182 */
.fa-forgot{display:block;margin:10px 0 2px}
.admin-forgot .button.full{margin-top:10px}
.admin-forgot .notice{margin-top:14px}
/* Punkt 193: Geldfluss-Knöpfe; Punkt 194: Bemerkungen */
.flow-switch{grid-template-columns:1fr 1fr;gap:4px;margin-top:10px}
.notes-search{margin:8px 0 2px}
.note-count{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;background:var(--chip);color:var(--chip-text);font-size:.8rem;font-weight:700}
.bnote-title{margin:14px 0 6px;font-size:1rem}
.bnote-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bnote{padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.bnote p{margin:0;overflow-wrap:anywhere}
.bnote small{display:block;color:var(--muted)}
.bnote-old{opacity:.55}
.bnote-old p{text-decoration:line-through}
.bnote-fix{margin-top:4px}
.bnote-add{margin-top:10px;border-style:dashed}
.bnote-input{min-height:84px;resize:vertical}
/* Tester tx-312: Guthaben im Plus grün, wie am PC. */
.done-who b.positive-text{color:#17784e}
:root[data-theme="dark"] .done-who b.positive-text{color:#3cb87f}
/* Punkt 197: Alle / Im Minus / Deaktiviert unter „Mitglied suchen“ */
.deposit-groups{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px}
.deposit-group{min-height:42px;padding:8px 10px;border:1px solid var(--input-border);border-radius:999px;background:var(--surface);color:var(--text);font:inherit;font-size:.82rem;font-weight:800}
.deposit-group b{font-weight:800;opacity:.75;margin-left:2px}
.deposit-group.active{background:var(--blue);border-color:var(--blue);color:#fff}
.deposit-group.active b{opacity:.9}
/* Tester tx-328: sub rows keep red/green (stronger than .report-sub dd). */
.report-sub dd.negative-text{color:var(--red)}
.report-sub dd.positive-text{color:#17784e}
:root[data-theme="dark"] .report-sub dd.positive-text{color:#3cb87f}
/* Punkt 195: Betrag berichtigen */
.fc-amount{max-width:9rem;text-align:right;font-weight:700}
/* Punkt 200: Person | Tätigkeit gleich groß wie Zeitraum | Jahr */
.work-filters .work-who{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.work-filters .work-who .text-input{min-width:0}
.work-filters>.period-pair{grid-template-columns:1fr 1fr}
.work-filters select.text-input{font-size:.8rem;padding-left:8px;padding-right:20px;text-overflow:ellipsis}
.work-filters>.period-pair.custom{grid-template-columns:1fr}
/* Punkt 201 (Variante A): Standard › Buchen – buttons about 68 px, tiles a
   fixed height up to 130 px, so a third tile fits without scrolling and the
   tiles do not jump when one comes or goes; small phones get flatter tiles. */
.simple-free{min-height:68px}
.simple-grid .simple-tap{height:var(--tile-h,clamp(80px,calc((100dvh - 380px) / 3),130px));min-height:0}
/* Tester tx-348: small phones (up to 700 px high) keep the 68 px buttons and
   three tiles; the hints get compact, and the red line in the head gives way
   when the surcharge hint below already says it. */
@media (max-height:700px){
  .content.simple .alert{margin-bottom:8px;padding:6px 10px;font-size:calc(13px * var(--fs,1));line-height:1.3}
  :root:has(.content.simple .alert) .balance-strip .minus-line{display:none}
  .content.simple .half-buttons{margin-bottom:8px}
  .simple-grid{gap:8px}
}
:root[data-font="large"] .simple-grid .simple-tap{height:auto;min-height:130px}
/* Punkt 205: Frage nach dem Freigeben */
.fb-paper-ask .button.full{margin-top:8px}
.fb-paper-ask .view-subheading{margin:12px 0 2px}
/* Punkt 208: Schlüsselliste */
.keys-kind{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.keys-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.keys-head small{color:var(--muted)}
.keys-holders{margin:8px 0;padding-left:20px}
.keys-holders li{margin:2px 0}
.keys-holders small{color:var(--muted)}
.keys-holders .keys-meta{display:block;font-size:.82em}
.keys-off{color:var(--muted)}
.keys-kind .button.full{margin-top:8px}
.keys-people{display:grid;gap:4px;margin:10px 0;max-height:50vh;overflow:auto}
.keys-person{min-height:40px}
.keys-suppliers{margin:6px 0}
.keys-add{display:grid;grid-template-columns:1fr auto;gap:8px;margin:8px 0}
.keys-supplier small{color:var(--muted)}
/* Punkt 217: Verkauf | Sorten */
.product-views b{font-weight:800;opacity:.75;margin-left:4px}

/* Server 5d14414: a receipt line the KI was unsure about, clearly to check */
.receipt-unsure{outline:3px solid #eab308;outline-offset:2px;border-radius:10px;background:color-mix(in srgb,#eab308 14%,transparent)}.receipt-unsure-note{color:#a07800;font-weight:700}:root[data-theme="dark"] .receipt-unsure-note{color:#f1c40f}

/* Nutzer über Gestaltung (16.11.2026): „Die Vormerkung gilt … Tage.“ as its own line with some space. */
.order-form .ask-note{margin-top:10px}

/* Punkt 235 Nachtrag: „Drucken / PDF“ small in the head of „Meine Auswertung“. */
.section-heading .head-print{flex:none;min-height:40px;padding:6px 12px;font-size:calc(14px * var(--fs,1));white-space:nowrap}

/* „?“ in the head of a card (Meine Einstellungen), same look as in the bell, but in the line. */
.section-heading .card-help{position:static;flex:none}

/* Neue Regel (Nutzer über Gestaltung, 16.11.2026): only the booking window (drinks/snacks,
   #booking-dialog) comes from below; every other window opens in the middle. */
.sheet-dialog,.booking-sheet{width:min(620px,calc(100vw - 24px));max-width:none;margin:auto;padding-bottom:18px;border-radius:20px;max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 20px 70px #0005}
.sheet-dialog[open],.booking-sheet[open]{animation:dialog-pop .16s ease-out}
@keyframes dialog-pop{from{transform:scale(.96);opacity:.4}}
.booking-sheet-grab{display:none}
#booking-dialog{width:100%;max-width:620px;margin:auto auto 0;padding-bottom:calc(18px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;max-height:none;overflow:visible;box-shadow:none}
#booking-dialog[open]{animation:sheet-up .18s ease-out}

/* Punkt 220 (Nutzer, Variante A): provisional bookings from the Strichliste. */
.pending-entry{border:1.5px dashed var(--warn-line,#e0c27a);background:var(--warn-soft,#fdf6e3);cursor:pointer}
.pending-chip{display:inline-block;margin-left:6px;padding:0 7px;border:1px solid var(--warn-line,#e0c27a);border-radius:999px;color:var(--warn,#8a5a00);font-size:calc(11.5px * var(--fs,1));font-weight:800;vertical-align:2px}
:root[data-theme="dark"] .pending-chip{color:#f2c060}
/* Punkt 259: every interim state a row, the newest bold, the earlier ones behind „n frühere ▾“ */
.pending-states-box{margin:8px 0 2px;border-top:1px solid var(--warn-line,#e0c27a)}
.pending-state{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:5px 0;border-bottom:1px dotted var(--warn-line,#e0c27a);font-size:calc(14.5px * var(--fs,1))}
.pending-state span:nth-child(2){color:var(--muted);text-align:right}
.pending-state span:last-child{min-width:62px;text-align:right;white-space:nowrap}
.pending-state.newest{font-weight:800}
.pending-states-box .pending-state.older{display:none}
.pending-states-box.open .pending-state.older{display:grid}
.pending-more{display:block;min-height:40px;padding:4px 0;border:0;background:none;color:var(--link);font:inherit;font-size:calc(15px * var(--fs,1));font-weight:800;text-align:left;cursor:pointer}
.pending-total{display:flex;justify-content:space-between;gap:8px;padding-top:5px;font-size:calc(14.5px * var(--fs,1));font-weight:800}
.pending-total span:last-child:not(:first-child){white-space:nowrap}
.pending-list{margin-bottom:8px}
.pending-sum{margin:-6px 0 8px;text-align:right}
.pending-dialog{text-align:left}
.sheet-dialog.pending-dialog h2{padding-left:0}
.pending-dialog .pending-amount{margin:6px 0;font-size:calc(26px * var(--fs,1));font-weight:850}
.pending-dialog h3{margin:14px 0 6px;font-size:calc(15px * var(--fs,1))}
.pending-states{margin:0 0 14px;padding:0;list-style:none}
.pending-states li{display:flex;flex-wrap:wrap;gap:4px 10px;padding:6px 0;border-top:1px solid var(--line)}
.pending-states li span{color:var(--muted)}
.pending-states li small{color:var(--muted)}

/* Tester handy-fenster-regel: in the window in the middle at 360 px the choices
   „1 Kasten (20)“ and „wenn alles genommen ist“ were cut; on narrow phones they
   stand one under the other, every text whole. */
@media (max-width:440px){
  .fb-window .fb-row{grid-template-columns:1fr;gap:0}
  .fb-window .ends-row{grid-template-columns:1fr;gap:6px}
}

/* Punkt 220: Guthaben with the column „davon vorgemerkt“ (only when one is noted). */
.balances-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.balances-table th,.balances-table td{padding:8px 4px;border-bottom:1px solid var(--line);text-align:left}
.balances-table th{font-size:calc(12px * var(--fs,1));color:var(--muted);font-weight:700}
.balances-table .num{text-align:right;white-space:nowrap}
.balances-table .sum-row td{font-weight:800;background:var(--surface-2)}

/* „Wo kann ich buchen?“ (Nutzer, Variante A): the warning fixed at the bottom with a line above. */
.lists-warn{margin:14px 0 0;padding-top:10px;border-top:1px solid var(--line);color:var(--warn,#8a5a00);font-weight:700;font-size:calc(14px * var(--fs,1))}
:root[data-theme="dark"] .lists-warn{color:#f2c060}

/* Druck „Meine Auswertung“ (Nutzer 16.11.2026): only the report, clearly bigger print;
   money in green, as on the screen (Regel grün rein). */
@media print{
  .my-table{font-size:14pt}
  .my-table th{font-size:10pt}
  .positive-text,.positive-text *{color:#17784e!important}
}

/* Punkt 241 (Nutzer, Variante A): switches of one size in boxes (Mitglied/Kassierer bearbeiten). */
.switch-box{margin:12px 0 0;padding:4px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.switch-head{margin:8px 0 0;font-size:calc(12px * var(--fs,1));font-weight:800;letter-spacing:.06em;color:var(--muted)}
.switch-line{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);cursor:pointer}
.switch-box>.switch-line:first-child,.switch-head+.switch-line{border-top:0}
.switch-text{flex:1;min-width:0}
.switch-text b{display:block;font-size:calc(16.5px * var(--fs,1))}
.switch-text small{display:block;margin-top:1px;color:var(--muted);font-size:calc(13px * var(--fs,1));line-height:1.3;font-weight:400}
input.switch{appearance:none;-webkit-appearance:none;flex:0 0 50px;width:50px;height:30px;margin:0;border-radius:15px;background:#c5d0d7;position:relative;cursor:pointer;transition:background .15s}
input.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0006;transition:left .15s}
input.switch:checked{background:var(--blue)}
input.switch:checked::after{left:23px}
input.switch:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
:root[data-theme="dark"] input.switch{background:#3a4750}
:root[data-theme="dark"] input.switch::after{background:#e6edf1}
:root[data-theme="dark"] input.switch:checked{background:#2f8fb3}
.balance-box{display:flex;justify-content:space-between;align-items:baseline;padding:12px 14px}
.balance-box span{font-weight:800}
.balance-box b{font-size:calc(22px * var(--fs,1));white-space:nowrap}
.switch-line.has-admin-badge .admin-badge{position:static;margin-left:8px;vertical-align:middle;box-shadow:none}

/* Punkt 242 (Nutzer, Variante A): Kassierer bearbeiten, Rechte zum Auf- und Zuklappen. */
.rights-fold{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 0;border:0;background:none;color:var(--text);font:inherit;font-size:calc(17px * var(--fs,1));font-weight:800;text-align:left;cursor:pointer}
.fold-mark{display:inline-block;width:22px;color:var(--blue);text-align:center;font-size:calc(15px * var(--fs,1))}
.rights-count{margin-left:auto;color:var(--muted);font-size:calc(13px * var(--fs,1));font-weight:700;white-space:nowrap}
.rights-group{border-top:1px solid var(--line)}
.rights-group-head{display:flex;align-items:center;gap:8px;min-height:48px}
.rights-fold-small,.rights-group-name{border:0;background:none;color:var(--text);font:inherit;cursor:pointer;padding:6px 0}
.rights-group-name{flex:1;min-width:0;text-align:left;font-size:calc(15.5px * var(--fs,1))}
.rights-list{padding:0 0 6px 32px}
.right-line{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px dashed var(--line);cursor:pointer}
.rights-list>.right-line:first-child{border-top:0}
input.tick{flex:0 0 24px;width:24px;height:24px;margin:0;accent-color:var(--blue);cursor:pointer}

/* Tester punkt-241: room between the balance box and the buttons below it. */
.balance-box+*{margin-top:14px}
.admin-item-read{cursor:default}

.rights-readonly{margin:10px 0}
.rights-readonly b{display:block;margin-bottom:2px}

/* Punkt 243: the search field without a label, with ✕ inside on the right. */
.doc-search{position:relative}
.doc-search .text-input{padding-right:48px}
.doc-search-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-width:40px;min-height:40px;border:0;border-radius:10px;background:none;color:var(--muted);font-size:calc(18px * var(--fs,1));font-weight:800;cursor:pointer}
.doc-search input[type=search]::-webkit-search-cancel-button{display:none}

.doc-kind-count{margin-left:4px;font-weight:800;opacity:.85}

/* 244: Meine Einkäufe, Belege rechts unter dem Betrag */
.buyer-purchases .buyer-right{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex-shrink:0}
.buyer-purchases .buyer-receipts{white-space:nowrap;font-weight:700;font-size:.85em}

/* 252: offener ausgelegter Einkauf, wie vorgemerkt gelb gestrichelt, aber nicht als Knopf */
.laid-out-entry{cursor:default}

/* Punkt 261: after „Lieferung eingebucht“ with a warning a window in the middle */
.result-window h2{margin:4px 0 12px;font-size:calc(22px * var(--fs,1))}
.result-check{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 6px;border-radius:50%;background:var(--green);color:#fff;font-size:calc(30px * var(--fs,1));font-weight:800}
.result-rows{margin:0 0 10px;text-align:left}
.result-rows div{display:flex;justify-content:space-between;gap:12px;padding:8px 2px;border-bottom:1px solid var(--line)}
.result-rows span{color:var(--muted)}
.result-rows b{text-align:right}
.result-note{margin:6px 0 10px;color:var(--muted);text-align:left}
.result-warning{margin:0 0 10px;padding:12px 14px;border:2px solid var(--warn);border-radius:12px;background:var(--warn-soft);color:#7a3a06;font-weight:700;text-align:left;line-height:1.4}
:root[data-theme="dark"] .result-warning{color:var(--text)}
.result-ok{margin-top:4px}

/* Punkt 262: „Geld übergeben“ – name in the title line, kinds to fold open, a small bill */
#ask-title .handover-name{color:var(--muted);font-weight:700}
.handover-bill{margin:0 0 12px;padding:4px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.handover-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:calc(16px * var(--fs,1))}
.handover-row:last-child{border-bottom:0}
.handover-row span,.handover-items{color:var(--muted)}
.handover-row.total{font-size:calc(19px * var(--fs,1));font-weight:800}
.handover-row.total span{color:var(--text)}
.handover-kinds{padding:4px 0;border-bottom:1px solid var(--line)}
.handover-fold{display:flex;justify-content:space-between;gap:10px;width:100%;min-height:40px;padding:6px 0;border:0;background:none;color:var(--link);font:inherit;font-size:calc(16px * var(--fs,1));font-weight:800;text-align:left;cursor:pointer}
.handover-fold span:first-child{text-decoration:underline;text-underline-offset:3px}
.handover-items{margin:0;padding:0 0 6px 4px;list-style:none;font-size:calc(15px * var(--fs,1))}
.handover-items li{padding:3px 0}
/* 262: title and name fit in one line at 360 px */
.ask-dialog:has(.handover-bill) #ask-title{padding-left:0;padding-right:0;font-size:calc(20px * var(--fs,1))}
/* 259: amounts in the window red like on the card */
.pending-states li b .negative-text{color:var(--red)}
:root[data-theme="dark"] .pending-states li b .negative-text{color:#ff7b80}

/* Punkt 263: interim states under every sheet in Listen › Offen */
.sheet-page>div{flex:1;min-width:0}
.sheet-page-name{display:inline-flex;gap:6px;align-items:center;min-height:40px;padding:0;border:0;background:none;color:var(--text);font:inherit;font-weight:800;cursor:pointer}
.sheet-page-name span{color:var(--link);font-size:calc(22px * var(--fs,1))}
.sheet-states .sheet-state{padding:2px 0;color:var(--link);font-size:calc(15px * var(--fs,1));white-space:nowrap}
.sheet-states .sheet-state.newest{font-weight:800}
.sheet-states .sheet-state.older{display:none}
.sheet-states.open .sheet-state.older{display:block}
.sheet-more{display:block;min-height:40px;padding:4px 0;border:0;background:none;color:var(--link);font:inherit;font-size:calc(15px * var(--fs,1));font-weight:800;text-align:left;cursor:pointer}
.sheet-none{color:var(--muted)}
.sheet-state-option{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:54px;margin:0 0 8px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-weight:800;text-align:left;cursor:pointer}
.sheet-state-option small{color:var(--muted);font-weight:700}
.sheet-state-option.newest{border:2px solid var(--link)}
.sheet-state-option span{white-space:nowrap}.sheet-state-option small{text-align:right}
.sheet-state-photo{display:block;width:100%;margin:6px 0 12px;border-radius:10px;border:1px solid var(--line)}

/* Punkt 265: the tapped button or row shows a ring while it loads (same look as the PC, f80c0717) */
.is-loading{cursor:progress}
/* Fehler 273: laid over the right edge, so nothing moves (spin-rel only on elements without a position) */
.spin-rel{position:relative}
.is-loading::after{content:"";position:absolute;right:.4em;top:50%;width:.95em;height:.95em;margin-top:-.475em;box-sizing:border-box;border:.16em solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;pointer-events:none}
@media (prefers-reduced-motion:reduce){.is-loading::after{animation-duration:2s}}
/* Fehler 276: no room right of the text inside: the ring right beside the element, the text stays readable */
.is-loading.spin-out::after{right:auto;left:100%;margin-left:.35em}
.is-loading.spin-left::after{right:auto;left:.4em}
.is-loading.spin-before::after{right:100%;margin-right:.35em}

/* Punkt 266: an older state only to look at */
.sheet-state-choice .interim-discard{margin:4px 0 8px}

/* Punkt 271: „Stand … · 193 Kreuze“ stays one line inside the card with the large font (Tester: 18px reached 350 of 346 px) */
:root[data-font="large"] .sheet-states .sheet-state{font-size:17px}

/* Punkt 245: Berichtigen of a delivery, each sort on its own */
.correct-lines{display:grid;gap:8px;margin:0 0 12px}
.correct-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:left}
.correct-line span{display:grid;gap:2px;font-weight:700}.correct-line small{color:var(--muted);font-weight:600}
.correct-line .button{flex:0 0 auto;min-height:44px}
.corr-row{margin:0 0 10px}
.corr-stepper{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:8px;align-items:center}
.corr-stepper .button{min-height:48px;font-size:calc(22px * var(--fs,1));font-weight:800;padding:0}
.corr-stepper .corr-num{text-align:center;font-size:calc(20px * var(--fs,1));font-weight:800}
.corr-before{display:block;margin-top:4px;color:var(--muted)}
.corr-effect{margin:6px 0 0;font-weight:600;min-height:1.4em}
.corr-stepper.corr-single{grid-template-columns:minmax(0,1fr)}

/* Punkt 159: due recurring expenses, framed yellow on top of Einzahlen › Offen */
.recurring-due{border:2px solid var(--warn)}
.recurring-form select.text-input{appearance:auto}

/* Tester (17.0), große Schrift / Zoom 130 % bei 360 px (= 277 px): the name gets its own line when the
   symbols would squeeze it („T…“); the symbols stay together on the right. */
.header-top{flex-wrap:wrap;row-gap:8px}
.header-top h1{flex:1 1 auto;max-width:100%}
.header-top .head-actions{flex:0 0 auto;display:flex;align-items:center;gap:6px;margin-left:auto}
/* Tester (17.0): „Auswertung“ in the bottom bar not cut off at 277 px and at 360 px (Vereinfacht). */
.app-shell .tabs[style*="--tab-count"]:not([style*="--tab-count:5"]):not([style*="--tab-count:6"]):not([style*="--tab-count:7"]) .tab{letter-spacing:-.3px;padding-left:0;padding-right:0}
@media (max-width:300px){
  .app-shell .tabs[style*="--tab-count"]{gap:1px;padding-left:3px;padding-right:3px}
  .app-shell .tabs[style*="--tab-count"][style*="--tab-count:5"] .tab{letter-spacing:-.6px}
  .app-shell .tabs[style*="--tab-count"]:not([style*="--tab-count:5"]):not([style*="--tab-count:6"]):not([style*="--tab-count:7"]) .tab{font-size:min(calc(14px * var(--fs,1)),11px)}
}

/* Tester (17.0): „Kauf bestätigen“ at 277 px with „Groß“ was cut on the right, „Abbrechen“ broke.
   The two buttons stand side by side only when each gets 6.5 em (grows with the text size),
   otherwise one below the other. */
.ask-actions:not(.one){grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5em),1fr))}
.ask-actions .button{min-width:0}
.ask-dialog form{grid-template-columns:minmax(0,1fr)}
.ask-dialog .ask-rows{grid-template-columns:minmax(0,1fr)}
.ask-dialog .ask-rows div{flex-wrap:wrap;row-gap:2px}
.ask-dialog .ask-rows dd{margin-left:auto}

/* Punkt 297 (16.2): „Kasse weitersagen“ unten im Kasten Anleitung, unter einem Trennstrich; bei
   Mitglieder „🔗 Link teilen“ neben „+ Neues Mitglied“; in der Leiste der Anleitung vor PDF. */
.share-kasse{border-top:1px solid var(--line,#dce4e9);margin-top:12px;padding-top:12px}
.share-kasse h3{margin:0 0 4px;font-size:calc(16px * var(--fs,1))}
.share-kasse .muted{margin:0 0 8px}
.heading-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.heading-actions .button{flex:1 1 auto}
/* in Dunkel war die Leiste weiß mit hellem Titel; PDF und Schließen bleiben rechts, auch in der zweiten Zeile */
.help-dialog .help-bar{flex-wrap:wrap;justify-content:flex-end;background:var(--surface);border-bottom-color:var(--line);color:var(--text)}

/* Punkt 302 (17.0): „Wie ausgeben?“ – three big buttons, „Am Handy freigeben“ green, each with a line below. */
.fb-ways{display:grid;gap:8px;margin-bottom:4px}
.fb-way{min-height:56px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:2px;font-weight:800}
.fb-way small{font-weight:400;font-size:calc(13px * var(--fs,1));color:var(--muted)}
.button.fb-way-handy{background:#1f8a5b;border-color:#1f8a5b;color:#fff}
.button.fb-way-handy small{color:#e3f3ea}

/* Punkt 303 (17.0): Konto › Geld senden – list of members, window with amount and quick amounts, „💸 Senden“ green. */
.send-list{display:grid;gap:8px;margin-top:10px}
.send-row{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:52px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;text-align:left}
.send-row strong{font-size:calc(17px * var(--fs,1))}
.send-dialog .gs-amount{font-size:calc(24px * var(--fs,1));font-weight:800;text-align:right}
.gs-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,3.4em),1fr));gap:5px;margin:8px 0 4px}
.send-dialog .field{text-align:left}
.gs-quick .button{min-height:44px;padding:6px 4px;min-width:0}
.gs-line{margin:6px 0 10px;text-align:left}
.send-dialog .button.send-go{background:#1f8a5b;border-color:#1f8a5b;color:#fff}

/* Punkt 305 (17.0): Summen-Kasten oben in der Guthabenübersicht, schmal mit etwas kleinerer Schrift. */
.sums-card{border:2px solid var(--blue)}
.sums-table{font-size:calc(14px * var(--fs,1))}
.sums-table td:first-child{font-weight:700}
.sums-table .sum-row td{font-size:calc(16px * var(--fs,1));font-weight:800;border-top:2px solid var(--text)}
.send-dialog .amount-row .gs-amount{min-width:0}

/* Punkt 306 (17.0): Geld senden an eine Kasse – switch on top, „Grund“ with suggestions, yellow „Pflicht“, hint in the bell. */
.gs-kinds{margin:6px 0 10px}
.gs-required{display:inline-block;margin-left:6px;padding:0 7px;border-radius:6px;background:#e8b13a;color:#3a2a00;font-size:calc(12px * var(--fs,1));font-weight:800;vertical-align:middle}
.gs-reasons{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.gs-reason-chip{min-height:40px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--chip);color:var(--chip-text);font:inherit;font-weight:650}
.gs-reason-chip.active{background:var(--accent,#176b87);border-color:var(--accent,#176b87);color:#fff}
.notice-hint{display:block;margin-top:3px;color:var(--muted);font-size:calc(13px * var(--fs,1));font-weight:400}
/* Punkt 309 (17.0): Einstellungen › Dashboards am Handy – the fields in the label took its grey colour, now normal text;
   the field „Symbol“ wide enough for two symbols (e.g. ☀️🔋). */
.st-dash .st-input{color:var(--text)}
@media(max-width:600px){.st-dash{grid-template-columns:76px minmax(0,1fr)}}

/* Punkt 311 (17.0): Sicherung und System – message of the last error small, the list behind a button. */
.system-last{margin:6px 0 8px;word-break:break-word}.system-last small{display:block;margin-top:2px;opacity:.85}
.system-list-toggle{width:100%;min-height:44px;margin:4px 0 8px}
.system-errors[hidden]{display:none}
/* 311 wie PC e4c317d7: the message small, at most 3 lines. */
.system-last{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;word-break:normal}

/* Punkt 312 (17.0): Administratorbereich – „🛒 Produktmodus“ as one tile (like js/settings-tiles.js), opened with the switches. */
.pm-tile{display:block;width:100%;text-align:left;font:inherit;color:var(--text);cursor:pointer;border:1px solid var(--line)}
.pm-head{display:flex;gap:12px;align-items:center;margin-bottom:8px}.pm-head h2{margin:0;font-size:calc(19px * var(--fs,1))}.pm-head small{color:var(--muted)}
.pm-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--chip);font-size:24px;flex:none}
.pm-lines{list-style:none;margin:0;padding:0;display:grid;gap:4px}.pm-lines li{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-top:1px solid var(--line-soft)}.pm-lines li span{color:var(--muted)}.pm-lines li b{text-align:right}
.pm-more{display:block;margin-top:8px;color:var(--link);font-weight:700}
/* 348: KI-Einstellungen im Administratorbereich (wie PC) */
.fa-ai-places{width:100%;border-collapse:collapse;font-size:calc(14px * var(--fs,1))}.fa-ai-places th,.fa-ai-places td{padding:7px 4px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:middle}.fa-ai-places th:not(:first-child),.fa-ai-places td:not(:first-child){text-align:center;width:64px}.fa-ai-places td small{display:block;color:var(--muted);font-size:calc(12px * var(--fs,1))}.fa-ai-sub td:first-child{padding-left:14px}.fa-ai-head td{padding-top:10px}.fa-ai-only{color:var(--muted);font-size:calc(12px * var(--fs,1))}.fa-ai-places .tick{width:24px;height:24px}
.fa-ai .button.full+.button.full{margin-top:8px}
.pm-back{margin:0 0 10px;background:none;border:0;padding:6px 0;color:var(--link);font:inherit;font-size:calc(17px * var(--fs,1));cursor:pointer}
.pm-block{margin-top:12px;padding-top:10px;border-top:1px solid var(--line-soft)}.pm-title{margin:0 0 4px;font-size:calc(17px * var(--fs,1))}
.pm-switch button{white-space:normal;line-height:1.25}
.pm-row{margin-bottom:10px}.pm-fixed{margin:4px 0;color:var(--muted)}
.pm-check{display:flex;gap:10px;align-items:flex-start;min-height:44px;padding:8px 0}.pm-check input{width:22px;height:22px;flex:none;margin-top:2px}.pm-check small{display:block;color:var(--muted)}
.pm-group{display:block;margin:10px 0 6px;font-size:calc(16px * var(--fs,1))}
/* 312 Nachbesserung (Tester): the chosen position in „🛒 Produktmodus“ filled blue, clear in Dunkel too. */
.pm-switch button.active{background:#176b87;color:#fff;box-shadow:none}
:root[data-theme="dark"] .pm-switch button.active{background:#1f6f8a;color:#fff}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pm-switch button.active{background:#1f6f8a;color:#fff}}

/* Punkt 318 (18.0): kinds of a supplier as ticks. */
.supplier-kinds{border:1px solid var(--line);border-radius:12px;margin:10px 0;padding:6px 12px 8px}.supplier-kinds legend{padding:0 4px;font-weight:700}.supplier-kinds .check-line{min-height:44px}

/* Punkt 331 (18.0, Nutzer): „Zurück“ in a head with other buttons stands on the far right. */
.print-preview-bar .pv-back{margin-left:auto}
.print-preview-bar .pv-hint{flex-basis:100%}

/* Punkt 332 Nachtrag (18.0): „Inhalt je Flasche“ – choice, „anderer Wert …“ below. */
.content-pick{display:grid;gap:8px}.content-pick [hidden]{display:none}

/* Punkt 337 (18.0, Variante C): „📊“ in the head right of the bell, the window „📊 Dashboards“. */
#dash-slot:empty{display:none}#dash-slot{display:contents}
.dash-button{flex:0 0 auto;min-width:40px;height:38px;min-height:38px;padding:0 4px;border:1px solid #ffffff60;border-radius:10px;background:transparent;color:#fff;font-size:min(calc(19px * var(--fs,1)),21px);line-height:1}
.dash-list{display:grid;gap:10px;margin:4px 0 12px}
.dash-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);text-decoration:none}
.dash-icon{display:grid;place-items:center;flex:none;min-width:44px;height:44px;padding:0 4px;border-radius:12px;background:var(--chip);font-size:22px}
.dash-text{flex:1;min-width:0}.dash-text b{display:block;font-size:calc(17px * var(--fs,1))}.dash-text small{display:block;color:var(--muted);font-size:calc(14px * var(--fs,1))}
.dash-go{flex:none;color:var(--link);font-size:22px;font-weight:700}
.ask-dialog:has(.dash-list) .ask-kicker{display:none}
/* Punkt 280: „✓ Gleich buchen“ | „Am PC prüfen“ in der Prüfansicht */
.book-here{margin:16px 0 8px;padding:12px;border-radius:12px;background:var(--surface-2);border:2px solid var(--soft-border)}.book-here h3{margin:0 0 4px;font-size:calc(17px * var(--fs,1))}.book-here .small-hint{margin:0 0 10px}.book-here .half-buttons{margin:0}.book-here .button{min-height:48px;font-weight:800}
.book-here-why{margin:8px 0 0;padding-left:20px;text-align:left;line-height:1.45}.book-here-why li{margin:4px 0}
/* Punkt 343 (Variante B): Mitglied auf offener Liste – blauer Rand, „📝 auf Liste“, groß der Stand auf der Liste, klein „tatsächlich“ */
.member-pick.member-on-list{border:2px solid var(--blue);padding:12px 13px;gap:10px}
.member-on-list .mp-name{display:flex;flex-direction:column;gap:2px;min-width:0}.member-on-list .mp-name small{color:var(--muted);font-weight:500;font-size:calc(13px * var(--fs,1))}
.member-on-list .mp-big{font-size:calc(19px * var(--fs,1));font-weight:800;white-space:nowrap}
/* Punkt 350 (Variante B): „📝 Liste …“ blue mark, „davon … vorgemerkt“ yellow dashed like noted bookings. */
.list-chip{display:inline-block;align-self:flex-start;margin-top:4px;padding:2px 8px;border-radius:999px;background:var(--soft-bg);border:1px solid var(--soft-border);color:var(--soft-text);font-size:calc(12.5px * var(--fs,1));font-weight:600;white-space:nowrap}.list-chip b{font-weight:750}.list-chip b.negative-text{color:var(--red)}
.pend-chip{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:7px;background:var(--warn-soft,#fff4e5);border:1.5px dashed var(--warn-line,#f3c58a);color:var(--notice-text);font-size:calc(12.5px * var(--fs,1));font-weight:600;white-space:nowrap}
.mp-right,.ai-right{display:flex;flex-direction:column;align-items:flex-end;flex:0 1 auto;max-width:52%;text-align:right}.mp-right .pend-chip,.ai-right .pend-chip{white-space:normal}
.member-on-list .mp-name,.admin-item>span:first-child{flex:1 1 auto;min-width:0}
.admin-item span small+.list-chip{display:table}
.on-list-box .olb-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.on-list-box .olb-row small{display:block;color:var(--muted)}.on-list-box .olb-row strong{display:block;font-size:calc(26px * var(--fs,1));font-weight:800;line-height:1.2}
.list-tag{font-style:normal;font-size:calc(11px * var(--fs,1));font-weight:650;background:var(--chip);color:var(--chip-text);border-radius:999px;padding:2px 8px;margin-left:4px;vertical-align:middle;white-space:nowrap}
.on-list-box{border:2px solid var(--blue);border-radius:12px;padding:10px 12px;margin:0 0 12px}.on-list-box p{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:2px 0}.on-list-box p span{color:var(--muted)}.on-list-box strong{font-size:calc(21px * var(--fs,1));font-weight:800}.on-list-box .hint{display:block;margin:8px 0 0}
/* 343 Tester: „Mindestens … einzahlen“ gelb wie am PC */
.on-list-box .on-list-min{display:block;margin:8px 0 0;padding:8px 10px;border:1px solid var(--notice-border);border-radius:9px;background:var(--notice-bg);color:var(--notice-text);font-weight:650;line-height:1.4}
/* Punkt 275: „📉 … weniger angekreuzt als sonst“ ruhiges Blau, kein Rot */
.notice-row.less-drinks{border:2px solid var(--soft-border);background:var(--soft-bg)}.less-drinks-hint{margin:8px 2px 0;line-height:1.4}
/* 347 Zusatz: unbekannter Strichcode groß, Kamera weg, „Neu scannen“ | „Schließen“ */
.scanner-problem{display:grid;gap:10px;margin-top:14px}.scanner-problem[hidden]{display:none}
.scanner-problem-text{margin:0 0 6px;padding:18px 14px;border:2px solid var(--notice-border);border-radius:14px;background:var(--notice-bg);color:var(--notice-text);font-size:calc(21px * var(--fs,1));font-weight:800;line-height:1.35;text-align:center}
.scanner-problem .button{min-height:54px;font-size:calc(18px * var(--fs,1));font-weight:800}
#scanner-message[hidden],#ean-form[hidden]{display:none}

/* Punkt 353 (19.0, Variante C): header with 🔔, 📊, ☰ as white line icons, 38×38; bell with a red dot;
   ☰ opens a small menu (Aktualisieren, Hilfe, Abmelden in red under a line). */
.header-top .head-actions{position:relative}
/* 353 Tester-Fund: above the sticky tabs (z-index 4), below busy (19), toast (20) and success (30). */
:root .mobile-header>.header-top{position:relative;z-index:5}
.header-top .head-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border:1px solid #ffffff60;border-radius:10px;background:transparent;color:#fff;line-height:1}
.header-top .head-btn svg{width:22px;height:22px}
.header-top .head-btn.on{background:#ffffff30}
.header-top .notice-button.warn,.header-top .notice-button.bad{background:transparent;border-color:#ffffff60;color:#fff}
.header-top .notice-button.none svg{opacity:.75}
/* 355 (Variante A): colourful emoji, ☰ in a blue filled button, bell with notices yellow edged. */
.header-top .head-emoji{font-size:21px}
.header-top .head-emoji span{line-height:1}
.header-top .notice-button.none span{opacity:1}
.header-top .head-fill,.header-top .head-fill.on{background:#1f7a99;border-color:#1f7a99}
.header-top .notice-button.head-alert{border:2px solid #ffc83d;background:#ffc83d26}
.header-top .notice-button .head-dot{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#d43c4a;color:#fff;font:700 11px/15px system-ui,sans-serif;text-align:center;box-sizing:border-box;border:1.5px solid var(--head-cash)}
.mobile-header:not(.cashier) .header-top .notice-button .head-dot{border-color:var(--head-member)}
.header-top .head-menu-button.spinning svg{animation:refresh-spin .8s linear infinite}
.head-menu{position:fixed;right:8px;top:60px;z-index:60;width:230px;padding:6px;border-radius:12px;background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:0 8px 24px #0005}
.head-menu[hidden]{display:none}
.head-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:calc(16px * var(--fs,1));font-weight:600;text-align:left}
.head-menu button svg{width:22px;height:22px;flex:none;color:var(--link)}
.head-menu .head-menu-logout{margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 8px 8px;color:var(--red)}
.head-menu .head-menu-logout svg{color:var(--red)}

/* Punkt 354 (20.0): Einzahlung buchen – old value small, end big and bold; surcharge falls away (green) or stays (yellow). */
.ask-rows .confirm-old{font-size:calc(15px * var(--fs,1));font-weight:500;color:var(--muted)}
.ask-rows .confirm-new{font-size:calc(22px * var(--fs,1));font-weight:800}
.surcharge-drop,.surcharge-stays{margin:6px 0 10px;border-radius:9px;padding:7px 10px;font-size:calc(15px * var(--fs,1));font-weight:650;line-height:1.35}
.surcharge-drop{background:#e8f5ee;border:1px solid #9fd2b6;color:#17603f}
.surcharge-stays{background:var(--notice-bg);border:1px solid var(--notice-border);color:var(--notice-text)}
:root[data-theme="dark"] .surcharge-drop{background:#14301f;border-color:#2f6a4a;color:#8fdcb3}

/* Punkt 356 (20.0, Nutzer): Verwaltung öffnen – space between the password field and „Öffnen“. */
.manager-unlock form .button{margin-top:16px}
/* 356 Zusatz (20.0): in the edit windows nothing sticks to a box (e.g. „Einladungslink erstellen“ right under „Aktiv“ when the balance box is missing). */
#admin-dialog .switch-box+:not(.switch-box){margin-top:14px}

/* Punkt 357 (20.0): „🔑 Mit Passkey öffnen“ on top, „oder mit Passwort“ as a line between. */
.manager-unlock .manager-passkey{margin-top:4px}
.manager-or{display:flex;align-items:center;gap:10px;margin:16px 0 4px;color:var(--muted);font-size:calc(14px * var(--fs,1));font-weight:600}
.manager-or::before,.manager-or::after{content:"";flex:1;border-top:1px solid var(--line)}

/* Punkt 358 (20.0): tabs „Verkauf | Produkte | Leergut-Arten“ – the name in one line, the number below. */
.product-views button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.15;padding-left:2px;padding-right:2px}
.product-views .pv-l{white-space:nowrap;font-size:min(calc(15px * var(--fs,1)),17px)}
.product-views b{margin-left:0}

/* Punkt 365 (20.0): a hidden Leergut-Art with „Einblenden“ beside it. */
.ek-hidden-row{display:flex;flex-direction:column;gap:6px}.ek-hidden-row>.button{margin:0;min-height:44px}

/* Punkt 367 (20.0, Variante B): Meine Aufgaben – two tiles with what is open, the chosen one framed. */
.task-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.task-tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:92px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.task-tile .task-icon{font-size:24px;line-height:1}.task-tile b{display:block;font-size:calc(17px * var(--fs,1))}.task-tile small{display:block;color:var(--muted);font-size:calc(13.5px * var(--fs,1));line-height:1.3}
.task-tile.active{border:2px solid var(--blue);background:var(--soft-bg);padding:11px}

/* Punkt 369 (20.0): the Verwaltung of a Verwalter in the cashier colour (Test-Kasse and real Kasse each their own). */
.mobile-header.manager-head{background:var(--head-cash)}

/* Punkt 374 (20.0, Variante A): „Stand davor · Erkannt · Dazu“ on top of the box page, Dazu stands out. */
.count-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 10px;padding:8px;border:2px solid var(--blue);border-radius:12px;background:var(--soft-bg)}
.count-bar div{text-align:center}.count-bar small{display:block;color:var(--muted);font-size:min(calc(12px * var(--fs,1)),14px);line-height:1.2;white-space:nowrap}
.count-bar b{font-size:calc(20px * var(--fs,1))}.count-bar .count-dz b{font-size:calc(24px * var(--fs,1));color:var(--soft-text)}
.photo-changed{color:#0b8f8a}:root[data-theme="dark"] .photo-changed{color:#3fd6cf}
.interim-dialog .book-here{margin-top:10px}
/* 374 Zusatz (Nutzer): the 4th number „Verbessert“ in the colour of „verbessert“ (turquoise). */
.count-bar .count-chg b{color:#0b8f8a}:root[data-theme="dark"] .count-bar .count-chg b{color:#3fd6cf}

/* Punkt 375 (20.0, Nutzer, Entwurf Variante B): only the real Kasse – „BAUWAGEN · KASSE“ in staggered rows like the
   TEST-KASSE pattern, white at ~9 %, in every head (green Mein Konto and, since the user 28.11., blue Kasse/Verwaltung). The box „Mein
   Guthaben“ is solid (#265244), the pattern does not run through it. The Test-Kasse stays as it is. */
:root[data-brand="echt"] .mobile-header{position:relative;overflow:hidden}
:root[data-brand="echt"] .mobile-header>*{position:relative;z-index:1}
:root[data-brand="echt"] .mobile-header::before{content:"BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE\A       BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE\A BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE\A       BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE\A BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE · BAUWAGEN · KASSE";position:absolute;inset:calc(4px + env(safe-area-inset-top)) 0 0 -8px;z-index:0;white-space:pre;overflow:hidden;font-weight:800;font-size:18px;line-height:36px;letter-spacing:.12em;color:#fff;opacity:.09;pointer-events:none}
:root[data-brand="echt"] .mobile-header .balance-strip{background:#265244}
:root[data-brand="echt"] .mobile-header:is(.cashier,.manager-head) .balance-strip{background:#254053}
/* Punkt 376: Konto tabs as tiles like the Verwaltung, sticky like before, red number at Aufgaben. */
.account-bar{position:sticky;top:6px;z-index:4;box-shadow:0 2px 10px #0000001f}
.account-bar .history-chip{position:relative;min-height:62px;white-space:normal;text-align:center;overflow-wrap:anywhere}
.account-bar .tile-count{position:absolute;top:4px;right:6px;min-width:20px;padding:1px 6px;border-radius:999px;background:#d63031;color:#fff;font-size:12px;line-height:1.4}
/* Punkt 371/377: the own pictures (bild()) as big as the emoji next to them; in the bars above the word. */
.bild{display:inline-block;width:1.3em;height:1.3em;vertical-align:-.25em}
.tab-icon .bild{display:block;width:1.5em;height:1.5em;margin:-.22em auto -.18em}
/* Punkt 378: Ansicht and Schrift in „Mitglied bearbeiten“, the two switches with a little room. */
.member-view-box .admin-sections{margin:4px 0 8px}
.member-view-box .admin-sections button{white-space:nowrap}
.member-view-box .switch-head+.admin-sections{margin-top:2px}
.member-view-box .locked-hint{margin:0 0 8px}
/* Punkt 379: all sub tab rows as tiles (tileTabs); the Administratorbereich row sticks at the very top as before. */
.account-bar:has([data-action="fa-sub"]){top:0;box-shadow:0 -6px 0 var(--bg),0 2px 10px #0000001f}
.tile-tabs .tile-num{display:block;font-weight:600;font-size:12px;opacity:.75}
/* Punkt 380 (19.1/20.0, Nutzer): „Ganzes Blatt“ shows the whole sheet in the frame and cannot be moved (the frame
   grows if needed); scrolling only with „Groß“. */
.interim-figure:not(.zoomed) .interim-zoom{max-height:none;overflow:hidden}
/* Punkt 381: the Verwaltung bar in two rows from 6 tiles, normal tile size, a line between the rows. */
.admin-bar.two-rows .history-chip{font-size:min(calc(13px * var(--fs,1)),13.5px);border-left:1px solid var(--line)}
.admin-bar.two-rows .history-chip.row-start{border-left:0}
.admin-bar.two-rows .history-chip.row2{border-top:1px solid var(--line)}
/* Punkt 379 Rest (Nutzer, Bildschirmfoto 22:29): a sticky tile row keeps a band in the page colour above and below
   (like the Admin tabs, 349), so a card scrolling underneath never touches the row („Kategorie“ glued to it). */
.account-bar{box-shadow:0 -6px 0 var(--bg),0 12px 0 var(--bg)}
/* 374 Fund: the count bar of an older state has three numbers (no „Verbessert“). */
.count-bar.three{grid-template-columns:repeat(3,minmax(0,1fr))}
/* Punkt 382: the Protokoll in the Administratorbereich – filters two by two, each entry a small card, failed logins yellow. */
.audit-card h2{margin:2px 0 4px}
.audit-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}
.audit-filter{display:flex;flex-direction:column;gap:4px;min-width:0;font-weight:700;font-size:calc(13px * var(--fs,1))}
.audit-filter .text-input{width:100%;min-width:0;min-height:44px;padding:8px 10px;font-size:calc(15px * var(--fs,1));font-weight:600}
.audit-filter.audit-search{grid-column:1/-1}
.audit-list{display:flex;flex-direction:column;gap:8px}
.audit-entry{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.audit-entry.audit-failed{background:var(--notice-bg);border-color:var(--notice-border,var(--line));color:var(--notice-text)}
.audit-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.audit-top .audit-when{font-size:calc(14px * var(--fs,1))}
.audit-kind{font-size:calc(13px * var(--fs,1));font-weight:700;white-space:nowrap}
.audit-who,.audit-what{margin-top:4px}
.audit-who small,.audit-what small{color:var(--muted)}
.audit-entry.audit-failed small{color:inherit;opacity:.85}
.audit-changes{margin-top:6px;display:flex;flex-direction:column;gap:3px;font-size:calc(14px * var(--fs,1))}
.audit-change{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:baseline}
.audit-label{font-weight:700}
.audit-old{color:var(--muted);text-decoration:line-through}
.audit-arrow{color:var(--muted)}
.audit-new{font-weight:700}
.audit-dash{color:var(--muted)}
.audit-card .button.full{margin-top:12px}
/* Punkt 383: change amount, owner and name after „Schrift mit KI lesen“. */
.hw-part .hw-fix,.hw-owner .hw-fix,.hw-pick .hw-fix{min-height:40px;padding:6px 10px;font-size:calc(14px * var(--fs,1))}
.hw-part-read{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.hw-fixed{color:var(--muted)}
.hw-owner{margin:6px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hw-owner small{color:var(--muted)}
.hw-pick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.hw-member-list{display:grid;gap:6px;max-height:50vh;overflow:auto;margin:10px 0}
.hw-item:has(.hw-pick){flex-direction:column;align-items:stretch}
.hw-item:has(.hw-pick) .hw-cuts img{max-height:90px}
/* Punkt 384 (20.0, Nutzer 00:12): below the Belege (with „🤖 Kassenzettel mit KI lesen“) the booking button keeps the
   usual gap, for Ausgabe, Einkauf, Snacks, Leergut. */
.receipts-block+.button{margin-top:14px}
/* 384 Zusatz (Nutzer 00:15): a button right below a list (e.g. „Laufende Ausgaben“ › „＋ Neue Vorlage“) keeps the gap. */
.history-list+.button{margin-top:14px}
/* Einkauf als Kacheln (20.0): „Bestellen | Direkt einbuchen“ as tiles with pictures; Bestellen stays the blue main one. */
.action-tiles{margin:6px 0 10px;gap:0}
.action-tiles .history-chip{min-height:62px;white-space:normal;text-align:center;font-size:min(calc(13px * var(--fs,1)),13.5px)}
.account-bar.group-pick{position:static;box-shadow:none;margin:10px 0 16px}
/* Tile rows inside a card (Produkte | Leergut-Arten, Getränke | Snacks) do not stick and have no page-colour band. */
.history-card .account-bar{position:static;box-shadow:none}
/* Punkt 386: „⚙️ Verwaltung 🔒“ in one line (only the switch with the Verwaltung). */
.mode-switch:has([data-value="manager"]) button{white-space:nowrap}
/* Punkt 387: under the camera „🔍 Näher“ and „🔄 Kamera wechseln“, and the hint when it is dark. */
.scanner-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin-top:10px}
.scanner-tools[hidden],.scanner-tools .button[hidden]{display:none}
.scanner-tools .button{min-height:44px;padding:6px 8px;font-size:calc(15px * var(--fs,1))}
.scanner-tools .button.on{background:var(--blue);border-color:var(--blue);color:#fff}
.scanner-dark{margin:10px 0 0;padding:8px 10px;border-radius:10px;background:var(--notice-bg);color:var(--notice-text);font-weight:700;font-size:calc(15px * var(--fs,1))}
.scanner-dark[hidden]{display:none}
/* 388 Zusatz: the computed deposit per crate below the Leergut fields, as at the PC. */
.empties-calc{margin:8px 0 0;font-weight:700;font-size:calc(15px * var(--fs,1))}
/* 383 Zusatz: the row of the sheet above each cut. */
.hw-row-name{margin:0 0 4px;font-size:calc(15px * var(--fs,1));color:var(--muted)}
.hw-row-name b{display:inline;font-size:inherit;color:var(--text)}
/* Fehler 390 (Nutzer, echte Kasse v20.0): with the lettering every child of the head is its own layer (z-index 1);
   the row with the ☰ menu goes above the solid „Mein Guthaben“/„Kassenstand“ box and the sticky tile rows (z-index 4,
   Tester-Fund), so the menu is not covered. */
:root[data-brand] .mobile-header>*:has(.head-menu){z-index:5}
/* Punkt 394: the row in the photo (name and „Zahlung“) above the amounts. */
.hw-row-pic{display:block;width:100%;max-width:480px;height:auto;margin:0 0 6px;border-radius:6px;background:#fff;border:1px solid var(--line)}
/* Punkt 395: amounts added up by the program – yellow to check until „Betrag ändern“. */
.hw-part.summed{background:var(--notice-bg);border:1px solid var(--notice-border);border-radius:10px;padding:6px}
.hw-item .hw-summed{display:block;margin:4px 0;color:var(--notice-text);font-weight:700}
/* Punkt 397: fewer crosses than before – yellow hint below „Dazu: 0“. */
.count-less{display:block;margin:6px 0 8px;padding:8px 10px;border-radius:10px;border:1px solid var(--notice-border);background:var(--notice-bg);color:var(--notice-text);font-weight:700;font-size:calc(15px * var(--fs,1));text-align:left}
/* Punkt 399: the deposits of one member to choose from – date left, amount right. */
.pay-booking-pick{margin-bottom:8px;text-align:left;justify-content:flex-start}
.pay-bookings-sum{margin:4px 2px 12px;text-align:right;font-size:calc(17px * var(--fs,1))}
/* Punkt 401: unchecked photos in the card, the choice below; steps on top of every checked sheet; the overview. */
.tally-pending{display:grid;gap:8px;margin-top:6px}
.pending-note{color:var(--notice-text)!important;font-weight:700}
.pending-ask{margin:0;padding:8px 10px;border-radius:10px;background:var(--notice-bg);border:1px solid var(--notice-border);color:var(--notice-text);font-weight:700;font-size:calc(15px * var(--fs,1))}
.pending-choice .button{display:grid;gap:2px;min-height:62px;line-height:1.2}.pending-choice .button small{font-weight:400;font-size:calc(12.5px * var(--fs,1));opacity:.9}
.check-steps{display:grid;gap:5px;margin:0 0 10px}.check-steps-label{display:flex;justify-content:space-between;gap:8px;font-size:calc(14px * var(--fs,1));color:var(--muted);font-weight:700}
.check-bar{display:flex;gap:5px}.check-bar span{flex:1;height:7px;border-radius:4px;background:var(--line)}.check-bar .on{background:var(--blue)}.check-bar .fin{background:var(--green)}
.next-shot-done{margin:0 0 6px;font-weight:700;color:var(--green)}.next-shot-left{margin:10px 0}
.next-shot-dialog .tally-shoot{margin-bottom:10px}
.overview-wrap{overflow-x:auto;margin:0 0 8px}
.overview-table{width:100%;border-collapse:collapse;font-size:min(calc(14px * var(--fs,1)),15px);font-variant-numeric:tabular-nums}
.overview-table th{font-size:min(calc(12px * var(--fs,1)),13px);color:var(--muted);font-weight:700;text-align:right;padding:4px 3px}
.overview-table td{padding:7px 3px;border-top:1px solid var(--line);text-align:right;white-space:nowrap}
.overview-table th:first-child,.overview-table td:first-child{text-align:left;white-space:normal;overflow-wrap:anywhere;padding-left:0}
.overview-table th:last-child,.overview-table td:last-child{padding-right:0}
.overview-table tr.with-surcharge td{background:var(--notice-bg)}
.overview-table .surcharge-cell{color:var(--notice-text);font-weight:700}
.overview-table tr.overview-sum td{font-weight:800;border-top:2px solid var(--text)}
.overview-legend{margin:0 0 10px;font-size:calc(13.5px * var(--fs,1));color:var(--muted)}.overview-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;background:var(--notice-bg);border:1px solid var(--notice-border);vertical-align:-1px;margin-right:5px}
.tally-overview-dialog [data-overview-agree].active{background:var(--green);border-color:var(--green);color:#fff}
.tally-overview-dialog .half-buttons{margin:10px 0}
/* 401 Nachtrag: „‹ Blatt 1“ back, a clear button beside the steps. */
.check-steps-label{align-items:center}
.check-steps .check-back{min-height:36px;padding:4px 12px;font-size:calc(14px * var(--fs,1));white-space:nowrap}
/* 401 Zusatz: blank rows with crosses in the overview, yellow, „Mitglied wählen“. */
.overview-table tr.blank-row td{background:var(--notice-bg);color:var(--notice-text);white-space:normal}
.overview-table tr.blank-row td:first-child small{display:block;color:var(--text);font-weight:700}
.overview-table .blank-pick{min-height:36px;padding:4px 8px;font-size:calc(13.5px * var(--fs,1));width:100%}
.blank-open{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:var(--notice-bg);border:1px solid var(--notice-border);color:var(--notice-text);font-weight:700;font-size:calc(14px * var(--fs,1))}
.hw-member-dialog .hw-pick{margin:0 0 10px}
/* 409: „Nächstes Blatt“ with two equal buttons; 410: the red 🗑 at a waiting sheet. */
.next-shot-label{margin:10px 0 6px;font-weight:700}
.next-shot-pair{margin:0 0 10px}
.pending-row{align-items:center}
.pending-remove{flex:none;min-width:48px;min-height:44px;padding:4px 10px;font-size:calc(20px * var(--fs,1));background:var(--alert-bg);border:1px solid var(--alert-border);color:var(--red)}
/* 411: a blank paper list, compact (Variante B). */
.paper-blank{display:grid;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}
.paper-blank-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.paper-blank-top>div{min-width:0}.paper-blank-top strong{display:block}.paper-blank-top small{color:var(--muted)}
.paper-discard-small{flex:none;min-height:34px;padding:3px 10px;font-size:calc(13.5px * var(--fs,1));background:var(--surface);border:1.5px solid var(--red);color:var(--red)}
.paper-blank-actions .button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:6px 6px;white-space:nowrap;font-size:min(calc(14.5px * var(--fs,1)),16px)}
/* 413: a block for every blank row with crosses on the checking page. */
.blank-block{margin:10px 0;padding:10px;border-radius:12px;border:1px solid var(--notice-border);background:var(--notice-bg)}
.blank-head{font-size:calc(15px * var(--fs,1));color:var(--notice-text)}.blank-head b{color:var(--text)}
.blank-row-scroll{overflow-x:auto;margin:8px 0;border-radius:6px;border:1px solid var(--line);background:#fff}
.blank-block img.blank-row-pic{display:block;height:64px;width:auto;max-width:none}
.blank-choice{margin:0 0 8px;font-size:calc(16px * var(--fs,1))}.blank-none{color:var(--notice-text);font-weight:700}
.blank-actions{display:flex;gap:8px;flex-wrap:wrap}
.hw-marks{margin:0 0 4px;font-weight:700;color:var(--notice-text)}
/* Punkt 424 (20.1, Nutzer): Listen › Listen – the pictures in one column on the left, every name starts at the same
   place (left), › stays right; .admin-item>span:first-child stretched the picture before. */
.admin-item.list-pick>.list-pick-icon{flex:0 0 32px;width:32px;text-align:center}
.admin-item.list-pick>b{flex:1 1 auto;text-align:left}
.admin-item.list-pick>.list-pick-arrow{flex:none;margin-left:auto}
/* 429: a reading of the photo before, and cuts taken over from it. */
.hw-stale{margin:8px 0;padding:8px 10px;border-radius:10px;border:1px solid var(--notice-border);background:var(--notice-bg);color:var(--notice-text);font-weight:700}
.hw-stale-buttons{margin-top:8px}
.hw-reused{display:block;color:var(--muted);font-size:calc(13px * var(--fs,1))}
/* 430: stop a running reading on a paper list (red outline, below the running button). */
.button.hw-cancel{margin-top:6px;border:1.5px solid var(--red);color:var(--red);background:var(--surface)}
/* 434: no paper lists in the detailed product mode. */
.notice.no-paper-note{margin:0 0 10px}
/* 341: coupling the passkey outside (Variante C). */
.button.kopplung-here{display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;text-align:center}.kopplung-here small{font-weight:400;font-size:calc(13px * var(--fs,1));opacity:.9}
.kopplung-center{text-align:center;margin:10px 0 4px}
.kopplung-qr{display:grid;place-items:center;justify-self:center;width:max-content;margin:0 auto;padding:8px;background:#fff;border-radius:12px;border:1px solid var(--line)}
.kopplung-code{font-family:ui-monospace,Consolas,monospace;font-size:calc(22px * var(--fs,1));letter-spacing:2px;color:var(--text)}
.kopplung-timer{display:grid;gap:4px;margin:8px 0 12px;font-size:calc(14px * var(--fs,1));color:var(--muted)}.kopplung-timer i{display:block;height:6px;border-radius:3px;background:var(--line);overflow:hidden}.kopplung-timer i b{display:block;height:100%;width:100%;background:var(--blue);transition:width 1s linear}
/* 443: lower part of a purchase (Variante A) – short sum rows, narrow amount fields on the right with „€“. */
.bill-sum{gap:0}.bill-sum div{padding:3px 2px;border-radius:0;background:none}.bill-sum dd{font-size:inherit;font-weight:600}
.bill-sum div.strong{border-top:1px solid var(--line);margin-top:2px;padding-top:5px}.bill-sum div.strong dt,.bill-sum div.strong dd{font-weight:800}
.bill-sum[hidden]{display:none}
.buy-form>.money-row{padding:0 13px}.bill-sum[hidden]+.money-row{margin-top:0}
.money-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 0}.money-row label{font-weight:700;min-width:0;font-size:calc(15px * var(--fs,1))}
.money-eu{display:inline-flex;align-items:center;gap:6px;flex:none}.money-eu .text-input{width:110px;text-align:right}.money-eu b{font-weight:700}.money-eu .money-gap{visibility:hidden}
.extra-block{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.extra-block .field{margin-top:0}
.extra-pair{display:flex;align-items:center;gap:8px}.extra-pair .extra-note{flex:1;min-width:0}
/* 445: Sonstige Ausgabe in „Geld übergeben“ – field to change, „✕ Streichen“. */
.handover-row.handover-extra{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 8px}.handover-extra .button{grid-column:1/-1;justify-self:end;min-height:40px;padding:6px 12px}
/* 447: Protokoll entries with details are tappable like a booking; the window lists the lines. */
.audit-entry.audit-tap{cursor:pointer;border-color:var(--soft-border)}.audit-entry.audit-tap:active{background:var(--soft-bg)}
.audit-more{display:block;margin-top:6px;color:var(--soft-text);font-weight:700;font-size:calc(14px * var(--fs,1))}
.audit-detail-head,.audit-detail-what{margin:0 0 6px;color:var(--muted)}.audit-detail-head b,.audit-detail-what b{color:var(--text)}
.audit-details{margin:8px 0 0;padding-left:20px;display:grid;gap:6px;text-align:left}
/* 450: room below while a search field has the focus, so it can scroll to the top above the keyboard. */
body.search-focus .app-shell{padding-bottom:70vh}
/* 449: date row like the amount rows, the field narrow on the right. */
.date-row .text-input{width:auto;max-width:170px;flex:none}
