/* ScreenBros OS – Oberfläche
   Ein eigenes Behördensystem: dunkle Systemflächen (Systemleiste, Dock, Starter), helle Arbeitsfenster.
   Farbe nur mit Bedeutung: Plattenfarbe = Bereich eines Programms, Akzent = Behörde, Rot/Gelb/Grün = Zustand. */

@font-face { font-family: 'Plex'; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Plex'; src: url('../fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Plex'; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Plex'; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; }
@font-face { font-family: 'PlexMono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'PlexMono'; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Narrow'; src: url('../fonts/archivo-narrow-latin-600-normal.woff2') format('woff2'); font-weight: 600; }
@font-face { font-family: 'Narrow'; src: url('../fonts/archivo-narrow-latin-700-normal.woff2') format('woff2'); font-weight: 700; }

:root {
  --accent: #2f5d8a;
  --accent-ink: #ffffff;
  --accent-soft: #dfe8f2;
  --accent-line: #97aec5;
  --accent-faint: #eff3f8;
  --brand: #2456a4;
  --brand-2: #5b3f9e;
  --text: #161a20;
  --muted: #586170;
  --faint: #8b939e;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --surface-3: #eceef2;
  --line: #e3e6eb;
  --line-strong: #c2c8d0;
  --chrome: #f1f3f6;
  --chrome-inactive: #f7f8fa;
  --frame: #0d1014;
  --sel: #dce7f7;
  --sel-line: #5d8fd0;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #8f5508;
  --warn-soft: #fdf2df;
  --ok: #217038;
  --ok-soft: #e4f3e8;
  --shell: #12161b;
  --shell-2: #1a1f26;
  --shell-3: #252c35;
  --shell-4: #303843;
  --shell-line: rgba(255, 255, 255, .08);
  --shell-text: #e9ecf0;
  --shell-muted: #8d97a4;
  --taskbar: var(--shell);
  --taskbar-2: var(--shell-3);
  --taskbar-text: var(--shell-text);
  --sys: 32px;
  --dock: 56px;
  --board-w: 304px;
  --r: 6px;
  --r-win: 10px;
  --mono: 'PlexMono', ui-monospace, Consolas, monospace;
  --sans: 'Plex', 'Segoe UI', Tahoma, sans-serif;
  --narrow: 'Narrow', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  --top: var(--sys);
  --bottom: var(--dock);
  font: 13px/1.4 var(--sans);
  color: var(--text);
  background: #0b0d10;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sel); }
kbd { font: 500 10.5px var(--mono); }

/* ============================================================== Geräte (ingame) */
.device { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.device-body { position: relative; }
.device-brand, .device-leds, .device-power, .device-stand, .device-deck, .device-bolt, .device-cam { display: none; }
body.mode-web .device-body { width: 100vw; height: 100vh; }
body.mode-web .screen { width: 100%; height: 100%; }

body.mode-nui { background: transparent; }
body.mode-nui .device { pointer-events: none; }
body.mode-nui .device-body { pointer-events: auto; }
body.mode-nui .screen { position: absolute; transform-origin: 0 0; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 3px #0c0e10; }

.led { width: 6px; height: 6px; border-radius: 1.5px; background: #353a40; display: block; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6); }
.led.on { background: #5fd078; box-shadow: 0 0 0 1px rgba(95, 208, 120, .25); }
.led.net { background: #e6b23a; }
.led.blink { animation: led .25s steps(2) infinite; }
@keyframes led { 50% { background: #353a40; } }

/* TB-14 Rugged: Fahrzeuggerät, Magnesiumdeckel mit Gummiecken, darunter das Unterteil mit Scharnier */
body.dev-laptop .device-body {
  background: #24282d;
  border-radius: 16px;
  border: 1px solid #08090b;
  box-shadow: inset 0 0 0 5px #2d3238, inset 0 1px 0 6px rgba(255, 255, 255, .03), 0 36px 70px rgba(0, 0, 0, .6), 0 4px 10px rgba(0, 0, 0, .4);
}
body.dev-laptop .device-bolt, body.dev-tablet .device-bolt { display: block; position: absolute; width: 54px; height: 54px; background: #17191c; border: 1px solid #060708; z-index: 2; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, #5a6068 0 2.2px, #2a2e33 2.6px 4.6px, transparent 5px); background-repeat: no-repeat; }
body.dev-laptop .device-bolt.b1, body.dev-tablet .device-bolt.b1 { left: -7px; top: -7px; border-radius: 20px 8px 14px 8px; background-position: 13px 13px; background-size: 14px 14px; }
body.dev-laptop .device-bolt.b2, body.dev-tablet .device-bolt.b2 { right: -7px; top: -7px; border-radius: 8px 20px 8px 14px; background-position: 27px 13px; background-size: 14px 14px; }
body.dev-laptop .device-bolt.b3, body.dev-tablet .device-bolt.b3 { left: -7px; bottom: -7px; border-radius: 8px 14px 8px 20px; background-position: 13px 27px; background-size: 14px 14px; }
body.dev-laptop .device-bolt.b4, body.dev-tablet .device-bolt.b4 { right: -7px; bottom: -7px; border-radius: 14px 8px 20px 8px; background-position: 27px 27px; background-size: 14px 14px; }
body.dev-laptop .device-brand { display: flex; gap: 10px; position: absolute; left: 56px; top: 10px; font: 600 10.5px var(--narrow); letter-spacing: .2em; color: #7d858e; }
body.dev-laptop .device-brand b { color: #b9c0c7; font-weight: 700; }
body.dev-laptop .device-cam { display: block; position: absolute; left: 50%; top: 11px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #3a4a5e 0 1.4px, #0a0b0d 1.8px); box-shadow: 0 0 0 2px #1b1e22; }
body.dev-laptop .device-leds { display: flex; position: absolute; right: 58px; top: 12px; gap: 9px; }
body.dev-laptop .device-power { display: block; position: absolute; right: 58px; bottom: 8px; width: 30px; height: 11px; border-radius: 3px; border: 1px solid #08090b; background: #1b1e22; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
body.dev-laptop .device-power:hover { background: #7d1f16; }
body.dev-laptop .device-deck { display: block; position: relative; height: 28px; margin-top: -2px; background: #2a2e33; border: 1px solid #08090b; border-top: 0;
  clip-path: polygon(0 0, 100% 0, 98.2% 100%, 1.8% 100%); box-shadow: inset 0 -6px 0 #1d2024, inset 0 2px 0 rgba(255, 255, 255, .04); }
body.dev-laptop .device-deck .deck-hinge { position: absolute; left: 50%; top: 0; width: 34%; height: 7px; transform: translateX(-50%); background: #15171a; border-radius: 0 0 5px 5px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); }
body.dev-laptop .device-deck .deck-pad { position: absolute; left: 50%; bottom: 7px; width: 12%; height: 4px; transform: translateX(-50%); background: #202327; border-radius: 2px; }

/* TAB-10: Tablet mit umlaufendem Gummirahmen und Eckschutz, große Bedienflächen */
body.dev-tablet .device-body {
  background: #1b1e21;
  border-radius: 28px;
  border: 12px solid #2a2e33;
  box-shadow: inset 0 0 0 2px #0a0b0d, 0 0 0 1px #08090b, 0 36px 70px rgba(0, 0, 0, .55), 0 4px 10px rgba(0, 0, 0, .35);
}
body.dev-tablet .device-bolt { width: 62px; height: 62px; background-color: #34393f; }
body.dev-tablet .device-bolt.b1 { left: -14px; top: -14px; border-radius: 28px 10px 18px 10px; }
body.dev-tablet .device-bolt.b2 { right: -14px; top: -14px; border-radius: 10px 28px 10px 18px; background-position: 35px 13px; }
body.dev-tablet .device-bolt.b3 { left: -14px; bottom: -14px; border-radius: 10px 18px 10px 28px; background-position: 13px 35px; }
body.dev-tablet .device-bolt.b4 { right: -14px; bottom: -14px; border-radius: 18px 10px 28px 10px; background-position: 35px 35px; }
body.dev-tablet .device-brand { display: block; position: absolute; left: 50%; transform: translateX(-50%); bottom: 4px; font: 600 9.5px var(--narrow); letter-spacing: .24em; color: #6c737b; }
body.dev-tablet .device-brand b { color: #9aa1a8; margin-left: 6px; }
body.dev-tablet .device-cam { display: block; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #0a0b0d; box-shadow: 0 0 0 1.5px #2c3035; }
body.dev-tablet .device-leds { display: flex; position: absolute; left: 70px; top: 6px; gap: 7px; }
body.dev-tablet .device-power { display: block; position: absolute; top: -17px; right: 120px; width: 64px; height: 6px; border-radius: 3px 3px 0 0; background: #2a2e33; border: 1px solid #08090b; border-bottom: 0; cursor: pointer; }
body.dev-tablet .device-power:hover { background: #7d1f16; }

/* WS-2: Wachen-PC mit Monitor und Standfuß */
body.dev-pc .device-body { background: #121417; border-radius: 8px; border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 36px 70px rgba(0, 0, 0, .55); }
body.dev-pc .device-stand { display: block; position: relative; width: 240px; height: 70px; }
body.dev-pc .device-stand::before { content: ''; position: absolute; left: 50%; top: 0; width: 64px; height: 56px; transform: translateX(-50%); background: #1d2024; border-left: 1px solid #000; border-right: 1px solid #000; box-shadow: inset 0 -12px 16px rgba(0, 0, 0, .35); }
body.dev-pc .device-stand::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: #24282d; border: 1px solid #000; border-radius: 4px 4px 7px 7px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
body.dev-pc .device-brand { display: block; position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; font: 600 10px var(--narrow); letter-spacing: .26em; color: #59606a; }
body.dev-pc .device-brand b { color: #858d96; margin-left: 6px; }
body.dev-pc .device-leds { display: flex; position: absolute; right: 22px; bottom: 11px; }
body.dev-pc .device-power { display: block; position: absolute; right: 38px; bottom: 9px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #000; background: #24282d; cursor: pointer; }

/* ============================================================== Bildschirm */
.screen { position: relative; overflow: hidden; background: #000; }
.boot, .lock, .desktop { position: absolute; inset: 0; }

/* Start */
.boot { background: #0a0c0f; color: #c2c9d1; font: 12.5px/1.65 var(--mono); padding: 0 12%; display: flex; flex-direction: column; justify-content: center; }
.boot .boot-logo { font: 700 34px var(--narrow); letter-spacing: .14em; color: #fff; margin-bottom: 6px; }
.boot .boot-logo span { color: #8fb0ff; }
.boot .boot-sub { color: #6f7884; margin-bottom: 26px; font-family: var(--sans); }
.boot .boot-lines { color: #8a939e; min-height: 120px; }
.boot .ok { color: #6fd28a; }
.boot .bar { margin-top: 26px; width: 360px; height: 3px; background: #1d2228; border-radius: 2px; overflow: hidden; }
.boot .bar i { display: block; height: 100%; width: 0; background: #5d8fd0; transition: width .25s linear; }

/* Sperrbildschirm / Anmeldung */
.lock { color: #fff; }
.lock .lock-bg { position: absolute; inset: 0; }
.lock .lock-shade { position: absolute; inset: 0; background: rgba(6, 8, 11, .5); }
.lock .lock-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; font-size: 12px; z-index: 1; }
.lock .lock-brand { display: flex; align-items: center; gap: 10px; }
.lock .lock-brand svg { width: 24px; height: 24px; }
.lock .lock-brand b { font: 700 13px var(--narrow); letter-spacing: .16em; text-transform: uppercase; }
.lock .lock-net { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .72); }
.lock .lock-net svg { width: 15px; height: 15px; color: #6fd28a; }
.lock .lock-clock { position: absolute; left: 48px; bottom: 56px; z-index: 1; }
.lock .lock-time { font: 600 104px/.9 var(--narrow); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lock .lock-date { font-size: 18px; margin-top: 10px; color: rgba(255, 255, 255, .82); }
.lock .lock-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.lock .lock-card { width: 340px; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -30px; }
.lock .lock-avatar { width: 96px; height: 96px; border-radius: 22px; display: grid; place-items: center; background: var(--accent); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 16px 36px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18); }
.lock .lock-avatar .ini { font: 700 38px var(--narrow); letter-spacing: .04em; }
.lock .lock-avatar .crest { width: 58px; height: 58px; }
.lock .lock-name { margin-top: 18px; font-size: 22px; font-weight: 600; letter-spacing: -.005em; }
.lock .lock-sub { margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.lock .lock-chip { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; font-size: 12px; color: rgba(255, 255, 255, .86); background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; }
.lock .lock-chip svg { width: 14px; height: 14px; color: #6fd28a; }
.lock .lock-go { margin-top: 6px; width: 240px; height: 42px; justify-content: center; font-size: 14px; font-weight: 600; border-radius: 8px; gap: 10px; }
.lock .lock-go svg { width: 16px; height: 16px; }
.lock .lock-err { color: #ffb2a6; font-size: 12.5px; min-height: 18px; margin-top: 12px; max-width: 320px; }
.lock .lock-hint { font-size: 11.5px; color: rgba(255, 255, 255, .5); margin-top: 10px; }
.lock .lock-text { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.lock form { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lock .lock-fields { width: 300px; margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.lock .lock-fields .field { width: 100%; height: 42px; border-radius: 8px; background: #0f1318; border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 14px; padding: 0 12px; }
.lock .lock-fields .field::placeholder { color: rgba(255, 255, 255, .45); }
.lock .lock-fields .field:focus { border-color: #7fa6e0; box-shadow: 0 0 0 3px rgba(93, 143, 208, .3); }
.lock .lock-pass { position: relative; display: block; }
.lock .lock-pass .field { padding-right: 48px; }
.lock .lock-submit { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
.lock .lock-submit:hover { filter: brightness(1.12); }
.lock .lock-submit svg { width: 16px; height: 16px; }
.lock .lock-actions { margin-top: 6px; display: flex; justify-content: center; }
.lock .lock-actions.split { width: 300px; justify-content: space-between; align-items: center; }
.lock .linklike { background: none; border: 0; color: rgba(255, 255, 255, .78); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.lock .linklike:hover { color: #fff; }
.lock .lock-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 20px; font-size: 11.5px; color: rgba(255, 255, 255, .55); z-index: 3; }
.lock .lock-pw { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
.lock .lock-pw:hover { background: #7d1f16; }
.lock .lock-pw svg { width: 16px; height: 16px; }

/* ============================================================== Hintergründe */
.wallpaper { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wp-werk { background-color: #1a1f26; background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.3px); background-size: 22px 22px; background-position: 11px 11px; }
.wp-nacht { background-color: #0f1622; background-image: url('../img/wp-nacht.svg'); }
.wp-karte { background-color: #4d5a50; background-image: url('../img/wp-karte.svg'); }
.wp-grau { background: #4a5058; }
.wp-wache { background-color: var(--accent); background-image: url('../img/wp-wache.svg'); background-blend-mode: multiply; }
.wallpaper .wp-mark { position: absolute; left: 50%; bottom: calc(var(--bottom) + 22px); transform: translateX(-50%); text-align: center; color: rgba(255, 255, 255, .34); white-space: nowrap; }
.desktop.has-board .wallpaper .wp-mark { left: calc(50% - var(--board-w) / 2 - 14px); }
.wallpaper .wp-mark b { display: block; font: 700 15px var(--narrow); letter-spacing: .34em; color: rgba(255, 255, 255, .42); }
.wallpaper .wp-mark span { font-size: 11px; letter-spacing: .04em; }

/* ============================================================== Systemleiste (oben) */
.sysbar {
  position: absolute; left: 0; right: 0; top: 0; height: var(--sys); z-index: 9200; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 10px;
  background: var(--shell); color: var(--shell-text); border-bottom: 1px solid #000; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); font-size: 12px;
}
.sysbar:empty { display: none; }
.sb-l { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 0; }
.sb-l .crest { width: 18px; height: 20px; flex: none; }
.sb-ed { font: 700 12px var(--narrow); letter-spacing: .18em; white-space: nowrap; }
.sb-ctx { display: flex; align-items: center; gap: 7px; min-width: 0; padding-left: 10px; border-left: 1px solid var(--shell-line); color: var(--shell-muted); }
.sb-ctx svg { width: 16px; height: 16px; flex: none; }
.sb-ctx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-gap { flex: 1 1 0; }
.tb-search { display: flex; align-items: center; gap: 7px; flex: 0 1 360px; height: 24px; padding: 0 6px 0 8px; background: var(--shell-2); border: 1px solid var(--shell-line); border-radius: 6px; cursor: text; }
.tb-search:focus-within { border-color: #5d8fd0; background: #0e1216; }
.tb-search svg { width: 14px; height: 14px; color: var(--shell-muted); flex: none; }
.tb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--shell-text); font-size: 12px; }
.tb-search input::placeholder { color: #6f7986; }
.tb-search kbd { color: #6f7986; padding: 0 4px; border: 1px solid var(--shell-line); border-radius: 3px; line-height: 15px; }
.tb-tray { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: stretch; height: 100%; min-width: 0; }
.tb-tray button { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 9px; background: transparent; border: 0; color: var(--shell-text); cursor: pointer; font-size: 12px; white-space: nowrap; border-radius: 0; }
.tb-tray button:hover { background: var(--shell-3); }
.tb-tray svg { width: 16px; height: 16px; }
.tb-net.ok svg { color: #6fd28a; }
.tb-net.bad svg, .tb-net.bad span { color: #f0b04a; }
.tb-net span { color: var(--shell-muted); }
.tb-duty i { width: 7px; height: 7px; border-radius: 2px; background: #59626e; }
.tb-duty.on i { background: #5fd078; }
.tb-duty span { color: var(--shell-muted); }
.tb-duty.on span { color: var(--shell-text); }
.tb-dot { position: absolute; top: 4px; right: 3px; min-width: 15px; height: 15px; padding: 0 3px; background: #d9432f; color: #fff; font: 600 9.5px/15px var(--sans); text-align: center; border-radius: 4px; box-shadow: 0 0 0 2px var(--shell); }
.tb-bell.fresh svg { color: #ffc94a; }
.tb-user { gap: 8px !important; }
.tb-ini { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: var(--accent); color: #fff; font: 700 11px var(--narrow); letter-spacing: .04em; flex: none; }
.tb-who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.tb-who > span { font-weight: 500; }
.tb-who small { color: var(--shell-muted); font-size: 10.5px; }
.tb-flag { color: #c9b6ff; font-weight: 600; }
.tb-flag.red { color: #ff9b8a; }
.tb-user.tb-user-ico .tb-who { display: none; }
.tb-clock { gap: 8px !important; font-variant-numeric: tabular-nums; }
.tb-clock small { color: var(--shell-muted); font-size: 11.5px; }
.tb-clock b { font: 500 13px var(--mono); }
.tb-clock b i { font-style: normal; opacity: .55; font-weight: 400; }
.net-ok { color: #6fd28a; }
.net-bad { color: #f0b04a; }

/* ============================================================== Dock (unten) */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--dock); z-index: 9000; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.dock {
  pointer-events: auto; display: flex; align-items: center; height: var(--dock); max-width: calc(100% - 24px); padding: 0 8px; gap: 2px;
  background: var(--shell); border: 1px solid #040506; border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 -8px 28px rgba(0, 0, 0, .32);
}
.tb-start { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 10px; cursor: pointer; flex: none; }
.tb-start svg { width: 34px; height: 34px; display: block; }
.tb-start:hover, .tb-start.open { background: var(--shell-3); }
.tb-start.open { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tb-quick { display: flex; align-items: center; gap: 2px; padding-left: 8px; margin-left: 6px; border-left: 1px solid var(--shell-line); height: 34px; }
.tb-quick:empty { display: none; }
.tb-ql, .tb-app { position: relative; display: flex; align-items: center; background: transparent; border: 0; border-radius: 10px; color: var(--shell-text); cursor: pointer; }
.tb-ql { width: 48px; height: 46px; justify-content: center; padding: 0; }
.tb-ql svg { width: 34px; height: 34px; display: block; }
.tb-ql:hover, .tb-app:hover { background: var(--shell-2); }
.tb-ql:active svg { transform: translateY(1px); }
.tb-ql::after, .tb-app::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 3px; border-radius: 2px; background: #9aa4b1; transform: translateX(-50%); transition: width .12s; }
.tb-ql.run::after, .tb-app::after { width: 5px; }
.tb-ql.active::after, .tb-app.active::after { width: 18px; background: #fff; }
.tb-ql .tb-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 4px 8px; background: #06080a; color: #fff; font-size: 11.5px; white-space: nowrap; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .1); opacity: 0; pointer-events: none; transition: opacity .1s .25s; }
.tb-ql:hover .tb-tip { opacity: 1; }
body.tb-oben .tb-ql .tb-tip { bottom: auto; top: calc(100% + 8px); }
.tb-ql.dragging { pointer-events: none; z-index: 2; background: var(--shell-3); }
.tb-quick.editing { min-width: 64px; outline: 1px dashed #4b5562; outline-offset: 2px; border-radius: 8px; }
.tb-quick.drop-on { display: flex; min-width: 64px; background: #1f2a37; outline: 1px dashed #7fa6e0; outline-offset: 2px; border-radius: 8px; }
.tb-qhint { align-self: center; padding: 0 10px; font-size: 11.5px; color: var(--shell-muted); white-space: nowrap; }
.tb-apps { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.tb-apps:not(:empty) { padding-left: 8px; margin-left: 6px; border-left: 1px solid var(--shell-line); }
.tb-app { gap: 9px; height: 44px; padding: 0 12px 0 7px; max-width: 200px; min-width: 0; flex: 0 1 auto; font-size: 12.5px; text-align: left; }
.tb-app svg { width: 28px; height: 28px; flex: none; }
.tb-app span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-app.active { background: var(--shell-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.tb-app.min { color: var(--shell-muted); }
.tb-app.min svg { opacity: .6; }
body.tb-nur-symbole .tb-app { padding: 0 8px; }
body.tb-nur-symbole .tb-app span { display: none; }

/* ============================================================== Programmstarter */
.startmenu {
  position: absolute; z-index: 9500; left: 50%; bottom: calc(var(--bottom) + 10px); transform: translateX(-50%);
  width: min(920px, calc(100% - 24px)); height: min(610px, calc(100% - var(--top) - var(--bottom) - 20px));
  display: flex; flex-direction: column; background: var(--shell-2); color: var(--shell-text);
  border: 1px solid #040506; border-radius: 14px; overflow: hidden; box-shadow: 0 28px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sm-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--shell-line); flex: none; }
.sm-find { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; background: #0e1216; border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; }
.sm-find:focus-within { border-color: #5d8fd0; box-shadow: 0 0 0 3px rgba(93, 143, 208, .22); }
.sm-find svg { width: 18px; height: 18px; color: var(--shell-muted); flex: none; }
.sm-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--shell-text); font-size: 15px; }
.sm-find input::placeholder { color: #6f7986; }
.sm-find kbd { color: #6f7986; }
.sm-body { flex: 1; display: flex; min-height: 0; }
.sm-side { width: 236px; flex: none; display: flex; flex-direction: column; padding: 14px 10px 10px; background: var(--shell); border-right: 1px solid var(--shell-line); min-height: 0; }
.sm-user { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.sm-ini { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font: 700 17px var(--narrow); letter-spacing: .04em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.sm-user b { display: block; font-size: 13.5px; font-weight: 600; }
.sm-user small { color: var(--shell-muted); font-size: 11.5px; }
.sm-agency { display: flex; align-items: center; gap: 8px; margin: 12px 6px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--shell-line); color: var(--shell-muted); font-size: 11.5px; line-height: 1.3; }
.sm-agency .crest { width: 18px; height: 20px; flex: none; }
.sm-cap { padding: 0 6px 6px; font: 600 11px var(--narrow); letter-spacing: .14em; text-transform: uppercase; color: var(--shell-muted); }
.sm-recent { overflow-y: auto; min-height: 0; }
.sm-rec { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 6px; background: transparent; border: 0; border-radius: 7px; color: var(--shell-text); cursor: pointer; text-align: left; font-size: 12.5px; }
.sm-rec svg { width: 24px; height: 24px; flex: none; }
.sm-rec span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-rec:hover { background: var(--shell-3); }
.sm-empty { padding: 4px 6px; color: var(--shell-muted); font-size: 12px; }
.sm-sys { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--shell-line); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sm-sys button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: transparent; border: 0; border-radius: 7px; color: var(--shell-text); cursor: pointer; font-size: 12px; text-align: left; }
.sm-sys button svg { width: 16px; height: 16px; color: var(--shell-muted); flex: none; }
.sm-sys button:hover { background: var(--shell-3); }
.sm-sys button.pw:hover { background: #6b1c14; }
.sm-list { flex: 1; overflow-y: auto; padding: 4px 18px 18px; min-width: 0; }
.sm-sec { margin-top: 8px; }
.sm-group { display: flex; align-items: baseline; gap: 8px; padding: 10px 4px 7px; margin-bottom: 4px; border-bottom: 1px solid var(--shell-line); font: 600 11.5px var(--narrow); letter-spacing: .14em; text-transform: uppercase; color: var(--shell-muted); }
.sm-group small { font: 500 10.5px var(--mono); letter-spacing: 0; color: #5f6976; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 2px; }
.sm-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 11px 4px 9px; background: transparent; border: 0; border-radius: 9px; color: var(--shell-text); cursor: pointer; font-size: 12px; line-height: 1.25; text-align: center; }
.sm-item svg { width: 44px; height: 44px; flex: none; display: block; }
.sm-item span { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sm-item:hover, .sm-item:focus-visible { background: var(--shell-3); outline: 0; }
.sm-searching .sm-fav { display: none; }
.sm-searching .sm-sec[data-g] { margin-top: 0; }
.sm-none { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 20px; color: var(--shell-muted); text-align: center; }
.sm-none svg { width: 28px; height: 28px; margin-bottom: 4px; }
.sm-none b { color: var(--shell-text); font-size: 14px; }
.sm-item.lifted, .sm-rec.lifted, .gd-app.lifted { opacity: .45; }
.sm-foot { flex: none; display: flex; gap: 18px; align-items: center; height: 30px; padding: 0 16px; background: var(--shell); border-top: 1px solid var(--shell-line); font-size: 11px; color: var(--shell-muted); }
.sm-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-foot span:nth-child(2) { flex: 1; text-align: center; }

/* ============================================================== Mitteilungen und Meldungskarten */
.notecenter {
  position: absolute; z-index: 9550; top: calc(var(--sys) + 8px); right: 8px; width: 372px; max-height: calc(100% - var(--sys) - var(--bottom) - 16px);
  display: flex; flex-direction: column; background: var(--shell-2); color: var(--shell-text); border: 1px solid #040506; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 10px 16px; }
.nc-head b { font: 700 13px var(--narrow); letter-spacing: .16em; text-transform: uppercase; }
.nc-head .btn.flat { color: var(--shell-muted); height: 26px; }
.nc-head .btn.flat:hover { background: var(--shell-3); color: var(--shell-text); border-color: transparent; }
.nc-stat { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--shell-line); border-bottom: 1px solid var(--shell-line); background: var(--shell); }
.nc-stat > div { display: flex; gap: 8px; padding: 10px 12px; min-width: 0; }
.nc-stat > div + div { border-left: 1px solid var(--shell-line); }
.nc-stat svg { width: 16px; height: 16px; flex: none; color: var(--shell-muted); margin-top: 1px; }
.nc-stat .ok svg { color: #6fd28a; }
.nc-stat .bad svg { color: #f0b04a; }
.nc-stat .hot b { color: #ffc94a; }
.nc-stat span { min-width: 0; }
.nc-stat b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-stat small { display: block; font-size: 10.5px; color: var(--shell-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-list { overflow-y: auto; padding: 6px; min-height: 0; }
.nc-item { display: grid; grid-template-columns: 30px 1fr; gap: 11px; width: 100%; padding: 10px; background: transparent; border: 0; border-radius: 9px; color: var(--shell-text); cursor: pointer; text-align: left; }
.nc-item + .nc-item { box-shadow: 0 -1px 0 var(--shell-line); }
.nc-item:hover { background: var(--shell-3); box-shadow: none; }
.nc-item svg { width: 30px; height: 30px; }
.nc-item.red { box-shadow: inset 3px 0 0 #e5533f; }
.nc-item.amber { box-shadow: inset 3px 0 0 #f0b04a; }
.nc-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nc-h { display: flex; justify-content: space-between; gap: 8px; font: 600 10.5px var(--narrow); letter-spacing: .12em; text-transform: uppercase; color: var(--shell-muted); }
.nc-h time { font: 400 11px var(--sans); letter-spacing: 0; text-transform: none; }
.nc-t b { font-size: 13px; font-weight: 600; }
.nc-t small { font-size: 12px; color: var(--shell-muted); }
.notecenter .empty-state { color: var(--shell-muted); padding: 34px 20px; }
.notecenter .empty-state svg { background: var(--shell-3); border-color: var(--shell-line); color: var(--shell-muted); }
.notecenter .empty-state b { color: var(--shell-text); }

.toasts { position: absolute; right: 10px; top: calc(var(--sys) + 10px); display: flex; flex-direction: column-reverse; gap: 8px; z-index: 9600; pointer-events: none; }
.toast { width: 344px; display: grid; grid-template-columns: 30px 1fr; gap: 11px; padding: 11px 12px; background: var(--shell-2); color: var(--shell-text); border: 1px solid #040506; border-radius: 12px; box-shadow: 0 16px 36px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); pointer-events: auto; cursor: default; animation: toast-in .2s ease-out; }
.toast > svg { width: 30px; height: 30px; }
.toast.red { box-shadow: inset 3px 0 0 #e5533f, 0 16px 36px rgba(0, 0, 0, .45); }
.toast.amber { box-shadow: inset 3px 0 0 #f0b04a, 0 16px 36px rgba(0, 0, 0, .45); }
.toast.green { box-shadow: inset 3px 0 0 #5fd078, 0 16px 36px rgba(0, 0, 0, .45); }
.toast .t-main { min-width: 0; }
.toast b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.toast small { color: var(--shell-muted); display: block; font-size: 12px; }
.toast .t-head { display: flex; justify-content: space-between; font: 600 10.5px var(--narrow); color: var(--shell-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .12em; }
.toast .t-head span:last-child { font: 400 11px var(--sans); letter-spacing: 0; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================== Übersicht rechts (echte Daten) */
.board { position: absolute; top: calc(var(--top) + 14px); right: 14px; bottom: calc(var(--bottom) + 14px); width: var(--board-w); display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; }
.board::-webkit-scrollbar { display: none; }
.board:empty { display: none; }
.bd-card { flex: none; background: var(--shell-2); color: var(--shell-text); border: 1px solid #06080a; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 22px rgba(0, 0, 0, .22); overflow: hidden; }
.bd-card > header { display: flex; align-items: center; gap: 9px; padding: 10px 8px 9px 12px; border-bottom: 1px solid var(--shell-line); }
.bd-card > header svg { width: 22px; height: 22px; flex: none; }
.bd-card > header b { flex: 1; font-size: 12.5px; font-weight: 600; }
.bd-card > header em { font: 500 11.5px/19px var(--mono); font-style: normal; min-width: 22px; padding: 0 6px; text-align: center; border-radius: 4px; background: var(--shell-3); color: var(--shell-muted); }
.bd-card > header em.on { background: #223450; color: #cfe0ff; }
.bd-card > header em.hot { background: #5a1f19; color: #ffb6aa; }
.bd-open { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 6px; color: var(--shell-muted); cursor: pointer; }
.bd-open:hover { background: var(--shell-3); color: var(--shell-text); }
.bd-open svg { width: 14px !important; height: 14px !important; }
.bd-now { padding: 16px 16px 14px; }
.bd-time { font: 600 56px/.95 var(--narrow); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff; }
.bd-time i { font-style: normal; color: var(--shell-muted); margin: 0 1px; }
.bd-date { margin-top: 5px; font-size: 13px; color: var(--shell-muted); }
.bd-duty { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--shell-line); }
.bd-dstate { display: grid; grid-template-columns: 10px 1fr; column-gap: 9px; align-items: center; }
.bd-dstate i { width: 9px; height: 9px; border-radius: 2px; background: #5f6873; }
.bd-duty.on .bd-dstate i { background: #5fd078; box-shadow: 0 0 0 3px rgba(95, 208, 120, .16); }
.bd-dstate b { font-size: 13.5px; font-weight: 600; }
.bd-dstate span { grid-column: 2; font-size: 12px; color: var(--shell-muted); }
.bd-dmeta { margin: 8px 0 0 19px; font-size: 12px; color: var(--shell-muted); }
.bd-dmeta b { color: var(--shell-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-dact { display: flex; gap: 6px; margin-top: 12px; }
.bd-dact .btn { height: 28px; font-size: 12px; background: var(--shell-3); border-color: #3a434e; color: var(--shell-text); box-shadow: none; }
.bd-dact .btn:hover { background: var(--shell-4); border-color: #4a5461; }
.bd-dact .btn.primary { background: var(--accent); border-color: rgba(0, 0, 0, .3); color: #fff; }
.bd-dact .btn.flat { background: transparent; border-color: transparent; color: var(--shell-muted); }
.bd-dact .btn.flat:hover { background: var(--shell-3); color: var(--shell-text); }
.bd-body { display: flex; flex-direction: column; }
.bd-row { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 12px; background: transparent; border: 0; color: var(--shell-text); cursor: pointer; text-align: left; font-size: 12px; min-width: 0; }
.bd-row + .bd-row { border-top: 1px solid var(--shell-line); }
.bd-row:hover { background: var(--shell-3); }
.bd-row b { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-ref { font-size: 11px; color: var(--shell-muted); }
.bd-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.bd-meta time { margin-left: auto; font-size: 11px; color: var(--shell-muted); white-space: nowrap; }
.bd-w { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.bd-w .plate, .bd-w .bd-wn { grid-row: 1; }
.bd-w .bd-why { grid-row: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--shell-text); }
.bd-w .bd-meta { grid-column: 1 / -1; }
.bd-w.hot { box-shadow: inset 3px 0 0 #e5533f; }
.bd-wn { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bd-m .bd-from { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--shell-muted); }
.bd-m .bd-from time { font-size: 11px; }
.bd-m small { color: var(--shell-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-m.unread b { font-weight: 600; color: #fff; }
.bd-m.unread .bd-from { color: #cfe0ff; }
.bd-m.unread .bd-from::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: #6ea2ff; align-self: center; margin-right: -2px; order: -1; }
.bd-all { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 12px; background: var(--shell); border: 0; border-top: 1px solid var(--shell-line); color: var(--shell-muted); font-size: 11.5px; cursor: pointer; }
.bd-all:hover { color: var(--shell-text); }
.bd-all svg { width: 12px; height: 12px; }
.bd-empty { display: flex; align-items: center; gap: 10px; padding: 13px 12px; }
.bd-empty svg { width: 18px; height: 18px; color: #6fd28a; flex: none; }
.bd-empty b { display: block; font-size: 12.5px; font-weight: 600; }
.bd-empty small { display: block; font-size: 11.5px; color: var(--shell-muted); }
.bd-muted { color: var(--shell-muted); font-size: 12px; }
.bd-pad { padding: 12px; }
.bd-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; font-size: 11px; color: rgba(255, 255, 255, .4); }
.bd-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-hide { background: none; border: 0; padding: 2px 0; color: rgba(255, 255, 255, .5); font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bd-hide:hover { color: #fff; }
.board .tag { background: transparent; border-color: #3c4652; color: #b9c2cc; }
.board .tag.blue { border-color: #2e4d78; color: #a9c6f2; background: #172336; }
.board .tag.amber { border-color: #6b5426; color: #f0cd86; background: #2a2214; }
.board .tag.red { border-color: #7a2f27; color: #ffb2a6; background: #2e1714; }
.board .tag.green { border-color: #2f5a3a; color: #9fdcae; background: #15261a; }
.board .plate { font-size: 11.5px; line-height: 18px; }

/* ============================================================== Desktop-Symbole */
.icons { position: absolute; left: 6px; top: calc(var(--top) + 8px); right: 0; bottom: var(--bottom); }
.desktop.has-board .icons { right: calc(var(--board-w) + 28px); }
.dicon {
  position: absolute; width: 90px; padding: 8px 3px 6px; text-align: center; color: #fff;
  border: 1px solid transparent; border-radius: 9px; cursor: default;
}
.dicon svg { width: 44px; height: 44px; display: block; margin: 0 auto 7px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.dicon span { display: block; font-size: 12px; font-weight: 500; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); overflow-wrap: normal; hyphens: auto; }
.dicon:hover { background: rgba(255, 255, 255, .07); }
.dicon.sel { background: rgba(93, 143, 208, .26); border-color: rgba(140, 180, 235, .5); }
.dicon:focus { outline: 0; }
.dicon:focus-visible { border-color: rgba(140, 180, 235, .8); }
.dicon .badge { position: absolute; top: 3px; right: 16px; box-shadow: 0 0 0 2px #1a1f26; }

/* ============================================================== Fenster */
.windows { position: absolute; left: 0; top: var(--top); right: 0; bottom: var(--bottom); pointer-events: none; }
.windows > * { pointer-events: auto; }
.win {
  position: absolute; display: flex; flex-direction: column; min-width: 320px; min-height: 180px;
  background: var(--surface); border: 1px solid #07090c; border-radius: var(--r-win);
  box-shadow: 0 24px 56px -14px rgba(0, 0, 0, .62), 0 4px 14px rgba(0, 0, 0, .28);
}
.win::before { content: ''; position: absolute; left: 16px; top: -1px; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--app-c, var(--accent)); z-index: 3; }
.win.inactive { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .2); }
.win.inactive::before { background: #9aa2ad; }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-width: 0; border-radius: 0; box-shadow: none; }
.win.max .win-title { border-radius: 0; }
.win.max .win-body { border-radius: 0; }
.win.min { display: none; }
.win-title {
  height: 48px; flex: none; display: flex; align-items: center; gap: 11px; padding: 0 8px 0 13px; cursor: default;
  background: var(--chrome); border-bottom: 1px solid var(--line); border-radius: calc(var(--r-win) - 1px) calc(var(--r-win) - 1px) 0 0;
}
.win-ico { flex: none; display: grid; }
.win-title svg.app-ico { width: 26px; height: 26px; display: block; }
.win-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.22; }
.win-title .t { font-weight: 600; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-sub { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-sub:empty { display: none; }
.win.inactive .win-title { background: var(--chrome-inactive); }
.win.inactive .win-title .t { color: var(--muted); font-weight: 500; }
.win.inactive .win-ico { opacity: .55; filter: grayscale(.7); }
.win-btns { display: flex; align-items: center; gap: 4px; height: 100%; }
.win-btns > button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.win-btns > button:hover { background: var(--surface-3); color: var(--text); }
.win-btns > button svg { width: 15px; height: 15px; }
.win-ctl { display: flex; margin-left: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); overflow: hidden; box-shadow: 0 1px 0 rgba(16, 24, 40, .04); }
.win-ctl button { width: 34px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #39414c; }
.win-ctl button + button { border-left: 1px solid var(--line); }
.win-ctl button svg { width: 14px; height: 14px; stroke-width: 1.9; }
.win-ctl button:hover { background: var(--surface-3); }
.win-ctl button.close:hover { background: #c42b1c; color: #fff; }
.win.inactive .win-ctl { border-color: var(--line); }
.win.inactive .win-ctl button { color: var(--faint); }
.win-body { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--surface); user-select: text; border-radius: 0 0 calc(var(--r-win) - 1px) calc(var(--r-win) - 1px); overflow: hidden; }
.win-rz { position: absolute; z-index: 2; }
.win-rz.n { top: -4px; left: 8px; right: 8px; height: 8px; cursor: ns-resize; }
.win-rz.s { bottom: -4px; left: 8px; right: 8px; height: 8px; cursor: ns-resize; }
.win-rz.e { right: -4px; top: 8px; bottom: 8px; width: 8px; cursor: ew-resize; }
.win-rz.w { left: -4px; top: 8px; bottom: 8px; width: 8px; cursor: ew-resize; }
.win-rz.ne { right: -5px; top: -5px; width: 14px; height: 14px; cursor: nesw-resize; }
.win-rz.nw { left: -5px; top: -5px; width: 14px; height: 14px; cursor: nwse-resize; }
.win-rz.se { right: -5px; bottom: -5px; width: 16px; height: 16px; cursor: nwse-resize; }
.win-rz.sw { left: -5px; bottom: -5px; width: 14px; height: 14px; cursor: nesw-resize; }
.win.max .win-rz { display: none; }
.snap-preview { position: absolute; background: rgba(93, 143, 208, .16); border: 2px solid rgba(127, 166, 224, .85); border-radius: 10px; z-index: 8999; pointer-events: none; }

/* Seitenkopf, Seitenleiste, Werkzeugleiste, Statusleiste */
.page-head { flex: none; display: flex; align-items: flex-end; gap: 16px; padding: 16px 18px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .ph-t { min-width: 0; flex: 1; }
.page-head h1 { margin: 0; font: 600 19px/1.2 var(--sans); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.page-head .ph-act { display: flex; align-items: center; gap: 8px; flex: none; }
.page-tools { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.page-tools .grow { flex: 1; }
.app-split { flex: 1; display: flex; min-height: 0; }
.app-nav { width: 206px; flex: none; display: flex; flex-direction: column; gap: 1px; padding: 10px 8px; background: var(--surface-2); border-right: 1px solid var(--line); overflow-y: auto; }
.app-nav .nav-cap { padding: 10px 10px 6px; font: 600 11px var(--narrow); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.app-nav .nav-cap:first-child { padding-top: 4px; }
.app-nav button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; background: transparent; border: 0; border-radius: 7px; color: var(--text); cursor: pointer; text-align: left; font-size: 12.5px; }
.app-nav button svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.app-nav button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav button em { font: 500 11px var(--mono); font-style: normal; color: var(--faint); }
.app-nav button:hover { background: var(--surface-3); }
.app-nav button.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--accent); font-weight: 600; }
.app-nav button.on svg { color: var(--accent); }
.app-nav .nav-note { margin-top: auto; padding: 10px; font-size: 11.5px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); }
.app-nav .nav-note svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.menubar { display: flex; height: 30px; align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 6px; flex: none; gap: 2px; }
.menubar button { height: 24px; border: 0; border-radius: 5px; background: transparent; padding: 0 9px; font-size: 12.5px; cursor: pointer; }
.menubar button:hover, .menubar button.open { background: var(--surface-3); }
.toolbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; min-height: 48px; }
.toolbar .sep { width: 1px; height: 20px; align-self: center; background: var(--line); margin: 0 4px; }
.toolbar .grow { flex: 1; }
.statusbar { flex: none; display: flex; gap: 0; height: 28px; align-items: stretch; background: var(--surface-2); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.statusbar span { padding: 0 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.statusbar span + span { border-left: 1px solid var(--line); }
.statusbar span.grow { flex: 1; }

/* ============================================================== Bedienelemente */
.btn {
  height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--text);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .05);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { background: var(--surface-2); border-color: #a9b1bb; }
.btn:active { background: var(--surface-3); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--sel-line); outline-offset: 1px; }
.btn.primary { background: var(--accent); border-color: rgba(0, 0, 0, .28); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 1px rgba(16, 24, 40, .12); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: #7d1810; }
.btn.flat { background: transparent; border-color: transparent; box-shadow: none; }
.btn.flat:hover { background: var(--surface-3); border-color: transparent; }
.btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.field, select.field, textarea.field {
  height: 30px; padding: 0 9px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r); outline: 0; font-size: 13px; min-width: 0;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, .04);
}
textarea.field { height: auto; padding: 7px 9px; resize: vertical; line-height: 1.45; font-family: var(--sans); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.mono { font-family: var(--mono); }
.field.search { padding-left: 30px; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235b6470" stroke-width="2"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M15.5 15.5 21 21"/></svg>') no-repeat 9px 50% / 14px; }
label.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.mono { font-family: var(--mono); }
.plate {
  display: inline-block; font: 500 12.5px var(--mono); letter-spacing: .05em; padding: 0 6px 0 13px; border: 1px solid #1d2229; border-radius: 3px;
  background: linear-gradient(90deg, #1f4aa8 0 8px, #fff 8px); color: #111; line-height: 20px; white-space: nowrap;
}
.tag { display: inline-block; padding: 0 7px; font-size: 11.5px; font-weight: 500; line-height: 19px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.red { border-color: #ecb4ac; background: var(--danger-soft); color: var(--danger); }
.tag.amber { border-color: #e8c98f; background: var(--warn-soft); color: var(--warn); }
.tag.green { border-color: #aad3b4; background: var(--ok-soft); color: var(--ok); }
.tag.blue { border-color: #b3c8e3; background: var(--accent-soft); color: var(--accent); }
.tag.dark { border-color: #2a3037; background: #2a3037; color: #fff; }
.badge { display: inline-block; min-width: 17px; height: 17px; padding: 0 4px; font: 600 10.5px/17px var(--sans); background: var(--danger); color: #fff; text-align: center; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.err-text { color: var(--danger); }

/* Tabellen */
.tablewrap { flex: 1; overflow: auto; min-height: 0; background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.grid th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 600; font-size: 11.5px; color: var(--muted);
  background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 8px 12px; white-space: nowrap;
}
table.grid th:first-child, table.grid td:first-child { padding-left: 18px; }
table.grid th:last-child, table.grid td:last-child { padding-right: 18px; }
table.grid td { padding: 9px 12px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
table.grid td.mono { font-size: 12px; color: #2c3440; }
table.grid tbody tr.click { cursor: default; }
table.grid tbody tr.click:hover td { background: #f5f8fc; }
table.grid tbody tr.sel td { background: var(--sel) !important; }
table.grid tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.grid tbody tr.hit td { background: #fdf3f1; }
table.grid tbody tr.hit td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
table.grid .empty td { padding: 0; border-bottom: 0; background: var(--surface) !important; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 48px 20px; color: var(--muted); text-align: center; font-size: 12.5px; }
.empty-state svg { width: 48px; height: 48px; padding: 13px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--faint); box-sizing: border-box; }
.empty-state svg.ico { padding: 0; border: 0; background: none; }
.empty-state b { color: var(--text); font-size: 14px; font-weight: 600; }
.empty-state span { max-width: 360px; line-height: 1.45; }

/* Formulare */
.form { display: grid; grid-template-columns: 150px 1fr; gap: 9px 14px; align-items: center; }
.form > label { color: var(--muted); font-size: 12.5px; text-align: right; }
.form > .full { grid-column: 1 / -1; }
.form .field, .form select, .form textarea { width: 100%; }
.form .hint { grid-column: 2; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.pad { padding: 16px 18px; }
.scroll { overflow: auto; min-height: 0; flex: 1; }

/* Registerkarten */
.tabs { display: flex; gap: 2px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; }
.tabs button {
  border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 11px 9px; margin-bottom: -1px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button .badge { margin-left: 5px; background: var(--surface-3); color: var(--muted); }
.tabs button.on .badge { background: var(--accent); color: #fff; }
.tabpanel { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }

/* Aktenkopf */
.dossier-head { display: flex; gap: 18px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.dossier-head .photo { width: 72px; height: 88px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; }
.dossier-head .photo svg { width: 40px; height: 40px; color: var(--faint); }
.dossier-head h2 { margin: 1px 0 3px; font: 600 21px/1.15 var(--sans); letter-spacing: -.01em; }
.dossier-head .sub { color: var(--muted); font-size: 12px; }
.dossier-head .facts { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 6px 24px; margin-top: 12px; font-size: 12.5px; }
.dossier-head .facts dt { color: var(--faint); font: 600 10.5px var(--narrow); text-transform: uppercase; letter-spacing: .12em; }
.dossier-head .facts dd { margin: 0; }
.dossier-head .flags { margin-left: auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid; border-radius: 8px; font-size: 12.5px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.red { background: var(--danger-soft); border-color: #eab0a8; color: #7d1810; }
.alert.amber { background: var(--warn-soft); border-color: #e9cb93; color: #6a3f00; }
.alert.blue { background: var(--accent-soft); border-color: #b5c9df; color: #1e3f60; }
.alert.green { background: var(--ok-soft); border-color: #a9d0ac; color: #1f4d23; }
.alert b { font-weight: 600; }
.section { padding: 14px 18px; }
.section + .section { border-top: 1px solid var(--line); }
.section h3 { margin: 0 0 10px; font: 600 12px var(--narrow); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.section h3 .grow { flex: 1; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; }
.cols > .section + .section { border-top: 0; border-left: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font: 11.5px var(--mono); color: var(--muted); }
.timeline .who { font-size: 11.5px; color: var(--muted); }
.timeline .txt { white-space: pre-wrap; }
.timeline .kind { font: 600 10.5px var(--narrow); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* Split: Liste links, Inhalt rechts */
.split { flex: 1; display: flex; min-height: 0; }
.split .pane-l { width: 300px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.split .pane-r { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.listbox { flex: 1; overflow: auto; }
.listbox .li { padding: 10px 14px; border-bottom: 1px solid #eef0f3; cursor: default; }
.listbox .li:hover { background: #f5f8fc; }
.listbox .li.sel { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
.listbox .li b { display: block; font-weight: 600; font-size: 12.5px; }
.listbox .li.unread b { color: var(--accent); }
.listbox .li small { color: var(--muted); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-align: center; padding: 30px; font-size: 12.5px; }
.placeholder svg { width: 52px; height: 52px; display: block; margin: 0 auto 10px; padding: 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--faint); box-sizing: border-box; }
.placeholder svg.ico { padding: 0; border: 0; background: none; width: 56px; height: 56px; }
.placeholder b { color: var(--text); font-size: 14px; font-weight: 600; }

/* Papier-Dokumente (Bescheid, Bericht) */
.paper-wrap { flex: 1; overflow: auto; background: #8f969e; padding: 24px; }
.paper { width: 640px; margin: 0 auto; background: #fff; padding: 44px 52px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); font-size: 13px; color: #111; }
.paper .ph { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 18px; }
.paper .ph b { font: 700 18px var(--narrow); letter-spacing: .04em; }
.paper h1 { font: 700 22px var(--narrow); margin: 18px 0 6px; }
.paper table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.paper td, .paper th { border-bottom: 1px solid #ccc; padding: 4px 4px; text-align: left; font-size: 12.5px; }
.paper .sum td { font-weight: 600; border-top: 2px solid #111; }
.paper .sig { margin-top: 36px; display: flex; justify-content: space-between; }
.paper .sig div { border-top: 1px solid #111; width: 220px; padding-top: 4px; font-size: 11.5px; }
.paper .stamp { color: #a33; border: 2px solid #a33; padding: 4px 10px; font: 700 14px var(--narrow); letter-spacing: .1em; transform: rotate(-6deg); display: inline-block; }

/* Mängelkarte: Durchschreibeblock, gelblich, Kästchen zum Ankreuzen */
.paper.mk { background: #fbf5d8; padding: 34px 44px; }
.paper.mk h1 { font-size: 20px; margin-top: 8px; }
.mk .mk-v td { padding: 3px 4px; border-bottom: 1px dotted #8a7f55; }
.mk .mk-h { font: 700 12px var(--narrow); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1.5px solid #111; margin: 14px 0 6px; padding-bottom: 2px; }
.mk .mk-grid { column-count: 2; column-gap: 22px; }
.mk .mk-g { break-inside: avoid; margin-bottom: 7px; }
.mk .mk-gt { font-weight: 700; font-size: 11.5px; margin-bottom: 1px; }
.mk .mk-i { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; line-height: 1.35; padding: 1px 0; }
.mk .xb { flex: 0 0 auto; width: 11px; height: 11px; border: 1px solid #222; margin-top: 2px; font: 700 10px/10px Arial, sans-serif; text-align: center; color: #1a3d8f; background: #fff; }
.mk .xb.on { border-color: #1a3d8f; }
.mk .mk-line { flex: 1; border-bottom: 1px dotted #555; min-height: 14px; color: #1a3d8f; font-family: 'Segoe Print', 'Comic Sans MS', cursive; }
.mk .mk-done { margin-top: 22px; border: 1.5px dashed #6b6240; padding: 8px 12px 10px; }
.mk .mk-fill { display: flex; gap: 16px; margin-top: 26px; }
.mk .mk-fill span { flex: 1; border-top: 1px solid #111; padding-top: 3px; font-size: 10.5px; }
.mk-preview { width: 470px; height: 100%; overflow: auto; background: #8f969e; padding: 12px; }
.mk-preview .paper { transform: scale(.68); transform-origin: top left; margin: 0; }

/* Bürgerpost */
.cm-split { flex: 1; display: flex; min-height: 0; }
.cm-list { width: 340px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cm-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cm-msgs { flex: 1; overflow: auto; padding: 12px 16px; background: #eef0f2; }
.cm-msg { background: #fff; border: 1px solid var(--line); margin: 0 40px 10px 0; padding: 8px 12px; }
.cm-msg.out { margin: 0 0 10px 40px; background: #f4f7fb; border-color: #c9d4e2; }
.cm-msg .cm-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; }
.cm-msg .cm-body { white-space: pre-wrap; font-size: 13px; }
.cm-reply { border-top: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; background: var(--panel, #f7f8f9); }

/* Gesetzbuch-Text */
.doc { max-width: 760px; margin: 0 auto; padding: 18px 26px 40px; font-size: 13.5px; line-height: 1.55; }
.doc h1 { font: 700 26px/1.2 var(--narrow); margin: 0 0 4px; }
.doc h2 { font: 700 18px var(--narrow); margin: 26px 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.doc h3 { font: 600 15px var(--sans); margin: 18px 0 6px; }
.doc table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 12.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 4px 7px; text-align: left; vertical-align: top; }
.doc th { background: #f2f3f5; }
.doc mark { background: #ffe58a; }
.doc s { color: #7a828c; }
.doc h3.lg-h { cursor: pointer; }
.doc h3.lg-h:hover { text-decoration: underline; }
.lg-diff { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 6px 0; }
.lg-diff th, .lg-diff td { border: 1px solid var(--line); padding: 3px 7px; text-align: left; vertical-align: top; }
.lg-diff th { background: #f2f3f5; font-weight: 600; }
.lg-diff .old { color: var(--danger); text-decoration: line-through; }
.lg-diff .new { color: var(--ok); }
.lg-text { font: 12px/1.5 var(--mono); white-space: pre-wrap; border: 1px solid var(--line); background: #fff; padding: 4px 0; margin: 6px 0; }
.lg-text div { padding: 0 8px; }
.lg-text .del { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; }
.lg-text .add { background: var(--ok-soft); color: var(--ok); }
.lg-ver { border: 1px solid var(--line); background: #fff; margin: 0 0 10px; }
.lg-ver > .h { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: #f6f7f8; border-bottom: 1px solid var(--line); }
.lg-ver > .b { padding: 8px 10px; font-size: 12.5px; }

/* Kontextmenüs und Dropdowns */
.menus { position: absolute; inset: 0; pointer-events: none; z-index: 9800; }
.ctxmenu { position: absolute; pointer-events: auto; min-width: 210px; background: var(--surface); border: 1px solid #a9b0b9; border-radius: 9px; box-shadow: 0 14px 34px rgba(10, 14, 20, .28), 0 2px 6px rgba(10, 14, 20, .12); padding: 5px; }
.ctxmenu button { display: flex; width: 100%; gap: 10px; align-items: center; height: 30px; padding: 0 24px 0 8px; background: transparent; border: 0; border-radius: 6px; text-align: left; cursor: pointer; font-size: 12.5px; color: var(--text); }
.ctxmenu button svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ctxmenu button:hover { background: var(--sel); }
.ctxmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* Dialoge */
.modal-layer { position: absolute; inset: 0; background: rgba(10, 13, 17, .45); z-index: 9900; display: grid; place-items: center; }
.dialog { position: relative; min-width: 380px; max-width: 580px; background: var(--surface); border: 1px solid #07090c; border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
/* 4.24.2 lange Formulare: Kopf und Knoepfe bleiben, der Inhalt scrollt */
.modal-layer { grid-template-rows: minmax(0, 100%); }
.dialog { max-height: calc(100% - 24px); display: flex; flex-direction: column; }
.dialog > .win-title, .dialog > .d-foot { flex: none; }
.dialog > .d-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.dialog > .m-body { min-height: 0; flex: 0 1 auto; overflow-y: auto; }
.dialog .win-title { cursor: default; height: 46px; padding-left: 16px; border-radius: 11px 11px 0 0; }
.dialog .win-title .t { font-size: 13.5px; }
.dialog .win-btns button.close { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.dialog .win-btns button.close:hover { background: #c42b1c; color: #fff; }
.dialog .d-body { display: flex; gap: 16px; padding: 20px 20px 10px; }
.dialog .d-body > svg { width: 36px; height: 36px; flex: none; }
.dialog .d-text { white-space: pre-wrap; padding-top: 6px; line-height: 1.5; }
.dialog .d-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; }

/* Kleinkram */
.avatar { background: #c9d2dc; border: 1px solid rgba(0,0,0,.2); display: grid; place-items: center; color: #4a5561; overflow: hidden; }
.avatar svg { width: 72%; height: 72%; }
.crest svg { width: 100%; height: 100%; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); flex: none; }
.kpis div { padding: 10px 14px; border-right: 1px solid var(--line); }
.kpis div:last-child { border-right: 0; }
.kpis b { display: block; font: 600 22px var(--narrow); }
.kpis small { color: var(--muted); }
.calc-total { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-strong); background: #fafbfc; }
.calc-total div { padding: 8px 12px; border-right: 1px solid var(--line); }
.calc-total div:last-child { border-right: 0; }
.calc-total b { display: block; font: 600 20px var(--narrow); }
.calc-total small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.calculator { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; background: #e9ecef; flex: 1; }
.calculator .disp { grid-column: 1 / -1; background: #f7faf5; border: 1px solid #8d949c; font: 500 26px var(--mono); text-align: right; padding: 10px 10px 6px; overflow: hidden; }
.calculator .disp small { display: block; font-size: 12px; color: var(--muted); min-height: 16px; }
.calculator button { height: 38px; font-size: 15px; }
.notes-area { flex: 1; border: 0; outline: 0; resize: none; padding: 10px 12px; font: 13.5px/1.5 var(--mono); background: #fffef6; user-select: text; }
.wp-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.wp-pick button { height: 70px; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; }
.wp-pick button.on { border-color: var(--accent); outline: 1px solid #fff; outline-offset: -3px; }
.wp-pick button span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 1px 4px; text-align: left; }
.rights-table td select { width: 150px; }
.vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vitals label { display: block; font-size: 11px; color: var(--muted); }
.vitals .field { width: 100%; }


/* Querverweise, Kleinsymbole, freie Dialoge */
a.xref, .section a, .tabpanel a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
a.xref:hover { border-bottom-style: solid; }
svg.tiny { width: 13px; height: 13px; vertical-align: -2px; }
.dialog .m-body { display: flex; flex-direction: column; max-height: 82vh; }
.dialog .m-body > .d-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: #f2f3f5; border-top: 1px solid var(--line); }
.dialog .m-body .pick-list { border-top: 1px solid var(--line); }
.paper h3 { font: 700 13px var(--narrow); letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 4px; }
.paper .right { text-align: right; }
input[type=color].field { padding: 1px 2px; width: 60px; }
.win-body > .tabpanel > .split { flex: 1; }

/* Schmale Fenster (Telefon im Browser) */
@media (max-width: 1100px) {
  .board { display: none; }
  .desktop.has-board .icons { right: 0; }
}
@media (max-width: 760px) {
  .startmenu { width: 100%; left: 0; transform: none; border-radius: 0; bottom: var(--bottom); height: calc(100% - var(--top) - var(--bottom)); }
  .sm-side { display: none; }
  .tb-search, .sb-ctx, .tb-who, .tb-duty span, .tb-clock small { display: none; }
  .notecenter { left: 8px; width: auto; }
  .toast { width: calc(100vw - 20px); }
  .form { grid-template-columns: 1fr; }
  .form > label { text-align: left; }
  .cols { grid-template-columns: 1fr; }
  .split .pane-l { width: 42%; }
  .app-nav { display: none; }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
}
/* ============================================================== Papier 1.1: Haftbefehl, Ausdruck */
.paper .center { text-align: center; letter-spacing: .25em; }
.paper .who { margin: 10px 0 12px 28px; font-size: 14px; line-height: 1.5; }
.paper .warn { color: #8a1c12; border-left: 3px solid #8a1c12; padding-left: 8px; }
.paper .hand { display: block; font: italic 400 20px Georgia, 'Times New Roman', serif; color: #23356b; margin-bottom: 2px; transform: rotate(-2deg); white-space: nowrap; overflow: hidden; }
.paper .seal-box { border-top: none !important; text-align: center; }
.paper .seal { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; border: 3px double #23356b; color: #23356b; font: 700 18px var(--narrow); letter-spacing: .1em; transform: rotate(-12deg); opacity: .8; }
.paper .pfoot { margin-top: 26px; border-top: 1px dashed #999; padding-top: 6px; display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: #555; }
.paper .pfoot .mono { font-size: 11.5px; color: #111; letter-spacing: .06em; }
.paper.warrant { border-top: 6px solid #8a1c12; }

/* Blatt in der Hand (Item ingame): ohne Gerät, mitten auf dem Bildschirm */
.paperview { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(10, 12, 14, .45); z-index: 50; }
.paperview.hidden { display: none; }
.paperview .pv-sheet { max-height: calc(100vh - 110px); overflow: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.paperview .pv-sheet .paper { margin: 0; }
.paperview .pv-from { background: #1d2024; color: #fff; padding: 6px 12px; font-size: 13px; }
.paperview .pv-bar { display: flex; gap: 8px; }
.paperview .pv-bar .btn { min-width: 120px; justify-content: center; }
.print-opts { display: flex; flex-direction: column; gap: 6px; }
.verify-ok, .verify-warn, .verify-bad { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line, #c9ced4); }
.verify-ok { background: #e6f2e4; color: #1f4f24; }
.verify-warn { background: #fbf0d6; color: #6b4a08; }
.verify-bad { background: #f8e1de; color: #7a1f14; flex: 1; }
.verify-ok svg, .verify-warn svg, .verify-bad svg { width: 26px; height: 26px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #eef1f4; border: 1px solid #c9ced4; padding: 2px 4px 2px 8px; font-size: 12px; }
.chip .x { border: none; background: none; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; color: #555; }
.chip .x:hover { color: var(--danger); }
.grounds { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.banner { padding: 8px 12px; background: #f1f3f5; border-bottom: 1px solid #c9ced4; font-size: 13px; }
.paper .sig .signed { border-top: none; }
.paper .sig .signed .hand { border-bottom: 1px solid #111; padding-bottom: 2px; margin-bottom: 4px; transform: none; }
.paper .pfoot .mono { white-space: nowrap; flex: none; }
.print-form { padding-top: 6px; }

/* 1.2: Empfangsbestätigung, Unterschriftenfeld, Ausweis */
.paper .receipt { margin-top: 18px; border: 1px solid #bbb; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.paper .receipt-sig { display: flex; flex-direction: column; align-items: flex-start; }
.paper .receipt-sig img { height: 58px; width: auto; border-bottom: 1px solid #333; }
.paper table.when td { font-size: 14px; padding: 4px 6px; }
.paperview .pv-sheet { max-height: calc(100vh - 290px); }
.paperview .pv-sign { background: #fbf8f1; color: #222; padding: 8px 12px 10px; width: 520px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 4px; }
.signpad { position: relative; background: #fff; border: 1px solid #c8c2b4; height: 130px; }
.signpad canvas { width: 100%; height: 130px; display: block; cursor: crosshair; touch-action: none; }
.signpad .sp-line { position: absolute; left: 18px; right: 18px; bottom: 28px; border-bottom: 1px solid #9a9488; pointer-events: none; }
.signpad .sp-line::before { content: '×'; position: absolute; left: -12px; bottom: -4px; color: #9a9488; font-size: 14px; }
.signpad .sp-clear { position: absolute; right: 4px; top: 4px; }
.paperview .pv-id { display: flex; flex-direction: column; gap: 8px; width: 470px; }
.id-hit { display: flex; gap: 10px; align-items: flex-start; background: #a52a1f; color: #fff; padding: 10px 12px; font-size: 14px; }
.id-hit svg { width: 22px; height: 22px; flex: none; }
.id-ok { background: #e6f2e4; color: #1f4f24; padding: 8px 12px; font-size: 13px; }
.id-note { background: #fbf0d6; color: #6b4a08; padding: 6px 12px; font-size: 13px; }
.idcard { background: linear-gradient(135deg, #e9eef0 0%, #d7e3e6 55%, #e8e2d2 100%); color: #1b2430; border-radius: 10px; padding: 12px 16px 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-family: 'IBM Plex Sans', sans-serif; position: relative; overflow: hidden; }
.idcard::after { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 14px solid rgba(47, 78, 112, .07); }
.idc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(27, 36, 48, .25); padding-bottom: 4px; margin-bottom: 10px; }
.idc-head span { font-size: 10px; letter-spacing: .12em; color: #4a5a6a; }
.idc-head b { font-family: 'Archivo Narrow', sans-serif; letter-spacing: .08em; font-size: 15px; color: #2f4e70; }
.idc-body { display: flex; gap: 14px; }
.idc-photo { width: 96px; height: 120px; background: #b9c4ca; display: flex; align-items: center; justify-content: center; border: 1px solid #8f9ba3; }
.idc-photo svg { width: 56px; height: 56px; opacity: .55; }
.idc-fields { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.idc-fields small { display: block; font-size: 9.5px; color: #5a6874; text-transform: uppercase; letter-spacing: .06em; }
.idc-fields b { font-size: 15px; font-weight: 600; }
.idc-fields .row { display: flex; gap: 16px; }
.idc-mrz { margin-top: 10px; font-size: 13px; letter-spacing: .12em; color: #2b333c; white-space: nowrap; overflow: hidden; }

/* Termine (Bürger-App) */
.ap-day { padding: 10px 14px 4px; font: 700 12px var(--narrow); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg2, #f3f3f1); position: sticky; top: 0; }
.ap-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.ap-row.abgesagt, .ap-row.erledigt { opacity: .6; }
.ap-row.angefragt { box-shadow: inset 3px 0 0 #a8322a; }
.ap-time { width: 46px; font-size: 15px; padding-top: 1px; }
.ap-main { flex: 1; min-width: 0; }
.ap-note { margin-top: 2px; font-style: italic; }
.ap-act { display: flex; gap: 6px; flex: none; }

/* ProViDa: Messprotokoll */
.paper.pv .pv-t, .paper.pv .pv-r { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12px; }
.paper.pv .pv-t td { border: 1px solid #bbb; padding: 3px 6px; }
.paper.pv .pv-t td:nth-child(odd) { color: #555; width: 120px; background: #f6f6f3; }
.paper.pv .pv-r th, .paper.pv .pv-r td { border: 1px solid #999; padding: 4px 6px; text-align: center; }
.paper.pv .pv-r th { background: #eee; font-weight: 600; font-size: 11px; }
.paper.pv .pv-graphs { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0; }
.paper .pv-trace { display: block; border: 1px solid #bbb; margin-top: 2px; }
.paper .pv-trace .pv-map { filter: saturate(.55) contrast(1.05); }
.paper.pv .pv-c { border-left: 3px solid #b42318; padding: 4px 8px; background: #fbf1ef; margin: 6px 0; font-size: 12.5px; }
.paper.pv .pv-bad { border: 2px solid #a33; color: #a33; padding: 4px 8px; font-weight: 600; margin: 6px 0; }
.paper .pv-ev { border: 1px solid #bbb; padding: 4px 8px; margin: 8px 0; }

/* ProViDa: Overlay ingame, Datenzeile wie im Videobild (weiße Schrift mit Kontur, Monospace) */
.pvhud { position: fixed; left: 50%; top: 2.2vh; transform: translateX(-50%); z-index: 9000; pointer-events: none; font: 600 17px/1.25 PlexMono, ui-monospace, monospace; color: #fff; text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; letter-spacing: .04em; text-align: center; }
.pvhud.hidden { display: none; }
.pvhud .pv-line { display: flex; gap: 18px; justify-content: center; white-space: nowrap; }
.pvhud .pv-line b { font-weight: 600; }
.pvhud .pv-line2 { display: flex; gap: 18px; justify-content: center; font-size: 13px; opacity: .9; margin-top: 2px; }
.pvhud .pv-rec { min-width: 70px; }
.pvhud .pv-rec.on { color: #ff4a3d; }
.pvhud .pv-res { margin: 10px auto 0; display: inline-flex; flex-direction: column; gap: 2px; background: rgba(0, 0, 0, .62); border-left: 4px solid #e0b21a; padding: 8px 14px; text-align: left; font-size: 14px; text-shadow: none; }
.pvhud .pv-res b { font-size: 15px; }
.pvhud .pv-res .pv-hint { opacity: .75; font-size: 12px; }
.pvhud .pv-res.hidden { display: none; }

/* 3.0 QR-Code unten rechts auf dem Blatt */
.paper .pqr { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
.paper .pqr svg { width: 112px; height: 112px; flex: none; }
.paper .pqr-t { max-width: 210px; text-align: right; font-size: 10.5px; line-height: 1.35; color: #333; }
.paper .pqr-t b { font-size: 11.5px; color: #111; }

/* Asservate: Beweiskette */
ol.chain { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line-strong); }
ol.chain li { position: relative; padding: 4px 0 8px 10px; }
ol.chain li::before { content: ''; position: absolute; left: -20px; top: 9px; width: 8px; height: 8px; background: var(--accent); border: 2px solid var(--surface); }
ol.chain li.gap::before { background: var(--danger); }
ol.chain li.gap { color: var(--danger); }

/* 4.0 Stadtrat & Pressestelle */
.tally { position: relative; display: flex; height: 10px; background: var(--surface-3); border: 1px solid var(--line); overflow: visible; }
.tally.big { height: 18px; margin-top: 8px; }
.tally i { display: block; height: 100%; transition: width .4s ease; }
.tally i.y { background: var(--ok); }
.tally i.n { background: var(--danger); }
.tally i.e { background: var(--faint); }
.tally b.q { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); margin-left: -1px; }
.vote-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.vote { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; font: 600 15px var(--sans); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.vote svg { width: 18px; height: 18px; }
.vote:hover { background: var(--surface-2); }
.vote:active { transform: translateY(1px); }
.vote.y.on, .vote.y:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.vote.n.on, .vote.n:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.vote.e.on { border-color: var(--text); background: var(--surface-3); }
.vote:disabled { opacity: .5; cursor: default; }
.kind-pick { display: flex; gap: 0; border: 1px solid var(--line-strong); }
.kind-pick .kp { flex: 1; height: 34px; border: 0; border-right: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font: 500 13px var(--sans); }
.kind-pick .kp:last-child { border-right: 0; }
.kind-pick .kp.on { background: var(--accent); color: var(--accent-ink); }
.kat-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 8px; align-items: center; }
.oversight { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ov-card { border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; }
.ov-card dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin: 8px 0; font-size: 13px; }
.ov-card dt { color: var(--muted); }
.ov-card dd { margin: 0; text-align: right; font-weight: 600; }
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.paper-notice { border: 1px solid var(--line); background: #fbf8f1; padding: 14px 16px; min-height: 260px; max-height: 420px; overflow: auto; color: #1b1f24; }
.paper-notice h3 { margin: 4px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; }
.ow-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 12px; }
.ow-ai { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 12px; }
.ow-ai .check { display: flex; gap: 6px; align-items: flex-start; margin: 3px 0; }
.ow-msgs { max-height: 160px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ow-msgs > div { white-space: pre-wrap; padding: 6px 8px; border: 1px solid var(--line); font-size: 13px; }
.ow-msgs > div.out { background: var(--accent-soft); margin-left: 40px; }
.ow-msgs > div.in { margin-right: 40px; }
.ow-msgs small { display: block; color: var(--muted); }
.casings { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.casing { display: grid; grid-template-columns: 22px 60px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; border: 1px solid var(--line); padding: 8px 10px; cursor: pointer; background: var(--surface); }
.casing:hover { background: var(--surface-2); }
.casing input { grid-row: span 2; }
.casing b { font: 600 18px var(--narrow); grid-row: span 2; }
.casing small { grid-column: 3; color: var(--muted); }
.plan-week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 0; border-top: 1px solid var(--line); flex: 1; min-height: 0; overflow: auto; }
.plan-day { border-right: 1px solid var(--line); min-height: 100%; display: flex; flex-direction: column; }
.plan-day:last-child { border-right: 0; }
.plan-day > h5 { margin: 0; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); font: 600 12px var(--sans); position: sticky; top: 0; }
.plan-day.today > h5 { background: var(--accent); color: var(--accent-ink); }
.shift { margin: 6px; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); background: var(--surface); padding: 6px 8px; cursor: pointer; font-size: 12px; }
.shift:hover { background: var(--sel); }
.shift.mine { border-left-color: var(--ok); background: var(--ok-soft); }
.shift.full { border-left-color: var(--faint); }
.shift.short { border-left-color: var(--warn); }
.shift b { display: block; font-size: 12.5px; }
.shift .seats { display: flex; gap: 3px; margin-top: 4px; }
.shift .seats i { width: 10px; height: 10px; border: 1px solid var(--line-strong); background: var(--surface); }
.shift .seats i.on { background: var(--ok); border-color: var(--ok); }
.promo-card { border: 1px solid var(--line); padding: 10px 12px; margin: 8px 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; background: var(--surface); }
.promo-card.ready { border-left: 4px solid var(--ok); }
.promo-card .why { font-size: 12.5px; }
.promo-card .why .neg { color: var(--warn); }
.hours-bar { height: 6px; background: var(--surface-3); margin-top: 4px; }
.hours-bar i { display: block; height: 100%; background: var(--accent); }
.bill-items { display: flex; flex-direction: column; border: 1px solid var(--line); }
.bill-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; }
.bill-item:last-child { border-bottom: 0; }
.bill-item:hover { background: var(--surface-2); }
.bill-sum { display: flex; justify-content: space-between; padding: 10px; font-size: 15px; border: 1px solid var(--line); border-top: 0; background: var(--surface-2); }
.bill-sum b { font: 600 20px var(--narrow); }
.lage-tiles { display: grid; grid-template-columns: repeat(8, 1fr); border-bottom: 1px solid var(--line); flex: none; }
.lage-tiles .lt { padding: 10px 12px; border-right: 1px solid var(--line); }
.lage-tiles .lt:last-child { border-right: 0; }
.lage-tiles .lt b { display: block; font: 600 24px var(--narrow); }
.lage-tiles .lt b i { font: 500 12px var(--sans); color: var(--danger); font-style: normal; }
.lage-tiles .lt small { color: var(--muted); font-size: 11.5px; }
.lage-tiles .lt.red b { color: var(--danger); } .lage-tiles .lt.blue b { color: var(--accent); } .lage-tiles .lt.amber b { color: var(--warn); }
.lage-main { flex: 1; display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
.lage-map { position: relative; min-height: 0; background: #1c2a36; }
.lagekarte { width: 100%; height: 100%; display: block; }
.lagekarte .sea { fill: #16222d; }
.lagekarte .land { fill: #24333f; stroke: #3d5263; stroke-width: 28; stroke-linejoin: round; }
.lagekarte .lake { fill: #16222d; stroke: #3d5263; stroke-width: 20; }
.lagekarte .grid line { stroke: #2b3c4b; stroke-width: 10; opacity: .5; }
.lagekarte .marks circle { fill: #8aa0b4; }
.lagekarte .marks text { fill: #b8c7d4; font: 600 210px var(--sans); }
.lagekarte .pt.e circle { fill: #e2574c; }
.lagekarte .pt.e .ring { fill: none; stroke: #e2574c; stroke-width: 30; animation: lagepulse 2s infinite; transform-box: fill-box; transform-origin: center; }
.lagekarte .pt.e.p3 circle { fill: #e0a43a; } .lagekarte .pt.e.p3 .ring { stroke: #e0a43a; }
.lagekarte .pt.v rect { fill: #5b9bd5; stroke: #fff; stroke-width: 20; }
.lagekarte .pt.v.s2 rect { fill: #6bbf73; }
.lagekarte .pt.s path { fill: #f2c94c; stroke: #1c2a36; stroke-width: 20; }
@keyframes lagepulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .lagekarte .pt.e .ring { animation: none; } }
.lage-legend { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 12px; background: rgba(20, 28, 36, .85); color: #dfe6ec; padding: 6px 10px; font-size: 12px; }
.lage-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.lage-legend i.e { background: #e2574c; border-radius: 50%; } .lage-legend i.v { background: #5b9bd5; } .lage-legend i.s { background: #f2c94c; }
.lage-side { border-left: 1px solid var(--line); overflow: auto; padding: 8px 12px; }
.lage-side h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lage-staff { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; }
.lage-staff span { width: 10px; height: 10px; }
.lage-staff b { font: 600 16px var(--narrow); }
.lage-inc { display: block; padding: 6px 8px; border-left: 3px solid var(--danger); margin-bottom: 4px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 13px; }
.lage-inc.p3 { border-left-color: var(--warn); }
.lage-inc small { display: block; color: var(--muted); }

/* 4.0 Sitzungssaal */
.hv { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.hv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hv-head h2 { margin: 2px 0; font-family: 'Narrow', var(--sans); font-size: 22px; }
.hv-clock { min-width: 230px; text-align: right; }
.hv-clock .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hv-clock .big { font-family: var(--mono); font-size: 30px; line-height: 1.1; }
.hv-clock.laeuft .big { color: var(--accent); }
.hv-clock.unterbrochen .big { color: var(--warn); }
.hv-clock .bar { height: 6px; background: var(--surface-3); margin: 4px 0 3px; }
.hv-clock .bar i { display: block; height: 100%; background: #5b4b9a; transition: width .9s linear; }
.hv-clock .bar i.full { background: var(--ok); }
.hv-main { flex: 1; display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
.hv-left { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.hv-log { flex: 1; overflow: auto; padding: 10px 14px; background: #fbfbf8; }
.hv-e { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.hv-e .who b { display: block; font-variant: small-caps; letter-spacing: .02em; }
.hv-e .who span { display: block; font-size: 11px; color: var(--muted); }
.hv-e .who small { font-family: var(--mono); color: var(--faint); font-size: 11px; }
.hv-e .txt { white-space: pre-wrap; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.45; }
.hv-e { border-left: 3px solid transparent; padding-left: 8px; }
.hv-e.g { border-left-color: #5b4b9a; } .hv-e.s { border-left-color: #b42318; } .hv-e.v { border-left-color: #2f5d8a; }
.hv-e.a { border-left-color: #9a5b00; background: #fffaf0; } .hv-e.z { border-left-color: #2d6a32; } .hv-e.x .txt { color: var(--muted); font-family: var(--sans); font-size: 12px; }
.hv-e.k-letztes_wort .txt { font-style: italic; }
.hv-e.k-schluss, .hv-e.k-eroeffnung { background: var(--surface-2); }
.hv-compose { border-top: 1px solid var(--line); padding: 8px 10px; background: var(--surface); }
.hv-compose .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.hv-compose .chip { cursor: pointer; padding: 3px 9px; }
.hv-compose .chip.on { background: #5b4b9a; color: #fff; border-color: #5b4b9a; }
.hv-compose .row { display: flex; gap: 6px; align-items: stretch; }
.hv-compose textarea { flex: 1; resize: vertical; }
.hv-closed { border-top: 1px solid var(--line); padding: 12px 14px; }
.hv-side { overflow: auto; padding: 10px 12px; }
.hv-side h4 { margin: 12px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hv-chair { display: flex; flex-direction: column; gap: 6px; }
.hv-flow { margin: 0; padding-left: 20px; font-size: 13px; }
.hv-flow li { padding: 2px 0; color: var(--muted); }
.hv-flow li.ok { color: var(--ok); }
.hv-flow li.ok::marker { content: '✓  '; }
.hv-doc { white-space: pre-wrap; max-height: 140px; overflow: auto; background: var(--surface-2); padding: 6px 8px; border: 1px solid var(--line); }
.id-note.info { background: var(--surface-2); color: var(--muted); }
/* 4.1 Bewährung */
.bw-bar { height: 6px; background: rgba(0,0,0,.1); border-radius: 3px; margin: 5px 0 3px; max-width: 360px; overflow: hidden; }
.bw-bar i { display: block; height: 100%; background: #4b3b8f; }
.bw-form .chk { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.bw-more { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; align-items: center; margin: 6px 0 4px; padding: 8px 10px; background: rgba(75,59,143,.06); border-left: 3px solid #4b3b8f; }
.bw-more .chk { grid-column: 1 / -1; }
.bw-more[hidden] { display: none; }
/* 4.3 Lagebild mit echter Karte (Leaflet, Kacheln der Leitstelle) */
.lage-map.live { overflow: hidden; }
.lage-leaflet { position: absolute; inset: 0; background: #10181f; }
.lage-leaflet .lage-base { filter: var(--lage-filter, none); }
.lage-style { position: absolute; right: 10px; top: 10px; z-index: 500; display: flex; background: rgba(20, 28, 36, .9); }
.lage-style button { border: 0; background: transparent; color: #cfd8e0; padding: 6px 12px; font: 500 12.5px var(--sans); cursor: pointer; }
.lage-style button.on { background: var(--accent); color: #fff; }
.lage-legend { z-index: 500; }
.lage-legend .live { color: #6bbf73; font-weight: 600; }
.lage-legend .live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6bbf73; margin-right: 5px; vertical-align: 1px; }
.lm { background: none; border: 0; }
.lm-e i { position: absolute; left: 5px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #e2574c; box-shadow: 0 0 0 2px #10181f; }
.lm-e::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #e2574c; animation: lagepulse 2s infinite; }
.lm-e.p3 i { background: #e0a43a; } .lm-e.p3::after { border-color: #e0a43a; }
.lm-v b { position: absolute; inset: 0; display: grid; place-items: center; background: #5b9bd5; color: #fff; font: 700 11px var(--narrow); border: 1.5px solid #fff; }
.lm-v.s1 b, .lm-v.s2 b { background: #4f9d5a; } .lm-v.s3 b, .lm-v.s4 b { background: #c9452f; } .lm-v.s7 b, .lm-v.s8 b { background: #d68a1f; } .lm-v.s6 b { background: #6f7780; }
.lm-v span { position: absolute; left: 21px; top: 1px; white-space: nowrap; color: #e8eef3; font: 600 11px var(--sans); text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.lm-s i { position: absolute; inset: 0; background: #f2c94c; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lage-tip { font: 12.5px var(--sans); }
@media (prefers-reduced-motion: reduce) { .lm-e::after { animation: none; } }

/* 4.4 Nächster Schritt: ein Kasten, ein Knopf. Steht oben in Akten, damit niemand raten muss. */
.nextstep { display: flex; align-items: center; gap: 14px; margin: 10px 0; padding: 10px 12px; background: var(--accent-faint); border: 1px solid var(--accent-line); border-left: 5px solid var(--accent); border-radius: 4px; }
.nextstep > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nextstep small { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: var(--muted); }
.nextstep b { font-size: 15px; }
.nextstep span { font-size: 12.5px; color: var(--muted); }
.nextstep .btn { flex: none; padding: 8px 16px; font-weight: 600; }
.nextstep.done { border-left-color: var(--ok, #2e7d4f); background: var(--ok-soft); }

/* 4.6 Foto-App */
.sbos-cam #device, .sbos-cam #modal, .sbos-cam #menus { visibility: hidden !important; }
.sbos-cam body { background: transparent !important; }
.camhud { position: fixed; inset: 0; pointer-events: none; z-index: 99999; }
.camhud i { position: absolute; width: 56px; height: 56px; border: 0 solid rgba(255,255,255,.85); }
.camhud .c1 { left: 9%; top: 11%; border-left-width: 3px; border-top-width: 3px; }
.camhud .c2 { right: 9%; top: 11%; border-right-width: 3px; border-top-width: 3px; }
.camhud .c3 { left: 9%; bottom: 11%; border-left-width: 3px; border-bottom-width: 3px; }
.camhud .c4 { right: 9%; bottom: 11%; border-right-width: 3px; border-bottom-width: 3px; }
.camhud .cam-rec { position: absolute; left: 9%; top: calc(11% - 30px); color: #fff; font: 600 13px/1 var(--mono, monospace); letter-spacing: .08em; text-shadow: 0 1px 2px #000; }
.sbos-cam-snap .camhud { display: none; }
.ph-preview { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #111; border: 1px solid var(--line); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ph-tile { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); background: var(--panel, #fff); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ph-tile:hover { border-color: var(--accent); }
.ph-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; display: block; }
.ph-tile span { padding: 5px 7px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-tile b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tile small { color: var(--muted, #6b737c); font-size: 11px; }
.ph-view { display: grid; grid-template-columns: 1fr 260px; gap: 12px; padding: 12px; }
.ph-view img { width: 100%; max-height: 60vh; object-fit: contain; background: #111; display: block; }
.ph-facts { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ph-grid { margin-top: 8px; }

/* 4.10 Beweiswert */
.ph-tile { position: relative; }
.ph-bw { display: inline-block; font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: .03em; }
.ph-tile .ph-bw { position: absolute; top: 6px; left: 6px; }
.ph-bw-hoch { background: #1f6f43; color: #fff; }
.ph-bw-mittel { background: #3b4f9a; color: #fff; }
.ph-bw-gering { background: #8a2b2b; color: #fff; }

/* 4.12 Justizportal: eigene Ausgabe für Justiz und Anwaltschaft */
.wp-justiz { background-color: #2a2340; background-image: url('../img/wp-justiz.svg'); background-size: cover; background-position: center; }
.ed-justiz .boot { background: #1d1830; }
.ed-justiz .boot-logo span { color: #b9a8ff; }
.ed-justiz .device-brand span { letter-spacing: .12em; }

/* 4.25 Leitstellenrechner: Behörden-Optik mit eigener Leitfarbe (Leitstellenrot), sonst nichts Neues */
.ed-leitstelle .boot { background: #1f1716; }
.ed-leitstelle .boot-logo span { color: #e08a74; }
.ed-leitstelle .device-brand span { letter-spacing: .12em; }

/* V6 Fallverlauf */
.fv-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 10px 12px 0; }
.fv-ph { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; min-width: 0; }
.fv-ph b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-ph span { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid currentColor; }
.fv-ph.on { color: var(--text, inherit); background: var(--accent-soft); border-color: var(--accent-line); }
.fv-ph.on span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fv-ph.cur { box-shadow: inset 0 -3px 0 var(--accent); }
.fv-list { padding: 0 12px 12px; }
.fv-sec { margin: 12px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fv-ev { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 6px 0; border-left: 2px solid var(--line); margin-left: 12px; padding-left: 0; position: relative; }
.fv-dot { margin-left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--panel, #fff); border: 1px solid var(--line); display: grid; place-items: center; }
.fv-dot svg { width: 13px; height: 13px; }
.fv-top { display: flex; justify-content: space-between; gap: 8px; }
.fv-ev.minor { opacity: .7; }
.fv-ev.t-red .fv-dot { border-color: var(--danger); color: var(--danger); }
.fv-ev.t-amber .fv-dot { border-color: #b7791f; color: #b7791f; }
@media (max-width: 700px) { .fv-bar { grid-template-columns: repeat(3, 1fr); } }

/* V6 Geschäftsstelle */
.gs-week { display: grid; grid-template-columns: repeat(8, minmax(120px, 1fr)); gap: 6px; padding: 10px 12px; overflow-x: auto; }
.gs-day { border: 1px solid var(--line); border-radius: 4px; min-height: 220px; background: var(--panel, #fff); }
.gs-day.today { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.gs-dh { padding: 6px 8px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.gs-it { margin: 6px; padding: 6px; border-radius: 3px; border-left: 3px solid var(--line); background: var(--accent-faint); cursor: pointer; }
.gs-it:hover { background: var(--accent-soft); }
.gs-it.t-verhandlung { border-left-color: var(--accent); }
.gs-it.t-frist { border-left-color: #b7791f; }
.gs-t { font-size: 12.5px; font-weight: 600; margin: 2px 0; }

/* V6 Hilfe im Fenster */
.win-btns .helpb { font-weight: 700; font-size: 13px; width: 30px; }
.win-help.hidden { display: none; }
.win-help { flex: none; border-bottom: 1px solid var(--accent-line); background: var(--accent-faint); }
.wh-in { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; font-size: 12.5px; }
.wh-in > svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.wh-in > div { flex: 1; }
.wh-in ol { margin: 2px 0; padding: 0; list-style: none; counter-reset: wh; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3px 18px; }
.wh-in li { counter-increment: wh; position: relative; padding-left: 24px; line-height: 1.4; }
.wh-in li::before { content: counter(wh); position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 3px; background: var(--accent); color: #fff; font: 600 10.5px/16px 'IBM Plex Mono', monospace; text-align: center; }
.wh-in > div > b { display: block; margin-bottom: 2px; }

/* V6 Assistent „Was möchtest du tun?“ und „Alle Programme“ */
.gd-wrap { padding: 14px 16px; overflow: auto; }
.gd-intro { margin: 0 0 12px; color: var(--muted); }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gd-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel, #fff); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.gd-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.gd-tile svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.gd-tile b { font-size: 14px; }
.gd-tile span { font-size: 12px; color: var(--muted); }
.gd-h { margin: 10px 0 12px; font-size: 18px; }
.gd-steps { list-style: none; margin: 0; padding: 0; }
.gd-steps li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gd-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.gd-group { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gd-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.gd-app { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel, #fff); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.gd-app:hover { border-color: var(--accent); }
.gd-app svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.gd-app span { display: flex; flex-direction: column; gap: 2px; }
.gd-app small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }

/* V6 Kriminalstatistik */
.cs-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.cs-kpi { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.cs-kpi small { color: var(--muted); font-size: 11.5px; }
.cs-kpi b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cs-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); }
.cs-col { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.cs-col i { display: block; flex: 1; border-radius: 2px 2px 0 0; }
.cs-leg span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.cs-col i.c, .cs-leg .c { background: var(--accent); }
.cs-col i.f, .cs-leg .f { background: #8a7bc0; }
.cs-col i.a, .cs-leg .a { background: #b7791f; }
.cs-leg { margin-top: 6px; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .cs-two { grid-template-columns: 1fr; } }
.cs-hours { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.cs-hours > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cs-hours i { display: block; width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; }
.cs-hours span { font-size: 10px; color: var(--muted); height: 12px; }

/* 4.26 Kriminaltechnik (sb_labor): Laborbericht am Asservat */
.kt { border: 1px solid var(--line); background: #fff; padding: 10px 12px; margin-bottom: 10px; }
.kt-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.kt-sub { font: 700 11px var(--narrow); letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #666); margin: 10px 0 4px; }
.kt-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; margin: 4px 0 0; font-size: 13px; }
.kt-facts dt { color: var(--muted, #666); }
.kt-facts dd { margin: 0; }
.kt-ok { font-size: 11px; font-weight: 600; color: #2d5a2d; border: 1px solid #a9c7a9; background: #f0f6f0; padding: 0 5px; }
.kt-warn { font-size: 11px; font-weight: 600; color: #8a1c1c; border: 1px solid #d9a3a3; background: #fbefef; padding: 0 5px; margin-left: 4px; }
.kt-facts dd > .kt-warn:first-child { margin-left: 0; }
.kt-prof { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 112px; max-width: 360px; }
.kt-prof > div { display: flex; flex-direction: column; align-items: center; min-height: 0; }
.kt-prof b { font: 600 10px var(--mono, monospace); color: #444; line-height: 14px; }
.kt-prof em { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line); min-height: 0; }
.kt-prof i { display: block; width: 60%; background: var(--accent); }
.kt-prof span { font-size: 10px; color: #777; line-height: 14px; }
.kt-tab { width: 100%; border-collapse: collapse; font-size: 12px; }
.kt-tab td { padding: 3px 6px 3px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kt-lose { margin: 0; padding-left: 18px; font-size: 12px; }
.kt-lose li { margin: 2px 0; }
.kt-note { margin-top: 8px; font-size: 12px; padding: 6px 8px; background: #f3f4f6; border-left: 3px solid var(--accent); }

/* ============================================================== 4.28 Persönliche Anpassung */
body.ui-klein { font-size: 12px; }
body.ui-gross { font-size: 14.5px; }
body.ui-gross .btn, body.ui-gross .field, body.ui-gross .sm-item, body.ui-gross table.grid td, body.ui-gross table.grid th, body.ui-gross .listbox .li, body.ui-gross .tabs button { font-size: 14px; }
body.ui-gross .btn, body.ui-gross .field { height: 30px; }
body.ui-klein .btn, body.ui-klein .field, body.ui-klein table.grid td, body.ui-klein .listbox .li { font-size: 12px; }
.acc-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-pick button { width: 74px; height: 46px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; padding: 0; display: flex; flex-direction: column; text-align: left; }
.acc-pick button i { display: block; height: 12px; background: var(--c); }
.acc-pick button span { padding: 5px 6px 0; font-size: 11.5px; color: var(--text); }
.acc-pick button.on { outline: 2px solid var(--c); outline-offset: 1px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { border: 0; border-right: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); padding: 4px 12px; cursor: pointer; font-size: 12.5px; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.wp-own { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.wp-pick { grid-template-columns: repeat(6, 1fr); }
.wp-eigenes { background-color: #39414a; background-size: cover; background-position: center; }

body.theme-dunkel {
  --text: #e2e5e9; --muted: #a1a9b3; --faint: #7b838d;
  --surface: #22262c; --surface-2: #292e35; --surface-3: #31373f;
  --line: #3a4049; --line-strong: #56606b;
  --chrome: #2b3036; --chrome-inactive: #25292e; --frame: #0f1114;
  --sel: #2a4467; --sel-line: #5a8ac2;
  --danger: #e76a5e; --danger-soft: #3b2422; --warn: #e2a74a; --warn-soft: #382d19; --ok: #79c07d; --ok-soft: #1d3020;
  color-scheme: dark;
}
body.theme-dunkel .paper, body.theme-dunkel .paper-notice, body.theme-dunkel .paperview .pv-sign {
  --text: #1b1f24; --muted: #5b6470; --faint: #8a929c; --surface: #fff; --surface-2: #f4f5f7; --surface-3: #e9ecef;
  --line: #d9dde2; --line-strong: #a9b0b8; --sel: #cfe0f5; --danger: #b42318; --danger-soft: #fbe9e7; --warn: #9a5b00; --warn-soft: #fff3dc; --ok: #2d6a32; --ok-soft: #e6f2e7;
  color-scheme: light;
}
body.theme-dunkel .sm-user, body.theme-dunkel .tabs button.on, body.theme-dunkel .tablewrap, body.theme-dunkel .split .pane-l,
body.theme-dunkel .dialog, body.theme-dunkel .cm-msg, body.theme-dunkel .kt, body.theme-dunkel table.grid .empty td { background: var(--surface) !important; }
body.theme-dunkel .menubar, body.theme-dunkel .toolbar, body.theme-dunkel .statusbar, body.theme-dunkel .tabs, body.theme-dunkel .dialog .d-foot,
body.theme-dunkel .dossier-head, body.theme-dunkel .banner, body.theme-dunkel .chip, body.theme-dunkel .doc th, body.theme-dunkel .calc-total,
body.theme-dunkel .kt-note, body.theme-dunkel .hv-log, body.theme-dunkel .cm-msgs, body.theme-dunkel .calculator { background: var(--surface-2); }
body.theme-dunkel .dialog .m-body > .d-foot { background: var(--surface-2); }
body.theme-dunkel .btn { background: var(--surface-3); border-color: #66707c; color: var(--text); }
body.theme-dunkel .btn:hover { background: #3a414a; border-color: #85909c; }
body.theme-dunkel .btn:active { background: #434b55; }
body.theme-dunkel .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.theme-dunkel .field, body.theme-dunkel select.field, body.theme-dunkel textarea.field { background-color: #1a1d22; border-color: #5b6570; color: var(--text); }
body.theme-dunkel table.grid thead th { background: var(--surface-3); }
body.theme-dunkel table.grid tbody tr.click:hover td, body.theme-dunkel .listbox .li:hover { background: #2c3644; }
body.theme-dunkel table.grid tbody tr.hit td { background: #3a2624; }
body.theme-dunkel .dossier-head .photo { background: var(--surface-3); }
body.theme-dunkel .cm-msg.out { background: #263140; border-color: #3b4c63; }
body.theme-dunkel .notes-area { background: #1e2125; color: var(--text); }
body.theme-dunkel .calculator .disp { background: #1a1f19; color: #d7e8cf; border-color: #56606b; }
body.theme-dunkel .verify-ok, body.theme-dunkel .id-ok, body.theme-dunkel .kt-ok { background: #1f3322; color: #a9d6aa; border-color: #355a38; }
body.theme-dunkel .verify-warn, body.theme-dunkel .id-note { background: #382d19; color: #e7c789; }
body.theme-dunkel .verify-bad, body.theme-dunkel .kt-warn { background: #3b2422; color: #f0b2aa; border-color: #6b3a36; }
body.theme-dunkel .hv-e.a { background: #322a1b; }
body.theme-dunkel .paper-wrap { background: #3a4047; }
body.theme-dunkel ::selection { background: #3b5f8f; }
body.theme-dunkel table.grid th, body.theme-dunkel .section h3 { color: var(--muted); }
body.theme-dunkel table.grid td { border-bottom-color: #30353c; }
body.theme-dunkel .alert.blue { border-color: #3e5677; color: #c7d8ee; }
body.theme-dunkel .alert.green { border-color: #355a38; color: #b4dbb6; }
body.theme-dunkel .kt-prof b { color: #c9ced4; }
body.theme-dunkel .alert.red { border-color: #6b3a36; color: #f0b2aa; }
body.theme-dunkel .alert.amber { border-color: #6b5426; color: #e9cd8f; }
body.theme-dunkel .tag.blue { color: #d3dcef; border-color: #4a5a72; }
body.theme-dunkel .tag.red { border-color: #6b3a36; } body.theme-dunkel .tag.amber { border-color: #6b5426; } body.theme-dunkel .tag.green { border-color: #355a38; }

/* 4.29 Kennzeichenscanner im Streifenwagen */
.anprhud { position: fixed; right: 2.2vh; bottom: 24vh; width: 330px; z-index: 9000; pointer-events: none; font: 13px/1.35 PlexMono, ui-monospace, monospace; color: #fff; }
.anprhud.hidden { display: none; }
.anprhud .an-head { display: flex; justify-content: space-between; background: rgba(12, 16, 20, .82); border-left: 3px solid #5a8ac2; padding: 5px 9px; letter-spacing: .06em; font-size: 12px; }
.anprhud .an-head span { opacity: .75; }
.anprhud .an-hit { margin-top: 4px; padding: 6px 9px; background: rgba(12, 16, 20, .88); border-left: 3px solid #e2a74a; }
.anprhud .an-hit.red { border-left-color: #e2574c; background: rgba(70, 14, 12, .9); animation: anblink 1s steps(2, start) 3; }
.anprhud .an-hit b { font-size: 16px; letter-spacing: .08em; }
.anprhud .an-hit small { opacity: .8; }
@keyframes anblink { to { background: rgba(140, 24, 20, .95); } }

/* 4.29 Angeheftete Akten, Textbausteine, Meldungsfilter */
.win-btns .pinb { width: 32px; }
.win-btns .pinb svg { width: 13px; height: 13px; }
.win-btns .pinb.on { color: var(--accent); }
.win-btns .pinb.on svg { fill: currentColor; }
.dicon .pinmark { position: absolute; top: 4px; left: 18px; width: 18px; height: 18px; display: grid; place-items: center; background: #f2e7c4; color: #5a4512; border: 1px solid #b59a52; transform: rotate(-12deg); }
.dicon .pinmark svg { width: 11px; height: 11px; margin: 0; filter: none; }
.dicon.pinned > svg { opacity: .92; }
.snipchip { position: fixed; z-index: 9000; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; font-size: 11.5px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.snipchip svg { width: 13px; height: 13px; color: var(--muted); }
.snipchip:hover { background: var(--sel); }
.snipchip.hidden { display: none; }
.snipmenu { width: 340px; padding: 0; }
.snipmenu .sn-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 10px; border-bottom: 1px solid var(--line); }
.snipmenu .sn-head .btn { width: auto; padding: 3px 8px; }
.snipmenu .field { margin: 6px; width: calc(100% - 12px); }
.snipmenu .sn-list { max-height: 260px; overflow: auto; }
.snipmenu .sn-list button { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 6px 10px; border-top: 1px solid var(--line); }
.snipmenu .sn-list button span { color: var(--muted); font-size: 11px; }
.snipmenu .sn-list button small { grid-column: 1 / -1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snipmenu .sn-empty { padding: 12px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.snipedit { display: grid; grid-template-columns: 230px 1fr; gap: 14px; min-height: 100%; }
.snipedit .se-list { border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; min-height: 380px; }
.snipedit .se-list .toolbar { border-bottom: 1px solid var(--line); }
.snipedit .se-items { overflow: auto; flex: 1; }
.snipedit .se-items button { display: flex; justify-content: space-between; gap: 6px; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 12.5px; }
.snipedit .se-items button span { color: var(--muted); font-size: 11px; }
.snipedit .se-items button.on { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
.snipedit textarea { font-family: inherit; line-height: 1.45; }
.notifygrid td { padding: 8px 6px; vertical-align: middle; }
.notifygrid tr:first-child td { border-top: 0; }
@media (max-width: 700px) { .snipedit { grid-template-columns: 1fr; } }
.keycap { display: inline-block; min-width: 28px; padding: 0 7px; font: 500 12px/20px var(--mono); text-align: center; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 2px; white-space: nowrap; }
.keycap.none { font-family: var(--sans); color: var(--muted); border-style: dashed; border-bottom-width: 1px; }
.keycap.wait { font-family: var(--sans); border-color: var(--accent); color: var(--accent); background: var(--surface); }
.keygrid td { padding: 8px 6px; vertical-align: middle; }
.keygrid td.kc { width: 150px; }
.keygrid td.kc .small { margin-top: 2px; }
.keygrid td.kb { width: 190px; white-space: nowrap; }
.keygrid tr.kg td { padding: 12px 6px 4px; background: transparent !important; border-bottom: 1px solid var(--line-strong); font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.keygrid tr.kg:first-child td { padding-top: 2px; }
.keygrid .kwarn { color: var(--warn); margin-top: 2px; }

/* 4.30 Desktop anpassen: Symbolgröße, Ordner, Schnellstart, Bearbeiten direkt auf dem Desktop */
.icons { --is: 40px; }
.icons.isz-klein { --is: 30px; }
.icons.isz-gross { --is: 54px; }
.icons .dicon > svg { width: var(--is); height: var(--is); }
.icons.isz-klein .dicon { width: 72px; padding-top: 4px; }
.icons.isz-klein .dicon span { font-size: 11px; }
.icons.isz-gross .dicon { width: 112px; padding-top: 8px; }
.icons.isz-gross .dicon span { font-size: 13px; }
.icons.isz-gross .dicon .pinmark { left: 26px; }
.dicon.dragging { pointer-events: none; z-index: 5; opacity: .85; }
.dicon.drop-on { background: rgba(255, 255, 255, .24); border: 1px solid #fff; }
.dicon.ghost { pointer-events: none; z-index: 8700; width: 90px; background: rgba(28, 32, 37, .7); border-color: rgba(255, 255, 255, .45); }
.dicon.ghost svg { width: 40px; height: 40px; }
.dicon .dren { display: block; width: 100%; margin-top: 1px; padding: 1px 3px; font: 12px var(--sans); text-align: center; color: #1b1f24; background: #fff; border: 1px solid var(--sel-line); outline: 0; }
.dfold .fold-ico { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 2px; width: calc(var(--is) + 4px); height: calc(var(--is) - 2px); margin: 6px auto 4px; padding: 3px;
  background: rgba(214, 196, 140, .32); border: 1px solid rgba(240, 226, 180, .7); }
.dfold .fold-ico::before { content: ''; position: absolute; left: -1px; top: -6px; width: 42%; height: 5px; background: rgba(214, 196, 140, .32); border: 1px solid rgba(240, 226, 180, .7); border-bottom: 0; }
.dfold .fold-ico svg { width: 100%; height: auto; margin: 0; filter: none; }

.desk-edit .icons { right: 300px; outline: 2px dashed rgba(255, 255, 255, .28); outline-offset: -4px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: var(--cw) var(--ch); background-position: 8px 8px; }
.desk-edit .toasts { right: 312px; }
.desk-edit .dicon { border: 1px dashed rgba(255, 255, 255, .35); cursor: grab; }
.desk-edit .dicon.sel { border-style: solid; }
.dicon .dx, .df-app .dx { position: absolute; top: -7px; right: -2px; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: #2a3037; color: #fff; border: 1px solid #0d0f12; }
.dicon .dx svg, .df-app .dx svg { width: 11px; height: 11px; margin: 0; filter: none; }
.dicon .dx:hover, .df-app .dx:hover { background: var(--danger); }

.dfolder { position: absolute; z-index: 8600; width: 344px; max-width: calc(100% - 8px); background: var(--surface-2); color: var(--text); border: 1px solid #4d555e; box-shadow: 3px 4px 16px rgba(0, 0, 0, .35); user-select: none; }
.dfolder .df-head { display: flex; align-items: center; gap: 8px; padding: 5px 4px 5px 10px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.dfolder .df-head > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.dfolder .df-head b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfolder .df-head .dren { flex: 1; min-width: 0; font: 13px var(--sans); padding: 2px 4px; border: 1px solid var(--sel-line); color: var(--text); background: var(--surface); outline: 0; }
.dfolder .df-x { width: 26px; height: 24px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
.dfolder .df-x:hover { background: #c42b1c; color: #fff; }
.dfolder .df-x svg { width: 14px; height: 14px; }
.dfolder .df-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 8px; max-height: 300px; overflow-y: auto; }
.dfolder .df-app { position: relative; padding: 6px 2px 5px; text-align: center; font-size: 11.5px; line-height: 1.25; border: 1px solid transparent; cursor: default; }
.dfolder .df-app > svg { display: block; width: 32px; height: 32px; margin: 0 auto 4px; }
.dfolder .df-app:hover, .dfolder .df-app:focus { background: var(--sel); border-color: var(--sel-line); outline: 0; }
.dfolder .df-app.lifted { opacity: .4; }
.dfolder .df-empty { grid-column: 1 / -1; padding: 14px 6px; color: var(--muted); font-size: 12px; text-align: center; }
.dfolder .df-foot { padding: 5px 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.dfolder .df-foot:empty { display: none; }

.deskedit { position: absolute; top: 0; right: 0; bottom: 40px; width: 300px; z-index: 8500; display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); border-left: 1px solid #1c2025; box-shadow: -3px 0 14px rgba(0, 0, 0, .28); }
.deskedit.drop-on { outline: 2px solid var(--danger); outline-offset: -2px; }
.deskedit .de-head { padding: 10px 12px; background: var(--taskbar); color: #fff; }
.deskedit .de-head b { display: block; font: 700 14px var(--narrow); letter-spacing: .06em; text-transform: uppercase; }
.deskedit .de-head span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: #b9c0c7; }
.deskedit .de-find { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.deskedit .de-find svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.deskedit .de-find .field { flex: 1; min-width: 0; }
.deskedit .de-list { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 6px; }
.deskedit .de-group { padding: 10px 12px 3px; font: 600 11px var(--narrow); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.deskedit .de-app { display: flex; align-items: center; gap: 8px; padding: 3px 6px 3px 12px; font-size: 12.5px; cursor: grab; user-select: none; touch-action: none; }
.deskedit .de-app:hover { background: var(--sel); }
.deskedit .de-app.lifted { opacity: .45; }
.deskedit .de-app > svg { width: 24px; height: 24px; flex: none; }
.deskedit .de-app span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deskedit .de-app small { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.deskedit .de-b { flex: none; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; }
.deskedit .de-b:hover { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.deskedit .de-b svg { width: 14px; height: 14px; }
.deskedit .de-b.on { color: var(--accent); border-color: var(--accent); }
.deskedit .de-empty { padding: 14px 12px; font-size: 12px; color: var(--muted); }
.deskedit .de-opts { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px; font-size: 12.5px; border-top: 1px solid var(--line); background: var(--surface-2); }
.deskedit .de-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deskedit .de-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.deskedit .de-foot .grow { flex: 1; }


@media (max-width: 760px) {
  .deskedit { top: auto; width: 100%; height: 52%; border-left: 0; border-top: 1px solid #1c2025; }
  .desk-edit .icons { right: 0; bottom: calc(52% + var(--bottom)); }
  .tb-quick.editing { min-width: 44px; }
  .tb-qhint { display: none; }
}

/* 4.31 Personalisierung: Untermenüs, Papierkorb, Widgets, Taskleiste, Startmenü, Darstellung je Symbol */
.ctxmenu button.has-sub { padding-right: 6px; }
.ctxmenu .cm-arrow { display: flex; margin-left: auto; padding-left: 14px; }
.ctxmenu .cm-arrow svg { width: 12px; height: 12px; }
.ctxmenu button.open { background: var(--sel); }
.ctxmenu button:disabled { color: var(--faint); cursor: default; }
.ctxmenu button:disabled:hover { background: transparent; }

.icons.ls-dunkel .dicon span { color: #15181c; text-shadow: 0 1px 2px rgba(255, 255, 255, .85), 0 0 1px rgba(255, 255, 255, .9); }
.icons.ls-kasten .dicon span { display: inline-block; max-width: 100%; padding: 0 4px; background: rgba(18, 21, 25, .68); text-shadow: none; }
.dicon.nolabel > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mk-blau { --mk: #2f5d8a; --mkf: rgba(78, 128, 186, .5); --mkb: rgba(160, 196, 236, .85); }
.mk-gruen { --mk: #3d6b35; --mkf: rgba(84, 140, 74, .5); --mkb: rgba(168, 214, 158, .85); }
.mk-gelb { --mk: #8a6414; --mkf: rgba(200, 160, 50, .5); --mkb: rgba(240, 214, 140, .9); }
.mk-rot { --mk: #9b2c24; --mkf: rgba(184, 64, 52, .5); --mkb: rgba(240, 170, 160, .85); }
.mk-lila { --mk: #5b4a8b; --mkf: rgba(118, 98, 176, .5); --mkb: rgba(196, 184, 236, .85); }
.mk-grau { --mk: #5a6068; --mkf: rgba(120, 128, 138, .55); --mkb: rgba(206, 212, 218, .85); }
.icons .dicon:not(.dfold)[class*=" mk-"] > span, .lk-desk .dicon:not(.dfold)[class*=" mk-"] > span { display: inline-block; max-width: 100%; padding: 0 4px; color: #fff; background: var(--mk); text-shadow: none; }
.dfold[class*=" mk-"] .fold-ico, .dfold[class*=" mk-"] .fold-ico::before { background: var(--mkf); border-color: var(--mkb); }
.dicon.dbin.drop-on { background: rgba(180, 35, 24, .3); border-color: #f0b2aa; }

.bin-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.45; color: var(--muted); }
.bin-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent); }
.bin-note b { color: var(--text); font-weight: 600; }
.bin-list { flex: 1; min-height: 0; overflow: auto; }
.bin-list table.grid tr.on td { background: var(--sel) !important; }
.bin-name { display: inline-flex; align-items: center; gap: 8px; }
.bin-name svg { width: 20px; height: 20px; flex: none; }
.bin-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; color: var(--muted); text-align: center; font-size: 12.5px; }
.bin-empty svg { width: 56px; height: 56px; margin-bottom: 4px; }
.bin-empty b { color: var(--text); font-size: 13.5px; }

.widgets { position: absolute; left: 0; top: 0; right: 0; bottom: 40px; pointer-events: none; }
.dwidget { position: absolute; pointer-events: auto; background: rgba(26, 30, 35, .9); color: #e6e8eb; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); font-size: 12px; }
.dwidget .wg-head { display: flex; align-items: center; height: 24px; padding: 0 2px 0 9px; font: 600 11px var(--narrow); letter-spacing: .08em; text-transform: uppercase; color: #9aa2ab; cursor: grab; border-bottom: 1px solid rgba(255, 255, 255, .08); touch-action: none; }
.dwidget .wg-head span { flex: 1; }
.dwidget .wg-x { width: 22px; height: 20px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; color: inherit; cursor: pointer; opacity: 0; }
.dwidget:hover .wg-x, .dwidget:focus-within .wg-x, body.dev-tablet .dwidget .wg-x { opacity: 1; }
.dwidget .wg-x:hover { background: #c42b1c; color: #fff; }
.dwidget .wg-x svg { width: 12px; height: 12px; }
.dwidget.dragging { pointer-events: none; opacity: .85; z-index: 5; }
.dwidget .wg-body { padding: 8px 10px 10px; }
.wg-time { font: 500 34px/1.1 var(--sans); font-variant-numeric: tabular-nums; color: #fff; }
.wg-time small { font-size: 17px; color: #8a929c; }
.wg-date { margin-top: 3px; color: #b9c0c7; }
.wg-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.dwidget button.wg-row { width: 100%; padding: 5px 2px; background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, .07); color: inherit; cursor: pointer; text-align: left; font-size: 12px; }
.dwidget button.wg-row:first-child { border-top: 0; }
.dwidget button.wg-row:hover { background: rgba(255, 255, 255, .07); }
.wg-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.wg-row b.hot { color: #f0b46a; }
.wg-duty { display: grid; grid-template-columns: 9px 1fr; column-gap: 8px; align-items: center; padding-bottom: 6px; }
.wg-duty i { width: 9px; height: 9px; background: #6b737c; }
.wg-duty.on i { background: #5fae64; }
.wg-duty span { grid-column: 2; color: #b9c0c7; font-size: 11.5px; }
.wg-act { display: flex; gap: 6px; margin-top: 8px; }
.dwidget .wg-act .btn { padding: 3px 10px; font-size: 12px; }
.dwidget .wg-act .btn.flat { color: #c9ced4; }
.wg-muted { color: #9aa2ab; }
.dwidget.wg-notiz { background: #f3e7a4; color: #2b2a20; border-color: #c9b965; box-shadow: 1px 3px 8px rgba(0, 0, 0, .3); }
.dwidget.wg-notiz.nc-weiss { background: #f7f7f5; border-color: #c4c7cc; }
.dwidget.wg-notiz.nc-blau { background: #d9e5f2; border-color: #9fb6d0; }
.dwidget.wg-notiz.nc-gruen { background: #dcecd8; border-color: #a6c49e; }
.wg-notiz .wg-head { color: rgba(0, 0, 0, .5); border-bottom-color: rgba(0, 0, 0, .1); }
.wg-notiz .wg-body { padding: 6px 10px 8px; }
.wg-note { display: block; width: 100%; height: 132px; padding: 0; resize: none; border: 0; outline: 0; background: transparent; font: 13px/1.45 var(--sans); color: inherit; user-select: text; }
.wg-note::placeholder { color: rgba(0, 0, 0, .4); }


.menubar button:disabled { color: var(--faint); cursor: default; }
.menubar button:disabled:hover { background: transparent; }

.wallpaper.wpf-einpassen { background-size: contain; background-repeat: no-repeat; }
.wallpaper.wpf-kacheln { background-size: 360px auto; background-repeat: repeat; background-position: 0 0; }
.wallpaper.wpf-zentriert { background-size: 60% auto; background-repeat: no-repeat; }
.wallpaper.wpf-kacheln.wp-eigenes, .wallpaper.wpf-zentriert.wp-eigenes { background-size: auto; }
.wallpaper.wp-dim::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--wp-dim, 0)); pointer-events: none; }

.lk-wrap { display: flex; min-height: 100%; }
.lk-nav { position: sticky; top: 0; align-self: flex-start; flex: none; width: 176px; display: flex; flex-direction: column; padding: 6px 0; border-right: 1px solid var(--line); }
.lk-nav button { display: flex; align-items: center; gap: 9px; padding: 7px 12px; background: transparent; border: 0; border-left: 3px solid transparent; text-align: left; cursor: pointer; font-size: 12.5px; color: var(--text); }
.lk-nav button svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.lk-nav button:hover { background: var(--surface-2); }
.lk-nav button.on { background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.lk-main { flex: 1; min-width: 0; }
.lk-hint { margin-top: 4px; line-height: 1.45; }
.lk-checks { display: flex; flex-direction: column; gap: 4px; }
.lk-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lk-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lk-colors button { width: 34px; height: 26px; padding: 0; background: var(--c); border: 1px solid var(--line-strong); cursor: pointer; }
.lk-colors button.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.lk-own { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 12.5px; }
.lk-sym td { vertical-align: middle; }
.lk-name { display: inline-flex; align-items: center; gap: 8px; }
.lk-name svg { width: 20px; height: 20px; flex: none; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.lk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 2px 2px 6px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 12px; }
.lk-chip > svg { width: 16px; height: 16px; }
.lk-chip button { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.lk-chip button svg { width: 11px; height: 11px; }
.lk-chip button:hover { color: var(--danger); }
.lk-dlg { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; overflow-y: auto; }
.lk-prev { display: flex; align-items: center; gap: 14px; }
.lk-desk { position: relative; flex: none; width: 122px; height: 98px; background: #27333f url('../img/wp-werk.svg') center / cover; border: 1px solid var(--line-strong); }
.lk-desk .dicon { left: 15px; top: 6px; }
.lk-sec > b { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; }
.lk-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 3px; max-height: 180px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); background: var(--surface-2); }
.lk-icons button { height: 42px; padding: 0; display: grid; place-items: center; background: transparent; border: 1px solid transparent; cursor: pointer; }
.lk-icons button svg { width: 28px; height: 28px; }
.lk-icons button small { display: none; }
.lk-icons button[data-ic=""] { border: 1px dashed var(--line-strong); }
.lk-icons button:hover { background: var(--surface); border-color: var(--line-strong); }
.lk-icons button.on { background: var(--accent-soft); border: 1px solid var(--accent); }
.lk-marks { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-marks button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; background: var(--surface); border: 1px solid var(--line-strong); cursor: pointer; font-size: 12px; color: var(--text); }
.lk-marks button i { width: 14px; height: 14px; background: var(--mk); }
.lk-marks button i.mk-none { background: transparent; border: 1px dashed var(--line-strong); }
.lk-marks button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

@media (max-width: 760px) {
  .lk-wrap { flex-direction: column; }
  .lk-nav { position: static; width: auto; flex-direction: row; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .lk-nav button { flex: none; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .lk-nav button.on { border-bottom-color: var(--accent); }
  .lk-nav button svg { display: none; }
  .sm-tiles { grid-template-columns: repeat(3, 1fr); }
  .lk-own { margin-left: 0; }
}

/* ============================================================== Dock, Widgets und Desktop in allen Varianten */
body.tb-kompakt { --dock: 46px; }
body.tb-kompakt .tb-start, body.tb-kompakt .tb-ql { width: 40px; height: 38px; }
body.tb-kompakt .tb-start svg, body.tb-kompakt .tb-ql svg { width: 28px; height: 28px; }
body.tb-kompakt .tb-app { height: 36px; }
body.tb-kompakt .tb-app svg { width: 22px; height: 22px; }
body.tb-kompakt .tb-quick { height: 28px; }
body.tb-oben { --top: calc(var(--sys) + var(--dock)); --bottom: 0px; }
body.tb-oben .taskbar { top: var(--sys); bottom: auto; align-items: flex-start; }
body.tb-oben .dock { border-radius: 0 0 14px 14px; border-top: 0; border-bottom: 1px solid #040506; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05), 0 8px 28px rgba(0, 0, 0, .32); }
body.tb-oben .tb-ql::after, body.tb-oben .tb-app::after { bottom: auto; top: 2px; }
body.tb-oben .startmenu { top: calc(var(--top) + 10px); bottom: auto; }
body.tb-oben .notecenter, body.tb-oben .toasts { top: calc(var(--top) + 8px); }
body.tb-oben .wallpaper .wp-mark { bottom: 28px; }

.widgets { position: absolute; left: 0; top: var(--top); right: 0; bottom: var(--bottom); pointer-events: none; }
.desktop.has-board .widgets { right: calc(var(--board-w) + 28px); }
.dwidget { background: var(--shell-2); color: var(--shell-text); border: 1px solid #06080a; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 22px rgba(0, 0, 0, .22); overflow: hidden; }
.dwidget .wg-head { height: 30px; padding: 0 4px 0 12px; font-size: 11px; letter-spacing: .14em; color: var(--shell-muted); border-bottom-color: var(--shell-line); }
.dwidget .wg-x { border-radius: 6px; }
.dwidget .wg-body { padding: 10px 12px 12px; }
.wg-time { font: 500 34px/1.1 var(--mono); letter-spacing: -.02em; }
.wg-time small { color: var(--shell-muted); }
.wg-date { color: var(--shell-muted); }
.wg-row { border-top-color: var(--shell-line); }
.dwidget button.wg-row { border-top-color: var(--shell-line); border-radius: 0; }
.dwidget button.wg-row:hover { background: var(--shell-3); }
.wg-duty i { border-radius: 2px; }
.dwidget .wg-act .btn { height: 28px; }
.dwidget .btn { background: var(--shell-3); border-color: rgba(255, 255, 255, .12); color: var(--shell-text); }
.dwidget .btn:hover { background: var(--shell-4); }
.dwidget .btn.flat { background: transparent; border-color: transparent; }
.dwidget.wg-notiz { border-radius: 4px 4px 12px 4px; color: #2b2a20; }

.icons { --is: 44px; }
.icons.isz-klein { --is: 34px; }
.icons.isz-gross { --is: 56px; }
.dicon .pinmark { top: 4px; left: 16px; width: 18px; height: 18px; border-radius: 5px; transform: none; background: #f0d98a; color: #4f3c0b; border-color: #8f7424; }
.dfold .fold-ico { width: calc(var(--is) + 2px); height: calc(var(--is) - 2px); margin: 6px auto 7px; padding: 5px; gap: 3px; border-radius: 4px 9px 9px 9px;
  background: #384350; border: 1px solid #0a0d10; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 6px rgba(0, 0, 0, .3); }
.dfold .fold-ico::before { left: -1px; top: -6px; height: 6px; border-radius: 4px 4px 0 0; background: #384350; border-color: #0a0d10; }
.dfold .fold-ico svg { border-radius: 3px; }
.dicon.ghost { border-radius: 9px; }

.deskedit { top: var(--top); bottom: var(--bottom); border-radius: 0; }
.deskedit .de-head { background: var(--shell); }
.desk-edit .board { display: none; }
.dfolder { border-radius: 12px; overflow: hidden; border: 1px solid #07090c; box-shadow: 0 24px 56px -14px rgba(0, 0, 0, .62); }
.dfolder .df-head { height: 40px; padding-left: 12px; }
.dfolder .df-app { border-radius: 8px; }
.dfolder .df-x { border-radius: 6px; }

.lk-colors button, .acc-pick button, .lk-icons button, .lk-marks button, .lk-chip, .seg { border-radius: 5px; }
.seg { overflow: hidden; }
.lk-nav button { border-radius: 0 6px 6px 0; }

/* Dunkles Fensterdesign */
body.theme-dunkel .lock .lock-card, body.theme-dunkel .ctxmenu { background: var(--surface-2); }
body.theme-dunkel .ctxmenu { border-color: #07090c; }
body.theme-dunkel .win-title { border-bottom-color: #14171a; }
body.theme-dunkel .win-btns > button { color: #c9ced4; }
body.theme-dunkel .win-btns > button:hover { background: #3a4048; }
body.theme-dunkel .win-ctl { background: var(--surface-3); border-color: #4a525c; }
body.theme-dunkel .win-ctl button { color: #d5dae0; }
body.theme-dunkel .win-ctl button + button { border-left-color: #3e454f; }
body.theme-dunkel .win-ctl button:hover { background: #3a414a; }
body.theme-dunkel .win-ctl button.close:hover { background: #c42b1c; color: #fff; }
body.theme-dunkel .app-nav { background: var(--surface-2); }
body.theme-dunkel .app-nav button.on { background: var(--surface-3); }
body.theme-dunkel .empty-state svg, body.theme-dunkel .placeholder svg { background: var(--surface-3); border-color: var(--line-strong); }

/* ============================================================== TAB-10: Touch */
body.dev-tablet { --sys: 40px; --dock: 70px; font-size: 14px; }
body.dev-tablet .sysbar { font-size: 13px; }
body.dev-tablet .tb-tray button { padding: 0 12px; }
body.dev-tablet .tb-tray svg { width: 19px; height: 19px; }
body.dev-tablet .tb-search { height: 30px; }
body.dev-tablet .tb-start, body.dev-tablet .tb-ql { width: 58px; height: 60px; }
body.dev-tablet .tb-start svg, body.dev-tablet .tb-ql svg { width: 42px; height: 42px; }
body.dev-tablet .tb-quick { height: 44px; }
body.dev-tablet .tb-app { height: 58px; padding: 0 14px 0 9px; font-size: 13.5px; }
body.dev-tablet .tb-app svg { width: 34px; height: 34px; }
body.dev-tablet .tb-ql .tb-tip { display: none; }
body.dev-tablet .win-title { height: 56px; }
body.dev-tablet .win-title svg.app-ico { width: 30px; height: 30px; }
body.dev-tablet .win-title .t { font-size: 15px; }
body.dev-tablet .win-ctl button { width: 46px; height: 36px; }
body.dev-tablet .win-ctl button svg { width: 17px; height: 17px; }
body.dev-tablet .win-btns > button { width: 40px; height: 40px; }
body.dev-tablet .btn { height: 38px; padding: 0 16px; font-size: 14px; }
body.dev-tablet .field, body.dev-tablet select.field { height: 38px; font-size: 14px; }
body.dev-tablet table.grid td, body.dev-tablet table.grid th { padding-top: 10px; padding-bottom: 10px; font-size: 13.5px; }
body.dev-tablet .tabs button { height: 42px; padding: 0 16px; }
body.dev-tablet .app-nav { width: 230px; }
body.dev-tablet .app-nav button { padding: 11px 12px; font-size: 14px; }
body.dev-tablet .page-head h1 { font-size: 21px; }
body.dev-tablet .sm-find { height: 50px; }
body.dev-tablet .sm-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px; }
body.dev-tablet .sm-item { padding: 14px 4px 12px; font-size: 13px; }
body.dev-tablet .sm-item svg { width: 54px; height: 54px; }
body.dev-tablet .sm-rec, body.dev-tablet .sm-sys button { padding: 10px 8px; font-size: 13.5px; }
body.dev-tablet .icons { --is: 48px; }
body.dev-tablet .dicon span { font-size: 13px; }
body.dev-tablet .ctxmenu button { height: 42px; font-size: 14px; }
body.dev-tablet .bd-row { padding-top: 11px; padding-bottom: 11px; }
body.dev-tablet .bd-dact .btn { height: 38px; }
body.dev-tablet .nc-item { padding: 13px 10px; }
body.dev-tablet .win-rz { display: none; }
@media (max-width: 760px) { .deskedit { top: auto; } }
.bd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bd-top .tag { font-size: 10.5px; height: 18px; }
.bd-w { grid-template-columns: auto 1fr auto; }
.bd-w time { grid-row: 1; font-size: 11px; color: var(--shell-muted); white-space: nowrap; }
.bd-w .bd-meta { margin-top: 2px; }
.page-head.ph-search { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 16px; }
.ph-q { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ph-q .field.search { flex: 1 1 320px; max-width: 560px; height: 36px; font-size: 13.5px; background-position: 10px center; padding-left: 34px; }
.ph-q .btn { height: 36px; }
.placeholder > span { max-width: 380px; line-height: 1.45; }
.sm-item span { overflow-wrap: anywhere; hyphens: auto; }
.app-nav button em:empty { display: none; }
.tb-tray { flex: 1 0 auto; }
.tb-search { min-width: 150px; }
body.dev-tablet .tb-net span, body.dev-tablet .tb-who, body.dev-tablet .tb-search kbd, body.dev-tablet .sb-ctx { display: none; }
body.dev-tablet .tb-search { flex-basis: 300px; }
body.dev-tablet .device-bolt { width: 46px; height: 46px; }
body.dev-tablet .device-bolt.b1 { left: -12px; top: -12px; border-radius: 22px 8px 14px 8px; }
body.dev-tablet .device-bolt.b2 { right: -12px; top: -12px; border-radius: 8px 22px 8px 14px; background-position: 21px 11px; }
body.dev-tablet .device-bolt.b3 { left: -12px; bottom: -12px; border-radius: 8px 14px 8px 22px; background-position: 11px 21px; }
body.dev-tablet .device-bolt.b4 { right: -12px; bottom: -12px; border-radius: 14px 8px 22px 8px; background-position: 21px 21px; }
.bd-time { font-size: 46px; }
.bd-duty { margin-top: 12px; padding-top: 10px; }
.bd-row { padding-top: 7px; padding-bottom: 7px; }
.bd-card > header { padding-top: 8px; padding-bottom: 7px; }
.bd-m .bd-from { justify-content: flex-start; gap: 7px; }
.bd-m .bd-from time { margin-left: auto; }
.bd-m.unread .bd-from::before { margin-right: 0; }
.win-head { padding: 13px 18px 12px; align-items: center; }
.win-head h1 { font-size: 17px; }
.win-head p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-head .ph-act:empty { display: none; }
.win-head + .win-help, .win-head ~ .win-body > .toolbar:first-child { border-top: 0; }
.win.inactive .win-head h1 { color: var(--muted); }
.desktop.has-board .windows { right: calc(var(--board-w) + 28px); }
.desktop.has-board .snap-preview { max-width: 100%; }
body.dev-tablet .win-head { padding: 14px 18px; }
@media (max-width: 1100px) { .desktop.has-board .windows { right: 0; } }
.board { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a434e transparent; }
.board::-webkit-scrollbar { display: block; width: 6px; }
.board::-webkit-scrollbar-thumb, .bd-body::-webkit-scrollbar-thumb { background: #3a434e; border-radius: 3px; }
.board::-webkit-scrollbar-track, .bd-body::-webkit-scrollbar-track { background: transparent; }
.bd-card { flex: 0 1 auto; min-height: 96px; display: flex; flex-direction: column; }
.bd-card.bd-now { flex: none; min-height: 0; }
.bd-card > header { flex: none; }
.bd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a434e transparent; }
.bd-body::-webkit-scrollbar { width: 6px; }
.bd-all { flex: none; position: sticky; bottom: 0; }
.bd-now { padding: 14px 16px 12px; }
.bd-foot { flex: none; }
.lk-mini { position: relative; height: 196px; max-width: 360px; border-radius: 9px; overflow: hidden; border: 1px solid #07090c; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.lk-mini .wallpaper { position: absolute; inset: 0; }
.lk-mini .wallpaper.wp-werk { background-size: 9px 9px; background-position: 4px 4px; }
.lk-mini .lm-sys { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--shell); display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.lk-mini .lm-sys b { width: 30px; height: 3px; border-radius: 1px; background: rgba(255, 255, 255, .5); }
.lk-mini .lm-sys em { width: 44px; height: 3px; border-radius: 1px; background: rgba(255, 255, 255, .3); }
.lk-mini .lm-icons { position: absolute; left: 7px; top: 16px; display: flex; flex-direction: column; gap: 7px; }
.lk-mini .lm-icons svg { width: 15px; height: 15px; display: block; filter: none; margin: 0; }
.lk-mini .lm-win { position: absolute; left: 34px; top: 30px; width: 46%; height: 52%; background: #fff; border-radius: 4px; box-shadow: 0 5px 12px rgba(0, 0, 0, .4); overflow: hidden; padding: 0 8px; }
.lk-mini .lm-win::before { content: ''; position: absolute; left: 7px; top: 0; width: 14px; height: 2px; background: var(--accent); }
.lk-mini .lm-tt { display: block; height: 12px; margin: 0 -8px 8px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.lk-mini .lm-l { display: block; height: 4px; margin-bottom: 6px; border-radius: 1px; background: #dfe3e8; }
.lk-mini .lm-l.s { width: 60%; background: var(--accent-soft); }
.lk-mini.dark .lm-win { background: #22262c; }
.lk-mini.dark .lm-tt { background: #2b3036; border-color: #14171a; }
.lk-mini.dark .lm-l { background: #3a4049; }
.lk-mini .lm-board { position: absolute; right: 6px; top: 15px; bottom: 30px; width: 25%; display: flex; flex-direction: column; gap: 4px; }
.lk-mini .lm-board i { flex: 1; background: var(--shell-2); border: 1px solid #06080a; border-radius: 3px; }
.lk-mini .lm-board i.b1 { flex: .7; }
.lk-mini .lm-dock { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 3px; padding: 3px 5px; background: var(--shell); border-radius: 5px 5px 0 0; }
.lk-mini .lm-dock svg { width: 13px; height: 13px; display: block; }
.lk-mini.top .lm-dock { top: 9px; bottom: auto; border-radius: 0 0 5px 5px; }
.lk-mini.top .lm-icons { top: 32px; }
.lk-mini.top .lm-board { top: 31px; bottom: 6px; }
.lk-desk { background: #1a1f26; background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.3px); background-size: 12px 12px; border-radius: 8px; }
.mail-split { flex: 1; min-height: 0; border: 0; }
.mail-split .pane-l { background: var(--surface); }
.mail-split .listbox .li { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mail-split .listbox .li.unread { box-shadow: inset 3px 0 0 var(--accent); }
.mail-split .listbox .li.unread b { font-weight: 700; }
.mail-head { flex: none; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.mail-head h2 { margin: 0 0 4px; font: 600 18px/1.25 var(--sans); }
.mail-ini { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font: 700 15px var(--narrow); letter-spacing: .04em; }
.mail-body { padding: 18px 22px 22px 74px; white-space: pre-wrap; line-height: 1.6; font-size: 13.5px; background: var(--surface); }
.placeholder.small { padding: 24px 12px; }
.placeholder.small svg { width: 40px; height: 40px; padding: 10px; }
.app-split > .tabpanel { flex: 1; min-width: 0; }
.tabs-side { width: 220px; }
.sa-card { max-width: 620px; }
.sa-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sa-head > svg { width: 40px; height: 40px; flex: none; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.sa-head h3 { margin: 2px 0 4px; }
.sa-head > div { flex: 1; min-width: 0; }
.sa-head .tag { flex: none; margin-top: 4px; }
.bd-card.more { position: relative; }
.bd-card.more::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 26px; border-radius: 0 0 11px 11px; background: linear-gradient(rgba(26, 31, 38, 0), #1a1f26); pointer-events: none; }
.bd-card.more.with-all::after { bottom: 31px; border-radius: 0; }
