/* GitChain S3 — Glas-Design („Apple Glass") aus der GitChain-Desktop-App.
   Quelle der Werte: ~/0711/gitchain-core/desktop/src/design-gitchain-os/*.dc.html
   (Herleitung je Token mit Datei:Zeile in web/DESIGN.md). Nur System-Schriften — die CSP
   erlaubt keine externen Fonts, und die Entwürfe setzen ohnehin -apple-system / SF Pro. */

/* ── Tokens: hell ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --wall: radial-gradient(120% 90% at 15% 12%, #e8edf4 0%, rgba(232, 237, 244, 0) 45%),
    linear-gradient(150deg, #b8d3ea 0%, #7fb0dd 38%, #2f6fbe 68%, #9db8d4 100%);
  --sheen: linear-gradient(115deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.35) 46%, rgba(255, 255, 255, 0.06) 52%, rgba(255, 255, 255, 0) 60%);
  --wall-base: #7fb0dd;

  --glass: rgba(248, 250, 253, 0.72);
  --glass-side: rgba(248, 250, 253, 0.6);
  --glass-pop: rgba(248, 250, 253, 0.88);
  --glass-pill: rgba(255, 255, 255, 0.6);
  --glass-dock: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-strong: rgba(255, 255, 255, 0.8);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --tile: rgba(255, 255, 255, 0.7);
  --tile-border: rgba(255, 255, 255, 0.8);
  --tile-hover: rgba(255, 255, 255, 0.85);
  --control: rgba(255, 255, 255, 0.75);
  --control-border: rgba(255, 255, 255, 0.85);
  --footer: rgba(255, 255, 255, 0.5);

  --blur-panel: 30px;
  --blur-side: 26px;
  --blur-pop: 34px;
  --blur-pill: 24px;

  --shadow-panel: 0 24px 60px -18px rgba(20, 40, 70, 0.35);
  --shadow-side: 0 18px 44px -16px rgba(20, 40, 70, 0.3);
  --shadow-pop: 0 30px 80px -20px rgba(20, 40, 70, 0.5);
  --shadow-pill: 0 12px 34px -12px rgba(20, 40, 70, 0.35);

  --text: #1d1d1f;
  --text-2: rgba(0, 0, 0, 0.6);
  --sub: rgba(0, 0, 0, 0.42);
  --label: rgba(0, 0, 0, 0.45);
  --icon: rgba(0, 0, 0, 0.55);
  --divider: rgba(0, 0, 0, 0.08);
  --divider-2: rgba(0, 0, 0, 0.07);
  --sep: rgba(0, 0, 0, 0.12);

  --accent: #0a84ff;
  --accent-hover: #0060df;
  --accent-soft: rgba(232, 241, 253, 0.9);
  --accent-soft-text: #0060df;
  --select: rgba(10, 132, 255, 0.08);
  --select-strong: rgba(10, 132, 255, 0.16);
  --on-accent: #ffffff;
  --ok: #34c759;
  --mark: rgba(255, 214, 10, 0.55);
  --err: #c9372c;
  --err-soft: rgba(255, 59, 48, 0.1);

  --t-pdf: #ff3b30;
  --t-bild: #34c759;
  --t-video: #af52de;
  --t-audio: #ff2d55;
  --t-cad: #ff9f0a;
  --t-office: #0a84ff;
  --t-text: #8e8e93;
  --t-archiv: #a2845e;
  --t-sonstig: #8e8e93;
  --paper: #ffffff;
  --paper-line: #e3e3e7;
  --paper-head: #c6c6ca;
  --paper-band: #e8f1fd;

  --r-panel: 18px;
  --r-side: 16px;
  --r-tile: 14px;
  --r-bubble: 16px;
  --r-ctl: 10px;
  --r-pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, "Roboto Mono", monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
  --base: 200ms;
}

/* ── Tokens: dunkel (System oder Umschalter) — hergeleitet, s. DESIGN.md ───── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --wall: radial-gradient(120% 90% at 15% 12%, #23262c 0%, rgba(35, 38, 44, 0) 45%),
      linear-gradient(150deg, #1d2b3c 0%, #172840 38%, #0c1b36 68%, #1b2636 100%);
    --sheen: linear-gradient(115deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.015) 52%, rgba(255, 255, 255, 0) 60%);
    --wall-base: #13213a;
    --glass: rgba(30, 34, 42, 0.68);
    --glass-side: rgba(30, 34, 42, 0.58);
    --glass-pop: rgba(34, 38, 47, 0.9);
    --glass-pill: rgba(44, 48, 58, 0.62);
    --glass-dock: rgba(44, 48, 58, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-strong: rgba(255, 255, 255, 0.14);
    --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --tile: rgba(255, 255, 255, 0.06);
    --tile-border: rgba(255, 255, 255, 0.08);
    --tile-hover: rgba(255, 255, 255, 0.1);
    --control: rgba(255, 255, 255, 0.08);
    --control-border: rgba(255, 255, 255, 0.12);
    --footer: rgba(255, 255, 255, 0.04);
    --shadow-panel: 0 24px 60px -18px rgba(0, 0, 0, 0.6);
    --shadow-side: 0 18px 44px -16px rgba(0, 0, 0, 0.55);
    --shadow-pop: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
    --shadow-pill: 0 12px 34px -12px rgba(0, 0, 0, 0.6);
    --text: #f5f5f7;
    --text-2: rgba(255, 255, 255, 0.72);
    --sub: rgba(255, 255, 255, 0.5);
    --label: rgba(255, 255, 255, 0.5);
    --icon: rgba(255, 255, 255, 0.62);
    --divider: rgba(255, 255, 255, 0.08);
    --divider-2: rgba(255, 255, 255, 0.07);
    --sep: rgba(255, 255, 255, 0.14);
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-soft: rgba(10, 132, 255, 0.2);
    --accent-soft-text: #6cb4ff;
    --select: rgba(10, 132, 255, 0.16);
    --select-strong: rgba(10, 132, 255, 0.3);
    --mark: rgba(255, 214, 10, 0.35);
    --err: #ff6961;
    --err-soft: rgba(255, 69, 58, 0.16);
    --t-pdf: #ff453a;
    --t-bild: #30d158;
    --t-video: #bf5af2;
    --t-audio: #ff375f;
    --t-cad: #ff9f0a;
    --t-office: #0a84ff;
    --t-text: #98989d;
    --t-archiv: #ac8e68;
    --t-sonstig: #98989d;
    --paper: #2c2f36;
    --paper-line: #464a53;
    --paper-head: #5a5f69;
    --paper-band: #23395a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --wall: radial-gradient(120% 90% at 15% 12%, #23262c 0%, rgba(35, 38, 44, 0) 45%),
    linear-gradient(150deg, #1d2b3c 0%, #172840 38%, #0c1b36 68%, #1b2636 100%);
  --sheen: linear-gradient(115deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.015) 52%, rgba(255, 255, 255, 0) 60%);
  --wall-base: #13213a;
  --glass: rgba(30, 34, 42, 0.68);
  --glass-side: rgba(30, 34, 42, 0.58);
  --glass-pop: rgba(34, 38, 47, 0.9);
  --glass-pill: rgba(44, 48, 58, 0.62);
  --glass-dock: rgba(44, 48, 58, 0.5);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --tile: rgba(255, 255, 255, 0.06);
  --tile-border: rgba(255, 255, 255, 0.08);
  --tile-hover: rgba(255, 255, 255, 0.1);
  --control: rgba(255, 255, 255, 0.08);
  --control-border: rgba(255, 255, 255, 0.12);
  --footer: rgba(255, 255, 255, 0.04);
  --shadow-panel: 0 24px 60px -18px rgba(0, 0, 0, 0.6);
  --shadow-side: 0 18px 44px -16px rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --shadow-pill: 0 12px 34px -12px rgba(0, 0, 0, 0.6);
  --text: #f5f5f7;
  --text-2: rgba(255, 255, 255, 0.72);
  --sub: rgba(255, 255, 255, 0.5);
  --label: rgba(255, 255, 255, 0.5);
  --icon: rgba(255, 255, 255, 0.62);
  --divider: rgba(255, 255, 255, 0.08);
  --divider-2: rgba(255, 255, 255, 0.07);
  --sep: rgba(255, 255, 255, 0.14);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.2);
  --accent-soft-text: #6cb4ff;
  --select: rgba(10, 132, 255, 0.16);
  --select-strong: rgba(10, 132, 255, 0.3);
  --mark: rgba(255, 214, 10, 0.35);
  --err: #ff6961;
  --err-soft: rgba(255, 69, 58, 0.16);
  --t-pdf: #ff453a;
  --t-bild: #30d158;
  --t-video: #bf5af2;
  --t-audio: #ff375f;
  --t-cad: #ff9f0a;
  --t-office: #0a84ff;
  --t-text: #98989d;
  --t-archiv: #ac8e68;
  --t-sonstig: #98989d;
  --paper: #2c2f36;
  --paper-line: #464a53;
  --paper-head: #5a5f69;
  --paper-band: #23395a;
}

/* ── Grund ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--wall-base); overscroll-behavior-x: none; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--wall-base) var(--wall) fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--sheen); pointer-events: none; z-index: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; }
.sub, .muted { color: var(--sub); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--select-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Glas-Flächen */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur-panel)) saturate(1.4);
  backdrop-filter: blur(var(--blur-panel)) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-panel), var(--glass-inset);
}
.glass.soft {
  background: var(--glass-side);
  -webkit-backdrop-filter: blur(var(--blur-side)) saturate(1.4);
  backdrop-filter: blur(var(--blur-side)) saturate(1.4);
  border-radius: var(--r-side);
  box-shadow: var(--shadow-side), var(--glass-inset);
}
.glass.pop {
  background: var(--glass-pop);
  -webkit-backdrop-filter: blur(var(--blur-pop)) saturate(1.5);
  backdrop-filter: blur(var(--blur-pop)) saturate(1.5);
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-pop), var(--glass-inset);
}
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent); font-size: 14.5px; font-weight: 600; line-height: 1.1;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: 0 12px 34px -12px rgba(20, 40, 70, 0.45);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--control); color: var(--text); border-color: var(--control-border); box-shadow: none; font-weight: 500; }
.btn.secondary:hover { background: var(--tile-hover); color: var(--text); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: none; font-weight: 500; padding: 6px 10px; }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-soft-text); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.block { width: 100%; padding: 13px 20px; font-size: 16px; }
.ib {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--control); border: 1px solid var(--control-border); color: var(--icon);
  cursor: pointer; padding: 0; transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.ib:hover { background: var(--tile-hover); color: var(--text); }
.ib svg.i { width: 16px; height: 16px; }
.ib.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--control); border: 1px solid var(--control-border); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--accent); color: #fff; }
.seg button:not(.on):hover { color: var(--text); }
.seg.icons button { padding: 6px 9px; }
.seg.icons svg.i { width: 15px; height: 15px; }
.input {
  width: 100%; padding: 10px 14px; border-radius: var(--r-ctl); border: 1px solid var(--control-border);
  background: var(--control); color: var(--text); outline: none; font-size: 15px;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--select-strong); }
select.sel {
  appearance: none; -webkit-appearance: none; border-radius: var(--r-pill); border: 1px solid var(--control-border);
  background: var(--control); color: var(--text); padding: 7px 30px 7px 14px; font-size: 13px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--icon) 50%), linear-gradient(135deg, var(--icon) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent-soft-text); white-space: nowrap; }
.badge.dup { background: rgba(255, 159, 10, 0.16); color: #b25e00; }
:root[data-theme="dark"] .badge.dup { color: #ffb340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.dup { color: #ffb340; } }

/* ── App-Schale: Sidebar | Hauptspalte | Detail ─────────────────────────────── */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 272px minmax(0, 1fr) auto; gap: 14px; padding: calc(14px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left)); height: 100vh; height: 100dvh; }
.side { display: flex; flex-direction: column; min-height: 0; padding: 14px 10px 10px; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 12px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 6px 16px -6px rgba(10, 100, 220, 0.6); }
.brand .name { font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.brand .name span { color: var(--sub); font-weight: 600; }
.side .scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 2px; margin: 0 -2px; scrollbar-width: thin; }
.side .label { padding: 14px 10px 6px; display: block; }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; color: var(--text); font-size: 14px; min-width: 0; }
.nav:hover { background: var(--tile); }
.nav.on { background: var(--select-strong); }
.nav svg.i { color: var(--accent); width: 17px; height: 17px; }
.nav .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .n { color: var(--sub); font-size: 12px; white-space: nowrap; }
.drive { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; color: var(--text); }
.drive:hover { background: var(--tile); }
.drive.on { background: var(--select-strong); }
.drive .ic { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.drive .ic svg.i { width: 17px; height: 17px; }
.drive .t { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive .m { font-size: 11.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive .bar { grid-column: 2; height: 4px; border-radius: 4px; background: var(--divider); overflow: hidden; margin-top: 3px; }
.drive .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.drive.lock .ic { background: rgba(255, 159, 10, 0.16); color: #ff9f0a; }
.side .seg { margin: 2px 8px 0; display: flex; }
.side .seg button { flex: 1; justify-content: center; white-space: nowrap; padding: 6px 8px; font-size: 12.5px; }
.side .seg svg.i { width: 14px; height: 14px; }
.store { margin-top: 10px; padding: 12px 12px 10px; border-radius: var(--r-tile); background: var(--tile); border: 1px solid var(--tile-border); font-size: 12.5px; }
.store .row { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); }
.store .row b { color: var(--text); font-weight: 600; }
.store .bar { height: 6px; border-radius: 6px; background: var(--divider); overflow: hidden; margin: 8px 0 6px; display: flex; }
.store .bar i { display: block; height: 100%; }
.user { display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; }
.av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(145deg, #a9c3de, #6f93b8); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.user .who { flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; }
.user .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .who span { color: var(--sub); font-size: 11.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }

.mainc { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 12px; }
.toolbar { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--r-panel); }
.tb-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: var(--glass-pill); -webkit-backdrop-filter: blur(var(--blur-pill)); backdrop-filter: blur(var(--blur-pill));
  border: 1px solid var(--glass-border-strong); border-radius: var(--r-pill); padding: 9px 16px; box-shadow: var(--shadow-pill);
}
.search svg.i { color: var(--icon); width: 17px; height: 17px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--sub); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { border: 0; background: transparent; color: var(--sub); cursor: pointer; padding: 0 2px; font-size: 18px; line-height: 1; }
.search kbd { font-family: var(--font); font-size: 11.5px; color: var(--sub); border: 1px solid var(--sep); border-radius: 6px; padding: 1px 6px; }
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; overflow: hidden; font-size: 15px; }
.crumbs button { border: 0; background: transparent; padding: 4px 6px; border-radius: 8px; cursor: pointer; color: var(--text-2); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.crumbs button:hover { background: var(--tile); color: var(--text); }
.crumbs button.last { color: var(--text); font-weight: 600; }
.crumbs .sepc { color: var(--sub); flex: none; }
.crumbs .sepc svg.i { width: 13px; height: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--control-border); background: var(--control); font-size: 13px; color: var(--text-2); cursor: pointer; }
.chip:hover { color: var(--text); background: var(--tile-hover); }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-soft-text); font-weight: 600; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tb-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.selbar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-soft-text); font-size: 13.5px; font-weight: 600; }
.selbar .btn { box-shadow: none; }

.content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 18px 24px; border-radius: var(--r-panel); outline: none; }
.statusline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 2px 12px; color: var(--sub); font-size: 13px; flex-wrap: wrap; }
.selslot { margin-left: auto; }
.selslot:empty { display: none; }
.statusline h1 { font-size: 19px; font-weight: 600; margin: 0; color: var(--text); letter-spacing: -0.2px; }
.section { margin: 6px 2px 10px; }

/* Raster */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.grid.folders { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--r-tile);
  background: var(--tile); border: 1px solid var(--tile-border); cursor: default; user-select: none; -webkit-user-select: none;
  transition: background var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease); min-width: 0; outline: none;
}
.tile:hover { background: var(--tile-hover); }
.tile.sel { background: var(--select-strong); border-color: rgba(10, 132, 255, 0.45); }
.tile.focus { box-shadow: 0 0 0 2px var(--accent); }
.tile .th { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--control); }
.tile .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity var(--base) var(--ease); }
.tile .th img.loaded { opacity: 1; }
.tile .th.has { background: rgba(0, 0, 0, 0.04); }
.tile .nm { font-size: 13px; font-weight: 500; line-height: 1.3; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; min-height: 2.6em; }
.tile .mt { font-size: 11.5px; color: var(--sub); text-align: center; display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tile .more { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--control-border); background: var(--glass-pop); color: var(--icon); display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; z-index: 2; }
.tile .more svg.i { width: 14px; height: 14px; }
.tile:hover .more, .tile.focus .more { display: flex; }
@media (hover: none) { .tile .more { display: flex; } }
.tile.folder { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.tile.folder .fic { width: 38px; height: 38px; flex: none; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.tile.folder .fic svg.i { width: 30px; height: 30px; stroke-width: 1.6; fill: var(--accent-soft); }
.tile.folder .nm { text-align: left; min-height: 0; -webkit-line-clamp: 1; font-weight: 600; font-size: 14px; }
.tile.folder .mt { justify-content: flex-start; text-align: left; }
.tile.folder .tx { min-width: 0; flex: 1; }
.tile.folder .more { top: 50%; transform: translateY(-50%); right: 10px; }

/* Typ-Icon (Papier mit Kennfarbe) */
.ticon { position: relative; width: 52px; height: 64px; flex: none; }
.ticon .paper { position: absolute; inset: 0; border-radius: 6px; background: var(--paper); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); overflow: hidden; }
.ticon .paper::before { content: ""; position: absolute; left: 8px; top: 9px; width: 24px; height: 4px; border-radius: 2px; background: var(--paper-head); }
.ticon .paper::after { content: ""; position: absolute; left: 8px; right: 8px; top: 19px; height: 3px; border-radius: 2px; background: var(--paper-line); box-shadow: 0 6px 0 var(--paper-line), 0 12px 0 var(--paper-line); }
.ticon .tag { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); padding: 1px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; color: #fff; background: var(--tc, var(--t-sonstig)); white-space: nowrap; }
.ticon .glyph { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); color: var(--tc, var(--t-sonstig)); }
.ticon .glyph svg.i { width: 20px; height: 20px; stroke-width: 2; }
.ticon.sm { width: 26px; height: 32px; }
.ticon.sm .paper { border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14); }
.ticon.sm .paper::before { left: 4px; top: 5px; width: 12px; height: 2px; }
.ticon.sm .paper::after { left: 4px; right: 4px; top: 10px; height: 2px; box-shadow: 0 4px 0 var(--paper-line); }
.ticon.sm .tag { font-size: 7px; padding: 0 3px; bottom: 3px; border-radius: 3px; }
.ticon.sm .glyph svg.i { width: 11px; height: 11px; }
.ticon.xl { width: 104px; height: 128px; }
.ticon.xl .tag { font-size: 14px; padding: 2px 10px; bottom: 14px; }
.ticon.xl .glyph svg.i { width: 36px; height: 36px; }

/* Liste */
.list { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.5px; margin-bottom: 18px; }
.list th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); padding: 6px 10px 8px; border-bottom: 1px solid var(--divider); cursor: pointer; user-select: none; white-space: nowrap; }
.list th.r, .list td.r { text-align: right; }
.list td { padding: 7px 10px; border-bottom: 1px solid var(--divider-2); vertical-align: middle; overflow: hidden; }
.list tbody tr { cursor: default; user-select: none; -webkit-user-select: none; }
.list tbody tr:hover td { background: var(--tile); }
.list tbody tr.sel td { background: var(--select-strong); }
.list tbody tr.focus td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.list tbody tr td:first-child { border-radius: 10px 0 0 10px; }
.list tbody tr td:last-child { border-radius: 0 10px 10px 0; }
.list .cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list .lth { width: 34px; height: 34px; flex: none; border-radius: 7px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.list .lth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.list .lth img.loaded { opacity: 1; }
.list .lth .fic { color: var(--accent); }
.list .lth .fic svg.i { width: 24px; height: 24px; fill: var(--accent-soft); stroke-width: 1.6; }
.fname { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.fpath { color: var(--sub); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpath button, .crumbish { border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer; font-size: inherit; }
.fpath button:hover { color: var(--accent); text-decoration: underline; }
.list .tx { min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 8px 0 4px; color: var(--sub); font-size: 13px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 56px 20px; }
.empty .t { font-size: 19px; font-weight: 600; color: var(--text); }
.empty .d { font-size: 14.5px; color: var(--sub); max-width: 440px; }
.empty .fic svg.i { width: 46px; height: 46px; color: var(--accent); fill: var(--accent-soft); stroke-width: 1.4; }
.loading { color: var(--sub); padding: 40px; text-align: center; }

/* Detail-Panel */
.detail { width: 340px; display: flex; flex-direction: column; min-height: 0; padding: 16px 18px; overflow-y: auto; overflow-x: hidden; }
.detail.closed { display: none; }
.detail > * { flex-shrink: 0; }
.detail .dh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.detail .dh h2 { flex: 1; font-size: 16px; font-weight: 600; margin: 0; line-height: 1.3; word-break: break-word; }
.detail .pv { border-radius: var(--r-tile); background: var(--tile); border: 1px solid var(--tile-border); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; margin-bottom: 12px; cursor: zoom-in; }
.detail .pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail .pv .big-ic { color: var(--accent); }
.detail .pv .big-ic svg.i { width: 64px; height: 64px; stroke-width: 1.2; fill: var(--accent-soft); }
.detail dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 10px; margin: 0 0 12px; font-size: 13px; }
.detail dt { color: var(--sub); }
.detail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.detail .actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.detail .paths { list-style: none; margin: 6px 0 14px; padding: 0; }
.detail .paths li { display: flex; gap: 6px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--divider-2); }
.detail .paths li:last-child { border-bottom: 0; }
.detail .paths .pp { flex: 1; min-width: 0; font-size: 12px; font-family: var(--font-mono); overflow-wrap: anywhere; color: var(--text-2); }
.detail .paths .ib { width: 26px; height: 26px; }
.detail .paths .ib svg.i { width: 13px; height: 13px; }
.hint { font-size: 12.5px; line-height: 1.5; color: var(--text-2); background: var(--tile); border: 1px solid var(--tile-border); border-radius: 12px; padding: 10px 12px; }
.hint .mono { display: block; margin-top: 4px; color: var(--text); }
.copyrow { display: flex; gap: 6px; align-items: center; }
.copyrow .mono { flex: 1; min-width: 0; }
.multi { text-align: center; padding: 30px 6px; }
.multi .big { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; }

/* Quick Look */
.ql-back { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 35, 0.32); display: flex; align-items: center; justify-content: center; padding: 28px; animation: fade var(--base) var(--ease); }
.ql { overscroll-behavior: contain; width: min(1100px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; animation: pop var(--base) var(--ease); }
.ql .qh { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--divider-2); }
.ql .qh .tx { flex: 1; min-width: 0; }
.ql .qh .t { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql .qb { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.03); }
.ql .qb iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ql .qb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ql .qb video { max-width: 100%; max-height: 100%; background: #000; display: block; }
.ql .qb audio { width: min(520px, 90%); }
.ql .nav-l, .ql .nav-r { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.ql .nav-l { left: 12px; }
.ql .nav-r { right: 12px; }
.ql .qf { display: flex; gap: 12px; align-items: center; padding: 9px 18px; border-top: 1px solid var(--divider-2); background: var(--footer); font-size: 12.5px; color: var(--sub); }
.ql .qf kbd { font-family: var(--font); border: 1px solid var(--sep); border-radius: 5px; padding: 0 5px; font-size: 11px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ql-back, .ql { animation: none; } * { transition: none !important; } }

/* Kontextmenü + Toast */
.menu { position: fixed; z-index: 80; min-width: 210px; padding: 6px; border-radius: 14px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 14px; text-align: left; color: var(--text); }
.menu button:hover, .menu button:focus-visible { background: var(--accent); color: #fff; outline: none; }
.menu button svg.i { width: 15px; height: 15px; }
.menu hr { border: 0; border-top: 1px solid var(--divider); margin: 5px 6px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; padding: 9px 16px; border-radius: var(--r-pill); font-size: 14px; display: flex; gap: 8px; align-items: center; background: var(--glass-dock); -webkit-backdrop-filter: blur(var(--blur-pill)); backdrop-filter: blur(var(--blur-pill)); border: 1px solid var(--glass-border-strong); box-shadow: var(--shadow-pill); }

.err { color: var(--err); background: var(--err-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ok { color: #1f7a3a; background: rgba(52, 199, 89, 0.14); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.gap-top { margin-top: 14px; }
.scrim { display: none; }
.only-sm { display: none !important; }

/* ── schmal: Drawer, Detail als Blatt ───────────────────────────────────────── */
@media (max-width: 1240px) {
  .app { grid-template-columns: 252px minmax(0, 1fr); }
  .detail { position: fixed; right: 14px; top: 14px; bottom: 14px; z-index: 40; width: min(360px, calc(100vw - 28px)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); gap: 10px; height: auto; min-height: 100dvh; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 50; border-radius: 0 var(--r-side) var(--r-side) 0; transform: translateX(-105%); transition: transform var(--base) var(--ease); padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); padding-left: calc(10px + env(safe-area-inset-left)); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(10, 20, 35, 0.3); }
  .only-sm { display: inline-flex !important; }
  .hide-sm { display: none !important; }
  .mainc { min-height: 0; }
  .content { overflow: visible; padding: 14px 12px 20px; }
  .toolbar { padding: 10px; position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 30; }
  .tb-row.second { flex-wrap: wrap; gap: 6px; }
  .crumbs { flex-basis: 100%; font-size: 14px; }
  .tb-row.second .tb-end { margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; row-gap: 8px; min-width: 0; }
  .selslot { order: 3; flex-basis: 100%; margin-left: 0; }
  .selbar { justify-content: space-between; }
  select.sel { max-width: 60vw; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .grid.folders { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 7px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .detail { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 82dvh; border-radius: var(--r-panel) var(--r-panel) 0 0; z-index: 70; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ql-back { padding: 0; }
  .ql { height: 100vh; height: 100dvh; width: 100%; border-radius: 0; border: 0; }
  .ql .qh { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(10px + env(safe-area-inset-right)); }
  .ql .qb { padding-bottom: env(safe-area-inset-bottom); }
  .ql .nav-l, .ql .nav-r { display: none; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .list col.c-art, .list col.c-paths, .list th.c-art, .list td.c-art, .list th.c-paths, .list td.c-paths { display: none; }
  .selslot { margin-left: auto; }
.selslot:empty { display: none; }
.statusline h1 { font-size: 17px; }
}

/* ── Volltext: Inhalt durchsuchen, Fundstellen mit Beleg ───────────────────── */
.qmode { flex: none; }
.qmode button { padding: 6px 11px; }
.qmode svg.i { width: 15px; height: 15px; }
.kennung { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; padding: 9px 14px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent-soft-text); font-size: 14px; }
.kennung b { font-weight: 700; }
.vt-frage { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; padding: 8px 10px 8px 14px; border-radius: var(--r-ctl); background: rgba(10, 132, 255, 0.08); color: var(--text); font-size: 13.5px; }
.vt-frage .tx { flex: 1; min-width: 0; color: var(--sub); }
.vt-frage svg { flex: none; color: #0a84ff; }
.vt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.vt-card { position: relative; padding: 12px 14px; border-radius: var(--r-tile); background: var(--tile); border: 1px solid var(--tile-border); cursor: default; }
.vt-card:hover { background: var(--tile-hover); }
.vt-card.sel { background: var(--select-strong); border-color: rgba(10, 132, 255, 0.45); }
.vt-card.focus { box-shadow: 0 0 0 2px var(--accent); }
.vt-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vt-head .lth { width: 38px; height: 38px; flex: none; border-radius: 8px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.vt-head .lth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vt-head .lth img.loaded { opacity: 1; }
.vt-head .tx { flex: 1; min-width: 0; }
.vt-head .fname { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-head .fpath { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--sub); min-width: 0; overflow: hidden; white-space: nowrap; }
.vt-head .fpath button { border: 0; background: transparent; color: var(--sub); padding: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.vt-head .fpath button:hover { color: var(--accent); }
.vt-head .fpath .cat { flex: none; padding: 0 7px; border-radius: var(--r-pill); background: var(--control); border: 1px solid var(--control-border); }
.vt-head .more { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--control-border); background: var(--glass-pop); color: var(--icon); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.vt-head .more svg.i { width: 14px; height: 14px; }
.meth { flex: none; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--r-pill); white-space: nowrap; background: rgba(52, 199, 89, 0.16); color: #1f7a38; }
.meth.ocr { background: rgba(255, 159, 10, 0.16); color: #a35200; }
.meth.ocr.low { background: rgba(255, 69, 58, 0.14); color: var(--err); }
:root[data-theme="dark"] .meth { color: #63e087; }
:root[data-theme="dark"] .meth.ocr { color: #ffb340; }
.meth.sinn { background: rgba(10, 132, 255, 0.14); color: #0a5fc2; }   /* über die Bedeutung gefunden (Hybrid-Suche) */
:root[data-theme="dark"] .meth.sinn { color: #64aaff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .meth { color: #63e087; } :root:not([data-theme="light"]) .meth.ocr { color: #ffb340; } }
.vt-funds { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.vt-fund { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-ctl); background: transparent; cursor: pointer; color: var(--text); }
.vt-fund:hover, .vt-fund:focus-visible { background: var(--control); }
.vt-fund .wo { flex: none; width: 112px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; font-size: 12.5px; }
.vt-fund .wo b { font-weight: 600; color: var(--accent-soft-text); }
.vt-fund .snip { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.vt-fund.id .wo b::after { content: " · Kennung"; color: var(--sub); font-weight: 500; }
.vt-more { font-size: 12.5px; color: var(--sub); padding: 2px 10px 0; }
.ql .qb.fund { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.fund-top { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--divider-2); background: var(--glass-pop); }
.fund-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fund-info .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.fund-info .snip { font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-height: 4.6em; overflow: auto; overflow-wrap: anywhere; }
.fund-nav { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fund-nav .chip { padding: 2px 9px; font-size: 12px; }
.fund-tabs { flex: none; }
.fund-stage { flex: 1; min-height: 0; display: flex; position: relative; }
.fund-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.fund-stage > .empty { flex: 1; justify-content: center; }
.beleg-wrap { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; justify-content: center; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.beleg-wrap .loading { position: absolute; top: 40%; left: 0; right: 0; text-align: center; }
.beleg { position: relative; width: min(100%, 900px); flex: none; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18); border-radius: 4px; line-height: 0; }
.ql .qb .beleg img { width: 100%; max-width: none; max-height: none; height: auto; display: block; border-radius: 4px; }
.kasten { position: absolute; border: 2px solid #ff9f0a; background: rgba(255, 214, 10, 0.22); border-radius: 3px; pointer-events: none; }
.kasten.erst { border-color: #ff453a; background: rgba(255, 69, 58, 0.12); animation: kasten 1.4s var(--ease) 2; }
@keyframes kasten { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 69, 58, 0.28); } }
@media (max-width: 900px) {
  .tb-row.top { flex-wrap: wrap; row-gap: 8px; }
  .qmode { order: 3; width: 100%; display: flex; }
  .qmode.hidden { display: none !important; }
  .qmode button { flex: 1; justify-content: center; }
  .vt-card { padding: 10px; }
  .vt-fund { flex-direction: column; gap: 4px; padding: 8px 6px; }
  .vt-fund .wo { width: auto; flex-direction: row; align-items: center; gap: 8px; }
  .fund-top { flex-direction: column; padding: 8px 12px; gap: 8px; }
  .fund-tabs { align-self: stretch; display: flex; }
  .fund-tabs button { flex: 1; justify-content: center; }
  .beleg-wrap { padding: 8px; }
}

/* ── Anmelden / Einladung ───────────────────────────────────────────────────── */
.login-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
.login { width: 100%; max-width: 440px; padding: 30px 30px 24px; }
.login .brand { padding: 0 0 22px; }
.login h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 6px; }
.login p { color: var(--sub); margin: 0 0 20px; font-size: 15px; }
.login form { display: grid; gap: 14px; }
.login label.field span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.login .fine { font-size: 12.5px; color: var(--sub); margin-top: 14px; }
.login details.pat { margin-top: 20px; border-top: 1px solid var(--divider); padding-top: 14px; }
.login details.pat summary { cursor: pointer; font-size: 13.5px; color: var(--text-2); list-style: none; }
.login details.pat summary::-webkit-details-marker { display: none; }
.login details.pat summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform var(--fast); }
.login details.pat[open] summary::before { transform: rotate(90deg); }
.login details.pat form { margin-top: 14px; }
.login .themebtn, .themebtn { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); z-index: 2; }
.btn .key { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid currentColor; border-radius: 50%; position: relative; margin-right: 8px; }
.btn .key::after { content: ""; position: absolute; left: 12px; top: 5px; width: 9px; height: 2px; background: currentColor; }

/* ── iPhone: Tab-Leiste, Pull-to-refresh, Blätter, große Touch-Ziele ─────────── */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  border-radius: 22px 22px 0 0; border-bottom: 0;
  padding: 6px calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  justify-content: space-around;
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 6px 4px; border: 0; background: transparent; color: var(--sub); font-size: 11px; font-weight: 600; cursor: pointer; border-radius: 12px; }
.tabbar button svg.i { width: 24px; height: 24px; }
.tabbar button.on { color: var(--accent); }
.ptr { position: fixed; left: 50%; top: calc(6px + env(safe-area-inset-top)); z-index: 35; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--glass-pop); box-shadow: var(--shadow-pill); opacity: 0; transform: translateY(-50px); pointer-events: none; }
.ptr svg.i { width: 20px; height: 20px; }
.ptr.go svg.i { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet-back { position: fixed; inset: 0; z-index: 75; background: rgba(10, 20, 35, 0.3); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--base) var(--ease); }
.sheet { width: min(520px, 100%); padding: 18px calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left)); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; gap: 12px; animation: up var(--base) var(--ease); }
.sheet h3 { margin: 0; font-size: 17px; }
.sheet .row { display: flex; gap: 10px; align-items: center; }
.sheet .btn { width: 100%; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (pointer: coarse) {
  .ib { width: 44px; height: 44px; }
  .ib svg.i { width: 19px; height: 19px; }
  .nav { padding: 11px 10px; }
  .drive { padding: 11px 10px; }
  .chip { padding: 9px 14px; font-size: 14px; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 40px; }
  .seg button { min-height: 36px; }
  .menu button { padding: 12px 12px; font-size: 15px; }
  .list td { padding-top: 10px; padding-bottom: 10px; }
  select.sel { padding-top: 10px; padding-bottom: 10px; }
  .detail .paths .ib { width: 40px; height: 40px; }
}
@media (max-width: 900px) { .tabbar { display: flex; } }
#selbar:empty { display: none; }

/* ── Eingang: Hochladen, Upload-Panel, Quittung, Einliefer-Seite ─────────── */
.upbtn { flex: none; }
.upbtn svg.i { width: 16px; height: 16px; }
.ib.sm { width: 28px; height: 28px; }
.ib.sm svg.i { width: 14px; height: 14px; }
svg.i.rot { transform: rotate(180deg); }
.up-panel {
  position: fixed; right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70;
  width: min(420px, calc(100vw - 24px)); max-height: min(62vh, 640px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; animation: up var(--base) var(--ease);
}
.up-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; }
.up-head b { font-size: 15px; }
.up-head .sub { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.up-ic { color: var(--accent); display: inline-flex; }
.up-bar { height: 3px; background: var(--divider); margin: 0 14px; border-radius: 3px; overflow: hidden; }
.up-bar i, .up-fbar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.25s var(--ease); }
.up-body { overflow: auto; padding: 6px 8px 10px; }
.up-send { padding: 8px 6px 6px; border-top: 1px solid var(--divider); }
.up-send:first-child { border-top: 0; }
.up-send-h { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.up-ziel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-st { margin-left: auto; font-size: 12px; white-space: nowrap; color: var(--sub); }
.up-st.st-fertig { color: var(--ok); font-weight: 600; }
.up-st.st-fehler, .up-st.st-unvollständig { color: var(--err); }
.up-sum { font-size: 12.5px; color: var(--text-2); margin: 4px 0 2px; }
.up-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.up-file { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 10px; font-size: 13.5px; }
.up-file:hover { background: var(--select); }
.up-file > svg.i { width: 16px; height: 16px; color: var(--icon); }
.up-fmain { flex: 1; min-width: 0; }
.up-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-fmeta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.up-fbar { flex: 1; height: 4px; border-radius: 4px; background: var(--divider); overflow: hidden; display: block; }
.up-flabel { font-size: 12px; color: var(--text-2); white-space: nowrap; min-width: 64px; text-align: right; }
.up-file.st-neu .up-flabel, .up-file.st-fertig .up-flabel { color: var(--ok); }
.up-file.st-vorhanden .up-flabel { color: var(--accent); }
.up-file.st-fehler .up-flabel, .up-file.st-abgewiesen .up-flabel { color: var(--err); }
.up-file.st-neu .up-fbar i, .up-file.st-fertig .up-fbar i { background: var(--ok); }
.up-file.st-abgewiesen .up-fbar i, .up-file.st-fehler .up-fbar i { background: var(--err); }
.up-err { font-size: 12px; color: var(--err); }
.up-act { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.up-drop { position: fixed; inset: 0; z-index: 85; display: flex; align-items: center; justify-content: center; background: rgba(10, 132, 255, 0.12); outline: 3px dashed var(--accent); outline-offset: -14px; pointer-events: none; animation: fade var(--base) var(--ease); }
.up-drop-in { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 38px; border-radius: 22px; }
.up-drop-in svg.i { width: 40px; height: 40px; color: var(--accent); }
.up-drop-in b { font-size: 18px; }
.up-links { display: grid; gap: 6px; }
.up-link { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 10px; border-radius: 12px; background: var(--control); font-size: 13.5px; }
.up-link .btn { width: auto; }
.up-meine { display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.up-meine-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); font-size: 14px; }
.up-meine-row:hover { background: var(--select); color: var(--text); }
.up-meine-row > div { flex: 1; min-width: 0; }
.sheet label.field, .page-card label.field { display: block; flex: 1; }
.sheet label.field span, .page-card label.field span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.sheet .row.check, .row.check { gap: 8px; font-size: 14px; }
.sheet .hint { font-size: 13px; color: var(--text-2); }
.gap-top { margin-top: 12px; }

/* Einzelseiten (Quittung, Einliefern): Glas-Karte wie Login, breiter */
.page-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start; padding: calc(28px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
.page-card { width: 100%; max-width: 1040px; padding: 28px 30px 24px; }
.page-card .brand { padding: 0 0 18px; }
.page-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 4px; }
.page-card > p.sub { margin: 0 0 18px; }
.page-card .fine { font-size: 12.5px; color: var(--sub); margin-top: 18px; }
.page-card section { display: grid; gap: 14px; }
.page-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ein-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 18px; border-radius: 18px; border: 2px dashed var(--control-border); background: var(--control); cursor: pointer; text-align: center; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.ein-drop:hover, .ein-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.ein-drop svg.i { width: 38px; height: 38px; color: var(--accent); }
.ein-drop b { font-size: 17px; }
.ein-list:empty { display: none; }
.quittung { display: grid; gap: 12px; }
.q-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; font-size: 14px; }
.q-meta dt { color: var(--sub); }
.q-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.q-sum { margin: 0; font-weight: 600; }
.q-filter { justify-self: start; margin: 0 0 10px; font: inherit; font-size: 13.5px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--control-border); background: var(--control); color: var(--text); }
.q-scroll { overflow-x: auto; }
.q-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.q-tab th { text-align: left; font-size: 12px; font-weight: 600; color: var(--label); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 8px; border-bottom: 1px solid var(--sep); }
.q-tab td { padding: 8px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.q-tab .num { text-align: right; white-space: nowrap; }
.q-tab .q-name { min-width: 180px; overflow-wrap: anywhere; }
.q-tab .q-sha { font-size: 11px; max-width: 220px; }
.q-tab tr.q-sub td { font-size: 12.5px; background: var(--accent-soft, rgba(127,127,127,0.06)); }
.q-tab tr.q-baum-kopf td { padding-top: 4px; padding-bottom: 4px; }
.q-tab .q-lesung .sub { white-space: nowrap; }
.q-tab .q-lesung .sub.mono { white-space: normal; overflow-wrap: anywhere; font-size: 11px; max-width: 220px; }
.q-tab td.q-t1 { padding-left: 1.4rem; }
.q-tab td.q-t2 { padding-left: 2.8rem; }
.q-tab td.q-t3 { padding-left: 4.2rem; }
.q-tab td.q-t4 { padding-left: 5.6rem; }
.qbadge { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--accent-soft); color: var(--accent-soft-text); }
.qbadge.neu, .qbadge.angenommen { background: rgba(52, 199, 89, 0.16); color: #1f8a3d; }
.qbadge.abgewiesen { background: var(--err-soft); color: var(--err); }
:root[data-theme="dark"] .qbadge.neu, :root[data-theme="dark"] .qbadge.angenommen { color: #63e087; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qbadge.neu, :root:not([data-theme="light"]) .qbadge.angenommen { color: #63e087; } }
body.has-up .toast { bottom: auto; top: calc(16px + env(safe-area-inset-top)); }
@media (max-width: 760px) {
  .up-panel { left: 8px; right: 8px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); max-height: 55vh; }
  .page-card { padding: 22px 16px 18px; }
  .q-meta { grid-template-columns: 1fr; gap: 0; }
  .q-meta dt { margin-top: 6px; }
  .q-tab .q-sha { display: none; }
}
@media print {
  html, body { background: #fff !important; color: #000; }
  body::before, .noprint, .themebtn { display: none !important; }
  .page-wrap { padding: 0; display: block; }
  .glass, .page-card { background: #fff !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .q-tab .q-sha { display: table-cell !important; font-size: 9px; }
  .q-tab td, .q-tab th { border-color: #ccc; }
  .qbadge { background: none !important; padding: 0; color: #000 !important; }
}


/* ═══ Gemeinsames System (Desktop + S3), eingefaltet 2026-10-15: tokens.css ═══ */
/* GitChain — gemeinsame Design-Tokens (Desktop + S3)
   Grundlage: Desktop-Container-Ansicht (Okt 2026), Farben am Screenshot gemessen.
   Regel: Inhalt auf festen Flächen, Glas nur für Schwebendes (Menü, Quick Look, Toast, Sheet).
   Hell = Vorgabe; Dunkel = Schwarz, folgt dem System oder <html data-theme="dark|light">. */

:root {
  color-scheme: light;

  /* Flächen */
  --gc-canvas: #f3f4f6;        /* Fenstergrund */
  --gc-surface: #ffffff;       /* Panels, Karten */
  --gc-surface-2: #f9fafb;     /* Mulden: Vorschau, Hinweis */
  --gc-surface-3: #f3f4f6;     /* Einsätze: Segment-Spur, Füllstand, Speicher */
  --gc-raised: #ffffff;        /* Erhabenes auf Einsätzen (aktives Segment) */
  --gc-hover: #f4f5f7;
  --gc-selected: #eeeff1;      /* aktiver Navigationseintrag — neutral, nicht blau */

  /* Linien */
  --gc-line: #e5e7eb;
  --gc-line-soft: #f0f1f3;
  --gc-line-strong: #d1d5db;

  /* Text */
  --gc-text: #111827;
  --gc-text-2: #4b5563;
  --gc-text-3: #6b7280;
  --gc-text-4: #9ca3af;        /* nur Platzhalter/deaktiviert */
  --gc-icon: #6b7280;

  /* Akzent = Aktion + Auswahl */
  --gc-accent: #2563eb;
  --gc-accent-hover: #1d4ed8;
  --gc-accent-soft: #eff6ff;
  --gc-accent-line: #bfdbfe;
  --gc-accent-text: #1d4ed8;
  --gc-on-accent: #ffffff;
  --gc-ring: rgba(37, 99, 235, 0.28);
  --gc-select: rgba(37, 99, 235, 0.06);
  --gc-select-strong: rgba(37, 99, 235, 0.12);
  --gc-mark: rgba(250, 204, 21, 0.45);

  /* Zustände */
  --gc-ok: #16a34a;   --gc-ok-soft: #dcfce7;   --gc-ok-text: #166534;
  --gc-warn: #d97706; --gc-warn-soft: #fef3c7; --gc-warn-text: #92400e;
  --gc-err: #dc2626;  --gc-err-soft: #fee2e2;  --gc-err-text: #991b1b;
  --gc-violet: #7c3aed;                         /* Begriffe im Wissensnetz */
  --gc-badge: #475569; --gc-on-badge: #ffffff;  /* Typ-Badge „MD", „JPG" */

  /* Dateiarten — nur als Punkt oder Badge */
  --gc-t-pdf: #ef4444;
  --gc-t-bild: #22c55e;
  --gc-t-video: #a855f7;
  --gc-t-audio: #ec4899;
  --gc-t-cad: #f59e0b;
  --gc-t-office: #3b82f6;
  --gc-t-text: #9ca3af;
  --gc-t-archiv: #a8835a;
  --gc-t-sonstig: #9ca3af;

  /* Form */
  --gc-r-xs: 6px;      /* Badge */
  --gc-r-sm: 8px;      /* Listeneintrag, Mulde */
  --gc-r-ctl: 10px;    /* Eingabefeld */
  --gc-r-card: 12px;   /* Karte, Kachel */
  --gc-r-panel: 16px;  /* Panel */
  --gc-r-pill: 999px;  /* Knopf, Chip, Segment */

  /* Tiefe — Linien statt Schatten; Schatten nur für Schwebendes */
  --gc-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --gc-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --gc-shadow-pop: 0 16px 40px -12px rgba(16, 24, 40, 0.22), 0 4px 12px -4px rgba(16, 24, 40, 0.08);
  --gc-glass: rgba(255, 255, 255, 0.8);
  --gc-glass-line: rgba(17, 24, 39, 0.08);
  --gc-glass-blur: 24px;

  /* Schrift */
  --gc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --gc-mono: "SF Mono", ui-monospace, Menlo, Monaco, "Roboto Mono", monospace;
  --gc-fs-meta: 12px;
  --gc-fs-label: 12.5px;
  --gc-fs-ui: 14px;
  --gc-fs-body: 15px;
  --gc-fs-title: 20px;
  --gc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dunkel = Schwarz. Grund #000, Panels #0a0a0a (liest sich schwarz, trennt aber über
   Haarlinien sauber). Ebenen entstehen durch Linien, nicht durch Grautöne oder Schatten.
   Akzent als Fläche #2563eb (weiße Schrift AA), als Text immer --gc-accent-text. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --gc-canvas: #000000;
    --gc-surface: #0a0a0a;
    --gc-surface-2: #111112;
    --gc-surface-3: #161617;
    --gc-raised: #2c2c2e;
    --gc-hover: #151517;
    --gc-selected: #1f1f22;
    --gc-line: #242427;
    --gc-line-soft: #18181a;
    --gc-line-strong: #343438;
    --gc-text: #f5f5f7;
    --gc-text-2: #c7c7cc;
    --gc-text-3: #8e8e93;
    --gc-text-4: #636366;
    --gc-icon: #98989d;
    --gc-accent: #2563eb;
    --gc-accent-hover: #1d4ed8;
    --gc-accent-soft: rgba(59, 130, 246, 0.14);
    --gc-accent-line: rgba(59, 130, 246, 0.36);
    --gc-accent-text: #93c5fd;
    --gc-ring: rgba(59, 130, 246, 0.42);
    --gc-select: rgba(59, 130, 246, 0.1);
    --gc-select-strong: rgba(59, 130, 246, 0.2);
    --gc-mark: rgba(250, 204, 21, 0.3);
    --gc-ok: #22c55e;   --gc-ok-soft: rgba(34, 197, 94, 0.14);   --gc-ok-text: #86efac;
    --gc-warn: #f59e0b; --gc-warn-soft: rgba(245, 158, 11, 0.14); --gc-warn-text: #fcd34d;
    --gc-err: #f87171;  --gc-err-soft: rgba(248, 113, 113, 0.14); --gc-err-text: #fca5a5;
    --gc-violet: #a78bfa;
    --gc-badge: #3a3a3d; --gc-on-badge: #f5f5f7;
    --gc-t-pdf: #f87171;
    --gc-t-bild: #4ade80;
    --gc-t-video: #c084fc;
    --gc-t-audio: #f472b6;
    --gc-t-cad: #fbbf24;
    --gc-t-office: #60a5fa;
    --gc-t-text: #8e8e93;
    --gc-t-archiv: #c4a07a;
    --gc-t-sonstig: #8e8e93;
    --gc-shadow-xs: 0 0 #0000;
    --gc-shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --gc-shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --gc-glass: rgba(14, 14, 15, 0.78);
    --gc-glass-line: rgba(255, 255, 255, 0.09);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --gc-canvas: #000000;
  --gc-surface: #0a0a0a;
  --gc-surface-2: #111112;
  --gc-surface-3: #161617;
  --gc-raised: #2c2c2e;
  --gc-hover: #151517;
  --gc-selected: #1f1f22;
  --gc-line: #242427;
  --gc-line-soft: #18181a;
  --gc-line-strong: #343438;
  --gc-text: #f5f5f7;
  --gc-text-2: #c7c7cc;
  --gc-text-3: #8e8e93;
  --gc-text-4: #636366;
  --gc-icon: #98989d;
  --gc-accent: #2563eb;
  --gc-accent-hover: #1d4ed8;
  --gc-accent-soft: rgba(59, 130, 246, 0.14);
  --gc-accent-line: rgba(59, 130, 246, 0.36);
  --gc-accent-text: #93c5fd;
  --gc-ring: rgba(59, 130, 246, 0.42);
  --gc-select: rgba(59, 130, 246, 0.1);
  --gc-select-strong: rgba(59, 130, 246, 0.2);
  --gc-mark: rgba(250, 204, 21, 0.3);
  --gc-ok: #22c55e;   --gc-ok-soft: rgba(34, 197, 94, 0.14);   --gc-ok-text: #86efac;
  --gc-warn: #f59e0b; --gc-warn-soft: rgba(245, 158, 11, 0.14); --gc-warn-text: #fcd34d;
  --gc-err: #f87171;  --gc-err-soft: rgba(248, 113, 113, 0.14); --gc-err-text: #fca5a5;
  --gc-violet: #a78bfa;
  --gc-badge: #3a3a3d; --gc-on-badge: #f5f5f7;
  --gc-t-pdf: #f87171;
  --gc-t-bild: #4ade80;
  --gc-t-video: #c084fc;
  --gc-t-audio: #f472b6;
  --gc-t-cad: #fbbf24;
  --gc-t-office: #60a5fa;
  --gc-t-text: #8e8e93;
  --gc-t-archiv: #c4a07a;
  --gc-t-sonstig: #8e8e93;
  --gc-shadow-xs: 0 0 #0000;
  --gc-shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --gc-shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --gc-glass: rgba(14, 14, 15, 0.78);
  --gc-glass-line: rgba(255, 255, 255, 0.09);
}


/* ═══ s3-align.css ═══ */
/* GitChain S3 — Ausrichtung auf das gemeinsame System (Desktop + S3)
   Lädt NACH app.css und tokens.css (index.html UND login.html):
     <link rel="stylesheet" href="/static/app.css">
     <link rel="stylesheet" href="/static/tokens.css">
     <link rel="stylesheet" href="/static/s3-align.css">
   sw.js: beide Dateien in SHELL aufnehmen und VERSION neu setzen, sonst liefert der
   Service Worker die alte Hülle aus dem Cache.
   Später einfalten: Token-Block in app.css durch tokens.css + Abschnitt 1 ersetzen, Rest
   übernehmen, die alten Dunkel-Overrides für .badge.dup / .meth / .qbadge löschen. */

/* ── 1 · Alte Variablen → gemeinsame Tokens (gilt hell und dunkel) ───────────── */
:root,
:root:not([data-theme="light"]),
:root[data-theme="dark"] {
  --wall: none;
  --sheen: none;
  --wall-base: var(--gc-canvas);
  --glass: var(--gc-surface);
  --glass-side: var(--gc-surface);
  --glass-pop: var(--gc-glass);
  --glass-pill: var(--gc-surface);
  --glass-dock: var(--gc-glass);
  --glass-border: var(--gc-line);
  --glass-border-strong: var(--gc-line);
  --glass-inset: 0 0 #0000;
  --tile: var(--gc-surface);
  --tile-border: var(--gc-line);
  --tile-hover: var(--gc-surface-2);
  --control: var(--gc-surface);
  --control-border: var(--gc-line);
  --footer: var(--gc-surface-2);
  --blur-panel: 0px;
  --blur-side: 0px;
  --blur-pop: var(--gc-glass-blur);
  --blur-pill: var(--gc-glass-blur);
  --shadow-panel: 0 0 #0000;
  --shadow-side: 0 0 #0000;
  --shadow-pop: var(--gc-shadow-pop);
  --shadow-pill: var(--gc-shadow-xs);
  --text: var(--gc-text);
  --text-2: var(--gc-text-2);
  --sub: var(--gc-text-3);
  --label: var(--gc-text-3);
  --icon: var(--gc-icon);
  --divider: var(--gc-line);
  --divider-2: var(--gc-line-soft);
  --sep: var(--gc-line-strong);
  --accent: var(--gc-accent);
  --accent-hover: var(--gc-accent-hover);
  --accent-soft: var(--gc-accent-soft);
  --accent-soft-text: var(--gc-accent-text);
  --select: var(--gc-select);
  --select-strong: var(--gc-select-strong);
  --on-accent: var(--gc-on-accent);
  --ok: var(--gc-ok);
  --mark: var(--gc-mark);
  --err: var(--gc-err);
  --err-soft: var(--gc-err-soft);
  --t-pdf: var(--gc-t-pdf);
  --t-bild: var(--gc-t-bild);
  --t-video: var(--gc-t-video);
  --t-audio: var(--gc-t-audio);
  --t-cad: var(--gc-t-cad);
  --t-office: var(--gc-t-office);
  --t-text: var(--gc-t-text);
  --t-archiv: var(--gc-t-archiv);
  --t-sonstig: var(--gc-t-sonstig);
  --r-panel: var(--gc-r-panel);
  --r-side: var(--gc-r-panel);
  --r-tile: var(--gc-r-card);
  --r-bubble: 14px;
  --r-ctl: var(--gc-r-ctl);
  --font: var(--gc-font);
  --font-mono: var(--gc-mono);
}

/* ── 2 · Grund: ruhige Fläche statt Wallpaper ─────────────────────────────────── */
html, body { background: var(--gc-canvas); }
body::before { display: none; }
.side .scroll, .content, .detail, .up-body { scrollbar-width: thin; scrollbar-color: var(--gc-line-strong) transparent; }

/* Inhalt = feste Fläche, Linie statt Schatten, kein Blur */
.glass,
.glass.soft {
  background: var(--gc-surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-r-panel);
  box-shadow: none;
}
/* Glas nur für Schwebendes: Menü, Quick Look, Sheet, Upload-Panel, Ablegen */
.glass.pop {
  background: var(--gc-glass);
  -webkit-backdrop-filter: blur(var(--gc-glass-blur)) saturate(1.8);
  backdrop-filter: blur(var(--gc-glass-blur)) saturate(1.8);
  border: 1px solid var(--gc-glass-line);
  box-shadow: var(--gc-shadow-pop);
}
.label { font-size: var(--gc-fs-label); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gc-text-3); }

/* Akzent als Text immer über --gc-accent-text (AA auch auf Schwarz) */
a, a:hover { color: var(--gc-accent-text); }
.btn.ghost, .tabbar button.on, .up-file.st-vorhanden .up-flabel { color: var(--gc-accent-text); }
.fpath button:hover, .vt-head .fpath button:hover { color: var(--gc-accent-text); }

/* ── 3 · Knöpfe & Steuerung ───────────────────────────────────────────────────── */
.btn {
  background: var(--gc-accent); color: var(--gc-on-accent);
  padding: 8px 16px; font-size: var(--gc-fs-ui); font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn:hover { background: var(--gc-accent-hover); color: var(--gc-on-accent); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn.secondary { background: var(--gc-surface); color: var(--gc-text); border-color: var(--gc-line-strong); box-shadow: var(--gc-shadow-xs); font-weight: 500; }
.btn.secondary:hover { background: var(--gc-surface-2); color: var(--gc-text); }
.btn.ghost { box-shadow: none; }
.ib { background: var(--gc-surface); border: 1px solid var(--gc-line); color: var(--gc-icon); box-shadow: var(--gc-shadow-xs); }
.ib:hover { background: var(--gc-surface-2); color: var(--gc-text); }
.ib.on { background: var(--gc-accent-soft); border-color: var(--gc-accent-line); color: var(--gc-accent-text); box-shadow: none; }

/* Segment wie Desktop: helles Segment auf grauer Spur, kein Blau-Fill */
.seg { background: var(--gc-surface-3); border: 0; padding: 3px; gap: 2px; }
.seg button { color: var(--gc-text-2); font-weight: 500; }
.seg button.on { background: var(--gc-raised); color: var(--gc-text); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), 0 0 0 0.5px rgba(16, 24, 40, 0.06); }
.seg button.on svg.i { color: var(--gc-accent); }
.seg button:not(.on):hover { color: var(--gc-text); }

.input { background: var(--gc-surface); border-color: var(--gc-line-strong); }
.input:focus { border-color: var(--gc-accent); box-shadow: 0 0 0 3px var(--gc-ring); }
select.sel { background-color: var(--gc-surface); border-color: var(--gc-line); box-shadow: var(--gc-shadow-xs); color: var(--gc-text); }

/* Chips & Badges: Status-Sprache wie „gelesen" im Desktop */
.badge { font-size: 11.5px; padding: 1px 8px; }
:root:not([data-theme="light"]) .badge.dup,
.badge.dup { background: var(--gc-surface-3); color: var(--gc-text-2); }
:root:not([data-theme="light"]) .meth,
.meth { background: var(--gc-ok-soft); color: var(--gc-ok-text); }
:root:not([data-theme="light"]) .meth.ocr,
.meth.ocr { background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.meth.ocr.low { background: var(--gc-err-soft); color: var(--gc-err-text); }
:root:not([data-theme="light"]) .qbadge.neu,
:root:not([data-theme="light"]) .qbadge.angenommen,
.qbadge.neu, .qbadge.angenommen { background: var(--gc-ok-soft); color: var(--gc-ok-text); }
.qbadge.abgewiesen { background: var(--gc-err-soft); color: var(--gc-err-text); }
.ok { color: var(--gc-ok-text); background: var(--gc-ok-soft); }
.err { color: var(--gc-err-text); background: var(--gc-err-soft); }

/* ── 4 · Schale: Sidebar | ein Hauptpanel | Detail ────────────────────────────── */
.app { gap: 12px; }

.brand { padding: 2px 8px 10px; }
.brand .logo { box-shadow: none; }
.brand .name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand .name span { color: var(--gc-text-3); font-weight: 600; }
.side .label { padding: 16px 10px 6px; }

.nav { padding: 6px 10px; border-radius: var(--gc-r-sm); font-size: var(--gc-fs-ui); color: var(--gc-text); }
.nav:hover { background: var(--gc-hover); }
.nav.on { background: var(--gc-selected); }
.nav svg.i { color: var(--gc-text-2); stroke-width: 1.7; }
.nav.on svg.i { color: var(--gc-text); }
.nav .n { color: var(--gc-text-3); font-size: var(--gc-fs-label); font-variant-numeric: tabular-nums; }

.drive { padding: 7px 10px; border-radius: var(--gc-r-ctl); gap: 1px 10px; }
.drive:hover { background: var(--gc-hover); }
.drive.on { background: var(--gc-selected); }
.drive .ic { background: var(--gc-surface-3); color: var(--gc-text-2); border-radius: var(--gc-r-sm); }
.drive.on .ic { background: var(--gc-surface); color: var(--gc-accent); box-shadow: 0 0 0 1px var(--gc-line), var(--gc-shadow-xs); }
.drive.lock .ic { background: var(--gc-warn-soft); color: var(--gc-warn); }
.drive .m { color: var(--gc-text-3); font-size: var(--gc-fs-meta); font-variant-numeric: tabular-nums; }
.drive .bar { height: 3px; background: var(--gc-line); margin-top: 4px; }
.drive .bar i { background: var(--gc-line-strong); }
.drive.on .bar i { background: var(--gc-accent); }

.store { background: var(--gc-surface-3); border: 0; border-radius: var(--gc-r-card); font-variant-numeric: tabular-nums; }
.store .row { color: var(--gc-text-2); }
.store .row.sub { color: var(--gc-text-3); }
.store .bar { height: 5px; background: var(--gc-line); }

.user { border-top: 1px solid var(--gc-line-soft); margin-top: 10px; padding: 10px 6px 0; }
.av { background: var(--gc-accent-soft); color: var(--gc-accent-text); box-shadow: inset 0 0 0 1px var(--gc-accent-line); }
.user .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .ib { width: 32px; height: 32px; background: transparent; border-color: transparent; box-shadow: none; }
.user .ib:hover { background: var(--gc-hover); }

/* Hauptspalte = EIN Panel wie im Desktop: Kopf + Inhalt, getrennt durch eine Linie */
.mainc { gap: 0; }
.toolbar.glass { border-radius: var(--gc-r-panel) var(--gc-r-panel) 0 0; padding: 14px 18px 12px; gap: 10px; }
.content.glass { border-top: 0; border-radius: 0 0 var(--gc-r-panel) var(--gc-r-panel); padding: 18px 20px 24px; }

.search {
  background: var(--gc-surface); border: 1px solid var(--gc-line-strong); border-radius: var(--gc-r-ctl);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 7px 12px;
  transition: border-color 150ms var(--gc-ease), box-shadow 150ms var(--gc-ease);
}
.search:focus-within { border-color: var(--gc-accent); box-shadow: 0 0 0 3px var(--gc-ring); }
.search svg.i { color: var(--gc-text-3); }
.search input { font-size: var(--gc-fs-body); }
.search input::placeholder { color: var(--gc-text-4); }
.search kbd { border-color: var(--gc-line); color: var(--gc-text-3); }

.crumbs { font-size: var(--gc-fs-ui); }
.crumbs button { color: var(--gc-text-3); padding: 3px 6px; border-radius: 6px; }
.crumbs button:hover { background: var(--gc-hover); color: var(--gc-text); }
.crumbs button.last { color: var(--gc-text); font-weight: 600; }
.crumbs .sepc { color: var(--gc-text-4); }

.chip { background: var(--gc-surface); border: 1px solid var(--gc-line); color: var(--gc-text-2); padding: 4px 11px; font-weight: 500; box-shadow: var(--gc-shadow-xs); }
.chip:hover { background: var(--gc-surface-2); border-color: var(--gc-line-strong); color: var(--gc-text); }
.chip.on { background: var(--gc-accent-soft); border-color: var(--gc-accent-line); color: var(--gc-accent-text); box-shadow: none; }
.chip i { width: 7px; height: 7px; }
.selbar { background: var(--gc-accent-soft); color: var(--gc-accent-text); box-shadow: inset 0 0 0 1px var(--gc-accent-line); }

/* Kopf der Ansicht */
.statusline { margin: 0 0 14px; color: var(--gc-text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.statusline h1 { font-size: var(--gc-fs-title); font-weight: 700; letter-spacing: -0.015em; color: var(--gc-text); }

/* ── 5 · Kacheln wie die Desktop-Karten ───────────────────────────────────────── */
.grid { grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)); gap: 16px; }
.tile {
  background: var(--gc-surface); border: 1px solid var(--gc-line); border-radius: var(--gc-r-card);
  padding: 8px 8px 10px; gap: 8px; box-shadow: var(--gc-shadow-xs);
  transition: border-color 150ms var(--gc-ease), box-shadow 150ms var(--gc-ease);
}
.tile:hover { background: var(--gc-surface); border-color: var(--gc-line-strong); box-shadow: var(--gc-shadow-sm); }
.tile.sel { background: var(--gc-accent-soft); border-color: var(--gc-accent); box-shadow: 0 0 0 3px var(--gc-ring); }
.tile.focus { box-shadow: 0 0 0 2px var(--gc-accent); }
.tile.sel.focus { box-shadow: 0 0 0 3px var(--gc-ring); }
.tile .th { border-radius: var(--gc-r-sm); background: var(--gc-surface-2); }
.tile .th.has { background: var(--gc-surface); box-shadow: inset 0 0 0 1px var(--gc-line-soft); }
.tile .th img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.tile .nm { text-align: left; font-size: 13px; font-weight: 600; line-height: 1.3; word-break: normal; overflow-wrap: anywhere; color: var(--gc-text); padding: 0 2px; }
.tile .nm.fname { white-space: normal; } /* voller Name auf zwei Zeilen statt „bob_0014…"; Umbruch an <wbr> (app.js) */
/* Typ-Badge wie „MD" im Desktop — braucht <span class="tbadge">JPG</span> in fileTile (app.js) */
.tile .tbadge {
  position: absolute; top: 14px; right: 14px; z-index: 1; padding: 1px 6px; border-radius: var(--gc-r-xs);
  background: var(--gc-badge); color: var(--gc-on-badge); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.5;
  pointer-events: none; transition: opacity 150ms var(--gc-ease);
}
.tile:hover .tbadge, .tile.focus .tbadge { opacity: 0; } /* dort sitzt dann der „…"-Knopf */
.tile .mt { justify-content: flex-start; text-align: left; font-size: var(--gc-fs-meta); color: var(--gc-text-3); padding: 0 2px; font-variant-numeric: tabular-nums; }
.tile .mt .badge { order: -1; }
.tile .mt > span:not(.badge) { margin-left: auto; }
.tile .more { background: var(--gc-glass); border-color: var(--gc-glass-line); box-shadow: var(--gc-shadow-xs); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tile.folder .fic svg.i { fill: var(--gc-accent-soft); }
.tile.folder .nm { font-size: var(--gc-fs-ui); }

/* Liste */
.list th, .q-tab th { text-transform: none; letter-spacing: 0; font-size: var(--gc-fs-label); color: var(--gc-text-3); }
.list th { border-bottom-color: var(--gc-line); }
.list td { border-bottom-color: var(--gc-line-soft); }
.list td.r { font-variant-numeric: tabular-nums; }
.list tbody tr:hover td { background: var(--gc-hover); }
.list tbody tr.sel td { background: var(--gc-accent-soft); }

/* Volltext-Karten */
.vt-card { box-shadow: var(--gc-shadow-xs); }
.vt-card.sel { background: var(--gc-accent-soft); border-color: var(--gc-accent); }
.vt-head .fpath .cat { background: var(--gc-surface-3); border-color: transparent; }
.kennung { background: var(--gc-accent-soft); color: var(--gc-accent-text); box-shadow: inset 0 0 0 1px var(--gc-accent-line); }

/* ── 6 · Detail-Panel ─────────────────────────────────────────────────────────── */
.detail { width: 320px; padding: 14px 16px 16px; }
.detail .dh { align-items: center; margin-bottom: 12px; }
.detail .dh h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.detail .dh .ib { width: 30px; height: 30px; background: transparent; border-color: transparent; box-shadow: none; }
.detail .dh .ib:hover { background: var(--gc-hover); }
.detail .pv { background: var(--gc-surface); border: 1px solid var(--gc-line); border-radius: var(--gc-r-card); }
.detail .actions { gap: 6px; margin: 0 0 14px; }
.detail dl {
  grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; font-size: 13px;
  padding: 12px 0; margin: 0 0 14px; border-top: 1px solid var(--gc-line-soft); border-bottom: 1px solid var(--gc-line-soft);
  font-variant-numeric: tabular-nums;
}
.detail dt { color: var(--gc-text-3); }
.detail dd { color: var(--gc-text); }
.detail dd .mono { font-size: 11.5px; line-height: 1.5; color: var(--gc-text-2); }
.detail .label { display: block; margin: 0 0 2px; }
.detail .paths li { padding: 8px 0; border-bottom-color: var(--gc-line-soft); }
.detail .paths .pp { font-size: 11.5px; line-height: 1.5; color: var(--gc-text-2); }
.detail .paths .ib { background: transparent; border-color: transparent; box-shadow: none; }
.detail .paths .ib:hover { background: var(--gc-hover); color: var(--gc-text); }
.hint { background: var(--gc-surface-2); border: 1px solid var(--gc-line); border-radius: var(--gc-r-card); color: var(--gc-text-2); }

/* ── 7 · Schwebendes ──────────────────────────────────────────────────────────── */
.menu { border-radius: 12px; }
.menu button:hover, .menu button:focus-visible { background: var(--gc-accent); color: var(--gc-on-accent); }
.toast { background: var(--gc-glass); border-color: var(--gc-glass-line); box-shadow: var(--gc-shadow-pop); }
.ql .qb { background: var(--gc-surface-2); }
.ql-back, .sheet-back, .scrim.open { background: rgba(17, 24, 39, 0.28); }
.up-drop { background: var(--gc-select); }

/* ── 8 · Breiten: Detail schiebt statt zu überdecken (1000–1240 px) ───────────── */
@media (min-width: 1000px) and (max-width: 1240px) {
  .app { grid-template-columns: 248px minmax(0, 1fr) auto; }
  .detail { position: static; width: 296px; z-index: auto; }
}
@media (max-width: 999px) {
  .detail.glass { box-shadow: var(--gc-shadow-pop); }
}
@media (max-width: 900px) {
  /* mobil schwebt die Werkzeugleiste → hier darf sie Glas sein */
  .mainc { gap: 10px; }
  .toolbar.glass {
    border-radius: var(--gc-r-panel);
    background: var(--gc-glass);
    -webkit-backdrop-filter: blur(var(--gc-glass-blur)) saturate(1.8);
    backdrop-filter: blur(var(--gc-glass-blur)) saturate(1.8);
    border-color: var(--gc-glass-line);
    box-shadow: var(--gc-shadow-sm);
  }
  .content.glass { border-top: 1px solid var(--gc-line); border-radius: var(--gc-r-panel); }
  .side.glass { border-radius: 0 var(--gc-r-panel) var(--gc-r-panel) 0; box-shadow: var(--gc-shadow-pop); }
  .detail.glass { border-radius: var(--gc-r-panel) var(--gc-r-panel) 0 0; }
  .ql.glass { border-radius: 0; border: 0; }
  .tabbar.glass {
    border-radius: 20px 20px 0 0; border-bottom: 0;
    background: var(--gc-glass);
    -webkit-backdrop-filter: blur(var(--gc-glass-blur)) saturate(1.8);
    backdrop-filter: blur(var(--gc-glass-blur)) saturate(1.8);
    border-color: var(--gc-glass-line);
  }
}
.sheet.glass { border-radius: 20px 20px 0 0; border-bottom: 0; }

/* ── 9 · Analyse (gitchain-analyse@v1) im Detail-Panel + CAD im Quick Look ────── */
.ana { margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.ana-h { display: flex; align-items: baseline; gap: 8px; }
.ana-h .label { margin: 0; }
.ana-fmt { margin-left: auto; font-family: var(--gc-mono); font-size: 10.5px; color: var(--gc-text-4); }
.ana-blk { background: var(--gc-surface); border: 1px solid var(--gc-line); border-radius: var(--gc-r-card); padding: 10px 12px; }
.ana-blk.ki { background: var(--gc-surface-2); border-style: dashed; }
.ana-t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--gc-text); margin-bottom: 8px; }
.ana-t .ana-n { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--gc-text-3); }
.ana-t .tag { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: var(--gc-r-pill); background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.detail .ana-blk dl { padding: 0; margin: 0 0 6px; border: 0; grid-template-columns: 80px minmax(0, 1fr); gap: 5px 10px; font-size: 12.5px; }
.ana-q { font-size: 11px; line-height: 1.45; color: var(--gc-text-3); overflow-wrap: anywhere; }
.ana-q .mono { font-family: var(--gc-mono); font-size: 10.5px; }
.ana-q.foot { color: var(--gc-text-4); }
.ana-src { font: inherit; color: var(--gc-accent-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gc-accent-line); text-underline-offset: 2px; }
.ana-partner { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 8px; align-items: center; width: 100%; text-align: left; font: inherit; background: var(--gc-surface-2); border: 1px solid var(--gc-line); border-radius: var(--gc-r-sm); padding: 8px 10px; color: var(--gc-text); }
button.ana-partner { cursor: pointer; }
button.ana-partner:hover { border-color: var(--gc-accent-line); background: var(--gc-accent-soft); }
.ana-partner svg.i { width: 16px; height: 16px; color: var(--gc-t-cad); grid-row: span 2; }
.ana-partner .nm { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.ana-partner .sub { font-size: 11px; color: var(--gc-text-3); }
.ana-list { list-style: none; margin: 0; padding: 0; }
.ana-list li { padding: 8px 0; border-top: 1px solid var(--gc-line-soft); }
.ana-list li:first-child { border-top: 0; padding-top: 0; }
.ana-list .row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ana-list .row .nm { font-size: 12.5px; font-weight: 600; color: var(--gc-text); }
.ana-list .row .val { font-size: 12.5px; color: var(--gc-text-2); min-width: 0; overflow-wrap: break-word; }
.ana-list .row .st { margin-left: auto; }
.ana-list .cmp { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 12px; color: var(--gc-text-2); margin-top: 3px; }
.ana-list .cmp .arr { color: var(--gc-text-4); }
.ana .why { font-size: 11.5px; line-height: 1.45; color: var(--gc-text-3); margin-top: 3px; }
.ana-blk > .why { margin-top: 8px; }
.st { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: var(--gc-r-pill); font-size: 11px; font-weight: 650; line-height: 1.6; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--gc-ok-soft); color: var(--gc-ok-text); }
.st.bad { background: var(--gc-err-soft); color: var(--gc-err-text); }
.st.mute { background: var(--gc-surface-3); color: var(--gc-text-3); }
.st[data-st="erfunden"] { box-shadow: inset 0 0 0 1px var(--gc-err); }
.ana-prompt { margin-top: 8px; font-size: 11.5px; color: var(--gc-text-3); }
.ana-prompt summary { cursor: pointer; color: var(--gc-text-2); }
.ana-prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--gc-mono); font-size: 10.5px; line-height: 1.45; background: var(--gc-surface); border: 1px solid var(--gc-line); border-radius: var(--gc-r-sm); padding: 8px; max-height: 260px; overflow: auto; margin: 6px 0 0; }
/* CAD-Zeichnung im Quick Look: Blatt Papier (weiß, schwarze Linien) — auch im Dunkelmodus */
.ql .qb .cad-sheet { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; }
.ql .qb .cad-sheet img { flex: 1; min-height: 0; max-width: 100%; object-fit: contain; background: #fff; border-radius: var(--gc-r-sm); box-shadow: 0 0 0 1px var(--gc-line), var(--gc-shadow-sm); padding: 12px; }
.ql .qb .cad-cap { font-size: 12px; color: var(--gc-text-3); text-align: center; }
@media (max-width: 900px) {
  .ql .qb .cad-sheet { padding: 10px; }
  .detail .ana-blk dl { grid-template-columns: 84px minmax(0, 1fr); font-size: 13px; }
  .ana-list .row .nm, .ana-list .row .val { font-size: 13.5px; }
  .st { font-size: 12px; padding: 2px 9px; }
}

/* ── 10 · Artikel-Verbund (Ansichten-Leiste, Paritätsnachweis) ─────────────────── */
.ana-views { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.ana-view { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 5px 4px 6px; font: inherit; text-align: center;
  background: var(--gc-surface-2); border: 1px solid var(--gc-line); border-radius: var(--gc-r-sm); color: var(--gc-text); }
button.ana-view { cursor: pointer; }
button.ana-view:hover { border-color: var(--gc-accent-line); background: var(--gc-accent-soft); }
button.ana-view:focus-visible { outline: 2px solid var(--gc-accent); outline-offset: 1px; }
.ana-view.cur { border-color: var(--gc-accent); box-shadow: inset 0 0 0 1px var(--gc-accent); background: var(--gc-accent-soft); }
.ana-view .vth { position: relative; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--gc-line-soft); }
.ana-view .vth svg.i { width: 18px; height: 18px; color: var(--gc-t-cad); }
.ana-view .vth img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.ana-view .vth.has svg.i { visibility: hidden; }
.ana-view .vt { font-size: 12px; font-weight: 700; font-family: var(--gc-mono); line-height: 1.3; }
.ana-view .vs { font-size: 10.5px; color: var(--gc-text-3); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ana-view.cur .vs { color: var(--gc-accent-text); }
.ana-par { margin-top: 6px; font-size: 12px; }
.ana-par summary { cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--gc-text-2); font-weight: 600; list-style: none; }
.ana-par summary::-webkit-details-marker { display: none; }
.ana-par summary::before { content: "›"; display: inline-block; width: 10px; color: var(--gc-text-4); transition: transform var(--base) var(--ease); }
.ana-par[open] summary::before { transform: rotate(90deg); }
.ana-par summary .st { margin-left: auto; }
.ana-par .ana-list { margin-top: 8px; }

/* ── 10b · Fassungen + Befunde (nie überschrieben, nie gelöscht) ────────────────── */
.st.warn { background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.ana-fass > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.ana-fass > summary::-webkit-details-marker { display: none; }
.ana-fass > summary::before { content: "›"; display: inline-block; width: 10px; color: var(--gc-text-4); transition: transform var(--base) var(--ease); }
.ana-fass[open] > summary { margin-bottom: 8px; }
.ana-fass[open] > summary::before { transform: rotate(90deg); }
.ana-fass li.cur .nm { color: var(--gc-accent-text); }
.ana-fass .row .val.mono { font-family: var(--gc-mono); font-size: 11.5px; }
.ana-fass .row .fass-btn { margin-left: auto; font-size: 12px; min-height: 28px; }
.ana-fass .row .st + .fass-btn { margin-left: 0; }
.ana-alt { background: var(--gc-warn-soft); color: var(--gc-warn-text); border: 1px solid var(--gc-warn); border-radius: var(--gc-r-card); padding: 9px 12px; font-size: 12.5px; }
.ana-alt .row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 600; }
.ana-alt .row .ana-src { margin-left: auto; color: inherit; }
.ana-alt .why { color: inherit; opacity: 0.85; }
.ana-alt-bild { display: block; margin-top: 8px; width: 100%; max-height: 260px; object-fit: contain; background: #fff; border-radius: var(--gc-r-sm); box-shadow: 0 0 0 1px var(--gc-line); padding: 6px; }
@media (max-width: 900px) {
  .ana-fass .row .fass-btn { min-height: 36px; font-size: 13px; }
  .ana-alt { font-size: 13px; }
}

/* ── 11 · Detail-Blatt ÜBER dem Quick Look (schmale Fenster) ───────────────────── */
/* .app bildet sonst einen Stapelkontext (z-index 1) unter #layer — das Blatt läge hinter dem Quick Look. */
@media (max-width: 1240px) {
  body.blatt-ueber-ql .app { z-index: auto; }
  body.blatt-ueber-ql .detail { z-index: 70; }
  .blatt-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(10, 20, 35, 0.32); animation: fade var(--base) var(--ease); }
}
@media (max-width: 900px) {
  /* volle Breite (die spätere 320-px-Regel aus Abschnitt 6 überschrieb das Blatt), Safe-Areas */
  .detail { left: 0; right: 0; width: 100%; max-width: none;
    padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  body.blatt-ueber-ql .detail { max-height: calc(88dvh - env(safe-area-inset-top)); animation: up var(--base) var(--ease); }
  .ana-view .vt { font-size: 13px; }
  .ana-view .vs { font-size: 11px; }
}

/* ── 12 · Mehr Platz: Raster-Zeilen, Analyse groß, verstellbares Detail-Panel ───────── */
/* Bezeichnung · Wert · Status als Raster mit festen Abständen (nie zusammengeklebt) */
.kv { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.kv.mit-st { grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) auto; }
.kv .nm { font-size: 12.5px; font-weight: 600; color: var(--gc-text); overflow-wrap: anywhere; }
.kv .val { font-size: 12.5px; color: var(--gc-text-2); min-width: 0; overflow-wrap: anywhere; }
.kv .kv-st { justify-self: end; align-self: center; }
.sollist { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; margin-top: 5px; font-size: 12px; }
.sollist .nm { color: var(--gc-text-4); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 1px; }
.sollist .val { color: var(--gc-text-2); min-width: 0; overflow-wrap: anywhere; }
.ana-fass .fz { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.ana-fass .fz .nm { font-size: 12.5px; font-weight: 600; color: var(--gc-text); }
.ana-fass .fz .val { font-family: var(--gc-mono); font-size: 11.5px; color: var(--gc-text-3); }
.ana-fass .fz-st { display: flex; align-items: center; gap: 8px; justify-self: end; }
.ana-fass .fz-st .fass-btn { margin: 0; }
.ana-t > span:first-child { min-width: 0; }
.ana-h .ana-open { margin-left: auto; }
@media (max-width: 900px) {
  .kv .nm, .kv .val { font-size: 13.5px; }
  .kv, .kv.mit-st { grid-template-columns: minmax(0, 1fr) auto; }
  .kv .val { grid-column: 1 / -1; grid-row: 2; }
  .kv:not(.mit-st) .val { grid-row: auto; }
}

/* Analyse groß im Hauptbereich */
.ana-page { padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; container-type: inline-size; }
/* Die große Analyse braucht den Platz: das Detail-Panel (gleicher Inhalt) tritt so lange zurück */
@media (min-width: 1000px) { .app.ana-gross .detail, .app.ana-gross .detail-griff { display: none; } }
.ana-page-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ana-page-h h1 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; min-width: 0; }
.ana-page-h .ana-fmt { color: var(--gc-text-3); font-size: 12px; font-family: var(--gc-mono); }
.ana-page-h > .btn:last-child { margin-left: auto; }
.ana-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.ana-links, .ana-rechts { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@container (min-width: 900px) {
  .ana-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
  .ana-links { position: sticky; top: 0; }
}
.ana-page .ana-blk dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 7px 14px; margin: 0 0 8px; font-size: 13px; }
.ana-page .ana-blk dt { color: var(--gc-text-3); }
.ana-page .ana-blk dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--gc-text); }
.ana-zeichnung .ana-t { flex-wrap: wrap; }
.zoom-k { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.zoom-k .ib { width: 30px; height: 30px; font-size: 17px; line-height: 1; }
.zoom-n { min-width: 48px; text-align: center; font-size: 12px; color: var(--gc-text-3); font-variant-numeric: tabular-nums; }
.zoom-fl { height: min(68vh, 760px); overflow: auto; background: #fff; border-radius: var(--gc-r-sm); box-shadow: 0 0 0 1px var(--gc-line); cursor: zoom-in; touch-action: pan-x pan-y pinch-zoom; overscroll-behavior: contain; }
.zoom-fl img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 10px; user-select: none; -webkit-user-drag: none; }
.zoom-fl.gezoomt { cursor: grab; }
.zoom-fl.gezoomt img { height: auto; max-width: none; }
.zoom-fl.gezoomt:active { cursor: grabbing; }
.ana-zeichnung .ana-q { margin-top: 6px; }
/* Tabellen: Abgleich + KI-Prüfung */
.tbl-wrap { overflow-x: auto; margin: 0 -2px; }
.ana-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ana-tbl th { text-align: left; font-size: 11px; font-weight: 650; color: var(--gc-text-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--gc-line); white-space: nowrap; }
.ana-tbl td { padding: 8px 10px 8px 0; border-top: 1px solid var(--gc-line-soft); vertical-align: top; color: var(--gc-text-2); overflow-wrap: anywhere; }
.ana-tbl td.b { font-weight: 600; color: var(--gc-text); min-width: 112px; overflow-wrap: normal; hyphens: auto; }
.ana-tbl td .st { white-space: nowrap; }
.ana-tbl th:nth-child(4), .ana-tbl td[data-l="Status"], .ana-tbl td[data-l="Prüfung"]:has(.st) { width: 1%; white-space: nowrap; }
.ana-tbl td.q { font-size: 11px; color: var(--gc-text-3); min-width: 120px; max-width: 200px; }
.ana-tbl td.why { font-size: 11.5px; color: var(--gc-text-3); }
.ana-tbl tr.mit-why td { border-bottom: 0; }
.ana-tbl tr.why-row td { border-top: 0; padding-top: 0; }
.ana-tbl tbody tr:first-child td { border-top: 0; }
/* Anschlüsse (superkern meta.anschluesse) — Kürzel/Richtung unbestätigt */
.ansch-kopf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--gc-text-2); margin: 2px 0 8px; }
.ansch-abg { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; min-width: 0; }
@media (min-width: 901px) { .ansch-tbl td[data-l="Ø"], .ansch-tbl td[data-l="Höhe ü. Boden"], .ansch-tbl td[data-l="Medium (roh)"] { white-space: nowrap; overflow-wrap: normal; } }
.ansch-ef { font-size: 11px; color: var(--gc-text-3); }
.ansch-tbl tr.auff td.b { color: var(--gc-warn-text); }
@media (max-width: 900px) {
  .ana-page { padding: 14px 4px 24px; }
  .ana-page-h h1 { font-size: 16px; flex-basis: 100%; order: 2; }
  .ana-page .ana-blk dl { grid-template-columns: 96px minmax(0, 1fr); font-size: 13.5px; }
  .zoom-fl { height: 52vh; }
  /* Tabellen werden Karten: jede Zelle mit ihrer Spaltenbezeichnung */
  .ana-tbl thead { display: none; }
  .ana-tbl, .ana-tbl tbody, .ana-tbl tr, .ana-tbl td { display: block; width: 100%; }
  .ana-tbl tr { padding: 10px 0; border-top: 1px solid var(--gc-line-soft); }
  .ana-tbl tbody tr:first-child, .ana-tbl tr.why-row { border-top: 0; }
  .ana-tbl tr.why-row { padding-top: 0; }
  .ana-tbl td { border: 0; padding: 2px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13px; }
  .ana-tbl td[data-l]::before { content: attr(data-l); color: var(--gc-text-4); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
  .ana-tbl td.why:not([data-l]) { display: block; }
  .ana-tbl td .st { justify-self: start; }
  .ana-tbl td.q { max-width: none; min-width: 0; font-size: 12px; }
  .ana-tbl td.b { min-width: 0; }
}

/* Detail-Panel: breiter ab 1440 px, Breite per Ziehgriff (Wert pro Gerät im localStorage) */
@media (min-width: 1000px) { .detail { width: var(--detail-w, 320px); } }
@media (min-width: 1440px) { .detail { width: var(--detail-w, 420px); } }
.detail-griff { position: absolute; z-index: 5; width: 14px; cursor: col-resize; touch-action: none; display: flex; align-items: center; justify-content: center; }
.detail-griff[hidden] { display: none; }
.detail-griff::before { content: ""; width: 4px; height: 44px; border-radius: 4px; background: var(--gc-line-strong); opacity: 0.55; transition: opacity var(--base) var(--ease), background var(--base) var(--ease), height var(--base) var(--ease); }
.detail-griff:hover::before, .detail-griff.zieht::before, .detail-griff:focus-visible::before { opacity: 1; background: var(--gc-accent); height: 72px; }
.detail-griff:focus-visible { outline: none; }
body.zieht-breite, body.zieht-breite * { cursor: col-resize !important; user-select: none !important; }

/* Bosch-Stammdaten (gitchain-stammdaten@v1): zwei Werte je Merkmal nebeneinander, Status-Chip, Quelle */
.bs-lade .loading { font-size: 12px; color: var(--gc-text-3); }
.bs > dl { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 5px 10px; margin: 0 0 6px; font-size: 12.5px; }
.bs > dl dt { color: var(--gc-text-3); }
.bs > dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--gc-text); }
.bs-sub { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 6px; font-size: 12px; font-weight: 650; color: var(--gc-text-2); }
.bs-sub .ana-n { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--gc-text-3); }
.bs-merk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bs-m { border: 1px solid var(--gc-line-soft); border-radius: calc(var(--gc-r-card) - 2px); padding: 8px 10px; background: var(--gc-surface-2); }
.bs-m[data-st="abweichend"] { border-color: var(--gc-err-soft); }
.bs-mh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bs-mh .nm { font-size: 13px; font-weight: 650; color: var(--gc-text); }
.bs-mh .ef { font-family: var(--gc-mono); font-size: 10.5px; color: var(--gc-text-3); }
.bs-mh .st { margin-left: auto; }
.bs-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bs-seite { min-width: 0; }
.bs-l { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gc-text-4); margin-bottom: 2px; }
.bs-v { font-size: 16px; font-weight: 650; color: var(--gc-text); font-variant-numeric: tabular-nums; }
.bs-v.mute { font-size: 12px; font-weight: 500; color: var(--gc-text-3); }
.bs-gp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 4px; font-size: 11px; color: var(--gc-text-3); }
.bs-gp .tag { font-size: 10px; font-weight: 650; padding: 0 6px; border-radius: var(--gc-r-pill); background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.bs-alle { margin-top: 6px; }
.bs-alle > summary, .bs-teil > summary { cursor: pointer; font-size: 12px; color: var(--gc-accent-text); }
.bs-alle .ana-list { margin-top: 6px; }
.bs-teil { border-top: 1px solid var(--gc-line-soft); margin-top: 10px; padding-top: 8px; }
.bs-teil > summary { display: flex; align-items: baseline; gap: 8px; list-style: none; color: var(--gc-text); font-weight: 650; font-size: 12.5px; }
.bs-teil > summary::-webkit-details-marker { display: none; }
.bs-teil > summary::before { content: "›"; display: inline-block; width: 10px; color: var(--gc-text-4); transition: transform var(--base) var(--ease); }
.bs-teil[open] > summary::before { transform: rotate(90deg); }
.bs-teil > summary .ana-n { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--gc-text-3); }
.bs-teil[open] > summary { margin-bottom: 8px; }
.bs-doks { display: flex; flex-direction: column; gap: 4px; }
.bs-doks .bs-l { margin-top: 6px; }
.bs-dok { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; padding: 6px 8px; border: 1px solid var(--gc-line-soft); border-radius: 8px; background: var(--gc-surface); color: inherit; min-height: 40px; }
button.bs-dok { cursor: pointer; }
button.bs-dok:hover, button.bs-dok:focus-visible { border-color: var(--gc-accent-line); background: var(--gc-surface-2); }
.bs-dok.fehlt { opacity: 0.7; }
.bs-typ { flex: none; min-width: 30px; text-align: center; font-family: var(--gc-mono); font-size: 10.5px; font-weight: 650; padding: 1px 5px; border-radius: 6px; background: var(--gc-surface-3); color: var(--gc-text-2); }
.bs-dn { display: flex; flex-direction: column; min-width: 0; }
.bs-dn .nm { font-size: 12.5px; color: var(--gc-text); overflow-wrap: anywhere; }
button.bs-dok .bs-dn .nm { color: var(--gc-accent-text); }
.bs-dn .sub { font-size: 11px; color: var(--gc-text-3); overflow-wrap: anywhere; }
.bs-pre { margin: 0; white-space: pre-wrap; font: 12px/1.5 var(--gc-mono); color: var(--gc-text-2); max-height: 320px; overflow: auto; }
.bs-qv { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); gap: 2px 10px; margin-top: 4px; font-size: 12px; }
.bs-qv .nm { color: var(--gc-text-3); font-size: 11.5px; overflow-wrap: anywhere; }
.bs-qv .val { color: var(--gc-text-2); overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 420px) { .bs-zwei { grid-template-columns: minmax(0, 1fr); gap: 6px; } .bs-v { font-size: 15px; } .bs-dok { min-height: 44px; } }
.bs .why { font-size: 11.5px; line-height: 1.45; color: var(--gc-text-3); margin-top: 3px; }

/* Kacheln doppelt so groß (C, 15.10.2026): Desktop 312 px statt 156 px; schmal eine Spalte */
@media (max-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; } }

/* ── 13 · Zeitreise: Stand am Datum, Zeitachse, Vergleich, Zeitleiste, Befunde ─────────── */
.inp { width: auto; min-width: 0; padding: 7px 10px; font-size: 13.5px; }
input.inp[type="date"] { font-variant-numeric: tabular-nums; min-height: 34px; }
/* Band „Stand … · nur lesend“: deutlich, aber ruhig (Warnton aus den Tokens) */
.standband { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--gc-r-card);
  background: var(--gc-warn-soft); color: var(--gc-warn-text); border: 1px solid var(--gc-warn); font-size: 13px; }
.standband > svg.i { width: 18px; height: 18px; flex: none; color: var(--gc-warn); }
.standband .t { min-width: 0; }
.standband .mono { font-family: var(--gc-mono); font-size: 12.5px; }
.standband .sb-end { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
body.vergangen .toolbar.glass { border-color: var(--gc-warn); }
body.vergangen .content.glass { box-shadow: inset 0 0 0 1px var(--gc-warn-soft); }
#zeit-tg.on, body.vergangen #zeit-tg { color: var(--gc-warn); }
.qhint { font-size: 12px; color: var(--gc-text-3); padding: 0 6px; white-space: nowrap; }
.seg button[disabled] { opacity: 0.45; cursor: not-allowed; }
.zeitchip { gap: 6px; }
.zeitchip svg.i { width: 13px; height: 13px; }
span.zeitchip { padding: 0; overflow: hidden; }
span.zeitchip button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; }
span.zeitchip .zc-x { padding: 4px 9px 4px 4px; }

/* Blatt „Zeitreise“: breiter auf dem Desktop, sonst Blatt von unten */
.sheet.zeit-sheet { width: min(760px, 100%); max-height: min(88dvh, 900px); overflow-y: auto; }
@media (min-width: 901px) { .sheet-back:has(.zeit-sheet) { align-items: center; } .sheet.zeit-sheet { border-radius: 22px; } }
.zeit { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.zeit-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zeit-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zeit-row .btn { width: auto; }
.zeit-aktiv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--gc-r-card); background: var(--gc-warn-soft); color: var(--gc-warn-text); font-size: 13px; }
.zeit-aktiv .btn { width: auto; margin-left: auto; }
.zeit-achse { position: relative; height: 34px; margin: 6px 10px 0; }
.zeit-achse .linie { position: absolute; left: 0; right: 0; top: 16px; height: 2px; border-radius: 2px; background: var(--gc-line-strong); }
.zeit-achse .marke { position: absolute; top: 10px; width: 14px; height: 14px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--gc-surface); border: 2px solid var(--gc-accent); box-shadow: 0 0 0 2px var(--gc-surface); }
.zeit-achse .marke.a-eingang { border-color: var(--gc-ok); }
.zeit-achse .marke.a-befund { border-color: var(--gc-warn); }
.zeit-achse .marke:hover, .zeit-achse .marke:focus-visible { transform: scale(1.25); outline: none; }
.zeit-achse .marke.on { background: var(--gc-accent); transform: scale(1.3); z-index: 2; }
.zeit-ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--gc-text-3); font-variant-numeric: tabular-nums; margin: 0 2px; }
.zeit-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--gc-r-card); background: var(--gc-surface-2); border: 1px solid var(--gc-line); }
.zeit-info .zi-k { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.zeit-info .mono, .zeit-liste .mono { font-family: var(--gc-mono); font-size: 12px; color: var(--gc-text-2); }
.zeit-info .zi-t { font-size: 13px; color: var(--gc-text); overflow-wrap: anywhere; }
.zeit-info .zi-z { font-size: 12px; color: var(--gc-text-3); }
.zeit-info .zi-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.zeit-info .zi-a .btn { width: auto; }
.zbadge { display: inline-flex; padding: 1px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; background: var(--gc-accent-soft); color: var(--gc-accent-text); white-space: nowrap; }
.zbadge.a-eingang { background: var(--gc-ok-soft); color: var(--gc-ok-text); }
.zbadge.a-befund { background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.zeit-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.zeit-liste button { width: 100%; display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left;
  padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--gc-text); font: inherit; font-size: 12.5px; cursor: pointer; }
.zeit-liste button:hover { background: var(--gc-surface-2); }
.zeit-liste li.on button { background: var(--gc-accent-soft); }
.zeit-liste .zl-d { font-variant-numeric: tabular-nums; color: var(--gc-text-2); white-space: nowrap; }
.zeit-liste .zl-b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeit-liste .zl-n { color: var(--gc-text-3); font-variant-numeric: tabular-nums; }
.zeit-sec .sel { max-width: 100%; }
.zeit .sub { font-size: 12.5px; line-height: 1.45; }
@media (max-width: 900px) {
  .sheet.zeit-sheet { max-height: calc(92dvh - env(safe-area-inset-top)); }
  .zeit-liste button { grid-template-columns: auto minmax(0, 1fr) auto; }
  .zeit-liste .mono, .zeit-liste .zl-n { display: none; }
  .zeit-liste .zl-b { grid-column: 1 / -1; }
  .zeit-row .sel { flex: 1 1 100%; }
  .standband { flex-wrap: nowrap; gap: 8px; padding: 5px 6px 5px 10px; font-size: 12.5px; }
  .standband > svg.i { width: 16px; height: 16px; }
  .standband .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .standband .sb-end .btn { padding: 5px 12px; }
  .qhint { display: none; }
}

/* Vergleich */
.vgl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vgl .statusline { margin-bottom: 0; }
.vgl-staende { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vgl-staende > svg.i { width: 16px; height: 16px; color: var(--gc-text-3); }
.vgl-stand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 12px; border-radius: var(--gc-r-card); border: 1px solid var(--gc-line); background: var(--gc-surface-2); color: var(--gc-text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.vgl-stand:hover { border-color: var(--gc-line-strong); }
.vgl-stand .sub { font-size: 11px; }
.vgl-staende .btn { margin-left: auto; }
.vgl-karten { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vgl-karte { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: var(--gc-r-card); border: 1px solid var(--gc-line); background: var(--gc-surface); color: var(--gc-text-2); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; box-shadow: var(--gc-shadow-xs); }
.vgl-karte b { font-size: 20px; font-weight: 700; color: var(--gc-text); font-variant-numeric: tabular-nums; }
.vgl-karte:hover { border-color: var(--gc-line-strong); }
.vgl-karte.on { border-color: var(--gc-accent-line); background: var(--gc-accent-soft); color: var(--gc-accent-text); }
.vgl-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vgl-filter .inp[type="search"] { flex: 1 1 220px; max-width: 360px; }
.vgl-badge { display: inline-flex; padding: 1px 8px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--gc-surface-3); color: var(--gc-text-2); }
.vgl-badge.k-objekt-neu, .vgl-badge.k-fundort-neu { background: var(--gc-ok-soft); color: var(--gc-ok-text); }
.vgl-badge.k-objekt-entfallen, .vgl-badge.k-fundort-entfallen { background: var(--gc-err-soft); color: var(--gc-err-text); }
.vgl-badge.k-kategorie { background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.vgl-list .fpath { font-family: var(--gc-mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list td.c-kat { font-size: 12.5px; }
@media (max-width: 900px) {
  .vgl-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgl-staende .btn { margin-left: 0; }
  .list col.c-kat, .list th.c-kat, .list td.c-kat { display: none; }
  .vgl-list col.c-art, .vgl-list th.c-art, .vgl-list td.c-art { display: table-cell; }
  .vgl-list col.c-art { display: table-column; width: 110px; }
}

/* Zeitleiste je Datei */
.zl .zl-list { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--gc-line-strong); display: flex; flex-direction: column; gap: 10px; }
.zl-e { position: relative; font-size: 12.5px; color: var(--gc-text-2); }
.zl-e::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gc-surface); border: 2px solid var(--gc-accent); }
.zl-e.a-aufgenommen::before, .zl-e.a-upload::before, .zl-e.a-fundort-neu::before { border-color: var(--gc-ok); }
.zl-e.a-entfallen::before, .zl-e.a-fundort-entfallen::before { border-color: var(--gc-err); }
.zl-e.a-befund::before, .zl-e.a-kategorie::before { border-color: var(--gc-warn); }
.zl-e.a-analyse-fassung::before, .zl-e.a-stammdaten-fassung::before { border-color: var(--gc-text-3); border-style: dashed; }
.zl-e.spaeter { opacity: 0.5; }
.zl-k { display: flex; align-items: baseline; gap: 6px 8px; flex-wrap: wrap; }
.zl-k b { color: var(--gc-text); font-weight: 600; }
.zl-z { font-variant-numeric: tabular-nums; color: var(--gc-text-3); font-size: 11.5px; white-space: nowrap; }
.zl-x { overflow-wrap: anywhere; margin-top: 2px; }
.zl-x .mono { font-family: var(--gc-mono); font-size: 11.5px; }
.zl-q { margin-top: 2px; font-size: 11.5px; color: var(--gc-text-3); overflow-wrap: anywhere; }
.zl-q .mono { font-family: var(--gc-mono); }
.zl-c { border: 0; background: none; padding: 0; color: var(--gc-accent-text); cursor: pointer; font-size: 11.5px; text-decoration: underline; text-underline-offset: 2px; }
.st.warn + .mono, dd .st.warn { margin-left: 6px; }

/* Befund-Register */
.bf { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bf .statusline { margin-bottom: 0; }
.bf-chips { flex-wrap: wrap; }
.bf-datum { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.bf-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bf-liste > li { padding: 12px 14px; border-radius: var(--gc-r-card); border: 1px solid var(--gc-line); background: var(--gc-surface); display: flex; flex-direction: column; gap: 6px; }
.bf-k { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.bf-k .mono { font-family: var(--gc-mono); font-size: 12px; color: var(--gc-text-2); }
.bf-dateien { display: flex; gap: 6px; flex-wrap: wrap; }
.bf-dateien .chip svg.i { width: 13px; height: 13px; }
@media (max-width: 900px) { .bf-datum { margin-left: 0; width: 100%; } .bf-datum .inp { flex: 1; } }

/* ── 3D-Drahtmodell (Reiter „3D“, viewer3d.mjs) — Geometrie nur aus dem superkern ─────────── */
.cad-reiter { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cad-reiter .cad-tabs { align-self: flex-start; }
.cad-stage { min-width: 0; }
.cad-reiter.ql { width: 100%; height: 100%; padding: 10px 12px 12px; gap: 8px; }
.cad-reiter.ql .cad-stage { flex: 1; min-height: 0; display: flex; }
.cad-reiter.ql .cad-stage > * { flex: 1; min-width: 0; min-height: 0; }
.cad-reiter.ql .cad-sheet { padding: 0; }
.v3d-wurzel { height: min(72vh, 780px); display: flex; min-width: 0; }
.cad-reiter.ql .v3d-wurzel { height: auto; }
.v3d-wurzel > .loading, .v3d-wurzel > .err { margin: auto; }
/* Große Analyse: mit Reiter „3D“ bekommt der Betrachter die volle Breite, die Karten folgen darunter */
.ana-grid:has(> .ana-links .cad-reiter .v3d-wurzel, > .ana-links .cad-reiter .v3d-nicht) { grid-template-columns: minmax(0, 1fr); }
.ana-grid:has(> .ana-links .cad-reiter .v3d-wurzel, > .ana-links .cad-reiter .v3d-nicht) > .ana-links { position: static; }
/* Betrachter-Stile (.v3d…): eigene Datei viewer3d.css — die App trägt sie als angeheftete Kopie */

/* ── 3D (Kanten-Paket): Filter-Chip + Badge an Kachel/Zeile — öffnet den Quick Look im Reiter „3D“ ── */
.chip .c3d { font-size: 10px; font-weight: 800; letter-spacing: 0.02em; padding: 0 4px; border-radius: var(--gc-r-xs); background: var(--gc-accent-soft); color: var(--gc-accent); line-height: 1.5; }
.chip.on .c3d { background: var(--gc-accent); color: var(--gc-on-accent, #fff); }
.chip .chip-n { font-variant-numeric: tabular-nums; color: var(--gc-text-3); font-weight: 500; }
.chip.on .chip-n { color: inherit; }
.chip[disabled] { opacity: 0.45; cursor: default; }
.b3d {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 1px 7px; border-radius: var(--gc-r-xs);
  border: 1px solid var(--gc-accent); background: var(--gc-accent-soft); color: var(--gc-accent);
  font: 700 10.5px/1.5 inherit; letter-spacing: 0.02em; cursor: pointer; min-height: 0;
}
.b3d:hover { background: var(--gc-accent); color: var(--gc-on-accent, #fff); }
.b3d:focus-visible { outline: 2px solid var(--gc-ring); outline-offset: 1px; }
.b3d.zeile { position: static; margin-left: 6px; vertical-align: 1px; }
@media (pointer: coarse) { .b3d { padding: 3px 9px; font-size: 12px; } }
.v3d-leg-e.entartet { color: var(--gc-text-3); font-style: italic; }

/* ── Renderings (gitchain-render@v1): erzeugt, kein Originalfoto ─────────────── */
.render-gal { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; min-width: 0; }
.render-gal.ql { margin: 0; height: 100%; overflow: auto; border: 0; background: transparent; }
.rg-kopf { display: flex; align-items: center; gap: 8px; }
.rg-badge { font: 600 11px/1 var(--gc-font); letter-spacing: 0.02em; text-transform: uppercase; padding: 4px 7px; border-radius: var(--gc-r-pill, 999px);
  background: var(--gc-warn-soft); color: var(--gc-warn-text); border: 1px solid var(--gc-warn); }
.rg-buehne { background: #fff; border: 1px solid var(--gc-line); border-radius: var(--gc-r-sm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rg-gross { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.render-gal.ql .rg-gross { max-height: min(62vh, 760px); }
.render-gal.ql-leiste .rg-gross, .render-gal.detail .rg-gross { max-height: 260px; }
.rg-leiste { display: flex; gap: 6px; flex-wrap: wrap; }
.rg-k { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--gc-line); border-radius: var(--gc-r-sm);
  background: var(--gc-surface); color: var(--gc-text-2); font: 500 11.5px/1.2 var(--gc-font); cursor: pointer; min-width: 64px; }
.rg-k img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 4px; }
.rg-k[aria-pressed="true"] { border-color: var(--gc-accent); color: var(--gc-accent-text); background: var(--gc-accent-soft); }
.rg-k:focus-visible { outline: 2px solid var(--gc-ring); outline-offset: 1px; }
.rg-farbzeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--gc-text-2); }
.rg-farbe { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--gc-line-strong); flex: none; background: #9a9a9a; }
.rg-farbzeile[data-status="unbelegt"] { color: var(--gc-text-3); font-style: italic; }
.rg-beleg { font-size: 12px; color: var(--gc-text-3); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.rg-fuss { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--gc-text-3); }
.rg-fuss .btn { margin-left: auto; }
.ql-mit-render { display: flex; flex-direction: column; gap: 10px; height: 100%; overflow: auto; }
.ql-mit-render > :first-child { flex: 1 0 auto; min-height: min(440px, 56vh); }
.ql-mit-render > .render-gal { flex: none; }

/* ── Zugehörige Produkte + Medien je SNR (Angaben-Index des superkern) ───────── */
.medien-leiste { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; min-width: 0; }
.medien-leiste > * { flex-shrink: 0; }
.md-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.md-kopf b { font-size: 13.5px; }
.md-q { font-size: 11.5px; color: var(--gc-text-3); margin-right: auto; }
.md-zu svg.i { transform: rotate(90deg); transition: transform 0.15s var(--gc-ease); }
.medien-leiste.zu .md-zu svg.i { transform: rotate(0deg); }
.medien-leiste.zu > :not(.md-kopf) { display: none !important; }
.md-snrs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.md-s { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 220px; padding: 5px 9px; text-align: left;
  border: 1px solid var(--gc-line); border-radius: var(--gc-r-sm); background: var(--gc-surface); color: var(--gc-text); cursor: pointer; font: 500 12px/1.25 var(--gc-font); }
.md-s .nr { font-weight: 600; font-size: 12.5px; }
.md-s .kt { color: var(--gc-text-2); font-weight: 400; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-s .ty { color: var(--gc-text-3); font-size: 11px; }
.md-s[aria-pressed="true"] { border-color: var(--gc-accent); background: var(--gc-accent-soft); }
.md-s[aria-pressed="true"] .nr { color: var(--gc-accent-text); }
.md-s:focus-visible, .md-k:focus-visible { outline: 2px solid var(--gc-ring); outline-offset: 1px; }
.md-arten { align-self: flex-start; max-width: 100%; overflow-x: auto; }
.md-arten button { padding: 5px 10px; font-size: 12.5px; }
.md-arten button[disabled] { opacity: 0.45; cursor: default; }
.md-n { font-size: 11px; color: var(--gc-text-3); font-variant-numeric: tabular-nums; }
.md-arten button.on .md-n { color: var(--gc-accent-text); }
.md-info { font-size: 11.5px; color: var(--gc-text-3); }
.md-info:empty { display: none; }
.md-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; min-width: 0; }
.medien-leiste.md-detail .md-gal { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.md-k { display: flex; flex-direction: column; gap: 4px; padding: 5px; min-width: 0; text-align: left; border: 1px solid var(--gc-line); border-radius: var(--gc-r-sm);
  background: var(--gc-surface); color: var(--gc-text); font: 500 11.5px/1.25 var(--gc-font); cursor: pointer; }
.md-k:hover { border-color: var(--gc-line-strong); background: var(--gc-hover); }
.md-k.fehlt { cursor: default; opacity: 0.72; border-style: dashed; }
.md-k.fehlt:hover { background: var(--gc-surface); border-color: var(--gc-line); }
.md-bild { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; overflow: hidden; }
.md-bild .ticon.hidden { display: none; }
.ql .qb .md-bild img, .md-bild img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }
.md-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.md-chip { font: 600 10.5px/1 var(--gc-font); padding: 3px 5px; border-radius: var(--gc-r-xs); background: var(--gc-surface-3); color: var(--gc-text-2); }
.md-chip.typ { background: var(--gc-badge); color: var(--gc-on-badge); font-family: var(--gc-mono); }
.md-chip.druck { background: var(--gc-accent-soft); color: var(--gc-accent-text); }
.md-chip.web { background: var(--gc-ok-soft); color: var(--gc-ok-text); }
.md-chip.rf { font-variant-numeric: tabular-nums; }
.md-chip.fehlt { background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.md-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-datei { font-size: 10.5px; color: var(--gc-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-snr { font-size: 10.5px; color: var(--gc-text-3); }
.md-mehr { grid-column: 1 / -1; justify-self: center; }
/* Quick Look: Vorschau oben, Leiste unten (einklappbar) */
.ql-mit-medien { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow-y: auto; }
.ql-mit-medien > .ql-pv { flex: 1 1 auto; min-height: min(320px, 50vh); position: relative; display: flex; align-items: center; justify-content: center; }
.ql-mit-medien > .ql-pv > * { max-width: 100%; max-height: 100%; }
.ql-mit-medien > .ql-pv > iframe, .ql-mit-medien > .ql-pv > .cad-reiter, .ql-mit-medien > .ql-pv > .ql-mit-render, .ql-mit-medien > .ql-pv > .render-gal { width: 100%; height: 100%; }
.medien-leiste.md-ql { flex: none; margin: 0; max-height: 42%; overflow: auto; border-radius: 0; border-width: 1px 0 0; background: var(--gc-surface); }
.medien-leiste.md-ql.zu { max-height: none; overflow: visible; }
@media (max-width: 640px) {
  /* schmal: Vorschau/3D behält ihre Höhe, die Leiste folgt darunter (Quick Look scrollt) */
  .ql-mit-medien > .ql-pv { flex: 0 0 auto; height: 64dvh; min-height: 0; }
  .medien-leiste.md-ql { max-height: none; overflow: visible; }
  .md-gal { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .md-s { max-width: 170px; }
}

/* ── ETIM-Katalog je SNR (superkern /etim katalog) ── */
.katalog-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; min-width: 0; }
.katalog-panel > * { flex-shrink: 0; }
.katalog-panel .md-zu svg.i { transform: rotate(90deg); transition: transform .15s; }
.katalog-panel.zu .md-zu svg.i { transform: rotate(0deg); }
.katalog-panel.zu > :not(.md-kopf) { display: none !important; }
.katalog-panel.gd-ql { flex: none; margin: 0; max-height: 46%; overflow: auto; border-radius: 0; border-width: 1px 0 0; background: var(--gc-surface); }
.katalog-panel.gd-ql.zu { max-height: none; overflow: visible; }
.gd-inhalt { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.gd-q { color: var(--gc-text-3); font-size: 12px; }
.gd-ef { color: var(--gc-text-3); font-size: 11.5px; }
.gd-tab-w { max-width: 100%; max-height: min(62vh, 640px); overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gc-border-soft, rgba(0,0,0,.06)); border-radius: 6px; }
.gd-tab { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.gd-tab th { text-align: left; font-weight: 600; color: var(--gc-text-2); padding: 5px 8px; border-bottom: 1px solid var(--gc-border, rgba(0,0,0,.12)); position: sticky; top: 0; background: var(--gc-surface); white-space: nowrap; }
.gd-tab td { padding: 5px 8px; border-bottom: 1px solid var(--gc-border-soft, rgba(0,0,0,.06)); vertical-align: top; overflow-wrap: break-word; }
.gd-tab td.gd-w { font-variant-numeric: tabular-nums; min-width: 5em; max-width: 22em; }
.gd-tab td:first-child { min-width: 11em; }
.gd-beleg { display: inline-block; margin: 0 6px 2px 0; font-size: 12px; color: var(--gc-accent-text, #2563eb); text-decoration: none; }
.gd-beleg:hover { text-decoration: underline; }
.gd-beleg.fehlt { color: var(--gc-text-3); }
.gd-kk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.gd-klform { display: inline-flex; gap: 6px; margin-left: auto; }
.gd-kl { width: 9.5em; font: inherit; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--gc-border, rgba(0,0,0,.2)); background: var(--gc-surface); color: var(--gc-text); }
.md-bild.md-render .md-erzeugt { position: absolute; left: 4px; bottom: 4px; font-size: 9px; padding: 2px 5px; }
.md-bild.md-render img { object-fit: contain; }
@media (max-width: 640px) { .gd-klform { margin-left: 0; } }

/* ── Innovation (GitChain Engineer) ─────────────────────────────────────────── */
.inno-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container (min-width: 1100px) { .inno-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.inno-grid > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.inno-abs h3 { font-size: 13px; margin: 14px 0 4px; font-weight: 650; }
.inno-egress { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gc-ink-2); background: var(--gc-surface-2); border: 1px solid var(--gc-line); border-radius: var(--gc-r-card); padding: 8px 12px; }
.inno-egress svg { width: 16px; height: 16px; flex: none; }
.inno-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inno-chip { display: inline-flex; align-items: center; font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--gc-line); background: var(--gc-surface-2); color: var(--gc-ink-2); white-space: nowrap; }
.inno-chip.ok { border-color: color-mix(in srgb, var(--gc-ok) 45%, transparent); background: var(--gc-ok-soft); color: var(--gc-ok-text); }
.inno-chip.warn { border-color: color-mix(in srgb, var(--gc-warn) 45%, transparent); background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.inno-kz { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 4px 10px; font-size: 12.5px; margin: 8px 0; }
.inno-kz dt { color: var(--gc-ink-2); }
.inno-kz dd { margin: 0; overflow-wrap: anywhere; }
.inno-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.inno-tab th, .inno-tab td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--gc-line); vertical-align: top; }
.inno-tab td.num { text-align: right; font-variant-numeric: tabular-nums; }
.inno-beschr { margin: 6px 0 0; font-size: 13px; }
.inno-thema { border-top: 1px solid var(--gc-line); padding: 6px 0; }
.inno-thema summary { cursor: pointer; font-size: 13px; }
.inno-funde { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.inno-funde li > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inno-funde a { color: var(--gc-accent); overflow-wrap: anywhere; }
.inno-funde q { display: block; color: var(--gc-ink-2); font-style: italic; }
.inno-aussage { margin-top: 2px; }
.inno-konzept, .inno-variante { border-top: 1px solid var(--gc-line); padding: 10px 0 4px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.inno-konzept p, .inno-variante p { margin: 0; }
.inno-konzept ul { margin: 0; padding-left: 18px; }
.inno-k-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inno-bew { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); gap: 4px 10px; font-size: 12.5px; margin: 0; }
.inno-bew dt { color: var(--gc-ink-2); }
.inno-bew dd { margin: 0; overflow-wrap: anywhere; }
.inno-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.inno-bilder figure { margin: 0; background: var(--gc-surface-2); border: 1px solid var(--gc-line); border-radius: var(--gc-r-card); overflow: hidden; }
.inno-bilder img { display: block; width: 100%; height: auto; }
.inno-bilder figcaption { font-size: 11.5px; color: var(--gc-ink-2); padding: 4px 8px; }
.inno-entscheid { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.inno-grund { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--gc-line); border-radius: 8px; background: var(--gc-surface); color: var(--gc-ink); }
.inno-karte p { margin: 4px 0 8px; }
.hint.warn { color: var(--gc-warn-text); }


/* ═══ Liquid Glass (C-Entscheid 20.10.2026) ═══════════════════════════════════════════════
   Ganz S3 nach der Canvas „GitChain S3 · Liquid Glass“ (Boards Mediathek Hell/Schwarz, Datei
   gewählt, Seitenleiste, Detailseite, Viewer). Tokens + gx-Klassen + Keyframes: glass.css
   (wird NACH dieser Datei geladen). Dieser Abschnitt legt das gemeinsame System (--gc-*) auf
   die Glas-Tokens um und baut die Mediathek: Leiste | Kopf + Filter + Raster | Inspektor. */

/* ── G1 · Gemeinsame Tokens → Glas (gilt hell und schwarz; Werte wechseln in glass.css) ── */
:root,
:root:not([data-theme="light"]),
:root[data-theme="dark"] {
  --gc-canvas: var(--g-bg);
  --gc-surface: var(--g-group);
  --gc-surface-2: var(--g-fill);
  --gc-surface-3: var(--g-fill);
  --gc-raised: var(--g-lens);
  --gc-hover: rgba(127, 127, 135, 0.13);
  --gc-selected: var(--g-lens);
  --gc-line: var(--g-sep);
  --gc-line-soft: var(--g-sep);
  --gc-line-strong: var(--g-sep);
  --gc-text: var(--g-fg);
  --gc-text-2: var(--g-fg2);
  --gc-text-3: var(--g-fg3);
  --gc-text-4: var(--g-fg3);
  --gc-icon: var(--g-fg2);
  --gc-accent: var(--g-accent-fill);
  --gc-accent-hover: #0060c9;
  --gc-accent-soft: var(--g-accent-soft);
  --gc-accent-line: var(--g-accent-soft);
  --gc-accent-text: var(--g-accent);
  --gc-ring: rgba(0, 113, 227, 0.35);
  --gc-select: var(--g-accent-soft);
  --gc-select-strong: var(--g-accent-soft);
  --gc-t-pdf: var(--g-t-pdf);
  --gc-t-bild: var(--g-t-bild);
  --gc-t-video: var(--g-t-video);
  --gc-t-cad: var(--g-t-cad);
  --gc-t-office: var(--g-t-office);
  --gc-t-archiv: var(--g-t-archiv);
  --gc-t-sonstig: var(--g-t-rest);
  --gc-t-text: var(--g-t-rest);
  --gc-r-card: 18px;
  --gc-r-panel: 26px;
  --gc-shadow-pop: var(--g-pane-sh-hi);
  --gc-glass: var(--g-pane-hi);
  --gc-glass-line: transparent;
  --gc-font: var(--g-font);
  --gc-mono: var(--g-mono);
}
html, body { background: var(--g-bg); color: var(--g-fg); }
body { font-family: var(--g-font); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--g-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Flächen: Inhalt-Panels = Pane, Werkzeugleiste = Glas, Schwebendes = Pane hell */
.glass { background: var(--g-glass); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); border: 0; border-radius: 28px; box-shadow: var(--g-glass-sh); }
.glass.soft { background: var(--g-pane); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); border: 0; border-radius: 26px; box-shadow: var(--g-pane-sh); }
.glass.pop { background: var(--g-pane-hi); -webkit-backdrop-filter: blur(44px) saturate(190%); backdrop-filter: blur(44px) saturate(190%); border: 0; box-shadow: var(--g-pane-sh-hi); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--g-fg3); }
a, a:hover { color: var(--g-accent); }

/* Knöpfe (Board: Pillen 40/38 px, Primär = pri, Neben = fill, Kreise = fill) */
.btn {
  height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 17px 0 14px; border: 0; border-radius: 20px;
  background: var(--g-pri); color: var(--g-pri-fg); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: var(--g-pri-sh-top);
  transition: transform .2s var(--g-ease), box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { background: var(--g-pri); color: var(--g-pri-fg); filter: brightness(1.06); }
.btn:active { transform: scale(.96); }
.btn svg.i { width: 17px; height: 17px; stroke-width: 1.9; }
.btn.sm { height: 38px; padding: 0 15px 0 12px; font-size: 14px; }
.btn.secondary { background: var(--g-fill); color: var(--g-fg); border: 0; box-shadow: none; font-weight: 500; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.secondary:hover { background: var(--g-fill); color: var(--g-fg); filter: none; background-color: rgba(127, 127, 135, 0.2); }
.btn.ghost { background: transparent; color: var(--g-accent); box-shadow: none; }
.btn.block { height: 48px; width: 100%; font-size: 16px; }
.btn.ki, .btn.ki:hover { background: var(--g-ai-btn); color: var(--g-ai-btn-fg); border: 1.5px solid transparent; box-shadow: 0 10px 24px -10px rgba(24, 24, 40, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; filter: none; }
/* ki.css gestaltet die Klasse .ki als KI-Panel (Spalte, 24 px Rand, Höhe 100 %) — der Knopf trägt dieselbe Klasse und wurde so zur
   104 px hohen Karte im Kopf der Dateiseite (C 29.10.). Hier bleibt er ein Knopf wie .btn / .btn.sm. */
.btn.ki { position: static; flex-direction: row; gap: 7px; overflow: visible; height: 40px; padding: 0 17px 0 14px; }
.btn.ki.sm { height: 38px; padding: 0 15px 0 12px; }
.btn.ki .ki-ic { display: flex; color: #48484a; }
.btn.ki svg.i { stroke-width: 2; }
.ib {
  width: 40px; height: 40px; border: 0; border-radius: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--g-fill); color: var(--g-fg); box-shadow: none;
}
.ib:hover { background: var(--g-fill); color: var(--g-fg); background-color: rgba(127, 127, 135, 0.22); }
.ib svg.i { width: 17px; height: 17px; stroke-width: 1.8; }
.ib.ghost { background: transparent; color: var(--g-fg2); }
.ib.on { background: var(--g-accent-soft); color: var(--g-accent); box-shadow: var(--g-on-sh); }
.ib[disabled] { opacity: 0.35; cursor: default; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: 20px; background: var(--g-fill); }
.seg button { border: 0; border-radius: 17px; padding: 0 12px; height: 34px; background: transparent; color: var(--g-fg2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--g-lens); color: var(--g-fg); box-shadow: var(--g-lens-sh); font-weight: 600; }
.seg button.on svg.i { color: inherit; }
.input, select.sel { background: var(--g-fill); border: 0; color: var(--g-fg); box-shadow: none; }
.input:focus { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.35); }
kbd { font-family: var(--g-font); }

/* ── G2 · Schale: Leiste | Hauptspalte (Kopf, Filter, Raster + Inspektor) ─────────────── */
.app {
  grid-template-columns: 60px minmax(0, 1fr); gap: 12px; /* Stapelkontext kommt aus z-index: 1 (Abglanz z-index -1 bleibt darin) */
  padding: calc(12px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
}
/* Abglanz (nur Schwarz): unscharfes Vorschaubild der Auswahl oben rechts hinter allem */
.amb { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; display: none; }
.amb img { position: absolute; top: -220px; right: -300px; width: 1280px; height: 900px; object-fit: cover; filter: blur(120px) saturate(1.7); opacity: 0; transition: opacity .9s ease; }
.amb img.da { opacity: 0.5; }
:root[data-theme="dark"] .amb { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .amb { display: block; } }
.app.datei-gross .amb img { top: -260px; left: 10%; right: auto; width: 80%; filter: blur(140px) saturate(1.6); }
.app.datei-gross .amb img.da { opacity: 0.42; }

/* Leiste (eingeklappte Seitenleiste): Aussehen in schale.css (gemeinsam mit den Nebenseiten), hier nur der Platz im Raster */
.rail { grid-column: 1; grid-row: 1; align-self: start; }
.user .av, .av { width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; background: var(--g-accent-soft); color: var(--g-accent); font-size: 14px; font-weight: 700; box-shadow: none; }

/* Seitenleiste ausgeklappt (Board „Seitenleiste“): schwebt über allem, gxOpen */
.side.glass {
  position: fixed; z-index: 8; left: calc(12px + env(safe-area-inset-left)); top: calc(12px + env(safe-area-inset-top)); bottom: auto;
  width: 296px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex; flex-direction: column; padding: 10px 12px 12px; border-radius: 26px; overflow: hidden;
  background: var(--g-pane-hi); -webkit-backdrop-filter: blur(44px) saturate(190%); backdrop-filter: blur(44px) saturate(190%); box-shadow: var(--g-pane-sh-hi);
  transform: translateX(calc(-100% - 40px)); opacity: 0; pointer-events: none; transition: none;
}
.side.glass.open { transform: none; opacity: 1; pointer-events: auto; animation: gxOpen 260ms var(--g-ease) both; }
.scrim.open { display: block; position: fixed; inset: 0; z-index: 7; background: var(--g-scrim); animation: gxBoxIn 240ms ease-out both; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 0 0 6px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
.brand .name { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -0.012em; }
.brand .name span { font-weight: 500; color: var(--g-fg3); }
#side-zu { width: 36px; height: 36px; border-radius: 18px; background: var(--g-fill); color: var(--g-fg2); }
.side .scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 14px -4px 0; padding: 0 4px; }
.side .label { display: block; padding: 14px 8px 4px; }
.side .scroll > .label:first-child { padding-top: 0; }
#drives { display: flex; flex-direction: column; gap: 4px; }
.drive { display: flex; align-items: center; gap: 11px; width: 100%; margin: 0; padding: 8px 10px 9px 8px; border: 0; border-radius: 14px; background: transparent; color: inherit; text-align: left; }
.drive.on { background: var(--g-lens); box-shadow: var(--g-lens-sh); }
.drive .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--g-fill); color: var(--g-fg2); box-shadow: none; grid-row: auto; }
.drive .ic svg.i { width: 18px; height: 18px; stroke-width: 1.7; }
.drive.on .ic { background: var(--g-accent-soft); color: var(--g-accent); box-shadow: none; }
.drive.lock .ic { background: var(--g-amber-bg); color: var(--g-amber-fg); }
.drive .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.drive .r1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.drive .t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive.on .t { font-weight: 600; }
.drive .sz, .drive .m { font-size: 12px; color: var(--g-fg3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.drive .bar { display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--g-track); overflow: hidden; }
.drive .bar i { display: block; height: 3px; border-radius: 2px; background: var(--g-bar-off); }
.drive.on .bar i { background: var(--g-bar-on); }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; margin: 0; padding: 0 12px 0 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-size: 14px; font-weight: 500; text-align: left; }
.nav svg.i { width: 18px; height: 18px; color: var(--g-fg2); stroke-width: 1.7; }
.nav.on { background: var(--g-lens); box-shadow: var(--g-lens-sh); }
.nav.on svg.i { color: var(--g-accent); }
.nav .n { font-size: 12.5px; color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.nav .n.amber { min-width: 22px; height: 20px; box-sizing: border-box; padding: 0 7px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--g-amber-bg); color: var(--g-amber-fg); font-size: 12px; font-weight: 700; }
.side .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 0; border-radius: 13px; }
.side .seg button { height: 30px; justify-content: center; border-radius: 10px; font-size: 12.5px; white-space: nowrap; padding: 0 6px; }
.store { margin-top: 14px; padding: 14px 14px 13px; border: 0; border-radius: 16px; background: var(--g-group); box-shadow: var(--g-group-sh); font-size: 13px; }
.store .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--g-fg2); }
.store .row b { color: var(--g-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.store .bar { display: flex; gap: 2px; height: 6px; margin: 11px 0 12px; background: none; border-radius: 0; overflow: visible; }
.store .bar i { display: block; height: 6px; min-width: 3px; border-radius: 2px; }
.store .zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 12px; color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.store .zahlen .r { text-align: right; }
.store .zahlen b { color: var(--g-fg); font-weight: 600; }
.user { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 2px 0 4px; border: 0; }
.user .who b { font-size: 14px; font-weight: 600; }
.user .who span { font-size: 12px; color: var(--g-fg3); }
#logout { width: 34px; height: 34px; border-radius: 11px; background: var(--g-fill); color: var(--g-fg2); }

/* Hauptspalte */
.mainc { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.toolbar.glass { position: relative; z-index: 3; flex: none; display: block; min-height: 56px; padding: 8px 8px 8px 12px; border-radius: 28px; }
.tb-row.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 40px; }
.crumbs { flex: 0 1 auto; display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; font-size: 14px; color: var(--g-fg2); }
.crumbs button { height: 32px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-weight: 500; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs button:hover { background: rgba(127, 127, 135, 0.13); color: var(--g-fg); }
.crumbs button svg.i { width: 16px; height: 16px; stroke-width: 1.7; }
.crumbs button.last { flex: 0 1 auto; min-width: 0; display: block; line-height: 32px; padding: 0 8px 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--g-fg); }
.crumbs button.last:hover { background: transparent; }
.crumbs .sepc { display: flex; color: var(--g-fg3); }
.crumbs .sepc svg.i { width: 12px; height: 12px; stroke-width: 2; }
.tb-n { font-size: 13px; color: var(--g-fg3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-n:empty { display: none; }
.filt-tg { height: 32px; flex: none; display: flex; align-items: center; gap: 7px; margin: 0; padding: 0 10px 0 12px; border: 0; border-radius: 16px; background: var(--g-chip-on); box-shadow: var(--g-chip-on-sh); color: var(--g-chip-on-fg); font-size: 13px; font-weight: 600; white-space: nowrap; }
.filt-tg > i { width: 7px; height: 7px; border-radius: 4px; }
.filt-tg .rot { display: flex; opacity: 0.7; transition: transform 240ms var(--g-ease); }
.filt-tg .rot svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.filt-tg[aria-expanded="true"] .rot { transform: rotate(180deg); }
.search { margin-left: auto; position: relative; flex: 0 1 300px; min-width: 160px; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 7px 0 14px; border: 0; border-radius: 20px; background: var(--g-fill); color: var(--g-fg3); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; cursor: text; }
.search:focus-within { border-color: transparent; }
.search svg.i { width: 17px; height: 17px; color: currentColor; }
.search input { flex: 1; min-width: 0; height: 100%; font-size: 14px; color: var(--g-fg); }
.search input::placeholder { color: currentColor; opacity: 0.6; }
.search kbd { flex: none; min-width: 22px; height: 22px; box-sizing: border-box; padding: 0 6px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: var(--g-key); color: var(--g-fg2); font-family: var(--g-mono); font-size: 12px; font-weight: 500; }
.search .clear { color: var(--g-fg3); }
#lay { flex: none; border-radius: 20px; }
#lay button { width: 34px; padding: 0; justify-content: center; }
#lay svg.i { width: 16px; height: 16px; }
.qmode { flex: none; }
.sortw { position: relative; flex: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--g-fill); color: var(--g-fg2); }
.sortw svg.i { width: 17px; height: 17px; }
.sortw select.sel { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.sortw.aus { opacity: 0.4; }
.sortw:focus-within { outline: 2px solid #0A84FF; outline-offset: 2px; }
.tb-row.top > .ib { flex: none; color: var(--g-fg2); }
.tb-row.top > .ib svg.i { width: 18px; height: 18px; stroke-width: 1.7; }
#detail-tg svg.i { width: 19px; height: 19px; }
#detail-tg.on { background: var(--g-accent-soft); color: var(--g-accent); box-shadow: var(--g-on-sh); }
.upbtn.btn { height: 40px; padding: 0 16px 0 13px; }
.standband { margin-top: 8px; border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1px var(--gc-warn); }
body.vergangen .toolbar.glass { box-shadow: var(--g-glass-sh), inset 0 0 0 1px var(--gc-warn); }

/* Filterzeile „Nach Art“ (Board: Glas-Chips, aktive Art schwarz/weiß, aufklappbar mit gxOpen) */
.chips { flex: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0 4px; margin: 0; }
.chips.zu { display: none; }
.chips:not(.zu) { animation: gxOpen 240ms ease-out both; }
.chip { height: 32px; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0 14px 0 12px; border: 0; border-radius: 16px; background: var(--g-glass); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: var(--g-glass-sh); color: var(--g-fg); font-size: 13px; font-weight: 500; }
.chip:hover { background: var(--g-glass); border: 0; color: var(--g-fg); }
.chip[data-group=""] { padding: 0 14px; }
.chip.on, .chip.on:hover { background: var(--g-chip-on); box-shadow: var(--g-chip-on-sh); color: var(--g-chip-on-fg); font-weight: 600; -webkit-backdrop-filter: none; backdrop-filter: none; }
.chip i { width: 7px; height: 7px; border-radius: 4px; }
.chip .chip-n { color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.chip.on .chip-n { color: inherit; opacity: 0.7; }
.chip[disabled] { opacity: 0.45; cursor: not-allowed; }
.zeitchip .zc-ic { display: flex; color: var(--g-fg2); }
.zeitchip .zc-v { display: flex; color: var(--g-fg3); }
.zeitchip svg.i { width: 15px; height: 15px; }
.zeitchip .zc-v svg.i { width: 12px; height: 12px; }
button.zeitchip { padding: 0 11px; }

/* Raster + Inspektor nebeneinander */
.body-row { flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 12px; }
.content { flex: 999 1 560px; min-width: 0; align-self: stretch; overflow-y: auto; overflow-x: hidden; padding: 4px 4px 0; margin: -4px -4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; scrollbar-width: thin; scrollbar-color: var(--g-sep) transparent; }
.statusline { margin: 0 4px 12px; color: var(--g-fg3); }
.statusline.sl-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.statusline h1 { font-size: 17px; font-weight: 700; letter-spacing: -0.012em; color: var(--g-fg); }
.section.label { margin: 4px 4px 10px; }
.fussnote { margin: 16px 0 0; padding: 0 4px; font-size: 12.5px; color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.pager { margin: 14px 0 0; color: var(--g-fg3); font-size: 12.5px; }
.empty { padding: 72px 20px; }
.empty .t { color: var(--g-fg); font-weight: 700; }
.empty .d { color: var(--g-fg3); }
.empty .fic svg.i { color: var(--g-fg3); fill: none; }

/* Kacheln (Board: 16:10, Radius 18, Bild füllt, Verlauf unten, Name/Größe weiß, Auswahlring + Haken) */
.grid, .grid.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin: 0; }
/* Kachelgröße (Knopf neben Raster/Liste): S 200 / M 260 (Vorgabe) / L 380 px Mindestbreite. Vorher fest 380 px — mit breitem
   Inspektor und Browser-Zoom blieb dann nur eine riesige Spalte. */
.grid.files.k-s { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.grid.files.k-l { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
#lay button.kachel { font: 600 12px/1 var(--g-font); color: var(--g-fg2); letter-spacing: .02em; }
.grid.folders { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; margin-bottom: 18px; }
.tile {
  position: relative; display: block; min-width: 0; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: var(--g-group); box-shadow: var(--g-thumb-sh), var(--g-group-sh); color: var(--g-fg); outline: 0 solid transparent; outline-offset: 3px;
  transition: outline-color .2s ease; user-select: none; -webkit-user-select: none;
}
.tile:hover { background: var(--g-group); border: 0; box-shadow: var(--g-thumb-sh), var(--g-group-sh); }
.tile.has-img, .tile.has-img:hover { background: #0B0B0C; color: #FFFFFF; box-shadow: var(--g-thumb-sh); }
.tile.sel, .tile.sel:hover { background: var(--g-group); border: 0; outline: 3px solid var(--g-ring-sel); box-shadow: var(--g-thumb-sh); }
.tile.has-img.sel { background: #0B0B0C; }
.tile.focus { outline: 2px solid var(--g-ring-sel); }
.tile.sel.focus { outline-width: 3px; box-shadow: var(--g-thumb-sh); }
.tile .th { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 0; background: transparent; box-shadow: none; aspect-ratio: auto; overflow: hidden; }
.tile .th.has { background: transparent; box-shadow: none; }
.tile .th .ticon { margin-bottom: 28px; }
.tile .th img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s ease; }
.tile .th img.main { object-fit: contain; transform-origin: 50% 50%; transition: opacity .3s ease, transform 650ms cubic-bezier(.2,.8,.2,1), filter 400ms ease; }
.tile .th img.main.cover { object-fit: cover; }
.tile .th img.bgimg { object-fit: cover; filter: blur(22px) brightness(0.55) saturate(1.3); transform: scale(1.15); }
.tile .th img.loaded, .tile .th img.bgimg[src] { opacity: 1; }
.gx-card.tile:hover img.main.loaded { transform: scale(1.18) translate(var(--kx, 0), var(--ky, 0)); filter: saturate(1.12) brightness(1.05); transition: opacity .3s ease, transform 7000ms cubic-bezier(.3,.1,.3,1), filter 400ms ease; }
.gx-card.tile:hover img.bgimg { transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) { .gx-card.tile:hover img.main.loaded { transform: none; } }
.tile .grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%); display: none; }
.tile.has-img .grad { display: block; }
.tile .rim { position: absolute; inset: 0; border-radius: 18px; box-shadow: var(--g-thumb-rim); pointer-events: none; }
.tile .chk { position: absolute; z-index: 2; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 13px; display: none; align-items: center; justify-content: center; background: var(--g-accent-fill); box-shadow: 0 0 0 2px #FFFFFF, 0 4px 12px rgba(0,0,0,0.35); color: #FFFFFF; }
.tile .chk svg.i { width: 14px; height: 14px; stroke-width: 2.8; }
.tile.sel .chk { display: flex; animation: gxOpen 240ms ease-out both; }
.tile .foot { position: absolute; z-index: 1; left: 12px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 9px; }
.tile .ext { flex: none; height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 8px 0 7px; border-radius: 11px; background: var(--g-fill); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; }
.tile.has-img .ext { background: rgba(0,0,0,0.34); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.42), 0 0 0 0.5px rgba(255,255,255,0.16); color: #FFFFFF; }
.tile .ext svg.i { width: 8px; height: 8px; }
.tile .nm.fname, .tile .nm { flex: 1; min-width: 0; min-height: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: inherit; padding: 0; -webkit-line-clamp: unset; }
.tile.has-img .nm { text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.tile .sz { flex: none; font-size: 12.5px; color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.tile.has-img .sz { color: rgba(255,255,255,0.84); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.tile .badge.dup { flex: none; }
.tile .more { position: absolute; z-index: 3; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 15px; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.34); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.42), 0 0 0 0.5px rgba(255,255,255,0.16); color: #FFFFFF; }
.tile:not(.has-img) .more { background: var(--g-fill); color: var(--g-fg); box-shadow: none; }
.tile:hover .more, .tile.focus .more { display: flex; }
@media (hover: none) { .tile .more { display: flex; } }
.tile .b3d { position: absolute; z-index: 2; top: 12px; right: 12px; left: auto; bottom: auto; height: 26px; padding: 0 10px; display: flex; align-items: center; border: 0; border-radius: 13px; background: rgba(0,0,0,0.42); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 0 0 1px rgba(125,122,255,0.65), inset 0 0.5px 0 rgba(255,255,255,0.45); color: #FFFFFF; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.tile .b3d:hover { background: rgba(0,0,0,0.6); color: #FFFFFF; }
.tile:hover .b3d, .tile.focus .b3d { right: 50px; }
.tile.folder { aspect-ratio: auto; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 44px 12px 14px; background: var(--g-pane); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--g-pane-sh); }
.tile.folder .fic { color: var(--g-accent); }
.tile.folder .fic svg.i { width: 28px; height: 28px; fill: var(--g-accent-soft); stroke-width: 1.6; }
.tile.folder .nm { white-space: nowrap; font-size: 14px; }
.tile.folder .mt { font-size: 12px; color: var(--g-fg3); justify-content: flex-start; }
.tile.folder .more { top: 50%; transform: translateY(-50%); }

/* Liste: Gruppe mit Haarlinien */
.list { border-spacing: 0; font-size: 13.5px; background: var(--g-group); box-shadow: var(--g-group-sh); border-radius: 18px; overflow: hidden; }
.list th { padding: 10px 12px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--g-fg3); border-bottom: 0.5px solid var(--g-sep); }
.list td { padding: 8px 12px; border-bottom: 0.5px solid var(--g-sep); }
.list tbody tr:last-child td { border-bottom: 0; }
.list tbody tr:hover td { background: rgba(127, 127, 135, 0.13); }
.list tbody tr.sel td { background: var(--g-accent-soft); }
.list tbody tr.focus td:first-child { box-shadow: inset 3px 0 0 var(--g-ring-sel); }
.list .lth { width: 40px; height: 40px; border-radius: 9px; background: var(--g-fill); }
.list tbody tr td:first-child, .list tbody tr td:last-child { border-radius: 0; }

/* Auswahlleiste: klebt unten mittig im Inhalt (Board) */
.selslot { position: sticky; bottom: 8px; z-index: 4; display: flex; justify-content: center; margin: 20px 0 32px; padding: 0 8px; pointer-events: none; }
.selslot:empty { display: none; }
.selbar {
  pointer-events: auto; max-width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 7px 7px 7px 16px;
  border-radius: 27px; background: var(--g-bar); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%); box-shadow: var(--g-bar-sh); color: var(--g-fg);
  animation: gxCardIn 240ms ease-out both;
}
.selbar.still { animation: none; }
.selbar .sb-n { display: flex; align-items: center; gap: 8px; padding-right: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.selbar .sb-ck { width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--g-accent-fill); color: #FFFFFF; }
.selbar .sb-ck svg.i { width: 12px; height: 12px; stroke-width: 3; }
.selbar .sb-sep { width: 1px; height: 24px; margin-right: 4px; background: var(--g-sep); }
.selbar .sb-live:empty { display: none; }
.selbar .btn { height: 40px; box-shadow: var(--g-pri-sh-bar); }
.selbar .btn.secondary { box-shadow: none; }
.selbar .btn.ki { box-shadow: 0 10px 24px -10px rgba(24, 24, 40, 0.35); }

/* ── G3 · Inspektor (Board „Datei gewählt“) ─────────────────────────────────────────── */
.detail.glass.soft {
  position: relative; flex: 0 0 auto; width: var(--detail-w, 340px); max-width: 50vw; align-self: flex-start; max-height: 100%; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 12px; border-radius: 26px; animation: gxCardIn 280ms var(--g-ease) both;
  scrollbar-width: thin; scrollbar-color: var(--g-sep) transparent;
}
.detail.glass.soft.closed { display: none; }
.detail > * { flex-shrink: 0; margin: 0; }
.detail .pv { position: relative; aspect-ratio: 16 / 9; margin: 0; border: 0; border-radius: 18px; overflow: hidden; background: #0B0B0C; box-shadow: 0 12px 30px -16px rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.detail .pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail .pv img.cover { object-fit: cover; }
.detail .pv img.bgimg { object-fit: cover; filter: blur(22px) brightness(0.55) saturate(1.3); transform: scale(1.15); }
.detail .pv .rim { position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.16); pointer-events: none; }
.detail .pv .dh { position: absolute; z-index: 2; top: 10px; right: 10px; margin: 0; display: flex; gap: 6px; }
.detail .pv .dh .ib { width: 32px; height: 32px; border-radius: 16px; background: rgba(0,0,0,0.34); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.42), 0 0 0 0.5px rgba(255,255,255,0.16); color: #FFFFFF; }
.detail .pv .dh .ib svg.i { width: 15px; height: 15px; stroke-width: 2.2; }
.pv-play, .dt-play { position: absolute; z-index: 1; left: calc(50% - 24px); top: calc(50% - 24px); width: 48px; height: 48px; margin: 0; padding: 0 0 0 3px; border: 0; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.2); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 0 0.5px rgba(255,255,255,0.35), 0 12px 30px rgba(0,0,0,0.35); color: #FFFFFF; }
.pv-play svg.i { width: 20px; height: 20px; }
.detail .dt-kopf { padding: 0 4px; }
.detail .dt-kopf h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -0.012em; }
.detail .sub, .detail .dt-kopf .sub { margin: 2px 0 0; font-size: 12.5px; color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.detail .sub .st, .dt-page .sub .st { margin-left: 8px; }
.detail .actions { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; }
.detail .actions .btn.grow { flex: 1 1 auto; height: 38px; border-radius: 19px; padding: 0 14px; box-shadow: var(--g-pri-sh-insp); }
.detail .actions .ib { flex: none; width: 38px; height: 38px; border-radius: 19px; }
.actions2 { display: flex; flex-wrap: wrap; gap: 8px; }
.actions2 .btn.sm { height: 34px; padding: 0 13px 0 11px; font-size: 13px; }
.actions2 .btn.sm svg.i { width: 15px; height: 15px; }
.detail .dh.kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 0 8px; margin: 0; }
.detail .dh.kopf h2 { flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail .dh.kopf .ib { width: 30px; height: 30px; border-radius: 15px; color: var(--g-fg2); }
.detail .dh.kopf .ib svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.namekarte { padding: 12px 14px; border-radius: 16px; background: var(--g-group); box-shadow: var(--g-group-sh); }
.namekarte .mono { font-size: 12px; line-height: 1.5; word-break: break-all; }
.namekarte .sub { margin-top: 6px; }
.alle-details { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; margin: 0; padding: 0 12px 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--g-accent); font: inherit; font-size: 13.5px; font-weight: 600; }
.alle-details:hover { background: rgba(127, 127, 135, 0.13); }
.alle-details svg.i { width: 15px; height: 15px; stroke-width: 2; }
/* Gruppe mit aufklappbaren Zeilen */
.sek-gruppe { display: flex; flex-direction: column; padding: 2px 0; border-radius: 16px; background: var(--g-group); box-shadow: var(--g-group-sh); }
.sek-h { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; box-sizing: border-box; margin: 0; padding: 8px 12px 8px 10px; border: 0; border-top: 0.5px solid var(--g-sep); border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.sek-gruppe > .sek-h:first-child { border-top: 0; border-radius: 14px 14px 0 0; }
.sek-h .chev { flex: none; display: flex; color: var(--g-fg3); transition: transform 240ms var(--g-ease); }
.sek-h .chev svg.i { width: 14px; height: 14px; stroke-width: 2.2; }
.sek-h[aria-expanded="true"] .chev { transform: rotate(90deg); }
.sek-h .sek-t { flex: none; font-size: 14px; font-weight: 600; }
.sek-h .sek-s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 12.5px; color: var(--g-fg3); }
.sek-h .sek-s .mono { font-size: 11.5px; }
.sek-h.fest { cursor: default; }
.sek-h.fest .chev { display: none; }
.sek-h:disabled { opacity: 1; color: inherit; }
.sek-b { padding: 0 12px 10px 33px; font-size: 13px; animation: gxOpen 240ms ease-out both; }
.sek-b[hidden] { display: none; }
.sek-h.fest + .sek-b { padding-left: 12px; }
.kvl .kvz { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 0.5px solid var(--g-sep); }
.kvl .kvz:first-child { border-top: 0; }
.kvz .k { color: var(--g-fg2); flex: none; }
.kvz .v { text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kvz .v .sub { color: var(--g-fg3); margin: 0; display: inline; }
.kvz .mono { font-size: 12.5px; }
.adr .adr-sha { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0 8px; }
.adr .adr-sha .tx { flex: 1; min-width: 0; }
.adr .adr-sha .sub { margin: 0; font-size: 12px; color: var(--g-fg3); }
.adr .adr-sha .mono { margin-top: 3px; font-size: 12px; line-height: 1.45; word-break: break-all; }
.adr .adr-z { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-top: 0.5px solid var(--g-sep); }
.adr .adr-z .k { flex: none; width: 64px; color: var(--g-fg2); }
.adr .adr-z .v { flex: 1; min-width: 0; text-align: right; font-size: 12px; word-break: normal; }
.ib.cp { flex: none; width: 30px; height: 30px; border-radius: 15px; background: transparent; color: var(--g-accent); }
.ib.cp svg.i { width: 16px; height: 16px; }
.sek-b .paths { list-style: none; margin: 0; padding: 0; }
.sek-b .paths li { display: flex; align-items: flex-start; gap: 6px; padding: 6px 0; border-top: 0.5px solid var(--g-sep); border-bottom: 0; }
.sek-b .paths li:first-child { border-top: 0; }
.sek-b .paths .pp { flex: 1; min-width: 0; font-family: var(--g-mono); font-size: 12px; line-height: 1.5; word-break: break-all; color: var(--g-fg2); }
.sek-b .paths .pp b { font-weight: 500; color: var(--g-fg); }
.sek-b .paths .ib { width: 30px; height: 30px; margin-top: -5px; border-radius: 15px; background: transparent; color: var(--g-accent); }
.sek-b .paths .ib svg.i { width: 15px; height: 15px; }
.sek-b .zl { padding: 0; border: 0; background: transparent; box-shadow: none; }
.sek-b .zl > .ana-t { display: none; }
.sek-b .dav p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; color: var(--g-fg2); }
.sek-b .dav kbd { padding: 1px 5px; border-radius: 5px; background: var(--g-key); font-size: 11.5px; font-weight: 600; }
.dav-z { display: flex; align-items: center; gap: 6px; height: 34px; box-sizing: border-box; padding: 0 3px 0 11px; border-radius: 10px; background: var(--g-fill); }
.dav-z .mono { flex: 1; min-width: 0; font-size: 11.5px; word-break: normal; }
.dav-z .ib.cp { width: 28px; height: 28px; border-radius: 8px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail .hint { border: 0; background: var(--g-group); box-shadow: var(--g-group-sh); border-radius: 16px; }
.detail .multi .big { font-weight: 700; }
.detail .ana { margin: 0; }
.ana-blk { border: 0; border-radius: 16px; background: var(--g-group); box-shadow: var(--g-group-sh); }
/* Ziehgriff am Inspektor */
.detail-griff::before { background: var(--g-sep); }

/* ── G4 · Viewer / Quick Look (Board „Viewer · Schwarz“) ─────────────────────────────── */
.ql-back { z-index: 60; padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); background: var(--g-bg); align-items: stretch; justify-content: stretch; animation: gxBoxIn 200ms ease-out both; }
.ql-back.still, .ql.still { animation: none; }
body.ql-info .ql-back { padding-right: calc(16px + var(--detail-w, 340px) + 16px); }
.ql, .ql.glass { width: 100%; height: auto; max-height: none; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: gxOpen 260ms var(--g-ease) both; }
.ql .qh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; }
.ql-titel { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 22px 6px 6px; border-radius: 28px; background: var(--g-glass); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: var(--g-glass-sh); }
.ql-titel .ib { width: 44px; height: 44px; border-radius: 22px; color: var(--g-fg); }
.ql-titel .ib svg.i { width: 16px; height: 16px; stroke-width: 2; }
.ql-titel .tx { min-width: 0; }
.ql .qh .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--g-mono); font-size: 13.5px; line-height: 1.3; font-weight: 500; }
.ql .qh .sub { margin-top: 1px; font-size: 12px; color: var(--g-fg2); font-variant-numeric: tabular-nums; }
.ql-akt { display: flex; align-items: center; gap: 8px; }
.ql-akt .btn { height: 44px; padding: 0 20px 0 16px; border-radius: 22px; }
.ql-akt .btn.glas.secondary { background: var(--g-glass); box-shadow: var(--g-glass-sh); }
.ql-seg { display: flex; gap: 2px; padding: 3px; border-radius: 25px; background: var(--g-glass); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: var(--g-glass-sh); }
.ql-seg .ib { width: 38px; height: 38px; border-radius: 19px; background: transparent; color: var(--g-fg2); }
.ql-seg .ib svg.i { width: 18px; height: 18px; stroke-width: 1.7; }
.ql-seg .ib[aria-pressed="true"] { background: var(--g-accent-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); color: var(--g-fg); }
.ql-stage { position: relative; flex: 1; min-height: 0; display: flex; }
.ql .qb { flex: 1; min-width: 0; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 4px 6%; background: transparent; border-radius: 18px; }
.ql .qb.fund, .ql .qb:has(.ql-mit-medien), .ql .qb:has(.v3d), .ql .qb:has(.ql-mit-render) { padding: 0; }
.ql .qb iframe { border-radius: 10px; background: #fff; box-shadow: 0 0 0 0.5px var(--g-sep), 0 30px 80px -30px rgba(0,0,0,0.9); }
.ql-bild { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ql-bild img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 0 0 0.5px rgba(255,255,255,0.14), 0 30px 80px -30px rgba(0,0,0,0.9); }
.ql-bild img.glow { position: absolute; left: 50%; top: 50%; width: 70%; height: 70%; transform: translate(-50%, -50%); object-fit: cover; filter: blur(70px); opacity: 0.16; border-radius: 0; box-shadow: none; pointer-events: none; }
.ql .qb video { border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); }
.ql .nav-l, .ql .nav-r { position: absolute; top: calc(50% - 26px); transform: none; z-index: 2; width: 52px; height: 52px; border-radius: 26px; background: var(--g-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: var(--g-glass-sh); color: var(--g-fg); }
.ql .nav-l { left: 4px; }
.ql .nav-r { right: 4px; }
.ql .nav-l svg.i, .ql .nav-r svg.i { width: 20px; height: 20px; stroke-width: 2; }
.ql .qf { align-self: center; max-width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 9px 18px; border: 0; border-radius: 24px; background: var(--g-glass); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: var(--g-glass-sh); font-size: 12.5px; color: var(--g-fg2); }
.ql .qf > span { display: flex; align-items: center; gap: 5px; }
.ql .qf .qf-pos { gap: 10px; }
.ql .qf .zahl { font-weight: 600; color: var(--g-fg); font-variant-numeric: tabular-nums; }
.ql .qf .fort { display: block; width: 72px; height: 3px; border-radius: 2px; background: var(--g-track); overflow: hidden; }
.ql .qf .fort i { display: block; height: 3px; border-radius: 2px; background: var(--g-fg); }
.ql .qf .qf-sep { width: 1px; height: 16px; background: var(--g-sep); }
.ql .qf kbd { min-width: 22px; height: 22px; box-sizing: border-box; padding: 0 6px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: var(--g-key); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.35); color: var(--g-fg); font-family: var(--g-font); font-size: 11.5px; font-weight: 600; }
/* Informationen neben dem Viewer (breite Fenster): der Inspektor schwebt rechts über dem Viewer */
@media (min-width: 1241px) {
  body.ql-offen .app { z-index: auto; }
  body.ql-offen .detail.glass.soft:not(.closed) { position: fixed; z-index: 61; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: var(--detail-w, 340px); max-width: 40vw; max-height: none; gap: 16px; padding: 14px 10px; }
  body.ql-offen .detail-griff { display: none; }
}
/* Viewer-Informationen: Überschrift über Karte (Board „Viewer“) */
.sek-fest { display: flex; flex-direction: column; gap: 6px; }
.sek-l { display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 0; padding: 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--g-fg3); }
.sek-l > span:first-child { flex: none; }
.sek-l .sek-s { min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; font-weight: 400; }
.sek-l .ok-ic { display: flex; color: var(--g-t-bild); }
.sek-l .ok-ic svg.i { width: 14px; height: 14px; stroke-width: 1.9; }
.sek-karte { padding: 4px 14px; border-radius: 16px; background: var(--g-group); box-shadow: var(--g-group-sh); font-size: 13px; }
.sek-karte .kvl .kvz { padding: 9px 0; }
.sek-karte .zl { padding: 4px 0; border: 0; background: transparent; box-shadow: none; }
.sek-karte .zl > .ana-t { display: none; }
.sek-karte .paths { list-style: none; margin: 0; padding: 0; }
.sek-karte .paths li { display: flex; align-items: flex-start; gap: 6px; padding: 8px 0; border-top: 0.5px solid var(--g-sep); }
.sek-karte .paths li:first-child { border-top: 0; }
.sek-karte .paths .pp { flex: 1; min-width: 0; font-family: var(--g-mono); font-size: 12px; line-height: 1.5; word-break: break-all; color: var(--g-fg2); }
.sek-karte .paths .pp b { font-weight: 500; color: var(--g-fg); }
.sek-karte .paths .ib { width: 30px; height: 30px; border-radius: 15px; background: transparent; color: var(--g-accent); }
.sek-karte .dav { padding: 8px 0; }
.sek-karte .dav p { margin: 0 0 8px; font-size: 12.5px; color: var(--g-fg2); }
.detail.im-viewer .actions2 { padding: 0 2px; }

/* ── G5 · Detailseite (Board „Detailseite“) ─────────────────────────────────────────── */
/* Große Ansichten brauchen den Platz: der Inspektor (gleicher Inhalt) tritt zurück; die Detailseite
   hat ihren eigenen Kopf mit „zurück“ statt der Werkzeugleiste. Die Leiste bleibt (C 30.10.: „navigation should stay“). */
@media (min-width: 1000px) { .app.ana-gross .detail.glass.soft, .app.ana-gross .detail-griff { display: none; } }
.app.datei-gross .toolbar, .app.datei-gross .chips { display: none; }
.dt-page { display: flex; flex-direction: column; gap: 12px; padding: 0 0 28px; min-width: 0; }
.dt-page > .dt-kopf { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 60px; padding: 8px; border-radius: 30px; }
.dt-kopf .zur { flex: none; height: 44px; padding: 0 14px 0 10px; border-radius: 22px; font-weight: 600; }
.dt-kopf .tx { flex: 1 1 220px; min-width: 0; padding: 0 4px; }
.dt-kopf h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -0.012em; }
.dt-kopf .sub { margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--g-fg3); }
.dt-kopf .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dt-stage { position: relative; width: 100%; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; background: #000; box-shadow: var(--g-stage-sh); display: flex; align-items: center; justify-content: center; cursor: zoom-in; animation: gxCardIn 280ms var(--g-ease) both; }
.dt-stage img.bgimg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(44px) brightness(0.45) saturate(1.4); }
.dt-stage img.main { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.dt-stage .rim { position: absolute; inset: 0; border-radius: 28px; box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.16); pointer-events: none; }
.dt-stage .ticon { position: relative; }
.dt-play { left: calc(50% - 38px); top: calc(50% - 38px); width: 76px; height: 76px; border-radius: 38px; padding-left: 5px; background: rgba(255,255,255,0.18); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 0 0.5px rgba(255,255,255,0.35), 0 18px 40px rgba(0,0,0,0.4); }
.dt-play svg.i { width: 30px; height: 30px; }
.dt-stage-f { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.dt-stage-f .pill { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; border-radius: 15px; background: rgba(0,0,0,0.36); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.42), 0 0 0 0.5px rgba(255,255,255,0.16); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; }
.dt-stage-f .pill svg.i { width: 10px; height: 10px; }
.dt-stage-f .ib.glas { width: 36px; height: 36px; border-radius: 18px; background: rgba(0,0,0,0.36); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.42), 0 0 0 0.5px rgba(255,255,255,0.16); color: #FFFFFF; }
.dt-stage-f .ib.glas svg.i { width: 16px; height: 16px; stroke-width: 2; }
.dt-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.dt-links { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dt-rechts { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dt-kzs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.dt-kz { padding: 14px 16px; border-radius: 20px; background: var(--g-pane); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--g-pane-sh); min-width: 0; animation: gxCardIn 280ms var(--g-ease) both; }
.dt-kz .k { font-size: 12px; font-weight: 600; color: var(--g-fg3); }
.dt-kz .v { margin-top: 4px; font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-kz .v.mono { font-size: 17px; line-height: 1.4; font-weight: 600; }
.dt-kz .s { margin-top: 2px; font-size: 12px; color: var(--g-fg3); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sek-gruppe.gross { padding: 4px; border-radius: 22px; background: var(--g-pane); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--g-pane-sh); }
.sek-gruppe.gross > .sek-h { min-height: 50px; padding: 8px 16px 8px 12px; }
.sek-gruppe.gross > .sek-h:first-child { border-radius: 18px 18px 0 0; }
.sek-gruppe.gross .sek-t { font-size: 15px; }
.sek-gruppe.gross > .sek-b { padding: 0 16px 12px 37px; }
.dt-ki { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 16px; border: 0; border-radius: 22px; background: var(--g-ai-bg); box-shadow: var(--g-ai-sh); color: inherit; font: inherit; text-align: left; }
.ki-kachel { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #8E939B, #61666F 55%, #4A4E56); box-shadow: 0 6px 16px -6px rgba(24,24,40,0.35), inset 0 1px 0 rgba(255,255,255,0.4); color: #FFFFFF; }
.ki-kachel svg.i { width: 20px; height: 20px; stroke-width: 2; }
.dt-ki .tx, .dt-akt .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dt-ki .tx b { font-size: 15px; font-weight: 700; }
.dt-ki .tx span, .dt-akt .tx span { font-size: 12px; color: var(--g-fg3); }
.dt-ki .chev, .dt-akt .chev { flex: none; display: flex; color: var(--g-fg3); }
.dt-ki .chev svg.i, .dt-akt .chev svg.i { width: 15px; height: 15px; stroke-width: 2; }
.dt-akts { display: flex; flex-direction: column; padding: 4px; border-radius: 22px; background: var(--g-pane); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--g-pane-sh); }
.dt-akt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; box-sizing: border-box; margin: 0; padding: 6px 14px 6px 10px; border: 0; border-top: 0.5px solid var(--g-sep); border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; }
a.dt-akt, a.dt-akt:hover { color: inherit; }
.dt-akts > .dt-akt:first-child { border-top: 0; border-radius: 18px 18px 0 0; }
.dt-akts > .dt-akt:last-child { border-radius: 0 0 18px 18px; }
.dt-akt .ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--g-fill); color: var(--g-fg2); }
.dt-akt .ic.live { background: var(--g-live-bg); color: var(--g-live-fg); }
.dt-akt .ic svg.i { width: 18px; height: 18px; stroke-width: 1.7; }
.dt-akt .tx b { font-size: 14px; font-weight: 600; }
/* Große Analyse + Innovation: Kopf als Glas */
.ana-page { padding: 0 0 28px; }
.ana-page-h { padding: 8px 12px; border-radius: 26px; background: var(--g-pane); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--g-pane-sh); }

/* ── G6 · Schwebendes: Menü, Blatt, Toast ─────────────────────────────────────────────── */
.menu.glass.pop { border-radius: 16px; padding: 6px; }
.menu button { border-radius: 10px; }
.menu button:hover, .menu button:focus-visible { background: var(--g-accent-fill); color: #fff; }
.toast { border: 0; border-radius: 22px; background: var(--g-bar); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%); box-shadow: var(--g-bar-sh); color: var(--g-fg); animation: gxCardIn 240ms ease-out both; }
.sheet-back, .blatt-scrim { background: var(--g-scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet.glass { border-radius: 26px 26px 0 0; }
.tabbar.glass { border: 0; }
.tabbar button.on { color: var(--g-accent); }
.ptr { color: var(--g-accent); background: var(--g-glass); box-shadow: var(--g-glass-sh); }
/* Anmeldung, Quittung, Einliefern: Glas-Karte auf dem Grund */
.login.glass, .page-card.glass { background: var(--g-pane); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--g-pane-sh); border-radius: 26px; }

/* ── G7 · Breiten ──────────────────────────────────────────────────────────────────────── */
/* 901–1240 px: Inspektor als schwebendes Panel rechts (wie bisher), Leiste bleibt */
@media (min-width: 901px) and (max-width: 1240px) {
  .app { grid-template-columns: 60px minmax(0, 1fr); }
  .detail.glass.soft { position: fixed; z-index: 40; right: 14px; top: 14px; bottom: 14px; max-height: none; width: min(360px, calc(100vw - 28px)); box-shadow: var(--g-pane-sh-hi); background: var(--g-pane-hi); }
  .search { flex-basis: 220px; }
}
/* Telefon (≤ 900 px): keine Leiste, Tab-Leiste unten, Seitenleiste als Schublade, Inspektor als Blatt */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); gap: 10px; height: auto; min-height: 100dvh; }
  .rail { display: none; }
  .mainc { grid-column: 1; }
  .side.glass { left: 0; top: 0; bottom: 0; max-height: none; width: min(300px, 86vw); border-radius: 0 26px 26px 0; padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); padding-left: calc(12px + env(safe-area-inset-left)); transform: translateX(-105%); }
  .toolbar.glass { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 30; padding: 8px; border-radius: 24px; }
  .tb-row.top { gap: 8px; }
  .crumbs { flex: 1 1 100%; order: 0; }
  .tb-n { order: 1; }
  .filt-tg { order: 2; }
  .search { order: 3; flex: 1 1 100%; margin-left: 0; }
  .qmode { order: 4; }
  #lay, .sortw, #zeit-tg, .upbtn, #detail-tg, #theme { order: 5; }
  #lay { margin-left: auto; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 6px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .body-row { display: block; }
  .content { overflow: visible; margin: 0; padding: 0; }
  .grid, .grid.files { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
  .tile .nm.fname { font-size: 14px; }
  .selslot { bottom: calc(84px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
  .selbar { padding: 6px 6px 6px 12px; gap: 4px; }
  .selbar .sb-sep { display: none; }
  .detail.glass.soft { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; max-height: 82dvh; border-radius: 26px 26px 0 0; z-index: 70; background: var(--g-pane-hi); box-shadow: var(--g-pane-sh-hi); animation: up 280ms var(--g-ease) both; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ql-back { padding: 0; }
  body.ql-info .ql-back { padding-right: 0; }
  .ql, .ql.glass { padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); gap: 16px; }
  .ql .qh { flex-wrap: nowrap; }
  .ql-titel { flex: 1 1 auto; padding-right: 14px; }
  .ql-akt .btn { width: 44px; padding: 0; }
  .ql .qb { padding: 0; }
  .ql .nav-l, .ql .nav-r { display: none; }
  .dt-page > .dt-kopf { position: static; border-radius: 24px; }
  .dt-kopf .acts { width: 100%; }
  .dt-stage { aspect-ratio: 4 / 3; border-radius: 22px; }
  .tabbar.glass { border-radius: 26px; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 4px 6px; background: var(--g-pane-hi); -webkit-backdrop-filter: blur(44px) saturate(190%); backdrop-filter: blur(44px) saturate(190%); box-shadow: var(--g-pane-sh-hi); }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ── Startbildschirm „Entdecken“ (C 21.10.) — über „Alle Dateien“, Liquid Glass, nur echte Daten ───────────────────── */
.ent { display: flex; flex-direction: column; gap: 22px; margin: 2px 0 26px; }
.ent-kopf-z { display: flex; align-items: center; gap: 10px; }
.ent-h { margin: 0; font: 700 22px/1.2 var(--g-font); letter-spacing: -.01em; color: var(--g-fg); }
.ent-tag { font-size: 12px; color: var(--g-fg3); }
.ent-zu { margin-left: auto; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--g-fill); color: var(--g-fg2); font: 500 12.5px var(--g-font); border: 0; }
.ent-leer { color: var(--g-fg3); font-size: 13px; padding: 6px 2px; }
.ent-skel { height: 260px; border-radius: 22px; background: var(--g-skel); background-image: var(--g-skel-shine); background-size: 200% 100%; animation: gxShimmer 1.6s linear infinite; }

.ent-reihe { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ent-rk { display: flex; align-items: baseline; gap: 8px; }
.ent-rk h2 { margin: 0; font: 650 16px/1.2 var(--g-font); color: var(--g-fg); }
.ent-n { font-size: 12.5px; color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.ent-alle { margin-left: auto; height: 28px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--g-accent); font: 600 13px var(--g-font); }
.ent-band { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 22%, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px; scrollbar-width: thin; }

.ent-k { position: relative; display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; scroll-snap-align: start; cursor: pointer;
  background: #0B0B0C; box-shadow: var(--g-thumb-sh); color: #FFFFFF; text-align: left; animation: gxCardIn .5s var(--g-ease) both; }
.ent-k.video { aspect-ratio: 16 / 10; }
.ent-th { position: absolute; inset: 0; display: grid; place-items: center; }
.ent-th img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--g-ease); }
.ent-k:hover .ent-th img { transform: scale(1.04); }
.ent-k::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62)); pointer-events: none; }
.ent-nm { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font: 600 12.5px/1.3 var(--g-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ent-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 22px; display: grid; place-items: center;
  background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.ent-play svg.i { width: 18px; height: 18px; color: #FFFFFF; }
.ent-3d { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 8px; border-radius: 10px; font: 700 11px var(--g-font); color: #FFFFFF; background: rgba(20,20,24,.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.ent-k.drei .ent-th { background: var(--g-pane); }
.ent-v3d { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.ent-k.dreht .ent-v3d { opacity: 1; }
.ent-k.dreht .ent-th img { opacity: 0; }
.ent-k.ent-hero { aspect-ratio: 21 / 9; border-radius: 24px; }
.ent-k.ent-hero .ent-nm { font-size: 18px; left: 22px; bottom: 18px; }

/* 3D-Betrachter als Kachel: nur die Bühne, keine Leisten, keine Bedienung */
.v3d.kachel { position: absolute; inset: 0; gap: 0; pointer-events: none; }
/* greifbare Kachel (C 17.11. „let me move it by myself“): dreht von selbst, bis man sie anfasst — dann folgt sie der Maus */
.v3d-greifbar .v3d.kachel { pointer-events: auto; cursor: grab; }
.v3d-greifbar .v3d.kachel:active { cursor: grabbing; }
/* Maße am Modell auch in der Kachel-Darstellung: nur Hülle B/T/H (aus der Geometrie des Superkerns), keine Anschluss-Etiketten */
.v3d-mit-massen .v3d.kachel .v3d-etik,
.v3d.kachel[data-auswahl]:not([data-auswahl=""]) .v3d-etik { display: block !important; }
.v3d-mit-massen .v3d.kachel .v3d-etik .v3d-lab:not(.box):not(.sel):not(.ansch) { display: none !important; }
.v3d.kachel[data-auswahl]:not([data-auswahl=""]) .v3d-sel { display: flex !important; }
/* Auswahl „Herunterladen“ auf der Produktseite */
[data-testid="snr-laden"] > summary::-webkit-details-marker { display: none; }
[data-testid="snr-laden"] a:hover { background: #F3F4F6; }
.v3d.kachel .v3d-leiste, .v3d.kachel .v3d-hinweise, .v3d.kachel .v3d-fuss, .v3d.kachel .v3d-info, .v3d.kachel .v3d-liste,
.v3d.kachel .v3d-achsen, .v3d.kachel .v3d-etik, .v3d.kachel .v3d-sel { display: none !important; }
.v3d.kachel .v3d-buehne { position: absolute; inset: 0; border-radius: 0; }
.v3d.kachel .v3d-lade { font-size: 11px; }

/* Dokument-Karte: Bilder aus dem PDF + KI-Zusammenfassung mit Seiten */
.ent-doks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 14px; }
.ent-dok { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; height: 300px; border-radius: 20px; overflow: hidden; cursor: pointer;
  background: var(--g-pane); box-shadow: var(--g-pane-sh); -webkit-backdrop-filter: blur(var(--g-blur-pane)) saturate(180%); backdrop-filter: blur(var(--g-blur-pane)) saturate(180%);
  animation: gxCardIn .5s var(--g-ease) both; outline: none; }
.ent-dok:focus-visible { outline: 2px solid var(--g-ring-sel); outline-offset: 2px; }
.ent-dok.ohne-bild { grid-template-columns: minmax(0, 1fr); }
.ent-dok.gross { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); height: clamp(320px, 44vh, 420px); border-radius: 24px; }
.ent-galerie { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: #FFFFFF; }
.ent-galerie button { padding: 0; border: 0; background: transparent; cursor: zoom-in; min-width: 0; min-height: 0; }
.ent-b0 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ent-b0 { min-height: 0; overflow: hidden; }
.ent-bn { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 64px; border-top: 1px solid var(--g-sep); }
.ent-bi img { width: 100%; height: 64px; object-fit: cover; display: block; }
.ent-txt { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; min-width: 0; min-height: 0; overflow: hidden; }
.ent-kopf { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ent-art { padding: 3px 9px; border-radius: 10px; background: var(--g-accent-soft); color: var(--g-accent); font: 650 11.5px var(--g-font); }
.ent-ki { padding: 3px 9px; border-radius: 10px; background: var(--g-amber-bg); color: var(--g-amber-fg); font: 600 11px var(--g-font); }
.ent-titel { margin: 2px 0 0; font: 700 16px/1.3 var(--g-font); color: var(--g-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ent-dok.gross .ent-titel { font-size: 20px; }
.ent-datei { font: 12px var(--g-mono); color: var(--g-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-satz { margin: 0; font: 13.5px/1.5 var(--g-font); color: var(--g-fg2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ent-dok.gross .ent-satz { -webkit-line-clamp: 4; }
.ent-s { margin-left: 4px; padding: 1px 7px; border: 0; border-radius: 8px; background: var(--g-fill); color: var(--g-accent); font: 600 11px var(--g-font); cursor: pointer; vertical-align: 1px; }
.ent-prod { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.ent-p { padding: 4px 10px; border: 0; border-radius: 12px; background: var(--g-fill); color: var(--g-fg); font: 550 12px var(--g-font); cursor: pointer;  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .ent-dok, .ent-dok.gross { grid-template-columns: minmax(0, 1fr); }
  .ent-dok, .ent-dok.gross { height: auto; }
  .ent-galerie { height: 220px; }
  .ent-band { grid-auto-columns: 62%; }
  .ent-k.ent-hero { aspect-ratio: 4 / 3; }
}
/* Dokument-Karte: Kopf, Titel, Dateiname schrumpfen nie; Sätze kürzen sich; Produkte höchstens zwei Zeilen */
.ent-kopf, .ent-titel, .ent-datei { flex-shrink: 0; }
.ent-satz { flex-shrink: 1; min-height: 1.5em; }
.ent-prod { flex-shrink: 0; max-height: 30px; overflow: hidden; }
.ent-dok.gross .ent-prod { max-height: 58px; }
.ent-satz { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .ent-k, .ent-dok { animation: none; } .ent-th img { transition: none; } }

/* „Im Belegnetz“: Familien mit Belegen aus einem Dokument (Detailseite, KI-Panel) — Tokens aus glass.css */
.bnl { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.bnl-d { margin: -4px 0 0; font-size: 12.5px; color: var(--g-fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnl-h { margin: 0; font-size: 12.5px; color: var(--g-fg3); }
.bnl-l { display: flex; flex-direction: column; max-height: min(56vh, 460px); overflow: auto; padding: 4px; border-radius: 16px; background: var(--g-group); box-shadow: var(--g-group-sh); }
.bnl-z { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n b" "m b"; align-items: center; column-gap: 12px; padding: 7px 10px; border-radius: 12px; color: var(--g-fg); text-decoration: none; }
.bnl-n { grid-area: n; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnl-m { grid-area: m; font-size: 11.5px; color: var(--g-fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnl-b { grid-area: b; display: flex; align-items: center; gap: 8px; width: 120px; }
.bnl-bar { flex: none; height: 6px; border-radius: 3px; background: var(--g-accent-fill); max-width: 70px; }
.bnl-b b { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }

/* P3: KI-Inhalt auf der Detailseite (Zusammenfassung / Bildbeschreibung) */
.ki-inhalt { display: flex; flex-direction: column; gap: 8px; }
.ki-inhalt .md-kopf { display: flex; align-items: center; gap: 8px; }
.ki-titel { font: 650 15px/1.35 var(--g-font); color: var(--g-fg); }
.ki-satz { margin: 0; font: 14px/1.55 var(--g-font); color: var(--g-fg2); }
.ki-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ki-bilder .ent-bi { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #FFFFFF; cursor: zoom-in; }
.ki-bilder img { width: 100%; height: 80px; object-fit: cover; display: block; }
.dt-akt[hidden] { display: none !important; }

/* P4: Container-Agent in der Container-Liste */
.c-agent { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding: 8px 10px; border-radius: 12px; background: var(--g-fill); }
.c-wider { color: var(--g-amber-fg); font-weight: 650; }

/* ── Produktlinien (GitChain Linie → Familie → Produkt) ── */
.pl .statusline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl .ana-blk { margin-top: 12px; }
.pl .ana-blk > h2 { font-size: 14px; margin: 0 0 8px; }
.pl-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.pl-karte .pl-k { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.pl-karte .pl-k:focus-visible { outline: 2px solid var(--gc-accent, #4c8bf5); outline-offset: 2px; border-radius: 4px; }
.pl-meta { margin-top: 4px; }
.pl-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.pl-tab th { text-align: left; font-weight: 600; color: var(--gc-muted, inherit); padding: 4px 6px; border-bottom: 1px solid var(--gc-line); }
.pl-tab td { padding: 4px 6px; border-bottom: 1px solid var(--gc-line); vertical-align: top; }
.pl-row { cursor: pointer; }
.pl-row:hover, .pl-row:focus-visible { background: var(--gc-surface-2); outline: none; }
.pl-w { font-variant-numeric: tabular-nums; }
.pl-v { font-style: italic; opacity: .8; }
.pl-aus { color: var(--gc-amber, #b26b00); }
.pl-status { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--gc-surface-2); font-size: 12.5px; }
.pl-status.aus { color: var(--gc-amber, #b26b00); }
.pl-doks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 13px; }
.pl .lnk { all: unset; cursor: pointer; color: var(--gc-accent, #4c8bf5); text-decoration: underline; text-underline-offset: 2px; }
.pl .lnk:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* ── Container-Ansicht, Fassung 2 (C 22.10.: Bilder und KPI-Kacheln statt Text) — Tokens aus glass.css ───────────────
   Entwurf: scratch „container-ansicht-2.html“ (Schwarz + Hell). Signatur: die Kette (.cv-kette) = Commit-Folge des Repos. */
.cv { display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px; }
.cv-head { margin: 0; align-items: center; }
.cv-seg { display: flex; margin-left: auto; padding: 3px; gap: 2px; border-radius: 11px; background: var(--g-fill); }
.cv-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--g-fg2); font: 500 13px var(--g-font); display: inline-flex; align-items: center; gap: 6px; }
.cv-seg button .n { color: var(--g-fg3); font-weight: 400; font-variant-numeric: tabular-nums; }
.cv-seg button.on { background: var(--g-lens); box-shadow: var(--g-lens-sh); color: var(--g-fg); }
.cv-seg button.on .n { color: var(--g-fg2); }
.cv-neu { height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--g-glass); box-shadow: var(--g-glass-sh); color: var(--g-fg); font: 600 13px var(--g-font); display: inline-flex; align-items: center; gap: 6px; }
.cv-neu svg.i { width: 15px; height: 15px; }

/* KPI-Kacheln: Icon, große Zahl, ein Wort */
.cv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cv-kpi { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; border-radius: 16px; min-width: 0; overflow: hidden; }
.cv-kpi .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--g-fill); display: grid; place-items: center; color: var(--g-fg); flex: none; }
.cv-kpi .ic svg.i { width: 19px; height: 19px; }
.cv-kpi .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cv-kpi b { font: 700 26px/1 var(--g-font); letter-spacing: -0.02em; color: var(--g-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-kpi span { font: 600 11px var(--g-font); letter-spacing: .06em; text-transform: uppercase; color: var(--g-fg3); }
.cv-kpi.warn .ic { background: var(--g-amber-bg); color: var(--g-amber-fg); }
.cv-kpi.warn b { color: var(--g-amber-fg); }
.num { font-variant-numeric: tabular-nums; }

/* Kette: aufnahme · einlage · lesung · agent */
.cv-kette { display: inline-flex; align-items: center; flex: none; }
.cv-kette i { width: 10px; height: 10px; border-radius: 50%; background: var(--g-fg); flex: none; animation: gxBoxIn .3s var(--g-ease) both; }
.cv-kette i.off { background: none; box-shadow: inset 0 0 0 1.5px var(--g-track); }
.cv-kette i.agent { background: var(--g-accent-fill); }
.cv-kette s { width: 22px; height: 1.5px; background: var(--g-fg); display: block; text-decoration: none; transform-origin: left; animation: gxFill .35s var(--g-ease) both; }
.cv-kette s.off { background: var(--g-track); animation: none; }
.cv-kette i:nth-child(1) { animation-delay: .05s } .cv-kette s:nth-child(2) { animation-delay: .12s } .cv-kette i:nth-child(3) { animation-delay: .22s }
.cv-kette s:nth-child(4) { animation-delay: .28s } .cv-kette i:nth-child(5) { animation-delay: .38s } .cv-kette s:nth-child(6) { animation-delay: .44s } .cv-kette i:nth-child(7) { animation-delay: .54s }
.cv-kette s:nth-child(8) { animation-delay: .60s } .cv-kette i:nth-child(9) { animation-delay: .70s }   /* fünftes Glied: plugin (OCP) */
.cv-kette i.plugin { background: var(--g-fg); }
.cv-kette.sm i { width: 7px; height: 7px; } .cv-kette.sm s { width: 12px; }

/* Vorschaubild: Bild über dem Typ-Icon (das Icon verschwindet, sobald das Bild geladen ist — wie im Raster) */
.cv .pic { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--g-fill); color: var(--g-fg2); }
.cv .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s ease; }
.cv .pic img.loaded { opacity: 1; }
.cv .pic .ticon { position: relative; z-index: 0; }
.cv .pic .ticon.hidden { display: none; }
.cv .pic .cv-leer-ic svg.i { width: 36px; height: 36px; stroke-width: 1.3; color: var(--g-fg3); }
.cv .pic .play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 22px; display: grid; place-items: center; color: #FFFFFF;
  background: rgba(28,28,30,0.6); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.cv .pic .play svg.i { width: 18px; height: 18px; margin-left: 2px; }
.cv .pic .b, .cv .pic .n { position: absolute; z-index: 2; top: 10px; height: 22px; padding: 0 8px; border-radius: 11px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(28,28,30,0.72); color: #FFFFFF; font: 700 11px var(--g-font); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cv .pic .b { left: 10px; } .cv .pic .n { right: 10px; font-weight: 600; }
.cv .pic .b svg.i { width: 12px; height: 12px; }
.cv .pic .b i.g, .cv .th i.g { width: 7px; height: 7px; border-radius: 50%; display: block; }

/* Hero: der jüngste gepushte eigene Container */
.cv-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 300px; border-radius: 20px; overflow: hidden; animation: gxCardIn .45s var(--g-ease) both; }
.cv-hero .pic { min-height: 260px; cursor: pointer; }
.cv-hero .pic .ticon { transform: scale(1.6); }
.cv-hero .pic .tag { position: absolute; z-index: 2; left: 14px; top: 14px; display: flex; gap: 6px; align-items: center; }
.cv-hero .pic .tag .badge { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; }
.cv-hero .pic .tag .badge[data-status="gepusht"] { background: var(--g-live-bg); color: var(--g-live-fg); }
.cv-hero .pic .tag .zeit { height: 26px; padding: 0 10px; border-radius: 13px; display: inline-flex; align-items: center; background: rgba(28,28,30,0.72); color: #FFFFFF; font: 600 12px var(--g-font); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cv-hero .side { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; min-width: 0; }
.cv-hero h2 { margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; font: 700 19px/1.2 var(--g-font); letter-spacing: -0.01em; color: var(--g-fg); }
.cv-hero h2 svg.i { width: 20px; height: 20px; flex: none; }
.cv-hero h2 .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-hero h2 .id { margin-left: auto; flex: none; font: 11.5px var(--g-mono); color: var(--g-fg3); }
.cv-hero .k4 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }   /* fünf Kacheln: Dateien · Atome · Kennungen · Widersprüche · Werkzeuge */
.cv-hero .k4 .cv-kpi { padding: 12px 12px 10px; border-radius: 14px; gap: 8px; }
.cv-hero .k4 .cv-kpi .ic { width: 28px; height: 28px; border-radius: 8px; } .cv-hero .k4 .cv-kpi .ic svg.i { width: 16px; height: 16px; }
.cv-hero .k4 .cv-kpi b { font-size: 22px; }
.cv-hero .k4 .cv-kpi span { white-space: normal; font-size: 10px; letter-spacing: .04em; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }   /* „Wider­sprüche“ bricht statt abzuschneiden */
.cv-hero .strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cv-hero .th { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--g-fill); box-shadow: var(--g-thumb-rim); color: var(--g-fg2); cursor: pointer; }
.cv-hero .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.cv-hero .th img.loaded { opacity: 1; }
.cv-hero .th .ticon { transform: scale(.7); } .cv-hero .th .ticon.hidden { display: none; }
.cv-hero .th i.g { position: absolute; z-index: 2; left: 6px; bottom: 6px; width: 8px; height: 8px; }
.cv-hero .foot { margin-top: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cv-hero .foot .z { font-size: 12px; color: var(--g-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-hero .foot .acts { margin-left: auto; display: flex; gap: 6px; flex: none; }
.cv-ib { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 11px; background: var(--g-glass); box-shadow: var(--g-glass-sh); color: var(--g-fg); display: inline-grid; place-items: center; }
.cv-ib svg.i { width: 17px; height: 17px; }
.cv-ib.ai { width: auto; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--g-font); border-radius: 12px; }
.cv-ib:disabled { opacity: .5; }

/* Gruppen-Kopf + Karten-Raster */
.cv-gh { display: flex; align-items: center; gap: 10px; padding: 4px 6px 0; }
.cv-gh h3 { margin: 0; font: 700 15px var(--g-font); color: var(--g-fg); }
.cv-gh .n { color: var(--g-fg3); font-weight: 500; font-variant-numeric: tabular-nums; }
.cv-gh .more { margin-left: auto; height: 28px; padding: 0 10px; border: 0; border-radius: 14px; background: transparent; color: var(--g-accent); font: 600 13px var(--g-font); display: inline-flex; align-items: center; gap: 4px; }
.cv-gh .more svg.i { width: 14px; height: 14px; }
.cv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cv-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; cursor: pointer; animation: gxCardIn .4s var(--g-ease) both; outline: none; }
.cv-card:focus-visible { outline: 2px solid var(--g-ring-sel); outline-offset: 2px; }
.cv-card.on { box-shadow: var(--g-pane-sh), 0 0 0 2px var(--g-ring-sel); }
.cv-card .pic { aspect-ratio: 16 / 10; }
.cv-card .pic.leer { aspect-ratio: auto; flex: 1; min-height: 110px; margin: 8px 8px 0; border-radius: 14px; background: none; box-shadow: inset 0 0 0 1.5px var(--g-track); color: var(--g-fg2); }
.cv-card .pic.leer svg.i { width: 30px; height: 30px; stroke-width: 1.4; }
.cv-card .cb { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 11px; min-width: 0; }
.cv-card .cb b { font: 600 13px var(--g-font); color: var(--g-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-card .cb .r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cv-card .cb .k { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--g-fg2); font: 500 12.5px var(--g-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-card .cb .k.leer { color: var(--g-fg3); }
.cv-card .cb .k svg.i { width: 14px; height: 14px; }
.cv-card .cv-acts { display: none; gap: 4px; margin-left: 6px; }
.cv-card:hover .cv-acts, .cv-card:focus-within .cv-acts, .cv-card.on .cv-acts { display: inline-flex; }
.cv-card .cv-acts .cv-ib { width: 28px; height: 28px; border-radius: 8px; }
.cv-card .cv-acts .cv-ib svg.i { width: 14px; height: 14px; }
@media (hover: none) { .cv-card .cv-acts { display: inline-flex; } }

/* Belegnetz-Kacheln */
.cv-fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cv-fam { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 14px 16px; border: 0; border-radius: 16px; text-align: left; color: var(--g-fg); font-family: var(--g-font); }
.cv-fam:first-child { grid-column: span 2; }
.cv-fam .ri { flex: none; width: 56px; height: 56px; color: var(--g-fg2); }
.cv-fam .ring { width: 56px; height: 56px; fill: none; stroke: currentColor; }
.cv-fam .t { display: flex; flex-direction: column; min-width: 0; }
.cv-fam .t > b { font: 700 15px var(--g-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-fam .kk { display: flex; gap: 14px; margin-top: 6px; }
.cv-fam .kk > div { display: flex; flex-direction: column; }
.cv-fam .kk strong { font: 700 18px/1.1 var(--g-font); letter-spacing: -0.02em; white-space: nowrap; }
.cv-fam .kk span { font: 600 10.5px var(--g-font); letter-spacing: .05em; text-transform: uppercase; color: var(--g-fg3); }
.cv-fam .kk > div.w strong { color: var(--g-amber-fg); }
.cv-fam.more { justify-content: center; color: var(--g-accent); font: 600 14px var(--g-font); }
/* Container-API: Verbindungen (App öffnen je Werkzeug, Blatt mit Schlüsseln) */
.cv-verbinden { display: inline-flex; gap: 6px; }
.cv-verb li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cv-verb li .pp { display: inline-flex; align-items: center; gap: 4px; }
.cv-verb li .sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-key { padding: 10px 12px; border-radius: 12px; background: var(--g-fill); font: 13px/1.5 var(--g-mono); color: var(--g-fg); word-break: break-all; user-select: all; -webkit-user-select: all; }
.cv-md { margin: 0; max-height: min(60vh, 560px); overflow: auto; padding: 12px 14px; border-radius: 12px; background: var(--g-fill); font: 12.5px/1.55 var(--g-mono); color: var(--g-fg); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .cv-hero { grid-template-columns: minmax(0, 1fr); }
  .cv-hero .pic { min-height: 200px; }
  .cv-hero .strip { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); }
  .cv-fam:first-child { grid-column: auto; }
  .cv-seg { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cv-hero, .cv-card, .cv-kette i, .cv-kette s { animation: none; } }

/* ── Container-Assistent (C 22.10.): ein Blatt für alle drei Einstiege, vier Schritte, Laufanzeige als Kette — Tokens aus glass.css
   Vorbild: ContainerAssistent.tsx der Desktop-App (Modal 520 px, Schrittleiste aus vier Balken, eine Laufzeile je Schritt). */
.sheet.ca-sheet { width: min(660px, 100%); max-height: min(92dvh, 900px); overflow-y: auto; gap: 14px; }
@media (min-width: 901px) { .sheet-back:has(.ca-sheet) { align-items: center; } .sheet.ca-sheet { border-radius: 24px; } }
.ca-sheet h3 { display: flex; align-items: center; gap: 8px; }
.ca-sheet h3 svg.i { width: 19px; height: 19px; color: var(--g-accent); flex: none; }
.ca-sub { margin: -8px 0 0; font-size: 12.5px; color: var(--g-fg3); }
.ca-sheet .btn { width: auto; }
.ca-sheet .input { height: 40px; padding: 0 12px; border-radius: 12px; font-size: 15px; }
.ca-sheet select.input { padding-right: 32px; }
.ca-sheet .label { margin: 0; }
/* Schrittleiste: vier Balken (wie in der Desktop-App), darunter Nummer und Wort; erreichte Schritte sind antippbar */
.ca-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ca-steps[hidden] { display: none; }
.ca-step { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--g-fg3); font: 500 12px var(--g-font); text-align: left; cursor: pointer; }
.ca-step:disabled { cursor: default; }
.ca-step > i { display: block; height: 4px; border-radius: 2px; background: var(--g-track); transition: background .25s ease, opacity .25s ease; }
.ca-step.on > i, .ca-step.done > i { background: var(--g-accent-fill); }
.ca-step.done > i { opacity: .5; }
.ca-step > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ca-step > span b { flex: none; width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--g-fill); color: var(--g-fg2); font: 700 11px var(--g-font); }
.ca-step > span .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-step.on > span { color: var(--g-fg); font-weight: 600; }
.ca-step.on > span b { background: var(--g-accent-fill); color: #FFFFFF; }
.ca-step.done > span b { background: var(--g-accent-soft); color: var(--g-accent); }
.ca-step.done > span b svg.i { width: 11px; height: 11px; stroke-width: 2.4; }
/* Körper */
.ca-body { display: flex; flex-direction: column; gap: 12px; min-height: 240px; animation: gxBoxIn .25s ease both; }
.ca-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--g-fg3); }
.ca-leer { font-size: 13px; line-height: 1.45; color: var(--g-fg3); }
.ca-fehler { font-size: 13px; color: var(--g-amber-fg); }
.ca-fehler:empty { display: none; }
/* Schritt 1: zwei Karten */
.ca-arten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ca-art { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; margin: 0; padding: 14px 14px 13px; border: 0; border-radius: 16px; text-align: left;
  background: var(--g-group); box-shadow: var(--g-group-sh); color: var(--g-fg); font-family: var(--g-font); cursor: pointer; transition: box-shadow .2s ease, background .2s ease; }
.ca-art .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--g-fill); display: grid; place-items: center; color: var(--g-fg); }
.ca-art .ic svg.i { width: 19px; height: 19px; }
.ca-art b { font: 600 14.5px var(--g-font); }
.ca-art small { font: 12px/1.45 var(--g-font); color: var(--g-fg2); }
.ca-art .typ { font: 500 11px var(--g-mono); color: var(--g-fg3); }
.ca-art[aria-checked="true"] { background: var(--g-lens); box-shadow: var(--g-lens-sh), 0 0 0 2px var(--g-ring-sel); }
.ca-art[aria-checked="true"] .ic { background: var(--g-accent-fill); color: #FFFFFF; }
.ca-art:disabled { cursor: default; opacity: .55; }
.bald { height: 20px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; background: var(--g-amber-bg); color: var(--g-amber-fg); font: 700 10.5px var(--g-font); letter-spacing: .04em; text-transform: uppercase; }
.ca-art .bald { position: absolute; top: 12px; right: 12px; }
/* Schritt 2: Zeilen */
.ca-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--g-fill); color: var(--g-fg); font-size: 14px; font-weight: 500; }
.ca-row svg.i { width: 17px; height: 17px; color: var(--g-fg2); flex: none; }
.ca-row .r { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--g-fg3); }
.ca-id { font-size: 12px; color: var(--g-fg3); margin-top: -6px; }
.ca-id:empty { display: none; }
.ca-id.warn { color: var(--g-amber-fg); }
/* Schritt 3: Chips, Ablagefeld, Zähler */
.ca-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 6px 0 10px; border-radius: 15px; background: var(--g-fill); color: var(--g-fg); font: 500 12.5px var(--g-font); }
.ca-chip > svg.i { width: 14px; height: 14px; color: var(--g-fg2); flex: none; }
.ca-chip .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-chip .s { flex: none; color: var(--g-fg3); font-weight: 400; }
.ca-chip button { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--g-fg3); display: inline-grid; place-items: center; cursor: pointer; }
.ca-chip button:hover { background: var(--g-key); color: var(--g-fg); }
.ca-chip button svg.i { width: 12px; height: 12px; }
.ca-chip.kopie { background: var(--g-accent-soft); color: var(--g-accent); }
.ca-chip.kopie > svg.i, .ca-chip.kopie .s { color: inherit; }
.ca-chip.verweis { background: var(--g-fill-2, var(--g-fill)); color: var(--g-fg); box-shadow: inset 0 0 0 1px var(--g-accent); }
.ca-chip.verweis > svg.i { color: var(--g-accent); }
.ue-chips .ent-p.verweis { box-shadow: inset 0 0 0 1px var(--g-accent); }
.ue-chips .ent-p.verweis svg.i { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; color: var(--g-accent); }
.ue-chips .ent-p.verweis .sub { color: var(--g-fg3); font-weight: 400; }
.ca-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--g-track); text-align: center; color: var(--g-fg2); font-size: 13px; transition: box-shadow .2s ease, background .2s ease; }
.ca-drop.over { background: var(--g-accent-soft); box-shadow: inset 0 0 0 2px var(--g-accent-fill); }
.ca-drop .bt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ca-drop small { font-size: 11.5px; line-height: 1.4; color: var(--g-fg3); }
.ca-zaehler { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 20px; font-size: 13px; color: var(--g-fg2); }
.ca-zaehler b { color: var(--g-fg); font-variant-numeric: tabular-nums; }
.ca-zaehler .warten, .ca-zaehler .warten b { color: var(--g-amber-fg); }
/* Schritt 4: Karten-Picker */
.ca-picker { list-style: none; margin: 0; padding: 2px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.ca-picker > li.ca-leer { grid-column: 1 / -1; padding: 10px 4px; }
.ca-pick { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; margin: 0; padding: 8px 8px 10px; border: 0; border-radius: 14px; text-align: left;
  background: var(--g-group); box-shadow: var(--g-group-sh); color: var(--g-fg); font-family: var(--g-font); cursor: pointer; transition: box-shadow .2s ease, background .2s ease; }
.ca-pick .pic { aspect-ratio: 16 / 7; border-radius: 9px; }
.ca-pick .nm { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 2px; font: 600 13.5px var(--g-font); }
.ca-pick .nm svg.i { width: 15px; height: 15px; flex: none; color: var(--g-fg2); }
.ca-pick .nm span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-pick .r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 2px; font: 12px var(--g-font); color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.ca-pick .r .mono { font-size: 11px; margin-left: auto; white-space: nowrap; }
.ca-pick[aria-pressed="true"] { background: var(--g-lens); box-shadow: var(--g-lens-sh), 0 0 0 2px var(--g-ring-sel); }
.ca-pick[aria-pressed="true"] .nm svg.i { color: var(--g-accent); }
.ca-pick:disabled, .ca-pick.drin { cursor: default; opacity: .5; }
.ca-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ca-acts .btn[disabled] { opacity: .45; cursor: default; }
.ca-acts .btn .bald { height: 18px; margin-left: 2px; }
/* Fuß */
.ca-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 2px; }
.ca-foot .btn { min-width: 128px; }
/* Laufanzeige: die Kette (dieselbe Optik wie .cv-kette) mit Wort und Stand je Glied, darunter eine Zeile je Schritt */
.ca-lauf { display: flex; flex-direction: column; gap: 16px; padding: 2px 0; }
.ca-lauf-k { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ca-lauf-k > svg.i { width: 20px; height: 20px; color: var(--g-accent); flex: none; }
.ca-lauf-k b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 16px var(--g-font); }
.ca-lauf-k .mono { margin-left: auto; flex: none; font-size: 11.5px; color: var(--g-fg3); }
.ca-kette { display: flex; flex-direction: column; gap: 12px; padding: 18px 0 14px; border-radius: 16px; background: var(--g-group); box-shadow: var(--g-group-sh); }
.ca-kette .cv-kette { display: flex; width: 100%; padding: 0 calc(10% - 7px); box-sizing: border-box; }   /* fünf Glieder: Punkte mittig über den Spalten */
.ca-kette .cv-kette i { width: 14px; height: 14px; }
.ca-kette .cv-kette s { flex: 1; width: auto; }
.cv-kette i.lauf { box-shadow: inset 0 0 0 2px var(--g-accent-fill); animation: gxPulse 1.3s ease-in-out infinite; }
.ca-glieder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ca-glied { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 0 4px; text-align: center; }
.ca-glied b { font: 600 12px var(--g-font); color: var(--g-fg); }
.ca-glied span { font: 11.5px/1.35 var(--g-font); color: var(--g-fg3); overflow-wrap: anywhere; }
.ca-glied[data-st="lauf"] b { color: var(--g-accent); }
.ca-glied[data-st="off"] b { color: var(--g-fg3); }
.ca-glied[data-st="fehler"] b, .ca-glied[data-st="fehler"] span { color: var(--g-amber-fg); }
.ca-zeilen { list-style: none; margin: 0; padding: 0 2px; display: flex; flex-direction: column; gap: 7px; }
.ca-zeilen li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--g-fg2); }
.ca-zeilen li > i { flex: none; width: 16px; height: 16px; border-radius: 8px; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--g-track); }
.ca-zeilen li[data-st="ok"] > i { background: var(--g-live-bg); color: var(--g-live-fg); box-shadow: none; }
.ca-zeilen li[data-st="ok"] > i svg.i { width: 11px; height: 11px; stroke-width: 2.4; }
.ca-zeilen li[data-st="lauf"] > i { box-shadow: inset 0 0 0 1.5px var(--g-accent-fill); animation: gxPulse 1.3s ease-in-out infinite; }
.ca-zeilen li[data-st="fehler"] > i { background: var(--g-amber-bg); color: var(--g-amber-fg); box-shadow: none; }
.ca-zeilen li[data-st="fehler"] > i svg.i { width: 10px; height: 10px; stroke-width: 2.4; }
.ca-zeilen li[data-st="fehler"] { color: var(--g-amber-fg); }
@media (max-width: 480px) {
  .ca-step:not(.on) > span .lbl { display: none; }
  .ca-arten { grid-template-columns: minmax(0, 1fr); }
  .ca-picker { grid-template-columns: minmax(0, 1fr); max-height: 260px; }
  .ca-foot .btn { min-width: 0; flex: 1; }
  .ca-lauf-k .mono { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ca-body, .cv-kette i.lauf, .ca-zeilen li[data-st="lauf"] > i { animation: none; } }

/* ── Drittsysteme nach OCP (C 22.10.): Werkzeug-Liste (Schritt 4, „Werkzeug hinzufügen“), Vertragsdialog, Werkzeug-Zeile im Hero — Tokens aus glass.css */
.ca-4cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ca-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ca-col .ca-picker { grid-template-columns: minmax(0, 1fr); max-height: 240px; }
.label .ocp { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--g-fill); color: var(--g-fg3); font: 700 10px var(--g-mono); letter-spacing: .06em; vertical-align: 1px; }
.wz-wahl { display: flex; flex-direction: column; gap: 10px; }
.wz-liste { list-style: none; margin: 0; padding: 2px; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.wz-liste:empty { display: none; }
.wz-tool { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; margin: 0; padding: 8px 10px 8px 8px; border: 0; border-radius: 14px; text-align: left;
  background: var(--g-group); box-shadow: var(--g-group-sh); color: var(--g-fg); font-family: var(--g-font); cursor: pointer; transition: box-shadow .2s ease, background .2s ease; }
.wz-tool .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.wz-tool .nm { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; font: 600 13.5px var(--g-font); }
.wz-tool .nm b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-tool .s { font: 12px var(--g-font); color: var(--g-fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-tool .vt { font: 11px var(--g-mono); color: var(--g-fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-tool .ck { flex: none; width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--g-fill); color: var(--g-fg2); }
.wz-tool .ck svg.i { width: 13px; height: 13px; }
.wz-tool.on { background: var(--g-lens); box-shadow: var(--g-lens-sh), 0 0 0 2px var(--g-ring-sel); }
.wz-tool.on .ck { background: var(--g-accent-fill); color: #FFFFFF; }
.wz-tool:disabled { cursor: default; opacity: .55; }
.wz-tool .bald { height: 18px; }
.wz-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--g-accent-fill); color: #FFFFFF; font: 700 12.5px var(--g-font); letter-spacing: .02em; text-transform: uppercase; }
.badge.netz { gap: 3px; background: var(--g-amber-bg); color: var(--g-amber-fg); }
.badge.netz svg.i { width: 11px; height: 11px; }
.badge.leser { background: var(--g-accent-soft); color: var(--g-accent); }
.badge.drin { background: var(--g-live-bg); color: var(--g-live-fg); }
.wz-url { display: flex; gap: 8px; }
.wz-url .input { flex: 1; min-width: 0; font-family: var(--g-mono); font-size: 13px; }
.wz-url .btn { flex: none; }
.ca-chip.plugin { background: var(--g-accent-soft); color: var(--g-accent); }
.ca-chip.plugin > svg.i, .ca-chip.plugin .s { color: inherit; }
.ca-chip.plugin.netz { box-shadow: inset 0 0 0 1.5px var(--g-amber-fg); }
/* Vertragsdialog — über dem Blatt (z 75), eigener Scrim; Herkunft prominent, Netz als Warnkasten wie in der Desktop-App */
.wz-back { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--g-scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fade var(--base) var(--ease); }
.wz-dialog { width: min(460px, 100%); max-height: min(86dvh, 760px); overflow-y: auto; padding: 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; animation: gxCardIn .3s var(--g-ease) both; }
.wz-dialog h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.wz-dialog h3 svg.i { width: 19px; height: 19px; color: var(--g-accent); }
.wz-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wz-kopf .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wz-kopf b { font: 600 15px var(--g-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-kopf .t > span { font-size: 12px; color: var(--g-fg3); }
.wz-herkunft { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--g-fill); font-size: 12.5px; color: var(--g-fg3); }
.wz-herkunft code { font: 12px var(--g-mono); color: var(--g-fg); overflow-wrap: anywhere; }
.wz-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--g-fg2); }
.wz-vertrag { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; line-height: 1.45; color: var(--g-fg2); }
.wz-vertrag b { color: var(--g-fg); }
.wz-vertrag code { font: 11.5px var(--g-mono); color: var(--g-fg); overflow-wrap: anywhere; }
.wz-vertrag li.netz { display: flex; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--g-amber-bg); color: var(--g-amber-fg); }
.wz-vertrag li.netz b { color: inherit; }
.wz-vertrag li.netz svg.i { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.wz-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.wz-foot .btn { width: auto; min-width: 120px; }
/* Hero: Werkzeug-Zeile */
.cv-hero .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tool { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 4px 6px 4px 4px; border-radius: 12px; font: 500 12.5px var(--g-font); color: var(--g-fg); }
.cv-tool .wz-ic { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.cv-tool .t { display: flex; flex-direction: column; min-width: 0; }
.cv-tool .t b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-tool .t .s { font-size: 10.5px; color: var(--g-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-tool .badge.netz { height: 20px; padding: 0 7px; }
.cv-tool .open { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--g-accent-fill); color: #FFFFFF; font: 600 12px var(--g-font); text-decoration: none; white-space: nowrap; }
.cv-tool .open svg.i { width: 13px; height: 13px; }
.cv-tool .x { flex: none; width: 26px; height: 26px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--g-fg3); display: inline-grid; place-items: center; cursor: pointer; }
.cv-tool .x:hover { background: var(--g-key); color: var(--g-fg); }
.cv-tool .x svg.i { width: 13px; height: 13px; }
.cv-tool.lauf { padding-left: 10px; color: var(--g-fg2); }
.cv-tool.lauf .pulse { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--g-accent-fill); animation: gxPulse 1.3s ease-in-out infinite; }
.cv-tool.lauf.fehler .pulse { background: var(--g-amber-bg); box-shadow: inset 0 0 0 2px var(--g-amber-fg); animation: none; }
.cv-tool.lauf.fehler .t .s { color: var(--g-amber-fg); white-space: normal; }
.cv-tool.add { padding: 0 10px; border: 0; gap: 6px; background: var(--g-glass); box-shadow: var(--g-glass-sh); font-weight: 600; cursor: pointer; }
.cv-tool.add svg.i { width: 14px; height: 14px; }
@media (max-width: 900px) { .ca-4cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cv-hero .k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wz-tool .vt { display: none; } .wz-foot .btn { flex: 1; min-width: 0; } .cv-tool .t .s { display: none; } }
@media (prefers-reduced-motion: reduce) { .cv-tool.lauf .pulse, .wz-dialog, .wz-back { animation: none; } }

/* Angaben aus dem Datenblatt (Detailseite) — Superkern ext/angaben@1, je Modell eine Spalte */
.angaben .ang-kap { margin-top: 12px; }
.angaben .ang-kn { font-size: 12.5px; font-weight: 600; color: var(--sub); margin: 0 0 6px; }
.angaben .ang-scroll { overflow-x: auto; }
.angaben .ang-tab { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.angaben .ang-tab th { text-align: left; font-weight: 600; color: var(--sub); padding: 6px 8px; border-bottom: 1px solid var(--line, rgba(127,127,127,0.25)); white-space: nowrap; }
.angaben .ang-tab td { padding: 5px 8px; border-bottom: 1px solid var(--line, rgba(127,127,127,0.12)); vertical-align: top; }
.angaben .ang-sym, .angaben .ang-eh { color: var(--sub); white-space: nowrap; }
.angaben .ang-w { white-space: nowrap; }
.angaben .ang-zelle { all: unset; cursor: pointer; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.angaben .ang-zelle:hover { background: rgba(10, 132, 255, 0.12); }
.angaben .ang-zelle:focus-visible { outline: 2px solid #0a84ff; outline-offset: 1px; }
/* Bildanalyse (bild@1) und CAD-Block (Detailseite) — Messwerte des superkern */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; margin-top: 10px; }
.ba-z { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ba-z .k, .ba-sek .k { font-size: 11.5px; color: var(--sub); }
.ba-z .v { font-size: 13.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ba-sek { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ba-farben { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-farbe { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(127,127,127,0.12); }
.ba-farbe i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127,127,127,0.35); }

/* Produkte im Dokument (Dateiseite, C 28.10.): Katalog links mit Kästen, rechts SNR wählen und die Werte direkt darunter */
.kp { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; padding: 14px; border-radius: 28px; height: calc(100vh - 250px); min-height: 520px; min-width: 0; max-width: 100%; overflow: hidden; animation: gxCardIn 280ms var(--g-ease) both; }
.kp-links { min-width: 0; overflow: auto; display: grid; gap: 18px; align-content: start; padding-right: 4px; }
.kp-seite { margin: 0; display: grid; gap: 6px; }
.kp-seite figcaption { font-size: 12.5px; color: var(--sub); }
.kp-blatt { position: relative; width: 100%; aspect-ratio: 595 / 842; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.kp-blatt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.kp-lagen { position: absolute; inset: 0; }
.kp-bx { position: absolute; border-radius: 3px; cursor: pointer; transition: background var(--fast) var(--ease), outline-color var(--fast) var(--ease); }
.kp-bx.w { outline: 2px solid rgba(10, 132, 255, 0.85); background: rgba(10, 132, 255, 0.10); }
.kp-bx.f { outline: 1.5px dashed rgba(255, 149, 0, 0.9); background: rgba(255, 149, 0, 0.08); }
.kp-bx.an { background: rgba(10, 132, 255, 0.28); outline-width: 3px; z-index: 2; }
.kp-bx .kp-nr { position: absolute; left: -2px; top: -2px; transform: translate(-100%, -40%); }
.kp-nr { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.kp-rechts { min-width: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); gap: 10px; }
.kp-reiter { display: flex; gap: 6px; flex-wrap: wrap; }
.kp-r { border: 0; border-radius: 999px; padding: 6px 14px; background: var(--control); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.kp-r[aria-selected="true"] { background: var(--accent); color: #fff; }
.kp-tab .kp-c-ef { width: 78px; } .kp-tab .kp-c-g { width: 26%; }
.kp-tab .kp-c-e { width: 11%; }
.kp-tab .kp-ef { font-size: 11.5px; }
.kp-tab tr.kp-etim.offen td { color: var(--sub); }
.kp-etim-kopf { margin-bottom: 6px; }
.kp-rechts > * { min-width: 0; }
.kp-wahl { display: grid; gap: 8px; }
.kp-zahl { font-size: 12.5px; color: var(--sub); }
.kp-suche { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--control-border); background: var(--control); color: var(--text); }
.kp-liste { max-height: 28vh; overflow: auto; display: grid; gap: 2px; }
.kp-p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; text-align: left; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.kp-p:hover { background: var(--select); }
.kp-p.an { background: var(--accent-soft); color: var(--accent-soft-text); }
.kp-pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-pz { grid-column: 2; font-size: 11.5px; color: var(--sub); }
.kp-kopf { border-top: 1px solid var(--divider); padding-top: 10px; }
.kp-titel { display: flex; gap: 10px; align-items: baseline; font-size: 16px; min-width: 0; }
.kp-titel b { flex-shrink: 0; }
.kp-titel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-sub { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.kp-werte { min-height: 0; overflow: auto; }
.kp-tab { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.kp-tab .kp-c-nr { width: 38px; } .kp-tab .kp-c-m { width: 32%; } .kp-tab .kp-c-w { width: 28%; } .kp-tab .kp-c-e { width: 9%; } .kp-tab .kp-c-s { width: 7%; }
.kp-tab td { overflow-wrap: anywhere; }
.kp-tab th { position: sticky; top: 0; background: var(--g-panel, var(--bg)); text-align: left; font-size: 11.5px; font-weight: 600; color: var(--label); text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 8px; border-bottom: 1px solid var(--sep); z-index: 1; }
.kp-tab td { padding: 6px 8px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.kp-tab tr { cursor: pointer; }
.kp-tab tr:hover td, .kp-tab tr.an td { background: var(--accent-soft); }
.kp-tab .kp-w { font-weight: 600; }
.kp-tab .num { text-align: right; }
.kp-ab, .kp-grund { font-size: 11.5px; color: var(--sub); }
@media (max-width: 900px) {
  .kp { grid-template-columns: 1fr; height: auto; }
  .kp-links { max-height: 70vh; }
}

/* Dateiseite als eine Seite (C 29.10.): Kopf mit Aktionen und Abschnittsleiste, darunter die Abschnitte untereinander */
.dt-chips { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 0; }
.dt-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 0; border-radius: 16px; background: var(--g-fill); color: var(--g-fg); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.dt-chip:hover { background-color: rgba(127, 127, 135, 0.2); color: var(--g-fg); }
.dt-chip svg.i { width: 15px; height: 15px; }
.dt-nav { flex: 1 1 100%; display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 0; border-top: 1px solid var(--divider); scrollbar-width: none; }
.dt-nav-b { border: 0; background: none; color: var(--g-fg3); font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 14px; cursor: pointer; white-space: nowrap; }
.dt-nav-b:hover { color: var(--g-fg); background: var(--g-fill); }
.dt-nav-b.an { color: var(--accent); background: var(--accent-soft); }
.dt-sek { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 150px; }
.dt-sek-h { margin: 6px 4px 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g-fg3); }
.dt-kzs.kompakt { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 16px; border-radius: 18px; background: var(--g-pane); box-shadow: var(--g-pane-sh); font-size: 14px; }
.dt-kzs.kompakt b { font-weight: 700; }
details.ang-kap { border-top: 1px solid var(--divider); padding: 6px 0; }
details.ang-kap > summary { cursor: pointer; list-style: revert; }
details.ang-kap[open] > summary { margin-bottom: 6px; }
.dt-page [hidden] { display: none !important; }   /* Abschnitte, Chips und Leisteneinträge ohne Inhalt (display: flex überschreibt sonst hidden) */
#main:has(> .dt-page) { scroll-padding-top: 170px; }   /* Sprünge und „in Sicht holen“ landen unter dem klebenden Kopf (Aktionen + Abschnittsleiste) */

/* Containeransicht geordnet (C 30.10.): Ordnerbaum links wie FinderTree der Desktop-App, Inhalt rechts, Aktuell, Produktgraphen, Pins */
.cv-lay { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.cv-inhalt { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cv-baum { position: sticky; top: 8px; max-height: calc(100vh - 140px); overflow: auto; padding: 10px 6px 12px; border-radius: 14px; font: 400 13px var(--g-font); }
.cv-bh { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 6px; }
.cv-bh .lbl { font: 600 11px var(--g-font); letter-spacing: .06em; text-transform: uppercase; color: var(--g-fg3); }
.cv-bplus { border: 0; background: transparent; color: var(--g-fg3); font: 500 16px var(--g-font); cursor: pointer; padding: 0 4px; }
.cv-bplus:hover { color: var(--g-accent); }
.cv-bfw { display: flex; align-items: center; gap: 6px; margin: 0 4px 8px; padding: 0 8px; height: 30px; border-radius: 9px; background: var(--g-fill); }
.cv-bfw svg.i { width: 14px; height: 14px; color: var(--g-fg3); flex: none; }
.cv-bf { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--g-fg); font: 400 12.5px var(--g-font); outline: none; }
.cv-baum ul { list-style: none; margin: 0; padding: 0; }
.cv-baum details > summary { list-style: none; cursor: pointer; }
.cv-baum details > summary::-webkit-details-marker { display: none; }
.cv-bg > summary { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; color: var(--g-fg2); font-weight: 600; }
.cv-bg > summary:hover { background: var(--g-fill); }
.cv-bg > summary .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-bg > summary .n { color: var(--g-fg3); font: 400 11px ui-monospace, monospace; }
.cv-baum svg.ch { width: 12px; height: 12px; color: var(--g-fg3); transition: transform .12s; flex: none; }
.cv-baum details[open] > summary > svg.ch { transform: rotate(90deg); }
.cv-baum svg.fo, .cv-baum svg.fi { width: 14px; height: 14px; color: var(--g-fg3); flex: none; }
.cv-bu, .cv-baum ul.cv-bu { padding-left: 14px; }   /* ul.cv-bu: sonst gewinnt „.cv-baum ul“ (0,1,1) und der Einzug ist 0 */
.cv-bu > li > .cv-bz { padding-left: 22px; }        /* Blatt ohne Pfeil: Spalte des Pfeils (12 px + 2 px) freihalten → Rauten in einer Spalte */
.cv-bg .cv-bg > summary { font-weight: 500; }
.cv-bk > summary { display: flex; align-items: center; }
.cv-bk > summary > svg.ch { margin-left: 2px; }
.cv-bz { width: 100%; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--g-fg2); font: 400 12.5px var(--g-font); text-align: left; cursor: pointer; min-width: 0; }
.cv-bz:hover { background: var(--g-fill); color: var(--g-fg); }
.cv-bz.on { background: var(--g-lens); box-shadow: var(--g-lens-sh); color: var(--g-fg); }
.cv-bz.top { font-weight: 600; margin: 2px 0; }
.cv-bz .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-bz .m { color: var(--g-fg3); font: 400 10.5px ui-monospace, monospace; flex: none; }
.cv-bz svg.rt { width: 11px; height: 11px; color: var(--g-accent); flex: none; }
.cv-bz svg.pi { width: 11px; height: 11px; color: var(--g-accent); flex: none; }
.cv-bz.f { color: var(--g-fg3); }
.cv-ba { margin: 2px 0 4px 22px; border: 0; background: transparent; color: var(--g-accent); font: 500 12px var(--g-font); cursor: pointer; }
.cv-aktuell { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cv-card { position: relative; }
.cv-pin { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 13px; background: var(--g-lens); box-shadow: var(--g-lens-sh); color: var(--g-fg3); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.cv-pin svg.i { width: 13px; height: 13px; }
.cv-card:hover .cv-pin, .cv-pin.on, .cv-zeile .cv-pin { display: inline-flex; }
.cv-pin.on { color: var(--g-accent); }
.cv-zeile .cv-pin { position: static; width: 22px; height: 22px; box-shadow: none; background: transparent; }
.cv-graph .pic.gr { aspect-ratio: auto; height: 64px; background: var(--g-fill); }
.cv-gz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin-top: 8px; }
.cv-gz > div { display: flex; flex-direction: column; min-width: 0; }
.cv-gz strong { font: 600 15px var(--g-font); font-variant-numeric: tabular-nums; }
.cv-gz span { color: var(--g-fg3); font-size: 11px; }
.cv-gz .w strong { color: var(--g-warn, #b4541a); }
.cv-zeilen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cv-zeile { display: grid; grid-template-columns: 70px minmax(0, 2fr) minmax(0, 1fr) 110px 110px 26px; gap: 10px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--g-line, rgba(0,0,0,.08)); cursor: pointer; font-size: 13px; }
.cv-zeile:hover { background: var(--g-fill); }
.cv-zeile .a { font: 600 10.5px ui-monospace, monospace; color: var(--g-fg3); }
.cv-zeile b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cv-zeile .i, .cv-zeile .z, .cv-zeile .k { color: var(--g-fg3); font: 400 11px ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-mehr { padding: 8px; color: var(--g-fg3); font-size: 12px; }
.cv-dgr { display: flex; flex-direction: column; gap: 6px; }
.cv-seg.sm { margin-left: 0; align-self: flex-start; }
.cv-gruppe > summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--g-fill); cursor: pointer; }
.cv-gruppe > summary .n { color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.cv-gruppe > summary .z { margin-left: auto; color: var(--g-fg3); font-size: 12px; }
.cv-detail { display: flex; flex-direction: column; gap: 12px; }
.cv-dk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cv-dk .typ { font: 600 11px var(--g-font); letter-spacing: .05em; text-transform: uppercase; color: var(--g-fg3); }
.cv-dk code { font-size: 12px; color: var(--g-fg2); }
.cv-dk .z { color: var(--g-fg3); font-size: 12px; margin-left: auto; }
.cv-dk .cv-pin { position: static; display: inline-flex; }
.cv-fakten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13px; }
.cv-fakten dt { color: var(--g-fg3); }
.cv-fakten dd { margin: 0; overflow-wrap: anywhere; }
.cv-hinweis { color: var(--g-fg3); font-size: 12.5px; margin: 0; }
.cv-leer { color: var(--g-fg3); }
@media (max-width: 860px) {
  .cv-lay { grid-template-columns: minmax(0, 1fr); }
  .cv-baum { position: static; max-height: 46vh; }
  .cv-zeile { grid-template-columns: 56px minmax(0, 1fr) 26px; }
  .cv-zeile .i, .cv-zeile .z, .cv-zeile .k { display: none; }
}
@media (max-width: 860px) {
  .cv-head { flex-wrap: wrap; }
  .cv-head .cv-seg { margin-left: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cv-head .cv-seg button { flex: none; }
}
/* Hero in der schmaleren Mitte (Baum links): ab < 900 px Inhaltsbreite Bild oben, Kacheln umbrechen statt Silben zu trennen */
.cv-inhalt { container-type: inline-size; }
@container (max-width: 900px) {
  .cv-hero { grid-template-columns: minmax(0, 1fr); }
  .cv-hero .pic { min-height: 200px; max-height: 260px; }
  .cv-hero .k4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .cv-hero .k4 > * { min-width: 0; }
  .cv-hero .k4 span { hyphens: none; overflow-wrap: normal; word-break: normal; }
}

/* ── Blätter: Kopf mit × (Esc schließt das oberste Blatt) ─────────────────────────────── */
.sheet-kopf { display: flex; align-items: center; gap: 10px; }
.sheet-kopf h3 { flex: 1; min-width: 0; }
.sheet-zu { flex: none; width: 34px; height: 34px; }

/* ── Dateiseite ohne Seiten-Renderer (XML, CSV, JSON, XLSX …): Übersicht statt Bühne (C 30.10.) ── */
.ue-zwei { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ue-spalte { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ue-karte { padding: 14px 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ue-leise { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--g-fg3); }
/* Herkunft (Checkliste 4.3): Zeile unter den Etiketten der Dateiseite ohne Renderer; Chip-Stil aus glass.css (.gx-herkunft) */
.dt-herkunft { flex: 1 1 100%; padding: 0 4px; min-width: 0; }
.dt-herkunft .gx-herkunft { margin: 0; }
/* Release der Lesung an der Kette (Container-Karten, Hero): kette.release aus dem einlage-/lesung-Commit */
.cv-card .cb .r .k.rel, .cv-hero .foot .k.rel { font-size: 11.5px; color: var(--g-fg3); white-space: nowrap; }
.cv-card .cb .r .k.rel.sm { font-size: 11px; }
.ue-leise.mono { font-family: var(--g-mono, var(--font-mono)); font-size: 12px; overflow-wrap: anywhere; }
.ue-h { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--g-fg3); }
.ue-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ue-tab th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--g-fg3); padding: 6px 8px; border-bottom: 0.5px solid var(--g-sep); }
.ue-tab td { padding: 7px 8px; border-bottom: 0.5px solid var(--g-sep); vertical-align: top; overflow-wrap: anywhere; }
.ue-tab .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ue-tab .mono { font-family: var(--g-mono, var(--font-mono)); font-size: 12px; color: var(--g-fg2); }
.ue-tab .leise { color: var(--g-fg3); }
.ue-zeile { cursor: pointer; }
.ue-zeile:hover td, .ue-zeile:focus-visible td { background: var(--g-accent-soft); }
.ue-zeile td:first-child b { color: var(--g-accent); }
.ue-prod, .ue-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ue-chips a.ent-p { text-decoration: none; }
.ue-graph { display: flex; gap: 12px; align-items: flex-start; }
.ue-graph .gi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--g-accent-soft); color: var(--g-accent); }
.ue-kette { display: flex; flex-wrap: wrap; gap: 6px; }
.ue-kette .glied { font-size: 12.5px; padding: 5px 10px; border-radius: 12px; background: var(--g-fill); color: var(--g-fg2); }
.ue-kette .glied.da { background: var(--g-live-bg); color: var(--g-live-fg); font-weight: 600; }
.ue-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13px; }
.ue-dl dt { color: var(--g-fg3); }
.ue-dl dd { margin: 0; overflow-wrap: anywhere; }
.ue-dl .mono { font-family: var(--g-mono, var(--font-mono)); font-size: 12px; }
@media (max-width: 900px) { .ue-zwei { grid-template-columns: minmax(0, 1fr); } }

/* Ausschnitt der Lesung als Blatt */
.sheet.ab-sheet { width: min(1100px, 100%); max-height: min(88dvh, 960px); overflow-y: auto; }
@media (min-width: 901px) { .sheet-back:has(.ab-sheet) { align-items: center; } .sheet.ab-sheet { border-radius: 22px; } }
.ab-zeilen { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ab-scroll { overflow-x: auto; max-width: 100%; }
.ab-tab td { white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.ab-z { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.ab-teil { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--g-fg3); }
.ab-aus mark { background: var(--g-amber-bg); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Kopf: Kennzahlen als Etiketten, „Lesung ▾“ als Ausklappliste (C 30.10.) */
.dt-etiketten { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.dt-etikett { font-size: 12.5px; color: var(--g-fg2); padding: 3px 10px; border-radius: 999px; background: var(--g-fill); white-space: nowrap; }
.dt-etikett b { color: var(--g-fg); font-variant-numeric: tabular-nums; }
.dt-etikett.warn b { color: var(--g-amber-fg); }
.dt-etikett.fehlt { color: var(--g-fg3); }
.dt-nav .dt-nav-b svg.i { width: 14px; height: 14px; margin-left: 2px; }
.menu.dt-lesung-menu { max-height: min(70vh, 520px); overflow-y: auto; min-width: 320px; }
.dt-lesung-menu button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; }
.dt-lesung-menu .n { color: var(--g-fg3); font-variant-numeric: tabular-nums; }
.dt-lesung-menu .z { color: var(--g-fg3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dt-lesung-menu button:hover .n, .dt-lesung-menu button:hover .z, .dt-lesung-menu button:focus-visible .n, .dt-lesung-menu button:focus-visible .z { color: inherit; }

/* Details: eine Seite */
.dt-details { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ue-drei { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }

/* Produkt-Explorer: links Baum (ETIM-Gruppe → Klasse → Produkt), Mitte ETIM-Werte, rechts Quelle */
.px { display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr) minmax(280px, 1.1fr); gap: 12px; align-items: start; min-width: 0; }
.px-baum, .px-mitte, .px-quelle { border-radius: 22px; padding: 12px; min-width: 0; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 76px; max-height: calc(100dvh - 100px); overflow: hidden; }
.px-mitte, .px-quelle { overflow-y: auto; }
.px-baum.cv-baum { padding: 10px 6px 12px; border-radius: 22px; gap: 0; display: flex; flex-direction: column; }
.px-liste { overflow-y: auto; min-height: 0; flex: 1; }
.px-baum .cv-bg > summary .t .mono, .px-baum .cv-bz .mono { font-family: var(--g-mono, var(--font-mono)); font-size: 11px; }
.px-baum .cv-bz .sn { flex: none; color: var(--g-fg2); }
/* echter Ordnerbaum (C 30.10.: „SNR nicht im Ordner“): jede Ebene sichtbar eingerückt, mit Führungslinie */
.px-baum ul.cv-bu { margin-left: 13px; padding-left: 8px; border-left: 1px solid var(--g-sep); }
.px-baum .cv-bz.on .sn { color: var(--g-accent); }
.px-baum summary:focus-visible, .px-baum .cv-bz:focus-visible { outline: 2px solid var(--g-ring-sel); outline-offset: -2px; }
.px-tab .mono { font-family: var(--g-mono, var(--font-mono)); font-size: 11.5px; }
.px-kopf { display: flex; flex-direction: column; gap: 4px; }
.px-scroll { overflow-x: auto; }
.px-tab td { vertical-align: top; }
.px-mn { font-size: 12.5px; color: var(--g-fg2); }
.px-z.offen .px-mn { color: var(--g-fg3); }
.px-me { margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 11px; background: var(--g-sep); color: var(--g-fg2); white-space: nowrap; }
.px-en { font-size: 11.5px; color: var(--g-fg3); font-style: italic; }
.px-st { font-size: 12px; color: var(--g-fg3); white-space: nowrap; }
.px-tab .leise { color: var(--g-fg3); }
.px-alt { display: flex; flex-wrap: wrap; gap: 4px; }
.px-w { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; border: 0; border-radius: 8px; padding: 3px 8px; background: var(--g-accent-soft); color: var(--g-accent); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.px-w.alt { background: var(--g-fill); color: var(--g-fg2); font-weight: 500; }
.px-w.eigen { background: var(--g-fill); color: var(--g-fg); font-weight: 500; }
.px-w.an { box-shadow: 0 0 0 2px var(--g-ring-sel); }
.px-tab td:first-child { min-width: 190px; }
.px-qs { min-width: 220px; max-width: 380px; }
.px-ql { display: grid; gap: 1px; width: 100%; margin: 0 0 4px; padding: 4px 7px; border: 0; border-radius: 7px; background: var(--g-fill); color: var(--g-fg); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.px-ql:hover { background: var(--g-accent-soft); }
.px-ql.an { box-shadow: 0 0 0 2px var(--g-ring-sel); }
.px-ql-a { font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--g-fg3); }
.px-ql-t { overflow-wrap: anywhere; }
.px-ql-o { font-size: 11px; color: var(--g-fg3); overflow-wrap: anywhere; }
.px-ql-g { font-size: 11.5px; color: var(--g-fg2); overflow-wrap: anywhere; }
.px-ql-gk { color: var(--g-fg3); }
.px-ql.gesperrt { background: transparent; border: 1px dashed var(--g-sep); cursor: default; }
.px-ql.schwach { border: 1px dashed var(--g-sep); }
.px-sperr { margin-left: 6px; padding: 0 4px; border-radius: 3px; background: var(--gc-warn-soft); color: var(--gc-warn-text); }
.px-ql-g.sperr { color: var(--gc-warn-text); }
.px-ohne { margin: 14px 0 6px; }
.px-ohne h4 { margin: 0 0 6px; font-size: 13px; }
.px-ohne-g > summary { cursor: pointer; font-size: 12.5px; padding: 3px 0; }
.px-ohne-g ul { margin: 4px 0 8px 18px; padding: 0; font-size: 12px; max-height: 360px; overflow: auto; }
.px-ohne-g li { margin: 2px 0; overflow-wrap: anywhere; }
.px-ql-mehr > summary { font-size: 12px; color: var(--g-accent); cursor: pointer; padding: 2px 4px; }
.px-q-titel { margin: 0; font-weight: 700; font-size: 13.5px; }
.px-q { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: var(--g-group); box-shadow: var(--g-group-sh); }
.px-q-art { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--g-accent); }
.px-q a.ent-p { align-self: flex-start; text-decoration: none; }
.px-q-ziel .kp-seite { margin: 0; }
.px-q-ziel .ab-tab td { max-width: 220px; }
@media (max-width: 1240px) { .px { grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr); } .px-quelle { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 900px) { .px, .ue-drei { grid-template-columns: minmax(0, 1fr); } .px-baum, .px-mitte { position: static; max-height: 60dvh; } }

/* Dateiseite in Spalten (C 31.10.: „Bild oben, unten nichts frei — zwei oder drei Spalten“): links das Original, Mitte die
   Superkern-Lesung, rechts „Gehört zu“. Drei Spalten ab 1400 px, zwei ab 900 px (Original | Lesung + Gehört zu), sonst eine.
   Jede Spalte scrollt für sich; die Seite selbst nie waagerecht. */
.dt-spalten-seite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dt-spalten-seite > .dt-kopf { position: static; }   /* Kopf scrollt weg, die Spalten bleiben stehen */
.dt-spalten { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.dt-sp { min-width: 0; display: flex; flex-direction: column; border-radius: 24px; background: var(--g-pane); box-shadow: var(--g-pane-sh); overflow: hidden; }
.dt-sp-h { flex: none; margin: 0; padding: 12px 16px 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--g-fg2); }
.dt-sp-in { min-width: 0; min-height: 0; padding: 0 14px 16px; display: flex; flex-direction: column; gap: 14px; overflow: auto; overscroll-behavior: contain; }
.dt-sp .dt-sek { margin: 0; padding: 0; min-width: 0; }
.dt-sp .dt-sek-h { font-size: 15px; margin: 4px 0 8px; }
.dt-sp .ue-karte { margin: 0; }
.dt-orig { min-width: 0; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.dt-orig-bild img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; cursor: zoom-in; }
.dt-orig-pdf { align-items: stretch; }
.dt-orig-pdf iframe { display: block; width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #FFFFFF; }
.dt-orig-av video, .dt-orig-av audio { display: block; width: 100%; max-height: 100%; }
.dt-orig-sonst { flex-direction: column; gap: 12px; }
.dt-orig-sonst .dt-stage { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
.dt-lesung { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 16px; background: var(--g-fill); }
.dt-lesung-z { font-size: 13px; font-weight: 600; color: var(--g-fg); overflow-wrap: anywhere; }
.ue-cid { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--g-accent); text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
.ue-cid:hover { text-decoration: underline; }
.ue-cid svg.i { width: 15px; height: 15px; flex: none; }
.tile .chk { cursor: pointer; }
.tile:hover .chk, .tile:focus-within .chk { display: flex; background: rgba(0, 0, 0, 0.38); }
.tile.sel .chk { background: var(--g-accent-fill); }
@media (min-width: 900px) {
  .dt-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .dt-sp-original { grid-row: span 2; position: sticky; top: 8px; height: calc(100vh - 110px); height: calc(100dvh - 110px); }
  .dt-sp-original .dt-sp-in { flex: 1; }
  .dt-sp-original .dt-orig { height: 100%; }
  .dt-sp-original .dt-orig-pdf iframe { height: 100%; }
  .dt-sp-original .dt-orig-sonst .dt-stage { aspect-ratio: auto; flex: 1; }
}
@media (min-width: 1400px) {
  .dt-spalten { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, 0.9fr); }
  .dt-sp-original { grid-row: auto; }
  .dt-sp-lesung, .dt-sp-gehoert { position: sticky; top: 8px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
}

/* Container-Ansicht in drei Spalten (C 31.10.: „clean up the container view with the columns“): links die Liste aller Container,
   Mitte der gewählte Container (Baum, Datei, Commits), rechts „Über den Container“. Drei Spalten ab 1400 px, zwei ab 900 px
   (Liste | Inhalt + Über untereinander), sonst eine. Jede Spalte scrollt für sich; kein Laufwerks-Panel auf dieser Seite. */
.cv.ca { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ca-zahlen { font-size: 13px; color: var(--g-fg2); }
.ca-spalten { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ca-sp .dt-sp-in { gap: 10px; }
.ca-filter { display: flex; flex-direction: column; gap: 8px; }
.ca-seg { flex-wrap: wrap; }
.ca-filter-z { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ca-suchfeld { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: var(--g-fill); }
.ca-suchfeld svg.i { width: 15px; height: 15px; flex: none; color: var(--g-fg2); }
.ca-such { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--g-fg); outline: none; }
.ca-typ { flex: none; max-width: 45%; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 12px; border: 0; background: var(--g-fill); color: var(--g-fg); }
.ca-zahl { font-size: 12px; color: var(--g-fg2); }
.ca-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ca-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; cursor: pointer; min-width: 0; }
.ca-zeile:hover { background: var(--g-fill); }
.ca-zeile.on { background: var(--g-accent-fill); }
.ca-zeile:focus-visible { outline: 2px solid var(--g-accent); outline-offset: -2px; }
.ca-badge { flex: none; min-width: 44px; text-align: center; padding: 2px 6px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; background: var(--g-fill); color: var(--g-fg2); }
.ca-badge.ca-k-eigen, .ca-badge.ca-k-lieferung, .ca-badge.ca-k-graph { color: var(--g-accent); }
.ca-zt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ca-zt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-zm { font-size: 12px; color: var(--g-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-mehr { list-style: none; padding: 6px 8px; font-size: 12px; color: var(--g-fg2); }
.ca-hinweis { margin: 0; font-size: 13px; color: var(--g-fg2); }
.ca-leer { padding: 24px 4px; }
.ca-baum { list-style: none; margin: 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 1px; }
.ca-mitte .dt-sek > .ca-baum { padding-left: 0; }
.ca-ordner > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.ca-ordner > summary::-webkit-details-marker { display: none; }
.ca-ordner > summary:hover { background: var(--g-fill); }
.ca-ordner > summary .ch { width: 12px; height: 12px; transition: transform 0.12s; }
.ca-ordner[open] > summary .ch { transform: rotate(90deg); }
.ca-ordner .fo, .ca-datei .fo { width: 15px; height: 15px; flex: none; color: var(--g-fg2); }
.ca-datei { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 6px 4px 24px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: var(--g-fg); text-align: left; cursor: pointer; min-width: 0; }
.ca-datei .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-datei .g { flex: none; font-size: 12px; color: var(--g-fg2); }
.ca-datei:hover { background: var(--g-fill); }
.ca-datei.on { background: var(--g-accent-fill); }
.ca-vorschau { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ca-vk { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; color: var(--g-fg2); }
.ca-vk code { color: var(--g-fg); overflow-wrap: anywhere; }
.ca-pre { margin: 0; max-height: 420px; overflow: auto; padding: 10px 12px; border-radius: 12px; background: var(--g-fill); font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ca-bild { display: block; max-width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: var(--g-fill); }
.ca-pdf { display: block; width: 100%; height: 420px; border: 0; border-radius: 12px; background: #FFFFFF; }
.ca-commits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ca-commits li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 2px; font-size: 13px; }
.ca-commits code { grid-row: span 2; font-size: 12px; color: var(--g-accent); }
.ca-commits .t { overflow-wrap: anywhere; }
.ca-commits .m { font-size: 12px; color: var(--g-fg2); }
.ca-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.ca-dl dt { color: var(--g-fg2); }
.ca-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ca-ref { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ca-ref code { overflow-wrap: anywhere; }
.ca-sha { font-size: 12px; color: var(--g-fg2); overflow-wrap: anywhere; }
.ca-quellen, .ca-verwendet { display: flex; flex-direction: column; gap: 8px; }
.ca-q { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ca-q summary { font-size: 12px; color: var(--g-fg2); cursor: pointer; }
.ca-pfade { margin: 4px 0 0; padding-left: 16px; font-size: 11px; color: var(--g-fg2); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .ca-spalten { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr); align-items: start; }
  .ca-links { grid-row: span 2; position: sticky; top: 8px; height: calc(100vh - 110px); height: calc(100dvh - 110px); }
  .ca-links .dt-sp-in { flex: 1; }
}
@media (min-width: 1400px) {
  .ca-spalten { grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.35fr) minmax(300px, 0.9fr); }
  .ca-links { grid-row: auto; }
  .ca-mitte, .ca-rechts { position: sticky; top: 8px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
}

/* Dateiseite „Inhalt“ (C 31.10.: was der Superkern aus DIESER Datei gelesen hat, aus dem Datei-Container) */
.di-block { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--g-line, rgba(0,0,0,.06)); }
.di-block:first-of-type { border-top: 0; }
.di-kopf { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.di-kopf h3 { margin: 0; font-size: 14px; font-weight: 600; }
.di-pfad { margin-left: auto; padding: 2px 8px; border: 0; border-radius: 8px; background: var(--g-fill); color: var(--g-fg2); font-size: 11px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-pfad:hover { color: var(--g-accent); }
.di-seite h4, .di-tabelle h4 { margin: 4px 0; font-size: 12.5px; font-weight: 600; color: var(--g-fg2); }
.di-zeilen { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.di-tabw { overflow-x: auto; max-width: 100%; }
.di-tab { font-size: 12.5px; }
.di-tab td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.di-dl { grid-template-columns: max-content 1fr; }
.di-pre { margin: 0; padding: 10px; border-radius: 10px; background: var(--g-fill); font: 12px/1.45 var(--g-mono, ui-monospace, monospace); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow: auto; }
.di-pfad-t { font-size: 11.5px; color: var(--g-fg2); overflow-wrap: anywhere; }
.di-links .cv-bz { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; }

/* Ein Container-Fenster (C 01.11.): Datei-Container als ein Screen (gcv-fenster.js, gcv.css) — nimmt Mitte und rechts ein. */
.ca-fenster { min-width: 0; padding: 0; background: none; box-shadow: none; }
.ca-fenster-in { container-type: inline-size; container-name: gcv; min-width: 0; }
@media (min-width: 1100px) { .ca-spalten:has(> .ca-fenster) { grid-template-columns: minmax(280px, 0.55fr) minmax(0, 2.25fr); } }

/* Browser-Board (C 01.11.): ein Datei-Container füllt die ganze Breite */
.ca-ganz { min-width: 0; }

/* Seitenleiste wie die Ablage der App (C 02.11.): Alles in S3 › Laufwerk › Ordner, Daraus gebaut */
.bm-z { display: flex; align-items: center; gap: 2px; padding-left: calc(var(--t, 0) * 12px); min-width: 0; }
.bm-z .nav { flex: 1; padding: 5px 8px; gap: 8px; }
.bm-z.on .nav { background: var(--select-strong); }
.bm-auf { flex: none; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--sub); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bm-auf:hover { background: var(--tile); }
.bm-auf svg { width: 11px; height: 11px; transition: transform .12s; }
.bm-auf.auf svg { transform: rotate(90deg); }
.bm-auf.leer { cursor: default; }
.bm-auf.leer:hover { background: transparent; }
.bm-hinweis { padding: 3px 0 3px calc(var(--t, 0) * 12px + 28px); color: var(--sub); font-size: 12px; }
/* Ab 900 px (Entwurf Navigation: dynamisch die volle Breite) steht der Baum fest zwischen Leiste und Hauptspalte wie in der App; schmaler bleibt er das ausklappbare Blatt */
@media (min-width: 900px) {
  .app.baum-fest:not(.ana-gross):not(.datei-gross) { grid-template-columns: 60px 280px minmax(0, 1fr); }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .side.glass { position: relative; left: auto; top: auto; z-index: auto; grid-column: 2; grid-row: 1;
    width: auto; max-height: none; transform: none; opacity: 1; pointer-events: auto; animation: none; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .mainc { grid-column: 3; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) #side-zu { display: none; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .scrim.open { display: none; }
}

/* ── Fenster-Modus (Entwurf „S3 im Browser · derselbe Urcontainer“, C 03.11.2026) ──────────────────────────────────────────────────
   Ist ein Container-Fenster offen (app.js fensterModus), bleiben links nur die Leiste und oben eine Zeile: Pfad · Suche · Explore ·
   Hell/Dunkel; darunter das Fenster über die ganze Breite. Maße aus dem Entwurf (.s3-main, .s3-kopf, .s3-krume, .s3-suche, .s3-ki, .s3-rund). */
.app.fenster-modus, .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) { grid-template-columns: 86px minmax(0, 1fr); gap: 0; padding: 0; }
.app.fenster-modus .mainc, .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) .mainc { grid-column: 2; padding: 14px 20px 26px; min-height: 0; }
/* Leiste wie .s3-rail im Entwurf: 86 px, volle Höhe, bündig; Einträge 70 px */
.app.fenster-modus .rail { grid-column: 1; align-self: stretch; width: 86px; max-height: none; height: 100%; box-sizing: border-box; padding: 12px 8px 14px; gap: 3px; border-radius: 0; }
.app.fenster-modus .rail .rb.logo img { width: 38px; height: 38px; border-radius: 11px; }
.app.fenster-modus .rail .rb.logo { margin: 2px 0 8px; height: auto; }
.app.fenster-modus .rail .rb.drv { width: 70px; padding: 7px 0 6px; border-radius: 12px; }
.app.fenster-modus .rail .rb.drv .nm { max-width: 66px; font-size: 11px; font-weight: 600; }
.app.fenster-modus .rail .rb.mit-l { width: 70px; min-height: 0; padding: 7px 0 6px; border-radius: 12px; }
.app.fenster-modus .rail .rb .rb-l { max-width: 66px; font-size: 10.5px; font-weight: 500; }
.app.fenster-modus .rail .rsep { width: 44px; height: 1px; margin: 7px 0; }
.app.fenster-modus #side, .app.fenster-modus #detail, .app.fenster-modus #standband, .app.fenster-modus + .chips { display: none !important; }
.app.fenster-modus #chips { display: none !important; }
.app.fenster-modus .mainc { gap: 12px; }
.app.fenster-modus .toolbar, .app.fenster-modus .toolbar.glass { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; border-radius: 0; gap: 0; }
.app.fenster-modus .tb-row.top { min-height: 44px; gap: 10px; flex-wrap: wrap; }
.app.fenster-modus #tb-n, .app.fenster-modus #filt-tg, .app.fenster-modus #qmode, .app.fenster-modus #lay, .app.fenster-modus #sortw,
.app.fenster-modus #zeit-tg, .app.fenster-modus #detail-tg, .app.fenster-modus #upbtn, .app.fenster-modus .search kbd { display: none !important; }
.app.fenster-modus .crumbs { flex: 0 1 auto; gap: 6px; font-size: 13px; color: var(--gc-text-3); }
.app.fenster-modus .crumbs button { padding: 0; border-radius: 0; font-size: 13px; color: var(--gc-text-3); background: none; }
.app.fenster-modus .crumbs button.last { color: var(--gc-text); font-weight: 600; }
.app.fenster-modus .crumbs .sepc svg.i { width: 13px; height: 13px; }
.app.fenster-modus .search { margin-left: auto; flex: none; width: 300px; max-width: 100%; height: 36px; border-radius: 999px; padding: 0 14px; gap: 8px; }
.app.fenster-modus .search input { font-size: 13px; }
.app.fenster-modus #fenster-ki { height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 600; gap: 7px; }
.app.fenster-modus #theme { width: 36px; height: 36px; border-radius: 50%; }
.app.fenster-modus .content, .app.fenster-modus .content.glass { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.app.fenster-modus .ca-ganz .ca-fenster { padding: 0; }
.app.fenster-modus .toolbar, .app.fenster-modus .toolbar.glass { display: block; height: 44px; min-height: 0; padding: 0 !important; margin: 0; }
.app.fenster-modus .tb-row.top { height: 44px; margin: 0; padding: 0; }
.app.fenster-modus main.content { margin: 0; }
.app.fenster-modus .cv.ca { margin: 0; }

/* Entwurf Navigation (C 03.11.): Herkunft als Klappe, Ordnerbaum und Import-Kategorien darin */
.side details.herkunft { margin-top: 10px; }
.side details.herkunft > summary, .side details.abschnitt > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; user-select: none; }
.side details.herkunft > summary::-webkit-details-marker, .side details.abschnitt > summary::-webkit-details-marker { display: none; }
.side details.herkunft > summary::before, .side details.abschnitt > summary::before { content: "›"; display: inline-block; width: 8px; transition: transform .15s; }
.side details.herkunft[open] > summary::before, .side details.abschnitt[open] > summary::before { transform: rotate(90deg); }
.side details.abschnitt > summary[hidden] { display: none; }
.side details.herkunft > summary small { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .7; }
.chips .chip .chip-n { margin-left: 6px; opacity: .6; font-variant-numeric: tabular-nums; }
/* Entwurf Navigation: Urcontainer zusammengefasst nach Art; ohne Wahl volle Breite (Liste | Übersicht) */
@media (min-width: 1100px) { .ca-spalten.ca-zwei { grid-template-columns: minmax(300px, 0.75fr) minmax(0, 2.25fr) !important; } .ca-spalten.ca-zwei > .ca-mitte { max-height: none !important; } }
.ur-ueber { display: flex; flex-direction: column; gap: 12px; }
.ur-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ur-kachel { appearance: none; border: 1px solid var(--line, rgba(0,0,0,.08)); background: var(--card, #fff); border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.ur-kachel b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ur-kachel span { font-size: 12.5px; color: var(--sub); }
.ur-kachel:hover { border-color: var(--accent, #1d5fe2); }
.ur-kachel.on { border-color: var(--accent, #1d5fe2); box-shadow: 0 0 0 1px var(--accent, #1d5fe2) inset; }
/* Entwurf Navigation wie die Desktop-App: dünne Icon-Leiste am linken Rand (volle Höhe), daneben die ausfahrbare Spalte, dann der Inhalt */
@media (min-width: 900px) {
  .app.baum-fest:not(.ana-gross):not(.datei-gross) { grid-template-columns: 56px 280px minmax(0, 1fr); padding: 0 12px 0 0; gap: 10px; }
  .app.baum-fest.nav-zu:not(.ana-gross):not(.datei-gross) { grid-template-columns: 56px minmax(0, 1fr); }
  .app.baum-fest.nav-zu:not(.ana-gross):not(.datei-gross) .side.glass { display: none; }
  .app.baum-fest.nav-zu:not(.ana-gross):not(.datei-gross) .mainc { grid-column: 2; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .rail { grid-column: 1; align-self: stretch; height: 100vh; max-height: none; position: sticky; top: 0; width: 56px;
    border-radius: 0; margin: 0; padding: 10px 6px; box-sizing: border-box; box-shadow: 1px 0 0 var(--line, rgba(0,0,0,.08)); }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .rail .rb .rb-l, .app.baum-fest:not(.ana-gross):not(.datei-gross) .rail .rb.drv .nm { display: none; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .rail .rb.mit-l, .app.baum-fest:not(.ana-gross):not(.datei-gross) .rail .rb.drv { width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 11px; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .side.glass { grid-column: 2; margin: 10px 0; height: calc(100vh - 20px); max-height: none; position: sticky; top: 10px; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .mainc { grid-column: 3; padding-top: 10px; }
}
.side[data-teil="ablage"] details.herkunft > summary { display: none; }
.side[data-teil="ablage"] details.herkunft { margin-top: 6px; }
/* Entwurf Navigation: Ordner als Mappe der Desktop-Ablage, ohne Kachel dahinter */
.fic.mappe-gross, .big-ic.mappe-gross { background: none !important; box-shadow: none !important; }
.fic.mappe-gross svg.i.mappe { width: 34px; height: 28px; }
.big-ic.mappe-gross svg.i.mappe { width: 96px; height: 78px; }

/* Entwurf Navigation (C 03.11.: „100 % pixelgleich auch die rechte Spalte“, „keine Schatten“): Werte aus gitchain-core
   desktop/src/src/renderer/src/components/ablagesicht/ablagesicht.css (--as-*), Karten flach mit Haarlinie, Fläche dahinter #e9e9ec */
:root:not([data-theme="dark"]) { --as-aussen: #e9e9ec; --as-karte: #ffffff; --as-text: #1d1d1f; --as-gedaempft: #6e6e73; --as-leise: #8e8e93; --as-akzent: #3478f6;
  --as-akzent-text: #1f5fd6; --as-knopf-ring: #e3e3e6; --as-hinzu-rand: #b9cff7; --as-hinzu-flaeche: #f7faff; --as-segment-text: #3a3a3e; }
:root[data-theme="dark"] { --as-aussen: #000000; --as-karte: #1c1c1e; --as-text: #f5f5f7; --as-gedaempft: #a1a1a6; --as-leise: #8e8e93; --as-akzent: #3478f6;
  --as-akzent-text: #6ea2ff; --as-knopf-ring: #48484a; --as-hinzu-rand: rgba(110, 162, 255, .45); --as-hinzu-flaeche: rgba(52, 120, 246, .1); --as-segment-text: #f5f5f7; }
body { background: var(--as-aussen) !important; }
.app .glass, .app .glass.soft, .app .glass.pop, .rail { background: var(--as-karte) !important; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.app .side.glass, .app .detail.glass { border-radius: 14px !important; }
.detail.as-rechts { padding: 16px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; color: var(--as-text); }
.detail .as-rechts-inhalt { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.detail .as-rechts-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.detail .as-symbol { position: relative; flex: 0 0 auto; display: block; }
.detail .as-symbol-gross svg.i.mappe { width: 70px; height: 56px; display: block; }
.detail .as-rechts-namen { min-width: 0; display: flex; flex-direction: column; }
.detail .as-rechts-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail .as-rechts-art { font-size: 12.5px; color: var(--as-gedaempft); margin-top: 2px; }
.detail .as-rechts-titel { font-size: 13px; font-weight: 600; color: var(--as-gedaempft); margin-top: 2px; }
.detail .as-speicherort { margin: 14px 0 4px; }
.detail .as-speicherort-zeile { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.detail .as-ort-wolke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--as-gedaempft); }
.detail .as-rechts-knoepfe { display: flex; gap: 8px; }
.detail .as-knopf-akzent, .detail .as-knopf-rand { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 99px; font: inherit; font-size: 14px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.detail .as-knopf-akzent { background: var(--as-akzent); color: #ffffff; font-weight: 600; }
.detail .as-knopf-rand { background: var(--as-karte); color: var(--as-text); box-shadow: inset 0 0 0 1px var(--as-knopf-ring); }
.detail .as-knopf-rund { width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 99px; background: var(--as-karte); color: var(--as-segment-text);
  box-shadow: inset 0 0 0 1px var(--as-knopf-ring); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.detail .as-rechts-hinzu { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--as-akzent-text); cursor: pointer; padding: 0 14px; border: 1.5px dashed var(--as-hinzu-rand); background: var(--as-hinzu-flaeche); }
.detail .as-knopf-akzent:focus-visible, .detail .as-knopf-rand:focus-visible, .detail .as-knopf-rund:focus-visible, .detail .as-rechts-hinzu:focus-visible { outline: 2px solid var(--as-akzent); outline-offset: 2px; }
@media (min-width: 900px) and (max-width: 1239px) { .app.baum-fest:not(.ana-gross):not(.datei-gross) { grid-template-columns: 56px 240px minmax(0, 1fr); } .app .rail { display: flex !important; } }
/* Entwurf Navigation: Konto und Admin unten in der Leiste, in der Spalte keine Kontozeile mehr */
@media (min-width: 900px) {
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .rail .rsep.unten-trenn { margin-top: auto; visibility: hidden; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) .side .user { display: none; }
}
.app.fenster-modus .rail .rsep.unten-trenn { margin-top: auto; visibility: hidden; }
.admin-teil { display: flex; flex-direction: column; gap: 6px; }
.admin-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-liste li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.admin-liste li .sub { margin-left: auto; }
/* Entwurf Navigation: Import-Kategorien nach Quelle gruppiert */
.side .kat-gruppe > summary { list-style: none; cursor: pointer; }
.side .kat-gruppe > summary::-webkit-details-marker { display: none; }
.side .kat-gruppe > summary .t { font-weight: 600; }
.side .kat-gruppe .kat-kinder { padding-left: 18px; }
.side #cats svg.i.mappe { width: 16px; height: 13px; }
/* Entwurf Navigation: Werkzeugleiste bleibt einzeilig (Suche gibt nach), Spalte breit genug für die Gruppennamen */
@media (min-width: 900px) {
  .toolbar .tb-row.top { flex-wrap: nowrap; }
  .toolbar .tb-row.top .search { flex: 1 1 200px; min-width: 140px; }
  .toolbar .tb-row.top .crumbs { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .app.baum-fest:not(.ana-gross):not(.datei-gross) { grid-template-columns: 56px 300px minmax(0, 1fr); }
}
/* Entwurf Navigation: Dateien nach Klasse aus dem Urcontainer */
.kl-ansicht { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 24px; }
.kl-kopf { display: flex; align-items: baseline; gap: 10px; padding: 6px 4px 8px; }
.kl-gruppe { background: var(--as-karte, #fff); border-radius: 12px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.kl-gruppe > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; }
.kl-gruppe > summary::-webkit-details-marker { display: none; }
.kl-gruppe > summary::before { content: "›"; display: inline-block; width: 8px; transition: transform .15s; color: var(--sub); }
.kl-gruppe[open] > summary::before { transform: rotate(90deg); }
.kl-name { font-weight: 600; font-size: 14px; }
.kl-ec { font-size: 11.5px; color: var(--sub); }
.kl-zahl { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--sub); font-size: 13px; }
.kl-liste { display: flex; flex-direction: column; padding: 0 8px 8px; }
.kl-datei { appearance: none; background: none; border: 0; border-top: 1px solid var(--as-linie, #f0f0f2); font: inherit; color: inherit; display: flex; align-items: center; gap: 10px; padding: 7px 8px; text-align: left; cursor: pointer; }
.kl-datei:hover { background: var(--as-hover, #f5f5f7); }
.kl-datei .fic { width: 22px; height: 22px; display: grid; place-items: center; }
.kl-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.kl-snr { font-size: 12px; color: var(--sub); }
.kl-grund { font-size: 12px; color: var(--sub); font-style: italic; }
/* Entwurf Navigation (C 03.11.: „Navigation immer links“): auch im Fenster (Produkt, Urcontainer, Container) bleiben Leiste und Spalte */
@media (min-width: 900px) {
  .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) { grid-template-columns: 56px 300px minmax(0, 1fr) !important; gap: 10px !important; padding: 0 12px 0 0 !important; }
  .app.baum-fest.nav-zu.fenster-modus:not(.ana-gross):not(.datei-gross) { grid-template-columns: 56px minmax(0, 1fr) !important; }
  .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) #side { display: flex !important; grid-column: 2; }
  .app.baum-fest.nav-zu.fenster-modus:not(.ana-gross):not(.datei-gross) #side { display: none !important; }
  .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) .mainc { grid-column: 3 !important; padding: 10px 0 26px !important; }
  .app.baum-fest.nav-zu.fenster-modus:not(.ana-gross):not(.datei-gross) .mainc { grid-column: 2 !important; }
  .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) .rail { width: 56px !important; padding: 10px 6px !important; }
  .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) .rail .rb .rb-l, .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) .rail .rb.drv .nm { display: none !important; }
  .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) .rail .rb.mit-l, .app.baum-fest.fenster-modus:not(.ana-gross):not(.datei-gross) .rail .rb.drv { width: 40px !important; min-height: 40px !important; height: 40px !important; padding: 0 !important; border-radius: 11px !important; }
}
.kl-art { flex: 0 0 104px; font-size: 12.5px; font-weight: 600; color: var(--as-akzent-text, #1f5fd6); }
.kl-sprache, .kl-seiten { font-size: 11.5px; color: var(--sub); flex: none; }
.kl-sprache { padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--as-rand-hell, #e8e8ea); }
.kl-produkte { display: flex; flex-direction: column; padding: 0 8px 8px; }
.kl-produkt { border-top: 1px solid var(--as-linie, #f0f0f2); }
.kl-produkt > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 9px 8px; }
.kl-produkt > summary::-webkit-details-marker { display: none; }
.kl-produkt > summary::before { content: "›"; display: inline-block; width: 8px; transition: transform .15s; color: var(--sub); }
.kl-produkt[open] > summary::before { transform: rotate(90deg); }
.kl-pname { font-size: 13.5px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-produkt .kl-liste { padding: 0 0 6px 18px; }
.side .kat-quelle { color: var(--sub); font-weight: 400; font-size: 11.5px; }
.side .nd-snr .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-pkopf b { font-size: 16px; }
.kl-einzeln { padding-top: 6px; }
.side .nd-label { display: block; margin: 8px 0 2px; }
/* Entwurf Navigation: oberste Ordner „Produkte“ und „Medien“ (zugeklappt) */
.side details.ober { margin-top: 4px; }
.side details.ober > summary { list-style: none; cursor: pointer; }
.side details.ober > summary::-webkit-details-marker { display: none; }
.side details.ober > summary::before { content: "›"; display: inline-block; width: 10px; transition: transform .15s; color: var(--sub); }
.side details.ober[open] > summary::before { transform: rotate(90deg); }
.side details.ober > summary .t { font-weight: 700; }
.side details.ober > div { padding-left: 8px; }
/* Entwurf Navigation (C 03.11.: „Design nach rechts und über den ganzen Bildschirm ausbreiten“): Urcontainer-Seite volle Höhe und Breite */
@media (min-width: 900px) {
  .cv.ca { min-height: calc(100vh - 70px); display: flex; flex-direction: column; }
  .cv.ca > .ca-spalten { flex: 1; align-items: stretch; }
  .ca-spalten.ca-zwei > .ca-sp { min-height: calc(100vh - 120px); }
  .ur-kacheln { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .ur-kachel { padding: 18px 20px; border-radius: 14px; }
  .ur-kachel b { font-size: 30px; }
  .ur-kachel span { font-size: 13.5px; }
}
/* Entwurf Navigation: verschmolzene Leiste — die Spalte zeigt nur den gewählten Bereich */
.side .teil { display: none; }
.side[data-teil="produkte"] .teil[data-teil="produkte"], .side[data-teil="medien"] .teil[data-teil="medien"],
.side[data-teil="container"] .teil[data-teil="container"], .side[data-teil="ansichten"] .teil[data-teil="ansichten"] { display: block; }
.side .teil-titel { font-size: 17px; font-weight: 700; margin: 2px 4px 10px; display: flex; align-items: baseline; gap: 8px; }
.side .teil-titel[data-n]::after { content: attr(data-n); font-size: 12px; font-weight: 500; color: var(--sub); }
.side .teil .herkunft { margin-top: 12px; }

/* Eine Navigation (Test 03.11.): Spalte offen → keine Leiste, Bereich-Wahl oben in der Spalte; Spalte zu → nur die Leiste */
.teil-wahl { display: none; }
@media (min-width: 900px) {
  .app.baum-fest:not(.nav-zu):not(.ana-gross):not(.datei-gross) { grid-template-columns: 300px minmax(0, 1fr) !important; padding: 0 12px 0 12px !important; }
  .app.baum-fest:not(.nav-zu):not(.ana-gross):not(.datei-gross) .rail { display: none !important; }
  .app.baum-fest:not(.nav-zu):not(.ana-gross):not(.datei-gross) #side { grid-column: 1 !important; }
  .app.baum-fest:not(.nav-zu):not(.ana-gross):not(.datei-gross) .mainc { grid-column: 2 !important; }
  .app.baum-fest:not(.nav-zu) .teil-wahl { display: flex; gap: 2px; padding: 2px; margin: 0 2px 12px; border-radius: 9px; background: #e4e4e8; }
  .teil-wahl .tw { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border: 0; border-radius: 7px; background: transparent; color: var(--as-segment-text, #3a3a3e); font: inherit; font-size: 10.5px; cursor: pointer; }
  .teil-wahl .tw.on { background: var(--as-karte, #fff); color: var(--as-akzent-text, #1f5fd6); box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
  .teil-wahl .tw span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .teil-wahl .tw.zu { flex: 0 0 34px; justify-content: center; }
}

/* Reiter „Produkte“: „Produkt-Container“ ohne Container nicht zeigen (.label setzt display und überschrieb hidden) */
#gebaut-label[hidden], #gebaut[hidden] { display: none; }

/* Container-Liste: Vorschaubild (Seite 1 bzw. Original) — vom Superkern im Container; ohne Bild bleibt das Dateityp-Zeichen */
.ca-vb { position: relative; flex: none; width: 44px; height: 52px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: var(--g-fill); }
.ca-vb .ca-badge { min-width: 0; padding: 2px 4px; background: transparent; }
.ca-vb .ca-vb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; background: #fff; }
.ca-vb .ca-vb-img.loaded { opacity: 1; }
.ca-vb:has(.ca-vb-img.loaded) .ca-badge { visibility: hidden; }

/* Vorschaubild je Datei (C 11.11.: „überall auf Dateiebene Vorschaubilder, keine Icons“): neutraler Platz statt Dateityp-Zeichen;
   kommt kein Bild aus dem Container/Superkern, steht klein „Vorschau fehlt“ — nichts wird in der App gerendert */
.vb-platz { position: relative; background: var(--g-fill); border-radius: 6px; }
.vb-platz > .ticon, .ca-vb.vb-platz > .ca-badge { visibility: hidden; }
.vb-platz.vb-fehlt::after { content: attr(data-vb-fehlt); position: absolute; inset: 0; display: grid; place-items: center; padding: 2px; text-align: center;
  font-size: 9px; line-height: 1.15; color: var(--g-fg3, #8a8a8e); pointer-events: none; }

/* Container-Reiter (C 11.11.): ausgeblendete Einzelbild-/XML-Container eingeklappt am Ende; Zahlen in der Seitenleiste */
.ca-ausgeblendet { margin-top: 10px; }
.ca-ausgeblendet > summary { cursor: pointer; }
.ca-nav-zahl { padding-left: 34px; font-size: 11px; }

/* Bewusst nicht gelesene Datei (Superkern nicht_gelesen, z. B. macOS-Metadaten): Abzeichen mit Grund als Tooltip, schlichter Platz */
.ng-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; line-height: 17px; vertical-align: 1px;
  color: var(--g-fg2); background: var(--g-fill); border: 1px solid var(--g-line, rgba(0,0,0,.12)); white-space: nowrap; }
.vb-ng.vb-fehlt::after { content: none; }


/* Aufgeräumte Produkte-Ansicht (Board 1, 2, 3): eigener Header im Board, keine doppelte Toolbar darüber */
.app.produkte-modus #chips { display: none !important; }
.app.produkte-modus .toolbar { display: flex !important; }
.app.produkte-modus .mainc { padding: 0 !important; gap: 0 !important; }

/* Produkte-Leiste (C 17.11.): „Alle SNR-Container“ steht bündig mit den Bereichen darunter — kein leerer Pfeilplatz, gleiche Zeilenmaße. */
#container-nav > .bm-z > .bm-auf.leer { display: none; }
#container-nav > .bm-z { gap: 0; }

.side[data-teil="raeume"] .teil[data-teil="raeume"] { display: block; }

.teil-wahl { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 2px !important; padding: 3px !important; }
.teil-wahl-k { padding: 6px 3px !important; font-size: 11px !important; }

/* Übersicht = Startseite (C 18.11., public/start.js): dunkler Kopf mit dem drehenden Gerät, darunter je Dokumentart ein Bildband
   aus echten Vorschaubildern (Kacheln wie „Entdecken“, 3D dreht beim Überfahren) */
.start-ueb { display: flex; flex-direction: column; gap: 28px; min-width: 0; width: 100%; max-width: 1480px; margin: 0 auto; align-self: stretch; padding: 4px 0 40px; }
.lp-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 2px 2px 0; font-size: 13px; color: var(--gc-text-2); }
.lp-zahlen { display: contents; }
.lp-zahl b { color: var(--gc-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-band { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lp-bk { display: flex; align-items: baseline; gap: 10px; padding: 0 2px; }
.lp-bk h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--gc-text); }
.lp-n { color: var(--gc-text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.lp-alle { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.lp-alle svg.i { width: 14px; height: 14px; }
.lp-reihe { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 10px; scrollbar-width: thin; }
.lp-reihe > * { scroll-snap-align: start; }
.lp-reihe .ent-k { width: 100%; aspect-ratio: 3 / 4; }
.lp-band[data-art="bild"] .lp-reihe .ent-k, .lp-band[data-art="cad"] .lp-reihe .ent-k, .lp-band[data-art="video"] .lp-reihe .ent-k { aspect-ratio: 4 / 3; }
.lp-band[data-art="bild"] .lp-reihe, .lp-band[data-art="cad"] .lp-reihe, .lp-band[data-art="video"] .lp-reihe { grid-auto-columns: 240px; }
/* Produkte: dieselbe große Kachel wie die Baureihen-Ansicht der SNR-Container (C 19.11.) — vier je Reihe, Bild 220 px auf Weiß,
   Kurzname + „N Geräte“, Kategorien als Chips wie dort die Varianten. Werte wie in app.js (Baureihen-Raster) */
.lp-sektoren { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(220px, calc(25% - 12px)), 1fr)); gap: 16px; }
.lp-sektor { display: flex; flex-direction: column; background: #FFFFFF; color: #111827; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; }
.lp-sk-bild { height: 220px; padding: 12px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border-bottom: 1px solid #F3F4F6; cursor: pointer; }
.lp-sk-bild img { max-width: 100%; max-height: 196px; object-fit: contain; }
.lp-sk-fuss { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.lp-sk-kopf { display: flex; align-items: baseline; gap: 6px; }
.lp-sk-nm { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #111827; text-align: left; cursor: pointer; line-height: 1.3; }
.lp-sektor .lp-sn { flex: none; color: #4B5563; font-size: 12px; font-variant-numeric: tabular-nums; }
.lp-sk-lbl { color: #6B7280; font-size: 11px; margin-bottom: -4px; }
.lp-sk-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 40px; }
.lp-sk-chip { min-width: 38px; height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid #D1D5DB; background: #FFFFFF; color: #111827; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lp-sk-chip:hover { border-color: #1D4ED8; color: #1D4ED8; }
.lp-sk-nm:focus-visible, .lp-sk-chip:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 2px; }
.lp-skel { aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(100deg, var(--gc-surface-2) 30%, var(--gc-surface) 50%, var(--gc-surface-2) 70%) 0 0 / 300% 100%; animation: lp-skel 1.4s ease-in-out infinite; }
@keyframes lp-skel { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .lp-skel { animation: none; } }
.lp-fehler { font-size: 13px; color: var(--g-amber-fg, var(--gc-text-2)); padding: 6px 2px; }
.lp-werkzeuge { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-werkzeuge .label { margin-right: 4px; }
.lp-werkzeuge .chip svg.i { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .lp-reihe { grid-auto-columns: 158px; }
}
.lp-faelle { display: flex; flex-direction: column; gap: 12px; }
.lp-faelle-h { margin: 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--gc-text); }
.lp-faelle-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lp-fall { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 16px; border: 1px solid var(--gc-line); background: var(--gc-surface); }
.lp-fall h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--gc-text); letter-spacing: -0.01em; }
.lp-fall p { margin: 0; flex: 1; font-size: 13px; line-height: 1.5; color: var(--gc-text-2); }
.lp-fall-knopf { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 7px 14px; border: 0; border-radius: 99px; cursor: pointer;
  background: #0b2233; color: #fff; font: 600 13px/1 var(--g-font); }
.lp-fall-knopf:hover { background: #12415a; }
.lp-fall-knopf:focus-visible { outline: 2px solid var(--gc-accent); outline-offset: 2px; }
.lp-fall-knopf svg.i { width: 14px; height: 14px; }
.lp-hinweis { margin: -4px 2px 0; font-size: 13px; color: var(--gc-text-2); }
.lp-hinweis-band { margin: 0 2px -14px; }


/* 85% Visuals, 15% Text + Dropdowns on Übersicht & Global */
.start-ueb .lp-hinweis {
  display: none !important;
}
.start-ueb .lp-sk-bild {
  height: 236px !important;
}
.start-ueb .lp-sektor {
  border-radius: 14px !important;
}
.start-ueb .lp-faelle-dd > summary::-webkit-details-marker,
.start-ueb .lp-sk-dd > summary::-webkit-details-marker,
details > summary::-webkit-details-marker {
  display: none;
}


/* ── Browser-Tab-Thin Global Toolbar (#toolbar) & Rail Icons (1.25px stroke, 400 weight, 11.5px font) ── */
.toolbar {
  min-height: 30px !important;
  padding: 2px 10px !important;
}
.toolbar .tb-row.top {
  min-height: 28px !important;
  gap: 6px !important;
}
.crumbs, .crumbs button, .crumbs button.last {
  font-size: 11.5px !important;
  font-weight: 400 !important;
  height: 24px !important;
  line-height: 24px !important;
}
.crumbs button.last {
  color: #0F172A !important;
  font-weight: 450 !important;
}
.crumbs svg.i, .toolbar svg.i, .rail svg.i {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 1.25 !important;
}


/* Keep #searchbox compact on the right so Intelligent Navigation Dropdowns never overlap it */
.toolbar .tb-row.top #searchbox {
  margin-left: auto !important;
  flex: 0 1 220px !important;
  max-width: 220px !important;
  min-width: 140px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 11.5px !important;
}
.toolbar .tb-row.top #searchbox input {
  font-size: 11.5px !important;
  font-weight: 400 !important;
}


/* Hide outer #toolbar when inside the 3-column Container Studio (.stu-arbeit) so .stu-reiter is the single full-width 30px top bar */
.app:has(.stu-arbeit.stu-neu) .toolbar {
  display: none !important;
}


/* ── EMBEDDED VIEWER3D.CSS ── */
/* GitChain S3 — 3D-Betrachter (viewer3d.mjs): Stile der Klassen .v3d…. Eine Quelle für S3 und die App (angeheftete Kopie in
   gitchain-core desktop, Prüfsumme dort). Farben aus den S3-Tokens (--gc-…); fehlen sie (App: Container-Fenster), gelten die Tokens des
   Fensters (--v-…, hell und dunkel aus gcv.css), zuletzt feste helle Werte. */
.v3d-nicht { height: 100%; justify-content: center; background: var(--gc-surface-2, var(--v-surface-2, #f2f4f6)); border-radius: var(--gc-r-sm, 10px); box-shadow: 0 0 0 1px var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; outline: none; }
.v3d-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.v3d-leiste, .v3d-hinweise, .v3d-fuss { flex-shrink: 0; }
.v3d-ar, a.v3d-k { flex: none; }
.v3d-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--gc-r-pill, 999px); background: var(--gc-surface-3, var(--v-surface-3, #e9ecf0)); }
.v3d-k { border: 0; background: transparent; color: var(--gc-text-2, var(--v-ink-2, #4f555d)); font: 500 12.5px/1 var(--gc-font, var(--v-font, system-ui, sans-serif)); padding: 7px 10px; border-radius: var(--gc-r-pill, 999px); cursor: pointer; white-space: nowrap; min-height: 30px; }
.v3d-ar { display: inline-flex; align-items: center; border-radius: 6px; line-height: 0; }
.v3d-ar img { display: block; height: 28px; width: auto; }
a.v3d-k { text-decoration: none; display: inline-flex; align-items: center; }
.v3d-k:hover { color: var(--gc-text, var(--v-ink, #14171d)); }
.v3d-k[aria-pressed="true"] { background: var(--gc-raised, var(--v-surface, #ffffff)); color: var(--gc-text, var(--v-ink, #14171d)); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), 0 0 0 0.5px rgba(16, 24, 40, 0.06); }
.v3d-k:focus-visible { outline: 2px solid var(--gc-ring, var(--v-accent, #1d5fe2)); outline-offset: 1px; }
.v3d-k.klein { padding: 4px 8px; min-height: 24px; font-size: 12px; background: var(--gc-surface-3, var(--v-surface-3, #e9ecf0)); }
.v3d-buehne { position: relative; flex: 1; min-height: 240px; border-radius: var(--gc-r-sm, 10px); overflow: hidden; background: var(--gc-surface-2, var(--v-surface-2, #f2f4f6)); box-shadow: 0 0 0 1px var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.v3d-canvas:active { cursor: grabbing; }
.v3d-lade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gc-text-3, var(--v-ink-3, #656b73)); font-size: 13px; padding: 20px; text-align: center; }
.v3d-lade.err { color: var(--gc-err-text, var(--v-crit, #c22826)); }
.v3d-etik { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.v3d-lab { position: absolute; left: 0; top: 0; margin: 0; font: 600 11px/1 var(--gc-font, var(--v-font, system-ui, sans-serif)); padding: 3px 6px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; will-change: transform; }
.v3d-lab.box { color: var(--gc-text-2, var(--v-ink-2, #4f555d)); background: var(--gc-glass, var(--v-surface, #ffffff)); box-shadow: 0 0 0 1px var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d-lab.ansch { pointer-events: auto; cursor: pointer; border: 0; color: #0f766e; background: color-mix(in srgb, var(--gc-surface, var(--v-surface, #ffffff)) 86%, transparent); box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.45); font-family: var(--gc-mono, var(--v-mono, ui-monospace, monospace)); font-weight: 600; }
.v3d-lab.versetzt { opacity: 0.92; }
.v3d-lab.ansch.null { color: var(--gc-err-text, var(--v-crit, #c22826)); box-shadow: 0 0 0 1px var(--gc-err, var(--v-crit, #c22826)); }
.v3d-achsen { position: absolute; left: 8px; bottom: 8px; pointer-events: none; font-family: var(--gc-font, var(--v-font, system-ui, sans-serif)); }
.v3d-info { pointer-events: none; position: absolute; left: 10px; top: 10px; max-width: min(340px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 5px; padding: 7px 10px; border-radius: 10px; background: var(--gc-glass, var(--v-surface, #ffffff)); -webkit-backdrop-filter: blur(var(--gc-glass-blur, none)); backdrop-filter: blur(var(--gc-glass-blur, none)); box-shadow: 0 0 0 1px var(--gc-glass-line, var(--v-rule-2, #d0d4d9)), var(--gc-shadow-sm, var(--v-card-sh, none)); font-size: 12px; color: var(--gc-text-2, var(--v-ink-2, #4f555d)); }
.v3d-info button { pointer-events: auto; }
.v3d-info-k b { color: var(--gc-text, var(--v-ink, #14171d)); font-weight: 650; font-size: 12.5px; }
.v3d-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.v3d-leg-e { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.v3d-leg-e i { width: 14px; height: 0; border-top: 2px solid var(--c, currentColor); }
.v3d-leg-e.strich i { border-top-style: dashed; }
.v3d-hinweis { color: var(--gc-warn-text, var(--v-r, #6e6e73)); font-size: 11.5px; }
.v3d-tip { color: var(--gc-text-3, var(--v-ink-3, #656b73)); font-size: 11.5px; }
/* Auswahl: Leiste unten rechts (links unten liegt das Achsenkreuz) */
.v3d-lab.sel { pointer-events: auto; z-index: 25; color: #9a3412; background: #fff7ed; box-shadow: 0 0 0 2px #ea580c, 0 4px 12px rgba(0,0,0,0.18); font-family: var(--gc-mono, var(--v-mono, ui-monospace, monospace)); font-weight: 700; font-size: 12px; padding: 5px 9px; border-radius: 8px; }
.v3d-sel { position: absolute; left: 10px; top: 82px; z-index: 20; max-width: min(440px, calc(100% - 20px)); display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 11px; border-radius: 10px; background: var(--gc-glass, var(--v-surface, #ffffff)); -webkit-backdrop-filter: blur(var(--gc-glass-blur, none)); backdrop-filter: blur(var(--gc-glass-blur, none)); box-shadow: 0 0 0 1px var(--gc-glass-line, var(--v-rule-2, #d0d4d9)), var(--gc-shadow-sm, var(--v-card-sh, none)); font-size: 12px; }
.v3d-sel[hidden] { display: none; }
.v3d-sel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; flex: 1; min-width: 0; }
.v3d-sel dt { color: var(--gc-text-3, var(--v-ink-3, #656b73)); }
.v3d-sel dd { margin: 0; color: var(--gc-text, var(--v-ink, #14171d)); overflow-wrap: anywhere; }
.v3d-sel dd.warn { color: var(--gc-err-text, var(--v-crit, #c22826)); }
.v3d-hinweise { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11.5px; }
.v3d .mono { font-family: var(--gc-mono, var(--v-mono, ui-monospace, monospace)); font-size: 11.5px; }
.v3d-liste { position: absolute; right: 10px; top: 10px; bottom: 10px; width: min(260px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: 10px; background: var(--gc-glass, var(--v-surface, #ffffff)); -webkit-backdrop-filter: blur(var(--gc-glass-blur, none)); backdrop-filter: blur(var(--gc-glass-blur, none)); box-shadow: 0 0 0 1px var(--gc-glass-line, var(--v-rule-2, #d0d4d9)), var(--gc-shadow-pop, var(--v-pop-sh, none)); font-size: 12px; overflow: hidden; }
.v3d-liste[hidden] { display: none; }
.v3d-liste-k { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d-liste-k b { margin-right: auto; color: var(--gc-text, var(--v-ink, #14171d)); }
.v3d-liste-z { overflow: auto; flex: 1; overscroll-behavior: contain; }
.v3d-zeile { display: flex; align-items: center; gap: 6px; padding: 2px 8px; border-bottom: 1px solid var(--gc-line-soft, var(--v-rule, #e3e5e9)); }
.v3d-zeile.on { background: var(--gc-select-strong, var(--v-accent-soft-2, rgba(29,95,226,.18))); }
.v3d-zeile input { flex: none; margin: 0; width: 16px; height: 16px; accent-color: var(--gc-accent, var(--v-accent, #1d5fe2)); }
.v3d-zk { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 2px; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--gc-text, var(--v-ink, #14171d)); }
.v3d-zk .sub { color: var(--gc-text-3, var(--v-ink-3, #656b73)); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.v3d-fuss { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: space-between; font-size: 11px; color: var(--gc-text-3, var(--v-ink-3, #656b73)); }
/* Vollbild (auch iPhone, wo die Fullscreen-API für Elemente fehlt): fest über allem, Safe Areas */
.v3d.voll { position: fixed; inset: 0; z-index: 2147483000; background: var(--gc-canvas, var(--v-bg, #f2f4f6)); padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.v3d.voll .v3d-buehne { border-radius: var(--gc-r-sm, 10px); }
:root[data-theme="dark"] .v3d-lab.ansch { color: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v3d-lab.ansch { color: #5eead4; } }
@media (max-width: 700px) {
  .v3d-wurzel { height: 64vh; }
  .v3d-leiste { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .v3d-leiste::-webkit-scrollbar { display: none; }
  .v3d-seg { flex: none; }
  .v3d-k { min-height: 34px; padding: 8px 10px; }
  .v3d-info { left: 6px; top: 6px; max-width: calc(100% - 12px); padding: 5px 8px; font-size: 11.5px; }
  .v3d-sel { left: 6px; right: 6px; bottom: 6px; max-width: none; padding: 6px 6px 6px 9px; font-size: 11.5px; }
  .v3d-sel dl { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 1px 8px; }
  .v3d-hinweise .v3d-tip { display: none; }
  .v3d-info .v3d-leg { display: none; }
  .v3d-liste { left: 6px; right: 6px; top: auto; bottom: 6px; width: auto; max-height: 46%; }
  .v3d-fuss { font-size: 10.5px; }
  .cad-reiter.ql { padding: 8px 6px max(8px, env(safe-area-inset-bottom)); }
}

.v3d-expl { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font: 600 11.5px/1 var(--gc-font, system-ui, sans-serif); color: var(--gc-text-2, #4f555d); }
.v3d-expl input[type=range] { width: 84px; accent-color: #ea580c; cursor: pointer; }

/* ETIM im 3D (Verbindung ETIM-Merkmal ↔ 3D-Körper & Anschlüsse) */
.v3d-k.v3d-k-etim { color: #0f766e; font-weight: 700; }
.v3d-k.v3d-k-etim[aria-pressed="true"] { background: #0f766e; color: #ffffff; }
.v3d-etim-panel { width: min(360px, calc(100% - 20px)); z-index: 22; }
.v3d-etim-zeile { padding: 4px 8px; }
.v3d-etim-zeile.on { background: rgba(15, 118, 110, 0.14); border-left: 3px solid #0f766e; }
.v3d-etim-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.v3d-etim-id { font-weight: 700; font-size: 11.5px; color: var(--gc-text, #14171d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3d-etim-badge { flex: none; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.v3d-etim-badge.ok { background: #dcfce7; color: #166534; }
.v3d-etim-badge.warn { background: #fef3c7; color: #92400e; }
.v3d-etim-dreier, .v3d-etim-ort, .v3d-etim-urteil { white-space: normal !important; line-height: 1.3; }
.v3d-etim-ort { color: #0f766e !important; font-weight: 600; }
.v3d-etim-urteil.ok { color: #15803d !important; font-weight: 600; }
.v3d-etim-urteil.warn { color: #b45309 !important; font-weight: 600; }
.v3d-etim-sel-liste { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.v3d-etim-sel-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(15, 118, 110, 0.35); background: rgba(240, 253, 250, 0.9); color: #134e4a; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.v3d-etim-sel-chip.warn { border-color: rgba(180, 83, 9, 0.4); background: rgba(255, 251, 235, 0.92); color: #78350f; }
.v3d-etim-sel-chip:hover { filter: brightness(0.97); }
.v3d-etim-ef { font-weight: 700; font-size: 11px; }
.v3d-etim-werte { font-size: 11px; color: #334155; }
.v3d-etim-abgleich { font-size: 10.5px; font-weight: 700; }


/* ==========================================================================
   cLearn — Voll in 3D & Dynamisch (window.gcvClearn)
   Interaktive 3D-Installationsanleitung & Technisches Handbuch
   Design: GitChain Klinisch-Technisch · Beige #857b61 auf #faf7f2 / #ffffff
   0 CDN · Keine externen Fonts · Kein Orange-Glow
   ========================================================================== */

.gcv-clearn-root {
  --gcl-bg: #faf7f2;
  --gcl-surface: #ffffff;
  --gcl-surface-2: #f4f0e8;
  --gcl-tile: #ede8dd;
  --gcl-border: #dcd5c5;
  --gcl-border-strong: #b5ac96;
  --gcl-accent: #857b61;
  --gcl-accent-dark: #635b46;
  --gcl-accent-soft: #f0ece1;
  --gcl-ink: #191816;
  --gcl-ink-2: #47443d;
  --gcl-ink-3: #706b5f;
  --gcl-ok: #1f7a4c;
  --gcl-ok-soft: #eaf4ee;
  --gcl-warn: #7d631c;
  --gcl-warn-soft: #f6f1e1;
  --gcl-crit: #9e2a2b;
  --gcl-crit-soft: #f9ecec;
  --gcl-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gcl-font-cond: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", -apple-system, sans-serif;
  --gcl-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 760px;
  height: calc(100vh - 76px);
  background: var(--gcl-bg);
  color: var(--gcl-ink);
  font-family: var(--gcl-font-sans);
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid var(--gcl-border);
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
}

.gcv-clearn-root *,
.gcv-clearn-root *::before,
.gcv-clearn-root *::after {
  box-sizing: border-box;
}

.gcv-clearn-root.ist-vollbild {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 99999 !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Top Header Bar
   -------------------------------------------------------------------------- */
.gcv-clearn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--gcl-surface);
  border-bottom: 1px solid var(--gcl-border);
  flex: 0 0 auto;
  min-height: 46px;
}

.gcv-clearn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gcv-clearn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--gcl-accent);
  color: #ffffff;
  font-family: var(--gcl-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  white-space: nowrap;
}

.gcv-clearn-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gcv-clearn-title {
  font-family: var(--gcl-font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gcl-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcv-clearn-subtitle {
  font-family: var(--gcl-font-mono);
  font-size: 11px;
  color: var(--gcl-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mode Switcher Bar (5 Modes) */
.gcv-clearn-modes {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.gcv-clearn-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  background: var(--gcl-bg);
  color: var(--gcl-ink-2);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  font-family: var(--gcl-font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}

.gcv-clearn-mode-btn:hover {
  background: var(--gcl-accent-soft);
  color: var(--gcl-ink);
  border-color: var(--gcl-accent);
}

.gcv-clearn-mode-btn.aktiv {
  background: var(--gcl-accent);
  color: #ffffff;
  border-color: var(--gcl-accent-dark);
}

.gcv-clearn-mode-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-family: var(--gcl-font-mono);
  font-size: 10px;
  background: rgba(25, 24, 22, 0.08);
  border-radius: 2px;
}

.gcv-clearn-mode-btn.aktiv .gcv-clearn-mode-num {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.gcv-clearn-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gcv-clearn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  background: var(--gcl-surface);
  color: var(--gcl-ink);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  font-family: var(--gcl-font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.gcv-clearn-btn:hover {
  background: var(--gcl-accent-soft);
  border-color: var(--gcl-accent);
}

.gcv-clearn-btn.aktiv,
.gcv-clearn-btn.primaer {
  background: var(--gcl-accent);
  color: #ffffff;
  border-color: var(--gcl-accent-dark);
}

/* --------------------------------------------------------------------------
   Main Split Workspace (Left: 3D Stage, Right: Synchronized Manual)
   -------------------------------------------------------------------------- */
.gcv-clearn-workspace {
  display: grid;
  grid-template-columns: minmax(480px, 56%) minmax(400px, 44%);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.gcv-clearn-root.buehne-fokus .gcv-clearn-workspace {
  grid-template-columns: 1fr 360px;
}

@media (max-width: 1080px) {
  .gcv-clearn-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 52% 48%;
  }
}

/* --------------------------------------------------------------------------
   Left Column: 3D Stage & Controls
   -------------------------------------------------------------------------- */
.gcv-clearn-stage-col {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gcl-bg);
  border-right: 1px solid var(--gcl-border);
  min-height: 0;
  overflow: hidden;
}

/* Top Stage Sub-Toolbar (Camera Views & HLR Switcher) */
.gcv-clearn-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--gcl-surface-2);
  border-bottom: 1px solid var(--gcl-border);
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.gcv-clearn-chip-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.gcv-clearn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  background: var(--gcl-surface);
  color: var(--gcl-ink-2);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  font-family: var(--gcl-font-mono);
  font-size: 10.5px;
  cursor: pointer;
}

.gcv-clearn-chip:hover {
  border-color: var(--gcl-accent);
  color: var(--gcl-ink);
}

.gcv-clearn-chip.aktiv {
  background: var(--gcl-accent);
  color: #ffffff;
  border-color: var(--gcl-accent-dark);
}

/* 3D Viewport Container */
.gcv-clearn-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 360px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5f1e8 68%, #ebe5d8 100%);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.gcv-clearn-viewport:active {
  cursor: grabbing;
}

.gcv-clearn-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gcv-clearn-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.gcv-clearn-overlay-svg .gcl-hotspot {
  pointer-events: all;
  cursor: pointer;
}

.gcv-clearn-overlay-svg .gcl-hotspot:hover circle.gcl-hs-ring {
  r: 12px;
  stroke-width: 2.5px;
}

/* HLR 2D Technical Drawing Overlay Container */
.gcv-clearn-hlr-pane {
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  z-index: 6;
}

.gcv-clearn-hlr-pane.aktiv {
  display: flex;
}

.gcv-clearn-hlr-pane svg {
  max-width: 100%;
  max-height: calc(100% - 40px);
  width: auto;
  height: auto;
}

/* Floating Telemetry / Coordinate HUD (top-left of viewport) */
.gcv-clearn-hud-tl {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  font-family: var(--gcl-font-mono);
  font-size: 10.5px;
  color: var(--gcl-ink-2);
  pointer-events: none;
  z-index: 4;
  max-width: 310px;
}

.gcv-clearn-hud-tl b {
  color: var(--gcl-ink);
}

/* Selected Component / Port Floating Inspector Card (bottom-left of viewport) */
.gcv-clearn-inspector {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  max-width: 460px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--gcl-accent);
  border-left: 4px solid var(--gcl-accent);
  border-radius: 2px;
  font-size: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gcv-clearn-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gcv-clearn-inspector-title {
  font-weight: 700;
  color: var(--gcl-ink);
  font-size: 12.5px;
}

.gcv-clearn-inspector-meta {
  font-family: var(--gcl-font-mono);
  font-size: 11px;
  color: var(--gcl-ink-2);
}

/* Bottom Stage Control Deck (Sliders & Toggles) */
.gcv-clearn-stage-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 10px;
  background: var(--gcl-surface);
  border-top: 1px solid var(--gcl-border);
  flex: 0 0 auto;
}

.gcv-clearn-slider-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 8px;
  background: var(--gcl-bg);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
}

.gcv-clearn-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--gcl-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gcl-ink-2);
}

.gcv-clearn-range {
  width: 100%;
  accent-color: var(--gcl-accent);
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.gcv-clearn-stage-toggles {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 2px;
}

/* --------------------------------------------------------------------------
   Right Column: Synchronized Manual & Workbench
   -------------------------------------------------------------------------- */
.gcv-clearn-manual-col {
  display: flex;
  flex-direction: column;
  background: var(--gcl-surface);
  min-height: 0;
  overflow: hidden;
  user-select: text;
}

.gcv-clearn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: var(--gcl-surface-2);
  border-bottom: 1px solid var(--gcl-border);
  flex: 0 0 auto;
}

.gcv-clearn-panel-title {
  font-family: var(--gcl-font-cond);
  font-size: 14px;
  font-weight: 700;
  color: var(--gcl-ink);
}

.gcv-clearn-panel-sub {
  font-family: var(--gcl-font-mono);
  font-size: 11px;
  color: var(--gcl-ink-3);
}

.gcv-clearn-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Step-by-Step Installation Cards (Mode 1) */
.gcv-clearn-step-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gcl-border);
}

.gcv-clearn-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  font-family: var(--gcl-font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--gcl-bg);
  color: var(--gcl-ink-2);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  cursor: pointer;
}

.gcv-clearn-step-pill.aktiv {
  background: var(--gcl-accent);
  color: #ffffff;
  border-color: var(--gcl-accent-dark);
}

.gcv-clearn-card {
  background: var(--gcl-surface);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gcv-clearn-card.aktiv {
  border-color: var(--gcl-accent);
  background: var(--gcl-bg);
}

.gcv-clearn-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.gcv-clearn-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gcl-ink);
}

.gcv-clearn-mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--gcl-accent-soft);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  font-family: var(--gcl-font-mono);
  font-size: 10.5px;
  color: var(--gcl-ink-2);
  white-space: nowrap;
}

.gcv-clearn-mono-tag.klickbar {
  cursor: pointer;
}

.gcv-clearn-mono-tag.klickbar:hover {
  border-color: var(--gcl-accent);
  background: var(--gcl-tile);
  color: var(--gcl-ink);
}

/* Warning / Safety Box */
.gcv-clearn-alert {
  padding: 8px 10px;
  border-left: 3px solid var(--gcl-accent);
  background: var(--gcl-warn-soft);
  font-size: 12px;
  color: var(--gcl-ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gcv-clearn-alert.gefahr {
  border-left-color: var(--gcl-crit);
  background: var(--gcl-crit-soft);
}

.gcv-clearn-alert-signal {
  font-family: var(--gcl-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Instruction List */
.gcv-clearn-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--gcl-ink);
}

/* Technical Tables */
.gcv-clearn-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--gcl-border);
  background: var(--gcl-surface);
}

.gcv-clearn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.gcv-clearn-table th {
  text-align: left;
  padding: 6px 8px;
  background: var(--gcl-surface-2);
  border-bottom: 1px solid var(--gcl-border);
  font-family: var(--gcl-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gcl-ink-2);
  white-space: nowrap;
}

.gcv-clearn-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--gcl-border);
  vertical-align: top;
  color: var(--gcl-ink);
}

.gcv-clearn-table tr:last-child td {
  border-bottom: 0;
}

.gcv-clearn-table tr.klickbar {
  cursor: pointer;
}

.gcv-clearn-table tr.klickbar:hover td {
  background: var(--gcl-accent-soft);
}

.gcv-clearn-table tr.aktiv td {
  background: var(--gcl-tile);
  font-weight: 600;
}

/* UI 800 Touchscreen Simulator (Mode 3) */
.gcv-clearn-ui800 {
  border: 2px solid #2b2a27;
  background: #141413;
  color: #f4f2ed;
  border-radius: 2px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gcv-clearn-ui800-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #2f2d29;
  font-family: var(--gcl-font-mono);
  font-size: 11px;
}

.gcv-clearn-ui800-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24b463;
  margin-right: 6px;
}

.gcv-clearn-ui800-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gcv-clearn-ui800-tile {
  background: #22211e;
  border: 1px solid #38352e;
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gcv-clearn-ui800-tile:hover,
.gcv-clearn-ui800-tile.aktiv {
  border-color: var(--gcl-accent);
  background: #2c2923;
}

.gcv-clearn-ui800-val {
  font-family: var(--gcl-font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.gcv-clearn-ui800-lbl {
  font-size: 11px;
  color: #b5afa2;
}

/* Search Input */
.gcv-clearn-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gcv-clearn-input {
  flex: 1 1 auto;
  height: 30px;
  padding: 0 10px;
  background: var(--gcl-surface);
  color: var(--gcl-ink);
  border: 1px solid var(--gcl-border);
  border-radius: 2px;
  font-family: var(--gcl-font-mono);
  font-size: 12px;
}

.gcv-clearn-input:focus {
  outline: none;
  border-color: var(--gcl-accent);
}

/* Status Dots */
.gcv-clearn-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gcl-accent);
  margin-right: 5px;
  vertical-align: middle;
}

.gcv-clearn-dot.ok { background: var(--gcl-ok); }
.gcv-clearn-dot.warn { background: var(--gcl-warn); }
.gcv-clearn-dot.crit { background: var(--gcl-crit); }

/* PDF Preview & Verbatim Page Box (Mode 5) */
.gcv-clearn-pdf-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.gcv-clearn-pdf-frame {
  width: 100%;
  height: 380px;
  border: 1px solid var(--gcl-border);
  background: #f4f0e8;
}

.gcv-clearn-page-text {
  margin: 0;
  padding: 10px 12px;
  background: var(--gcl-bg);
  border: 1px solid var(--gcl-border);
  font-family: var(--gcl-font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow-y: auto;
  color: var(--gcl-ink);
}

.gcv-clearn-mark {
  background: #e5dec9;
  color: var(--gcl-ink);
  font-weight: 700;
  padding: 0 2px;
}


/* Legacy .gcl-* compatibility + embedded .v3d rules */
.gcl-root { display: flex; flex-direction: column; width: 100%; min-height: calc(100dvh - 76px); background: #faf7f2; color: #191816; border: 1px solid #dcd5c5; border-radius: 10px; overflow: hidden; box-sizing: border-box; }
.gcl-root.voll { position: fixed !important; inset: 0 !important; z-index: 99999 !important; height: 100dvh !important; border-radius: 0 !important; }
.gcl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #ffffff; border-bottom: 1px solid #dcd5c5; flex-wrap: wrap; }
.gcl-tabs, .gcl-steps { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #f4f0e8; border-bottom: 1px solid #dcd5c5; flex-wrap: wrap; }
.gcl-body { display: grid; grid-template-columns: minmax(480px, 56%) minmax(380px, 44%); flex: 1 1 auto; min-height: 640px; overflow: hidden; }
.gcl-left { display: flex; flex-direction: column; min-height: 600px; border-right: 1px solid #dcd5c5; background: #faf7f2; position: relative; padding: 8px; }
.gcl-3d-mount { flex: 1 1 auto; min-height: 540px; height: 100%; display: flex; flex-direction: column; position: relative; }
.gcl-3d-mount > .v3d { flex: 1 1 auto; min-height: 520px; display: flex; flex-direction: column; }
.gcl-3d-mount .v3d-buehne { flex: 1 1 auto; min-height: 460px !important; height: calc(100dvh - 320px) !important; }
.gcl-right { display: flex; flex-direction: column; min-height: 600px; max-height: calc(100dvh - 180px); overflow-y: auto; padding: 14px; background: #ffffff; gap: 12px; }
.gcv-clearn-v3d-host { flex: 1 1 auto; min-height: 460px; width: 100%; height: 100%; display: flex; flex-direction: column; position: relative; padding: 6px; }
.gcv-clearn-v3d-host > .v3d { flex: 1 1 auto; min-height: 440px; display: flex; flex-direction: column; }
.gcv-clearn-v3d-host .v3d-buehne { flex: 1 1 auto; min-height: 400px !important; }

/* GitChain S3 — 3D-Betrachter (viewer3d.mjs): Stile der Klassen .v3d…. Eine Quelle für S3 und die App (angeheftete Kopie in
   gitchain-core desktop, Prüfsumme dort). Farben aus den S3-Tokens (--gc-…); fehlen sie (App: Container-Fenster), gelten die Tokens des
   Fensters (--v-…, hell und dunkel aus gcv.css), zuletzt feste helle Werte. */
.v3d-nicht { height: 100%; justify-content: center; background: var(--gc-surface-2, var(--v-surface-2, #f2f4f6)); border-radius: var(--gc-r-sm, 10px); box-shadow: 0 0 0 1px var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; outline: none; }
.v3d-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.v3d-leiste, .v3d-hinweise, .v3d-fuss { flex-shrink: 0; }
.v3d-ar, a.v3d-k { flex: none; }
.v3d-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--gc-r-pill, 999px); background: var(--gc-surface-3, var(--v-surface-3, #e9ecf0)); }
.v3d-k { border: 0; background: transparent; color: var(--gc-text-2, var(--v-ink-2, #4f555d)); font: 500 12.5px/1 var(--gc-font, var(--v-font, system-ui, sans-serif)); padding: 7px 10px; border-radius: var(--gc-r-pill, 999px); cursor: pointer; white-space: nowrap; min-height: 30px; }
.v3d-ar { display: inline-flex; align-items: center; border-radius: 6px; line-height: 0; }
.v3d-ar img { display: block; height: 28px; width: auto; }
a.v3d-k { text-decoration: none; display: inline-flex; align-items: center; }
.v3d-k:hover { color: var(--gc-text, var(--v-ink, #14171d)); }
.v3d-k[aria-pressed="true"] { background: var(--gc-raised, var(--v-surface, #ffffff)); color: var(--gc-text, var(--v-ink, #14171d)); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), 0 0 0 0.5px rgba(16, 24, 40, 0.06); }
.v3d-k:focus-visible { outline: 2px solid var(--gc-ring, var(--v-accent, #1d5fe2)); outline-offset: 1px; }
.v3d-k.klein { padding: 4px 8px; min-height: 24px; font-size: 12px; background: var(--gc-surface-3, var(--v-surface-3, #e9ecf0)); }
.v3d-buehne { position: relative; flex: 1; min-height: 240px; border-radius: var(--gc-r-sm, 10px); overflow: hidden; background: var(--gc-surface-2, var(--v-surface-2, #f2f4f6)); box-shadow: 0 0 0 1px var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.v3d-canvas:active { cursor: grabbing; }
.v3d-lade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gc-text-3, var(--v-ink-3, #656b73)); font-size: 13px; padding: 20px; text-align: center; }
.v3d-lade.err { color: var(--gc-err-text, var(--v-crit, #c22826)); }
.v3d-etik { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.v3d-lab { position: absolute; left: 0; top: 0; margin: 0; font: 600 11px/1 var(--gc-font, var(--v-font, system-ui, sans-serif)); padding: 3px 6px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; will-change: transform; }
.v3d-lab.box { color: var(--gc-text-2, var(--v-ink-2, #4f555d)); background: var(--gc-glass, var(--v-surface, #ffffff)); box-shadow: 0 0 0 1px var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d-lab.ansch { pointer-events: auto; cursor: pointer; border: 0; color: #0f766e; background: color-mix(in srgb, var(--gc-surface, var(--v-surface, #ffffff)) 86%, transparent); box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.45); font-family: var(--gc-mono, var(--v-mono, ui-monospace, monospace)); font-weight: 600; }
.v3d-lab.versetzt { opacity: 0.92; }
.v3d-lab.ansch.null { color: var(--gc-err-text, var(--v-crit, #c22826)); box-shadow: 0 0 0 1px var(--gc-err, var(--v-crit, #c22826)); }
.v3d-achsen { position: absolute; left: 8px; bottom: 8px; pointer-events: none; font-family: var(--gc-font, var(--v-font, system-ui, sans-serif)); }
.v3d-info { pointer-events: none; position: absolute; left: 10px; top: 10px; max-width: min(340px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 5px; padding: 7px 10px; border-radius: 10px; background: var(--gc-glass, var(--v-surface, #ffffff)); -webkit-backdrop-filter: blur(var(--gc-glass-blur, none)); backdrop-filter: blur(var(--gc-glass-blur, none)); box-shadow: 0 0 0 1px var(--gc-glass-line, var(--v-rule-2, #d0d4d9)), var(--gc-shadow-sm, var(--v-card-sh, none)); font-size: 12px; color: var(--gc-text-2, var(--v-ink-2, #4f555d)); }
.v3d-info button { pointer-events: auto; }
.v3d-info-k b { color: var(--gc-text, var(--v-ink, #14171d)); font-weight: 650; font-size: 12.5px; }
.v3d-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.v3d-leg-e { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.v3d-leg-e i { width: 14px; height: 0; border-top: 2px solid var(--c, currentColor); }
.v3d-leg-e.strich i { border-top-style: dashed; }
.v3d-hinweis { color: var(--gc-warn-text, var(--v-r, #6e6e73)); font-size: 11.5px; }
.v3d-tip { color: var(--gc-text-3, var(--v-ink-3, #656b73)); font-size: 11.5px; }
/* Auswahl: Leiste unten rechts (links unten liegt das Achsenkreuz) */
.v3d-lab.sel { pointer-events: auto; z-index: 25; color: #9a3412; background: #fff7ed; box-shadow: 0 0 0 2px #ea580c, 0 4px 12px rgba(0,0,0,0.18); font-family: var(--gc-mono, var(--v-mono, ui-monospace, monospace)); font-weight: 700; font-size: 12px; padding: 5px 9px; border-radius: 8px; }
.v3d-sel { position: absolute; left: 10px; top: 82px; z-index: 20; max-width: min(440px, calc(100% - 20px)); display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 11px; border-radius: 10px; background: var(--gc-glass, var(--v-surface, #ffffff)); -webkit-backdrop-filter: blur(var(--gc-glass-blur, none)); backdrop-filter: blur(var(--gc-glass-blur, none)); box-shadow: 0 0 0 1px var(--gc-glass-line, var(--v-rule-2, #d0d4d9)), var(--gc-shadow-sm, var(--v-card-sh, none)); font-size: 12px; }
.v3d-sel[hidden] { display: none; }
.v3d-sel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; flex: 1; min-width: 0; }
.v3d-sel dt { color: var(--gc-text-3, var(--v-ink-3, #656b73)); }
.v3d-sel dd { margin: 0; color: var(--gc-text, var(--v-ink, #14171d)); overflow-wrap: anywhere; }
.v3d-sel dd.warn { color: var(--gc-err-text, var(--v-crit, #c22826)); }
.v3d-hinweise { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11.5px; }
.v3d .mono { font-family: var(--gc-mono, var(--v-mono, ui-monospace, monospace)); font-size: 11.5px; }
.v3d-liste { position: absolute; right: 10px; top: 10px; bottom: 10px; width: min(260px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: 10px; background: var(--gc-glass, var(--v-surface, #ffffff)); -webkit-backdrop-filter: blur(var(--gc-glass-blur, none)); backdrop-filter: blur(var(--gc-glass-blur, none)); box-shadow: 0 0 0 1px var(--gc-glass-line, var(--v-rule-2, #d0d4d9)), var(--gc-shadow-pop, var(--v-pop-sh, none)); font-size: 12px; overflow: hidden; }
.v3d-liste[hidden] { display: none; }
.v3d-liste-k { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--gc-line, var(--v-rule-2, #d0d4d9)); }
.v3d-liste-k b { margin-right: auto; color: var(--gc-text, var(--v-ink, #14171d)); }
.v3d-liste-z { overflow: auto; flex: 1; overscroll-behavior: contain; }
.v3d-zeile { display: flex; align-items: center; gap: 6px; padding: 2px 8px; border-bottom: 1px solid var(--gc-line-soft, var(--v-rule, #e3e5e9)); }
.v3d-zeile.on { background: var(--gc-select-strong, var(--v-accent-soft-2, rgba(29,95,226,.18))); }
.v3d-zeile input { flex: none; margin: 0; width: 16px; height: 16px; accent-color: var(--gc-accent, var(--v-accent, #1d5fe2)); }
.v3d-zk { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 2px; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--gc-text, var(--v-ink, #14171d)); }
.v3d-zk .sub { color: var(--gc-text-3, var(--v-ink-3, #656b73)); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.v3d-fuss { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: space-between; font-size: 11px; color: var(--gc-text-3, var(--v-ink-3, #656b73)); }
/* Vollbild (auch iPhone, wo die Fullscreen-API für Elemente fehlt): fest über allem, Safe Areas */
.v3d.voll { position: fixed; inset: 0; z-index: 2147483000; background: var(--gc-canvas, var(--v-bg, #f2f4f6)); padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.v3d.voll .v3d-buehne { border-radius: var(--gc-r-sm, 10px); }
:root[data-theme="dark"] .v3d-lab.ansch { color: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v3d-lab.ansch { color: #5eead4; } }
@media (max-width: 700px) {
  .v3d-wurzel { height: 64vh; }
  .v3d-leiste { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .v3d-leiste::-webkit-scrollbar { display: none; }
  .v3d-seg { flex: none; }
  .v3d-k { min-height: 34px; padding: 8px 10px; }
  .v3d-info { left: 6px; top: 6px; max-width: calc(100% - 12px); padding: 5px 8px; font-size: 11.5px; }
  .v3d-sel { left: 6px; right: 6px; bottom: 6px; max-width: none; padding: 6px 6px 6px 9px; font-size: 11.5px; }
  .v3d-sel dl { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 1px 8px; }
  .v3d-hinweise .v3d-tip { display: none; }
  .v3d-info .v3d-leg { display: none; }
  .v3d-liste { left: 6px; right: 6px; top: auto; bottom: 6px; width: auto; max-height: 46%; }
  .v3d-fuss { font-size: 10.5px; }
  .cad-reiter.ql { padding: 8px 6px max(8px, env(safe-area-inset-bottom)); }
}

.v3d-expl { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font: 600 11.5px/1 var(--gc-font, system-ui, sans-serif); color: var(--gc-text-2, #4f555d); }
.v3d-expl input[type=range] { width: 84px; accent-color: #ea580c; cursor: pointer; }

/* ETIM im 3D (Verbindung ETIM-Merkmal ↔ 3D-Körper & Anschlüsse) */
.v3d-k.v3d-k-etim { color: #0f766e; font-weight: 700; }
.v3d-k.v3d-k-etim[aria-pressed="true"] { background: #0f766e; color: #ffffff; }
.v3d-etim-panel { width: min(360px, calc(100% - 20px)); z-index: 22; }
.v3d-etim-zeile { padding: 4px 8px; }
.v3d-etim-zeile.on { background: rgba(15, 118, 110, 0.14); border-left: 3px solid #0f766e; }
.v3d-etim-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.v3d-etim-id { font-weight: 700; font-size: 11.5px; color: var(--gc-text, #14171d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3d-etim-badge { flex: none; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.v3d-etim-badge.ok { background: #dcfce7; color: #166534; }
.v3d-etim-badge.warn { background: #fef3c7; color: #92400e; }
.v3d-etim-dreier, .v3d-etim-ort, .v3d-etim-urteil { white-space: normal !important; line-height: 1.3; }
.v3d-etim-ort { color: #0f766e !important; font-weight: 600; }
.v3d-etim-urteil.ok { color: #15803d !important; font-weight: 600; }
.v3d-etim-urteil.warn { color: #b45309 !important; font-weight: 600; }
.v3d-etim-sel-liste { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.v3d-etim-sel-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(15, 118, 110, 0.35); background: rgba(240, 253, 250, 0.9); color: #134e4a; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.v3d-etim-sel-chip.warn { border-color: rgba(180, 83, 9, 0.4); background: rgba(255, 251, 235, 0.92); color: #78350f; }
.v3d-etim-sel-chip:hover { filter: brightness(0.97); }
.v3d-etim-ef { font-weight: 700; font-size: 11px; }
.v3d-etim-werte { font-size: 11px; color: #334155; }
.v3d-etim-abgleich { font-size: 10.5px; font-weight: 700; }


/* cLearn v2: 10-Baugruppen-Röntgenleiste, Original-Zeichnungen (Säule 4), Prüfprotokoll (Säule 6) & Diagnose */
.gcv-clearn-bg-bar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px; background: #f4f0e8; border-top: 1px solid #dcd5c5; align-items: center; }
.gcv-clearn-bg-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 11px; font-weight: 600; border-radius: 999px; border: 1px solid #cfc7b4; background: #ffffff; color: #2b2924; cursor: pointer; transition: all 0.15s ease; }
.gcv-clearn-bg-pill:hover { border-color: #857b61; background: #faf7f2; }
.gcv-clearn-bg-pill.aktiv { background: #191816; color: #ffffff; border-color: #191816; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.gcv-clearn-bg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.gcv-clearn-fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.gcv-clearn-fig-card { display: flex; flex-direction: column; justify-content: space-between; background: #faf7f2; border: 1px solid #dcd5c5; border-radius: 6px; overflow: hidden; transition: border-color 0.15s ease; }
.gcv-clearn-fig-card:hover { border-color: #857b61; }
.gcv-clearn-fig-img-wrap { width: 100%; height: 170px; background: #ffffff; border-bottom: 1px solid #e6dfd1; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; position: relative; }
.gcv-clearn-fig-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gcv-clearn-fig-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; }
.gcv-clearn-check-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; background: #faf7f2; border: 1px solid #dcd5c5; border-radius: 6px; margin-bottom: 6px; }
.gcv-clearn-check-row.erledigt { background: #ecfdf5; border-color: #6ee7b7; }
.gcv-clearn-check-inp { width: 92px; padding: 4px 6px; font-family: ui-monospace, monospace; font-size: 11.5px; border: 1px solid #cfc7b4; border-radius: 4px; background: #ffffff; color: #191816; }
.gcv-clearn-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gcv-clearn-subtab { padding: 6px 11px; font-size: 11.5px; font-weight: 700; border: 1px solid #cfc7b4; background: #faf7f2; color: #47443d; border-radius: 6px; cursor: pointer; }
.gcv-clearn-subtab.aktiv { background: #857b61; color: #ffffff; border-color: #857b61; }
.gcv-clearn-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, 0.86); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.gcv-clearn-lightbox img { max-width: 92vw; max-height: 82vh; background: #ffffff; border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,0.45); object-fit: contain; }
