/* Zeiterfassung, neues Design. Schriften liegen lokal in static/fonts (keine Verbindung zu Google). */
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/instrument-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/instrument-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/instrument-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/bricolage-grotesque-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
:root {
  --bg:#EEF1F6; --card:#FFFFFF; --ink:#0D1B3E; --muted:#556079; --line:#D5DBE8; --soft:#E6EBF3;
  --panel:#0D1B3E; --panel-ink:#FFFFFF; --panel-muted:#A9B5D4; --panel-line:#34467E;
  --mark:#FFE14D; --mark-ink:#0D1B3E; --mark-tint:#FFF6C2;
  --ok:#0B7A5A; --ok-bg:#DDF3EA; --warn:#8A5200; --warn-bg:#FFEFD0; --bad:#B3261E;
  --btn:#0D1B3E; --btn-ink:#FFFFFF; --field:#FFFFFF;
  --ci0:#2a78d6; --ci1:#eb6834; --ci2:#1baf7a; --ci3:#6250d6; --ci4:#e87ba4; --ci5:#eda100; --ci6:#008300;
}
html[data-theme="dark"] {
  --bg:#0A1022; --card:#111A33; --ink:#E9EDF8; --muted:#9BA7C4; --line:#24325A; --soft:#1A2547;
  --panel:#17244B; --panel-ink:#FFFFFF; --panel-muted:#B0BCDA; --panel-line:#3A4D86;
  --mark:#FFE14D; --mark-ink:#0D1B3E; --mark-tint:#2C2A12;
  --ok:#4ADBA8; --ok-bg:#12332B; --warn:#F2C26B; --warn-bg:#3A2D10; --bad:#FF8A80;
  --btn:#FFE14D; --btn-ink:#0D1B3E; --field:#0E1730;
  --ci0:#3987e5; --ci1:#d95926; --ci2:#199e70; --ci3:#9085e9; --ci4:#d55181; --ci5:#c98500; --ci6:#008300;
}

  
  
  body { min-height: 100vh; background: var(--bg); color: var(--ink); font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45; transition: background .15s ease, color .15s ease; }
  .zf { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  :where(body) button { font: inherit; color: inherit; cursor: pointer; }
  :where(body) input, :where(body) select, :where(body) textarea { font: inherit; color: inherit; }
  body button:focus-visible, body input:focus-visible, body select:focus-visible, body textarea:focus-visible { outline: 2.5px solid var(--mark); outline-offset: 2px; }
  .zf-light button:focus-visible, .zf-light input:focus-visible, .zf-light select:focus-visible, .zf-light textarea:focus-visible { outline-color: #2A4BD7; }
  html[data-theme="dark"] { color-scheme: dark; }
  .zf-disp { font-family: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif; }
  .zf-num { font-variant-numeric: tabular-nums; }

  /* Rail (Desktop) */
  .zf-rail { display: flex; flex-direction: column; gap: 4px; padding: 22px 14px 18px; border-right: 1px solid var(--line); position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
  .zf-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
  .zf-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--mark); color: #0D1B3E; display: flex; align-items: center; justify-content: center; flex: none; }
  .zf-nav { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 500; text-align: left; width: 100%; }
  .zf-nav:hover { background: var(--soft); color: var(--ink); }
  .zf-nav.is-active { background: var(--btn); color: var(--btn-ink); font-weight: 600; }
  .zf-nav svg, .zf-tab svg { flex: none; }
  .zf-nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mark); color: #0D1B3E; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  .zf-rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
  .zf-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); }
  .zf-avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
  .zf-theme { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); font-weight: 500; width: 100%; }
  .zf-theme:hover { background: var(--soft); color: var(--ink); }

  /* Mobile Leisten */
  .zf-top, .zf-tabbar { display: none; }
  .zf-main { padding: 30px 36px 72px; min-width: 0; max-width: 1240px; width: 100%; }
  .zf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
  .zf-h1 { margin: 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
  .zf-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
  .zf-h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.005em; }
  .zf-muted { color: var(--muted); }

  /* Karten */
  .zf-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; min-width: 0; }
  .zf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .zf-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }

  /* Buttons */
  .zf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; white-space: nowrap; }
  .zf-btn:hover { background: var(--soft); }
  .zf-btn-primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
  .zf-btn-primary:hover { background: var(--btn); filter: brightness(1.12); }
  .zf-btn[disabled], .zf-btn-primary[disabled] { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: not-allowed; filter: none; }
  .zf-btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .zf-icon { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
  .zf-icon:hover { background: var(--soft); color: var(--ink); }
  .zf-icon-danger:hover { color: var(--bad); }
  .zf-seg-ctl { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--soft); }
  .zf-seg-ctl button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
  .zf-seg-ctl button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
  .zf-field { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
  textarea.zf-field { padding: 12px 14px; min-height: 96px; resize: vertical; }
  .zf-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

  /* Befehlsleiste */
  .zf-cmd { background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 24px; padding: 22px 24px 20px; box-shadow: 0 22px 44px -26px rgba(13, 27, 62, .6); min-width: 0; }
  .zf-cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; min-height: 36px; flex-wrap: wrap; }
  .zf-cmd-title { font-weight: 700; font-size: 15px; }
  .zf-cmd-hint { color: var(--panel-muted); font-size: 13.5px; }
  .zf-cmd-input { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--panel-line); border-radius: 0; color: #FFFFFF; font-family: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif; font-size: clamp(21px, 2.3vw, 29px); font-weight: 500; letter-spacing: -0.01em; padding: 10px 0 14px; outline: none; }
  .zf-cmd-input::placeholder { color: #8E9CC6; }
  .zf-cmd-input:focus, html:not([data-theme="dark"]) .zf-cmd-input:focus-visible, .zf-cmd-input:focus-visible { outline: none; border-bottom-color: var(--mark); box-shadow: 0 3px 0 0 var(--mark); }
  .zf-receipt { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
  .zf-big { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--mark); font-variant-numeric: tabular-nums; min-width: 126px; }
  .zf-big.is-empty { color: #7E8DB8; }
  .zf-big small { font-size: 18px; font-weight: 600; margin-left: 4px; letter-spacing: 0; }
  .zf-rcpt-body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .zf-rcpt-line { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; min-width: 0; }
  .zf-rcpt-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  
  .zf-missing { color: #FFD9A0; }
  .zf-save { min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--mark); color: #0D1B3E; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
  .zf-save:hover { filter: brightness(.95); }
  .zf-save[disabled] { background: #2A3A6B; color: #9EAAD0; cursor: not-allowed; }
  .zf-kbd { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(13, 27, 62, .14); }
  .zf-save[disabled] .zf-kbd { background: rgba(255, 255, 255, .08); }
  .zf-qrow { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 12px; }
  .zf-qlabel { color: var(--panel-muted); font-size: 13px; font-weight: 600; padding-top: 10px; }
  .zf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .zf-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .zf-chip:hover { background: rgba(255, 255, 255, .08); }
  .zf-chip.is-on { background: var(--mark); border-color: var(--mark); color: #0D1B3E; font-weight: 700; }
  .zf-sw { width: 11px; height: 11px; border-radius: 4px; flex: none; display: inline-block; }
  .zf-edit-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 12px; margin: 6px 0 2px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 14px; }

  /* Wochenband */
  .zf-week-nav { display: flex; align-items: center; gap: 4px; }
  .zf-day { display: grid; grid-template-columns: 52px minmax(0, 1fr) 54px; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 5px 8px; border-radius: 12px; border: 0; background: transparent; text-align: left; }
  .zf-day:hover { background: var(--soft); }
  .zf-day.is-sel { background: var(--mark-tint); box-shadow: inset 0 0 0 1.5px var(--mark); }
  .zf-day.is-off { opacity: .6; }
  .zf-day-name { display: flex; flex-direction: column; line-height: 1.15; }
  .zf-day-name b { font-size: 14px; }
  .zf-day-name span { font-size: 12px; color: var(--muted); }
  .zf-bar { position: relative; display: flex; gap: 2px; height: 26px; background: var(--soft); border-radius: 9px; overflow: hidden; }
  .zf-day.is-sel .zf-bar { background: rgba(13, 27, 62, .08); }
  html[data-theme="dark"] .zf-day.is-sel .zf-bar { background: rgba(255, 255, 255, .08); }
  .zf-seg { height: 100%; display: flex; align-items: center; padding: 0 7px; font-size: 11.5px; font-weight: 700; overflow: hidden; white-space: nowrap; border-radius: 4px; flex: none; }
  .zf-ghost { height: 100%; border-radius: 4px; flex: none; border: 1.5px dashed; transition: flex-basis .18s ease, width .18s ease; display: flex; align-items: center; padding: 0 7px; font-size: 11.5px; font-weight: 700; overflow: hidden; white-space: nowrap; }
  .zf-tick { position: absolute; top: 0; bottom: 0; left: 80%; border-left: 1.5px dashed var(--muted); opacity: .7; pointer-events: none; }
  .zf-day-total { text-align: right; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
  .zf-day-total span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .zf-day-total .is-ok { color: var(--ok); }
  .zf-progress { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; margin-top: 8px; }
  .zf-progress i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
  html[data-theme="dark"] .zf-progress i { background: var(--mark); }
  .zf-caption { margin: 12px 4px 0; font-size: 13.5px; color: var(--muted); }

  /* Listen */
  .zf-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
  .zf-filters .zf-field { width: auto; flex: 1 1 160px; min-width: 140px; }
  .zf-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 500; font-size: 14px; }
  .zf-check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
  html[data-theme="dark"] .zf-check input { accent-color: var(--mark); }
  .zf-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--mark-tint); box-shadow: inset 0 0 0 1.5px var(--mark); }
  .zf-bulk b { font-size: 14px; }
  .zf-daygroup { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 6px 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
  .zf-daygroup:first-child { padding-top: 2px; }
  .zf-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px 10px 8px; border-radius: 14px; border: 1px solid transparent; }
  .zf-row:hover { background: var(--soft); }
  .zf-row.is-sel { background: var(--mark-tint); }
  .zf-row.is-new { animation: zfnew 1.8s ease-out; }
  .zf-row.is-edit { border-color: var(--mark); background: var(--mark-tint); }
  @keyframes zfnew { 0% { background: var(--mark); } 100% { background: transparent; } }
  .zf-row-cb { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
  html[data-theme="dark"] .zf-row-cb { accent-color: var(--mark); }
  .zf-row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .zf-row-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
  .zf-row-client { font-weight: 700; }
  .zf-row-dur { margin-left: auto; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
  .zf-row-desc { overflow-wrap: anywhere; }
  .zf-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
  .zf-row-act { display: flex; gap: 0; }
  .zf-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12.5px; font-weight: 700; }
  button.zf-pill:hover { background: var(--soft); }
  .zf-pill.is-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
  .zf-pill.is-open { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
  .zf-pill.is-bad { color: var(--bad); border-color: var(--bad); }
  .zf-pill.is-hi { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
  .zf-empty { padding: 28px 12px; text-align: center; color: var(--muted); }

  /* Toast */
  .zf-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); animation: zftoast .22s ease-out; }
  html[data-theme="dark"] .zf-toast { background: #E9EDF8; color: #0D1B3E; }
  @keyframes zftoast { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
  .zf-toast button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .16); font-weight: 700; }
  html[data-theme="dark"] .zf-toast button { background: rgba(13, 27, 62, .12); }

  /* Weitere Seiten */
  .zf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
  .zf-todo { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 6px; border-radius: 14px; }
  .zf-todo:hover { background: var(--soft); }
  .zf-circle { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--muted); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: transparent; padding: 0; }
  .zf-circle:hover { border-color: var(--ink); }
  .zf-circle.is-done { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
  html[data-theme="dark"] .zf-circle.is-done { color: #0A1022; }
  .zf-strike { text-decoration: line-through; color: var(--muted); }
  .zf-cl-card { display: flex; flex-direction: column; gap: 12px; }
  .zf-avatar-lg { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 20px; flex: none; }
  .zf-stat { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .zf-mini { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
  .zf-mini b { color: var(--ink); font-weight: 600; text-align: right; white-space: nowrap; }
  .zf-note { display: flex; flex-direction: column; gap: 10px; }
  .zf-hbar { display: grid; grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) 64px; gap: 12px; align-items: center; min-height: 36px; }
  .zf-hbar-track { height: 18px; border-radius: 6px; background: var(--soft); overflow: hidden; display: flex; }
  .zf-hbar-fill { height: 100%; border-radius: 0 5px 5px 0; }
  .zf-cols { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-top: 8px; }
  .zf-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
  .zf-col-bar { width: 100%; max-width: 64px; border-radius: 6px 6px 0 0; }
  .zf-split { display: flex; gap: 2px; height: 30px; border-radius: 9px; overflow: hidden; background: var(--soft); }
  .zf-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 14px; }
  .zf-legend span { display: inline-flex; align-items: center; gap: 8px; }
  .zf-doc { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
  .zf-doc-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 70px; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 14px; }
  .zf-doc-group { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--soft); font-weight: 700; }
  .zf-doc-total { display: flex; justify-content: space-between; padding: 14px 16px; border-top: 2px solid var(--ink); font-weight: 700; font-size: 17px; }
  .zf-radio { display: flex; flex-wrap: wrap; gap: 8px; }
  .zf-opt { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
  .zf-opt:hover { background: var(--soft); }
  .zf-opt.is-on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
  .zf-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
  .zf-stack { display: flex; flex-direction: column; gap: 16px; }

  @media (max-width: 1180px) {
    .zf-two, .zf-form-grid { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 979px) {
    .zf { display: block; }
    .zf-rail { display: none; }
    .zf-top { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
    .zf-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 4px 4px 6px; }
    .zf-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 0 2px; }
    .zf-tab.is-active { color: var(--ink); background: var(--mark-tint); }
    html[data-theme="dark"] .zf-tab.is-active { color: var(--mark); }
    .zf-main { padding: 20px 16px 104px; }
    .zf-h1 { font-size: 27px; }
    .zf-cmd { padding: 18px 16px 16px; border-radius: 20px; }
    .zf-big { font-size: 44px; min-width: 0; }
    .zf-save { width: 100%; justify-content: center; }
    .zf-qrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .zf-qlabel { padding-top: 0; }
    .zf-chip, .zf-cg-main, .zf-cg-play { min-height: 44px; }
    .zf-toast { bottom: 84px; }
    .zf-row { grid-template-columns: 26px minmax(0, 1fr); }
    .zf-row-act { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; }
    .zf-hbar { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 56px; gap: 8px; }
    .zf-doc-row { grid-template-columns: 60px minmax(0, 1fr) 56px; padding: 9px 12px; }
  }

  .zf-sep { margin: 14px 12px 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .zf-rail select.zf-field { min-height: 40px; font-size: 14px; }
  .zf-date, .zf-numin { min-height: 38px; border-radius: 12px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); padding: 0 10px; font-size: 14px; color-scheme: dark; }
  .zf-numin { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
  .zf-date.is-on { border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
  .zf-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--panel-muted); }
  .zf-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .zf-qbtn { min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--panel-line); background: rgba(255, 255, 255, .06); color: var(--panel-ink); font-weight: 700; font-size: 14px; }
  .zf-qbtn:hover { background: rgba(255, 255, 255, .14); }
  .zf-qbtn[disabled] { opacity: .4; cursor: not-allowed; }
  .zf-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 14px; }
  .zf-fgrid .zf-label { margin-bottom: 4px; }
  .zf-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
  .zf-auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px 26px; }
  .zf-err { margin: 12px 0 0; color: var(--bad); font-weight: 600; font-size: 14px; }
  .zf-pre { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
  .zf-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-weight: 600; margin-bottom: 16px; }
  .zf-banner.is-ok { background: var(--ok-bg); color: var(--ok); }
  .zf-banner.is-warn { background: var(--warn-bg); color: var(--warn); }
  .zf-danger { border-color: var(--bad); }
  .zf-btn-danger { background: var(--bad); border-color: var(--bad); color: #FFFFFF; }
  html[data-theme="dark"] .zf-btn-danger { color: #1A0505; }
  .zf-btn-danger:hover { background: var(--bad); filter: brightness(1.1); }
  .zf-checklist { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 14px; border-radius: 12px; background: var(--soft); }
  .zf-toast.is-err { background: var(--bad); color: #FFFFFF; }
  html[data-theme="dark"] .zf-toast.is-err { background: #FF8A80; color: #2A0A07; }
  .zf-menu-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; text-align: left; }
  .zf-menu-row:hover { background: var(--soft); }
  .zf-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
  .zf-log-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 6px; border-top: 1px solid var(--line); }
  .zf-log-row:first-child { border-top: 0; }

  .zf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .zf-frow { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 14px; }
  .zf-flabel { color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 12px; }
  .zf-split > span { display: block; height: 100%; }
  @media (max-width: 979px) { .zf-frow { grid-template-columns: minmax(0, 1fr); gap: 4px; } .zf-flabel { padding-top: 0; } }
  .zf-rcpt-sub { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; min-width: 0; color: var(--panel-muted); font-size: 14px; }

/* ---------- Ergänzungen für die echte App ---------- */
:where(a) { color: inherit; text-decoration: none; }
.zf-link { text-decoration: underline; text-underline-offset: 2px; }
a.zf-nav, a.zf-tab, a.zf-menu-row, a.zf-btn, a.zf-user, a.zf-theme { text-decoration: none; }
button.zf-nav, button.zf-theme { font: inherit; }
.zf-btn-primary, .zf-btn-primary:hover { color: var(--btn-ink); }
.zf-btn-danger, .zf-btn-danger:hover { color: #FFFFFF; }
html[data-theme="dark"] .zf-btn-danger, html[data-theme="dark"] .zf-btn-danger:hover { color: #1A0505; }
body { -webkit-text-size-adjust: 100%; }
.zf-js-only[hidden] { display: none; }
.zf-form-inline { display: inline; margin: 0; }
.zf-row-act form { margin: 0; display: inline-flex; }

/* Kundenfarben: pro Kunde ein fester Farbplatz (data-ci) */
[data-ci="0"] { --cc: var(--ci0); --cf: #FFFFFF; }
[data-ci="1"] { --cc: var(--ci1); --cf: #0D1B3E; }
[data-ci="2"] { --cc: var(--ci2); --cf: #0D1B3E; }
[data-ci="3"] { --cc: var(--ci3); --cf: #FFFFFF; }
[data-ci="4"] { --cc: var(--ci4); --cf: #0D1B3E; }
[data-ci="5"] { --cc: var(--ci5); --cf: #0D1B3E; }
[data-ci="6"] { --cc: var(--ci6); --cf: #FFFFFF; }
html[data-theme="dark"] [data-ci="0"], html[data-theme="dark"] [data-ci="3"], html[data-theme="dark"] [data-ci="4"] { --cf: #0D1B3E; }
html[data-theme="dark"] [data-ci="1"], html[data-theme="dark"] [data-ci="2"], html[data-theme="dark"] [data-ci="5"] { --cf: #0D1B3E; }
.zf-sw[data-ci], .zf-seg[data-ci], .zf-hbar-fill[data-ci], .zf-avatar-lg[data-ci] { background: var(--cc); }
.zf-seg[data-ci], .zf-avatar-lg[data-ci] { color: var(--cf); }
.zf-sw:not([data-ci]) { background: var(--muted); }

/* Auswahl per Radio-Knopf, sieht aus wie Chips (ohne JavaScript nutzbar) */
.zf-ropt { position: relative; display: inline-flex; }
.zf-ropt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.zf-ropt > span { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.zf-ropt:hover > span { background: var(--soft); }
.zf-ropt input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.zf-ropt input:focus-visible + span { outline: 2.5px solid #2A4BD7; outline-offset: 2px; }
html[data-theme="dark"] .zf-ropt input:focus-visible + span { outline-color: var(--mark); }
.zf-cmd .zf-ropt > span { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); font-weight: 500; }
.zf-cmd .zf-ropt:hover > span { background: rgba(255, 255, 255, .08); }
.zf-cmd .zf-ropt input:checked + span { background: var(--mark); border-color: var(--mark); color: #0D1B3E; font-weight: 700; }
.zf-cmd .zf-ropt input:focus-visible + span { outline-color: var(--mark); }
.zf-cmd button.zf-chip, .zf-cmd .zf-chip { font-family: inherit; }
@media (max-width: 979px) { .zf-cmd .zf-ropt > span { min-height: 44px; } }

/* Meldungen vom Server */
.zf-flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.zf-flash { padding: 12px 16px; border-radius: 14px; font-weight: 600; background: var(--soft); }
.zf-flash-success { background: var(--ok-bg); color: var(--ok); }
.zf-flash-error { background: var(--bad); color: #FFFFFF; }
html[data-theme="dark"] .zf-flash-error { background: #FF8A80; color: #2A0A07; }
.zf-flash-warning { background: var(--warn-bg); color: var(--warn); }

/* Formulare */
.zf-fgroup { display: flex; flex-direction: column; gap: 14px; }
.zf-fgroup .zf-hint, .zf-hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.zf-btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zf-btn-block { width: 100%; }
.zf-duration { display: flex; align-items: center; gap: 8px; }
.zf-duration .zf-field { width: 84px; text-align: right; }
.zf-field[type="date"], .zf-field[type="month"] { width: auto; min-width: 170px; }
.zf-stack > .zf-hint { margin: 0; }
.zf-code { display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: .06em; overflow-wrap: anywhere; }
.zf-qr { width: 190px; height: 190px; border-radius: 14px; background: #fff; padding: 8px; }
.zf-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.zf-rail-foot form { margin: 0; }
.zf-main { margin: 0 auto 0 0; }
.zf-design-link { display: block; text-align: center; padding: 6px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.zf-tabbar .zf-tab { text-decoration: none; }
.zf-day { text-decoration: none; color: inherit; cursor: pointer; }
.zf-day:focus-visible { outline: 2.5px solid #2A4BD7; outline-offset: 2px; }
html[data-theme="dark"] .zf-day:focus-visible { outline-color: var(--mark); }
.zf-todo .zf-circle { cursor: pointer; }
.zf-todo-form { margin: 0; display: flex; justify-content: center; }
.zf-pill-link { text-decoration: none; }
.zf-note-text { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.zf-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.zf-collapsible[hidden] { display: none; }
.zf-card + .zf-card { margin-top: 16px; }
.zf-stack > .zf-card + .zf-card { margin-top: 0; }
@media print { .zf-rail, .zf-tabbar, .zf-top { display: none; } .zf { display: block; } }

.zf-seg-ctl a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.zf-seg-ctl a.is-on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.zf-rowcb { display: flex; justify-content: center; }
.zf-bulk[hidden] { display: none; }
.zf-cmd textarea.zf-cmd-desc { width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); resize: vertical; font: inherit; }
.zf-cmd textarea.zf-cmd-desc::placeholder { color: #8E9CC6; }
.zf-cmd select.zf-cmd-select { min-height: 44px; border-radius: 12px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); padding: 0 10px; }
.zf-cmd-hint-block { color: var(--panel-muted); font-size: 13px; }
.zf-receipt .zf-big[hidden], .zf-receipt .zf-rcpt-body[hidden] { display: none; }
.zf-receipt:not(:has(.zf-big:not([hidden]))) { justify-content: flex-end; }
.zf-save { cursor: pointer; }
.zf-ghost[data-ci] { border-color: var(--cc); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--cc) 42%, transparent) 0 6px, color-mix(in srgb, var(--cc) 14%, transparent) 6px 12px); color: var(--ink); }
.zf-ghost:not([data-ci]) { border-color: var(--muted); background: repeating-linear-gradient(135deg, rgba(120, 130, 160, .35) 0 6px, rgba(120, 130, 160, .12) 6px 12px); color: var(--ink); }
.zf-rcpt-line .zf-sw[data-ci] { background: var(--cc); }

/* Dauer-Felder auf hellen Karten (Bearbeiten-Seite): eigene Farben, nicht die der dunklen Eingabe-Leiste */
.zf-card .zf-numin, .zf-card .zf-date { background: var(--field); color: var(--ink); border-color: var(--line); color-scheme: light; }
html[data-theme="dark"] .zf-card .zf-numin, html[data-theme="dark"] .zf-card .zf-date { color-scheme: dark; }
.zf-card .zf-inline { color: var(--muted); }

/* ==========================================================================
   Glas-Stil (v21): milchiges Glas auf warmem Grund, ruhige Apple-Optik.
   Liegt bewusst am Ende und überschreibt nur Farben, Radien und Flächen.
   ========================================================================== */
:root {
  --bg:#DAD5C7; --card:rgba(255,255,255,.50); --ink:#1D1D22; --muted:#5C584E;
  --line:rgba(70,60,40,.16); --soft:rgba(70,60,40,.075);
  --panel:rgba(29,29,34,.84); --panel-ink:#FFFFFF; --panel-muted:#C0C4D0; --panel-line:rgba(255,255,255,.22);
  --mark:#8DBBFF; --mark-ink:#0B1B3A; --mark-tint:rgba(70,130,235,.20);
  --ok:#0B7A5A; --ok-bg:rgba(24,160,110,.16); --warn:#7F4B00; --warn-bg:rgba(240,170,40,.24); --bad:#B3261E;
  --btn:#1D1D22; --btn-ink:#FFFFFF; --field:rgba(255,255,255,.72);
  --glass-edge:rgba(255,255,255,.72); --glass-shadow:0 1px 0 rgba(255,255,255,.75) inset, 0 20px 44px -26px rgba(60,50,30,.42);
  --focus:#0A64D8;
}
html[data-theme="dark"] {
  --bg:#12141B; --card:rgba(255,255,255,.075); --ink:#F2F2F5; --muted:#A6AAB8;
  --line:rgba(255,255,255,.14); --soft:rgba(255,255,255,.08);
  --panel:rgba(48,56,84,.55); --panel-ink:#FFFFFF; --panel-muted:#BCC3D8; --panel-line:rgba(255,255,255,.22);
  --mark:#8DBBFF; --mark-ink:#0B1B3A; --mark-tint:rgba(110,160,255,.22);
  --ok:#4ADBA8; --ok-bg:rgba(60,210,160,.16); --warn:#F2C26B; --warn-bg:rgba(242,194,107,.16); --bad:#FF8A80;
  --btn:#8DBBFF; --btn-ink:#0B1B3A; --field:rgba(255,255,255,.07);
  --glass-edge:rgba(255,255,255,.16); --glass-shadow:0 1px 0 rgba(255,255,255,.10) inset, 0 20px 44px -26px rgba(0,0,0,.7);
  --focus:#8DBBFF;
}

/* Hintergrund: weiche Farbflächen, damit das Glas etwas zu verwischen hat */
body { background: var(--bg); background-attachment: fixed; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46vw 42vw at 6% 8%, rgba(110,150,215,.62), transparent 70%),
    radial-gradient(40vw 34vw at 96% 4%, rgba(238,214,156,.75), transparent 70%),
    radial-gradient(44vw 38vw at 78% 100%, rgba(150,186,168,.55), transparent 70%),
    radial-gradient(34vw 30vw at 8% 96%, rgba(214,168,146,.45), transparent 70%);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(46vw 42vw at 6% 8%, rgba(60,104,200,.42), transparent 70%),
    radial-gradient(40vw 34vw at 96% 4%, rgba(120,84,190,.28), transparent 70%),
    radial-gradient(44vw 38vw at 78% 100%, rgba(40,130,130,.26), transparent 70%),
    radial-gradient(34vw 30vw at 8% 96%, rgba(190,100,90,.18), transparent 70%);
}

/* Schrift: ein ruhiger Schnitt statt der verspielten Überschrift-Schrift */
.zf-disp, .zf-brand, .zf-h1, .zf-big, .zf-stat, .zf-row-dur, .zf-avatar-lg { font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.zf-h1 { font-weight: 600; font-size: 34px; letter-spacing: -0.025em; }
.zf-h2 { font-weight: 600; font-size: 16px; }
.zf-big, .zf-stat, .zf-row-dur, .zf-brand, .zf-avatar-lg { font-weight: 600; }

/* Glas-Flächen */
.zf-card, .zf-auth-card, .zf-doc, .zf-menu-row {
  background: var(--card); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
}
.zf-card { border-radius: 24px; padding: 20px 20px 18px; }
.zf-auth-card { border-radius: 30px; }
.zf-doc { border-radius: 20px; }
.zf-menu-row { border-radius: 18px; }
.zf-cmd {
  border-radius: 30px; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 28px 54px -28px rgba(20,20,30,.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
}
.zf-rail {
  margin: 12px 0 12px 12px; height: calc(100vh - 24px); padding: 20px 12px 16px;
  border: 1px solid var(--glass-edge); border-radius: 28px; box-shadow: var(--glass-shadow);
  background: rgba(255,255,255,.34);
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
}
html[data-theme="dark"] .zf-rail { background: rgba(255,255,255,.05); }
.zf-logo { background: var(--btn); color: var(--btn-ink); border-radius: 10px; }
html[data-theme="dark"] .zf-logo { background: var(--mark); color: var(--mark-ink); }

/* Bedienelemente */
.zf-nav, .zf-theme, .zf-user { border-radius: 14px; }
.zf-nav.is-active { box-shadow: 0 8px 18px -10px rgba(20,20,30,.6); }
.zf-btn, .zf-opt, .zf-ropt > span { border-radius: 14px; background: rgba(255,255,255,.58); border-color: var(--glass-edge); }
html[data-theme="dark"] .zf-btn, html[data-theme="dark"] .zf-opt, html[data-theme="dark"] .zf-ropt > span { background: rgba(255,255,255,.07); border-color: var(--line); }
.zf-btn:hover, .zf-opt:hover, .zf-ropt:hover > span { background: rgba(255,255,255,.85); }
html[data-theme="dark"] .zf-btn:hover, html[data-theme="dark"] .zf-ropt:hover > span { background: rgba(255,255,255,.13); }
.zf-btn-primary, .zf-btn-primary:hover, .zf-ropt input:checked + span, .zf-opt.is-on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.zf-btn-danger, .zf-btn-danger:hover { background: var(--bad); border-color: var(--bad); }
.zf-cmd .zf-ropt > span { background: transparent; border-color: var(--panel-line); }
.zf-cmd .zf-ropt input:checked + span { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.zf-field, .zf-seg-ctl, .zf-checklist { border-radius: 14px; }
.zf-field { background: var(--field); border-color: var(--glass-edge); }
html[data-theme="dark"] .zf-field { border-color: var(--line); }
.zf-seg-ctl { background: var(--soft); }
.zf-seg-ctl button.is-on, .zf-seg-ctl a.is-on { background: rgba(255,255,255,.85); box-shadow: 0 1px 3px rgba(40,30,10,.18); }
html[data-theme="dark"] .zf-seg-ctl button.is-on, html[data-theme="dark"] .zf-seg-ctl a.is-on { background: rgba(255,255,255,.16); box-shadow: none; }
.zf-row, .zf-todo, .zf-day { border-radius: 16px; }
.zf-pill { background: rgba(255,255,255,.45); border-color: var(--glass-edge); }
html[data-theme="dark"] .zf-pill { background: transparent; border-color: var(--line); }
.zf-nav-badge, .zf-day.is-sel { background: var(--mark-tint); }
.zf-nav-badge { background: var(--mark); }
.zf-banner, .zf-flash { border-radius: 16px; }

/* Fokus: gut sichtbar auf hellem Glas */
body button:focus-visible, body input:focus-visible, body select:focus-visible, body textarea:focus-visible, body a:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.zf-cmd button:focus-visible, .zf-cmd input:focus-visible, .zf-cmd select:focus-visible, .zf-cmd textarea:focus-visible { outline-color: var(--mark); }

/* Handy: Kopfleiste und Tab-Leiste als Glas */
@media (max-width: 979px) {
  .zf-rail { margin: 0; height: auto; border-radius: 0; }
  .zf-top { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border-bottom-color: var(--glass-edge); }
  .zf-tabbar { background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border-top-color: var(--glass-edge); }
  html[data-theme="dark"] .zf-top, html[data-theme="dark"] .zf-tabbar { background: rgba(24,27,38,.72); }
  .zf-card { border-radius: 22px; padding: 18px 16px 16px; }
  .zf-cmd { border-radius: 26px; }
}

/* Ohne Weichzeichner (ältere Browser): Flächen dichter, damit Text lesbar bleibt */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --card: rgba(255,255,255,.88); --panel: rgba(29,29,34,.97); }
  html[data-theme="dark"] { --card: rgba(30,34,48,.94); --panel: rgba(40,48,76,.97); }
  .zf-rail { background: rgba(255,255,255,.8); }
  html[data-theme="dark"] .zf-rail { background: rgba(24,27,38,.94); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --card: rgba(255,255,255,.92); --panel: rgba(29,29,34,.97); }
  html[data-theme="dark"] { --card: rgba(30,34,48,.95); --panel: rgba(40,48,76,.97); }
}
