
  :root {
    --paper: #fbfaf7; --panel: #ffffff; --field: #ffffff; --tile: #f7f5f0; --tile-hover: #efece4;
    --line: #e3e0d8; --text: #23221f; --muted: #7a776f; --accent: #1f5fbf; --accent-soft: #e3ecfb;
    --danger: #b3261e; --hover: #f1efe9; --link: #7b1fa2; --backdrop: rgba(30, 25, 10, .25);
    --shadow: 0 3px 14px rgba(30, 25, 10, .12), 0 0 0 1px rgba(30, 25, 10, .07);
    color-scheme: light;
  }
  :root[data-theme="dark"] {
    --paper: #22211e; --panel: #2b2a27; --field: #1f1e1b; --tile: #34332f; --tile-hover: #3d3c37;
    --line: #42403a; --text: #ece9e2; --muted: #a29e94; --accent: #7aa7ff; --accent-soft: #2c3a55;
    --danger: #ff8a80; --hover: #383733; --link: #ce93d8; --backdrop: rgba(0, 0, 0, .45);
    --shadow: 0 3px 16px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  /* weiche, runde Schrift – lokal eingebunden (Nunito, SIL Open Font License, lib/fonts) */
  @font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/lib/fonts/nunito-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/lib/fonts/nunito-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  html, body { margin: 0; height: 100%; overflow: hidden; background: var(--paper); color: var(--text);
    font: 500 14.5px/1.4 "Nunito", "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-font-smoothing: antialiased; }
  button, input, select, textarea { font: inherit; color: inherit; }
  input, select, textarea { background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
  [hidden] { display: none !important; }

  #board { position: fixed; inset: 0; touch-action: none; cursor: crosshair; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  #board canvas, #board * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  #board.drawing { cursor: none !important; }
  #board.panning { cursor: grabbing !important; }
  #board canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  .panel { position: fixed; background: var(--panel); box-shadow: var(--shadow); border-radius: 14px; }
  .note { color: var(--muted); font-size: 12px; margin: 6px 0 0; }

  /* ---------- Toolleiste ---------- */
  #toolbar { top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 3px;
    padding: 6px 8px; max-width: calc(100vw - 20px); flex-wrap: wrap; justify-content: center; z-index: 22; }
  .sep { width: 1px; height: 34px; background: var(--line); margin: 0 4px; }
  #toolbar .sep.sep-off { display: none !important; }
  .tb { border: 0; background: transparent; border-radius: 11px; width: 46px; height: 46px; padding: 0;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 6px;
    transition: transform .08s ease, background .08s ease, box-shadow .08s ease; position: relative; }
  .tb:hover { background: var(--hover); }
  .tb.on { background: var(--accent-soft); color: var(--accent); }
  .tb:disabled { opacity: .3; cursor: default; }
  .tb.wide { width: auto; padding: 0 14px; font-weight: 600; }
  .tb.primary { background: var(--accent); color: #fff; }
  .tb.danger { color: var(--danger); }
  .tb svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; shape-rendering: geometricPrecision; }
  svg { stroke-linecap: round; stroke-linejoin: round; }
  .snap.snapped { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); z-index: 2; }
  .tb.primary.snapped { background: var(--accent); }
  .snap.snapped:disabled { box-shadow: none; transform: none; background: transparent; }
  .group { display: flex; gap: 3px; }
  #title { border: 1px solid transparent; background: transparent; border-radius: 10px; height: 44px; padding: 0 10px;
    width: 180px; font-weight: 600; font-size: 15px; }
  #title:hover { border-color: var(--line); }
  #title:focus { outline: none; border-color: var(--accent); background: var(--field); user-select: text; }
  #colorSwatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px #0004; }

  .pop { z-index: 55; padding: 12px; }
  #colorPop .grid, .tpcolors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px #0003; cursor: pointer; padding: 0;
    transition: transform .08s ease, box-shadow .08s ease; justify-self: center; }
  .tpcolors .sw { width: 30px; height: 30px; }
  .sw.on { box-shadow: 0 0 0 3px var(--accent); }
  .sw.snapped { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px var(--panel); }
  #colorPop .custom { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); }
  #customColor { width: 48px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; }
  .menu { display: flex; flex-direction: column; gap: 2px; min-width: 230px; }
  .menu .tb { width: 100%; height: 44px; justify-content: flex-start; padding: 0 14px; }

  /* ---------- Linke Werkzeugleiste ---------- */
  #toolPanel { top: 78px; right: 24px; left: auto; width: 250px; max-height: calc(100vh - 160px); overflow: auto; z-index: 21; padding: 10px 12px 12px;
    transform: translateX(calc(100vw - 100%)); visibility: hidden; transition: transform .18s ease, visibility 0s linear .18s; }   /* zu: ganz weg (vorher blieb ein schmaler Streifen am Rand hängen) */
  #toolPanel.open { transform: none; visibility: visible; transition: transform .18s ease, visibility 0s; }
  #tpHead { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  #tpTitle { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
  #tpTitle svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #toolPanel h3 { margin: 14px 0 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .tpsize { display: flex; align-items: center; gap: 8px; }
  .tpsize input { flex: 1; min-width: 0; }
  .tpval { width: 46px; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
  .sizeprev { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex: none; }
  .tptoggle { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-radius: 8px; cursor: pointer; }
  .tptoggle:hover { background: var(--hover); }
  .tptoggle input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
  .tptoggle b { display: block; font-weight: 600; }
  .tptoggle small { display: block; color: var(--muted); font-size: 12px; }
  .tpselect { width: 100%; height: 40px; padding: 0 8px; margin: 2px 0 4px; }
  .tprow { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; }
  #toolPanel .tb.wide { height: 40px; }
  input[type=range] { -webkit-appearance: none; appearance: none; height: 36px; background: transparent; cursor: pointer; border: 0; }
  input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d9d5ca, #8f8a7c); }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
    background: var(--field); border: 2px solid var(--accent); box-shadow: 0 1px 4px #0003; }

  /* ---------- Pfadleiste (Unter-Canvas) ---------- */
  #crumbs { top: 76px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px 12px 4px 4px; z-index: 8;
    max-width: calc(100vw - 600px); }
  .crumb { border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-weight: 600; color: var(--accent);
    white-space: nowrap; transition: transform .08s ease; }
  .crumb:hover { background: var(--hover); }
  .sepch { color: var(--muted); }
  #crumbs b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ---------- Assets (rechts) ---------- */
  #assets { top: 78px; right: 10px; bottom: 76px; width: 300px; display: flex; flex-direction: column;
    transform: translateX(330px); transition: transform .18s ease; z-index: 9; }
  #assets.open { transform: none; }
  .phead { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px 14px; }
  .phead h2 { margin: 0; font-size: 15px; }
  #assetCats { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 12px 8px; }
  .chip { border: 1px solid var(--line); background: var(--field); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px;
    transition: transform .08s ease; }
  .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  #assetGrid { flex: 1; overflow: auto; padding: 0 10px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
  .gcat { grid-column: 1 / -1; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
  .tile { border-radius: 12px; background: var(--tile); padding: 6px; cursor: grab; position: relative; touch-action: none; }
  .tile:hover { background: var(--tile-hover); }
  .tile.on { box-shadow: 0 0 0 2px var(--accent); }
  .thumb { height: 100px; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23eeece6'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23eeece6'/%3E%3C/svg%3E"); }
  .thumb img { max-width: 92%; max-height: 92%; pointer-events: none; -webkit-user-drag: none; }
  .thumb .empty { color: #8a867c; font-size: 12px; }
  .tile .tname { font-size: 13px; font-weight: 600; padding: 5px 2px 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tile .tbtns { position: absolute; top: 8px; right: 8px; display: flex; gap: 3px; opacity: 0; transition: opacity .1s; }
  .tile:hover .tbtns { opacity: 1; }
  .tile .tbtns .tb { width: 34px; height: 34px; background: var(--panel); box-shadow: 0 1px 3px #0003; font-size: 14px; }
  .pfoot { border-top: 1px solid var(--line); padding: 8px 14px; color: var(--muted); font-size: 12px; word-break: break-all; }
  #ghost { position: fixed; pointer-events: none; z-index: 60; opacity: .75; }
  #assetBar { top: 76px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; z-index: 8; }
  #assetBar b { color: #c27a00; }

  /* ---------- unten ---------- */
  #viewbar { right: 10px; bottom: 10px; display: flex; align-items: center; gap: 2px; padding: 4px; z-index: 22; }
  #zoomText { width: 62px; font-variant-numeric: tabular-nums; font-size: 13px; }
  #saveState { font-size: 12px; color: var(--muted); padding: 0 6px 0 10px; min-width: 90px; text-align: right; }
  #saveState.err { color: var(--danger); font-weight: 600; }
  #toast { position: fixed; left: 50%; top: 130px; transform: translateX(-50%); background: #23221f; color: #fff;
    padding: 9px 14px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 99500; }
  #toast.show { opacity: 1; pointer-events: auto; }
  #toast a { color: #9cc3ff; cursor: pointer; margin-left: 10px; }
  #help { right: 10px; bottom: 70px; width: 420px; max-height: calc(100vh - 100px); overflow: auto; padding: 14px 16px; font-size: 13px; z-index: 23; }
  #help h3 { margin: 0 0 6px; font-size: 14px; }
  #help table { border-collapse: collapse; width: 100%; }
  #help td { padding: 3px 0; vertical-align: top; }
  #help td:first-child { color: var(--muted); padding-right: 10px; white-space: nowrap; }

  /* ---------- Auswahl, Text, Infokarte ---------- */
  #selBar { display: flex; gap: 2px; padding: 4px; z-index: 52; }
  /* Teilen-Menü im Apple-Stil: Personen-Kreise, darunter Symbol-Kacheln */
  #exportPop.ep-apple { width: min(372px, calc(100vw - 16px)); padding: 12px; z-index: 72 !important; }
  .ep-top { display: flex; flex-direction: column; padding: 0 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; } .ep-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ep-top small { color: var(--muted); font-size: 12px; }
  .ep-people { display: flex; gap: 6px; justify-content: space-between; padding: 2px 2px 10px; } .ep-people:empty { display: none; }
  .ep-p { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer; padding: 4px 0; border-radius: 12px; }
  .ep-p:hover { background: var(--hover); } .ep-p span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ep-p .ep-av { width: 52px; height: 52px; font-size: 19px; }
  .ep-p .ep-koop { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
  .ep-p .ep-koop svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
  #exportPop .ep-t { position: relative; height: auto !important; width: auto !important; flex-direction: column; gap: 5px; padding: 8px 2px !important; border-radius: 12px; font-size: 11px; line-height: 1.2; text-align: center; justify-content: flex-start !important; align-items: center !important; }
  #exportPop .ep-t[hidden] { display: none !important; }
  .ep-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--hover); display: flex; align-items: center; justify-content: center; color: var(--text); }
  .ep-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  #exportPop .ep-t:hover .ep-ic { background: var(--accent-soft); color: var(--accent); }
  #exportPop .ep-t .pro-tag { position: absolute; top: 3px; right: 6px; font-style: normal; font-size: 9px; }
  #exportPop .ep-sec { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px 2px; }
  .acc-orow { display: flex; align-items: center; gap: 2px; } .acc-orow .acc-other { flex: 1; min-width: 0; } .acc-x { width: 30px; height: 30px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; } .acc-x:hover { background: var(--hover); color: var(--danger); } .acc-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .acc-ic { display: inline-flex; } .acc-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .gate-known { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; } .gate-known > span { font-size: 12px; color: var(--muted); }
  .gate-kacc { display: flex; align-items: center; gap: 4px; } .gate-kpick { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; text-align: left; } .gate-kpick:hover { border-color: var(--accent); }
  .gate-kpick span { display: flex; flex-direction: column; } .gate-kpick small { color: var(--muted); } .gate-kpick .kt-av { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; object-fit: cover; flex: none; }
  .gate-kx { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; } .gate-kx:hover { color: var(--danger); background: var(--hover); } .gate-kx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  /* ---------- Rollen & Rechte, Personen & Hierarchie ---------- */
  .ob-ways:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
  .ro-card { background: var(--panel); color: var(--text); box-shadow: var(--shadow); width: min(1180px, 100%); height: min(820px, calc(100vh - 32px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; }
  .ro-card.ro-small { width: min(820px, 100%); height: auto; max-height: calc(100vh - 32px); }
  .ro-card > header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); } .ro-card > header b { font-size: 17px; } .ro-card > header .sp { flex: 1; }
  .ro-host, .ro-mp { flex: 1; min-height: 0; overflow: auto; } .ro-mp { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
  .ro-wrap { display: grid; grid-template-columns: 280px 1fr; height: 100%; min-height: 420px; }
  .ro-side { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: auto; } .ro-sh { display: flex; flex-direction: column; } .ro-sh small { color: var(--muted); font-size: 12px; }
  .ro-list { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; min-height: 80px; }
  .ro-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; cursor: pointer; } .ro-item:hover { background: var(--hover); } .ro-item.on { background: var(--accent-soft); }
  .ro-item > i { width: 12px; height: 12px; border-radius: 50%; flex: none; } .ro-item > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ro-item small { color: var(--muted); font-size: 11.5px; } .ro-item em { font-style: normal; }
  .ro-mv { width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; } .ro-mv:hover:not(:disabled) { background: var(--panel); color: var(--text); } .ro-mv:disabled { opacity: .25; cursor: default; }
  .ro-mv svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .ro-main { padding: 14px 18px; overflow: auto; display: flex; flex-direction: column; gap: 10px; } .ro-main h4 { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .ro-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ro-head h3 { margin: 0; } .ro-head small { color: var(--muted); }
  .ro-name { flex: 1; min-width: 180px; height: 40px; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 17px; font-weight: 700; user-select: text; }
  .ro-descr, .ro-search, .ro-rq { height: 36px; border-radius: 10px; padding: 0 10px; font: inherit; user-select: text; } .ro-search { width: 100%; }
  .ro-cols { display: flex; gap: 4px; } .ro-col { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; } .ro-col.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }
  .ro-tabs { align-self: flex-start; } .ro-body { display: flex; flex-direction: column; gap: 8px; }
  .ro-rgrp h4 { margin: 10px 0 4px; } .ro-right { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); } .ro-right > span:first-child { flex: 1; font-size: 13.5px; }
  .ro-scopes { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; } .ro-scopes button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 12px; cursor: pointer; }
  .ro-scopes button.on { background: var(--accent); border-color: var(--accent); color: #fff; } .ro-scopes button.on.off { background: var(--hover); border-color: var(--line); color: var(--muted); }
  .ro-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; } .ro-mod, .ro-allmods { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; } .ro-mod.dim { opacity: .55; } .ro-allmods { font-weight: 700; }
  .ro-fields { display: flex; flex-direction: column; gap: 6px; } .ro-field { display: flex; gap: 6px; align-items: center; } .ro-field input, .ro-field select { height: 34px; border-radius: 8px; padding: 0 8px; font: inherit; } .ro-fl { flex: 1; } .ro-fo { flex: 1; }
  .ro-members { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; } .ro-mem { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; } .ro-mem:hover { background: var(--hover); } .ro-mem span { display: flex; flex-direction: column; } .ro-mem small { color: var(--muted); font-size: 12px; }
  .ro-foot { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); position: sticky; bottom: -14px; background: var(--panel); } .ro-foot .sp { flex: 1; } .ro-foot .danger { color: var(--danger); }
  .ro-rchips { display: flex; flex-wrap: wrap; gap: 6px; } .ro-rchip { border: 1.5px solid var(--rc); color: var(--rc); background: none; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .55; } .ro-rchip.on { background: var(--rc); color: #fff; opacity: 1; }
  .ro-fvals { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; } .ro-fvals label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); } .ro-fvals input, .ro-fvals select { height: 34px; border-radius: 8px; padding: 0 8px; font: inherit; color: var(--text); user-select: text; }
  .ro-rels { display: flex; flex-wrap: wrap; gap: 6px; } .ro-rel { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--hover); font-size: 13px; } .ro-rel small { color: var(--muted); } .ro-rel button { border: 0; background: none; color: var(--muted); cursor: pointer; }
  .ro-relbar { display: flex; gap: 6px; } .ro-relbar select { height: 36px; border-radius: 10px; font: inherit; } .ro-rq { flex: 1; } .ro-sublist { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; }
  .ro-mprow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; } .ro-mprow > span:nth-child(2) { display: flex; flex-direction: column; } .ro-mprow small { color: var(--muted); }
  .ro-mprow .kt-av { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; object-fit: cover; }
  .ro-mpb { display: flex; gap: 6px; flex-wrap: wrap; } .ro-mpview { grid-column: 1 / -1; overflow: auto; } .ro-mpview:empty { display: none; }
  .ro-tt { border-collapse: collapse; width: 100%; font-size: 12.5px; } .ro-tt th, .ro-tt td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; } .ro-tt th small, .ro-tt td small { display: block; color: var(--muted); font-weight: 400; } .ro-tt td b { display: block; }
  .ro-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ro-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); } .ro-form label.wide { grid-column: 1 / -1; } .ro-form small { font-size: 11.5px; }
  .ro-form input:not([type=file]):not([type=color]) { height: 40px; border-radius: 10px; padding: 0 12px; font: inherit; color: var(--text); user-select: text; } .ro-form input[type=color] { width: 64px; height: 40px; border-radius: 10px; }
  .ro-embed { height: min(520px, 58vh); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; } .ro-embed .ro-wrap { height: 100%; }
  .ro-kform { display: flex; flex-direction: column; gap: 8px; } .ro-prow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .ro-prow select { height: 36px; border-radius: 10px; font: inherit; margin-left: 6px; }
  .pl-reqs { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-bottom: 10px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }
  .pl-req { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .pl-req span { flex: 1; min-width: 200px; font-size: 13px; }
  .ro-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; } .ro-fprev img { max-width: 100%; max-height: 420px; margin-top: 8px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
  .ro-conds { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 8px 18px; border-bottom: 1px solid var(--line); }
  .ro-cond { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; } .ro-cond select, .ro-cond input { height: 30px; border-radius: 8px; padding: 0 6px; font: inherit; font-size: 12.5px; color: var(--text); user-select: text; } .ro-cond input { width: 110px; }
  .ro-wenn { font-weight: 700; color: var(--accent); min-width: 34px; } .ro-cadd { align-self: flex-start; border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; } .ro-cadd:hover { color: var(--accent); border-color: var(--accent); }
  .ro-freq { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: nowrap; } .ro-miss { color: #c27a00; } .ro-fvals label.miss input, .ro-fvals label.miss select { border-color: #c27a00; } .ro-mfilter { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
  .pl-dhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .pl-dsum { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: var(--accent-soft); } .pl-dsum span { font-size: 12.5px; color: var(--muted); }
  .pl-dwho { display: flex; align-items: center; gap: 6px; font-size: 13px; } .pl-dwho select { height: 34px; border-radius: 9px; font: inherit; }
  .pl-days .pl-day { height: auto; min-height: 120px; padding: 8px; } /* gleiche Klasse wie das Datumsfeld oben – dort 36 px hoch */
  .pl-myweek .pl-day.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .pl-myweek .pl-day.past { opacity: .6; } .pl-free { color: var(--muted); font-size: 12.5px; padding: 4px; }
  .pl-myweek .pl-shift span { font-size: 12px; opacity: .8; }
  .nz-card { width: min(640px, 100%); } .nz-card .fm-form { width: 100%; } .nz-top { display: flex; align-items: center; justify-content: space-between; } .nz-top h3 { margin: 0; }
  .nz-sw { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; } .nz-sw input { width: 22px; height: 22px; } .nz-sw span { display: flex; flex-direction: column; } .nz-sw small { color: var(--muted); }
  .nz-urls { display: flex; flex-direction: column; gap: 8px; } .nz-url { display: flex; gap: 12px; align-items: center; } .nz-url > div:last-child { flex: 1; display: flex; gap: 6px; } .nz-url input { flex: 1; height: 36px; border-radius: 9px; padding: 0 10px; font: inherit; user-select: text; }
  .nz-qr { background: #fff; padding: 8px; border-radius: 10px; flex: none; } .nz-qr svg { display: block; width: 150px; height: 150px; }
  .nz-steps { margin: 0; padding-left: 20px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; } .nz-steps code, .nz-fp { font-size: 12px; word-break: break-all; user-select: text; }
  .nz-cmd { white-space: pre-wrap; word-break: break-all; font-size: 12px; background: var(--hover); padding: 8px 10px; border-radius: 8px; user-select: text; margin: 0; } .nz-more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
  .kd-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .kd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
  .kd-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; } .kd-card:hover { border-color: var(--accent); } .kd-card small { color: var(--muted); font-size: 12px; }
  @media (max-width: 760px) { .ro-wrap { grid-template-columns: 1fr; } .ro-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 260px; } .ro-form { grid-template-columns: 1fr; } }
  #selBar .tb { height: 42px; } #selBar .tb svg { width: 22px; height: 22px; } #selBar .tb.wide { display: inline-flex; align-items: center; gap: 6px; } #selBar .danger { color: var(--danger); }
  #textEditor { position: fixed; z-index: 51; border: 1.5px dashed var(--accent); background: transparent; border-radius: 4px;
    padding: 2px 3px; resize: none; overflow: hidden; outline: none; white-space: pre; font-family: "Segoe UI", system-ui, sans-serif; user-select: text; }
  #infoCard { width: 270px; padding: 10px; z-index: 57; pointer-events: none; }
  #infoCard img { width: 100%; max-height: 150px; object-fit: contain; border-radius: 8px; background: #fff; margin-bottom: 8px; display: block; }
  #icName { font-weight: 700; font-size: 15px; color: var(--link); }
  #icInfo { margin: 4px 0 0; white-space: pre-wrap; }
  #icMeta { color: var(--muted); font-size: 12px; margin-top: 6px; }
  .ichint { color: var(--muted); font-size: 12px; margin-top: 2px; }

  /* ---------- Dialoge ---------- */
  #dlgBack, #settingsBack { position: fixed; inset: 0; background: var(--backdrop); z-index: 79; }
  #dlgBack { backdrop-filter: blur(2px); cursor: not-allowed; }
  #dlg.shake { animation: softRing .5s ease; }
  @keyframes softRing { 30% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } }
  #dlg { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 20px)); z-index: 80; padding: 18px 20px;
    max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
  #dlg .dbtns { position: sticky; bottom: -18px; background: var(--panel); padding: 10px 0 18px; margin-bottom: -18px; z-index: 2; }   /* lange Formulare (z. B. Kundenkarte auf dem Handy): scrollen statt abschneiden */
  #dlg h2 { margin: 0 0 4px; font-size: 18px; }
  .dfield { display: block; margin-top: 12px; }
  .dfield span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .dfield input, .dfield select, .dfield textarea { width: 100%; padding: 9px 10px; user-select: text; }
  .dbtns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; flex-wrap: wrap; }

  /* ---------- Einstellungen ---------- */
  #settings { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1000px, calc(100vw - 20px)); height: min(720px, calc(100vh - 30px));
    z-index: 80; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
  #settings[hidden] { display: none; }
  .sethead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .setwrap { flex: 1; min-height: 0; display: flex; gap: 16px; }
  .setnav { width: 210px; flex: none; display: flex; flex-direction: column; gap: 3px; overflow: auto; padding: 3px; }
  .setnav-item { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; cursor: pointer; text-align: left; color: inherit; font-weight: 600; }
  .setnav-item:hover { background: var(--hover); }
  .setnav-item.on { background: var(--accent-soft); color: var(--accent); }
  .setnav-ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; display: block; }
  .setcontent { flex: 1; min-width: 0; overflow: auto; padding: 0 6px 28px 0; }
  .scat > h3 { margin-top: 0 !important; font-size: 20px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text) !important; }
  .scat h4 { margin: 18px 0 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  #settings.embedded, #store.embedded { position: static; transform: none; inset: auto; width: auto; max-width: none; box-shadow: none; z-index: auto; }
  #settings.embedded { height: calc(100vh - 120px); background: transparent; border: 0; padding: 0; }
  #store.embedded { background: transparent; } #store.embedded .hhead { display: none; }
  .shead #shellBack { flex: none; }
  .sacc-av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
  @media (max-width: 760px) { .setwrap { flex-direction: column; } .setnav { width: auto; flex-direction: row; overflow-x: auto; } .setnav-item span:last-child { white-space: nowrap; } }
  #settings h2 { margin: 0; font-size: 18px; }
  #settings h3, #home h3 { margin: 18px 0 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .systems { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sys { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--field); text-align: left;
    transition: transform .08s ease, box-shadow .08s ease; }
  .sys.on { border-color: var(--accent); background: var(--accent-soft); }
  .sys:disabled { opacity: .5; cursor: default; }
  .sys b { display: block; font-size: 15px; margin-bottom: 3px; }
  .sys span { color: var(--muted); font-size: 13px; }
  .keys { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
  .keybtn { min-width: 120px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); font-weight: 600; cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease; }
  .keybtn.capturing { border-color: #e07000; background: #fff3e0; color: #8a4b00; }
  .keybtn.snapped { box-shadow: inset 0 0 0 2px var(--accent); }
  .srow { display: grid; grid-template-columns: 210px 1fr 90px; gap: 12px; align-items: center; margin: 4px 0; }
  .srow .v { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
  .srow input[type=range] { width: 100%; }
  .srow select { height: 38px; padding: 0 8px; }
  #curve { display: block; margin: 4px 0 6px 222px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); max-width: calc(100% - 222px); }
  .sfoot { display: flex; justify-content: space-between; margin-top: 18px; gap: 8px; }

  /* ---------- Hauptmenü ---------- */
  #home { position: fixed; inset: 0; z-index: 70; background: var(--paper); display: flex; flex-direction: column; }
  .hhead { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
  .hhead .logo { font-size: 20px; font-weight: 800; }
  .hhead .sub { color: var(--muted); }
  .hhead .sp { flex: 1; }
  .hbody { flex: 1; display: flex; min-height: 0; }
  .hside { width: 320px; padding: 6px 22px 20px; overflow: auto; border-right: 1px solid var(--line); display: none; }
  #pageNotes.side-open .hside { display: block; }
  #storeInfo { word-break: break-all; }
  .hside select { width: 100%; height: 42px; padding: 0 10px; font-weight: 600; }
  .hside .row { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
  .hside .tb.wide { height: 40px; }
  #modeList { display: flex; flex-direction: column; gap: 8px; }
  .hmain { flex: 1; overflow: auto; padding: 18px 24px 30px; }
  .hbar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
  .hbar .sp { flex: 1; } .hbar #homeSearch { width: 220px; height: 40px; padding: 0 12px; border-radius: 10px; user-select: text; }
  #pageNotes.side-open #libSide { background: var(--accent-soft); color: var(--accent); }
  .lcrumbs { display: flex; align-items: center; gap: 4px; color: var(--muted); flex-wrap: wrap; }
  .lcrumb { border: 0; background: transparent; font-weight: 700; font-size: 17px; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--muted); }
  .lcrumb.on { color: var(--text); } .lcrumb:hover { background: var(--hover); } .lcrumb.drop { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
  .fthumb { background: transparent !important; }
  .fcard.drop { box-shadow: 0 0 0 4px var(--accent); transform: scale(1.02); }
  .card.dragging, .lrow.dragging { opacity: .4; }
  .card img, .lrow img, .fsvg { -webkit-user-drag: none; pointer-events: none; }   /* sonst startet der Browser sein eigenes Bild-Ziehen */
  .lib-ghost { position: fixed; z-index: 300; pointer-events: none; background: var(--panel); padding: 8px 12px; border-radius: 10px; box-shadow: 0 8px 24px #0003; font-weight: 700; }
  #homeGrid.list { display: flex; flex-direction: column; gap: 2px; align-items: stretch; }
  .lrow { display: grid; grid-template-columns: 52px 1fr 120px 150px 150px 130px; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
  .lrow:not(.lhead):hover { background: var(--hover); } .lrow.on { background: var(--accent-soft); }
  .lrow.lhead { cursor: default; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
  .lrow > span { color: var(--muted); font-size: 13px; } .lrow b small { color: var(--muted); font-weight: 500; }
  .licon { width: 46px; height: 36px; display: flex; align-items: center; justify-content: center; }
  .licon img { max-width: 46px; max-height: 36px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px #0002; }
  .lact { display: flex; gap: 2px; justify-content: flex-end; opacity: 0; } .lrow:hover .lact { opacity: 1; }
  .lact .tb { width: 32px; height: 32px; }
  #libPop { width: 260px; display: flex; flex-direction: column; gap: 6px; z-index: 95 !important; }   /* über der Notizen-Seite (#home) */
  #accPop { width: 250px; z-index: 96 !important; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
  .acc-head { display: flex; gap: 10px; align-items: center; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .acc-head .kt-av { width: 40px; height: 40px; font-size: 14px; flex: none; } .acc-head b { display: block; } .acc-head small { color: var(--muted); font-size: 12px; }
  .acc-item { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; cursor: pointer; font: inherit; text-align: left; color: var(--text); }
  .acc-item:hover { background: var(--hover); } .acc-item span { width: 20px; text-align: center; } .acc-item.danger { color: var(--danger); }
  .acc-other { padding: 6px 8px; } .acc-item.acc-other .kt-av { width: 30px !important; height: 30px; font-size: 11px; flex: none !important; text-align: center !important; } .acc-item.acc-other > span:not(.kt-av) { width: auto; flex: 1; text-align: left; }
  .acc-other span { width: auto !important; flex: 1; text-align: left !important; min-width: 0; } .acc-other b { display: block; font-size: 14px; } .acc-other small { color: var(--muted); font-size: 11.5px; }
  .acc-other i { display: block; font-style: normal; font-size: 11px; color: var(--accent); font-weight: 700; }
  .acc-other .acc-otext { display: flex !important; flex-direction: column; overflow: hidden; } .acc-other .acc-otext > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: static !important; }
  #navFly { position: fixed; left: 10px; top: 70px; z-index: 66; width: 92px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
  #navFly .snav-item { width: 100%; } #navFly .nf-x { align-self: center; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 14px; padding: 2px 6px; }
  .acc-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
  /* ---------- Planer ---------- */
  .pl { display: flex; flex-direction: column; gap: 10px; }
  .pl-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .pl-tabs button { white-space: nowrap; }
  .pl-week { display: flex; gap: 6px; align-items: center; margin-left: auto; } .pl-week b { min-width: 120px; text-align: center; }
  .pl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .pl-bar .sp { flex: 1; }
  .pl-q { height: 36px; padding: 0 10px; border-radius: 9px; width: 180px; user-select: text; } .pl-day { height: 36px; border-radius: 9px; padding: 0 8px; }
  .pl-empty { padding: 30px; text-align: center; max-width: 560px; margin: 20px auto; } .pl-empty b { font-size: 18px; }
  .pl-gridwrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
  .pl-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
  .pl-grid th, .pl-grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; padding: 6px; }
  .pl-grid thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; font-size: 13px; text-align: left; } .pl-grid thead th small { color: var(--muted); font-weight: 500; }
  .pl-grid tbody th { position: sticky; left: 0; background: var(--panel); text-align: left; min-width: 160px; z-index: 1; }
  .pl-grid tbody th b { display: block; font-size: 14px; } .pl-grid tbody th small { color: var(--muted); font-size: 12px; font-weight: 500; }
  .pl-grid td { min-width: 130px; cursor: copy; } .pl-grid td:hover { background: var(--hover); } .pl-grid .today { background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .pl-meter { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-top: 4px; overflow: hidden; } .pl-meter i { display: block; height: 100%; background: #2e9e5b; }
  .pl-chip { display: flex; flex-direction: column; text-align: left; width: 100%; border: 0; border-left: 3px solid; border-radius: 7px; padding: 4px 7px; margin-bottom: 4px; cursor: pointer; font: inherit; position: relative; color: var(--text); }
  .pl-chip small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; } .pl-chip b { font-size: 12.5px; } .pl-chip span { font-size: 11.5px; color: var(--muted); }
  .pl-chip i { position: absolute; right: 5px; top: 3px; font-style: normal; font-size: 11px; color: var(--muted); }
  .pl-chip.lesson { background: #e3edff; border-color: #4c7ddb; } .pl-chip.booking { background: #f1e6fb; border-color: #9150c8; }
  .pl-chip.shift { background: #fff3cd; border-color: #e6a100; } .pl-chip.k-dienst { background: #e2f4e8; border-color: #2e9e5b; } .pl-chip.k-aufsicht { background: #ffe4d6; border-color: #ef6c00; }
  [data-theme="dark"] .pl-chip, .dark .pl-chip { filter: brightness(.75) saturate(1.2); }
  .pl-rooms { display: flex; flex-direction: column; gap: 6px; }
  .pl-rrow { display: grid; grid-template-columns: 190px 1fr 90px; gap: 10px; align-items: center; }
  .pl-rrow.head > div:first-child { height: 1px; } .pl-rrow.off .pl-line { background: repeating-linear-gradient(45deg, var(--hover), var(--hover) 6px, transparent 6px, transparent 12px); }
  .pl-rname b { display: block; } .pl-rname small { color: var(--muted); font-size: 12px; } .pl-bk { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; cursor: pointer; }
  .pl-scale { position: relative; height: 16px; font-size: 11px; color: var(--muted); } .pl-scale span { position: absolute; transform: translateX(-50%); }
  .pl-line { position: relative; height: 46px; border-radius: 10px; background: var(--hover); cursor: col-resize; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .pl-sel { position: absolute; top: 3px; bottom: 3px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; white-space: nowrap; pointer-events: none; z-index: 3; }
  .pl-sel.clash { background: color-mix(in srgb, #d64545 22%, transparent); box-shadow: inset 0 0 0 2px #d64545; color: #b3261e; }
  .pl-blk { position: absolute; top: 4px; bottom: 4px; border: 0; border-radius: 7px; padding: 2px 6px; text-align: left; overflow: hidden; cursor: pointer; color: #fff; font: inherit; display: flex; flex-direction: column; justify-content: center; }
  .pl-blk b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-blk small { font-size: 10.5px; opacity: .9; white-space: nowrap; }
  .pl-blk.lesson { background: #4c7ddb; } .pl-blk.booking { background: #9150c8; } .pl-blk.shift { background: #e6a100; }
  .pl-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
  .pl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin: 0 3px 0 10px; }
  .pl-legend i.lesson { background: #4c7ddb; } .pl-legend i.booking { background: #9150c8; } .pl-legend i.shift { background: #e6a100; }
  .pl-mine { display: grid; grid-template-columns: 140px 200px 1fr; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); cursor: pointer; font: inherit; color: var(--text); }
  .pl-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
  .pl-day { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .pl-day h4 { margin: 2px 4px 4px; } .pl-day h4 small { color: var(--muted); font-weight: 500; }
  .pl-shift { display: flex; flex-direction: column; text-align: left; border: 0; border-left: 4px solid #e6a100; background: #fff3cd; border-radius: 8px; padding: 6px 8px; cursor: pointer; font: inherit; color: #3d3320; }
  .pl-shift.k-dienst { border-color: #2e9e5b; background: #e2f4e8; } .pl-shift.k-aufsicht { border-color: #ef6c00; background: #ffe4d6; } .pl-shift.k-termin { border-color: #9150c8; background: #f1e6fb; }
  .pl-shift small { font-size: 11px; opacity: .8; } .pl-shift span { font-size: 12px; opacity: .85; }
  .pl-dadd { border: 1.5px dashed var(--line); background: transparent; border-radius: 8px; padding: 6px; cursor: pointer; color: var(--muted); font: inherit; } .pl-dadd:hover { border-color: var(--accent); color: var(--accent); }
  .pl-times, .pl-req { border-collapse: collapse; width: 100%; } .pl-times th, .pl-times td, .pl-req th, .pl-req td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
  .pl-times th, .pl-req th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .pl-soll { width: 80px; height: 32px; border-radius: 8px; padding: 0 8px; } .pl-times .over { color: var(--danger); font-weight: 700; } .pl-times .under { color: #c27a00; font-weight: 700; } .pl-times .ok { color: #2e7d32; font-weight: 700; }
  .pl-req select, .pl-req input { height: 34px; border-radius: 8px; padding: 0 8px; max-width: 200px; user-select: text; } .pl-req input[type=number] { width: 70px; }
  .pl-req .warn { border-color: var(--danger); color: var(--danger); } .pl-req small.warn { display: block; font-size: 11px; }
  .pl-rep { display: flex; gap: 6px; align-items: center; font-size: 13px; }
  .pl-prev { border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .pl-prev h4 { margin: 0 0 8px; }
  .pl-unp { background: #fff3cd; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #5c4400; }
  .pl-pg h5 { margin: 12px 0 4px; font-size: 15px; }
  .og-planer ul { margin: 6px 0 12px; padding-left: 18px; line-height: 1.7; }
  @media (max-width: 760px) { .pl-rrow { grid-template-columns: 110px 1fr; } .pl-rrow > button { grid-column: span 2; } .pl-mine { grid-template-columns: 1fr; } }
  /* ---------- Kalender (Google-Stil) ---------- */
  .gc { display: flex; gap: 14px; min-height: 520px; height: 100%; }
  .gc-side { width: 230px; flex: none; display: flex; flex-direction: column; gap: 14px; }
  .gc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .gc-create { align-self: flex-start; display: flex; align-items: center; gap: 10px; border: 0; background: var(--panel); box-shadow: 0 1px 4px #0003, 0 2px 10px #0001; border-radius: 16px; padding: 12px 20px 12px 14px; font: inherit; font-weight: 700; cursor: pointer; color: var(--text); }
  .gc-create span { font-size: 24px; color: var(--accent); line-height: 1; } .gc-create:hover { box-shadow: 0 2px 8px #0003, 0 4px 16px #0002; }
  .gc-mini .gc-mh { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; } .gc-mh b { flex: 1; font-size: 14px; text-transform: capitalize; }
  .gc-mh button { border: 0; background: transparent; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: var(--text); } .gc-mh button:hover { background: var(--hover); }
  .gc-mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
  .gc-mg i { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 700; padding: 2px 0; }
  .gc-mg button { border: 0; background: transparent; width: 28px; height: 28px; margin: auto; border-radius: 50%; font-size: 12px; cursor: pointer; color: var(--text); position: relative; }
  .gc-mg button:hover { background: var(--hover); } .gc-mg button.o { color: var(--muted); } .gc-mg button.s { background: var(--accent-soft); color: var(--accent); font-weight: 800; }
  .gc-mg button.t { background: var(--accent); color: #fff; font-weight: 800; } .gc-mg button.e::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .6; }
  .gc-cals h4 { margin: 0 0 6px; font-size: 13px; } .gc-cal { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; cursor: pointer; }
  .gc-cal input { width: 16px; height: 16px; } .gc-leg { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); margin: 0 8px 4px 0; } .gc-leg i { width: 9px; height: 9px; border-radius: 3px; }
  .gc-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .gc-bar .sp { flex: 1; }
  .gc-title { margin: 0 0 0 6px; font-size: 21px; font-weight: 600; text-transform: capitalize; }
  .gc-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .gc-month { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto repeat(6, minmax(92px, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .gc-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-transform: uppercase; }
  .gc-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; overflow: hidden; }
  .gc-cell:hover { background: var(--hover); } .gc-cell.other { background: color-mix(in srgb, var(--line) 25%, transparent); } .gc-cell.other .gc-num { color: var(--muted); }
  .gc-num { align-self: center; border: 0; background: transparent; min-width: 26px; height: 26px; border-radius: 13px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text); padding: 0 6px; }
  .gc-num:hover { background: var(--line); } .gc-cell.today .gc-num { background: var(--accent); color: #fff; }
  .gc-pill { display: block; width: 100%; text-align: left; border: 0; border-radius: 5px; padding: 1px 6px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); background: transparent; flex: none; }
  .gc-pill.allday { background: var(--c); color: #fff; font-weight: 600; } .gc-pill.timed:hover { background: var(--hover); }
  .gc-pill.timed i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 3px; } .gc-pill small { color: var(--muted); }
  .gc-more { border: 0; background: transparent; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 1px 6px; }
  .gc.narrow .gc-month { grid-template-rows: auto repeat(6, minmax(58px, 1fr)); } .gc.narrow .gc-pill { font-size: 10.5px; padding: 0 3px; } .gc.narrow .gc-pill small { display: none; }
  .gc-days { flex: 1; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .gc-dh, .gc-ad { display: grid; grid-template-columns: 54px repeat(var(--n), 1fr); border-bottom: 1px solid var(--line); }
  .gc-dhd { border: 0; background: transparent; padding: 6px 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--text); }
  .gc-dhd small { font-size: 11px; color: var(--muted); font-weight: 700; } .gc-dhd b { font-size: 22px; font-weight: 500; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .gc-dhd.today small { color: var(--accent); } .gc-dhd.today b { background: var(--accent); color: #fff; }
  .gc-adl { font-size: 10px; color: var(--muted); padding: 4px; text-align: right; } .gc-adc { border-left: 1px solid var(--line); padding: 2px; min-height: 26px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
  .gc-scroll { flex: 1; overflow: auto; min-height: 300px; max-height: 64vh; }
  .gc-grid { display: grid; grid-template-columns: 54px repeat(var(--n), 1fr); position: relative; }
  .gc-hours div { position: relative; border-bottom: 1px solid transparent; } .gc-hours span { position: absolute; top: -7px; right: 6px; font-size: 10.5px; color: var(--muted); }
  .gc-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 44px; cursor: copy; }
  .gc-col.today { background-color: color-mix(in srgb, var(--accent) 4%, transparent); }
  .gc-blk { position: absolute; border: 0; border-radius: 6px; background: var(--c); color: #fff; text-align: left; padding: 2px 6px; overflow: hidden; cursor: pointer; font: inherit; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--panel); }
  .gc-blk b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gc-blk small { font-size: 11px; opacity: .9; white-space: nowrap; }
  .gc-now { position: absolute; left: -5px; right: 0; height: 2px; background: #ea4335; pointer-events: none; } .gc-now::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ea4335; }
  .gc-list { display: flex; flex-direction: column; } .gc-lrow { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
  .gc-ld b { font-size: 22px; font-weight: 500; display: block; } .gc-ld small { color: var(--muted); font-size: 11px; text-transform: uppercase; } .gc-lrow.today .gc-ld b { color: var(--accent); }
  .gc-le { display: flex; flex-direction: column; gap: 2px; }
  .gc-li { display: grid; grid-template-columns: 12px 110px 1fr; align-items: center; gap: 2px 10px; border: 0; background: transparent; text-align: left; padding: 5px 6px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
  .gc-li:hover { background: var(--hover); } .gc-li i { width: 10px; height: 10px; border-radius: 50%; } .gc-li .t { color: var(--muted); font-size: 13px; } .gc-li small { grid-column: 3; color: var(--muted); font-size: 12px; }
  .gc-pop { position: fixed; z-index: 96; width: 320px; padding: 14px 16px; } .gc-pop p { margin: 4px 0; font-size: 14px; } .gc-desc { white-space: pre-wrap; color: var(--muted); }
  .gc-ph { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; } .gc-ph i { width: 14px; height: 14px; border-radius: 4px; margin-top: 4px; flex: none; } .gc-ph b { flex: 1; font-size: 18px; }
  .gc-ph button { border: 0; background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); } .gc-pb { margin-top: 10px; }
  .todo-sug { display: flex; flex-direction: column; gap: 4px; } .sug-h { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
  .sug-row { display: flex; gap: 6px; align-items: center; background: color-mix(in srgb, #e6a100 12%, var(--panel)); border: 1px dashed #e6a100; border-radius: 10px; padding: 6px 8px; }
  .sug-row span { flex: 1; min-width: 0; } .sug-row b { display: block; font-size: 14px; } .sug-row small { color: var(--muted); font-size: 12px; }
  .fm-back { position: fixed; inset: 0; z-index: 78; background: #0007; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fmIn .15s ease; }
  @keyframes fmIn { from { opacity: 0; } }
  .fm-card { background: var(--panel); border-radius: 20px; box-shadow: 0 24px 60px #0005; display: flex; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
  .fm-prev { flex: 0 0 250px; background: var(--hover); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px; border-radius: 20px 0 0 20px; }
  .fm-prev b { font-size: 18px; text-align: center; word-break: break-word; } .fm-prev small { color: var(--muted); }
  .fm-svg svg { filter: drop-shadow(0 8px 14px #0002); transition: transform .15s; } .fm-svg:hover svg { transform: scale(1.03); }
  .fm-form { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .fm-form h3 { margin: 0 0 4px; font-size: 20px; }
  .fm-lab { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .fm-lab input, .fm-lab select { height: 42px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); user-select: text; }
  .fm-colors { display: flex; flex-wrap: wrap; gap: 8px; }
  .fm-col { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; position: relative; padding: 0; box-shadow: inset 0 0 0 1px #0002; }
  .fm-col.on { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--c); }
  .fm-custom { background: conic-gradient(#e5484d, #e6a100, #2e9e5b, #00838f, #4c7ddb, #9150c8, #e5484d); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .fm-custom.on { background: var(--c); } .fm-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
  .fm-custom span { color: #fff; font-weight: 800; text-shadow: 0 1px 2px #0006; pointer-events: none; }
  .fm-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
  .fm-ic { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }
  .fm-ic:hover { background: var(--hover); } .fm-ic.on { border-color: var(--accent); background: var(--accent-soft); }
  .fm-card.shake { animation: softRing .5s ease; }
  .cred-card { width: min(820px, 100%); } .cred-tab { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
  .cred-tab table { width: 100%; border-collapse: collapse; font-size: 14px; } .cred-tab th, .cred-tab td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); }
  .cred-tab th { position: sticky; top: 0; background: var(--panel); font-size: 12px; color: var(--muted); text-transform: uppercase; } .cred-tab code { user-select: all; }
  .og-dom { height: 36px; padding: 0 10px; border-radius: 8px; user-select: text; }
  .fm-btns { display: flex; gap: 8px; margin-top: 8px; } .fm-btns span { flex: 1; }
  @media (max-width: 640px) { .fm-card { flex-direction: column; } .fm-prev { flex: none; border-radius: 20px 20px 0 0; padding: 18px; } }
  #libPop .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } #libPop .seg button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
  .cthumb.has-cover { background: transparent; } .cthumb svg.cover { height: 100%; width: auto; max-width: 100%; display: block; margin: 0 auto; filter: drop-shadow(0 3px 6px #0002); }
  .licon svg.cover.small { height: 34px; width: auto; } .licon svg.ldoc { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
  .cv-prev svg.cover.big { width: 150px; height: auto; filter: drop-shadow(0 6px 14px #0003); }
  .cv-pats { display: flex; flex-wrap: wrap; gap: 6px; } .cv-pat { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; } .cv-pat.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  .tg-more { margin-top: 14px; } .tg-more > summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 6px 0; } .tg-more[open] > summary { color: var(--text); }
  .lp-h { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
  #libPop .seg button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
  .lp-sorts { display: flex; flex-direction: column; } .lp-sorts .tb { width: 100%; height: 36px; justify-content: flex-start; padding: 0 10px; text-align: left; }
  @media (max-width: 760px) { .lrow { grid-template-columns: 46px 1fr 90px; } .lrow > span:nth-child(4), .lrow > span:nth-child(5) { display: none; } }
  #homeSearch { flex: 1; max-width: 420px; height: 46px; padding: 0 14px; user-select: text; }
  #homeGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; align-items: start; }
  .card { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; cursor: pointer; position: relative; }
  .card:hover { box-shadow: 0 0 0 2px var(--accent); }
  .card.on { box-shadow: 0 0 0 3px var(--accent); }
  .cthumb { height: 150px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #9a968c; }
  .cthumb img { max-width: 100%; max-height: 100%; }
  .cname { font-weight: 700; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card input { width: 100%; margin-top: 8px; padding: 5px 8px; font-weight: 700; user-select: text; }
  .cmeta { color: var(--muted); font-size: 12px; margin-top: 2px; }
  .cbtns { position: absolute; top: 14px; right: 14px; display: flex; gap: 3px; opacity: 0; transition: opacity .1s; }
  .card:hover .cbtns { opacity: 1; }
  .cbtns .tb { width: 34px; height: 34px; background: var(--panel); box-shadow: 0 1px 3px #0003; }
  .kids { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; display: flex; flex-direction: column; }
  .kid { text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 7px 8px; cursor: pointer; color: var(--link); font-weight: 600;
    transition: transform .08s ease; }
  .kid:hover, .kid.on { background: var(--hover); }

  /* ---------- Toolleiste: andocken / schweben / anpassen ---------- */
  #tbHandle { cursor: grab; width: 22px; color: var(--muted); font-size: 16px; letter-spacing: -2px; }
  #toolbar.dock-bottom { top: auto; bottom: 10px; }
  #toolbar.dock-float { transform: none; max-width: min(1200px, calc(100vw - 20px)); }
  #toolbar.vert { flex-direction: column; flex-wrap: wrap; top: 50%; transform: translateY(-50%); max-height: calc(100vh - 20px); max-width: none; align-content: center; }
  #toolbar.dock-left { left: 10px; }
  #toolbar.dock-right { left: auto; right: 10px; }
  #toolbar.vert .sep { width: 34px; height: 1px; margin: 4px 0; }
  #toolbar.vert .group { flex-direction: column; }
  #toolbar.vert #title { display: none; }
  .tbhide { display: none !important; }
  body[data-tb="right"] #toolPanel { right: 80px; }
  body[data-tb="right"] #assets { right: 76px; }
  body[data-tb="bottom"] #viewbar { bottom: 74px; }
  body[data-tb="bottom"] #toolPanel, body[data-tb="left"] #toolPanel, body[data-tb="right"] #toolPanel, body[data-tb="float"] #toolPanel { top: 14px; max-height: calc(100vh - 100px); }
  .tbitems { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
  .tbgroup { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; }
  .tbg-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .tbg-h b { font-size: 13px; } .tbg-h small { color: var(--muted); font-size: 12px; }
  .tbg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
  .tbtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--panel); color: var(--muted); font: inherit; font-size: 11.5px; line-height: 1.2; cursor: pointer; text-align: center; min-height: 66px; }
  .tbtile:hover { background: var(--hover); }
  .tbtile .tbt-i { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; opacity: .55; }
  .tbtile .tbt-i svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .tbtile .tbt-a { font-weight: 600; font-size: 13px; }
  .tbtile .tbt-n { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tbtile .tbt-c { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line); }
  .tbtile.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); } .tbtile.on .tbt-i { opacity: 1; }
  .tbtile.on .tbt-c { background: var(--accent); border-color: var(--accent); }
  .tbtile.off .tbt-n::after { content: " (aus)"; color: var(--muted); }
  .tbitem { display: flex; gap: 8px; align-items: center; padding: 4px 2px; cursor: pointer; }
  .tbitem input { width: 18px; height: 18px; accent-color: var(--accent); }

  /* ---------- Module (schwebende Fenster) ---------- */
  .widget { z-index: 24; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 20px); }
  .whead { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 14px; cursor: move; border-bottom: 1px solid var(--line); touch-action: none; }
  .whead .tb { width: 36px; height: 36px; }
  .wbody { padding: 10px 12px 12px; overflow: auto; }
  .wicon { font-size: 20px; }
  .calc-in { width: 100%; height: 44px; font-size: 18px; padding: 0 10px; user-select: text; }
  .calc-out { font-size: 24px; font-weight: 700; text-align: right; padding: 6px 4px; min-height: 40px; font-variant-numeric: tabular-nums; }
  .calc-out.err { color: var(--danger); font-size: 14px; font-weight: 600; }
  .calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
  .calc-k { width: 100%; height: 48px; font-size: 18px; font-weight: 600; background: var(--tile); }
  .calc-hist { display: flex; flex-direction: column; margin-top: 6px; max-height: 140px; overflow: auto; }
  .calc-row { border: 0; background: transparent; text-align: right; padding: 5px 6px; border-radius: 6px; cursor: pointer; color: var(--muted); }
  .calc-row:hover { background: var(--hover); color: var(--text); }
  body.is-phone #toolPanel { display: none !important; }
  #vbMini.vb-wait { color: #b26a00; } #vbMini .vb-w { position: absolute; left: -2px; bottom: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: #b26a00; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
  .le-ichip { width: 38px; height: 38px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 10px !important; }
  .le-ichip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
  .le-ichip.le-off { opacity: .55; border-style: dashed !important; } .le-chip-t { font-size: 11px; font-weight: 700; }
  .tr-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; } .tr-bar .sp { flex: 1; } .tr-bar .tb { width: auto; padding: 0 14px; }
  .card.tr-card .cthumb img { opacity: .75; } .tr-act { display: flex; gap: 6px; margin-top: 6px; } .tr-act .tb { width: auto; padding: 0 10px; height: 30px; font-size: 12.5px; }
  .bg-ask { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 60; padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
  .bg-ask small { color: var(--muted); font-size: 12px; } .bg-ask .bg-x { position: absolute; top: 6px; right: 6px; width: 28px !important; height: 28px; }
  .bg-opts { display: flex; gap: 8px; } .bg-o { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 6px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
  .bg-o svg { width: 72px; height: 54px; } .bg-o.on { border-color: var(--accent); background: var(--accent-soft); }
  .ah-grip::before { content: ""; position: absolute; inset: -14px; }   /* größere Trefferfläche für Finger/Stift */
  /* PC-Standard (js/pcleiste.js): oben Menü & Dokument, direkt darunter die Werkzeugleiste */
  #toolbar2 { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 22; display: flex; align-items: center; gap: 3px; padding: 5px 8px;
    overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 20px); }
  #toolbar2[hidden] { display: none; } #toolbar2::-webkit-scrollbar { display: none; }
  #toolbar2 > #toolBtns, #toolbar2 > #objBtns { display: contents; }
  #toolbar2 [data-tool], #toolbar2 #rulerBtn, #toolbar2 > #colorBtn { display: none; }
  #toolbar2 [data-tool=pen] { display: inline-flex; order: 1; } #toolbar2 [data-tool=marker] { display: inline-flex; order: 2; }
  body.artplus #toolbar2 [data-tool=wisch] { display: inline-flex; order: 3; }
  #toolbar2 [data-tool=select] { display: inline-flex; order: 4; } #toolbar2 [data-tool=laser] { display: inline-flex; order: 5; }
  #toolbar2 [data-tool=eraser] { display: inline-flex; order: 6; } #toolbar2 [data-tool=objeraser] { display: inline-flex; order: 7; }
  #toolbar2 [data-tool=fill] { display: inline-flex; order: 8; }
  #toolbar2 > .pcb-layers { order: 30; margin-left: 4px; }
  #pcLayersPop { position: fixed; z-index: 60; width: 270px; max-height: 60vh; overflow: auto; padding: 10px; }
  #toolbar2 > #tbColors { order: 20; display: flex; align-items: center; margin-left: 8px; }
  #toolbar2 > .pcb-size { order: 21; display: flex; align-items: center; gap: 8px; margin: 0 6px 0 10px; }
  .pcb-size input { width: 120px; accent-color: var(--accent); }
  /* Stärke-Regler: Knopf zeigt die Strichstärke */
  .sb-size input[type=range], .pcb-size input[type=range] { -webkit-appearance: none; appearance: none; height: 34px; background: transparent; }
  .sb-size input[type=range]::-webkit-slider-runnable-track, .pcb-size input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 22%, transparent); }
  .sb-size input[type=range]::-moz-range-track, .pcb-size input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 22%, transparent); }
  .sb-size input[type=range]::-webkit-slider-thumb, .pcb-size input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--th, 16px); height: var(--th, 16px); margin-top: calc((4px - var(--th, 16px)) / 2); border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); box-shadow: 0 1px 4px #0004; transition: width .08s, height .08s, margin .08s; }
  .sb-size input[type=range]::-moz-range-thumb, .pcb-size input[type=range]::-moz-range-thumb { width: var(--th, 16px); height: var(--th, 16px); border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); } .pcb-size i { display: block; border-radius: 50%; background: currentColor; flex: none; }
  .pcb-size .pcb-dot { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
  #toolbar2 > * { flex-shrink: 0; }
  #toolbar.pcsplit > * { order: 20; }
  #toolbar.pcsplit > #tbHandle { order: -1; } #toolbar.pcsplit > #menuBtn { order: 0; } #toolbar.pcsplit > #tbSettingsBtn { order: 1; }
  #toolbar.pcsplit > #title { order: 2; } #toolbar.pcsplit > [data-tool=tipp] { order: 3; margin-left: 6px; } #toolbar.pcsplit > #rulerBtn { order: 3; display: inline-flex; }
  #toolbar.pcsplit > #imageBtn { order: 4; } #toolbar.pcsplit > #pdfBtn { order: 5; }
  #toolbar.pcsplit > #undoBtn { order: 6; margin-left: 6px; } #toolbar.pcsplit > #redoBtn { order: 7; }
  #toolbar.pcsplit > #exportBtn { order: 8; margin-left: 6px; } #toolbar.pcsplit > #flowBtn { order: 9; }
  #toolbar.pcsplit > #tpBtn, #toolbar.pcsplit > #profileBtn, #toolbar.pcsplit > .sep, #toolbar.pcsplit > #assetBtn, #toolbar.pcsplit > #tbSizes,
  #toolbar.pcsplit > #widgetBtns { display: none !important; }
  .lz-cols { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .lz-cols .tbsw { width: 28px; height: 28px; }
  .tp-brushes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; max-width: 300px; } .tp-brushes .chip { flex: none; }
  .flow-back.fl-asking .flow-person:not(.has-mark) { opacity: .35; filter: grayscale(1); }
  .flow-back.fl-asking .flow-devs { display: none; }
  .fl-ask.on { background: var(--accent-soft); color: var(--accent); }
  .lw-note { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 14px; transition: opacity .25s; max-width: calc(100vw - 32px); }
  .lw-note.out { opacity: 0; } .lw-nt { display: flex; flex-direction: column; gap: 2px; } .lw-nt small { color: var(--muted); font-size: 12px; } .lw-note .tb { width: auto; padding: 0 14px; height: 34px; }
  .le-leave-card { padding: 18px 20px; border-radius: 16px; width: min(440px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; }
  .le-leave-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; } .le-leave-btns .tb { width: auto; padding: 0 14px; height: 36px; } .le-leave-btns .tb:disabled { opacity: .45; cursor: not-allowed; }
  /* Layout-Studio (js/studio.js) – Leisten live und im Editor */
  .sb { position: fixed; z-index: 23; padding: 6px; border-radius: 16px; box-sizing: border-box; transition: opacity .2s; }
  .sb.sb-vscroll { touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sb.sq { border-radius: 4px; } .sb.sq .sb-btn, .sb.sq .sb-panel { border-radius: 3px; }
  .sb-grid { display: grid; gap: 4px; }
  .sb-it { position: relative; display: flex; min-width: 0; min-height: 0; }
  .sb-btn { width: 100% !important; height: 100% !important; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); }
  .sb-btn svg { width: calc(var(--u) * .54) !important; height: calc(var(--u) * .54) !important; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .sb-btn .sb-t { font-size: calc(var(--u) * .42); }
  .sb-col i { width: 60%; height: 60%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #0002; } .sb-col.on i { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
  .sb-tog { justify-content: flex-start; padding: 0 10px; } .sb-tog .sb-lbl { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb-chk { position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); } .sb-chk.on { background: var(--accent); border-color: var(--accent); }
  .sb-panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); flex-direction: column; }
  .sb-panel > .wbody, .sb-panel > .sb-layers { flex: 1; overflow: auto; padding: 8px; min-width: 0; min-height: 0; }
  .sb-ph { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; text-align: center; padding: 4px; }
  .sb-ph svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
  .sb-size { align-items: center; justify-content: center; } .sb-size input { width: 92%; accent-color: var(--accent); }
  .sb-size.vert input { writing-mode: vertical-lr; direction: rtl; width: auto; height: 92%; }
  .sb-title input { width: 100%; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-weight: 600; padding: 0 8px; border-radius: 10px; }
  .sb-title input:focus { border-color: var(--line); outline: none; }
  .sb-live.sb-away { opacity: 0; pointer-events: none; }
  .sb-tab { position: fixed; z-index: 24; border: 0; background: var(--panel); box-shadow: 0 2px 10px #0003; border-radius: 8px; cursor: pointer; }
  .sb-tab.h { width: 44px; height: 12px; } .sb-tab.v { width: 12px; height: 44px; } .sb-tab[hidden] { display: none; }
  body.studio-live #toolbar, body.studio-live #toolbar2, body.studio-live #toolPanel, body.studio-live .ah-grip[data-k=toolbar], body.studio-live .ah-grip[data-k=toolPanel],
  body.studio-live .cbar, body.studio-live .cbar-tg { display: none !important; }
  .st-lpop { width: 300px; max-height: 70vh; overflow: auto; }
  /* „Mehr“-Leiste */
  .st-more { padding: 8px; max-height: 72vh; overflow: auto; }
  .st-more-grid { --u: 44px; display: grid; grid-auto-rows: var(--st-u, 44px); gap: 4px; }
  .st-more-grid .sb-it { display: grid; } .st-more-grid .sb-btn { width: 100%; height: 100%; }
  .st-more-edit { display: block; width: 100%; margin-top: 6px; font-size: 12px; }
  .st-more-head { padding: 2px 4px 6px; } .st-more-list { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; min-width: 250px; }
  .st-more-grp { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 4px 2px; }
  .st-more-row { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 8px; cursor: pointer; font-size: 13px; } .st-more-row:hover { background: var(--hover); }
  .st-more-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
  .st-more-foot { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
  /* Editor */
  .st { position: fixed; inset: 0; z-index: 99000; background: color-mix(in srgb, var(--paper) 92%, #000); display: flex; flex-direction: column; }
  .st-head { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .st-head .tb { width: auto; padding: 0 14px; height: 36px; } .st-head .tb:disabled { opacity: .45; }
  .st-hg { display: flex; align-items: center; gap: 8px; } .st-ttl { font-size: 16px; } .st-l { font-size: 12px; color: var(--muted); }
  .st-seg { display: flex; gap: 3px; background: var(--hover); padding: 3px; border-radius: 11px; }
  .st-seg .chip { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
  .st-seg .chip.on { background: var(--panel); box-shadow: 0 1px 4px #0002; font-weight: 600; } .st-seg .chip small { color: var(--muted); font-weight: 400; }
  .st-slots { display: flex; gap: 4px; flex-wrap: wrap; }
  .st-slot { border: 1.5px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
  .st-slot.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; } .st-slot-add { border-style: dashed; color: var(--muted); }
  .st-main { flex: 1; display: flex; min-height: 0; }
  .st-list, .st-props { width: 290px; flex: none; overflow-y: auto; background: var(--panel); padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
  .st-list { border-right: 1px solid var(--line); } .st-props { border-left: 1px solid var(--line); } .st-list[hidden], .st-props[hidden] { display: none; }
  .st-lh { display: flex; align-items: baseline; gap: 8px; } .st-lh small { color: var(--muted); font-size: 12px; } .st-lh .tb { width: 30px; height: 30px; }
  .st-g summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 5px 0; display: flex; gap: 6px; align-items: baseline; } .st-g summary small { color: var(--muted); font-weight: 400; }
  .st-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 4px 0 8px; }
  .st-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 3px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; text-align: center; cursor: grab; user-select: none; touch-action: none; background: var(--panel); }
  .st-chip:hover { background: var(--hover); border-color: var(--accent); }
  .st-chip svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .st-chip .st-sw { width: 20px; height: 20px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px #0002; }
  .st-chip span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .st-chip small { position: absolute; top: 3px; right: 5px; color: var(--muted); font-size: 9.5px; }
  .st-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; position: relative; }
  .st-frame { position: relative; flex: none; border-radius: 18px; box-shadow: 0 0 0 10px #1c1c1e, 0 18px 50px #0005; overflow: hidden; background: var(--paper, #fbfaf7); }
  .st-frame.st-phone { border-radius: 30px; } .st-frame.st-desktop { border-radius: 8px; }
  .st-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; background-color: var(--paper, #fbfaf7); }
  .st-hint { margin: 0; color: var(--muted); font-size: 13px; text-align: center; max-width: 720px; }
  .st-fixed { position: absolute; padding: 10px 14px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 13px; background: color-mix(in srgb, var(--panel) 70%, transparent); pointer-events: none; }
  .st-fx-view { right: 10px; bottom: 10px; } .st-fx-share { left: 10px; bottom: 10px; }
  .st-has-sel .st-fixed { opacity: .1; }
  .st-bar { position: absolute; cursor: move; touch-action: none; user-select: none; box-shadow: 0 2px 12px #0002; }
  .st-bar.st-on { outline: 2.5px solid var(--accent); outline-offset: 3px; cursor: default; } .st-bar.st-on .sb-it { cursor: grab; }
  .st-bar.st-dim { opacity: .12; } .st-bar.st-over { outline: 2.5px dashed var(--accent); outline-offset: 3px; }
  .st-blab { position: absolute; left: 0; top: -22px; font-size: 12px; color: var(--muted); white-space: nowrap; pointer-events: none; }
  .st-hidden { position: absolute; right: 0; bottom: -22px; font-size: 12px; color: var(--danger, #c33); white-space: nowrap; }
  .st-h { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--accent); border-radius: 4px; z-index: 3; touch-action: none; }
  .st-h-n { top: -9px; left: calc(50% - 7px); cursor: ns-resize; } .st-h-s { bottom: -9px; left: calc(50% - 7px); cursor: ns-resize; }
  .st-h-e { right: -9px; top: calc(50% - 7px); cursor: ew-resize; } .st-h-w { left: -9px; top: calc(50% - 7px); cursor: ew-resize; }
  .st-h-ne { right: -9px; top: -9px; cursor: nesw-resize; } .st-h-sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
  .st-h-nw { left: -9px; top: -9px; cursor: nwse-resize; } .st-h-se { right: -9px; bottom: -9px; cursor: nwse-resize; }
  .sb.sb-fullh { border-radius: 0 16px 16px 0; padding-top: 6px; padding-bottom: 6px; } .sb.sb-fullh + .sb.sb-fullh { border-radius: 0 16px 16px 0; }
  .sb-panel > .wbody, .sb-panel > .sb-layers { overflow: hidden !important; transform-origin: 0 0; flex: none !important; }
  .sb-panel .tm-tile, .sb-panel .wtile-btn, .sb-panel > .wbody > .note { display: none !important; }
  .sb-panel[data-h="2"] .tm-custom, .sb-panel[data-h="2"] .tm-presets, .sb-panel[data-h="2"] .tm-by { display: none !important; }
  .sb-panel[data-w="2"][data-h="2"] .tm-modes { display: none !important; }
  .st-sw-auto { background: conic-gradient(#d64545, #e6a100, #2e9e5b, #1f5fbf, #9150c8, #d64545) !important; }
  .st-zoom { width: 110px; accent-color: var(--accent); } .st-zv { font-size: 12px; min-width: 40px; }
  .flow-panel { height: min(560px, calc(100vh - 32px)); box-sizing: border-box; }
  .flow-devs { min-height: 104px; } .flow-people { min-height: 92px; }
  .flow-add { border-style: dashed !important; color: var(--muted); } .flow-add .fl-plus { font-size: 26px; line-height: 1; font-weight: 300; }
  .flow-person.flow-add { border: 0 !important; } .flow-person.flow-add .fl-plus { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line); border-radius: 50%; background: transparent; color: var(--muted); }
  .fl-info { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; margin: 4px 0; }
  #textEditor.hw-live { color: transparent !important; -webkit-text-fill-color: transparent; }
  #hwLive { position: fixed; z-index: 25; pointer-events: none; }
  #rlBoard { position: fixed; z-index: 21; border-radius: 10px; background: color-mix(in srgb, #e9eef7 78%, transparent); box-shadow: 0 2px 12px #0003, inset 0 0 0 1px #0002; touch-action: none; cursor: move; backdrop-filter: blur(2px); }
  #rlBoard[hidden] { display: none; }
  #rlBoard .rl-ticks { position: absolute; inset: 0; border-radius: 10px; background:
    repeating-linear-gradient(90deg, #4a5568 0 1px, transparent 1px 10px) top / 100% 10px no-repeat, repeating-linear-gradient(90deg, #4a5568 0 1px, transparent 1px 50px) top / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, #4a5568 0 1px, transparent 1px 10px) bottom / 100% 10px no-repeat, repeating-linear-gradient(90deg, #4a5568 0 1px, transparent 1px 50px) bottom / 100% 18px no-repeat; opacity: .8; }
  #rlBoard .rl-deg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 600 15px system-ui, sans-serif; color: #1f3b6e; background: #fffc; padding: 2px 10px; border-radius: 10px; }
  #rlBoard .rl-rot { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #0004; cursor: grab; }
  #rlBoard .rl-l { left: 14px; } #rlBoard .rl-r { right: 14px; }
  .rl-btns { flex-direction: row !important; gap: 4px; } .rl-btns .tb { flex: 1; height: 30px; padding: 0 6px; font-size: 12px; }
  .pb-menu { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; } .pb-menu input { accent-color: var(--accent); width: 16px; height: 16px; }
  .ze { display: flex; flex-direction: column; gap: 10px; }
  .ze-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; } .ze-tiles div { background: var(--hover); border-radius: 10px; padding: 6px 9px; display: flex; flex-direction: column; }
  .ze-tiles small { color: var(--muted); font-size: 11px; } .ze-tiles b { font-size: 15px; }
  .ze-bars { display: flex; gap: 4px; height: 64px; align-items: flex-end; } .ze-bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
  .ze-bars i { display: block; width: 100%; min-height: 2px; background: #2a78d6; border-radius: 4px 4px 2px 2px; } .ze-bars span { font-size: 10px; color: var(--muted); }
  .ze-top div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 2px 0; } .ze-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb.sb-scroll { scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; } .sb.sb-scroll::-webkit-scrollbar { display: none; }
  .tm-item.tm-swiping { transition: none; position: relative; z-index: 1; }
  .pc-card.pc-page { width: min(560px, calc(100vw - 24px)) !important; padding: 0 0 18px !important; overflow: hidden; position: relative; }
  .pc-page .pc-banner { height: 150px; }
  .pc-page .pc-x { position: absolute; top: 10px; right: 10px; background: #0005 !important; color: #fff !important; border-radius: 50%; z-index: 2; }
  .pc-page .pc-top { flex-direction: column; align-items: flex-start; gap: 8px; margin: -52px 22px 0; position: relative; }
  .pc-page .pc-av { width: 104px !important; height: 104px !important; font-size: 40px !important; border: 4px solid var(--panel); box-shadow: 0 2px 10px #0003; }
  .pc-page .pc-names b { font-size: 22px; } .pc-page .pc-names { gap: 2px; }
  .pc-page .pc-head, .pc-page .pc-bio, .pc-page .pc-facts, .pc-page .pc-act { margin-left: 22px; margin-right: 22px; }
  .pc-page .pc-head { font-size: 15px; color: var(--text); margin-top: 6px; } .pc-page .pc-bio { white-space: pre-wrap; line-height: 1.5; }
  .fl-upload { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100% !important; height: 40px; margin: 2px 0 6px; }
  .fl-upload svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tool-pop .tp-curve { display: flex; justify-content: center; margin-top: 8px; padding: 4px; border-radius: 10px; background: var(--hover); }
  .tool-pop .tp-curve[title] { cursor: pointer; } .tool-pop .tp-curve[title]:hover { outline: 2px solid var(--accent); }
  .tool-pop input[type=range].fine { accent-color: #e07000; }
  /* Creative Hub (js/hub.js) – volle Breite, eigene Optik */
  .pagebody.hb-page { max-width: none; height: calc(100vh - 120px); min-height: 480px; padding: 0 !important; }
  .hb .sp { flex: 1; } .hb-card { position: relative; background: var(--panel); box-shadow: 0 1px 2px #0000000d, 0 4px 18px #00000012; border-radius: 18px; }
  .hb { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 100%; padding: 0 !important; font-size: 15px; }
  .hb h2 { font-size: 22px; margin: 0; } .hb h3 { font-size: 18px; margin: 0; } .hb-h { text-align: center; }
  .hb-main { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 120px; }
  .hb-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 10px 16px 14px; pointer-events: none;
    background: linear-gradient(to top, var(--paper) 55%, transparent); z-index: 3; }
  .hb-navin { pointer-events: auto; display: flex; justify-content: space-around; gap: 6px; width: min(720px, 100%); padding: 8px; border-radius: 22px; background: var(--panel); box-shadow: 0 2px 6px #0000000f, 0 10px 30px #0000001a; }
  .hb-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; border-radius: 16px; cursor: pointer; }
  .hb-nav button:hover { background: var(--hover); color: var(--text); }
  .hb svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .hb-nav button svg { width: 30px; height: 30px; } .hb-nav button.on { color: var(--accent); background: var(--accent-soft); } .hb-nav button.on svg { stroke-width: 2; }
  .hb-col { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; width: 100%; } .hb-col.wide { max-width: 940px; }
  .hb-feedwrap { display: flex; justify-content: center; gap: 36px; max-width: 1060px; margin: 0 auto; } .hb-feedwrap .hb-col { margin: 0; flex: 1; }
  .hb-side { width: 320px; flex: none; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; align-self: flex-start; padding-top: 52px; }
  @media (max-width: 1150px) { .hb-side { display: none; } }
  .hb-seg { display: flex; gap: 6px; align-self: center; } .hb-seg .chip { padding: 8px 18px; font-size: 14px; }
  .hb-who { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; padding: 0; min-width: 0; }
  .hb-who span { display: flex; flex-direction: column; min-width: 0; } .hb-who b { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; } .hb-who small { color: var(--muted); font-size: 13px; }
  .hb-av { width: 44px !important; height: 44px !important; font-size: 17px !important; flex: none; } .hb-av.sm { width: 32px !important; height: 32px !important; font-size: 13px !important; } .hb-av.lg { width: 56px !important; height: 56px !important; font-size: 22px !important; }
  .hb-avph { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--hover); color: var(--muted); } .hb-avph svg { width: 22px; height: 22px; }
  .hb-post { overflow: hidden; }
  .hb-post header { display: flex; align-items: center; gap: 8px; padding: 14px 16px; }
  .hb-more, .hb-cmore { width: 38px !important; height: 38px; } .hb-more svg, .hb-cmore svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
  .hb-img { display: block; width: 100%; max-height: 720px; object-fit: contain; background: var(--hover); }
  .hb-acts { display: flex; align-items: center; gap: 4px; padding: 8px 10px 0; }
  .hb-acts button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; padding: 8px; border-radius: 12px; cursor: pointer; }
  .hb-acts svg { width: 28px; height: 28px; } .hb-acts button:hover { background: var(--hover); }
  .hb-like.on { color: #e5484d; } .hb-like.on svg, .hb-save.on svg { fill: currentColor; } .hb-save.on { color: var(--accent); }
  .hbp-body { padding: 4px 18px 16px; } .hb-title { font-size: 17px; margin: 4px 0 0; } .hbp-text { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.55; font-size: 15px; }
  .hb-comments { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
  .hb-cm { display: flex; gap: 10px; align-items: flex-start; } .hb-cm > div { flex: 1; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
  .hb-cwho { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
  .hb-cform { display: flex; gap: 8px; } .hb-cform input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); color: var(--text); font: inherit; } .hb-cform .tb { width: auto; padding: 0 16px; }
  .hb-empty { text-align: center; padding: 48px 20px; }
  .hb-me { padding: 4px 4px 8px; } .hb-reqs { display: flex; align-items: center; gap: 10px; border: 0; background: var(--accent-soft); color: var(--accent); font: inherit; font-weight: 600; padding: 12px 14px; border-radius: 14px; cursor: pointer; } .hb-reqs svg { width: 24px; height: 24px; }
  .hb-sugg-h { color: var(--muted); font-size: 14px; padding: 0 4px; } .hb-sugg-l { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
  .hb-srow { display: flex; align-items: center; gap: 8px; } .hb-srow .hb-who { flex: 1; }
  .hb-follow { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 6px; } .hb-follow:disabled { color: var(--muted); }
  .hb-foot { font-size: 12px; padding: 0 4px; }
  .hb-wf { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
  .hb-wf-top { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .hbw-search { display: flex; align-items: center; gap: 10px; width: min(680px, 100%); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 18px; background: var(--panel); box-shadow: 0 2px 10px #0000000d; }
  .hbw-search > svg { width: 22px; height: 22px; color: var(--muted); } .hbw-search input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; padding: 10px 0; }
  .hb-sbtn { width: 44px !important; height: 44px; border-radius: 50% !important; } .hb-sbtn svg { width: 22px; height: 22px; }
  .hb-cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .hbw-cat { border: 0; background: var(--hover); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 18px; border-radius: 12px; cursor: pointer; text-transform: none; }
  .hbw-cat.on { background: var(--text); color: var(--panel); }
  .hb-wf-body { display: flex; gap: 24px; } .hb-wf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
  .hb-wsec { display: flex; flex-direction: column; gap: 14px; } .hb-wsec[hidden] { display: none; }
  .hb-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 18px; }
  .hb-vcard { display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
  .hb-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
  .hb-vcard:hover .hb-thumb { transform: scale(1.015); }
  .hb-tic svg { width: 54px; height: 54px; stroke: #fff; stroke-width: 1.6; opacity: .92; } .hb-tic svg path[d^="M8 5"] { fill: #fff; }
  .hb-tcat { position: absolute; left: 14px; top: 12px; color: #fff; font-weight: 700; font-size: 13px; opacity: .9; }
  .hb-tkind { position: absolute; left: 10px; bottom: 10px; background: #000a; color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
  .hb-free { position: absolute; right: 10px; bottom: 10px; background: #fffe; color: #1d6b45; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
  .hb-vmeta { display: flex; gap: 12px; align-items: flex-start; } .hb-vmeta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .hb-vt { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hb-vby { color: var(--muted); font-size: 13.5px; } .hb-vd { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hb-vcard.ph .hb-thumb { filter: saturate(.75); }
  .hb-wf-make { text-align: center; }
  .hb-subs { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 6px; height: fit-content; position: sticky; top: 0; }
  .hb-subs[hidden] { display: none; } .hb-subs b { font-size: 13px; color: var(--muted); }
  .hb-subs-list { display: flex; flex-direction: column; gap: 14px; align-items: center; }
  .hb-sub { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--text); font: inherit; font-size: 12px; }
  @media (max-width: 860px) { .hb-wf-body { flex-direction: column-reverse; } .hb-subs { width: auto; flex-direction: row; position: static; } .hb-subs-list { flex-direction: row; overflow-x: auto; } .hb-main { padding: 16px 12px 120px; } }
  .hb-upform { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
  .hb-upimg { min-height: 220px; border: 2px dashed var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; overflow: hidden; font-size: 15px; }
  .hb-upimg svg { width: 44px; height: 44px; } .hb-upimg img { max-width: 100%; max-height: 420px; display: block; }
  .hb-upsrc { display: flex; gap: 8px; } .hb-upsrc .tb { flex: 1; height: 42px; }
  .hb-uptitle, .hb-uptext { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
  .hb-upform .hb-send { height: 46px; font-size: 15px; }
  .hb-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hb-tile { aspect-ratio: 1; border: 0; padding: 0; background: var(--hover); cursor: pointer; overflow: hidden; border-radius: 8px; }
  .hb-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; } .hb-tile:hover img { transform: scale(1.03); }
  .hb-tile.txt span { display: block; padding: 14px; font-size: 14px; text-align: left; color: var(--text); overflow: hidden; height: 100%; }
  .hb-prof { overflow: hidden; padding-bottom: 14px; } .hb-banner { position: relative; height: 220px; }
  .hb-bedit { position: absolute; right: 14px; top: 14px; width: auto !important; padding: 0 14px; background: #0006 !important; color: #fff !important; }
  .hb-phead { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px; margin-top: -64px; flex-wrap: wrap; position: relative; }
  .hb-pav { width: 148px !important; height: 148px !important; font-size: 56px !important; border: 5px solid var(--panel); flex: none; }
  .hb-pnames { display: flex; flex-direction: column; padding-bottom: 10px; } .hb-pnames b { font-size: 26px; display: inline-flex; align-items: center; gap: 6px; } .hb-pnames small { color: var(--muted); font-size: 15px; }
  .hb-pstats { display: flex; gap: 22px; margin-left: auto; padding-bottom: 14px; font-size: 15px; color: var(--muted); } .hb-pstats b { color: var(--text); font-size: 17px; }
  .hb-pfr { border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; }
  .hb-pbio { padding: 6px 28px 0; } .hb-pbio b { font-size: 15.5px; } .hb-pbio p { margin: 4px 0 0; white-space: pre-wrap; line-height: 1.5; }
  .hb-pacts { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 28px; } .hb-pacts .tb { width: auto; flex: 1; min-width: 150px; height: 42px; font-size: 14.5px; }
  .hb-following { background: var(--hover) !important; color: var(--text) !important; }
  .hb-ptabs { display: flex; justify-content: center; gap: 40px; border-top: 1px solid var(--line); margin-bottom: 8px; }
  .hb-ptabs button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 14px 6px; cursor: pointer; border-top: 2px solid transparent; margin-top: -1px; letter-spacing: .02em; }
  .hb-ptabs svg { width: 22px; height: 22px; } .hb-ptabs button.on { color: var(--text); border-top-color: var(--text); }
  .hb-pgrid { padding: 0 6px; } .hb-pgrid.hb-vgrid { padding: 6px 20px; }
  @media (max-width: 700px) { .hb-phead { padding: 0 16px; margin-top: -48px; } .hb-pav { width: 104px !important; height: 104px !important; } .hb-pstats { margin-left: 0; width: 100%; } .hb-pbio, .hb-pacts { padding-left: 16px; padding-right: 16px; } .hb-banner { height: 150px; } }
  .hb-ver svg { width: 18px; height: 18px; fill: #1f9d55; stroke: #fff; stroke-width: 1.4; vertical-align: -3px; } .hb-ver.adm svg { fill: #d93025; }
  .hb-friends { padding: 22px; display: flex; flex-direction: column; gap: 16px; } .hb-addf { display: flex; gap: 8px; }
  .hb-addf input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); color: var(--text); font: inherit; } .hb-addf .tb { width: auto; padding: 0 16px; }
  .hb-fsec { display: flex; flex-direction: column; gap: 10px; } .hb-fsec[hidden] { display: none; } .hb-fsec h3 small { color: var(--muted); font-weight: 500; }
  .hb-frow { display: flex; align-items: center; gap: 8px; } .hb-frow .tb { width: auto; padding: 0 14px; height: 36px; }
  .hb-back { align-self: flex-start; width: auto !important; padding: 0 14px; }
  .hb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .hb-tags span { color: var(--accent); font-size: 14px; font-weight: 600; }
  .hb-tile { position: relative; } .hb-tile video { width: 100%; height: 100%; object-fit: cover; display: block; } .hb-tvid { position: absolute; right: 8px; top: 8px; color: #fff; } .hb-tvid svg { width: 22px; height: 22px; fill: #fff; }
  .hb-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hb-types button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .hb-types button svg { width: 28px; height: 28px; } .hb-types button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  .hb-upimg.done { cursor: default; border-style: solid; } .hb-upimg video { max-width: 100%; max-height: 420px; }
  .hb-uptags { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); color: var(--accent); font: inherit; font-weight: 600; }
  .hb-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
  .hb-doc { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px; cursor: pointer; text-align: left; }
  .hb-doc:hover { border-color: var(--accent); } .hb-doc small { color: var(--muted); font-weight: 500; }
  .hb-dthumb { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--hover); overflow: hidden; display: block; } .hb-dthumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
  .hb-crop { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; touch-action: none; user-select: none; background: #fff; }
  .hb-crop img { display: block; width: 100%; pointer-events: none; } .hb-cr { position: absolute; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 0 9999px #0005; }
  .hb-row2 { display: flex; gap: 8px; } .hb-row2 .tb { flex: 1; height: 42px; }
  .hb-edit { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.2fr); gap: 20px; align-items: start; }
  @media (max-width: 900px) { .hb-edit { grid-template-columns: 1fr; } }
  .hb-eform { padding: 22px; display: flex; flex-direction: column; gap: 14px; } .hb-ef { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
  .hb-ef input, .hb-ef textarea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--panel); color: var(--text); font: inherit; font-weight: 400; font-size: 15px; resize: vertical; }
  .hb-bsw { display: flex; flex-wrap: wrap; gap: 8px; } .hb-bsw button { width: 54px; height: 36px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
  .hb-bsw button.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--panel) inset; } .hb-bimg { background: var(--hover) !important; display: flex; align-items: center; justify-content: center; color: var(--muted); } .hb-bimg svg { width: 20px; height: 20px; }
  .hb-erow { display: flex; gap: 8px; } .hb-erow .tb { flex: 1; height: 42px; }
  .hb-eprev .hbp-bio { padding: 6px 28px 0; } .hb-eprev .hbp-bio p { margin: 4px 0 0; white-space: pre-wrap; } .hb-livenote { padding: 4px 28px 0; }
  /* Kurse (js/kurs.js) */
  .kb-wrap { gap: 22px; } .kb-head { display: flex; gap: 8px; } .kb-head .tb { width: auto; padding: 0 14px; }
  .kb-info { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; } .kb-info small { color: var(--muted); } .kb-d { margin: 0; line-height: 1.5; }
  .kb-bar { height: 10px; border-radius: 6px; background: var(--hover); overflow: hidden; margin-top: 6px; } .kb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
  .kb-path { display: flex; flex-direction: column; gap: 30px; align-items: center; padding-bottom: 40px; }
  .kb-ch { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .kb-chh { align-self: stretch; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px; border-radius: 16px; background: var(--accent); color: #fff; } .kb-chh small { opacity: .85; }
  .kb-nodes { display: flex; flex-direction: column; align-items: center; gap: 22px; }
  .kb-node { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--hover); color: var(--muted); cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 0 #0000001f, inset 0 0 0 5px var(--panel), 0 0 0 5px #c7c7cc; transition: transform .1s; }
  .kb-node:active { translate: 0 3px; } .kb-node .kb-ic svg { width: 34px; height: 34px; }
  .kb-node.done { background: #e8f8dc; color: #2f7a12; }
  .kb-node.red { box-shadow: 0 6px 0 #0000001f, inset 0 0 0 5px var(--panel), 0 0 0 5px #e5484d; } .kb-node.ok { box-shadow: 0 6px 0 #0000001f, inset 0 0 0 5px var(--panel), 0 0 0 5px #58cc02; }
  .kb-node.dark { box-shadow: 0 6px 0 #0000001f, inset 0 0 0 5px var(--panel), 0 0 0 5px #1d6b2e; } .kb-node.gold { background: #fff4d1; color: #a66b00; box-shadow: 0 6px 0 #0000001f, inset 0 0 0 5px var(--panel), 0 0 0 5px #f2b705; }
  .kb-nl { position: absolute; top: 96px; width: 170px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text); } .kb-nw { position: absolute; top: 114px; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .kb-nodes > .kb-node { margin-bottom: 26px; }
  .kb-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .kb-card { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 18px 20px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
  .kb-card header { display: flex; align-items: center; gap: 10px; font-size: 17px; } .kb-x { width: 36px !important; }
  .kb-body { display: flex; flex-direction: column; gap: 12px; } .kb-media { width: 100%; max-height: 420px; border-radius: 12px; background: #000; object-fit: contain; }
  .kb-txt, .kb-q { font-size: 16px; line-height: 1.5; margin: 0; } .kb-q { font-weight: 700; font-size: 18px; }
  .kb-ans { display: flex; flex-direction: column; gap: 8px; } .kb-a { text-align: left; padding: 14px 16px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
  .kb-a.right, .kb-mi.right, .kb-gi.right { border-color: #58cc02; background: #e8f8dc; } .kb-a.wrong, .kb-mi.wrong, .kb-gi.wrong { border-color: #e5484d; background: #fde8e8; }
  .kb-done, .kb-next, .kb-chk { height: 46px; font-size: 15px; }
  .kb-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .kb-ml, .kb-mr { display: flex; flex-direction: column; gap: 8px; }
  .kb-mi { padding: 12px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; } .kb-mi.sel { border-color: var(--accent); } .kb-mi:disabled { opacity: .7; }
  .kb-mimg { max-width: 100%; max-height: 110px; display: block; margin: 0 auto; border-radius: 8px; }
  .kb-gap { font-size: 16px; line-height: 2.4; } .kb-gi { border: 2px solid var(--line); border-radius: 8px; padding: 4px 8px; margin: 0 4px; font: inherit; background: var(--panel); color: var(--text); }
  .kb-built, .kb-pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px; border-radius: 12px; } .kb-built { border-bottom: 2px solid var(--line); }
  .kb-chip { padding: 10px 14px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; } .kb-chip.on { border-color: var(--accent); }
  .kb-result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 10px; } .kb-result b { font-size: 22px; }
  .kb-rr { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; border: 10px solid #c7c7cc; }
  .kb-result.red .kb-rr { border-color: #e5484d; } .kb-result.ok .kb-rr { border-color: #58cc02; } .kb-result.dark .kb-rr { border-color: #1d6b2e; } .kb-result.gold .kb-rr { border-color: #f2b705; color: #a66b00; }
  .kb-rb { display: flex; gap: 8px; width: 100%; } .kb-rb .tb { flex: 1; height: 44px; }
  .kb-ed { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; } .kb-edh { display: flex; align-items: center; gap: 10px; } .kb-edh .tb { width: auto; padding: 0 14px; }
  .kb-edb { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; } @media (max-width: 860px) { .kb-edb { grid-template-columns: 1fr; } }
  .kb-tree { padding: 14px; display: flex; flex-direction: column; gap: 4px; } .kb-tree > b { margin-bottom: 6px; }
  .kb-tc, .kb-tb { display: flex; align-items: center; gap: 6px; padding: 8px 8px; border-radius: 10px; cursor: pointer; } .kb-tc { font-weight: 700; margin-top: 6px; } .kb-tb { margin-left: 14px; font-size: 14px; }
  .kb-tc span, .kb-tb span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kb-tc.on, .kb-tb.on { background: var(--accent-soft); }
  .kb-tc .tb, .kb-tb .tb { width: 28px !important; height: 28px; opacity: .55; } .kb-tc:hover .tb, .kb-tb:hover .tb { opacity: 1; }
  .kb-addb { margin-left: 14px; border: 1.5px dashed var(--line); background: none; color: var(--muted); border-radius: 10px; padding: 8px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
  .kb-addc { margin-top: 10px; }
  .kb-form { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; } .kb-fh { display: flex; align-items: center; gap: 8px; font-size: 17px; }
  .kb-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; } .kb-f input, .kb-f textarea, .kb-arow input:not([type=checkbox]), .kb-docsel { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--panel); color: var(--text); font: inherit; font-weight: 400; resize: vertical; }
  .kb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .kb-row .tb { width: auto; padding: 0 12px; } .kb-arow input:not([type=checkbox]) { flex: 1; min-width: 120px; }
  .kb-ok { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; } .kb-mcell { flex: 1; display: flex; gap: 4px; align-items: center; } .kb-mcell input { flex: 1; }
  .kb-qe { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  /* Kurs-Editor (Kapitel → Lernblöcke → Aufgaben) */
  .kb-edt { display: flex; flex-direction: column; line-height: 1.2; } .kb-edt small { color: var(--muted); font-size: 12px; } .kb-edt b { font-size: 18px; }
  .kb-save.dirty { box-shadow: inset 0 0 0 3px #ff9f2e; }
  .kb-meta { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } .kb-mg { display: flex; flex-direction: column; gap: 10px; }
  @media (max-width: 860px) { .kb-meta { grid-template-columns: 1fr; } }
  .kb-st { display: flex; gap: 6px; flex-wrap: wrap; } .kb-st .chip { height: 38px; padding: 0 14px; font-weight: 600; }
  .kb-tree { padding: 0; gap: 12px; background: none; }
  .kb-cc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 3px #0000000d; }
  .kb-cc.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .kb-cch { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 2px 2px 2px 0; } .kb-cch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kb-num { flex: 0 0 auto; min-width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .kb-mini { flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; opacity: .6; }
  .kb-mini:hover { background: var(--hover); opacity: 1; color: var(--text); } .kb-mini svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; pointer-events: none; }
  .kb-stones { display: flex; flex-direction: column; gap: 6px; }
  .kb-stone { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--hover); cursor: pointer; border: 2px solid transparent; }
  .kb-stone.on { border-color: var(--accent); background: var(--accent-soft); }
  .kb-sic { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--panel); color: var(--accent); display: flex; align-items: center; justify-content: center; }
  .kb-sic svg, .kb-uchips svg, .kb-uic svg, .kb-pt svg, .kv-ty svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .kb-sic svg { width: 20px; height: 20px; }
  .kb-sx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .kb-sx b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kb-uchips { display: flex; gap: 3px; flex-wrap: wrap; } .kb-uchips small { color: var(--muted); font-size: 11.5px; }
  .kb-uchips i { width: 20px; height: 20px; border-radius: 6px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; } .kb-uchips svg { width: 13px; height: 13px; }
  .kb-adds, .kb-addc, .kb-plus { border: 1.5px dashed var(--line); background: none; color: var(--muted); border-radius: 12px; padding: 9px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .kb-adds:hover, .kb-addc:hover, .kb-plus:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .kb-addc { padding: 12px; margin: 0; }
  .kb-form { padding: 22px; gap: 14px; }
  .kb-empty { padding: 30px 10px; text-align: center; } .kb-empty b { font-size: 18px; }
  .kb-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
  .kb-units { display: flex; flex-direction: column; gap: 8px; }
  .kb-uc { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; } .kb-uc.open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .kb-uch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; } .kb-uch > div { display: flex; flex-direction: column; min-width: 0; } .kb-uch small { color: var(--muted); font-size: 12px; }
  .kb-uic { flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; } .kb-uic svg { width: 20px; height: 20px; }
  .kb-chev { color: var(--muted); width: 20px; text-align: center; }
  .kb-ub { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 16px; border-top: 1px solid var(--line); padding-top: 14px; } .kb-ub:empty { display: none; }
  .kb-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .kb-pt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .kb-pt svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--c); color: #fff; box-sizing: border-box; }
  .kb-pt:hover { border-color: var(--c); transform: translateY(-1px); }
  .kb-arow.ok input { border-color: #58cc02 !important; }
  .kb-okb { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); font: inherit; font-size: 12.5px; padding: 7px 10px; cursor: pointer; } .kb-okb.on { background: #e8f8dc; color: #2f7a12; border-color: #58cc02; font-weight: 700; }
  .kb-prow { flex-wrap: nowrap; } .kb-mcell { border: 1px solid var(--line); border-radius: 10px; padding: 3px 3px 3px 4px; background: var(--panel); min-width: 0; }
  .kb-mcell input { border: 0 !important; padding: 6px 6px; background: none; color: var(--text); font: inherit; min-width: 0; outline: none; } .kb-mcell .kb-mimg { max-height: 60px; margin: 0; }
  /* Lernansicht (Vollbild) */
  .kv { position: fixed; inset: 0; z-index: 5000; background: var(--panel); display: flex; flex-direction: column; }
  .kv-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
  .kv-x { width: 40px !important; }
  .kv-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 54px; color: var(--muted); font-size: 15px; }
  .kv-prog { flex: 1; height: 16px; border-radius: 10px; background: var(--hover); overflow: hidden; } .kv-prog i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); transition: width .5s cubic-bezier(.2,.8,.2,1); box-shadow: inset 0 -4px 0 #0000001a; }
  .kv-tok { display: flex; align-items: center; gap: 5px; font-weight: 800; color: #3d8bfd; font-size: 16px; } .kv-tok svg { width: 24px; height: 24px; fill: #cfe2ff; stroke: #3d8bfd; stroke-width: 1.6; stroke-linejoin: round; }
  .kv-flame { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; } .kv-flame svg { width: 26px; height: 26px; fill: #d6d6d6; stroke: #a8a8a8; stroke-width: 1.4; transition: transform .5s, fill .5s; }
  .kv-flame.lv1 svg { fill: #ffb366; stroke: #e07b00; transform: scale(.9); } .kv-flame.lv2 svg { fill: #ff9f2e; stroke: #d96800; transform: scale(1.08); } .kv-flame.lv3 svg { fill: #ff7a1a; stroke: #d94e00; transform: scale(1.25); }
  .kv-flame.gold svg { fill: #ffd34d; stroke: #c99400; filter: drop-shadow(0 0 4px #ffcf3399); }
  .kv-flame svg { transform-origin: 50% 90%; } .kv-flame.lv1 svg, .kv-flame.lv2 svg, .kv-flame.lv3 svg { animation: kvFlick 1.6s ease-in-out infinite; }
  .kv-flame.flare svg { animation: kvFlare 1s cubic-bezier(.2,.8,.2,1), kvFlick 1.6s ease-in-out 1s infinite; }
  @keyframes kvFlick { 0%, 100% { rotate: 0deg; scale: 1; } 30% { rotate: -3deg; scale: 1.03 .97; } 60% { rotate: 2deg; scale: .98 1.04; } }
  @keyframes kvFlare { 0% { scale: .4; filter: brightness(1.6); } 50% { scale: 1.7; filter: drop-shadow(0 0 12px #ffb000); } 100% { scale: 1; } }
  .kv-main { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: 34px 18px 60px; }
  .kv-stage { width: min(760px, 100%); display: flex; flex-direction: column; gap: 16px; } .kv-stage.in { animation: kvIn .35s ease-out; }
  @keyframes kvIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
  .kv-head { display: flex; align-items: center; justify-content: space-between; } .kv-head small { color: var(--muted); }
  .kv-ty { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c); font-size: 14px; } .kv-ty svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--c); color: #fff; box-sizing: border-box; }
  .kv-title { margin: 0; font-size: 26px; } .kv-title:empty { display: none; }
  .kv-body { display: flex; flex-direction: column; gap: 14px; } .kv-btn { height: 50px; font-size: 16px; font-weight: 700; }
  .kv-body .kb-media { max-height: 60vh; }
  .kv-res { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 10px; position: relative; }
  .kv-ring { width: 210px; height: 210px; transform: rotate(-90deg); overflow: visible; } .kv-ring circle { fill: none; stroke-width: 14; } .kv-ring .bg { stroke: var(--hover); } .kv-ring .fg { stroke: #b5b5b5; stroke-linecap: round; }
  .kv-res.red .fg { stroke: #e5484d; } .kv-res.ok .fg { stroke: #58cc02; } .kv-res.dark .fg { stroke: #1d6b2e; } .kv-res.gold .fg { stroke: #f2b705; filter: drop-shadow(0 0 6px #ffcf33); }
  .kv-pct { position: absolute; top: 88px; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .kv-word { font-size: 26px; opacity: 0; transform: scale(.6); transition: .45s cubic-bezier(.3,1.6,.5,1); } .kv-res.shown .kv-word { opacity: 1; transform: none; }
  .kv-res.gold.shown .kv-ring { animation: kvPop .6s cubic-bezier(.3,1.6,.5,1); } @keyframes kvPop { 50% { scale: 1.08; } }
  .kv-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; } .kv-stats span { display: flex; flex-direction: column; min-width: 110px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; }
  .kv-stats small { color: var(--muted); font-size: 12px; } .kv-stats b { font-size: 20px; font-variant-numeric: tabular-nums; } .kv-earn { color: #3d8bfd; }
  .kv-fl { min-height: 1.2em; font-weight: 600; color: #d96800 !important; }
  .kv-btns { display: flex; gap: 10px; width: min(420px, 100%); } .kv-btns .tb { flex: 1; height: 50px; font-size: 16px; font-weight: 700; }
  @media (max-width: 600px) { .kv-top { gap: 8px; padding: 10px; } .kv-time { min-width: 40px; font-size: 13px; } .kv-title { font-size: 21px; } }
  /* Serie: Flammen-Stufen, gold, Stern */
  .streakb.f1 svg { transform: scale(.85); } .streakb.f2 svg { transform: scale(1.05); } .streakb.f3 svg { transform: scale(1.25); }
  .streakb.on.f2 svg { fill: #ff9f2e; } .streakb.on.f3 svg { fill: #ff7a1a; stroke: #d94e00; }
  .streakb.gold { color: #c99400 !important; } .streakb.gold svg { fill: #ffd34d !important; stroke: #c99400 !important; filter: drop-shadow(0 0 3px #ffcf3388); }
  .sk-grid i { position: relative; display: flex; align-items: center; justify-content: center; }
  .sk-grid i.on.f1 { background: #ffd6a6; } .sk-grid i.on.f2 { background: #ffab4d; } .sk-grid i.on.f3 { background: #f2700f; }
  .sk-grid i.gold, .sk-leg i.gold { background: linear-gradient(135deg, #ffe27a, #f2b705) !important; box-shadow: inset 0 0 0 1px #c99400; }
  .sk-grid i svg { width: 70%; height: 70%; fill: #fff; stroke: #a66b00; stroke-width: 1.2; }
  .sk-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); } .sk-leg span { display: flex; align-items: center; gap: 4px; } .sk-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
  .sk-leg i.f1 { background: #ffd6a6; } .sk-leg i.f2 { background: #ffab4d; } .sk-leg i.f3 { background: #f2700f; }
  /* Lernpfad: Kapitel-Banner, Weg, aktueller Stein */
  .kb-path { gap: 40px; }
  .kb-ch { --cc: var(--accent); }
  .kb-chh { align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-radius: 18px; background: var(--cc); box-shadow: 0 5px 0 color-mix(in srgb, var(--cc) 70%, #000); position: relative; }
  .kb-chh > div { display: flex; flex-direction: column; } .kb-chh small { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700; } .kb-chh b { font-size: 19px; }
  .kb-chp { display: flex; align-items: center; gap: 4px; font-weight: 800; background: #ffffff33; padding: 4px 10px; border-radius: 12px; } .kb-chp svg { width: 16px; height: 16px; fill: #fff; }
  .kb-chbar { flex-basis: 100%; height: 6px; border-radius: 4px; background: #ffffff40; overflow: hidden; display: block; } .kb-chbar i { display: block; height: 100%; background: #fff; border-radius: 4px; }
  .kb-nodes { position: relative; gap: 30px; padding: 10px 0 30px; width: 100%; }
  .kb-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
  .kb-lway { fill: none; stroke: var(--line); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 16; }
  .kb-ldone { fill: none; stroke: color-mix(in srgb, var(--cc) 55%, transparent); stroke-width: 8; stroke-linecap: round; }
  .kb-node { z-index: 1; transform: translateX(var(--x, 0)); }
  .kb-node.done:not(.red):not(.ok):not(.dark):not(.gold) { background: color-mix(in srgb, var(--cc) 20%, var(--panel)); color: color-mix(in srgb, var(--cc) 80%, #000); }
  .kb-node.cur { width: 96px; height: 96px; background: var(--cc); color: #fff; box-shadow: 0 7px 0 color-mix(in srgb, var(--cc) 65%, #000), inset 0 0 0 5px #ffffff30; }
  .kb-node.cur::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 4px solid var(--cc); opacity: .6; animation: kbPulse 1.6s ease-out infinite; }
  @keyframes kbPulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
  .kb-node.cur .kb-ic svg { width: 40px; height: 40px; animation: kbWob 2.4s ease-in-out infinite; } @keyframes kbWob { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
  .kb-node.cur .kb-cap { top: 108px; }
  /* Beschriftung unter dem Stein: Titel (max. 2 Zeilen) und Unterzeile untereinander – nichts liegt mehr übereinander */
  .kb-cap { position: absolute; top: 94px; left: 50%; translate: -50% 0; width: 180px; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
  .kb-cap .kb-nl, .kb-cap .kb-nw { position: static; }
  .kb-cap .kb-nl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
  .kb-nodes > .kb-node { margin-bottom: 50px; }
  .kb-nodes > .kb-node { margin-bottom: 44px; } .kb-nodes > .kb-node.cur { margin-top: 40px; margin-bottom: 56px; }
  .kb-bub { position: absolute; bottom: calc(100% + 14px); left: 50%; translate: -50% 0; background: var(--panel); color: var(--cc); border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; animation: kbBob 1.2s ease-in-out infinite; }
  .kb-bub::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--line); }
  @keyframes kbBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .kb-npr { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); rotate: -90deg; pointer-events: none; } .kb-npr circle { fill: none; stroke: var(--cc); stroke-width: 5; stroke-linecap: round; }
  /* Flammen-Moment nach einem Lernblock */
  .kv-flmo { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(3px); animation: kvFade .3s ease-out; cursor: pointer; transition: background .5s, opacity .5s; }
  .kv-flmo.out { background: transparent; backdrop-filter: none; } .kv-flmo.out b, .kv-flmo.out small { opacity: 0; transition: opacity .3s; }
  .kv-flmo b { font-size: 26px; animation: kvUp .5s .3s both cubic-bezier(.3,1.5,.5,1); } .kv-flmo small { color: var(--muted); font-size: 15px; font-weight: 600; animation: kvUp .5s .45s both; }
  @keyframes kvFade { from { opacity: 0; } } @keyframes kvUp { from { opacity: 0; transform: translateY(14px); } }
  .kv-flbig { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; animation: kvPopIn .55s cubic-bezier(.3,1.6,.5,1); }
  .kv-flbig svg { width: 100%; height: 100%; fill: #ff9f2e; stroke: #d96800; stroke-width: 1; transform-origin: 50% 90%; animation: kvFlick 1.4s ease-in-out infinite; transition: fill .4s, stroke .4s, scale .4s; filter: drop-shadow(0 6px 14px #ff8a0055); }
  .kv-flbig.lv1 svg { scale: .78; } .kv-flbig.lv2 svg { scale: .92; } .kv-flbig.lv3 svg { scale: 1.06; fill: #ff7a1a; }
  .kv-flbig.gold svg { fill: #ffd34d; stroke: #c99400; filter: drop-shadow(0 0 18px #ffcf33aa); }
  .kv-flbig.ember svg { fill: #d6d6d6; stroke: #a8a8a8; scale: .45; filter: none; }
  .kv-flmo.wait .kv-flbig svg { animation-duration: 3s; }
  .kv-flbig.burst svg { animation: kvBurst .7s cubic-bezier(.3,1.6,.5,1), kvFlick 1.4s ease-in-out .7s infinite; }
  @keyframes kvBurst { 0% { transform: scale(.6); } 45% { transform: scale(1.35); filter: drop-shadow(0 0 30px #ffb000) brightness(1.25); } 100% { transform: scale(1); } }
  @keyframes kvPopIn { from { transform: scale(0) translateY(40px); opacity: 0; } }
  .kv-flbig i { position: absolute; left: 50%; bottom: 22%; width: 7px; height: 7px; border-radius: 50%; background: #ffb000; opacity: 0; }
  .kv-flbig.burst i, .kv-flmo.keep .kv-flbig i { animation: kvSpark 1.1s ease-out forwards; }
  .kv-flbig.gold i { background: #ffd34d; }
  .kv-flbig i:nth-child(2) { --dx: -60px; --dy: -90px; animation-delay: .05s !important; } .kv-flbig i:nth-child(3) { --dx: 55px; --dy: -100px; animation-delay: .12s !important; }
  .kv-flbig i:nth-child(4) { --dx: -30px; --dy: -130px; animation-delay: .2s !important; } .kv-flbig i:nth-child(5) { --dx: 35px; --dy: -125px; animation-delay: .08s !important; }
  .kv-flbig i:nth-child(6) { --dx: -80px; --dy: -50px; animation-delay: .16s !important; } .kv-flbig i:nth-child(7) { --dx: 78px; --dy: -55px; animation-delay: .24s !important; }
  .kv-flbig i:nth-child(8) { --dx: 5px; --dy: -150px; animation-delay: .3s !important; } .kv-flbig i:nth-child(9) { --dx: -10px; --dy: -110px; animation-delay: .36s !important; }
  .kv-flmo.keep .kv-flbig i { animation-delay: .7s; }
  @keyframes kvSpark { 0% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, -100px)) scale(.3); } }
  .kv-res { position: relative; }
  /* Vokabeltrainer */
  .kv-hint { margin: -6px 0 0; }
  .kv-card { perspective: 1400px; cursor: pointer; width: 100%; } .kv-card.small { cursor: default; }
  .kv-cin { position: relative; min-height: 260px; transition: transform .55s cubic-bezier(.3,1.2,.4,1); transform-style: preserve-3d; } .kv-card.small .kv-cin { min-height: 160px; }
  .kv-card.flip .kv-cin { transform: rotateY(180deg); }
  .kv-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; border-radius: 22px; background: var(--field); color: var(--text); border: 2px solid var(--line); border-bottom-width: 6px; font-size: 30px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
  .kv-face.back { transform: rotateY(180deg); background: color-mix(in srgb, var(--accent) 10%, var(--field)); border-color: var(--accent); }
  .kv-face .kb-mimg { max-height: 220px; max-width: 100%; background: #fff; border-radius: 10px; padding: 6px; }
  .kv-rate { display: flex; gap: 10px; } .kv-rate .tb { flex: 1; height: 54px; font-size: 16px; font-weight: 700; }
  .kv-no { background: color-mix(in srgb, #e5484d 14%, var(--panel)) !important; color: #e5484d !important; border-color: #e5484d !important; } .kv-yes { background: color-mix(in srgb, #58cc02 16%, var(--panel)) !important; color: #3f9a0a !important; border-color: #58cc02 !important; }
  .kv-type { height: 54px; border: 2px solid var(--line); border-radius: 14px; padding: 0 16px; font: inherit; font-size: 20px; background: var(--panel); color: var(--text); }
  .kv-type.right { border-color: #58cc02; background: #e8f8dc; color: var(--text); background: color-mix(in srgb, #58cc02 14%, var(--field)); } .kv-type.wrong { border-color: #e5484d; background: color-mix(in srgb, #e5484d 14%, var(--field)); color: var(--text); }
  .kv-fb p { margin: 0; font-size: 16px; font-weight: 600; } .kv-fb .kv-ok { color: #2f7a12; } .kv-fb .kv-bad { color: #c62828; } .kv-fb { display: flex; flex-direction: column; gap: 10px; }
  .kv-sol { padding: 16px; border-radius: 16px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--field)); color: var(--text) !important; text-align: center; font-size: 24px; font-weight: 700; color: #1d1d1f; }
  .kv-round { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 30px; } .kv-round b { font-size: 24px; }
  .kv-mini { width: 120px; height: 120px; rotate: -90deg; } .kv-mini circle { fill: none; stroke-width: 10; } .kv-mini .bg { stroke: var(--hover); } .kv-mini .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s; }
  .kv-tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
  .kv-tests button { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 14px; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
  .kv-tests button:hover { border-color: var(--accent); transform: translateY(-2px); } .kv-tests svg { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--accent); color: #fff; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
  .kv-tests b { font-size: 16px; } .kv-tests small { color: var(--muted); font-size: 13px; }
  .kv-reset { align-self: center; width: auto !important; padding: 0 16px; }
  .kv-docth { max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #fff; align-self: center; }
  /* Popups: Zeichenfläche, Dokument wählen */
  .kb-pop { position: fixed; inset: 0; z-index: 99500; background: #0006; display: flex; align-items: center; justify-content: center; padding: 16px; animation: kvFade .2s; }
  .kb-popc { background: var(--panel); color: var(--text); border-radius: 20px; padding: 18px; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px #0005; }
  .kb-poph { display: flex; align-items: center; gap: 8px; font-size: 18px; } .kb-popf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .kb-popf .tb, .kb-padbar .tb { width: auto; padding: 0 14px; }
  .kb-padbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .kb-pcols, .kb-psz { display: flex; gap: 6px; }
  .kb-pc { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--panel); background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; } .kb-pc.on { box-shadow: 0 0 0 2px var(--accent); }
  .kb-ps { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; justify-content: center; cursor: pointer; } .kb-ps i { border-radius: 50%; background: var(--text); display: block; } .kb-ps.on { border-color: var(--accent); background: var(--accent-soft); }
  .kb-pe.on { background: var(--accent-soft); border-color: var(--accent); }
  .kb-canvas { width: 100%; aspect-ratio: 760 / 420; border-radius: 14px; border: 1px solid var(--line); background: #fff repeating-linear-gradient(0deg, transparent 0 39px, #eef1f5 39px 40px); touch-action: none; cursor: crosshair; }
  .kb-dsrch { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 42px; } .kb-dsrch svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; } .kb-dsrch input { flex: 1; border: 0; background: none; font: inherit; color: var(--text); outline: none; }
  .kb-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .kb-dcard { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
  .kb-dcard:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .kb-dcard b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kb-dcard small { color: var(--muted); font-size: 12px; }
  .kb-dth { aspect-ratio: 4 / 3; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #3d8bfd; }
  .kb-dth img { width: 100%; height: 100%; object-fit: contain; } .kb-dth svg { width: 40%; height: 40%; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .kb-dnew .kb-dth { background: var(--accent-soft); border: 2px dashed var(--accent); color: var(--accent); }
  .kb-dform { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; } .kb-dmodes { display: flex; gap: 6px; flex-wrap: wrap; } .kb-dmodes .chip { height: 36px; padding: 0 14px; }
  .kb-docbox { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
  .kb-docth { flex: 0 0 120px; height: 90px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #3d8bfd; }
  .kb-docth img { width: 100%; height: 100%; object-fit: contain; } .kb-docth svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .kb-docx { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; } .kb-docx small { color: var(--muted); }
  /* Ziehen & Ablegen */
  .kb-grip { flex: 0 0 auto; width: 18px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--muted); opacity: .5; cursor: grab; touch-action: none; }
  .kb-grip svg { width: 16px; height: 16px; fill: currentColor; } .kb-cch:hover .kb-grip, .kb-stone:hover .kb-grip, .kb-uch:hover .kb-grip, .kb-prow:hover .kb-grip { opacity: 1; }
  @media (hover: hover) and (pointer: fine) { .kb-cch, .kb-stone, .kb-uch { cursor: grab; } }
  .kb-ghost { position: fixed; z-index: 99600; pointer-events: none; opacity: .92; box-shadow: 0 14px 40px #0004; margin: 0 !important; transition: none; }
  .kb-dragsrc { opacity: .3; }
  .kb-dropline { height: 4px; border-radius: 3px; background: var(--accent); margin: -1px 4px; flex: none; box-shadow: 0 0 0 3px var(--accent-soft); }
  .kb-rows { display: flex; flex-direction: column; gap: 8px; } .kb-row .sp, .kb-poph .sp, .kb-popf .sp, .kb-padbar .sp, .kb-uch .sp, .kb-cch .sp { flex: 1; }
  .kb-cc .kb-num { background: var(--cc, var(--accent)); }
  .kb-vhead { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 40px 0 62px; font-size: 12px; color: var(--muted); font-weight: 600; }
  .kb-addrow { gap: 8px; } .kb-addrow .kb-plus { flex: 1; }
  .kb-edb > * { min-width: 0; } .kb-prow .kb-mcell { flex: 1 1 0; }
  .kb-mcell .kb-mimg { background: #fff; }
  /* Hub: Abos (Personen + Kurse), Wiederholen, Tokens, Liga und Shop */
  .hb-subs { width: 180px; align-items: stretch; } .hb-subs-list { align-items: stretch; } .hb-sub { flex-direction: row; gap: 8px; text-align: left; }
  .hb-subs-wf { display: flex; flex-direction: column; gap: 6px; } .hb-subs-wf small { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 6px; }
  .hb-subw { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 10px; cursor: pointer; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; } .hb-subw:hover { background: var(--hover); }
  .hb-subw i { flex: 0 0 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; } .hb-subw i svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
  .hb-subw span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  @media (max-width: 860px) { .hb-subs { width: auto; } .hb-subs-wf { flex-direction: row; overflow-x: auto; } .hb-subw { flex: 0 0 160px; } }
  .hb-done { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: #58cc02; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px #0003; }
  .hb-done svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .hb-lockb { position: absolute; left: 50%; translate: -50% 0; top: 8px; padding: 2px 8px; border-radius: 6px; background: #e5484d; color: #fff; font-size: 11.5px; font-weight: 700; }
  .hb-wal { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; margin: 0 auto; }
  .hb-wal[hidden] { display: none; } .hb-wal:hover { border-color: #3d8bfd; } .hb-wal b { color: #3d8bfd; } .hb-wal span { color: var(--muted); font-size: 13px; }
  .hb-wal svg, .hb-buy svg, .hb-lgbadge svg { width: 18px; height: 18px; fill: #cfe2ff; stroke: #3d8bfd; stroke-width: 1.6; stroke-linejoin: round; }
  .hb-lg { gap: 16px; max-width: 980px; } .hb-lgh .tb { width: auto; padding: 0 14px; }
  .hb-lgme { padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .hb-lgbadge { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #d9a066, #a8642c); }
  .hb-lgbadge svg { width: 36px; height: 36px; fill: #ffffff55; stroke: #fff; } .hb-lgbadge.lg1 { background: linear-gradient(135deg, #e0e0e0, #9a9a9a); } .hb-lgbadge.lg2 { background: linear-gradient(135deg, #ffe27a, #e0a800); }
  .hb-lgbadge.lg3 { background: linear-gradient(135deg, #b8f0ec, #3fa7a0); } .hb-lgbadge.lg4 { background: linear-gradient(135deg, #b9d4ff, #5b6cff); }
  .hb-lgx { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; } .hb-lgx b { font-size: 22px; } .hb-lgx small { color: var(--muted); }
  .hb-lgnum { display: flex; gap: 10px; } .hb-lgnum span { display: flex; flex-direction: column; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 84px; } .hb-lgnum small { color: var(--muted); font-size: 12px; } .hb-lgnum b { font-size: 20px; }
  .hb-lgcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } @media (max-width: 860px) { .hb-lgcols { grid-template-columns: 1fr; } }
  .hb-lgt, .hb-shop { padding: 16px; display: flex; flex-direction: column; gap: 10px; } .hb-lgt header, .hb-shop header { display: flex; justify-content: space-between; align-items: baseline; } .hb-lgt header small, .hb-shop header small { color: var(--muted); }
  .hb-lgt ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .hb-lgt li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; } .hb-lgt li:hover { background: var(--hover); } .hb-lgt li.me { background: var(--accent-soft); }
  .hb-rk { width: 26px; text-align: center; font-weight: 800; color: var(--muted); } .hb-rk.r1 { color: #e0a800; } .hb-rk.r2 { color: #8a8a8a; } .hb-rk.r3 { color: #b0703a; }
  .hb-lgn { flex: 1; display: flex; flex-direction: column; min-width: 0; } .hb-lgn small { color: var(--muted); font-size: 12px; } .hb-lgp { color: #3d8bfd; font-variant-numeric: tabular-nums; }
  .hb-si { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
  .hb-sic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: #64748b; }
  .hb-sic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .hb-sic.freeze { background: #3d8bfd; } .hb-sic.pro_week { background: #8b5cf6; } .hb-sic.voucher50 { background: #ec4899; } .hb-sic.market { background: #14b8a6; }
  .hb-sx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .hb-sx small { color: var(--muted); font-size: 12.5px; } .hb-sx em { font-style: normal; font-size: 12px; color: #2f7a12; font-weight: 600; }
  .hb-buy { width: auto !important; padding: 0 12px; display: flex; align-items: center; gap: 4px; font-weight: 700; } .hb-buy:disabled { opacity: .45; }
  /* Flammen-Assets: klein / mittel / groß mit eigenen Animationen */
  svg.fl { overflow: visible; }
  .fl path, .fl circle { transform-box: fill-box; transform-origin: 50% 100%; }
  .fl .fo { fill: var(--fo); stroke: var(--fs); stroke-width: .7; stroke-linejoin: round; }
  .fl .fm { fill: var(--fm); } .fl .fi { fill: var(--fi); } .fl .fe { fill: var(--fm); opacity: 0; transform-origin: 50% 50%; }
  .fl1 { --fo: #ffb04d; --fs: #e07b00; --fi: #ffe7a3; }
  .fl2 { --fo: #ff922e; --fs: #d96300; --fm: #ffbd4a; --fi: #fff0b8; }
  .fl3 { --fo: #ff6a1a; --fs: #c94400; --fm: #ffa133; --fi: #fff2c2; }
  .fl.gold, .gold > .fl, .gold > svg.fl { --fo: #ffc933; --fs: #b88600; --fm: #ffe27a; --fi: #fffbe8; }
  .fl0 .fo { fill: none; stroke: var(--muted); stroke-width: 1.5; }
  .fl1 .fo { animation: flSway 2.6s ease-in-out infinite; } .fl1 .fi { animation: flBreath 2.6s ease-in-out infinite; }
  .fl2 .fo { animation: flFlick 1.5s ease-in-out infinite; } .fl2 .fm { animation: flFlick 1.1s ease-in-out infinite reverse; } .fl2 .fi { animation: flBreath 1.3s ease-in-out infinite; }
  .fl3 .fo { animation: flRoar 1s ease-in-out infinite; } .fl3 .fm { animation: flFlick .8s ease-in-out infinite reverse; } .fl3 .fi { animation: flBreath .9s ease-in-out infinite; }
  .fl3 .fe { animation: flEmber 1.8s ease-out infinite; } .fl3 .fe:nth-of-type(2) { animation-delay: .6s; } .fl3 .fe:nth-of-type(3) { animation-delay: 1.2s; }
  .fl.gold .fo { filter: drop-shadow(0 0 1.5px #ffcf33); }
  @keyframes flSway { 0%, 100% { transform: rotate(0) scaleY(1); } 50% { transform: rotate(-3deg) scaleY(1.04); } }
  @keyframes flFlick { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.97, 1.06) skewX(-3deg); } 60% { transform: scale(1.03, .97) skewX(2deg); } }
  @keyframes flRoar { 0%, 100% { transform: scale(1, 1) skewX(0); } 20% { transform: scale(.95, 1.09) skewX(-4deg); } 45% { transform: scale(1.04, .95) skewX(3deg); } 70% { transform: scale(.98, 1.06) skewX(-2deg); } }
  @keyframes flBreath { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.12, .9); } }
  @keyframes flEmber { 0% { opacity: 0; transform: translateY(3px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-7px); } }
  @media (prefers-reduced-motion: reduce) { .fl path, .fl circle { animation: none !important; } }
  .streakb svg.fl, .kv-flame svg.fl { fill: none; stroke: none; filter: none; } .streakb.f1 svg.fl, .streakb.f2 svg.fl, .streakb.f3 svg.fl { transform: none; }
  .streakb svg.fl { width: 22px !important; height: 22px !important; } .sk-flame svg.fl { width: 44px; height: 44px; fill: none; stroke: none; }
  .dstreak svg.fl { width: 16px; height: 16px; vertical-align: -3px; }
  .kv-flame svg.fl { width: 30px; height: 30px; transform: none !important; animation: none; }
  .kv-flame.flare svg.fl { animation: kvFlare 1s cubic-bezier(.2,.8,.2,1); }
  .kv-flbig svg.fl { fill: none; stroke: none; scale: 1 !important; filter: drop-shadow(0 6px 14px #ff8a0055); }
  .kv-flbig.ember svg.fl { scale: .6 !important; filter: none; }
  /* Geburtsdatum (birthField in js/datumzeit.js) */
  .bf { display: flex; flex-direction: column; gap: 6px; } .bf-row { display: flex; gap: 8px; }
  .bf-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); } .bf-d, .bf-m { width: 74px; } .bf-y { width: 104px; }
  .bf-f input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); color: var(--text); font: inherit; font-size: 21px; font-weight: 600; text-align: center; letter-spacing: .04em; font-variant-numeric: tabular-nums; user-select: text; }
  .bf-f input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .bf-f input::placeholder { color: var(--muted); opacity: .45; font-weight: 500; }
  .bf-info { min-height: 17px; font-size: 13px; color: var(--muted); } .bf.bad .bf-info { color: var(--danger, #c62828); } .bf.bad input { border-color: var(--danger, #c62828); }
  .hb-birth-card { padding: 18px 20px; border-radius: 16px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; }
  .hb-bl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .hb-bd { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--panel); color: var(--text); }
  .hb-bb { display: flex; gap: 8px; align-items: center; } .hb-bb .tb { width: auto; padding: 0 14px; height: 36px; }
  .st-pgrip { position: absolute; left: 3px; top: 3px; width: 18px; height: 14px; border-radius: 4px; background: var(--accent); cursor: move; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 4px; box-sizing: border-box; }
  .st-pgrip b { display: block; height: 1.5px; background: #fff; border-radius: 1px; }
  .st-bar:not(.st-on) .sb-panel > *, .st-bar:not(.st-on) .sb-size input, .st-bar:not(.st-on) .sb-title input { pointer-events: none; }
  .st-drop { position: absolute; border: 2px dashed var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); pointer-events: none; z-index: 4; }
  .lib-ctx { z-index: 99800 !important; }
  .st-irs { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); cursor: nwse-resize; z-index: 2; opacity: .85; }
  .st-ghost { position: fixed; z-index: 99600; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: flex; align-items: center; justify-content: center; pointer-events: none; border-radius: 12px; }
  .st-ghost svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; } .st-ghost i { width: 24px; height: 24px; border-radius: 50%; }
  .st-o { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .st-o input[type=range] { accent-color: var(--accent); }
  .st-o .st-name { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; background: var(--panel); color: var(--text); font: inherit; }
  .st-size { color: var(--muted); } .st-size b { color: var(--text); }
  .st-pbtns { display: flex; gap: 6px; flex-wrap: wrap; } .st-pbtns .tb { width: auto; padding: 0 12px; height: 34px; }
  .st-tut { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 99700; width: min(440px, calc(100vw - 32px)); padding: 16px 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
  .st-tut small { color: var(--muted); } .st-tut p { margin: 0; font-size: 14px; line-height: 1.45; } .st-tut-b { display: flex; align-items: center; gap: 8px; margin-top: 6px; } .st-tut-b .tb { width: auto; padding: 0 14px; height: 34px; }
  .st-leave { z-index: 99500; } .st-leave-card { padding: 18px 20px; border-radius: 16px; width: min(460px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; }
  .st-leave-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; } .st-leave-btns .tb { width: auto; padding: 0 14px; height: 36px; } .st-leave-btns .tb:disabled { opacity: .45; cursor: not-allowed; }
  /* iPad/Handy: Gerät oben in voller Breite, Elemente und Leisten-Einstellungen darunter – nichts liegt über den Leisten */
  .st-sheettabs { display: none; }
  .st.st-compact .st-head { flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding: 8px 10px; scrollbar-width: none; } .st.st-compact .st-head::-webkit-scrollbar { display: none; }
  .st.st-compact .st-head .st-hg { flex: none; } .st.st-compact .st-l { display: none; } .st.st-compact .st-head .tb { flex: none; }
  .st.st-compact .st-main { flex-wrap: wrap; align-content: stretch; }
  .st.st-compact .st-stage { order: -1; flex: 1 1 100%; min-height: 0; padding: 8px; gap: 6px; }
  .st.st-compact.st-has-sel .st-stage { flex-basis: 100%; height: 58%; flex-grow: 0; }
  .st.st-compact .st-list, .st.st-compact .st-props { position: static; flex: 1 1 0; width: auto; height: 42%; border: 0; border-top: 1px solid var(--line); box-shadow: none; }
  .st.st-compact .st-props { border-left: 1px solid var(--line); }
  .st.st-compact .st-hint { font-size: 12px; }
  .st.st-narrow.st-has-sel .st-sheettabs { display: flex; gap: 6px; order: 0; flex: 1 1 100%; padding: 6px 10px; background: var(--panel); border-top: 1px solid var(--line); }
  .st.st-narrow.st-has-sel .st-list, .st.st-narrow.st-has-sel .st-props { flex-basis: 100%; height: calc(42% - 44px); border-left: 0; border-top: 0; }
  .st.st-narrow[data-sheet="list"] .st-props, .st.st-narrow[data-sheet="props"] .st-list { display: none; }
  .st.st-narrow .st-hint { display: none; }
  /* beim Ziehen: Kopf, Elemente und Einstellungen ausblenden – freie Sicht auf das Gerät */
  .st .st-head, .st .st-list, .st .st-props, .st .st-sheettabs, .st .st-hint { transition: opacity .15s; }
  .st.st-dragging .st-head, .st.st-dragging .st-list, .st.st-dragging .st-props, .st.st-dragging .st-sheettabs, .st.st-dragging .st-hint, .st.st-dragging .st-blab { opacity: 0; pointer-events: none; }
  .ls-devs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
  .ls-dev { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
  .ls-dev small { color: var(--muted); font-size: 11px; } .ls-dev.on { border-color: var(--accent); background: var(--accent-soft); }
  .ls-std { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin: 2px 0 12px; } .ls-std b { color: var(--text); font-weight: 600; }
  .ls-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; } .ls-h small { color: var(--muted); font-size: 12px; }
  .ls-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
  .ls-slot { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .ls-slot.on { border-color: var(--accent); background: var(--accent-soft); }
  .ls-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: left; padding: 2px; }
  .ls-pick small { color: var(--muted); font-size: 11px; } .ls-acts { display: flex; gap: 4px; } .ls-acts .tb { height: 30px; width: auto; padding: 0 10px; } .ls-acts .tb:not(.wide) { width: 30px; padding: 0; }
  .ls-add { border: 1.5px dashed var(--line); border-radius: 14px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; min-height: 70px; }
  .le-mh { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px 2px; } .le-bm.on { color: var(--accent); }
  /* Layout-Wahl */
  .lw-card { width: min(860px, 100%); margin: auto; padding: 20px 22px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); overflow: auto; }
  .lw-card h2 { margin: 4px 0 0; font-size: 20px; } .lw-card .note { margin: 0; }
  .lw-steps { display: flex; gap: 6px; } .lw-steps i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); } .lw-steps i.on { background: var(--accent); }
  .lw-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 6px; }
  .lw-set, .lw-mode { display: flex; flex-direction: column; gap: 5px; align-items: stretch; text-align: left; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
  .lw-set svg { width: 100%; height: auto; max-height: 96px; } .lw-set small, .lw-mode small { color: var(--muted); font-size: 12px; line-height: 1.35; }
  .lw-set em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
  .lw-set.on, .lw-mode.on { border-color: var(--accent); background: var(--accent-soft); }
  .lw-own { border-style: dashed; }
  .lw-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
  .lw-foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .lw-foot .sp { flex: 1; } .lw-foot .tb { width: auto; padding: 0 16px; }
  .lw-setrow .row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .lw-setrow .tb { width: auto; padding: 0 12px; }
  /* Eigene Toolleisten */
  .cbar { position: fixed; z-index: 24; display: none; gap: 4px; padding: 6px; align-items: center; }
  .cbar.open { display: flex; }
  .cbar[data-side="left"] { left: 10px; top: 50%; transform: translateY(-50%); flex-direction: column; }
  .cbar[data-side="right"] { right: 10px; top: 50%; transform: translateY(-50%); flex-direction: column; }
  .cbar[data-side="top"] { top: 74px; left: 50%; transform: translateX(-50%); }
  .cbar[data-side="bottom"] { bottom: calc(76px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); }
  .cbar .tb { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
  .cbar .tb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .cbar .tb.on { background: var(--accent-soft); color: var(--accent); }
  .cbar-name { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 2px 4px; }
  .cbar[data-side="left"] .cbar-name, .cbar[data-side="right"] .cbar-name { writing-mode: vertical-rl; transform: rotate(180deg); }
  .cbar .cbar-x { width: 28px !important; height: 28px !important; color: var(--muted); }
  .cbar-grip { display: flex; gap: 2px; padding: 4px; cursor: grab; touch-action: none; } .cbar.vert .cbar-grip { flex-direction: row; } .cbar:not(.vert) .cbar-grip { flex-direction: column; }
  .cbar-grip i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }
  .cbar .cbar-name svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cbar-tg svg { width: 22px; height: 22px; }
  .cb-icons { display: flex; flex-wrap: wrap; gap: 6px; } .cb-ic { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .cb-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .cb-ic small { font-size: 10px; } .cb-ic.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  .cb-row label small { font-size: 11px; }
  .cbar-tg { position: relative; } .cbar-tg .cbar-l { position: absolute; right: 2px; bottom: 1px; font-size: 9px; font-weight: 800; color: var(--accent); }
  .cbar-tg.on { background: var(--accent-soft); color: var(--accent); }
  .cb-card { width: min(720px, 100%); margin: auto; padding: 18px 20px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 32px); overflow: auto; }
  .cb-card h2 { margin: 0; font-size: 19px; } .cb-card h4 { margin: 8px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .cb-row { display: flex; gap: 10px; flex-wrap: wrap; } .cb-row label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); flex: 1; min-width: 120px; }
  .cb-row input, .cb-row select { height: 36px; border-radius: 9px; padding: 0 8px; font: inherit; color: var(--text); user-select: text; }
  .cb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .cb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
  .cb-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cb-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  /* Flow */
  #flowStack { position: fixed; right: 14px; top: 74px; z-index: 85; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 28px)); }
  .flow-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; animation: flowIn .25s ease; transition: opacity .25s, transform .25s; }
  .flow-card.out { opacity: 0; transform: translateX(30px); } @keyframes flowIn { from { opacity: 0; transform: translateY(-8px); } }
  .flow-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .flow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .flow-t small { color: var(--muted); font-size: 11.5px; } .flow-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flow-act { display: flex; gap: 4px; } .flow-act .tb { width: auto; padding: 0 10px; height: 32px; } .flow-act .flow-x { width: 30px; padding: 0; }
  .flow-panel { width: min(460px, 100%); margin: auto; padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 32px); overflow: auto; }
  .flow-panel header { display: flex; align-items: center; gap: 10px; } .flow-panel header div { display: flex; flex-direction: column; } .flow-panel header small { color: var(--muted); } .flow-panel .sp { flex: 1; } .flow-px { width: 32px !important; }
  .flow-panel h4 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .flow-devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .flow-dev { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
  .flow-dev svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; } .flow-dev small { color: var(--muted); font-size: 11px; }
  .flow-dev.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
  .flow-what { display: flex; flex-direction: column; gap: 6px; }
  .flow-opt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; } .flow-opt:hover { border-color: var(--accent); } .flow-opt small { color: var(--muted); }
  .flow-text { display: flex; gap: 6px; } .flow-text textarea { flex: 1; border-radius: 10px; padding: 8px 10px; font: inherit; resize: vertical; user-select: text; } .flow-text .tb { width: auto; padding: 0 14px; }
  .flow-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; } .flow-drop.over { border-color: var(--accent); color: var(--accent); } .flow-drop .tb { width: auto; padding: 0 10px; display: inline-flex; }
  .flow-me { font-size: 13px; color: var(--muted); margin-top: 6px; } .flow-rename { display: flex; gap: 6px; margin-top: 6px; } .flow-rename input { flex: 1; height: 32px; border-radius: 8px; padding: 0 8px; font: inherit; user-select: text; } .flow-rename .tb { width: auto; padding: 0 10px; }
  .fl-seg { display: flex; gap: 4px; } .fl-seg .chip { flex: 1; }
  .fl-what { margin: 2px 0 4px; font-size: 13.5px; color: var(--text); } .fl-dnd { width: 34px !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; } .fl-dnd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; } .fl-dnd.on { color: #b26a00; }
  .flow-dev small { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .flow-panel header { gap: 8px; }
  .fl-intro { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; } .fl-intro ol { margin: 6px 0 8px; padding-left: 20px; } .fl-intro li { margin: 3px 0; } .fl-intro .tb { width: auto; padding: 0 14px; height: 32px; }
  .flow-devs { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 4px; }
  .flow-dev { min-width: 96px; flex: none; position: relative; }
  .flow-dev.busy { opacity: .6; pointer-events: none; } .flow-dev.busy::after { content: ""; position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: flSpin .8s linear infinite; }
  @keyframes flSpin { to { transform: rotate(360deg); } }
  .flow-back.fl-pull .flow-dev { border-style: dashed; }
  .flow-people { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 4px; }
  .flow-person { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; padding: 4px; border-radius: 12px; }
  .flow-person:hover { background: var(--hover); } .flow-person.blocked { opacity: .4; }
  .flow-person .flow-av, .flow-offer .flow-av { width: 48px; height: 48px; font-size: 18px; }
  .fp-near { font-style: normal; font-size: 10px; color: var(--accent); font-weight: 700; }
  .flow-offer { align-items: flex-start; } .flow-offer .flow-t { gap: 6px; } .flow-offer .flow-t > span { font-size: 13.5px; line-height: 1.35; }
  .fo-prev { max-width: 100%; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); background: #fff; object-fit: contain; align-self: flex-start; }
  .flow-offer .flow-act { align-items: center; } .flow-offer .sp { flex: 1; } .fo-clock { width: 32px !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
  .fo-clock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .flow-more summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 8px; } .flow-more > * + * { margin-top: 8px; }
  .flow-rename span { font-size: 12.5px; color: var(--muted); align-self: center; }
  .flow-dnd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); } .flow-dnd .tb { width: auto; padding: 0 10px; height: 30px; }
  /* Eigene Handschrift */
  .hw-back { position: fixed; inset: 0; z-index: 90; background: var(--backdrop); display: flex; padding: 12px; }
  .hw-card { margin: auto; width: min(1100px, 100%); height: min(860px, 100%); background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
  .hw-card header { display: flex; align-items: center; gap: 10px; } .hw-card header > div { display: flex; flex-direction: column; } .hw-card header small { color: var(--muted); } .hw-card .sp, .hw-foot .sp { flex: 1; }
  .hw-x { width: 34px !important; } .hw-card .note { margin: 0; }
  .hw-area { flex: 1; min-height: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--paper, #fff); }
  .hw-cv { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
  .hw-foot { display: flex; gap: 8px; flex-wrap: wrap; } .hw-foot .tb { width: auto; padding: 0 14px; }
  .hw-seg { display: flex; gap: 4px; margin-top: 6px; } .hw-seg .chip { flex: 1; }
  .hw-gh { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-right: 8px; }
  .hw-intro { font-size: 13px; line-height: 1.45; }
  .hw-res { display: flex; gap: 8px; flex-wrap: wrap; } .hw-out { flex: 1; min-width: 200px; height: 40px; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; user-select: text; } .hw-res .tb { width: auto; padding: 0 14px; }
  .hw-btns { display: flex; gap: 6px; } .hw-btns .tb { flex: 1; }
  .scr-ask .scr-btns { display: flex; gap: 6px; margin-top: 8px; } .scr-ask .tb { width: auto; padding: 0 14px; height: 32px; } .tp-finger small { color: var(--muted); font-size: 11px; }
  .tool-pop .hw-reset { margin-top: 6px; } .hw-setrow { margin-top: 10px; } .hw-setrow .row { display: flex; flex-wrap: wrap; gap: 6px; } .hw-setrow .tb { width: auto; padding: 0 12px; } .tp-finger { margin-top: 8px; }
  .hw-tools { display: flex; gap: 4px; margin-right: 6px; } .hw-tools .tb { width: 40px !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
  .hw-tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .hw-tools .tb.on { background: var(--accent-soft); color: var(--accent); } .hw-tools .tb:disabled { opacity: .35; }
  .tool-pop .tp-row { margin-top: 8px; }
  .hw-stat { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; margin: 10px 0 8px; } .hw-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; } .hw-bar i { display: block; height: 100%; background: var(--accent); }
  .tool-pop .hw-prev { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; } .tool-pop .hw-soon { font-size: 11.5px; margin: 8px 0 0; }
  /* Profilkarte */
  .pc-card { position: relative; width: min(400px, 100%); margin: auto; padding: 20px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
  .pc-x { position: absolute; top: 10px; right: 10px; width: 32px !important; }
  .pc-top { display: flex; align-items: center; gap: 14px; } .pc-av { width: 64px; height: 64px; font-size: 24px; flex: none; }
  .pc-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pc-names b { font-size: 18px; } .pc-names small { color: var(--muted); }
  .pc-st { font-size: 12px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); } .pc-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a8a49c; }
  .pc-st-online::before { background: #2e9e5b; } .pc-st-abwesend::before { background: #eda100; } .pc-st-beschaeftigt::before { background: #d64545; }
  .pc-head { margin: 0; font-weight: 600; } .pc-bio { margin: 0; white-space: pre-wrap; color: var(--text); font-size: 13.5px; }
  .pc-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; } .pc-facts dt { color: var(--muted); } .pc-facts dd { margin: 0; }
  .pc-act { display: flex; gap: 8px; flex-wrap: wrap; } .pc-act .tb { flex: 1; }
  .dm-prof { cursor: pointer; } .dm-head b.dm-prof:hover { text-decoration: underline; }
  .tm-item { position: relative; } .tm-hide { display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); background: var(--panel); }
  .tm-item:hover .tm-hide { display: flex; } .tm-hide:hover { color: var(--text); background: var(--hover); } body.touchui .tm-item.on .tm-hide { display: flex; }
  /* Aktivität & Nachweis */
  .act-card { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 16px 18px; border-radius: 16px; margin: auto; }
  .act-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .act-card header .sp { flex: 1; } .act-card header .tb { width: 34px; }
  .act-range { display: flex; gap: 4px; } .act-card h4 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .act-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
  .act-tiles > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; } .act-tiles small { color: var(--muted); font-size: 12px; } .act-tiles b { font-size: 20px; font-variant-numeric: tabular-nums; }
  .act-split { display: flex; height: 18px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--panel); } .act-split i { display: block; min-width: 3px; }
  .act-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; } .act-legend span { display: inline-flex; align-items: center; gap: 6px; } .act-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .act-legend small { color: var(--muted); }
  .act-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .act-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; min-width: 0; }
  .act-col small { position: absolute; bottom: -17px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--muted); }
  .act-stack { display: flex; flex-direction: column; gap: 1px; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 0; } .act-stack i { display: block; min-height: 1px; }
  .act-col:hover .act-stack { filter: brightness(1.08); }
  .act-table { width: 100%; font-size: 13px; } .act-table td:nth-child(n+2), .act-table th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
  .sk-act { margin-top: 2px; }
  /* Modul Listen */
  .ls-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .ls-head .sp, .ls-donehead .sp { flex: 1; } .ls-head .tb { width: auto; padding: 0 12px; }
  .ls-title { display: flex; flex-direction: column; min-width: 0; } .ls-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ls-title small, .ls-card small { color: var(--muted); font-size: 12px; }
  .ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .ls-card { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
  .ls-card:hover { border-color: var(--accent); }
  .ls-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; } .ls-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
  .ls-add { display: flex; gap: 6px; margin-bottom: 8px; } .ls-in { flex: 1; min-width: 0; height: 38px; border-radius: 10px; padding: 0 10px; font: inherit; user-select: text; } .ls-add .tb { width: 40px; }
  .ls-items { display: flex; flex-direction: column; gap: 2px; }
  .ls-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; } .ls-item:hover { background: var(--hover); }
  .ls-t { flex: 1; min-width: 0; word-break: break-word; } .ls-item.done .ls-t { text-decoration: line-through; color: var(--muted); }
  .ls-by { color: var(--muted); font-size: 11px; } .ls-x { width: 28px !important; height: 28px; opacity: .45; } .ls-item:hover .ls-x { opacity: 1; }
  .ls-chk { position: relative; width: 22px; height: 22px; flex: none; cursor: pointer; } .ls-chk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .ls-chk span { position: absolute; inset: 0; border: 2px solid var(--muted); border-radius: 6px; }
  .ls-chk input:checked + span { background: var(--accent); border-color: var(--accent); }
  .ls-chk input:checked + span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .ls-donehead { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; } .ls-donehead .tb { width: auto; padding: 0 10px; font-size: 12.5px; }
  .tm-time { font-size: 46px; font-weight: 700; text-align: center; padding: 8px 0; font-variant-numeric: tabular-nums; }
  .tm-time.done { color: var(--danger); }
  .tm-custom { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
  .tm-custom label { display: flex; align-items: center; gap: 4px; }
  .tm-custom input { width: 58px; height: 38px; padding: 0 6px; user-select: text; }
  .calc-mode { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
  .calc-mode .sp { flex: 1; }
  .calc-keys.sci { grid-template-columns: repeat(5, 1fr); }
  .calc-keys.sci .calc-k { height: 42px; font-size: 15px; }
  .calc-k.fn { background: var(--field); color: var(--accent); }

  /* ---------- Normale Oberfläche (Shell) ---------- */
  #home { position: fixed; inset: 0; z-index: 70; background: var(--paper); display: flex; flex-direction: row; }
  .snav { width: 92px; flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 6px; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
  .snav-logo { font-weight: 800; font-size: 12px; text-align: center; padding: 4px 0 10px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .snav-item { position: relative; border: 0; background: transparent; border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-size: 11px; color: var(--muted); transition: transform .08s; }
  .snav-item svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .snav-item:hover { background: var(--hover); }
  .snav-item.on { color: var(--accent); background: var(--accent-soft); }
  .snav-item.draw { margin-top: auto; color: var(--text); } .snav-item.draw2 { color: var(--text); }
  .snav-item .bdg, .bellb .bdg { position: absolute; top: 4px; right: 14px; background: var(--danger); color: #fff; border-radius: 999px; font-size: 10px; font-style: normal; padding: 0 5px; line-height: 16px; }
  .bellb .bdg { top: 2px; right: 2px; }
  .scontent { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
  .snav-more { position: fixed; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); width: min(300px, calc(100vw - 16px)); max-height: 70dvh; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; border-radius: 16px; box-shadow: 0 12px 40px #0005; }
  .snav-more button { border: 0; background: transparent; color: var(--text); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 11.5px; cursor: pointer; }
  .snav-more button.on { color: var(--accent); background: var(--accent-soft); }
  .snav-more svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  /* Größe der Oberfläche (Einstellungen › Erscheinungsbild) */
  #home, #settings, #store, #dlg, .fm-back > .panel { zoom: var(--ui-zoom, 1); }
  .ap-zoom { display: flex; align-items: center; gap: 10px; max-width: 560px; } .ap-zoom input { flex: 1; accent-color: var(--accent); }
  .ap-zoom small { font-size: 12px; color: var(--muted); } .ap-zoom b { font-size: 19px; color: var(--muted); } .ap-zoom output { min-width: 52px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
  .ap-zoom .tb { width: auto; padding: 0 12px; height: 32px; }
  .shead { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
  /* Handy/schmal: Kopfzeile seitlich wischbar statt abgeschnitten */
  @media (max-width: 760px) { .shead { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .shead::-webkit-scrollbar { display: none; } .shead > * { flex-shrink: 0; } .shead #shellTitle { white-space: nowrap; } }
  .shead #shellTitle { font-size: 18px; }
  .shead .sp { flex: 1; }
  .spage { flex: 1; overflow: auto; padding: 16px 20px 30px; }
  #pageNotes { flex: 1; min-height: 0; display: flex; }
  #pageNotes[hidden] { display: none !important; }
  .pagebody { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .pagebody.sh { max-width: none; }
  .pagebody.og { max-width: none; }
  .shell-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .shell-cols h3 { margin: 0 0 8px; }
  .dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-width: 1200px; }
  .dhello { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .dhello > div { display: flex; flex-direction: column; }
  .drow.sug b { color: #8a6200; }
  .dabs { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: #ffe4e4; margin-bottom: 8px; } .dabs b { color: #b3261e; } .dabs small { color: var(--muted); }
  .dabs-btns { display: flex; gap: 8px; flex-wrap: wrap; }
  .nset { display: flex; flex-direction: column; gap: 4px; } .nset .tptoggle { padding: 6px 2px; }
  .sp-abs { position: absolute; left: 4px; bottom: 3px; font-size: 11px; font-weight: 800; color: #b3261e; background: #ffe4e4; border-radius: 8px; padding: 0 5px; cursor: help; }
  .dabs-go { width: 100%; height: 48px; font-size: 16px; }
  .ab-card { width: min(640px, 100%); } .ab-top { display: flex; align-items: center; } .ab-top h3 { flex: 1; margin: 0; }
  .ab-tabs { align-self: flex-start; } .ab-body { display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
  .ab-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ab-r { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 2px solid var(--line); border-radius: 14px; background: transparent; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; color: var(--text); }
  .ab-r span { font-size: 26px; } .ab-r:hover { background: var(--hover); } .ab-r.on { border-color: var(--accent); background: var(--accent-soft); }
  .ab-mode { align-self: flex-start; } .ab-quick { display: flex; gap: 6px; flex-wrap: wrap; }
  .ab-range { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .ab-list { display: flex; flex-direction: column; gap: 6px; }
  .ab-item { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "ic tx st" "ic ac ac"; gap: 4px 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
  .ab-ic { grid-area: ic; font-size: 24px; } .ab-item > div { grid-area: tx; min-width: 0; } .ab-item b { display: block; } .ab-item small { color: var(--muted); font-size: 12.5px; }
  .ab-st { grid-area: st; font-size: 12px; font-weight: 800; color: var(--c); border: 1.5px solid var(--c); border-radius: 999px; padding: 2px 9px; }
  .ab-act { grid-area: ac; display: flex; gap: 6px; flex-wrap: wrap; } .ab-act:empty { display: none; } .ab-act .tb { width: auto; padding: 0 10px; height: 32px; }
  @media (max-width: 560px) { .ab-reasons { grid-template-columns: repeat(2, 1fr); } }
  .nt-year { height: 34px; width: auto !important; flex: none; } .nt-terms { align-self: flex-start; margin-bottom: 8px; }
  .nt-warn { background: #fff3cd; border: 1px solid #e6a100; color: #5c4400; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: 14px; }
  .nt-zt, .nt-abi { width: 100%; border-collapse: collapse; margin-top: 8px; } .nt-zt th, .nt-zt td, .nt-abi th, .nt-abi td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
  .nt-zt th, .nt-abi th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .nt-zt td.good b { color: #2e7d32; } .nt-zt td.bad b { color: var(--danger); }
  .nt-abi-head { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  .nt-abi-big { grid-row: span 2; display: flex; flex-direction: column; align-items: center; padding-right: 16px; border-right: 1px solid var(--line); }
  .nt-abi-big b { font-size: 46px; line-height: 1.1; color: var(--accent); } .nt-abi-big small, .nt-abi-blocks small { color: var(--muted); font-size: 12px; }
  .nt-abi-blocks { display: flex; gap: 24px; } .nt-abi-blocks b { display: block; font-size: 20px; }
  .nt-abi-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; } .nt-abi-checks .ok { color: #2e7d32; } .nt-abi-checks .bad { color: var(--danger); }
  .nt-abi tr.nt-lkrow td:first-child b::after { content: " LK"; font-size: 10px; color: #fff; background: var(--accent); border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: middle; }
  .nt-hj { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; width: 74px; opacity: .55; } .nt-hj.on { opacity: 1; border-color: var(--accent); }
  .nt-hj.unter { border-color: var(--danger); } .nt-hj input { width: 40px; border: 0; height: 30px; text-align: center; background: transparent; font-weight: 700; user-select: text; }
  .nt-hj button { border: 0; background: transparent; width: 30px; height: 30px; cursor: pointer; color: var(--accent); font-weight: 800; }
  .nt-ex { display: flex; gap: 6px; align-items: center; } .nt-ex .exp { width: 46px; height: 30px; border-radius: 8px; text-align: center; font-weight: 700; user-select: text; }
  .nt-mode { font-size: 13px; display: flex; gap: 6px; align-items: center; } .nt-mode select { height: 32px; border-radius: 8px; }
  .nt-who { border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--text); padding: 0; } .nt-who:hover b { color: var(--accent); }
  .sd-card { width: min(860px, 100%); } .sd-sum { display: flex; gap: 10px; flex-wrap: wrap; }
  .sd-sum > div { background: var(--hover); border-radius: 10px; padding: 8px 14px; display: flex; flex-direction: column; min-width: 90px; } .sd-sum small { color: var(--muted); font-size: 11px; } .sd-sum b { font-size: 20px; }
  .sd-quick { border: 1.5px dashed var(--accent); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
  .sd-quick input, .sd-quick select { height: 36px; border-radius: 8px; padding: 0 8px; user-select: text; } .sd-v { width: 80px; } .sd-n { flex: 1; min-width: 160px; }
  .sd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .sd-cols h4, .sd-card h4 { margin: 6px 0; }
  .sd-row { display: flex; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); } .sd-row > span:nth-child(2) { flex: 1; min-width: 0; }
  .sd-row b { display: block; font-size: 14px; } .sd-row small { color: var(--muted); font-size: 12px; } .sd-date { font-weight: 800; color: var(--muted); width: 44px; }
  .sd-sub { min-width: 34px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; padding: 0 6px; }
  .sd-sub.ok { background: #e2f4e8; color: #2e7d32; } .sd-sub.in { background: var(--accent-soft); color: var(--accent); } .sd-sub.no { background: #ffe4e4; color: #b3261e; }
  .sd-abs { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
  @media (max-width: 700px) { .sd-cols { grid-template-columns: 1fr; } .nt-abi-head { grid-template-columns: 1fr; } .nt-abi-big { border: 0; padding: 0; } .nt-abi { font-size: 13px; } .nt-hj { width: 64px; } }
  /* ---------- Art+ ---------- */
  .pb, .pb-sl { display: flex; flex-direction: column; gap: 8px; } .pb-top { display: flex; align-items: center; gap: 6px; } .pb-top .sp { flex: 1; }
  .pb-name { height: 34px; border-radius: 8px; padding: 0 10px; font-weight: 700; flex: 1; user-select: text; }
  .pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
  .pb-card { position: relative; display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 12px; padding: 4px 6px 6px; background: var(--panel); cursor: pointer; font: inherit; color: var(--text); text-align: left; }
  .pb-card canvas { width: 100%; height: 54px; } .pb-card.on { border-color: var(--accent); background: var(--accent-soft); } .pb-card span { display: flex; gap: 6px; align-items: center; font-size: 13px; }
  .pb-card i { font-style: normal; font-size: 10px; color: #fff; background: #9150c8; border-radius: 4px; padding: 0 4px; }
  .pb-ed { position: absolute; right: 6px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--hover); display: flex !important; align-items: center; justify-content: center; opacity: 0; transition: opacity .1s; }
  .pb-card:hover .pb-ed { opacity: 1; }
  .pb-prev { width: 100%; height: 90px; background: var(--hover); border-radius: 12px; }
  .pb-row { display: grid; grid-template-columns: 120px 1fr 56px; gap: 8px; align-items: center; font-size: 13px; } .pb-row em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
  .pb-row select { height: 32px; border-radius: 8px; grid-column: span 2; }
  .pb-tg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; } .pb-tg label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
  .fr-wheel { display: flex; justify-content: center; } .fr-wheel canvas { width: min(240px, 100%); aspect-ratio: 1; height: auto; touch-action: none; cursor: crosshair; }
  .fr-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; } .fr-cur { width: 38px; height: 38px; border-radius: 10px; box-shadow: inset 0 0 0 1px #0003; flex: none; }
  .fr-hex { flex: 1; height: 36px; border-radius: 8px; padding: 0 10px; font-family: ui-monospace, monospace; user-select: text; }
  .fr-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }
  .fr-h button { border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--accent); } .fr-h span { cursor: text; }
  .fr-sw { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; } .fr-s { width: 26px; height: 26px; border-radius: 7px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px #0003; } .fr-s:hover { transform: scale(1.12); }
  .sy-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
  .sy-m { display: flex; gap: 8px; align-items: center; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); }
  .sy-m span { font-size: 20px; width: 24px; text-align: center; color: #9150c8; } .sy-m.on { border-color: #9150c8; background: color-mix(in srgb, #9150c8 12%, transparent); }
  .rf-tabs { display: flex; gap: 6px; margin-bottom: 6px; overflow-x: auto; } .rf-t { flex: none; width: 46px; height: 46px; border-radius: 8px; border: 2px solid var(--line); padding: 0; overflow: hidden; background: var(--hover); cursor: pointer; font-size: 20px; }
  .rf-t img { width: 100%; height: 100%; object-fit: cover; } .rf-t.on { border-color: var(--accent); }
  .rf-view { position: relative; height: 320px; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 16px 16px; cursor: grab; touch-action: none; }
  .rf-view.empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); cursor: pointer; background: var(--hover); border: 2px dashed var(--line); }
  .rf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: center; user-select: none; pointer-events: none; }
  .rf-tools { margin-top: 6px; align-items: center; } .rf-tools input[type=range] { flex: 1; }
  .lw-card { width: min(760px, 100%); } .lw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; padding: 2px; }
  .lw-f { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; background: transparent; cursor: pointer; font: inherit; color: var(--text); }
  .lw-f:hover { border-color: var(--accent); background: var(--accent-soft); } .lw-f b { font-size: 13px; } .lw-f small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; }
  .lw-shape { height: 60px; display: flex; align-items: center; justify-content: center; } .lw-shape i { display: block; background: #fff; box-shadow: 0 1px 4px #0004; border-radius: 2px; }
  .lw-own { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; } .lw-own label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
  .lw-own input { width: 100px; height: 36px; border-radius: 8px; padding: 0 8px; user-select: text; } .lw-own b { width: 100%; }
  .icow { display: inline-flex; vertical-align: -0.18em; } .ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .ab-r .ico { width: 28px; height: 28px; stroke-width: 1.7; } .ab-ic .ico { width: 24px; height: 24px; stroke-width: 1.7; color: var(--accent); }
  .acc-item span .ico, .acc-item .icow .ico { width: 18px; height: 18px; } .fm-ic .ico { width: 20px; height: 20px; }
  /* ---------- Tabellen ---------- */
  .tb2 { display: flex; flex-direction: column; gap: 6px; min-height: 480px; height: 100%; }
  .tb2-top { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .tb2-top .sp { flex: 1; }
  .tb2-name { height: 34px; border-radius: 8px; padding: 0 10px; font-weight: 700; min-width: 180px; user-select: text; }
  .tb2-fx { display: flex; gap: 8px; align-items: center; } .tb2-cell { width: 54px; text-align: center; color: var(--muted); }
  .tb2-in { flex: 1; height: 34px; border-radius: 8px; padding: 0 10px; font-family: ui-monospace, Consolas, monospace; user-select: text; }
  .tb2-wrap { flex: 1; min-height: 260px; max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--panel); }
  .tb2-grid { border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
  .tb2-grid th { position: sticky; top: 0; background: var(--hover); font-weight: 600; font-size: 12px; color: var(--muted); padding: 4px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 2; }
  .tb2-grid tbody th { left: 0; top: auto; z-index: 1; min-width: 38px; }
  .tb2-grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3px 7px; height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; cursor: cell; }
  .tb2-grid td.num { text-align: right; font-variant-numeric: tabular-nums; } .tb2-grid td.bold { font-weight: 700; } .tb2-grid td.err { color: var(--danger); }
  .tb2-grid td.sel { background: var(--accent-soft); } .tb2-grid td.cur { box-shadow: inset 0 0 0 2px var(--accent); }
  .tb2-edit { width: 100%; height: 22px; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; user-select: text; }
  .tb2-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .tb2-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
  .tb2-chart { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--panel); } .tb2-svg { width: 100%; height: auto; color: var(--text); }
  .tb2-ch { display: flex; gap: 10px; align-items: center; } .tb2-ch span { flex: 1; font-size: 12px; color: var(--muted); } .tb2-ch i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; }
  .tb2-start { max-width: 760px; } .tb2-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 18px; }
  .tb2-t { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 2px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); cursor: pointer; font: inherit; color: var(--text); }
  .tb2-t:hover { border-color: var(--accent); background: var(--accent-soft); } .tb2-t small { color: var(--muted); font-size: 12px; }
  .tbsw { width: 26px; height: 26px; border-radius: 50%; border: 0; margin: 0 2px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px #0003; flex: none; align-self: center; }
  .tbsw.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
  #tbSizes { display: none; } body.touchui #tbSizes { display: flex; align-items: center; }
  .tbsz { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .tbsz i { display: block; border-radius: 50%; background: currentColor; } .tbsz.on { background: var(--accent-soft); color: var(--accent); }
  /* Tablet-Modus: große Knöpfe, Leiste bleibt sichtbar */
  body.touchui #toolbar .tb { width: 46px; height: 46px; } body.touchui #toolbar .tb.wide { width: auto; min-width: 46px; padding: 0 10px; } body.touchui #toolbar .tb svg { width: 24px; height: 24px; }
  body.touchui .tbsw { width: 32px; height: 32px; } body.touchui .tbsz { width: 42px; height: 42px; }
  body.touchui #toolbar { gap: 4px; padding: 6px 8px; }
  body.touchui #toolbar.dock-top, body.touchui #toolbar.dock-bottom { left: 10px; right: 10px; transform: none; max-width: none; flex-wrap: nowrap; justify-content: flex-start;
    justify-content: safe center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x; }
  body.touchui #toolbar.dock-top::-webkit-scrollbar, body.touchui #toolbar.dock-bottom::-webkit-scrollbar { display: none; }
  body.touchui #toolbar > * { flex-shrink: 0; }
  /* iPad / Tablet: größere Leisten beim Bearbeiten (Werkzeuge, Auswahl, Textformat, Ansicht) – besser sichtbar und treffbar */
  @media (min-width: 761px) {
    body.touchui #toolbar .tb { width: 52px; height: 52px; } body.touchui #toolbar .tb.wide { min-width: 52px; } body.touchui #toolbar .tb svg { width: 27px; height: 27px; }
    body.touchui #toolbar { padding: 7px 10px; gap: 5px; box-shadow: 0 6px 22px rgba(0,0,0,.16); }
    body.touchui .tbsw { width: 36px; height: 36px; } body.touchui .tbsz { width: 46px; height: 46px; }
    body.touchui #selBar { padding: 6px; gap: 4px; } body.touchui #selBar .tb { height: 50px; min-width: 50px; } body.touchui #selBar .tb svg { width: 26px; height: 26px; } body.touchui #selBar .tb.wide { font-size: 15px; padding: 0 14px; }
    body.touchui #fmtBar { padding: 8px 10px; gap: 6px; } body.touchui #fmtBar .tb, body.touchui #fmtBar button { min-height: 44px; min-width: 44px; font-size: 15px; } body.touchui #fmtBar svg { width: 24px; height: 24px; }
    body.touchui #fmtBar select, body.touchui #fmtBar input { min-height: 40px; font-size: 15px; }
    body.touchui #viewbar .tb { min-width: 48px; height: 48px; } body.touchui #viewbar svg { width: 24px; height: 24px; }
    body.touchui #toolPanel .tb, body.touchui #toolPop .tb { min-height: 44px; } body.touchui .tpchips .chip { min-height: 36px; padding: 0 12px; font-size: 14px; }
  }
  /* Handy: Werkzeugleiste immer als eine waagerechte, wischbare Zeile oben, Ansichtsleiste unten ebenso */
  @media (max-width: 760px) {
    body.touchui #toolbar { top: calc(6px + env(safe-area-inset-top)) !important; bottom: auto !important; left: 6px !important; right: 6px !important; transform: none !important; width: auto !important; max-width: none !important;
      flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; justify-content: flex-start; scrollbar-width: none; }
    body.touchui #toolbar::-webkit-scrollbar { display: none; }
    body.touchui #toolbar .tb { width: 42px; height: 42px; }
    #viewbar { left: 6px !important; right: 6px !important; transform: none !important; max-width: none !important; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: none; bottom: calc(6px + env(safe-area-inset-bottom)) !important; padding: 5px !important; }
    #viewbar { min-height: 56px; align-items: center; left: auto !important; right: 8px !important; bottom: calc(18px + env(safe-area-inset-bottom)) !important; width: auto !important; }
    #viewbar > #gridBtn, #viewbar > #zoomOut, #viewbar > #zoomText, #viewbar > #zoomIn, #viewbar > #fitBtn, #viewbar > #bellBtn, #viewbar > #saveState { display: none !important; }
    #viewbar > #vbMini { display: flex !important; order: 99; }   /* Speicher-Status als Symbol statt Text */
    #viewbar > .tb, #viewbar > button { min-width: 46px; height: 48px; flex: none; } #viewbar svg { width: 24px !important; height: 24px !important; } #viewbar #zoomText { min-width: 56px; font-size: 14px; }
    #viewbar #saveState { min-width: 0; font-size: 11px; }
    #viewbar::-webkit-scrollbar { display: none; }
  }
  body.touchui #toolbar #tbHandle { width: 24px; }
  /* iPad-Standardleiste: Menü, Name, Stift, Auswahl, Marker, Radierer, Objekt-Radierer, 4 Farben, Zurück, Vor, Exportieren.
     Alles andere ist auf dem iPad aus (eigene Anordnung im Layout-Editor bleibt möglich: .le-custom). */
  body.touchui #toolbar:not(.le-custom) > :not(#menuBtn):not(#title):not(#toolBtns):not(#objBtns):not(#tbColors):not(#undoBtn):not(#redoBtn):not(#exportBtn):not(#flowBtn):not(#imageBtn) { display: none !important; }
  body.touchui #toolbar:not(.le-custom) > #toolBtns, body.touchui #toolbar:not(.le-custom) > #objBtns { display: contents; }
  body.touchui #toolbar:not(.le-custom) [data-tool] { display: none; }
  /* Standard (iPad): Menü, Name, Lineal, Stift, Auswahl, Marker, Radierer, Objekt-Radierer, Laser, Text, Bild, Farben, Vor/Zurück, Teilen, Flow */
  body.touchui #toolbar:not(.le-custom) #rulerBtn { order: 2; margin-left: 10px; }
  body.touchui #toolbar:not(.le-custom) [data-tool=pen] { display: flex; order: 3; }
  body.touchui #toolbar:not(.le-custom) [data-tool=select] { display: flex; order: 4; }
  body.touchui #toolbar:not(.le-custom) [data-tool=marker] { display: flex; order: 5; }
  body.touchui #toolbar:not(.le-custom) [data-tool=eraser] { display: flex; order: 6; }
  body.touchui #toolbar:not(.le-custom) [data-tool=objeraser] { display: flex; order: 7; }
  body.touchui #toolbar:not(.le-custom) [data-tool=laser] { display: flex; order: 8; }
  body.touchui #toolbar:not(.le-custom) [data-tool=text] { display: flex; order: 9; }
  body.touchui #toolbar:not(.le-custom) > #menuBtn { order: 0; } body.touchui #toolbar:not(.le-custom) > #title { order: 1; }
  body.touchui #toolbar:not(.le-custom) > #imageBtn { order: 10; }
  body.touchui #toolbar:not(.le-custom) > #tbColors { order: 11; margin: 0 10px; }
  body.touchui #toolbar:not(.le-custom) > #undoBtn { order: 12; } body.touchui #toolbar:not(.le-custom) > #redoBtn { order: 13; }
  body.touchui #toolbar:not(.le-custom) > #exportBtn { order: 14; margin-left: 10px; }
  body.touchui #toolbar:not(.le-custom) > #flowBtn { order: 15; }   /* Flow ganz rechts neben Teilen */
  body.touchui #toolbar.dock-top:not(.le-custom), body.touchui #toolbar.dock-bottom:not(.le-custom) { justify-content: safe center; }
  /* etwas Abstand nach oben: oben in der Mitte liegt die Multitasking-Taste von iPadOS */
  @media (pointer: coarse) { .ah-grip[data-side=top] { top: calc(env(safe-area-inset-top, 0px) + 22px) !important; } }
  body.touchui #toolbar #title { width: 130px; min-width: 0; }
  body.touchui #tbColors { display: flex; align-items: center; gap: 2px; }
  body.touchui .tbsw { width: 34px; height: 34px; margin: 0 3px; } body.touchui #tbSizes .tbsz { width: 36px; height: 42px; }
  /* Dicken-Regler (wie in Notiz-Apps): Schieber und Wert neben den drei Schnellwahlen */
  .tbslide { display: none; align-items: center; gap: 6px; padding: 0 4px 0 6px; }
  body.touchui .tbslide { display: flex; }
  .tbslide input[type=range] { width: 104px; height: 40px; touch-action: none; }
  .tbslide .tbs-val { min-width: 42px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  /* ---------- Präsentationen ---------- */
  .pr { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 520px; }
  .pr-top, .pr-props { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .pr-top .sp, .pr-props .sp { flex: 1; }
  .pr-top .tb.wide span, .pr-sidebtns .tb.wide span, .pr-props .tb.wide span { margin-left: 6px; }
  .pr-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
  .pr-name { height: 34px; border-radius: 8px; padding: 0 10px; font-weight: 700; min-width: 200px; user-select: text; }
  .pr-props { min-height: 38px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
  .pr-props .tb.on { background: var(--accent-soft); color: var(--accent); } .pr-size { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
  .pr-col input { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
  .pr-main { flex: 1; display: flex; gap: 8px; min-height: 0; height: 66vh; }
  .pr-side { width: 190px; display: flex; flex-direction: column; gap: 6px; }
  .pr-thumbs { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 4px 2px 0; }
  .pr-thumb { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; border-radius: 8px; padding: 3px; }
  .pr-thumb.drop { box-shadow: 0 -3px 0 var(--accent); }
  .pr-tn { width: 16px; font-size: 11px; color: var(--muted); text-align: right; padding-top: 2px; }
  .pr-tf { position: relative; width: 150px; height: 84.4px; overflow: hidden; border-radius: 5px; border: 2px solid var(--line); flex: none; pointer-events: none; }
  .pr-thumb.on .pr-tf { border-color: var(--accent); } .pr-thumb:hover .pr-tf { border-color: var(--muted); } .pr-thumb.on:hover .pr-tf { border-color: var(--accent); }
  .pr-sidebtns { display: flex; gap: 4px; flex-wrap: wrap; }
  .pr-work { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .pr-stagewrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--hover); border-radius: 12px; outline: none; overflow: hidden; }
  .pr-stage { position: relative; box-shadow: 0 4px 22px rgba(0,0,0,.18); user-select: none; }
  .pr-slide .pr-el { cursor: move; } .pr-slide .pr-el.editing { cursor: text; outline: 2px dashed var(--accent); }
  .pr-slide .pr-tx[contenteditable] { user-select: text; cursor: text; }
  .pr-slide .pr-el:hover:not(.editing) { outline: 1px dashed rgba(127,127,127,.6); }
  .pr-ph { opacity: .4; }
  .pr-list > div { position: relative; padding-left: 1.1em; } .pr-list > div + div { margin-top: .35em; }
  .pr-list > div::before { content: ""; position: absolute; left: .15em; top: .5em; width: .32em; height: .32em; border-radius: 50%; background: var(--dot); }
  .pr-imgph { display: flex; align-items: center; justify-content: center; text-align: center; border: 4px dashed rgba(127,127,127,.5); border-radius: 18px; color: rgba(127,127,127,.9); font-size: 34px; }
  .pr-imgph svg { width: 80px; height: 80px; }
  .pr-sel { position: absolute; outline: 2px solid var(--accent); pointer-events: auto; cursor: move; }
  .pr-h { position: absolute; width: 11px; height: 11px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; margin: -6px 0 0 -6px; }
  .pr-h.nw { left: 0; top: 0; cursor: nwse-resize; } .pr-h.ne { left: 100%; top: 0; cursor: nesw-resize; } .pr-h.sw { left: 0; top: 100%; cursor: nesw-resize; } .pr-h.se { left: 100%; top: 100%; cursor: nwse-resize; }
  .pr-h.n { left: 50%; top: 0; cursor: ns-resize; } .pr-h.s { left: 50%; top: 100%; cursor: ns-resize; } .pr-h.e { left: 100%; top: 50%; cursor: ew-resize; } .pr-h.w { left: 0; top: 50%; cursor: ew-resize; }
  .pr-guides i { position: absolute; background: #e5306a; pointer-events: none; } .pr-guides .gx { top: 0; bottom: 0; width: 1px; } .pr-guides .gy { left: 0; right: 0; height: 1px; }
  .pr-notes { height: 74px; resize: vertical; border-radius: 10px; padding: 8px 10px; font: inherit; user-select: text; }
  .pr-start { max-width: 900px; } .pr-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin: 10px 0 18px; }
  .pr-t { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: var(--panel); cursor: pointer; font: inherit; color: var(--text); }
  .pr-t:hover { border-color: var(--accent); background: var(--accent-soft); } .pr-t small { color: var(--muted); font-size: 12px; }
  .pr-tprev { display: flex; flex-direction: column; justify-content: center; gap: 6px; aspect-ratio: 16/9; border-radius: 6px; padding: 10px; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin-bottom: 4px; }
  .pr-tprev i { display: block; width: 34px; height: 3px; border-radius: 2px; }
  .pr-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .pr-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--panel); }
  .pr-cthumb { position: relative; width: 220px; height: 123.75px; overflow: hidden; border-radius: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
  .pr-cthumb > div { pointer-events: none; } .pr-card .pn { display: flex; flex-direction: column; } .pr-card .pn small { color: var(--muted); }
  .pr-cbtns { display: flex; gap: 4px; } .pr-cbtns .primary { flex: 1; }
  /* Präsentieren-Modus */
  .pr-show { position: fixed; inset: 0; z-index: 100000; background: #000; display: flex; align-items: center; justify-content: center; outline: none; cursor: default; }
  .pr-show.pen { cursor: crosshair; }
  .pr-sstage { position: relative; overflow: hidden; }
  .pr-sold { position: absolute; inset: 0; pointer-events: none; } .pr-sold > div { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
  .pr-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .pr-sslide.in.blenden { animation: prIn .45s ease; } .pr-sold.go.blenden > div { animation: prOut .45s ease forwards; }
  .pr-sslide.in.schieben { animation: prSlideIn .45s ease; } .pr-sold.go.schieben > div { animation: prSlideOut .45s ease forwards; }
  .pr-sslide.in.schieben.rev { animation-name: prSlideInR; } .pr-sold.go.schieben.rev > div { animation-name: prSlideOutR; }
  @keyframes prIn { from { opacity: 0; } } @keyframes prOut { to { opacity: 0; } }
  @keyframes prSlideIn { from { translate: 100% 0; } } @keyframes prSlideOut { to { translate: -100% 0; } }
  @keyframes prSlideInR { from { translate: -100% 0; } } @keyframes prSlideOutR { to { translate: 100% 0; } }
  .pr-black { position: absolute; inset: 0; background: #000; display: none; } .pr-show.blk .pr-black { display: block; }
  .pr-sbar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 12px; background: rgba(20,22,26,.82); color: #eee; opacity: 0; transition: opacity .25s; }
  .pr-show.ui .pr-sbar, .pr-sbar:hover { opacity: 1; }
  .pr-sbar button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .pr-sbar button:hover { background: rgba(255,255,255,.12); } .pr-sbar button.on { background: rgba(255,255,255,.22); } .pr-sbar button[data-s="pen"].on { background: rgba(229,48,58,.9); }
  .pr-sbar i { width: 1px; height: 22px; background: rgba(255,255,255,.2); margin: 0 4px; } .pr-scount { min-width: 64px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
  .pr-snotes { position: absolute; right: 18px; top: 18px; width: min(420px, 40vw); max-height: 50vh; overflow: auto; padding: 14px 16px; border-radius: 12px; background: rgba(20,22,26,.9); color: #eee; font-size: 17px; line-height: 1.45; white-space: pre-wrap; }
  /* ---------- Art+: Wischfinger, Mischmodi, Zeitraffer ---------- */
  body:not(.artplus) [data-tool="wisch"] { display: none !important; }
  .sy-modes ~ .pb-row { grid-template-columns: 70px 1fr 34px; }
  .tpblend { flex: 1; height: 30px; border-radius: 8px; padding: 0 6px; font: inherit; font-size: 13px; }
  .zr { display: flex; flex-direction: column; gap: 8px; }
  .zr-cv { width: 100%; height: auto; max-height: 52vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--hover); }
  .zr-bar { display: flex; align-items: center; gap: 10px; } .zr-prog { flex: 1; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
  .zr-prog i { display: block; height: 100%; width: 0; background: var(--accent); } .zr-t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
  .zr-dur { grid-template-columns: auto 1fr; flex: 1; } .zr-dur select { height: 30px; border-radius: 8px; font: inherit; }
  /* ---------- Onboarding (Weiche, Abläufe), Tarife, Kontext-Tipps ---------- */
  .ob-weiche { width: min(780px, 100%); gap: 14px; }
  .ob-weiche h2 { margin: 0; } .ob-q { font-size: 18px; margin: 0; color: var(--muted); }
  .ob-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .ob-ways.two { grid-template-columns: repeat(2, 1fr); }
  .ob-way { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
  .ob-way:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
  .ob-way b { font-size: 17px; } .ob-way > span:last-child { color: var(--muted); font-size: 13px; }
  .ob-ic svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ob-ic.big svg { width: 48px; height: 48px; }
  .ob-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .ob-tab { margin: 0; }
  .ob-input { height: 42px; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; user-select: text; }
  textarea.ob-input { height: auto; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
  .ob-link { display: flex; gap: 8px; } .ob-link .ob-input { flex: 1; font-size: 14px; } .ob-code { letter-spacing: 2px; }
  .ob-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .ob-col { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
  .ob-col .note { margin: 0; } .ob-col .tb { margin-top: auto; }
  .ob-admin { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--hover); } .ob-admin > div { flex: 1; display: flex; flex-direction: column; } .ob-admin span { color: var(--muted); font-size: 13px; }
  .ob-buy { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); } .ob-buy b { font-size: 20px; color: var(--accent); } .ob-buy span { font-size: 13px; color: var(--muted); }
  .ob-table { width: 100%; border-collapse: collapse; font-size: 13px; } .ob-table th, .ob-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); } .ob-table th { color: var(--muted); font-weight: 600; }
  .ob-roles { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
  .ob-role { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; } .ob-role small { color: var(--muted); }
  .ob-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; } .ob-seg button { border: 0; background: none; padding: 6px 12px; font: inherit; color: var(--text); cursor: pointer; }
  .ob-seg button.on { background: var(--accent); color: #fff; }
  .ob-lab { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); } .ob-logo-prev { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
  .ob-welcome { align-items: center; text-align: center; border-top: 6px solid var(--brand, var(--accent)); } .ob-logo { max-width: 120px; max-height: 80px; object-fit: contain; }
  .ob-welcome .ob-ic svg { stroke: var(--brand, var(--accent)); }
  .ob-today { align-self: stretch; text-align: left; padding: 12px 16px; border-radius: 12px; background: var(--hover); } .ob-today ul { margin: 8px 0 0; padding-left: 20px; } .ob-today li { margin: 3px 0; }
  .ob-pulse { animation: obPulse 1.4s ease-in-out infinite; } .ob-blink { animation: obPulse .7s ease-in-out 4; }
  @keyframes obPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,95,191,.55); } 50% { box-shadow: 0 0 0 9px rgba(31,95,191,0); } }
  .ctip { position: fixed; z-index: 99000; width: 260px; display: flex; flex-direction: column; gap: 3px; padding: 12px 34px 12px 14px; border-radius: 12px; background: #1d2330; color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.25); font-size: 13.5px; transition: opacity .3s; }
  .ctip b { font-size: 14px; } .ctip span { opacity: .88; } .ctip.out { opacity: 0; }
  .ctip.bottom { left: 50%; bottom: 84px; transform: translateX(-50%); width: min(420px, 90vw); }
  .ctip[data-arrow]::before { content: ""; position: absolute; left: var(--ax, 20px); width: 14px; height: 14px; background: #1d2330; transform: rotate(45deg); }
  .ctip[data-arrow="up"]::before { top: -6px; } .ctip[data-arrow="down"]::before { bottom: -6px; }
  .ctip-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
  .ctip-btns button { border: 1px solid #ffffff55; background: transparent; color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
  .ctip-btns button.yes { background: #fff; color: #1d2330; border-color: #fff; font-weight: 600; }
  .ctip.nb-ask { padding-right: 14px; }
  .tour-tip { padding-right: 34px !important; } .tour-tip > .ctip-x { top: 6px; right: 6px; }
  .ctip-x { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: #fff; opacity: .7; cursor: pointer; }
  .tf-back { display: flex; align-items: center; justify-content: center; padding: 16px; }
  .tf-card { width: min(1100px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 24px; }
  .tf-head { display: flex; align-items: center; justify-content: space-between; } .tf-head h2 { margin: 0; }
  .tf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }
  .tf-tier { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 2px solid var(--line); border-radius: 16px; }
  .tf-tier.hi { border-color: var(--accent); } .tf-tier.cur { background: var(--accent-soft); }
  .tf-name { font-weight: 800; font-size: 17px; } .tf-price { font-size: 20px; font-weight: 700; color: var(--accent); } .tf-desc { margin: 0; font-size: 13px; color: var(--muted); }
  .tf-plus { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
  .tf-feat { margin: 0 0 8px; padding-left: 18px; font-size: 13px; flex: 1; } .tf-feat li { margin: 3px 0; } .tf-feat em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--hover); color: var(--muted); }
  body.no-tape [data-tool="tape"], body.no-laser [data-tool="laser"] { display: none !important; }
  body.branded .snav-logo { color: var(--brand); } .snav-logo img { max-width: 52px; max-height: 40px; object-fit: contain; display: block; margin: 0 auto 4px; }
  /* ---------- Kanban ---------- */
  .kb { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 480px; }
  .kb-top { display: flex; gap: 6px; align-items: center; } .kb-top .sp { flex: 1; } .kb-board { height: 36px; border-radius: 9px; padding: 0 10px; font: inherit; font-weight: 600; }
  .kb-cols { flex: 1; display: flex; gap: 10px; overflow-x: auto; align-items: flex-start; padding-bottom: 6px; }
  .kb-colbox { flex: 0 0 260px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: var(--hover); max-height: 70vh; }
  .kb-colbox.over { outline: 2px dashed var(--accent); }
  .kb-colbox header { display: flex; align-items: center; gap: 8px; } .kb-colbox header b { flex: 1; } .kb-colbox header span { font-size: 12px; color: var(--muted); }
  .kb-cmenu { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; }
  .kb-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 20px; }
  .kb-card { padding: 10px 12px; border-radius: 10px; background: var(--panel); border-left: 4px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
  .kb-card.drag { opacity: .4; } .kb-card p { margin: 0; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; }
  .kb-card footer { display: flex; align-items: center; gap: 6px; font-size: 12px; } .kb-card footer .sp { flex: 1; }
  .kb-due { padding: 1px 6px; border-radius: 6px; background: var(--hover); } .kb-due.late { background: #e5484d22; color: #e5484d; font-weight: 600; }
  .kb-time { color: var(--muted); font-variant-numeric: tabular-nums; }
  .kb-timer { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .kb-timer:hover { background: var(--hover); color: var(--accent); } .kb-timer.on { background: #e5484d; color: #fff; }
  .kb-av { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .kb-quick { border: 0; background: none; color: var(--muted); text-align: left; padding: 6px 4px; font: inherit; cursor: pointer; border-radius: 8px; } .kb-quick:hover { background: var(--panel); color: var(--text); }
  /* ---------- Zeiterfassung ---------- */
  .zt { display: flex; flex-direction: column; gap: 10px; }
  .zt-head { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--hover); } .zt-head.on { background: var(--accent-soft); }
  .zt-clock { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 128px; }
  .zt-label { flex: 1; height: 38px; border-radius: 9px; padding: 0 10px; font: inherit; user-select: text; }
  .zt-sums { display: flex; gap: 16px; align-items: center; } .zt-sums div { display: flex; flex-direction: column; } .zt-sums small { color: var(--muted); font-size: 12px; } .zt-sums b { font-size: 17px; } .zt-sums .sp { flex: 1; }
  .zt-proj { display: flex; flex-direction: column; gap: 4px; } .zt-proj > small { color: var(--muted); font-size: 12px; }
  .zt-bar { display: grid; grid-template-columns: 150px 1fr 90px; gap: 8px; align-items: center; font-size: 13px; } .zt-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .zt-bar i { height: 8px; border-radius: 4px; background: var(--accent); } .zt-bar b { text-align: right; font-weight: 600; }
  .zt-day { display: flex; justify-content: space-between; margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); } .zt-day span { color: var(--muted); }
  .zt-row { display: grid; grid-template-columns: 96px 1fr auto 32px; gap: 8px; align-items: center; font-size: 13.5px; padding: 3px 0; }
  .zt-t { color: var(--muted); font-variant-numeric: tabular-nums; } .zt-l small { color: var(--muted); }
  .zt-dash { display: flex; align-items: center; gap: 10px; } .zt-dash > div { flex: 1; display: flex; flex-direction: column; } .zt-dash small { color: var(--muted); }
  @media (max-width: 700px) { .ob-ways, .ob-ways.two, .ob-cols { grid-template-columns: 1fr; } }
  /* ---------- Kundenkarten (CRM) ---------- */
  .crm { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 480px; }
  .crm-top { display: flex; gap: 6px; align-items: center; } .crm-top .sp { flex: 1; }
  .crm-src { height: 36px; border-radius: 9px; padding: 0 10px; font: inherit; font-weight: 600; } .crm-q { height: 36px; border-radius: 9px; padding: 0 10px; font: inherit; min-width: 220px; user-select: text; }
  .crm-pipes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .crm-pipe { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--muted)); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
  .crm-pipe b { font-size: 18px; } .crm-pipe span { font-size: 12.5px; } .crm-pipe small { color: var(--muted); font-size: 12px; } .crm-pipe.on { background: var(--accent-soft); border-color: var(--accent); }
  .crm-main { flex: 1; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr); gap: 10px; min-height: 0; }
  .crm-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; max-height: 60vh; }
  .crm-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .crm-card.on { border-color: var(--accent); background: var(--accent-soft); }
  .crm-av { width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; } .crm-av.big { width: 48px; height: 48px; font-size: 16px; }
  .crm-ct { flex: 1; display: flex; flex-direction: column; min-width: 0; } .crm-ct small { color: var(--muted); } .crm-ct b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .crm-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; } .crm-meta small { color: var(--muted); } .crm-meta small.late { color: #e5484d; font-weight: 600; }
  .crm-detail { border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto; max-height: 60vh; display: flex; flex-direction: column; gap: 10px; }
  .crm-dh { display: flex; gap: 12px; align-items: center; } .crm-dh h3 { margin: 0; } .crm-dh small { color: var(--muted); }
  .crm-status { display: flex; gap: 4px; flex-wrap: wrap; } .crm-status button { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
  .crm-status button.on { background: var(--c); border-color: var(--c); color: #fff; }
  .crm-notes { margin: 0; white-space: pre-wrap; font-size: 13.5px; } .crm-acts { display: flex; flex-direction: column; gap: 6px; }
  /* Kundenkarten auf dem Handy: alles untereinander, nichts ragt aus dem Bildschirm */
  @media (max-width: 720px) {
    .pagebody.crm { height: auto; min-height: 0; }
    .crm { min-height: 0; } .crm-top { flex-wrap: wrap; } .crm-top .sp { display: none; } .crm-src, .crm-q { flex: 1 1 100%; min-width: 0; }
    .crm-top .crm-add { flex: 1 1 auto; } .crm-pipes { grid-template-columns: repeat(2, 1fr); }
    .crm-main { grid-template-columns: 1fr; } .crm-list, .crm-detail { max-height: none; } .crm-detail:empty { display: none; }
  }
  .crm-act { padding: 8px 10px; border-radius: 10px; background: var(--hover); } .crm-act small { color: var(--muted); margin-left: 6px; } .crm-act p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }
  /* ---------- Whiteboard ---------- */
  .wb { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 480px; }
  .wb-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .wb-top .sp { flex: 1; } .wb-top select { height: 36px; border-radius: 9px; padding: 0 8px; font: inherit; }
  .wb-timer { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; } .wb-timer.soon { color: #f5a524; } .wb-timer.done { color: #e5484d; }
  .wb-area { flex: 1; min-height: 380px; max-height: 66vh; overflow: auto; border-radius: 14px; background: var(--hover); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; position: relative; }
  .wb-canvas { position: relative; width: 1600px; height: 1000px; }
  .wb-note { position: absolute; width: 170px; min-height: 120px; padding: 10px 10px 6px; border-radius: 4px 4px 14px 4px; box-shadow: 0 3px 10px rgba(0,0,0,.15); color: #2b2b2b; cursor: grab; display: flex; flex-direction: column; touch-action: none; user-select: none; }
  .wb-note.drag { cursor: grabbing; box-shadow: 0 10px 26px rgba(0,0,0,.25); z-index: 2; transform: rotate(-1.5deg); }
  .wb-area.voting .wb-note { cursor: copy; } .wb-text { flex: 1; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; } .wb-text i { opacity: .5; }
  .wb-foot { display: flex; align-items: center; gap: 4px; font-size: 11px; } .wb-foot .sp { flex: 1; } .wb-foot small { opacity: .6; }
  .wb-dots { color: #d6336c; letter-spacing: 1px; font-size: 13px; } .wb-hint { margin: 0; }
  /* ---------- Lernkarten ---------- */
  .lk { display: flex; flex-direction: column; gap: 10px; min-height: 420px; outline: none; }
  .lk-top { display: flex; gap: 6px; align-items: center; } .lk-top .sp { flex: 1; } .lk-title { font-size: 17px; }
  .lk-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
  .lk-deck { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
  .lk-deck:hover { border-color: var(--accent); } .lk-deck small { color: var(--muted); }
  .lk-prog { width: 100%; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; } .lk-prog i { display: block; height: 100%; background: #2fbf71; }
  .lk-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } .lk-boxes div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 8px; border-radius: 10px; background: var(--hover); }
  .lk-boxes i { width: 60%; border-radius: 4px; background: var(--accent); } .lk-boxes span { font-size: 12px; color: var(--muted); }
  .lk-cards { display: flex; flex-direction: column; gap: 4px; overflow: auto; max-height: 50vh; }
  .lk-card { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .lk-card small { color: var(--muted); font-size: 12px; } .lk-b { color: var(--muted); }
  .lk-learn { display: flex; flex-direction: column; gap: 12px; align-items: stretch; } .lk-ltop { display: flex; gap: 10px; align-items: center; } .lk-ltop span:nth-child(2) { flex: 1; text-align: center; color: var(--muted); }
  .lk-flash { min-height: 240px; border: 2px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; cursor: pointer; box-shadow: var(--shadow); }
  .lk-flash.flipped { border-color: var(--accent); background: var(--accent-soft); cursor: default; } .lk-side { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
  .lk-txt { font-size: 24px; font-weight: 600; text-align: center; white-space: pre-wrap; } .lk-flash small { color: var(--muted); }
  .lk-rate { display: flex; gap: 10px; justify-content: center; min-height: 40px; } .lk-rate .tb { min-width: 180px; }
  .lk-done { text-align: center; padding: 30px; } .lk-done .tprow { justify-content: center; }
  .pro-tag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 700; }
  body.f-export_hd .pro-tag { display: none; }
  .tm-by { text-align: center; font-size: 12px; color: var(--muted); min-height: 14px; } .tm-time.soon { color: #f5a524; }
  .tm-share { height: 30px; border-radius: 8px; font: inherit; font-size: 12.5px; margin-left: auto; max-width: 150px; } .tm-tile { width: 100%; margin-top: 6px; }
  .tile-body .tm-time { font-size: 64px; }
  /* ---------- Vorlagen-Galerie ---------- */
  .tg-card { width: min(980px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 22px; }
  .tg-head { display: flex; align-items: center; gap: 12px; } .tg-head h2 { margin: 0; } .tg-name { flex: 1; height: 38px; border-radius: 10px; padding: 0 12px; font: inherit; user-select: text; }
  .tg-label { font-weight: 700; margin: 14px 0 8px; }
  .tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tg-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .tg-item:hover { border-color: var(--accent); background: var(--accent-soft); } .tg-item small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
  .tg-thumb { width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--hover); overflow: hidden; margin-bottom: 4px; }
  .tg-thumb img { max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px rgba(0,0,0,.15); } .tg-thumb svg { height: 120px; width: auto; fill: none; }
  /* ---------- Serie (Streak) ---------- */
  .streakb { width: auto !important; padding: 0 8px 0 6px !important; gap: 3px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
  .streakb svg { width: 20px !important; height: 20px !important; } .streakb.on { color: #f0731a; } .streakb.on svg { fill: #ffb547; stroke: #f0731a; } .streakb.cold { opacity: .6; }
  .streakb.pop { animation: stPop .6s ease; } @keyframes stPop { 30% { transform: scale(1.35); } }
  .streak-pop { position: fixed; z-index: 80; width: 262px; padding: 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
  .sk-top { display: flex; gap: 10px; align-items: center; } .sk-top b { font-size: 20px; display: block; } .sk-top small { color: var(--muted); font-size: 12px; }
  .sk-flame svg { width: 40px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.6; } .sk-flame.on svg { fill: #ffb547; stroke: #f0731a; }
  .sk-week, .sk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; } .sk-week span { font-size: 10.5px; color: var(--muted); text-align: center; }
  .sk-grid i { aspect-ratio: 1; border-radius: 6px; background: var(--hover); } .sk-grid i.on { background: #f59e3b; } .sk-grid i.today { outline: 2px solid var(--accent); outline-offset: 1px; } .sk-grid i.fut { opacity: .35; }
  .sk-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); } .sk-foot b { color: var(--text); } .sk-hide { font-size: 12.5px; margin: 0; }
  .dstreak { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: #f0731a; font-weight: 700; } .dstreak svg { width: 16px; height: 16px; fill: #ffb547; stroke: #f0731a; }
  /* ---------- Versionsverlauf ---------- */
  .vh-card { width: min(1100px, 100%); max-height: 94vh; overflow: auto; background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
  .vh-head { display: flex; align-items: center; gap: 12px; } .vh-head h2 { margin: 0; } .vh-doc { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vh-stage { position: relative; border-radius: 12px; background: var(--hover); padding: 10px; display: flex; justify-content: center; }
  .vh-cv { width: 100%; max-height: 58vh; object-fit: contain; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; }
  .vh-tag { position: absolute; left: 20px; top: 18px; padding: 3px 10px; border-radius: 999px; background: rgba(20,22,26,.75); color: #fff; font-size: 12px; }
  .vh-slide { display: flex; align-items: center; gap: 10px; } .vh-slide span { font-size: 12px; color: var(--muted); } .vh-range { flex: 1; accent-color: var(--accent); }
  .vh-info { display: flex; gap: 12px; align-items: baseline; } .vh-info b { font-size: 17px; } .vh-info small { color: var(--muted); }
  .vh-btns { display: flex; gap: 8px; align-items: center; } .vh-btns .sp { flex: 1; } .vh-hint { margin: 0; max-width: 480px; }
  /* ---------- Auswahl mit Vorschau ---------- */
  .dpick { display: flex; flex-wrap: wrap; gap: 6px; } .dopt { border: 1.5px solid var(--line); background: var(--panel); color: var(--text); border-radius: 9px; cursor: pointer; font: inherit; font-size: 13px; }
  .dopt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
  .dpick-swatches .dopt { width: 32px; height: 32px; border-radius: 50%; background: var(--c); } .dpick-swatches .dopt.none { background: linear-gradient(135deg, transparent 46%, #d33 47%, #d33 53%, transparent 54%); } .dpick-swatches .dopt.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
  .dpick-seg .dopt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; } .dpick-seg i { width: 10px; height: 10px; border-radius: 50%; }
  .dpick-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .dpick-cards .dopt { display: flex; flex-direction: column; gap: 4px; padding: 6px; font-size: 12px; align-items: center; } .dthumb { width: 100%; aspect-ratio: 16/9; display: block; border-radius: 5px; overflow: hidden; background: var(--hover); }
  /* ---------- Erscheinungsbild ---------- */
  .ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .ap-c { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; } .ap-c small { color: var(--muted); font-weight: 400; font-size: 11.5px; } .ap-c.on { border-color: var(--accent); }
  .ap-mini { position: relative; display: block; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); } .ap-mini i { position: absolute; left: 14%; right: 14%; top: 14%; bottom: 14%; border-radius: 4px; } .ap-mini b { position: absolute; left: 24%; right: 36%; top: 48%; height: 4px; border-radius: 2px; }
  .ap-acc { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .ap-acc.locked { opacity: .55; } .ap-sw { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; padding: 0; } .ap-sw.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); } .ap-own { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; } .ap-own input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
  /* ---------- Seiten füllen den Platz ---------- */
  .pagebody.tb2, .pagebody.wb, .pagebody.kb, .pagebody.crm, .pagebody.pr { max-width: none; height: calc(100vh - 140px); min-height: 420px; }
  .pagebody.tb2 .tb2-wrap { max-height: none; } .tb2-grid { min-width: 100%; user-select: none; } .tb2-grid th { cursor: pointer; } .tb2-grid thead th:hover, .tb2-grid tbody th:hover { background: var(--accent-soft); }
  .pagebody.crm .crm-list, .pagebody.crm .crm-detail { max-height: none; } .pagebody.kb .kb-colbox { max-height: 100%; } .pagebody.pr .pr-main { height: auto; }
  /* ---------- Kanban: Priorität ---------- */
  .kb-prio { padding: 0 6px; border-radius: 6px; font-weight: 800; font-size: 11px; color: #fff; } .kb-prio.p1 { background: #e5484d; } .kb-prio.p2 { background: #f5a524; } .kb-prio.p3 { background: #3b82f6; }
  /* ---------- Whiteboard als Fläche ---------- */
  .wb-area { position: relative; overflow: hidden; max-height: none; cursor: grab; touch-action: none; } .wb-area.pan { cursor: grabbing; }
  .wb-area.pinching .wb-note { pointer-events: none; }
  body.touchui .wb-zbar button { min-width: 44px; min-height: 40px; font-size: 18px; }
  .wb-canvas { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
  .wb-note.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
  .wb-edit { width: 100%; height: 84px; border: 0; background: transparent; resize: none; font: inherit; font-size: 14px; color: #2b2b2b; outline: none; user-select: text; }
  .wb-bar { position: absolute; left: 0; top: -38px; display: flex; gap: 4px; padding: 4px 6px; border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); } .wb-bar button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #0002; cursor: pointer; padding: 0; } .wb-bar button.on { box-shadow: 0 0 0 2px var(--accent); } .wb-bar .wb-del { background: none; border: 0; color: var(--danger); }
  .wb-zbar { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); font-size: 12.5px; } .wb-zbar button { min-width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--text); cursor: pointer; font: inherit; } .wb-zbar button:hover { background: var(--hover); } .wb-zoom { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
  /* ---------- Whiteboard: Übersicht, Fäden, Einladen ---------- */
  .wb.wb-picking { height: auto; min-height: 0; gap: 12px; }
  .wbp-head { display: flex; align-items: center; gap: 8px; } .wbp-head h3 { margin: 0; } .wbp-head .sp { flex: 1; }
  .wbp-body { display: flex; flex-direction: column; gap: 8px; } .wbp-sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
  .wbp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
  .wbp-card { position: relative; cursor: pointer; } .wbp-card .cthumb svg { width: 100%; height: 100%; } .wbp-empty { color: var(--muted); font-size: 12.5px; }
  .wbp-more { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--panel); color: var(--text); box-shadow: 0 1px 4px #0002; cursor: pointer; opacity: 0; transition: opacity .12s; } .wbp-card:hover .wbp-more { opacity: 1; }
  .wbp-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 160px; border: 2px dashed var(--line); background: none; color: var(--muted); font: inherit; cursor: pointer; } .wbp-add span { font-size: 30px; line-height: 1; } .wbp-add:hover { border-color: var(--accent); color: var(--accent); }
  .wb-name { font-size: 16px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wb-src { color: var(--muted); }
  .wb-thread { display: inline-flex; align-items: center; gap: 6px; } .wb-thread svg, .wb-invite svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; } .wb-thread:not(.primary) svg path { stroke: #e03131; }
  .wb-head { display: flex; align-items: center; gap: 8px; } .wb-head .sp { flex: 1; } .wb-invite { width: auto !important; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px !important; } .wb-top { justify-content: flex-end; }
  .wb-links { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
  .wb-link { fill: none; stroke: #e03131; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 1px 1px #0003); pointer-events: none; } .wb-link.on { stroke-width: 5; stroke: #c92a2a; } .wb-link.rubber { stroke-dasharray: 8 6; opacity: .8; }
  .wb-link-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
  .wb-link-del { pointer-events: all; cursor: pointer; } .wb-link-del circle { fill: var(--panel); stroke: #c92a2a; stroke-width: 2; } .wb-link-del path { stroke: #c92a2a; stroke-width: 2.2; stroke-linecap: round; }
  .wb-note.pinned::before { content: ""; position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8787, #c92a2a); box-shadow: 0 1px 2px #0005; }
  .wb-area.threading .wb-note { cursor: crosshair; } .wb-note.tfrom { outline: 3px solid #e03131; outline-offset: 2px; }
  /* ---------- Präsentationen: Oberfläche ---------- */
  .pr-ribbon { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 12px; background: var(--hover); } .pr-rl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 8px; }
  .pr-rb { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer; transition: background .12s, transform .08s; }
  .pr-rb:hover { background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.1); } .pr-rb:active { transform: scale(.94); background: var(--accent-soft); color: var(--accent); } .pr-rb svg { width: 20px; height: 20px; }
  .pr .tb:active { transform: scale(.95); } .pr-stagewrap { background: var(--hover); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
  .pr-stage { border-radius: 4px; box-shadow: 0 6px 28px rgba(0,0,0,.2); } .pr-thumb { transition: background .12s; } .pr-thumb:hover { background: var(--hover); } .pr-thumb.on { background: var(--accent-soft); }
  .pr-new { animation: prNew .7s ease; } @keyframes prNew { 0% { box-shadow: 0 0 0 0 var(--accent); } 40% { box-shadow: 0 0 0 6px var(--accent-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
  .pr-show, .pr-show * { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; } .pr-sslide, .pr-sold { pointer-events: none; }
  .dthumb { position: relative; } .dthumb > div { position: absolute !important; }
  /* ---------- Datums- und Zeitauswahl ---------- */
  input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { display: none; } input[type=date], input[type=time] { cursor: pointer; }
  .dtp-pop { position: fixed; padding: 12px; border-radius: 16px; width: clamp(280px, 26vw, 360px); display: flex; flex-direction: column; gap: 8px; user-select: none; font-size: clamp(13px, 1vw, 15px); }
  .dtp-head { display: flex; align-items: center; justify-content: space-between; } .dtp-head b { flex: 1; text-align: center; cursor: pointer; font-size: 1.1em; padding: 6px; border-radius: 8px; } .dtp-title:hover { background: var(--hover); } .dtp-head button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 20px; cursor: pointer; } .dtp-head button:hover { background: var(--hover); }
  .dtp-week, .dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } .dtp-week span { text-align: center; font-size: .82em; color: var(--muted); font-weight: 600; }
  .dtp-grid button { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; color: var(--text); font: inherit; cursor: pointer; } .dtp-grid button:hover { background: var(--hover); } .dtp-grid .out { color: var(--muted); opacity: .5; } .dtp-grid .we { color: var(--muted); } .dtp-grid .today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-weight: 700; } .dtp-grid .on { background: var(--accent) !important; color: #fff !important; opacity: 1; }
  .dtp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .dtp-months button { padding: 12px 0; border: 0; border-radius: 10px; background: var(--hover); color: var(--text); font: inherit; cursor: pointer; } .dtp-months .on { background: var(--accent); color: #fff; }
  .dtp-foot { display: flex; gap: 4px; align-items: center; } .dtp-foot span { flex: 1; } .dtp-foot button { border: 0; border-radius: 8px; padding: 6px 10px; background: var(--hover); color: var(--text); font: inherit; font-size: .9em; cursor: pointer; } .dtp-foot .ok { background: var(--accent); color: #fff; }
  .dtp-time { display: flex; align-items: center; justify-content: center; gap: 8px; } .dtp-time b { font-size: 1.6em; } .dtp-col { height: 220px; width: 84px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; position: relative; } .dtp-col button { flex: none; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 1.15em; font-variant-numeric: tabular-nums; cursor: pointer; } .dtp-col button:hover { background: var(--hover); } .dtp-col .on { background: var(--accent); color: #fff; }
  /* ---------- Layout-Editor ---------- */
  #toolbar .tb svg, #viewbar .tb svg { zoom: var(--tb-scale, 1); } #toolbar.le-custom > .sep { display: none; }
  body.layout-edit #toolbar, body.layout-edit #viewbar, body.layout-edit #toolPanel, body.layout-edit .widget { outline: 2px dashed var(--accent); outline-offset: 2px; cursor: move; translate: none !important; }
  body.layout-edit [data-tb] { cursor: grab; } body.layout-edit #board { filter: saturate(.6); } .le-moving { opacity: .35; } .le-docked { border-radius: 10px; }
  .le-ghost { position: fixed; z-index: 99200; pointer-events: none; opacity: .9; box-shadow: var(--shadow); background: var(--panel); border-radius: 8px; padding: 4px 8px; }
  .le-banner { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(980px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; } .le-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .le-row .sp { flex: 1; } .le-l { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .le-presets { display: flex; gap: 6px; } .le-preset { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer; } .le-preset:hover { border-color: var(--accent); } .le-preset svg { width: 60px; height: 40px; }
  .le-preset.on { border-color: var(--accent); background: var(--accent-soft); } .ob-opt { font-weight: 400; color: var(--muted); }
  .le-sl { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); } .le-tray { min-height: 34px; padding: 4px 8px; border: 1.5px dashed var(--line); border-radius: 10px; } .le-tray.over { border-color: var(--danger); background: #e5484d18; } .le-chip { padding: 3px 9px; border-radius: 8px; background: var(--hover); font-size: 12.5px; cursor: grab; }
  body.layout-edit #viewbar { margin-bottom: 176px; }
  .le-menu { position: fixed; padding: 4px; border-radius: 10px; display: flex; flex-direction: column; } .le-mi { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; } .le-mi:hover { background: var(--hover); } .le-mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .le-cta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 8px; } .le-cta div { flex: 1; display: flex; flex-direction: column; } .le-cta small { color: var(--muted); }
  /* ---------- Radial: Farbkreis und Einstellungen ---------- */
  .ritem.recent { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--muted); }
  .rw-pop { position: fixed; padding: 12px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; touch-action: none; } .rw-row { display: flex; align-items: center; gap: 8px; } .rw-sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px #0002; flex: none; }
  .rs-card { width: min(420px, 100%); } .rs-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .rs-c { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); opacity: .3; cursor: pointer; } .rs-c.on { opacity: 1; box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
  .rs-s { width: 56px; height: 56px; border: 1.5px solid var(--line); border-radius: 10px; background: none; color: var(--text); opacity: .4; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; } .rs-s i { display: block; border-radius: 50%; background: currentColor; } .rs-s small { font-size: 10px; } .rs-s.on { opacity: 1; border-color: var(--accent); }
  .pb-place button { font-size: 12px; padding: 5px 9px; } .tp-qual .dopt { flex: 1; justify-content: center; padding: 5px 4px; font-size: 12px; }
  /* ---------- Willkommen (js/willkommen.js) ---------- */
  .wk-corner { position: fixed; top: 12px; right: 14px; z-index: 430; display: flex; gap: 6px; }
  .wk-cb { display: inline-flex; align-items: center; gap: 5px; height: 38px; min-width: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px #0000001a; }
  .wk-cb:hover { border-color: var(--accent); color: var(--accent); } .wk-cb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .wk-lmenu { position: fixed; z-index: 440; width: 220px; padding: 6px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; background: var(--panel) !important; box-shadow: 0 10px 30px #0003; }
  .wk-lmenu button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .wk-lmenu button span { flex: 1; } .wk-lmenu button:hover:not(:disabled) { background: var(--hover); } .wk-lmenu button:disabled { color: var(--muted); cursor: default; }
  .wk-lmenu button.on { color: var(--accent); font-weight: 700; } .wk-lmenu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; } .wk-lmenu small { font-size: 11px; }
  .wk-lmenu p { margin: 4px 8px 4px; font-size: 11.5px; color: var(--muted); }
  .gate-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--text); font-weight: 600; text-decoration: none; }
  .gate-oauth:hover { border-color: var(--accent); background: var(--hover); } .gate-oauth .gg { width: 20px; height: 20px; }
  .gate-steps { display: flex; gap: 6px; margin: 2px 0 6px; } .gate-steps span { flex: 1; padding: 6px 8px; border-radius: 9px; background: var(--hover); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
  .gate-steps span.on { background: var(--accent-soft); color: var(--accent); } .gate-steps span.done { color: var(--text); }
  .gate-bd { display: flex; flex-direction: column; gap: 6px; } .gate-bd > span { font-size: 13px; font-weight: 600; } .gate-bd small { display: block; font-weight: 400; color: var(--muted); }
  .gate-chk { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.4; cursor: pointer; }
  .gate-chk { color: var(--text) !important; } .gate-form .gate-chk input, .gate-chk input { width: 18px; height: 18px !important; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--accent); } .gate-chk small { color: var(--muted); }
  .gate-inl { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
  .wk-agbv, .wk-agbg { z-index: 420; }
  .wk-agbcard { width: min(640px, 94vw); max-height: 90vh; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 18px; background: var(--panel) !important; overflow: auto; }
  .wk-agbcard header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .wk-agbcard header b { font-size: 18px; } .wk-agbcard header small { color: var(--muted); flex: 1; }
  .wk-agbtext { max-height: 52vh; overflow: auto; padding: 4px 12px 4px 2px; font-size: 14px; line-height: 1.55; user-select: text; } .wk-agbtext h3 { margin: 14px 0 6px; } .wk-agbtext h4 { margin: 12px 0 4px; }
  .wk-sum { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); } .wk-sum p { margin: 4px 0 0; }
  .wk-det summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 4px 0; }
  .wk-agbcard footer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .wk-agbcard footer .sp { flex: 1; } .wk-agbcard footer .tb { width: auto; padding: 0 14px; }
  .wk-supp { display: flex; flex-direction: column; gap: 6px; } .wk-supp textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--text); font: inherit; user-select: text; } .wk-supp .tb { width: auto; align-self: flex-end; padding: 0 14px; }
  .wk-pick.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
  .wk-thumb svg { width: 120px; height: 80px; display: block; } .wk-sys { grid-template-columns: repeat(2, 1fr); } .wk-yn, .wk-mm { grid-template-columns: repeat(2, 1fr); }
  .wk-gq { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; } .wk-gq h2 { max-width: 560px; margin: 0; } .wk-gq .note { max-width: 560px; } .wk-gq .ob-ways { width: 100%; text-align: left; }
  .wk-gface .moki-svg { width: 96px; height: 96px; } .wk-bulb { width: 64px; height: 64px; fill: none; stroke: #e6a100; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .wk-mk .moki-svg { width: 56px; height: 56px; display: block; }
  /* MoKI: Skin- und Kopfteil-Auswahl */
  .mkg-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .mkg-pick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
  .mkg-pick button:hover { background: var(--hover); } .mkg-pick button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--accent-soft); }
  .mkg-pick .moki-svg { width: 48px; height: 48px; display: block; } .mkg-pick span { text-align: center; line-height: 1.2; }
  .set-moki .sm-col { display: flex; flex-direction: column; gap: 6px; } .set-moki .sm-lab { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
  .moki-svg .mk-prop { transform-box: fill-box; transform-origin: center; }
  .moki-btn:hover .mk-prop, .mk-wave .mk-prop, .mk-jump .mk-prop { animation: mkProp .35s linear infinite; }
  @keyframes mkProp { 50% { transform: scaleX(-1); } }
  .wk-colors { display: flex; gap: 10px; flex-wrap: wrap; } .wk-colors button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--panel); background: var(--c); box-shadow: 0 0 0 2px var(--line); cursor: pointer; } .wk-colors button.on { box-shadow: 0 0 0 3px var(--accent); }
  .wk-pro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; } .wk-pro h2 { margin: 0; }
  .wk-pbadge { padding: 4px 12px; border-radius: 9px; background: linear-gradient(135deg, #7b5cff, #b44cff); color: #fff; font-weight: 800; letter-spacing: .08em; }
  .wk-feats { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; width: 100%; max-width: 640px; text-align: left; }
  .wk-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; } .wk-feats svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #2e9e5b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .wk-per { display: flex; } .wk-pro .wk-try { width: auto; padding: 0 22px; height: 46px; font-size: 15.5px; }
  @media (max-width: 640px) { .wk-sys, .wk-yn, .wk-mm { grid-template-columns: 1fr; } .wk-corner { top: 8px; right: 8px; } }
  .set-moki { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
  .set-moki .sm-face .moki-svg { width: 64px; height: 64px; display: block; } .set-moki .sm-body { flex: 1; display: flex; flex-direction: column; gap: 10px; } .set-moki .sm-mode { display: flex; } .set-moki [hidden] { display: none !important; }
  /* ---------- Tutorial (js/rundgang.js) ---------- */
  .mt-spot { position: fixed; z-index: 250; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px #00000080; transition: left .3s, top .3s, width .3s, height .3s; outline: 2px solid #fff; }
  .mt-spot.must { outline: 3px solid var(--accent); animation: mtPulse 1.4s ease-in-out infinite; } .mt-spot.pulse { outline-color: #ff9f1a; }
  @keyframes mtPulse { 50% { outline-offset: 4px; } }
  .mt-hl { position: fixed; z-index: 251; border-radius: 10px; pointer-events: none; outline: 2px dashed #fff; }
  .mt-bub { z-index: 262 !important; transition: left .3s, top .3s; animation: none; }
  .mt-bub .mt-cnt { font-size: 22px; color: var(--accent); }
  .mt-shake { animation: mtShake .4s; } @keyframes mtShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
  .mk-fly { position: fixed; z-index: 470; pointer-events: none; transition: left .85s cubic-bezier(.5, -0.2, .4, 1.1), top .85s cubic-bezier(.4, 0, .3, 1), width .85s, height .85s; }
  .mk-fly .moki-svg { width: 100%; height: 100%; }
  /* ---------- Hilfe-Glühbirne ---------- */
  #helpBtn, #homeClose { display: none !important; }
  /* MoKI (js/moki.js) – Platzhalter-Figur */
  .tb .moki-svg, .moki-svg { stroke: none; fill: none; overflow: visible; }
  /* MoKI als Partikel-Wolke (canvas) */
  .moki-orb { display: inline-block; position: relative; width: 48px; height: 48px; vertical-align: middle; flex: none; }
  #mokiLayer { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2147483000; }
  .mk-ghost { visibility: hidden; }
  /* MoKI groß in der Mitte (Doppelklick) */
  .mk-focus { position: fixed; inset: 0; z-index: 2147482000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px;
    background: radial-gradient(circle at 50% 44%, rgba(16,12,5,.86), rgba(8,7,4,.95)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; cursor: default; }
  .mk-focus.on { opacity: 1; }
  .mk-focus-orb { padding: min(15vmin, 120px) 0 min(10vmin, 80px); }   /* Platz für die Ringe */
  .mk-focus-orb .moki-orb { width: min(40vmin, 330px); height: min(40vmin, 330px); display: block; }
  .mk-focus-chat { display: flex; gap: 8px; width: min(560px, 90vw); }
  .mk-focus-chat input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 24px; border: 1px solid rgba(246,232,198,.35); background: rgba(255,255,255,.08); color: #f6e8c6; font: inherit; font-size: 16px; outline: none; user-select: text; }
  .mk-focus-chat input::placeholder { color: rgba(246,232,198,.55); } .mk-focus-chat input:focus { border-color: #f6c56a; background: rgba(255,255,255,.12); }
  .mk-focus-send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #f6c56a; color: #2a1f05; cursor: pointer; display: grid; place-items: center; }
  .mk-focus-send svg { width: 22px; height: 22px; fill: currentColor; }
  .mk-focus-log { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: min(560px, 90vw); } .mk-msg.me { color: rgba(246,232,198,.6); font-size: 14px; }
  .mk-focus-txt { margin: 0; max-width: min(560px, 90vw); min-height: 3em; text-align: center; color: #f6e8c6; font-size: 18px; line-height: 1.5; letter-spacing: .01em; }
  .mk-focus-hint { color: rgba(246,232,198,.5); font-size: 12.5px; }
  .moki-svg .mk-body, .moki-svg .mk-ear { fill: var(--mk); } .moki-svg .mk-belly { fill: #fff; opacity: .78; } .moki-svg .mk-shadow { fill: #0000001f; }
  .moki-svg .mk-eyes ellipse { fill: #1d1b2e; } .moki-svg .mk-shine { fill: #fff; } .moki-svg .mk-cheek { fill: #ff8fb1; opacity: .7; }
  .moki-svg .mk-lid { fill: none; stroke: #1d1b2e; stroke-width: 1.6; stroke-linecap: round; }
  .moki-svg .mk-z { fill: var(--mk); font: 800 8px system-ui, sans-serif; animation: mkZ 2.6s ease-in-out infinite; } .moki-svg .mk-z2 { font-size: 6px; animation-delay: 1.3s; }
  @keyframes mkZ { 0%, 100% { opacity: 0; transform: translateY(2px); } 40%, 60% { opacity: 1; } 90% { transform: translateY(-3px); } }
  .moki-btn .moki-svg { width: 30px !important; height: 30px !important; }
  /* MoKI-Knopf: kein Hover-Rahmen – MoKI selbst wacht auf (dreht schneller, leuchtet) */
  .moki-btn, .moki-btn:hover, .moki-btn:active, .moki-btn:focus, .moki-btn.on { background: transparent !important; box-shadow: none !important; border-color: transparent !important; outline: none !important; }
  .moki-btn, .mk-face, .ls-moki { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }   /* Doppeltipp ohne Zoom/Verzögerung */
  .moki-btn:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; border-radius: 50%; }
  /* Einstellungen › MoKI & KI-Funktionen */
  .mks-top { display: flex; gap: 18px; align-items: center; padding: 6px 0 12px; }
  .mks-top .sm-face { width: 132px; height: 132px; flex: none; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(circle, #1d1a12, #0d0c09); }
  .mks-top .sm-face .moki-svg { width: 92px !important; height: 92px !important; }
  .mks-top > div:last-child { display: flex; flex-direction: column; gap: 8px; }
  .mks-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
  .mks-row > b { font-size: 13.5px; } .mks-row > small { color: var(--muted); }
  .mks-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .mks-chips .chip i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 6px var(--c); background: var(--c); }
  .mks-ai { padding: 12px 14px; border-radius: 14px; background: var(--tile); display: flex; flex-direction: column; gap: 4px; } .mks-ai small { color: var(--muted); }
  .moki-comp .mk-sleep .mk-bod { transform-origin: 24px 40px; animation: mkBreath 3.2s ease-in-out infinite; }
  @keyframes mkBreath { 50% { transform: scale(1.04, .97); } }
  .moki-btn.mk-jump .moki-svg { animation: mkJump .55s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes mkJump { 30% { transform: translateY(-7px) scale(1.08); } }
  .moki-svg.mk-wave .mk-bod { transform-origin: 24px 40px; animation: mkWave 1.6s ease-in-out infinite; }
  @keyframes mkWave { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
  .mk-heart { position: fixed; z-index: 400; width: 16px; height: 16px; pointer-events: none; animation: mkHeart 1.1s ease-out forwards; }
  .mk-heart svg { width: 16px; height: 16px; fill: #ff4f7b; stroke: none; }
  @keyframes mkHeart { from { opacity: 1; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(-34px) scale(1.15); } }
  .hb-head .moki-svg { width: 28px; height: 28px; stroke: none; } .hb-head .sp { flex: 1; } .hb-head .hb-keys { width: auto; padding: 0 10px; height: 30px; font-size: 12.5px; }
  /* MoKI-Sprechblase (Tutorial, Begrüßung) */
  .mk-bub { position: fixed; z-index: 260; display: flex; gap: 12px; align-items: flex-start; width: min(380px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 18px; box-shadow: 0 14px 44px #0000003a; background: var(--panel) !important; animation: mkIn .25s ease-out; }
  .mk-bub.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); animation: none; }
  .mk-bub.big { width: min(460px, calc(100vw - 24px)); } .mk-bub.big .mk-face .moki-svg { width: 84px; height: 84px; }
  .mk-face .moki-svg { width: 54px; height: 54px; display: block; } .mk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .mk-txt b { font-size: 16px; } .mk-txt p { margin: 0; line-height: 1.45; font-size: 14.5px; }
  .mk-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; } .mk-btns .tb { width: auto; padding: 0 14px; }
  @keyframes mkIn { from { opacity: 0; transform: translateY(6px); } }
  .bulbb.has svg { stroke: #e6a100; } .bulbb .bdg { background: #e6a100; }
  .hb-panel { position: fixed; right: 12px; bottom: 70px; width: min(400px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 100px)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
  .hb-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; } .hb-head b { flex: 1; font-size: 16px; } .hb-head svg { width: 22px; height: 22px; fill: none; stroke: #e6a100; stroke-width: 1.8; }
  .hb-tabs { display: flex; gap: 4px; padding: 8px 12px; } .hb-tabs button { flex: 1; padding: 7px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; } .hb-tabs button.on { background: var(--accent-soft); color: var(--accent); }
  .hb-body { flex: 1; overflow: auto; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
  .hb-prog { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); } .hb-prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; } .hb-prog i b { display: block; height: 100%; background: #2fbf71; }
  .hb-next { padding: 12px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 6px; } .hb-next small { color: var(--accent); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; } .hb-next span { font-size: 13px; color: var(--muted); }
  .hb-q { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; } .hb-q:hover { background: var(--hover); } .hb-q i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; } .hb-q.done { color: var(--muted); text-decoration: line-through; } .hb-q.done i { background: #2fbf71; border-color: #2fbf71; }
  .hb-search { height: 36px; border-radius: 9px; padding: 0 10px; font: inherit; user-select: text; } details.hb-faq { border-bottom: 1px solid var(--line); padding: 7px 2px; } details.hb-faq summary { cursor: pointer; font-weight: 600; font-size: 13.5px; } details.hb-faq p { margin: 6px 0 2px; font-size: 13px; color: var(--muted); }
  .hb-text { min-height: 110px; border-radius: 10px; padding: 8px 10px; font: inherit; user-select: text; resize: vertical; }
  .hb-spot { position: fixed; z-index: 99300; border-radius: 12px; box-shadow: 0 0 0 4px #e6a100, 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; transition: all .2s; }
  .vrep { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; } .vrep.done { opacity: .55; } .vrep p { margin: 4px 0; white-space: pre-wrap; } .vrep small { display: block; color: var(--muted); margin-bottom: 6px; }
  /* ---------- Team-Extras ---------- */
  .kb-img { width: 100%; max-height: 130px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); pointer-events: none; } .kb-cust { color: var(--accent); font-size: 12px; font-weight: 600; } .kb-view button { font-size: 13px; padding: 6px 12px; }
  .kb-load { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: auto; padding: 4px 2px; } .kl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .kl-legend { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); } .kl-legend span { display: inline-flex; align-items: center; gap: 5px; } .kl-legend i { width: 12px; height: 12px; border-radius: 3px; }
  .kl-rows { display: flex; flex-direction: column; gap: 10px; } .kl-row { display: grid; grid-template-columns: 140px 1fr 56px 130px; gap: 10px; align-items: center; font-size: 13.5px; } .kl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kl-row b { text-align: right; font-variant-numeric: tabular-nums; } .kl-row small { color: var(--muted); }
  .kl-track { display: flex; gap: 2px; height: 16px; } .kl-track i { display: block; min-width: 4px; height: 100%; } .kl-track i:first-child { border-radius: 4px 0 0 4px; } .kl-track i:last-child { border-radius: 0 4px 4px 0; } .kl-track i:only-child { border-radius: 4px; } .kl-track i:hover { filter: brightness(1.1); } .kl-tab summary { cursor: pointer; font-size: 13px; color: var(--muted); }
  .zt-mini { position: fixed; right: 18px; top: 10px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; cursor: move; touch-action: none; max-width: 340px; } .zt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; } .zt-mini.on .zt-dot { background: #e5484d; } .zt-mc { font-variant-numeric: tabular-nums; }
  .zt-ml { border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 6px; border-radius: 7px; } .zt-ml:hover { background: var(--hover); } .zt-ms { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; } .zt-ms svg { width: 14px; height: 14px; fill: currentColor; } .zt-mini.on .zt-ms { background: #e5484d; }
  .zt-menu { position: fixed; width: 270px; max-height: 340px; overflow: auto; padding: 6px; border-radius: 12px; display: flex; flex-direction: column; gap: 1px; } .zt-menu small { color: var(--muted); font-size: 11px; font-weight: 700; padding: 6px 8px 2px; } .zt-menu button { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 7px; cursor: pointer; text-align: left; } .zt-menu button:hover { background: var(--hover); } .zt-menu button span { font-size: 11.5px; color: var(--muted); } .zt-menu input { margin: 6px 2px 2px; height: 32px; border-radius: 8px; padding: 0 8px; font: inherit; user-select: text; }
  .zt-tabs { align-self: flex-start; } .zt-tabs button { font-size: 13px; padding: 6px 14px; } .zt-mini-l { font-size: 12.5px; color: var(--muted) !important; }
  .zt-bf { display: flex; gap: 10px; flex-wrap: wrap; } .zt-bf label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); } .zt-bf input, .zt-bf select { height: 34px; border-radius: 8px; padding: 0 8px; font: inherit; min-width: 96px; } .zt-bt td:not(:first-child), .zt-bt th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; } .zt-bt .sum td { font-weight: 700; }
  .crm-boards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .crm-boards > b { width: 100%; font-size: 13px; } .crm-board { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .crm-board button { border: 0; background: none; color: var(--text); font: inherit; font-size: 12.5px; padding: 4px 8px; cursor: pointer; } .crm-board button:hover:not(:disabled) { background: var(--hover); } .crm-board button:disabled { color: var(--muted); cursor: default; } .crm-unl { color: var(--muted) !important; }
  /* ---------- Enterprise-Sicherheit ---------- */
  .tfa { display: flex; flex-direction: column; gap: 10px; font-size: 14px; } .tfa p { margin: 0; } .tfa-qr { align-self: center; padding: 6px; background: #fff; border-radius: 10px; border: 1px solid var(--line); line-height: 0; }
  .tfa-key summary { cursor: pointer; color: var(--muted); font-size: 13px; } .tfa-key code { display: block; margin: 8px 0 4px; font-size: 15px; letter-spacing: .06em; user-select: all; word-break: break-all; }
  .tfa-form { display: flex; gap: 8px; } .tfa-form input { flex: 1; height: 40px; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 18px; letter-spacing: .2em; user-select: text; }
  .tfa-codes { columns: 2; margin: 0; padding-left: 22px; font-size: 15px; } .tfa-codes code { user-select: all; } .tfa-card { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px; border-radius: 16px; } .tfa-card h2 { margin: 0 0 12px; font-size: 18px; }
  .sec-card .tprow, .fg-card .tprow, .tfa .tprow { align-items: center; gap: 8px; } .sec-card .sp, .fg-card .sp, .sec-filter .sp, .fg-top .sp { flex: 1; }
  .gate-card.gate-wide { width: min(460px, calc(100vw - 32px)); } .set-tfa { margin: 2px 0 6px; }
  .sec-page { display: flex; flex-direction: column; gap: 12px; } .sec-top, .fg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sec-top button, .fg-top .ob-seg button { font-size: 13px; padding: 6px 14px; }
  .sec-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; } .sec-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
  .sec-card header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .sec-card header b { font-size: 15px; } .sec-card .su-check small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
  .sec-num { font-size: 14px; } .sec-num input { width: 76px; height: 32px; border-radius: 8px; padding: 0 8px; font: inherit; margin: 0 4px; } .sec-num small { color: var(--muted); }
  .sec-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .sec-filter select, .sec-filter input { height: 34px; border-radius: 8px; padding: 0 8px; font: inherit; } .sec-filter input { min-width: 220px; user-select: text; }
  .sec-tablewrap { overflow: auto; max-height: 60vh; border: 1px solid var(--line); border-radius: 10px; } .sec-table { font-size: 12.5px; width: 100%; } .sec-table th { position: sticky; top: 0; background: var(--panel); } .sec-table td { vertical-align: top; } .sec-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; } .sec-det { color: var(--muted); max-width: 260px; word-break: break-word; }
  .sec-result { padding: 8px 12px; border-radius: 8px; margin: 0; } .sec-result.ok { background: color-mix(in srgb, #2e7d32 14%, transparent); } .sec-result.bad { background: color-mix(in srgb, #c62828 16%, transparent); }
  .fg-page { display: flex; flex-direction: column; gap: 12px; } .fg-list { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
  .fg-row { display: grid; grid-template-columns: 116px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; } .fg-row:hover { background: var(--hover); } .fg-row .fg-st { grid-row: span 2; align-self: center; justify-self: start; } .fg-row small { color: var(--muted); font-size: 12px; }
  .fg-st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; } .st-offen { color: #b26a00; } .st-freigegeben { color: #2e7d32; } .st-abgelehnt { color: #c62828; } .st-zurueckgezogen { color: var(--muted); }
  .fg-card { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 16px 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; } .fg-card header { display: flex; align-items: center; gap: 10px; justify-content: space-between; } .fg-card header b { font-size: 16px; }
  .fg-img { width: 100%; max-height: 46vh; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; } .fg-info { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0; font-size: 13.5px; } .fg-info dt { color: var(--muted); } .fg-info dd { margin: 0; white-space: pre-wrap; } .fg-comment { min-height: 60px; border-radius: 8px; padding: 8px; font: inherit; user-select: text; }
  /* ---------- Marktplatz ---------- */
  .mk-page { display: flex; flex-direction: column; gap: 10px; } .mk-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .mk-top .sp, .mk-row .sp, .mk-detail .sp { flex: 1; }
  .mk-q { flex: 1 1 260px; max-width: 420px; height: 38px; border-radius: 10px; padding: 0 12px; font: inherit; user-select: text; } .mk-sort { height: 38px; border-radius: 10px; padding: 0 8px; font: inherit; }
  .mk-chips { display: flex; gap: 8px; flex-wrap: wrap; } .mk-chips button { font-size: 13px; padding: 6px 12px; } .mk-hint { margin: 0; }
  .mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
  .mk-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
  .mk-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.08); } .mk-card.hidden-item { opacity: .5; }
  .mk-prev, .mk-big { height: 150px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
  .mk-prev img, .mk-big img, .mk-cv { max-width: 100%; max-height: 100%; object-fit: contain; } .mk-big { height: 280px; border: 1px solid var(--line); border-radius: 12px; }
  .mk-meta { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; } .mk-meta b { font-size: 14.5px; } .mk-meta small { color: var(--muted); font-size: 12px; }
  .mk-kindtag { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
  .mk-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; } .mk-price { font-size: 13px; font-weight: 700; } .mk-price.free { color: #2e7d32; } .mk-price.owned { color: var(--muted); font-weight: 600; }
  .mk-stars { display: inline-flex; gap: 1px; vertical-align: -2px; } .mk-stars svg { fill: none; stroke: #c9a227; stroke-width: 1.6; } .mk-stars svg.on { fill: #e0b52d; }
  .mk-theme { width: 70%; height: 70%; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; grid-template-columns: 26% 1fr; grid-template-rows: 24% 1fr 1fr; gap: 6px; padding: 8px; }
  .mk-theme i { grid-row: span 3; background: color-mix(in srgb, var(--c) 18%, transparent); border-radius: 8px; } .mk-theme b { background: var(--c); border-radius: 6px; } .mk-theme span { background: color-mix(in srgb, var(--c) 10%, var(--line)); border-radius: 6px; }
  .mk-mod svg { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .mk-detail { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 16px 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
  .mk-detail header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .mk-detail h2 { margin: 0; font-size: 19px; } .mk-detail p { margin: 0; } .mk-descr { white-space: pre-wrap; }
  .mk-detail .tprow { align-items: center; gap: 8px; } .mk-parts { margin: 0; padding-left: 20px; font-size: 14px; }
  .mk-reviews { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; } .mk-reviews h3 { margin: 0; font-size: 15px; }
  .mk-rate { display: flex; flex-direction: column; gap: 6px; } .mk-pick { display: flex; gap: 2px; } .mk-pick button { border: 0; background: none; padding: 2px; cursor: pointer; } .mk-pick svg { fill: none; stroke: #c9a227; stroke-width: 1.6; } .mk-pick button.on svg { fill: #e0b52d; }
  .mk-rtext { min-height: 54px; border-radius: 8px; padding: 8px; font: inherit; user-select: text; } .mk-rate .tb { align-self: flex-start; }
  .mk-rev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; } .mk-rev small { color: var(--muted); } .mk-rev p { width: 100%; margin: 0; white-space: pre-wrap; }
  .gs-act { white-space: nowrap; } .gs-act .tb { display: inline-flex; width: auto; min-width: 0; height: 30px; font-size: 12px; padding: 0 10px; margin: 2px; border: 1px solid var(--line); border-radius: 8px; }
  .tfa-card .tprow { align-items: center; gap: 8px; } .tfa-card .sp { flex: 1; } .gs-first { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
  .guest-note { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 13.5px; } .guest-note span { color: var(--muted); }
  .mk-prof { position: relative; width: 74%; height: 76%; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12.5px; color: var(--muted); }
  .mk-prof .bar { position: absolute; background: color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 5px; } .mk-prof.dock-top .bar { top: 6px; left: 20%; right: 20%; height: 10px; } .mk-prof.dock-bottom .bar { bottom: 6px; left: 20%; right: 20%; height: 10px; }
  .mk-prof.dock-left .bar { left: 6px; top: 18%; bottom: 18%; width: 10px; } .mk-prof.dock-right .bar, .mk-prof.dock-float .bar { right: 6px; top: 18%; bottom: 18%; width: 10px; }
  .mk-prof .rad { position: absolute; right: 18%; bottom: 16%; width: 26px; height: 26px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
  .sec-ranks summary { cursor: pointer; font-size: 13.5px; color: var(--muted); } .sec-ranks .sec-num { display: block; margin: 6px 0 0 12px; } .sec-h { margin: 10px 0 0; font-size: 14px; } .sec-wide input { width: min(420px, 70vw); }
  .sec-warn { padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, #b26a00 12%, transparent); color: var(--text) !important; } .fi-reason { min-height: 54px; border-radius: 8px; padding: 8px; font: inherit; user-select: text; max-width: 760px; }
  .fi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; } .fi-card { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
  .fi-card img { width: 100%; height: 100px; object-fit: contain; background: #fff; border-radius: 6px; } .fi-card small { color: var(--muted); font-size: 11.5px; }
  .fi-view { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 12px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; } .fi-view header { display: flex; align-items: center; gap: 10px; } .fi-view .sp { flex: 1; }
  .fi-cv { overflow: auto; background: #fff; border-radius: 10px; border: 1px solid var(--line); } .fi-cv canvas { max-width: 100%; height: auto; display: block; margin: 0 auto; }
  .wh-card small { display: block; color: var(--muted); font-size: 12.5px; } .wh-card .tb { font-size: 12.5px; padding: 0 10px; height: 30px; border: 1px solid var(--line); border-radius: 8px; width: auto; }
  .set-storage { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin: 8px 0; font-size: 13.5px; } .set-storage i { grid-column: span 2; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .set-storage em { display: block; height: 100%; background: var(--accent); } .set-storage em.full { background: #c62828; }
  .vstor-orgs { display: grid; gap: 6px; margin: 8px 0; }
  .vstor-o { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center; font-size: 13px; }
  .vstor-o i { grid-column: 1 / 3; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .vstor-o em { display: block; height: 100%; background: var(--accent); }
  .vstor-o button { grid-row: 1 / 3; grid-column: 3; }
  .sec-pool { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin: 6px 0 10px; font-size: 13.5px; }
  .sec-pool i { grid-column: span 2; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .sec-pool em { display: block; height: 100%; background: var(--accent); } .sec-pool small { grid-column: span 2; margin: 0; } .set-storage .set-st-note { grid-column: span 2; margin: 0; } .set-storage .set-st-sync { grid-column: span 2; justify-self: start; margin-top: 4px; }
  .nt2-bk-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .nt2-bk-top .sp { flex: 1; } .nt2-bk-top .tb { width: auto; padding: 0 14px; }
  .nt2-bk-r button { padding: 0 12px; }
  .nt2-bk-body h4 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .nt2-bk-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .nt2-bk-sum > div { padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
  .nt2-bk-sum b { font-size: 24px; } .nt2-bk-sum small { color: var(--muted); }
  .nt2-bk-sum .bad b { color: #c62828; } .nt2-bk-sum .mid b { color: var(--muted); } .nt2-bk-sum .late b { color: #b26a00; }
  .nt2-bk-list { display: flex; flex-direction: column; gap: 6px; }
  .nt2-bk-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .nt2-bk-row.own { cursor: pointer; } .nt2-bk-row.own:hover { border-color: var(--accent); }
  .nt2-bk-row span { display: flex; flex-direction: column; min-width: 0; } .nt2-bk-row small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .nt2-bk-row .nt2-bk-topic { color: var(--text); font-size: 13px; white-space: normal; }
  .nt2-bk-sub { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
  .nt2-bk-a { flex-direction: row !important; flex-wrap: wrap; gap: 4px; }
  .nt2-bk-a i { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 8px; background: var(--hover); }
  .nt2-bk-a i.bad { background: #c628281f; color: #c62828; } .nt2-bk-a i.late { background: #b26a001f; color: #b26a00; } .nt2-bk-a i.mid { color: var(--muted); }
  .nt2-bk-stud { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .nt2-bk-sr { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 90px; padding: 8px 12px; font-size: 13.5px; } .nt2-bk-sr + .nt2-bk-sr { border-top: 1px solid var(--line); }
  .nt2-bk-sr.head { font-weight: 700; color: var(--muted); font-size: 12px; background: var(--panel); } .nt2-bk-sr span:not(:first-child) { text-align: right; } .nt2-bk-sr .bad { color: #c62828; font-weight: 700; }
  @media (max-width: 700px) { .nt2-bk-sum { grid-template-columns: repeat(2, 1fr); } .nt2-bk-row { grid-template-columns: 1fr; gap: 4px; } .nt2-bk-sr { grid-template-columns: minmax(0, 1fr) 64px 64px 64px; } }
  .tb.nt-ymove { width: 36px; height: 36px; flex: none; } .tb.nt-ymove svg { width: 18px; height: 18px; }
  .nt2-sgset { cursor: pointer; transition: transform .12s; } .nt2-sgset:hover { transform: scale(1.06); box-shadow: 0 0 0 3px var(--accent-soft); }
  .cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } .cs-f { display: flex; flex-direction: column; gap: 4px; } .cs-f > span { font-weight: 600; font-size: 13.5px; }
  .cs-perm { padding: 12px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .cs-perm .tb { width: auto; padding: 0 16px; }
  .cs-test { display: flex; align-items: center; gap: 12px; } .cs-test .tb { width: auto; padding: 0 16px; flex: none; height: 36px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; }
  .cs-meter { position: relative; flex: 1; height: 12px; border-radius: 6px; background: var(--line); overflow: visible; }
  .cs-lvl { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--muted); transition: width .06s; } .cs-lvl.on { background: #2e9e5b; }
  .cs-thr { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--text); border-radius: 2px; }
  .cs-prev { width: 260px; max-width: 100%; border-radius: 12px; margin-top: 10px; background: #000; transform: scaleX(-1); }
  .cs-sl { margin-top: 8px; } .cs-sl input { width: 100%; }
  /* Pro-Abzeichen und Währungen oben rechts */
  .hb-free.paid { background: #1f6f46 !important; color: #fff !important; }
  .kb-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px solid var(--accent) !important; } .kb-buy > div:first-child { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
  .kb-buy small { color: var(--muted); } .kb-buyb { display: flex; gap: 8px; flex-wrap: wrap; } .kb-buyb .tb { width: auto; padding: 0 18px; height: 42px; display: inline-flex; align-items: center; gap: 6px; } .kb-buyb svg { width: 20px; height: 20px; }
  .kb-node.kb-locked { opacity: .55; filter: grayscale(.4); }
  .sacc-pro { align-self: center; padding: 3px 8px; border-radius: 8px; background: linear-gradient(120deg, #7b4dff, #c13dff); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; margin-left: -4px; } .sacc-pro[hidden] { display: none; }
  .hb-pro { display: inline-flex; align-items: center; margin-left: 5px; padding: 1px 6px; border-radius: 6px; background: linear-gradient(120deg, #7b4dff, #c13dff); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; vertical-align: middle; line-height: 1.5; }
  .swal .sw-tok-only { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 13px; cursor: default; } .swal .sw-tok-only svg { width: 18px; height: 18px; }
  .swal .sw-tg { position: relative; width: 38px; height: 34px; padding: 0; justify-content: center; } .swal .sw-tg svg { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sw-dots { position: absolute; right: 3px; bottom: 4px; display: flex; gap: 1.5px; } .sw-dots b { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
  .swal.open .sw-dots { display: none; } .swal.open .sw-tg { border-color: var(--accent); background: var(--accent-soft); }
  .sw-x { display: inline-flex; gap: 6px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s ease, opacity .2s; } .swal.open .sw-x { max-width: 340px; opacity: 1; }
  .kv-tok { color: #a87400 !important; } .kv-tok svg, .fx-coin svg, .hb-walk svg, .hb-kbal svg, .sw-tok svg { fill: none; stroke: none; }
  .swal { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; } .swal[hidden] { display: none; }
  .swal button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
  .swal button:hover { border-color: var(--accent); } .swal svg { width: 18px; height: 18px; flex: none; } .swal .sw-cr svg { fill: none; stroke: #2e9e5b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @media (max-width: 700px) { .swal .sw-cr small { display: none; } .swal button { padding: 0 9px; } }
  /* Gamification aus: Serie, Wissenstokens, Ligen und ihre Animationen verschwinden */
  body.no-gami #streakBtn, body.no-gami .hb-wal, body.no-gami .hb-tierb, body.no-gami .kv-tok, body.no-gami .kv-flame, body.no-gami .sw-tok,
  body.no-gami .kv-stats span:has(.kv-earn), body.no-gami .kv-stats span:has(.kv-xp), body.no-gami .fx-coin, body.no-gami .fx-fm, body.no-gami .fx-league { display: none !important; }
  .nset .tptoggle { align-items: center; } .nset-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin: 0 2px; }
  /* ===== Koop: Text- und Sprachkanäle ===== */
  .tm-chn { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; } .tm-chn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tm-hash { font-style: normal; color: var(--muted); font-weight: 700; width: 16px; text-align: center; flex: none; }
  .tm-vic, .tm-lock { display: inline-flex; flex: none; } .tm-vic svg { width: 16px; height: 16px; } .tm-lock svg { width: 12px; height: 12px; opacity: .6; }
  .tm-vic svg, .tm-lock svg, .tm-vst svg, .tm-vjoin svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tm-item.tm-voice.incall { color: #2e9e5b; }
  .tm-vu { display: flex; align-items: center; gap: 7px; padding: 3px 8px 3px 34px; font-size: 13px; color: var(--muted); }
  .tm-vu > .tm-vname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tm-vu .tm-av.small { width: 22px; height: 22px; font-size: 10px; transition: box-shadow .12s; }
  .tm-vu.speaking .tm-av { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #2e9e5b; } .tm-vu.speaking > .tm-vname { color: var(--text); }
  .tm-vst { display: inline-flex; gap: 3px; font-style: normal; } .tm-vst svg { width: 14px; height: 14px; }
  .tm-vjoin { width: auto !important; padding: 0 14px !important; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; } .tm-vjoin svg { width: 17px; height: 17px; }
  .gate-form input.gate-bad { border-color: #c62828 !important; box-shadow: 0 0 0 3px #c628281f; }
  .tm-callbtns { display: inline-flex; gap: 6px; margin-left: auto; } .tm-callb { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
  .tm-callbtns svg, .tm-oncall svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tm-oncall { display: inline-flex; color: #2e9e5b; font-style: normal; margin-left: 4px; }
  .tm-readonly { padding: 12px 16px; margin: 0; border-top: 1px solid var(--line); }

  /* ===== Anruf-Fenster ===== */
  .cl { position: fixed; z-index: 74; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #17181b; color: #f2f2f4; box-shadow: 0 18px 60px #0007; }
  .cl-full { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1100px, calc(100vw - 32px)); height: min(720px, calc(100vh - 32px)); }
  .cl-side { right: 12px; top: 12px; bottom: 12px; width: min(360px, calc(100vw - 24px)); }
  .cl-mini { left: 12px; bottom: 12px; flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; max-width: calc(100vw - 24px); }
  .cl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cl-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; } .cl-h .sp, .cl-bar .sp { flex: 1; }
  .cl-live { width: 10px; height: 10px; border-radius: 50%; background: #2e9e5b; box-shadow: 0 0 0 4px #2e9e5b33; flex: none; }
  .cl-mt { display: flex; flex-direction: column; min-width: 0; } .cl-mt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cl-mt small { color: #a5a7ad; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cl-mini .cl-mt { max-width: 200px; margin-right: 4px; }
  .cl-b { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: #2b2d31; color: #f2f2f4; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .12s; }
  .cl-b:hover { background: #3a3c42; } .cl-b.on { background: #f2f2f4; color: #17181b; } .cl-b.warn.on { background: #c62828; color: #fff; }
  .cl-b.red { background: #c62828; color: #fff; } .cl-b.red:hover { background: #a61f1f; } .cl-b.red.wide { width: 64px; border-radius: 21px; }
  .cl-h .cl-b { width: 34px; height: 34px; background: transparent; } .cl-h .cl-b:hover, .cl-h .cl-b.on { background: #2b2d31; color: #f2f2f4; }
  .cl-mini .cl-b { width: 36px; height: 36px; }
  .cl-bar { display: flex; align-items: center; gap: 8px; padding: 12px; flex-wrap: wrap; justify-content: center; }
  .cl-side .cl-bar { gap: 6px; } .cl-side .cl-b { width: 38px; height: 38px; }
  .cl-rwrap { position: relative; display: inline-flex; }
  .cl-rpop { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 14px; background: #2b2d31; box-shadow: 0 8px 24px #0006; }
  .cl-rpop[hidden] { display: none; } .cl-rpop button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; font-size: 21px; cursor: pointer; } .cl-rpop button:hover { background: #3a3c42; }
  .cl-shares { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; } .cl-shares:empty { display: none; }
  .cl-sh { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 12px; background: #23366b; color: #fff; text-align: left; cursor: pointer; font: inherit; }
  .cl-sh span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .cl-sh small { color: #c8d3f5; } .cl-sh em { font-style: normal; font-weight: 700; }
  .cl-stage { flex: 1; min-height: 0; display: grid; gap: 8px; padding: 8px 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: minmax(140px, 1fr); overflow: auto; }
  .cl-side .cl-stage { grid-template-columns: 1fr; grid-auto-rows: 150px; }
  .cl-stage.has-spot { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 120px; grid-auto-rows: 120px; }
  .cl-stage.has-spot .cl-tile.spot { grid-column: 1 / -1; grid-row: 1; }
  .cl-side .cl-stage.has-spot { grid-template-columns: 1fr 1fr; grid-template-rows: 200px; grid-auto-rows: 100px; }
  .cl-tile { position: relative; border-radius: 14px; background: #24262a; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; min-height: 0; transition: box-shadow .12s; }
  .cl-tile.speaking { box-shadow: inset 0 0 0 3px #2e9e5b; } .cl-tile.weak { opacity: .6; }
  .cl-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; background: #000; } .cl-tile.video video { display: block; }
  .cl-tile.screen video { object-fit: contain; } .cl-tile video.mirror { transform: scaleX(-1); }
  .cl-tile.video .cl-avw { display: none; }
  .cl-avw .cl-av { width: 72px; height: 72px; border-radius: 50%; font-size: 26px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
  .cl-stage.has-spot .cl-tile:not(.spot) .cl-av, .cl-side .cl-av { width: 48px; height: 48px; font-size: 18px; }
  .cl-name { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 9px; background: #000a; font-size: 12.5px; max-width: calc(100% - 16px); }
  .cl-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cl-st { display: inline-flex; gap: 3px; font-style: normal; } .cl-st svg { width: 14px; height: 14px; }
  .cl-b.green { background: #2e9e5b; color: #fff; } .cl-b.green:hover { background: #26864c; }
  .cl-ring { position: fixed; z-index: 75; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
    background: #17181b; color: #f2f2f4; box-shadow: 0 18px 50px #0008; animation: clRing 1.6s ease-in-out infinite; }
  .cl-ring svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cl-ring .cl-mt { min-width: 140px; } .cl-ringav .cl-av { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
  @keyframes clRing { 0%, 100% { box-shadow: 0 18px 50px #0008, 0 0 0 0 #2e9e5b66; } 50% { box-shadow: 0 18px 50px #0008, 0 0 0 10px #2e9e5b00; } }
  .cl-float { position: absolute; bottom: 30px; font-size: 34px; font-style: normal; pointer-events: none; animation: clFloat 2.2s ease-out forwards; z-index: 2; }
  @keyframes clFloat { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { transform: translateY(-10px) scale(1.15); opacity: 1; } 100% { transform: translateY(-160px) scale(1); opacity: 0; } }
  @media (max-width: 700px) { .cl-full { width: 100vw; height: 100dvh; border-radius: 0; } .cl-b { width: 40px; height: 40px; } .cl-stage { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
  /* ===== Anruf im Koop-Bereich (wie Discord), Vollbild, Ecken-Fenster ===== */
  .tm-callhost { display: flex; min-height: 0; } .tm-callhost.whole { flex: 1; } .tm-callhost.half { flex: none; height: 50%; min-height: 260px; border-bottom: 1px solid var(--line); }
  .tm-callhost:empty { display: none; }
  .cl.cl-dock { position: relative; z-index: auto; flex: 1; width: 100%; height: 100%; border-radius: 0; box-shadow: none; left: auto; top: auto; transform: none; }
  .cl.cl-full { position: fixed; inset: 0; width: auto; height: auto; left: 0; top: 0; transform: none; border-radius: 0; z-index: 90; }
  .cl.cl-pop { position: fixed; width: 300px; height: auto; border-radius: 16px; cursor: pointer; z-index: 74; transition: left .18s, top .18s; touch-action: none; }
  .cl.cl-pop.dragging { transition: none !important; cursor: grabbing; opacity: .92; }
  /* eigene Teilen-Oberfläche */
  .cl-sharing { display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; padding: 7px 8px 7px 12px; border-radius: 12px; background: #23a55a26; color: #e9fbe9; font-size: 13.5px; }
  .cl-sharing > i { width: 9px; height: 9px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 0 4px #23a55a40; animation: clPulse 1.6s infinite; } .cl-sharing .sp { flex: 1; }
  @keyframes clPulse { 50% { box-shadow: 0 0 0 7px #23a55a10; } }
  .cl-sbtn { border: 0; border-radius: 9px; padding: 6px 12px; background: #ffffff1f; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; } .cl-sbtn:hover { background: #ffffff33; } .cl-sbtn.red { background: #da373c; } .cl-sbtn.red:hover { background: #a12828; }
  .cl-mine { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #1e1f22e6; color: #fff; text-align: center; cursor: pointer; z-index: 1; } .cl-mine small { color: #b5bac1; }
  .cl-tile.screen .cl-name { z-index: 2; }
  .cl-tile.peek .cl-mine { background: transparent; color: transparent; } .cl-tile.peek .cl-mine small { color: transparent; }
  .cl-sw { width: min(560px, 94vw); padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--panel) !important; }
  .cl-sw header { display: flex; align-items: center; } .cl-sw header b { flex: 1; font-size: 17px; }
  .cl-sw-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cl-sw-o { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--tile); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
  .cl-sw-o:hover { border-color: var(--accent); background: var(--accent-soft); } .cl-sw-o svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } .cl-sw-o small { color: var(--muted); font-size: 12px; }
  .cl-sw-q { display: flex; align-items: center; gap: 12px; font-size: 13.5px; } .cl-sw-q .seg { display: flex; flex: 1; } .cl-sw-q .seg button { flex: 1; }
  @media (max-width: 520px) { .cl-sw-opts { grid-template-columns: 1fr; } .cl-sw-o { flex-direction: row; text-align: left; } }
  .cl-pop.at-br { right: 14px; bottom: 14px; } .cl-pop.at-bl { left: 14px; bottom: 14px; } .cl-pop.at-tr { right: 14px; top: 14px; } .cl-pop.at-tl { left: 14px; top: 14px; }
  .cl-pop .cl-stage { height: 168px; flex: none; padding: 6px; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); grid-auto-rows: minmax(0, 1fr); overflow: hidden; }
  .cl-pop .cl-stage.has-spot { grid-template-columns: 1fr; grid-template-rows: 1fr; } .cl-pop .cl-stage.has-spot .cl-tile:not(.spot) { display: none; }
  .cl-pop .cl-av { width: 40px !important; height: 40px !important; font-size: 15px !important; } .cl-pop .cl-name { font-size: 11px; padding: 2px 6px; }
  .cl-pbar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px; } .cl-pbar .cl-mt { flex: 1; } .cl-pbar .cl-b { width: 36px; height: 36px; }
  .cl-dock .cl-stage { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .tm-callhost.half .cl-stage { grid-auto-rows: minmax(110px, 1fr); }
  .tm-callhost.half .cl-bar { padding: 8px; } .tm-callhost.half .cl-b { width: 38px; height: 38px; }
  /* Hand gehoben: gelber Rand */
  .cl-tile.hand { box-shadow: inset 0 0 0 4px #f5c400 !important; } .cl-tile.hand .cl-name { background: #f5c400; color: #1d1d1f; }
  .cl-b.hand.on { background: #f5c400; color: #1d1d1f; }
  .tm-vu.hand .tm-av { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #f5c400 !important; } .tm-vu.hand .tm-vst { color: #c99a00; }
  /* Vorraum eines Sprachraums */
  .tm-lobby { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
  .tm-lbic svg { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } .tm-lobby > b { font-size: 22px; } .tm-lobby > small { color: var(--muted); }
  .tm-lbus { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 8px 0; } .tm-lbu { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
  .tm-lbu em { font-style: normal; color: var(--muted); } .tm-lbu .tm-av { width: 54px; height: 54px; border-radius: 50%; font-size: 18px; } .tm-lbu.hand .tm-av { box-shadow: 0 0 0 3px #f5c400; }
  .tm-lbb { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .tm-lbb .tb { width: auto; padding: 0 18px; height: 42px; }
  /* Teilen im Anruf, Beitrittsanfragen */
  .cl-smenu { position: fixed; display: flex; flex-direction: column; gap: 6px; padding: 12px; width: 300px; border-radius: 16px; }
  .cl-smenu > b { font-size: 15px; } .cl-smenu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .cl-si { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
  .cl-si:hover { background: var(--hover); } .cl-si span { display: flex; flex-direction: column; } .cl-si small { color: var(--muted); font-size: 12px; }
  .cl-sperm { display: flex; } .cl-sperm button { flex: 1; font-size: 12.5px; padding: 0 8px; }
  .cl .cl-sperm { background: #2b2d31; border-radius: 10px; padding: 2px; } .cl .cl-sperm button { background: transparent; color: #c9cbd1; border: 0; border-radius: 8px; height: 28px; cursor: pointer; }
  .cl .cl-sperm button.on { background: #f2f2f4; color: #17181b; }
  .cl-sh.mine { background: #1f4d36; cursor: default; flex-wrap: wrap; } .cl-sh.mine small { color: #bfe3cf; }
  .cl-shb { border: 0; border-radius: 10px; height: 30px; padding: 0 12px; background: #3a3c42; color: #fff; cursor: pointer; font: inherit; font-size: 13px; }
  .cl-shb.red { background: #c62828; } .cl-shb.green { background: #2e9e5b; }
  .cl-knocks { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; } .cl-knocks:empty { display: none; }
  .cl-knock { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #3a2f12; }
  .cl-knock .cl-av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; }
  .cl-knock > span:not(.cl-av) { flex: 1; display: flex; flex-direction: column; } .cl-knock .cl-av { flex: none; } .cl-knock small { color: #e8d7a8; }
  /* ===== Shop (zentriert, wie Steam) ===== */
  .sh { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 0 40px !important; }
  .sh svg { flex: none; } .sh .sh-tok, .swal .sh-tok { width: 16px; height: 16px; }
  .sh-topw { position: sticky; top: 0; z-index: 3; width: 100%; background: color-mix(in srgb, var(--paper, #fbfaf7) 88%, transparent); backdrop-filter: blur(8px); padding-bottom: 6px; }
  .sh-top { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 18px; background: color-mix(in srgb, var(--paper, #fbfaf7) 88%, transparent); backdrop-filter: blur(8px); }
  .sh-center { grid-column: 2; display: flex; align-items: center; gap: 8px; }
  .sh-side { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
  .sh-search { display: flex; align-items: center; gap: 8px; width: min(460px, 52vw); height: 44px; padding: 0 16px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 2px 10px #0000000d; }
  .sh-search svg { color: var(--muted); } .sh-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); outline: none; min-width: 0; user-select: text; }
  .sh-ib { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .sh-ib:hover, .sh-ib.on { border-color: var(--accent); color: var(--accent); } .sh-wbtn.on svg { fill: currentColor; }
  .sh-ib i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
  .sh-cr, .sh-tk { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; }
  .sh-cr { cursor: pointer; } .sh-cr:hover { border-color: var(--accent); } .sh-cr svg { stroke: #2e9e5b; }
  .sh-body { width: min(1180px, 100%); padding: 0 18px; display: flex; flex-direction: column; gap: 26px; }
  .sh-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); cursor: pointer; min-height: 300px; box-shadow: 0 10px 40px #0000001a; }
  .sh-hcv, .sh-cv, .sh-gcv { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
  .sh-hcv img, .sh-cv img, .sh-gcv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .sh-cvx { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .sh-cvx > canvas, .sh-cvx > img, .sh-cvx > div { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
  .shp-card, .sh-grid > * { min-width: 0; } .sh-cv { width: 100%; } .sh-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
  .sh-cvx .mk-mod svg { width: 46% !important; height: 46% !important; }
  .sh-hm { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; } .sh-hm > small { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
  .sh-hm > b { font-size: 28px; line-height: 1.15; } .sh-hm p { margin: 0; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .sh-hrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; } .sh-hrow .tb { width: auto; padding: 0 22px; margin-left: auto; }
  .sh-sec h3 { margin: 0 0 12px; font-size: 19px; } .sh-sec.offers h3 { color: #c62828; }
  .sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
  .shp-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); text-align: left; padding: 0; cursor: pointer; font: inherit; color: var(--text); transition: transform .12s, box-shadow .12s; }
  .shp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px #0000001f; }
  .sh-cv { aspect-ratio: 16 / 9; }
  .sh-sale { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; background: #c62828; color: #fff; font-size: 11.5px; font-weight: 800; font-style: normal; z-index: 1; }
  .sh-cm { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; } .sh-cm small { color: var(--muted); font-size: 12px; } .sh-cm b { font-size: 15px; line-height: 1.25; }
  .sh-crow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
  .sh-pr { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; white-space: nowrap; } .sh-pr s { color: var(--muted); font-weight: 500; font-size: .85em; }
  .sh-pr.sale b { color: #c62828; } .sh-pr small { color: var(--muted); font-weight: 600; }
  .sh-pt { display: inline-flex; align-items: center; gap: 3px; } .sh-pt s { margin-right: 2px; }
  .sh-empty { text-align: center; padding: 40px 0; } .sh-pubrow { display: flex; align-items: center; justify-content: center; gap: 12px; } .sh-pubrow .tb { width: auto; padding: 0 18px; }
  .sh-fpop { position: fixed; display: flex; flex-direction: column; gap: 8px; padding: 14px; width: 320px; border-radius: 16px; }
  .sh-fk { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .sh-fk label, .sh-fmine { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
  .sh-fseg { display: flex; } .sh-fseg button { flex: 1; padding: 0 6px; font-size: 12.5px; } .sh-fbtns { display: flex; gap: 8px; } .sh-fbtns .tb { flex: 1; }
  /* Produktseite */
  .sh-item { display: flex; flex-direction: column; gap: 18px; } .sh-item h1 { margin: 0; font-size: 30px; }
  .sh-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; padding: 4px 0; } .sh-back:hover { color: var(--text); }
  .sh-ilay { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
  .sh-gal { display: flex; flex-direction: column; gap: 10px; }
  .sh-gmain { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; }
  .sh-gmain > img, .sh-gmain > video { width: 100%; height: 100%; object-fit: contain; } .sh-gmain > .sh-gcv { position: absolute; inset: 0; }
  .sh-gthumbs { display: flex; gap: 8px; overflow-x: auto; } .sh-gthumbs button { flex: none; width: 110px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #222; cursor: pointer; }
  .sh-gthumbs button.on { border-color: var(--accent); } .sh-gthumbs img { width: 100%; height: 100%; object-fit: cover; } .sh-vth { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #fff; }
  .sh-ibar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .sh-ibar small { color: var(--muted); } .sh-ibar .sp { flex: 1; }
  .sh-buy { display: flex; gap: 8px; } .sh-buy .tb, .sh-pact .tb, .sh-subb .tb { width: auto; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .sh-wish.on { color: #e5484d; border-color: #e5484d; } .sh-wish.on svg { fill: currentColor; }
  .sh-pbox { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 24px #00000012; }
  .sh-pbox > small { color: var(--muted); } .sh-pbig .sh-pr { font-size: 26px; flex-wrap: wrap; } .sh-pbig .sh-tok { width: 22px; height: 22px; }
  .sh-pact, .sh-subb { display: flex; flex-direction: column; gap: 8px; } .sh-pact .tb, .sh-subb .tb { width: 100%; min-height: 44px; flex-direction: column; gap: 0; }
  .sh-pact .tb small, .sh-subb .tb small { font-size: 11px; opacity: .8; font-weight: 500; } .sh-tbtn { flex-direction: row !important; gap: 6px !important; border: 1px solid #f5b400 !important; }
  .sh-per { display: flex; } .sh-per button { flex: 1; } .sh-per i { font-style: normal; color: #2e9e5b; font-weight: 800; font-size: 11px; }
  .sh-subp { display: flex; align-items: baseline; gap: 6px; } .sh-subp b { font-size: 26px; } .sh-subp small { color: var(--muted); } .sh-subon { margin: 0; }
  .sh-ppbtn { background: #ffc439 !important; color: #111 !important; border: 0 !important; font-weight: 800 !important; }
  .sh-desc p { white-space: pre-wrap; line-height: 1.55; margin: 0; } .sh-desc h3, .sh-cont h3 { margin: 0 0 8px; }
  .sh-cont ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 20px; } .sh-cont li { line-height: 1.4; }
  .sh-admin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; border-radius: 14px; border: 1px dashed var(--line); } .sh-admin .tb { width: auto; padding: 0 14px; }
  .sh-media { width: min(720px, 94vw); max-height: 86vh; overflow: auto; padding: 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
  .sh-media header { display: flex; align-items: center; } .sh-media .sp { flex: 1; }
  .sh-mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .sh-mi { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; } .sh-mi.cov { border-color: var(--accent); }
  .sh-mi img, .sh-mvid { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; color: #fff; display: flex; align-items: center; justify-content: center; }
  .sh-mi div { display: flex; gap: 4px; padding: 6px; } .sh-mi .tb { flex: 1; font-size: 12px; height: 30px; padding: 0 6px; }
  /* Guthaben */
  .sh-credit { width: min(720px, 100%); align-self: center; display: flex; flex-direction: column; gap: 18px; }
  .sh-crbal { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(120deg, #1f6f46, #2e9e5b); color: #fff; }
  .sh-crbal svg { stroke: #fff; } .sh-crbal span { display: flex; flex-direction: column; } .sh-crbal small { opacity: .85; } .sh-crbal b { font-size: 30px; }
  .sh-credit section { padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
  .sh-credit h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
  .sh-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .sh-amt { height: 54px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); font: inherit; font-size: 18px; font-weight: 800; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
  .sh-amt.on { border-color: var(--accent); background: var(--accent-soft); } .sh-own input { width: 70%; border: 0; background: transparent; font: inherit; font-size: 15px; text-align: right; color: var(--text); outline: none; user-select: text; }
  .sh-pay { align-self: stretch; height: 46px; background: #ffc439 !important; color: #111 !important; border: 0 !important; font-weight: 800 !important; } .sh-pay:disabled { opacity: .5; }
  .sh-sandbox { color: #b26a00 !important; }
  .sh-rrow { display: flex; gap: 8px; } .sh-rrow input { flex: 1; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; user-select: text; } .sh-rrow .tb { width: auto; padding: 0 18px; }
  .sh-hr { display: flex; align-items: center; gap: 10px; padding: 7px 0; } .sh-hr + .sh-hr { border-top: 1px solid var(--line); } .sh-hr span { flex: 1; display: flex; flex-direction: column; } .sh-hr small { color: var(--muted); font-size: 12px; }
  .sh-hr em, .sha-pr em { font-style: normal; font-weight: 800; } em.pos { color: #2e9e5b; } em.neg { color: #c62828; }
  @media (max-width: 860px) { .sh-hero { grid-template-columns: 1fr; } .sh-hcv { aspect-ratio: 16 / 9; } .sh-ilay { grid-template-columns: 1fr; } .sh-pbox { position: static; }
    .sh-top { grid-template-columns: 1fr; padding: 12px; } .sh-center { grid-column: 1; justify-self: stretch; width: 100%; max-width: 640px; margin: 0 auto; } .sh-search { flex: 1; width: auto; min-width: 0; } .sh-amts { grid-template-columns: 1fr 1fr; } }
  /* Admin › Shop & Zahlungen */
  .sha { display: flex; flex-direction: column; gap: 16px; max-width: 900px; } .sha-card { padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
  .sha-card h3 { margin: 0; } .sha-card input:not([type=checkbox]) { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; user-select: text; }
  .sha-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; } .sha-new .tb { width: auto; padding: 0 16px; height: 38px; }
  .sha-out { padding: 12px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 8px; } .sha-out textarea { font-family: ui-monospace, Consolas, monospace; font-size: 14px; border-radius: 8px; padding: 8px; user-select: text; }
  .sha-out .tb { width: auto; align-self: flex-start; padding: 0 16px; }
  .sha-cr { display: grid; grid-template-columns: 150px 1fr 1.2fr 40px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; } .sha-cr + .sha-cr { border-top: 1px solid var(--line); }
  .sha-cr.head { font-weight: 700; color: var(--muted); font-size: 12px; } .sha-cr code { font-weight: 700; user-select: text; } .sha-cr small { display: block; color: var(--muted); }
  .sha-pr { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .sha-pr + .sha-pr { border-top: 1px solid var(--line); } .sha-pr span { flex: 1; display: flex; flex-direction: column; } .sha-pr small { color: var(--muted); font-size: 12px; }
  .sh-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0 18px; }
  .sh-cat { height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .sh-cat:hover { border-color: var(--accent); } .sh-cat.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .sh-sec h3 { display: flex; align-items: baseline; gap: 12px; } .sh-more { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; margin-left: auto; }
  .shp-card { border-radius: 18px !important; }
  .sh-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
  .sh-part { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
  .sh-part:hover { border-color: var(--accent); } .sh-part small { color: var(--muted); }
  /* Shop-Editor */
  .sh-edit { display: flex; flex-direction: column; gap: 16px; } .se-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .se-head h1 { margin: 0; font-size: 26px; } .se-head .sp { flex: 1; }
  .se-head .tb { width: auto; padding: 0 20px; height: 40px; }
  .se-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
  .se-card { padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; } .se-card h3 { margin: 0; font-size: 16px; } .se-card[hidden] { display: none; }
  .se-f { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; } .se-f > span { font-weight: 600; font-size: 13px; } .se-f small { color: var(--muted); font-size: 12px; }
  .se-f input, .se-f textarea, .se-f select, .se-li input { width: 100%; box-sizing: border-box; min-height: 38px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; user-select: text; }
  .se-f textarea { resize: vertical; line-height: 1.45; } .se-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .se-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; } .se-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
  .se-list { display: flex; flex-direction: column; gap: 6px; } .se-li { display: flex; gap: 6px; } .se-li .tb { width: 38px; flex: none; } .se-addc { align-self: flex-start; width: auto !important; padding: 0 14px; }
  .se-kind { display: flex; } .se-kind button { flex: 1; font-size: 13px; }
  .se-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 340px; overflow: auto; }
  .se-part { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; } .se-part:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
  .se-part span { display: flex; flex-direction: column; min-width: 0; } .se-part b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .se-part small { color: var(--muted); font-size: 12px; }
  .se-mediaw .se-madd { align-self: flex-start; width: auto; padding: 0 16px; }
  @media (max-width: 860px) { .se-grid { grid-template-columns: 1fr; } .se-parts { grid-template-columns: 1fr; } }
  /* Kalender: Suche, schnelles Anlegen, Zeitraum aufziehen, Jahr, weitere Kalender */
  .gc-create svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
  .gc-search { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); width: 190px; }
  .gc-search svg, .gc-pi svg, .gc-conn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .gc-search svg { color: var(--muted); } .gc-search input { border: 0; background: transparent; flex: 1; min-width: 0; font: inherit; color: var(--text); outline: none; user-select: text; }
  .gc-pi { display: flex; align-items: center; gap: 8px; } .gc-pi svg { color: var(--muted); }
  .gc-quick { position: fixed; z-index: 95; width: 340px; padding: 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 40px #0004; }
  .gc-qt { border: 0; border-bottom: 2px solid var(--accent); background: transparent; font: inherit; font-size: 20px; padding: 6px 2px; color: var(--text); outline: none; user-select: text; }
  .gc-quick .gc-pi { margin: 0; color: var(--muted); font-size: 13.5px; } .gc-qb { display: flex; gap: 8px; } .gc-qb .sp { flex: 1; } .gc-qb .tb { width: auto; padding: 0 14px; }
  .gc-sel { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 2px solid var(--accent); color: var(--accent); font-size: 11.5px; font-weight: 700; padding: 2px 6px; pointer-events: none; z-index: 2; }
  .gc-col { touch-action: pan-y; } .gc-cell.drop { background: var(--accent-soft) !important; outline: 2px dashed var(--accent); outline-offset: -3px; }
  .gc-pill[draggable="true"], .gc-blk[draggable="true"] { cursor: grab; }
  .gc-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 22px; padding: 10px 4px; overflow: auto; }
  .gc-ym { display: flex; flex-direction: column; gap: 4px; } .gc-ymh { align-self: flex-start; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 15px; color: var(--text); cursor: pointer; text-transform: capitalize; padding: 2px 6px; border-radius: 8px; }
  .gc-ymh:hover { background: var(--hover); } .gc-ym .gc-mg button.t { background: var(--accent); color: #fff; font-weight: 800; }
  .gc-ym .gc-mg button.e::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
  .gc-cals h4 { display: flex; align-items: center; } .gc-add { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; } .gc-add:hover { background: var(--hover); color: var(--text); }
  .gc-cal { position: relative; } .gc-sx { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; font-size: 12px; } .gc-cal:hover .gc-sx { opacity: 1; }
  .gc-err { color: #c62828; font-weight: 800; }
  .gc-conn { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; } .gc-conn:hover { border-color: var(--accent); color: var(--accent); }
  .gc-sh { margin: 4px 0 10px; }
  @media (max-width: 700px) { .gc-search { width: 120px; } }
  .og-tb { display: inline-flex !important; align-items: center; gap: 6px; } .og-tb svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  /* Bonus-Tutorials (Lektionen mit MoKI) */
  .ls-card { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; outline: none; }
  .ls-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; } .ls-head b { flex: 1; font-size: 17px; } .ls-cnt { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
  .ls-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .ls-stage { margin: 0 16px; border-radius: 14px; background: var(--tile); aspect-ratio: 320 / 140; display: grid; place-items: center; overflow: hidden; }
  .ls-svg { width: 100%; height: 100%; display: block; }
  .ls-talk { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 4px; overflow-y: auto; }
  .ls-moki { flex: none; } .ls-moki .moki-svg { width: 76px; height: 76px; display: block; }
  .ls-bubble { flex: 1; position: relative; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; }
  .ls-moki + .ls-bubble::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; background: var(--panel); box-shadow: -1px 1px 0 var(--line); transform: rotate(45deg); }
  .ls-bubble b { font-size: 15px; } .ls-bubble p { margin: 0; line-height: 1.5; } .ls-try:empty { display: none; } .ls-try .tb { width: auto; padding: 0 14px; align-self: flex-start; }
  .ls-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 14px; } .ls-foot .tb { width: auto; padding: 0 18px; }
  .ls-dots { flex: 1; display: flex; gap: 6px; } .ls-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; } .ls-dots button.on { background: var(--accent); width: 20px; border-radius: 4px; }
  .ls-svg .ls-dev { fill: var(--panel); stroke: var(--text); stroke-width: 2; } .ls-svg .ls-scr { fill: var(--tile); stroke: var(--line); stroke-width: 1.2; } .ls-svg .ls-scr2 { fill: var(--muted); opacity: .45; }
  .ls-svg .ls-line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; } .ls-svg .ls-dot { fill: var(--muted); }
  .ls-svg .ls-lab { text-anchor: middle; font: 600 11px system-ui, sans-serif; fill: var(--muted); } .ls-svg .ls-small { text-anchor: middle; font: 600 10px system-ui, sans-serif; fill: var(--text); } .ls-svg .ls-wt { fill: #fff; }
  .ls-svg .ls-arc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; animation: lsDash 1s linear infinite; }
  .ls-svg .ls-acc { fill: var(--accent); } .ls-svg .ls-acc2 { fill: var(--accent); opacity: .55; } .ls-svg .ls-white { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ls-svg .ls-chip { fill: var(--panel); stroke: var(--accent); stroke-width: 2; } .ls-svg .ls-ink { fill: none; stroke: #d23b3b; stroke-width: 2.4; stroke-linecap: round; }
  .ls-svg .ls-ink2 { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; } .ls-svg .ls-scrib { fill: none; stroke: #2f6fd6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; animation: lsDraw 2.4s ease-in-out infinite; }
  .ls-svg .ls-lasso { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; animation: lsDash 1s linear infinite; }
  .ls-svg .ls-bub { fill: var(--panel); stroke: var(--line); stroke-width: 1.2; } .ls-svg .ls-dash { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; }
  .ls-svg .ls-fly { animation: lsFlyR 2.6s ease-in-out infinite; } .ls-svg .ls-fly.ls-to-left { animation-name: lsFlyL; }
  .ls-svg .ls-pulse { transform-box: fill-box; transform-origin: center; animation: lsPulse 1.6s ease-in-out infinite; } .ls-svg .ls-pop { animation: lsPop 2.6s ease-in-out infinite; }
  .ls-svg .ls-tap { transform-box: fill-box; transform-origin: center; animation: lsTap 2s ease-in-out infinite; } .ls-svg .ls-blink { animation: lsBlink 1s steps(1) infinite; }
  .ls-svg .ls-drag { animation: lsDrag 2.8s ease-in-out infinite; } .ls-svg .ls-drag2 { animation: lsDrag2 3.2s ease-in-out infinite; }
  .ls-svg .ls-tile { transform-box: fill-box; transform-origin: center; animation: lsTile 2.4s ease-in-out infinite; }
  .ls-svg .ls-slide-top { animation: lsSlideT 3s ease-in-out infinite; } .ls-svg .ls-slide-left { animation: lsSlideL 3s ease-in-out infinite; } .ls-svg .ls-slide-bottom { animation: lsSlideB 3s ease-in-out infinite; }
  .ls-svg .ls-squeeze { transform-box: fill-box; transform-origin: left center; animation: lsSqueeze 3s ease-in-out infinite; } .ls-svg .ls-fadein { animation: lsBack 2.4s ease-in-out infinite; }
  @keyframes lsDash { to { stroke-dashoffset: -20; } }
  @keyframes lsDraw { 0% { stroke-dashoffset: 160; } 50%, 100% { stroke-dashoffset: 0; } }
  @keyframes lsFlyR { 0% { transform: translate(128px, 56px); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(168px, 26px); } 85% { opacity: 1; } 100% { transform: translate(208px, 56px); opacity: 0; } }
  @keyframes lsFlyL { 0% { transform: translate(208px, 56px); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(168px, 26px); } 85% { opacity: 1; } 100% { transform: translate(128px, 56px); opacity: 0; } }
  @keyframes lsPulse { 50% { transform: scale(1.12); } } @keyframes lsPop { 0%, 40% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes lsTap { 0%, 30% { transform: scale(1); } 40% { transform: scale(.8); } 50%, 100% { transform: scale(1); } } @keyframes lsBlink { 50% { opacity: 0; } }
  @keyframes lsDrag { 0% { transform: translate(-60px, -22px); } 45%, 60% { transform: translate(30px, 26px); } 100% { transform: translate(-60px, -22px); } }
  @keyframes lsDrag2 { 0%, 100% { transform: translate(-50px, -8px); } 50% { transform: translate(50px, 8px); } }
  @keyframes lsTile { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  @keyframes lsSlideT { 0%, 15% { transform: translateY(-30px); opacity: 0; } 35%, 100% { transform: none; opacity: 1; } }
  @keyframes lsSlideL { 0%, 35% { transform: translateX(-30px); opacity: 0; } 55%, 100% { transform: none; opacity: 1; } }
  @keyframes lsSlideB { 0%, 55% { transform: translateY(30px); opacity: 0; } 75%, 100% { transform: none; opacity: 1; } }
  @keyframes lsSqueeze { 0%, 20% { transform: scaleX(1); } 50%, 70% { transform: scaleX(.6) scaleY(1.5); } 100% { transform: scaleX(1); } }
  @keyframes lsBack { 0%, 30% { opacity: .15; } 50%, 100% { opacity: 1; } }
  .ls-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
  .ls-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .ls-item:hover { background: var(--hover); } .ls-item.done { opacity: .75; }
  .ls-item .ls-ic { width: 72px; height: 32px; flex: none; border-radius: 8px; background: var(--tile); overflow: hidden; } .ls-item .ls-ic svg { width: 100%; height: 100%; }
  .ls-item .ls-ic svg * { animation: none !important; } .ls-item .ls-ic .ls-fly { display: none; }
  .ls-item > span:last-child { display: flex; flex-direction: column; min-width: 0; } .ls-item small { color: var(--muted); font-size: 12px; }
  .ls-item .ls-ic .ls-dev, .ls-item .ls-ic .ls-scr, .ls-item .ls-ic .ls-line, .ls-item .ls-ic .ls-ink, .ls-item .ls-ic .ls-arc { stroke-width: 4; }
  .ls-item .ls-ic .ls-lab { display: none; }
  @media (prefers-reduced-motion: reduce) { .ls-svg * { animation: none !important; } }
  /* Passkeys und Gerätebestätigung */
  .pk-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 6px 0; }
  .pk-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent, #2b6cff); animation: pkspin .8s linear infinite; } @keyframes pkspin { to { transform: rotate(360deg); } }
  .pk-appr { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; } .pk-appr small { color: var(--muted); line-height: 1.4; }
  .pk-num { font: 800 44px/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: 10px 26px; border-radius: 16px; background: var(--field); border: 1px solid var(--line); }
  .pk-card { position: fixed; z-index: 2147483000; right: 16px; top: 16px; width: min(360px, calc(100vw - 32px)); padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: pkin .25s ease-out; }
  .pk-card.out { opacity: 0; transform: translateY(-8px); transition: .25s; } @keyframes pkin { from { opacity: 0; transform: translateY(-8px); } }
  .pk-head { display: flex; align-items: center; gap: 8px; } .pk-head svg { width: 22px; height: 22px; fill: none; stroke: var(--accent, #2b6cff); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pk-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; } .pk-dev { color: var(--text); font-weight: 600; }
  .pk-nums { display: flex; gap: 8px; } .pk-nums .pk-n { flex: 1; height: 52px; font: 800 22px ui-monospace, Consolas, monospace; }
  .pk-float { position: fixed; z-index: 9700; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px)); padding: 20px; }
  .pk-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; } .pk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
  .pk-row span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .pk-row small { color: var(--muted); font-size: 12px; } .pk-row .tb { width: auto; padding: 0 12px; }
  .gate-pk svg { width: 20px; height: 20px; }
  /* Umfragen (module/umfragen) */
  .uf { display: flex; flex-direction: column; gap: 10px; }
  .uf-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .uf-top h2 { margin: 0; } .uf-top > div { flex: 1; min-width: 200px; } .uf-top .tb.wide { width: auto; padding: 0 14px; }
  .uf-list { display: flex; flex-direction: column; gap: 6px; }
  .uf-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .uf-row .tb.wide { width: auto; padding: 0 12px; } .uf-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
  .uf-rt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .uf-rt small { color: var(--muted); }
  .uf-st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--hover); color: var(--muted); } .uf-st.offen { background: color-mix(in srgb, #2e9e5b 16%, transparent); color: #2e9e5b; } .uf-st.geschlossen { color: var(--danger); }
  .uf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); } .uf-tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; padding: 8px 12px; cursor: pointer; border-bottom: 2px solid transparent; } .uf-tabs button.on { color: var(--accent); border-color: var(--accent); }
  .uf-body { display: flex; flex-direction: column; gap: 10px; }
  .uf-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; } .uf-card h2, .uf-card h3 { margin: 0; }
  .uf-headc { border-top: 6px solid var(--accent); }
  .uf-title { font: inherit; font-size: 22px; font-weight: 800; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); padding: 4px 0; user-select: text; }
  .uf-descr, .uf-qhint, .uf-qt, .uf-opt input, .uf-set input:not([type=checkbox]):not([type=color]), .uf-scale input, .uf-ans input { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; user-select: text; }
  .uf-descr { min-height: 60px; resize: vertical; } .uf-qh { display: flex; gap: 8px; } .uf-qt { flex: 1; font-weight: 700; } .uf-qhint { font-size: 13px; }
  .uf-opt { display: flex; align-items: center; gap: 8px; } .uf-opt input { flex: 1; } .uf-ob { width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 50%; flex: none; } .uf-ob.sq { border-radius: 4px; }
  .uf-right.on { background: color-mix(in srgb, #2e9e5b 18%, transparent); color: #2e9e5b; }
  .uf-qf { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; } .uf-qf .tb { width: 34px; height: 34px; } .uf-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
  .uf-pts input { width: 64px; margin-left: 6px; } .uf-set { gap: 10px; } .uf-set > label:not(.uf-chk) { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); }
  .uf-scale { align-items: center; } .uf-scale input { flex: 1; min-width: 120px; }
  .uf-bars { display: flex; flex-direction: column; gap: 6px; } .uf-bar { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
  .uf-bt { height: 14px; border-radius: 4px; background: var(--hover); overflow: hidden; } .uf-bt i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); }
  .uf-bv { font-variant-numeric: tabular-nums; } .uf-bv small { color: var(--muted); } .uf-avg { margin: 0; } .uf-texts { margin: 0; padding-left: 18px; max-height: 260px; overflow: auto; font-size: 14px; user-select: text; }
  .uf-tablewrap { overflow: auto; max-height: 60vh; border: 1px solid var(--line); border-radius: 12px; } .uf-table { border-collapse: collapse; width: 100%; font-size: 13px; user-select: text; }
  .uf-table th, .uf-table td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .uf-table th { position: sticky; top: 0; background: var(--panel); }
  .uf-shb { display: grid; place-items: center; z-index: 9400; } .uf-sharec { width: min(440px, calc(100vw - 32px)); padding: 20px; display: flex; flex-direction: column; gap: 10px; } .uf-sharec h3 { margin: 0; }
  .uf-link input { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--text); user-select: all; }
  .uf-qr { display: grid; place-items: center; padding: 8px; background: #fff; border-radius: 12px; } .uf-sharec .tb.wide { width: auto; padding: 0 14px; }
  /* MoKI-Protokoll (js/protokoll.js): kleines Fenster unten rechts */
  .mkp { position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 60; width: min(340px, calc(100vw - 32px)); border-radius: 16px; box-shadow: 0 10px 34px #0003; display: flex; flex-direction: column; overflow: hidden; }
  .mkp-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
  .mkp-head .sp, .mkp-foot .sp { flex: 1; } .mkp-head .tb { width: 32px; height: 32px; }
  .mkp-head .tb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mkp-dot { width: 10px; height: 10px; border-radius: 50%; background: #d64545; animation: mkpPulse 1.4s infinite; } .mkp.paused .mkp-dot { animation: none; background: var(--muted); }
  @keyframes mkpPulse { 50% { opacity: .35; } }
  .mkp-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
  .mkp-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
  .mkp-state { margin: 0; font-size: 12px; }
  .mkp-sum { font-weight: 400; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; } .mkp-sum:empty { display: none; }
  .mkp-live { border-top: 1px dashed var(--line); padding-top: 6px; } .mkp-live:empty { display: none; }
  .mkp-live p { margin: 2px 0; font-size: 12.5px; color: var(--muted); } .mkp-live .mkp-int { font-style: italic; opacity: .7; }
  .mkp-type input { width: 100%; box-sizing: border-box; }
  .mkp-foot { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .mkp.min .mkp-body, .mkp.min .mkp-foot { display: none; } .mkp.min { width: auto; cursor: pointer; } .mkp.min .mkp-head { border-bottom: 0; }
  .mkp-wait { padding: 14px 18px; width: auto; }
  .mkp-back { position: fixed; inset: 0; z-index: 70; background: #0005; display: grid; place-items: center; padding: 16px; }
  .mkp-res { width: min(720px, 100%); max-height: 86vh; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
  .mkp-res h2 { margin: 0; padding: 16px 18px 6px; font-size: 18px; }
  .mkp-text { margin: 0; padding: 8px 18px 14px; overflow: auto; white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.5; }
  /* MoKI-Tagesbericht (js/mokibericht.js) */
  .moki-rep { gap: 10px; } .mr-head { display: flex; gap: 14px; align-items: flex-start; } .mr-orbw { width: 54px; height: 54px; flex: none; display: grid; place-items: center; }
  .mr-orbw .moki-orb { width: 54px; height: 54px; } .mr-text { flex: 1; min-width: 0; } .mr-lead { margin: 0; line-height: 1.6; font-size: 15px; }
  .mr-link { color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .mr-link:hover { background: var(--accent-soft); border-radius: 4px; }
  .mr-ask { display: flex; gap: 8px; } .mr-ask input { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); padding: 0 12px; font: inherit; user-select: text; } .mr-ask .tb { width: auto; padding: 0 16px; }
  .mr-think { color: var(--muted); display: flex; align-items: center; gap: 8px; } .mr-dots { display: inline-flex; gap: 3px; } .mr-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: mrdot 1s infinite ease-in-out; } .mr-dots i:nth-child(2) { animation-delay: .15s; } .mr-dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes mrdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
  .mk-focus-txt.mk-thinking { animation: mkthink 1.2s infinite ease-in-out; } @keyframes mkthink { 50% { opacity: .35; } }
  .mr-answer { border-radius: 12px; background: var(--hover); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; } .mr-q { color: var(--muted); font-size: 12.5px; } .mr-a p { margin: 4px 0 8px; }
  .mr-answer .tb { width: auto; align-self: flex-start; padding: 0 12px; }
  .og-bhead { margin: 10px 2px 2px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .dl-app { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
  .dl-app svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent, #2b6cff); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .dl-app span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .dl-app small { color: var(--muted); font-size: 12px; } .dl-app .tb { width: auto; padding: 0 16px; text-decoration: none; display: inline-flex; align-items: center; }
  .gate-dl { display: block; text-align: center; text-decoration: none; }
  .pk-priv { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; } .pk-priv summary { cursor: pointer; font-weight: 600; }
  .pk-priv ul { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; } .pk-priv b { color: var(--text); }
  /* Ende-zu-Ende-Verschlüsselung */
  .e2e-back { z-index: 9500; display: grid; place-items: center; }
  .e2e-card { width: min(460px, calc(100vw - 32px)); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
  .e2e-card h3 { margin: 0; font-size: 18px; } .e2e-card p { margin: 0; color: var(--muted, #666); font-size: 14px; line-height: 1.45; }
  .e2e-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent, #2b6cff) 14%, transparent); color: var(--accent, #2b6cff); }
  .e2e-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .e2e-code { font: 700 20px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .06em; text-align: center; padding: 14px; border-radius: 12px; border: 1px dashed var(--line, #ccc); user-select: all; word-break: break-all; }
  .e2e-row { display: flex; gap: 8px; flex-wrap: wrap; } .e2e-row .tb { flex: 1; width: auto; } .e2e-row.end { justify-content: flex-end; } .e2e-row.end .tb { flex: none; padding: 0 16px; }
  .tm-e2e { display: inline-grid; place-items: center; color: var(--muted, #888); margin-right: 2px; cursor: pointer; } .tm-e2e.ok { color: #2f9e5b; } .tm-e2e.off, .tm-e2e.warn { color: #c77b14; }
  .e2e-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line, #ddd); font: 600 18px ui-monospace, Consolas, monospace; text-align: center; letter-spacing: .04em; }
  @media (max-width: 420px) { .e2e-num { grid-template-columns: repeat(3, 1fr); font-size: 16px; } }
  .e2e-alert { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #c77b14 14%, transparent); color: var(--text) !important; }
  .e2e-mems { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
  .e2e-mem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #ddd); border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .e2e-mem span { flex: 1; display: flex; flex-direction: column; } .e2e-mem:disabled { opacity: .55; cursor: default; }
  .e2e-st { font-size: 12px; color: var(--muted, #888); } .e2e-st.ok { color: #2f9e5b; } .e2e-st.warn { color: #c77b14; font-weight: 600; }
  .e2e-warnbar { display: flex; align-items: center; gap: 10px; margin: 6px 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #c77b14 14%, transparent); font-size: 13px; }
  .e2e-warnbar svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #c77b14; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .e2e-warnbar span { flex: 1; } .e2e-warnbar .tb { width: auto; padding: 0 12px; }
  /* Fotos – Foto-Editor */
  .ft-back { position: fixed; inset: 0; z-index: 9000; background: #101113; color: #eceef2; outline: none; }
  .pu { display: grid; grid-template-rows: auto 1fr auto auto; height: 100%; }
  .ft-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #2a2c31; }
  .ft-logo { font-weight: 800; font-size: 17px; letter-spacing: .02em; background: linear-gradient(90deg, #ffb347, #ff6b9d 55%, #7aa7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .ft-name { color: #9aa0a8; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .ft-head .sp { flex: 1; }
  .ft-head .tb { width: auto; padding: 0 14px; color: #eceef2; } .ft-head .tb:not(.primary) { background: transparent; } .ft-head .tb:hover:not(.primary) { background: #24262b; }
  .ft-stage { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; background: repeating-conic-gradient(#17181b 0 25%, #1b1c20 0 50%) 0 0 / 22px 22px; }
  .ft-cv { display: block; box-shadow: 0 8px 30px #0008; }
  .ft-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline: 1.5px solid #fff; cursor: move; touch-action: none; background-image: linear-gradient(#fff4 1px, transparent 1px), linear-gradient(90deg, #fff4 1px, transparent 1px); background-size: 33.333% 33.333%; }
  .ft-crop i { position: absolute; width: 18px; height: 18px; border: 3px solid #fff; } .ft-crop i[data-h="nw"] { left: -3px; top: -3px; border-width: 3px 0 0 3px; cursor: nwse-resize; }
  .ft-crop i[data-h="ne"] { right: -3px; top: -3px; border-width: 3px 3px 0 0; cursor: nesw-resize; } .ft-crop i[data-h="sw"] { left: -3px; bottom: -3px; border-width: 0 0 3px 3px; cursor: nesw-resize; } .ft-crop i[data-h="se"] { right: -3px; bottom: -3px; border-width: 0 3px 3px 0; cursor: nwse-resize; }
  .ft-crop i::after { content: ""; position: absolute; inset: -14px; }
  .ft-tabs { display: flex; justify-content: center; gap: 6px; padding: 8px; border-top: 1px solid #2a2c31; }
  .ft-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 96px; padding: 7px 10px; border: 0; border-radius: 12px; background: none; color: #9aa0a8; font: inherit; font-size: 12px; cursor: pointer; }
  .ft-tabs button.on { background: #24262b; color: #fff; } .ft-tabs svg, .ft-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ft-panel { padding: 6px 14px calc(14px + env(safe-area-inset-bottom)); min-height: 96px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
  .ft-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .ft-row .chip { background: #24262b; color: #dfe2e7; border-color: transparent; } .ft-row .chip.on { background: #fff; color: #111; }
  .ft-i { width: 40px !important; height: 40px; padding: 0 !important; display: grid !important; place-items: center; background: #24262b !important; color: #eceef2 !important; } .ft-txt { width: auto !important; padding: 0 14px !important; background: #24262b !important; color: #eceef2 !important; }
  .ft-sl { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; width: min(560px, 100%); font-size: 13px; color: #c6cad1; } .ft-sl input { width: 100%; accent-color: #ff9f5a; } .ft-sl output { text-align: right; font-variant-numeric: tabular-nums; color: #9aa0a8; }
  .ft-filters { display: flex; gap: 10px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; } .ft-f { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: #c6cad1; font: inherit; font-size: 12px; cursor: pointer; }
  .ft-f canvas { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; } .ft-f.on canvas { border-color: #ff9f5a; } .ft-f.on { color: #fff; }
  @media (max-width: 560px) { .ft-tabs button { min-width: 0; flex: 1; } .ft-sl { grid-template-columns: 84px 1fr 36px; } .ft-head .ft-reset { display: none; } }
  /* Lern-Dokument aus einem Workflow */
  #tmpDocBar { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 16px; max-width: calc(100vw - 20px); box-sizing: border-box; }
  #tmpDocBar .td-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
  #tmpDocBar .td-t { display: flex; flex-direction: column; min-width: 0; } #tmpDocBar .td-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; } #tmpDocBar .td-t small { color: var(--muted); font-size: 11.5px; }
  #tmpDocBar .tb { width: auto; padding: 0 14px; white-space: nowrap; }
  @media (max-width: 560px) { #tmpDocBar .td-t small { display: none; } }
  /* Tastenkürzel-Fenster (aus der Hilfe) */
  .kb-card { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; outline: none; }
  .kb-card header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); } .kb-card header b { font-size: 16px; } .kb-card header small { flex: 1; color: var(--muted); }
  .kb-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .kb-body { overflow-y: auto; padding: 6px 16px 14px; } .kb-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  .kb-body td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; } .kb-body td:first-child { font-weight: 600; white-space: nowrap; padding-right: 14px; color: var(--accent); }
  /* Verwaltung: Person hinzufügen + Text-Import */
  .ap-card, .oi-card { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
  .ap-head, .oi-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; } .ap-head > div, .oi-head > div { flex: 1; display: flex; flex-direction: column; }
  .ap-head b, .oi-head b { font-size: 18px; } .ap-head small, .oi-head small { color: var(--muted); }
  .ap-x svg, .oi-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .ap-modes { margin: 0 18px; display: flex; } .ap-modes button { flex: 1; }
  .ap-body, .oi-body { padding: 6px 18px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
  .ap-h { margin: 10px 0 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } .ap-grid .wide { grid-column: 1 / -1; }
  @media (max-width: 560px) { .ap-grid { grid-template-columns: 1fr; } }
  .ap-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .ap-f > span { font-size: 12.5px; font-weight: 600; } .ap-f small { font-weight: 400; color: var(--muted); }
  .ap-f input, .ap-f select, .ap-f textarea, .ap-search { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--text); font: inherit; min-width: 0; }
  .ap-f textarea { min-height: 60px; resize: vertical; }
  .ap-chips { display: flex; flex-wrap: wrap; gap: 6px; } .ap-chips .tb { width: auto; padding: 0 14px; }
  .ap-acc { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
  .ap-acc-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .ap-acc-row:hover { background: var(--hover); } .ap-acc-row.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
  .ap-acc-row span:last-child { display: flex; flex-direction: column; } .ap-acc-row small { color: var(--muted); }
  .ap-more { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; } .ap-more summary { cursor: pointer; font-weight: 600; font-size: 13px; } .ap-more .ap-grid { margin-top: 10px; }
  .ap-list p { margin: 0 0 8px; }
  .ap-foot, .oi-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
  .ap-foot .tb, .oi-foot .tb { width: auto; padding: 0 18px; }
  .oi-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; } .oi-steps li > b { display: block; } .oi-steps li > span { display: block; color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
  .oi-dl, .oi-in { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .oi-dl .tb, .oi-in .tb { width: auto; padding: 0 12px; }
  .oi-ta { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--text); font: 12.5px/1.5 ui-monospace, Consolas, monospace; resize: vertical; -webkit-user-select: text; user-select: text; }
  .oi-sum { padding: 8px 12px; border-radius: 10px; background: var(--tile); font-size: 13.5px; }
  .oi-pre details { border-bottom: 1px solid var(--line); padding: 6px 2px; } .oi-pre summary { cursor: pointer; font-weight: 600; font-size: 13px; }
  .oi-pre ul { margin: 6px 0 2px; padding-left: 18px; font-size: 12.5px; color: var(--muted); } .oi-pre ul b { color: var(--text); }
  .oi-warn { color: #b26a00; } .oi-rank { display: flex; gap: 8px; align-items: center; font-size: 13px; } .oi-rank select { padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--field); color: var(--text); }
  .oi-res { display: flex; flex-wrap: wrap; gap: 8px; } .oi-res .tb { width: auto; padding: 0 14px; } .oi-ok { flex-basis: 100%; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #2e9d57 14%, var(--panel)); }
  .oi-err { flex-basis: 100%; font-size: 12.5px; } .oi-err ul { margin: 4px 0; padding-left: 18px; color: var(--muted); }
  .oi-prog { flex: 1; color: var(--muted); font-size: 13px; }
  /* Benachrichtigungen: Zeitfenster */
  .nwin { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; } .nw-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 0 30px; } .nw-body[hidden] { display: none; }
  .nw-days, .nw-pre { display: flex; flex-wrap: wrap; gap: 6px; } .nw-days .chip { min-width: 42px; }
  .nw-time { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; } .nw-time label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
  .nw-time input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--text); font: inherit; }
  .nw-now { margin: 0; }
  /* Dokument-Tabs oben im Editor */
  #docTabs { --dt-h: 36px; position: fixed; top: 0; left: 0; right: 0; height: calc(var(--dt-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0; box-sizing: border-box; z-index: 24;
    display: flex; align-items: flex-end; gap: 4px; background: var(--tile); border-bottom: 1px solid var(--line); }
  .dt-list { display: flex; align-items: flex-end; gap: 2px; height: 100%; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
  .dt-list::-webkit-scrollbar { display: none; }
  .dt-tab { display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 12px; flex: 0 1 200px; min-width: 96px; max-width: 220px; box-sizing: border-box; border-radius: 10px 10px 0 0;
    color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; -webkit-user-select: none; position: relative; }
  .dt-tab:hover { background: var(--hover); }
  .dt-tab.on { background: var(--paper); color: var(--text); font-weight: 600; box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
  .dt-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--paper); }
  .dt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dt-x, .dt-add { border: 0; background: none; padding: 0; display: grid; place-items: center; color: inherit; cursor: pointer; flex: none; }
  .dt-x { width: 22px; height: 22px; border-radius: 6px; opacity: .55; } .dt-x:hover { background: var(--tile-hover); opacity: 1; }
  .dt-wb .dt-name::before { content: "▦ "; opacity: .6; }
  .dt-add { width: 30px; height: 30px; margin-bottom: 3px; border-radius: 8px; color: var(--muted); } .dt-add:hover { background: var(--hover); color: var(--text); }
  .dt-x svg, .dt-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .dt-tab.dt-drag { z-index: 2; opacity: .9; background: var(--panel); box-shadow: var(--shadow); }
  body.touchui .dt-x { width: 28px; height: 28px; } body.touchui .dt-tab { height: 32px; }
  body.dtabs #toolbar, body.dtabs #crumbs, body.dtabs .sb-live.sb-top { margin-top: 36px; }
  /* AGB & Anmeldung (Admin) */
  .ag-wrap { display: flex; flex-direction: column; gap: 22px; max-width: 900px; } .ag-wrap section { display: flex; flex-direction: column; gap: 8px; } .ag-wrap h3 { margin: 0; }
  .ag-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px !important; } .ag-stats > div { padding: 12px 14px; border-radius: 14px; background: var(--tile); display: flex; flex-direction: column; } .ag-stats b { font-size: 22px; } .ag-stats small { color: var(--muted); }
  .ag-text { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--text); font: 13.5px/1.5 ui-monospace, Consolas, monospace; user-select: text; resize: vertical; }
  .ag-f { display: flex; flex-direction: column; gap: 4px; } .ag-f span { font-size: 12.5px; font-weight: 600; color: var(--muted); } .ag-f input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--text); font: inherit; user-select: text; }
  .ag-bb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .ag-bb .sp { flex: 1; } .ag-bb .tb { width: auto; padding: 0 14px; } .ag-gst { font-size: 13px; color: var(--muted); }
  .ag-uri { display: block; padding: 8px 10px; border-radius: 9px; background: var(--hover); font-size: 12.5px; user-select: all; word-break: break-all; }
  /* E-Mails gestalten (Admin) */
  .md { background: var(--panel) !important; backdrop-filter: none !important; width: min(1180px, 96vw); height: min(860px, 92vh); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; padding: 0; }
  .md-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); } .md-h b { font-size: 17px; } .md-h .sp { flex: 1; } .md-h .tb { width: auto; padding: 0 14px; }
  .md-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.1fr); }
  .md-form { overflow: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); }
  .md-form section { display: flex; flex-direction: column; gap: 9px; } .md-form h4 { margin: 0; }
  .md-f { display: flex; flex-direction: column; gap: 4px; flex: 1; } .md-f > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .md-f input:not([type=color]), .md-f textarea { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; user-select: text; }
  .md-f input[type=color] { width: 56px; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: var(--panel); }
  .md-row { display: flex; gap: 14px; align-items: flex-start; } .md-logo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .md-logo img { height: 36px; max-width: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 2px; }
  .md-logo .tb { width: auto; padding: 0 12px; height: 32px; } .md-logo [hidden] { display: none; }
  .md-kinds { display: flex; } .md-kinds button { flex: 1; font-size: 12.5px; } .md-form code { font-size: 12px; background: var(--hover); padding: 1px 5px; border-radius: 5px; }
  .md-tips ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
  .md-prev { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #e9ebef; min-height: 0; }
  .md-subj { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: #fff; color: #24292f; } .md-subj small { color: #6e7781; font-size: 11px; }
  .md-prev iframe { flex: 1; width: 100%; border: 0; border-radius: 10px; background: #f3f4f6; min-height: 300px; }
  .md-prev details { background: #fff; border-radius: 10px; padding: 6px 10px; color: #24292f; } .md-text { white-space: pre-wrap; font-size: 12px; margin: 6px 0 0; max-height: 160px; overflow: auto; }
  @media (max-width: 860px) { .md-body { grid-template-columns: 1fr; overflow: auto; } .md-form { border-right: 0; overflow: visible; } .md-prev { min-height: 520px; } }
  .sync-pop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: #0000004d; padding: 16px; }
  .sync-card { width: min(520px, 100%); max-height: min(640px, 90vh); display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; }
  .sync-card header { display: flex; align-items: center; justify-content: space-between; } .sync-card header b { font-size: 17px; }
  .sync-card header svg { width: 18px; height: 18px; } .sync-card .note { margin: 0; } .sync-warn { color: var(--danger) !important; }
  .sync-q { height: 36px; padding: 0 12px; border-radius: 10px; user-select: text; }
  .sync-list { overflow: auto; display: flex; flex-direction: column; gap: 2px; min-height: 120px; }
  .sync-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; } .sync-row:hover { background: var(--hover); }
  .sync-row span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sync-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sync-row small { color: var(--muted); font-size: 12px; }
  .sync-tg { width: 18px; height: 18px; accent-color: var(--accent); }
  .set-api { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; } .set-api p { margin: 0; } .set-key { display: flex; align-items: center; gap: 8px; } .set-key span { flex: 1; } .set-key .tb { width: auto; padding: 0 10px; height: 30px; font-size: 12.5px; }
  .lk-thumb { width: 100%; max-height: 90px; object-fit: contain; background: #fff; border-radius: 6px; } .lk-img { max-width: 100%; max-height: 46vh; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
  .store-market { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; margin: 4px 0 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)) !important; background: color-mix(in srgb, var(--accent) 7%, var(--panel)) !important; }
  .tm-search { width: calc(100% - 8px); margin: 4px 4px 8px; height: 34px; border-radius: 9px; padding: 0 10px; font: inherit; font-size: 13.5px; user-select: text; box-sizing: border-box; }
  .inv-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
  .inv-note > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; } .inv-note span { color: var(--muted); }
  .lib-ctx { position: fixed; z-index: 99200; display: flex; flex-direction: column; padding: 5px; border-radius: 10px; min-width: 190px; } .lib-ctx button { border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; padding: 7px 10px; border-radius: 7px; cursor: pointer; } .lib-ctx button:hover { background: var(--hover); } .lib-ctx button.danger { color: var(--danger); }
  .card.vfolder .cmeta { color: var(--muted); } .lp-wb { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
  .sh-card { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 14px 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
  .sh-card header { display: flex; align-items: center; gap: 10px; } .sh-card header b { flex: 1; font-size: 16px; } .sh-card h4 { margin: 8px 0 0; font-size: 13.5px; } .sh-card p { margin: 0; }
  .sh-row, .sh-add { display: flex; align-items: center; gap: 8px; } .sh-row > span { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; } .sh-row small { color: var(--muted); }
  .sh-row input, .sh-who { flex: 1; min-width: 0; height: 34px; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; user-select: text; } .sh-card select { height: 34px; border-radius: 8px; padding: 0 6px; font: inherit; font-size: 13px; }
  .sh-row > .sh-badge { flex: none; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 9px; background: var(--line); color: var(--muted); } .sh-pub > .sh-badge { background: var(--accent); color: #fff; }
  .sh-card .tb { width: auto; } .sh-row .tb { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
  #shareBanner { position: fixed; left: 16px; bottom: 16px; z-index: 58; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px; font-size: 13px; }
  #shareBanner .tb { width: auto; height: 30px; padding: 0 12px; border-radius: 999px; }
  /* Anwesenheit: Leiste klappt nach ein paar Sekunden zum Personen-Symbol ein */
  #shareBanner { transition: padding .25s ease, bottom .2s ease; }
  #shareBanner.pres { padding-left: 6px; }
  #shareBanner.mini { padding: 4px; gap: 0; }
  #shareBanner.mini > :not(.sb-ppl) { display: none; }
  .sb-ppl { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 8px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--text); cursor: pointer; font: inherit; font-size: 13px; }
  .sb-ppl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .sb-ppl.live { box-shadow: inset 0 0 0 2px #2e9e5b; } .sb-ppl.following { box-shadow: inset 0 0 0 2px var(--accent); }
  .sb-avs { display: flex; } .sb-avs .sb-av + .sb-av { margin-left: -7px; }
  .sb-n { font-weight: 600; font-variant-numeric: tabular-nums; }
  .sb-av { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--panel); flex: none; }
  .sb-av.off { filter: grayscale(.7); opacity: .55; }
  body.touchui .sb-ppl { height: 42px; padding: 0 12px 0 10px; } body.touchui .sb-av { width: 26px; height: 26px; }
  .pres-pop { position: fixed; z-index: 70; width: 300px; max-width: calc(100vw - 16px); padding: 10px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
  .pres-pop header { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px; } .pres-pop header small { color: var(--muted); font-size: 12px; }
  .pp-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
  .pp-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
  .pp-row .sb-av { grid-row: span 2; width: 30px; height: 30px; font-size: 13px; }
  .pp-row:not([disabled]):hover, .pp-row.on { background: var(--accent-soft); } .pp-row[disabled] { cursor: default; }
  .pp-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pp-st { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
  .pp-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9e9a90; } .pp-st.on::before { background: #2e9e5b; }
  .pp-go { grid-column: 2 / span 2; font-size: 12px; color: var(--accent); } .pp-row.on .pp-go { font-weight: 600; }
  .pres-pop footer { display: flex; justify-content: flex-end; }
  /* iPad/iPhone: kein Gummiband-Scrollen, kein Doppeltipp-Zoom, keine Lupe/Textauswahl beim Zeichnen */
  html, body { overscroll-behavior: none; }
  body { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  body.touchui { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  body.touchui input, body.touchui textarea, body.touchui select, body.touchui [contenteditable], body.touchui .selectable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
  #board, #board * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .inst-hint { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 95; width: min(560px, calc(100vw - 24px)); display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; }
  .inst-hint > div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .inst-hint span { color: var(--muted); line-height: 1.45; }
  .inst-hint svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .inst-hint .tb { width: auto; flex: none; padding: 0 14px; }
  #startErr { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 400; width: min(420px, calc(100vw - 32px)); padding: 20px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
  #startErr span { color: var(--muted); } #startErr small { color: var(--muted); font-size: 11px; word-break: break-word; }
  .tool-pop { position: fixed; z-index: 60; width: 260px; padding: 12px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
  .tool-pop .tp-row { display: flex; flex-direction: column; gap: 2px; } .tool-pop .tp-top { display: flex; justify-content: space-between; font-size: 13px; } .tool-pop .tp-v { color: var(--muted); font-variant-numeric: tabular-nums; }
  .tool-pop input[type=range] { width: 100%; touch-action: none; } .tool-pop .tp-dot { height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--hover); }
  #colorPop.editing::before { content: "Farbe für dieses Farbfeld wählen"; display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
  .av-admin { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #d32f2f !important; }
  .adm-badge { display: inline-flex; vertical-align: -3px; margin-left: 4px; } .adm-badge svg { width: 16px; height: 16px; } .adm-badge svg path { fill: #d32f2f; } .adm-badge svg path.ck { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .pw-wrap { position: relative; display: block; width: 100%; } .pw-wrap > input { width: 100%; padding-right: 40px; box-sizing: border-box; }
  .pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
  .pw-eye:hover { color: var(--text); background: var(--hover); } .pw-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #saveState { cursor: pointer; }
  #vbMini { display: none; position: relative; width: 44px; height: 40px; }
  #viewbar.vb-mini { padding: 4px; left: auto !important; top: auto !important; right: calc(10px + env(safe-area-inset-right)) !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; transform: none !important; width: auto !important; }   /* eingeklappt: immer rechts unten in der Ecke */ #viewbar.vb-mini > :not(#vbMini) { display: none !important; } #viewbar.vb-mini > #vbMini { display: flex; }
  #viewbar.vb-anim { animation: vbIn .22s ease; transform-origin: right center; } @keyframes vbIn { from { transform: translateX(16px) scaleX(.9); opacity: .3; } to { transform: none; opacity: 1; } }
  #vbMini svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #vbMini.vb-online { color: #2e9e5b; } #vbMini.vb-local { color: var(--accent); } #vbMini.vb-saving { color: var(--muted); } #vbMini.vb-error { color: #d32f2f; } #vbMini.vb-bell { color: #e8590c; }
  #vbMini.vb-bell svg { animation: vbRing .9s ease 2; transform-origin: 50% 15%; } @keyframes vbRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
  .vb-spin { animation: vbSpin 1.2s linear infinite; } @keyframes vbSpin { to { transform: rotate(360deg); } }
  .vb-n { position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #d32f2f; color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--panel); }
  .kb-mine { margin-bottom: 18px; } .kb-mine-list { display: flex; flex-direction: column; gap: 4px; }
  .kb-mine-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
  .kb-mine-row small { color: var(--muted); } .kb-mine-row.late small { color: #d32f2f; } .kb-mine-row:hover { border-color: var(--accent); }
  .av-bg { background-size: cover; background-position: center; background-color: var(--line); }
  .av-bg:not(.tm-av) { border-radius: 50%; } .av-bg { display: inline-block; flex: none; }
  /* Profilfotos als Hintergrund: Größe/Lage gegen spätere background-Kurzschreibweisen (.tm-av, .kt-av …) absichern */
  .av-bg.av-img { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
  .av-st-online, .av-st-abwesend, .av-st-beschaeftigt { position: relative; }
  .av-st-online::after, .av-st-abwesend::after, .av-st-beschaeftigt::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; min-width: 8px; min-height: 8px; max-width: 13px; max-height: 13px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
  .av-st-online::after { background: #2e9e5b; } .av-st-abwesend::after { background: #e6a100; } .av-st-beschaeftigt::after { background: #d32f2f; }
  .acc-status { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .acc-st { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
  .acc-st i { width: 9px; height: 9px; border-radius: 50%; background: #9e9a90; } .acc-st.st-auto i { background: #2e9e5b; } .acc-st.st-abwesend i { background: #e6a100; } .acc-st.st-beschaeftigt i { background: #d32f2f; } .acc-st.st-unsichtbar i { background: transparent; box-shadow: inset 0 0 0 2px #9e9a90; }
  .acc-st.on { border-color: var(--accent); background: var(--accent-soft); } .acc-sttext { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; padding: 4px 6px; }
  .tm-comp.drop, .tm-list.drop { outline: 2px dashed var(--accent); outline-offset: 2px; }
  .vs-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; } .vs-bar .vs-q { flex: 1; min-width: 200px; padding: 7px 10px; } .vs-bar select { padding: 6px 8px; } .vs-chk { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
  .lk-type { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .lk-type .lk-ans { flex: 1; min-width: 200px; padding: 10px 12px; font-size: 16px; } .lk-type .tb { width: auto; padding: 0 14px; }
  .lk-result { margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 14px; } .lk-result.ok { background: #e3f4e8; color: #1f6b3a; } .lk-result.no { background: #fbe4e4; color: #9b1c1c; }
  /* Viewer für Fotos und Dokumente */
  .vw-back { position: fixed; inset: 0; z-index: 90; background: rgba(12, 12, 14, .92); display: flex; flex-direction: column; color: #fff; }
  .vw-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); background: rgba(0,0,0,.35); }
  .vw-title { display: flex; flex-direction: column; min-width: 0; } .vw-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; } .vw-title small { opacity: .7; font-size: 12px; }
  .vw-top .sp { flex: 1; } .vw-top .tb { color: #fff; background: rgba(255,255,255,.1); border: 0; width: auto; height: 38px; padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; border-radius: 10px; }
  .vw-top .tb:hover { background: rgba(255,255,255,.2); } .vw-top .vw-i { width: 38px; padding: 0; justify-content: center; }
  .vw-top svg, .vw-nav svg, .vw-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .vw-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
  .vw-body { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
  .vw-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; cursor: grab; box-shadow: 0 6px 30px #0008; }
  .vw-pdf { width: min(1000px, 96vw); height: 100%; border: 0; background: #fff; }
  .vw-text { width: min(900px, 94vw); height: 92%; overflow: auto; background: #fff; color: #222; padding: 16px; border-radius: 8px; white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; }
  .vw-none { text-align: center; } .vw-none .note, .vw-wait { color: #ddd; }
  .vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .vw-nav.prev { left: 12px; } .vw-nav.next { right: 12px; } .vw-nav[hidden] { display: none; }
  .vw-zoom { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; background: rgba(0,0,0,.5); padding: 4px; border-radius: 12px; }
  .vw-zoom[hidden] { display: none; } .vw-zoom .tb { color: #fff; background: transparent; border: 0; width: 36px; height: 34px; } .vw-pct { font-size: 12px; min-width: 46px; text-align: center; }
  @media (max-width: 760px) { .vw-top .vw-b span { display: none; } .vw-top .vw-b { width: 38px; padding: 0; justify-content: center; } .vw-title b { max-width: 34vw; } }
  .tm-img, .dev-img img { cursor: zoom-in; }
  /* Tablet/Touch: Bearbeiten-Knöpfe an Ordnern und Notizen immer sichtbar (kein Hover) */
  @media (hover: none) { .cbtns, .lact { opacity: 1 !important; } .cbtns .tb, .lact .tb { width: 38px; height: 38px; } }
  .cbtns .tb svg, .lact .tb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  /* Logo/Name der Organisation oben links: Größe passt sich an, Leiste wird bei breiten Logos breiter */
  .snav.wide-logo { width: 128px; }
  .snav-logo { flex: none; white-space: normal !important; overflow-wrap: anywhere; line-height: 1.15; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; hyphens: auto; text-overflow: clip; }
  .snav-logo.long { font-size: 10.5px; } .snav-logo.xlong { font-size: 9.5px; }
  .snav-logo img { max-width: 100% !important; max-height: 48px !important; width: auto; height: auto; }
  .snav.wide-logo .snav-logo img { max-height: 40px !important; }
  /* Buch-Ansicht im Heft: Umblätter-Knöpfe am Rand */
  .nb-flip { position: fixed; inset: 0; pointer-events: none; z-index: 21; } .nb-flip[hidden] { display: none; }
  .nb-fl { pointer-events: auto; position: absolute; top: calc(50% + 78px); transform: translateY(-50%); width: 46px; height: 64px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--text); box-shadow: 0 2px 10px #0002; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .nb-fl.prev { left: 10px; } .nb-fl.next { right: 10px; } .nb-fl:disabled { opacity: .3; }
  .nb-fl .nb-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); pointer-events: none; transform: rotate(-90deg); opacity: 0; transition: opacity .15s; }
  .nb-fl.ringing .nb-ring { opacity: 1; } .nb-ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
  .nb-fl svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .nb-pg { pointer-events: none; position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); font-size: 12px; background: color-mix(in srgb, var(--panel) 85%, transparent); padding: 3px 10px; border-radius: 999px; color: var(--muted); }
  .sp-wk { display: inline-block; font-style: normal; font-size: 10px; font-weight: 800; background: #0002; border-radius: 4px; padding: 0 4px; margin-right: 4px; }
  .sp-ab { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; } .sp-ab .tb { width: auto; padding: 0 12px; }
  #setSearch { width: 100%; padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; box-sizing: border-box; }
  .scat .sq-hide { display: none !important; } .scat .sq-hit { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 8px; }
  #storeSearch { width: 100%; max-width: 520px; padding: 8px 12px; border-radius: 10px; margin: 6px 0; box-sizing: border-box; }
  #pageNotes.drop { outline: 3px dashed var(--accent); outline-offset: -8px; }
  .nt-info { background: var(--accent-soft); padding: 8px 12px; border-radius: 10px; }
  /* Noten (neu): Reiter, Schnitt-Kreis, Fach-Kacheln, Overlays, Klassenbuch */
  .nt2 { display: flex; flex-direction: column; gap: 14px; max-width: 1100px; margin: 0 auto; width: 100%; }
  .nt2-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .nt2-top .sp { flex: 1; }
  .nt2-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
  .nt2-tab { height: 40px; padding: 0 18px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
  .nt2-tab.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .nt2-tab.teach { border-style: dashed; } .nt2-tab.teach.on { border-style: solid; }
  .nt2-tools { display: flex; align-items: center; gap: 8px; }
  .nt2-plus { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 40%, transparent); }
  .nt2-plus svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
  .nt2-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 4px; }
  .nt2-ring { position: relative; width: 150px; height: 150px; } .nt2-ring svg { width: 100%; height: 100%; rotate: -90deg; }
  .nt2-ring circle { fill: none; stroke-width: 9; } .nt2-ring .bg { stroke: var(--hover); } .nt2-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .8s; }
  .nt2-ring.good .fg { stroke: #2e9d4a; } .nt2-ring.mid .fg { stroke: #e0a100; } .nt2-ring.bad .fg { stroke: var(--danger); }
  .nt2-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .nt2-ring b { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; } .nt2-ring small { color: var(--muted); font-size: 12px; }
  .nt2-term { height: 36px; border-radius: 18px; padding: 0 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
  .nt2-pdf { margin-top: 4px; }
  .nt2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .nt2-subj { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden; transition: transform .1s, border-color .15s; }
  .nt2-subj::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--sc); }
  .nt2-subj:hover { border-color: var(--accent); transform: translateY(-1px); }
  .nt2-sx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .nt2-sx b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nt2-sx small { color: var(--muted); font-size: 12px; }
  .nt2-sg { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
  .nt2-sg.good { border-color: #2e9d4a; color: #2e9d4a; } .nt2-sg.mid { border-color: #e0a100; color: #b07d00; } .nt2-sg.bad { border-color: var(--danger); color: var(--danger); }
  .nt2-sg.big { width: 58px; height: 58px; font-size: 17px; }
  .nt2-empty { text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; } .nt2-empty .tb { width: auto; padding: 0 16px; }
  .nt2-tasks { margin-top: 6px; }
  .nt2-back { position: fixed; inset: 0; z-index: 76; background: var(--backdrop); display: flex; align-items: center; justify-content: center; padding: 16px; }
  .nt2-pop { background: var(--panel); color: var(--text); border-radius: 20px; padding: 18px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
  .nt2-ph { display: flex; align-items: center; gap: 12px; } .nt2-ph > div { display: flex; flex-direction: column; } .nt2-ph b { font-size: 20px; } .nt2-ph small { color: var(--muted); } .nt2-ph .sp { flex: 1; } .nt2-x { width: 36px !important; }
  .nt2-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
  .nt2-col { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
  .nt2-ch { display: flex; justify-content: space-between; align-items: baseline; } .nt2-ch span { font-weight: 800; } .nt2-ch .good { color: #2e9d4a; } .nt2-ch .mid { color: #b07d00; } .nt2-ch .bad { color: var(--danger); }
  .nt2-add { display: flex; gap: 6px; } .nt2-add input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; text-align: center; font-weight: 700; user-select: text; } .nt2-add select { height: 36px; border-radius: 10px; } .nt2-add .tb { width: 40px !important; }
  .nt2-pf { display: flex; flex-direction: column; gap: 8px; } .nt2-pf .tb { width: auto; align-self: flex-start; padding: 0 14px; }
  .nt2-new { display: flex; gap: 8px; } .nt2-new input { flex: 1; height: 40px; border-radius: 10px; padding: 0 12px; user-select: text; } .nt2-new .tb, .nt2-imp { width: auto !important; padding: 0 14px; } .nt2-imp { align-self: flex-start; }
  .nt2-sl { display: flex; flex-direction: column; gap: 6px; }
  .nt2-srow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
  .nt2-srow i { width: 12px; height: 12px; border-radius: 50%; background: var(--sc); flex: none; } .nt2-srow span { flex: 1; display: flex; flex-direction: column; } .nt2-srow small { color: var(--muted); font-size: 12px; } .nt2-srow .tb { width: auto; padding: 0 12px; }
  .nt2-src { font-size: 12px; color: var(--accent); font-weight: 600; }
  /* Noten: Fach-Einstellungen, Notenraster, LK/Abi */
  .nt2-setp { width: min(620px, 100%); }
  .nt2-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; } .nt2-f > span { font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
  .nt2-f input.nm, .nt2-tg input { height: 40px; border-radius: 10px; padding: 0 12px; font-size: 15px; user-select: text; }
  .nt2-pre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .nt2-pre .chip { height: 34px; padding: 0 12px; }
  .nt2-abin .note { margin-right: 4px; } .nt2-abin .chip[data-a] { min-width: 38px; justify-content: center; }
  .nt2-split { display: flex; align-items: center; gap: 12px; } .nt2-split input { flex: 1; accent-color: var(--accent); } .nt2-split b { font-size: 13px; white-space: nowrap; min-width: 112px; } .nt2-split b:last-child { text-align: right; }
  .nt2-tg { display: flex; gap: 6px; } .nt2-tg input { flex: 1; }
  .nt2-gpb { width: 40px !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; } .nt2-gpb svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .nt2-add .nt2-gpb { height: 36px; flex: none; }
  .nt2-sbtns { display: flex; gap: 8px; flex-wrap: wrap; } .nt2-sbtns .sp { flex: 1; } .nt2-sbtns .tb { width: auto; padding: 0 16px; } .nt2-sbtns .danger { color: var(--danger); }
  .nt2-gp { position: fixed; z-index: 77; display: grid; gap: 5px; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nt2-gp.nts { grid-template-columns: repeat(3, 46px); } .nt2-gp.pts { grid-template-columns: repeat(4, 46px); }
  .nt2-gv { height: 38px; border: 0; border-radius: 9px; font: inherit; font-weight: 800; cursor: pointer; background: var(--tile); color: var(--text); }
  .nt2-gv.good { background: #dff0d8; color: #1e5e20; } .nt2-gv.mid { background: #fff3cd; color: #7a5200; } .nt2-gv.bad { background: #f8d7da; color: #8c1d18; }
  .nt2-quick { display: flex; flex-direction: column; gap: 6px; } .nt2-quick .chip { height: 32px; padding: 0 10px; font-size: 13px; }
  .nt2-bdg { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; margin-right: 5px; color: #fff; vertical-align: 1px; }
  .nt2-bdg { display: inline-block; } .nt2-bdg.nt2-lk-b { background: var(--accent); } .nt2-bdg.nt2-abi-b { background: #e0a100; }
  .nt2-abib { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: #e0a100; color: #fff; }
  /* Noten: festgelegte Note, Verlauf */
  .nt2-man { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; } .nt2-man span { flex: 1; } .nt2-man .tb { width: auto; padding: 0 12px; }
  .nt2-chart { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; position: relative; }
  .nt2-chh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .nt2-chh .sp { flex: 1; } .nt2-chh > b { font-size: 15px; }
  .nt2-csub { height: 32px; border-radius: 16px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; }
  .nt2-crange button { padding: 0 10px; font-size: 12.5px; }
  .nt2-cbody { position: relative; }
  .nt2-svg { width: 100%; height: auto; display: block; overflow: visible; }
  .nt2-svg .grid { stroke: var(--line); stroke-width: 1; } .nt2-svg .ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
  .nt2-svg .band { fill: var(--accent); opacity: .07; }
  .nt2-svg .dot { fill: var(--muted); opacity: .28; }
  .nt2-svg .avg { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .nt2-svg .avg.old { stroke: var(--muted); opacity: .45; } .nt2-svg .avg.hot { stroke: var(--accent); stroke-width: 2.5; }
  .nt2-svg .avgpt { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
  .nt2-svg .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
  .nt2-tip { position: absolute; top: -6px; transform: translateY(-100%); display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; pointer-events: none; white-space: nowrap; z-index: 2; }
  .nt2-tip small { color: var(--muted); }
  .nt2-cleg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); } .nt2-cleg span { display: flex; align-items: center; gap: 6px; }
  .nt2-cleg i { display: inline-block; } .nt2-cleg i.l { width: 16px; height: 3px; border-radius: 2px; background: var(--accent); } .nt2-cleg i.d { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .4; } .nt2-cleg i.b { width: 14px; height: 10px; border-radius: 3px; background: var(--accent); opacity: .15; }
  /* Noten: Zertifikate */
  .nt2-cstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .nt2-cstats > div { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
  .nt2-cstats b { font-size: 24px; font-weight: 800; } .nt2-cstats small { color: var(--muted); font-size: 12.5px; } .nt2-cstats i { font-style: normal; font-size: 11.5px; color: var(--muted); }
  .nt2-cbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .nt2-cbar .sp { flex: 1; } .nt2-cbar .seg button { padding: 0 12px; } .nt2-cbar .tb.primary { width: auto; padding: 0 16px; }
  .nt2-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
  .nt2-cert { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
  .nt2-cert > b { font-size: 15px; } .nt2-cert > small { color: var(--muted); font-size: 12.5px; }
  .nt2-cres { font-size: 13px; font-weight: 600; color: var(--accent); }
  .nt2-cfoot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .nt2-cfoot i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
  .nt2-ctag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .nt2-ctag.wettbewerb { color: #2f7de1; } .nt2-ctag.zertifikat { color: #1f9d6b; } .nt2-ctag.stipendium { color: #c58a00; } .nt2-ctag.engagement { color: #b4489a; }
  .nt2-cform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; } .nt2-cform .w { grid-column: 1 / -1; } @media (max-width: 560px) { .nt2-cform { grid-template-columns: 1fr; } }
  .nt2-cform label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .nt2-cform input, .nt2-cform select, .nt2-cform textarea { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; padding: 0 10px; }
  .nt2-cform textarea { height: auto; padding: 8px 10px; resize: vertical; }
  .nt2-cquick { display: flex; gap: 6px; flex-wrap: wrap; } .nt2-cquick .chip { height: 28px; padding: 0 10px; font-size: 12.5px; }
  .nt2-cfile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .nt2-cfile .tb { width: auto; padding: 0 12px; }
  .nt2-cbtns { display: flex; gap: 8px; align-items: center; } .nt2-cbtns .sp { flex: 1; } .nt2-cbtns .tb { width: auto; padding: 0 16px; }
  /* Lehrkräfte */
  .nt2-sub { align-self: flex-start; }
  .nt2-tbody { display: flex; flex-direction: column; gap: 12px; }
  .nt2-start { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; } @media (max-width: 760px) { .nt2-start { grid-template-columns: 1fr; } }
  .nt2-sbig { padding: 20px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; display: flex; flex-direction: column; gap: 4px; }
  .nt2-sbig small { opacity: .85; } .nt2-sbig b { font-size: 22px; }
  .nt2-sbtn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .nt2-sbtn .tb { width: auto; padding: 0 16px; height: 42px; } .nt2-sbtn .primary { background: #fff !important; color: var(--accent) !important; } .nt2-sbtn .nt2-other { background: #ffffff26 !important; color: #fff !important; border-color: #ffffff55 !important; }
  .nt2-today { display: flex; flex-direction: column; gap: 6px; }
  .nt2-lrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .nt2-lrow:hover, .nt2-lrow.cur { border-color: var(--accent); } .nt2-lrow > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .nt2-lrow small { color: var(--muted); }
  .nt2-per { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; } .nt2-lgo { color: var(--accent); font-weight: 600; font-size: 13px; }
  .nt2-shead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
  .nt2-stitle { display: flex; flex-direction: column; } .nt2-stitle small { color: var(--muted); } .nt2-stitle b { font-size: 19px; }
  .nt2-badge { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #e0a100; color: #fff; margin-top: 4px; }
  .nt2-topic { flex: 1; min-width: 200px; height: 40px; border-radius: 10px; padding: 0 12px; user-select: text; } .nt2-end { width: auto !important; padding: 0 14px; }
  .nt2-steps { align-self: flex-start; }
  .nt2-arow { display: flex; align-items: center; gap: 10px; } .nt2-arow .sp { flex: 1; } .nt2-arow .tb { width: auto; padding: 0 14px; }
  .nt2-att { display: flex; flex-direction: column; gap: 6px; }
  .nt2-arow2 { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-left: 5px solid #2e9d4a; border-radius: 12px; background: var(--panel); flex-wrap: wrap; }
  .nt2-arow2 b { flex: 1; min-width: 140px; } .nt2-arow2.fehlt { border-left-color: var(--danger); } .nt2-arow2.spaet { border-left-color: #e0a100; } .nt2-arow2.entschuldigt { border-left-color: var(--muted); }
  .nt2-arow2 .seg button { padding: 0 10px; }
  .nt2-next { align-self: flex-end; width: auto !important; padding: 0 20px; height: 44px; }
  .nt2-cls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
  .nt2-st { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
  .nt2-st.away { opacity: .45; filter: grayscale(1); background: var(--hover); }
  .nt2-sth { display: flex; align-items: baseline; gap: 8px; } .nt2-sth .nt-who { flex: 1; } .nt2-sth small { color: var(--muted); font-size: 12px; }
  .nt2-done { display: flex; gap: 4px; flex-wrap: wrap; } .nt2-done:empty { display: none; } .nt2-done .nt-chip { height: 30px; min-width: 34px; cursor: default; }
  .nt2-nt { font-size: 11px; font-weight: 700; padding: 6px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
  .nt2-in { display: flex; gap: 6px; } .nt2-in input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; padding: 0 10px; user-select: text; } .nt2-in input.v { flex: 0 0 64px; text-align: center; font-weight: 700; }
  .nt2-in select { height: 36px; border-radius: 10px; min-width: 0; } .nt2-in .tb { width: auto !important; padding: 0 12px; }
  .nt2-rtop { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .nt2-rtop label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
  .nt2-rtop select, .nt2-rtop input { height: 38px; border-radius: 10px; padding: 0 10px; min-width: 150px; user-select: text; }
  .nt2-rep { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
  .nt2-rh, .nt2-rr { display: grid; grid-template-columns: minmax(140px, 1.4fr) 70px 80px 90px minmax(120px, 1.4fr) 64px; gap: 8px; align-items: center; min-width: 620px; }
  .nt2-rh { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 10px; }
  .nt2-rr { padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .nt2-rr .good { color: #2e9d4a; font-weight: 700; } .nt2-rr .mid { color: #b07d00; font-weight: 700; } .nt2-rr .bad { color: var(--danger); font-weight: 700; }
  .nt2-rr input { height: 34px; border-radius: 8px; padding: 0 8px; min-width: 0; user-select: text; } .nt2-rr input.v { text-align: center; font-weight: 700; } .nt2-rr .tb { width: auto !important; padding: 0 10px; height: 32px; }
  .nt2-rbar { display: flex; gap: 8px; } .nt2-rbar .sp { flex: 1; } .nt2-rbar .tb { width: auto; padding: 0 16px; }
  /* öffentliche Ansicht (Share to Web / Kunden-Link) */
  body.pu-web #toolbar, body.pu-web #viewbar, body.pu-web #toolPanel, body.pu-web #pageBar, body.pu-web #assets, body.pu-web #crumbs,
  body.pu-web #activity, body.pu-web #help, body.pu-web #selBar, body.pu-web #fmtBar, body.pu-web #shareBanner, body.pu-web #home,
  body.pu-web #vscroll, body.pu-web #radial, body.pu-web #shellBulb { display: none !important; }
  #webBar { position: fixed; top: 10px; left: 10px; right: 10px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 10px; flex-wrap: nowrap; }
  #webBar .sp { flex: 1; } #webBar .tb { width: auto; flex: none; padding: 0 12px; } #webBar .web-zoom .tb { padding: 0 8px; }
  @media (max-width: 960px) { #webBar .web-zoom, #webBar .web-login { display: none; } }
  .web-brand { display: flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; flex: none; }
  .web-brand svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
  .web-brand b { font-size: 15px; }
  .web-doc { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; border-left: 1px solid var(--line); }
  .web-doc b, .web-doc small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .web-doc small { color: var(--muted); font-size: 11.5px; }
  .web-pick { max-width: 180px; }
  .web-zoom { display: flex; gap: 4px; flex: none; }
  .web-zoom .tb { min-width: 34px; }
  #webBar .web-fb { display: inline-flex; align-items: center; gap: 6px; position: relative; }
  #webBar .web-fb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .web-n { font-style: normal; background: var(--accent); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; line-height: 17px; }
  #webBar .web-get { text-decoration: none; white-space: nowrap; }
  #webHint { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 12.5px; color: var(--text); text-decoration: none; }
  #webHint .web-hl { color: var(--accent); white-space: nowrap; }
  .web-fbp { top: 74px !important; }
  .web-fbp .web-fname { margin-bottom: 6px; }
  .web-empty { position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%); padding: 18px 22px; z-index: 50; }
  @media (max-width: 760px) {
    .web-doc small, .web-zoom, #webBar .web-login, .web-brand b { display: none; }
    #webBar .web-fb span { display: none; }
    #webHint span { display: none; }
  }
  .gs-h { margin: 22px 0 6px; font-size: 13px; } .gs-link { width: 100%; min-width: 220px; height: 30px; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12px; user-select: text; }
  .hb-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 2px 4px; }
  .tm-linkbtn { width: auto !important; padding: 0 14px; margin-top: 6px; align-self: flex-start; display: inline-flex; }
  .tm-fbar { display: flex; gap: 8px; padding: 8px 12px 0; } .tm-fbar .tb, .task-clip { width: auto; padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; }
  .tm-fbar .tb svg, .task-clip svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .task-mat { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
  .task-file { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 13px; color: var(--text); text-decoration: none; background: var(--tile); }
  .task-fx { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font: inherit; }
  .pp-card { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 10px; background: var(--panel); border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px #0005; }
  .pp-head { display: flex; justify-content: space-between; align-items: flex-start; } .pp-head h3 { margin: 0; } .pp-head small { color: var(--muted); }
  .pp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .pp-bar label { display: flex; gap: 6px; align-items: center; font-size: 13px; } .pp-bar .sp { flex: 1; }
  .pp-range { width: 180px; padding: 6px 8px; } .pp-where { padding: 6px 8px; } .pp-bar .tb { width: auto; padding: 0 12px; }
  .pp-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; padding: 4px; min-height: 160px; }
  .pp-page { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: 10px; padding: 6px; background: var(--tile); color: var(--text); font: inherit; cursor: pointer; opacity: .55; }
  .pp-page.on { border-color: var(--accent); opacity: 1; } .pp-th { width: 100%; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border-radius: 4px; }
  .pp-th img { max-width: 100%; max-height: 100%; } .pp-page b { font-size: 12px; }
  .pp-foot { display: flex; align-items: center; gap: 10px; } .pp-foot .note { flex: 1; } .pp-foot .tb { width: auto; padding: 0 16px; }
  .dev { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }
  .dev-tabs { display: flex; gap: 6px; flex-wrap: wrap; } .dev-tab { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
  .dev-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; } .dev-tab i { font-style: normal; font-size: 11px; background: #e5484d; color: #fff; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center; }
  .dev-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; } .dev-body h3 { margin: 6px 0 0; font-size: 15px; }
  .dev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
  .dev-card { text-align: left; border: 1px solid var(--line); background: var(--tile); color: var(--text); border-radius: 14px; padding: 14px 16px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
  .dev-card b { font-size: 28px; line-height: 1.1; } .dev-card span { font-weight: 600; } .dev-card small { color: var(--muted); }
  .dev-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
  .dev-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .dev-bar .tb { width: auto; padding: 0 14px; } .dev-quick { flex: 1; min-width: 200px; padding: 8px 10px; } .dev-kf { padding: 7px 8px; }
  .dev-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } .dev-seg button { border: 0; background: transparent; color: var(--text); padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; } .dev-seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .dev-rep { border: 1px solid var(--line); border-left: 4px solid #e5484d; border-radius: 10px; padding: 10px 12px; background: var(--tile); }
  .dev-rep.dst-in_arbeit { border-left-color: #e6a100; } .dev-rep.dst-erledigt { border-left-color: #2e9e5b; opacity: .7; }
  .dev-rh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .dev-rh small { color: var(--muted); } .dev-rh .sp { flex: 1; } .dev-st { font-size: 12px; color: var(--muted); }
  .dev-kind { font-size: 11.5px; font-weight: 600; color: var(--k); border: 1px solid var(--k); border-radius: 999px; padding: 0 8px; }
  .dev-rep p { margin: 6px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; cursor: text; } .dev-rep .dev-note, .dev-rep .dev-ctx, .dev-rep .dev-rh small { user-select: text; -webkit-user-select: text; } .dev-ctx { color: var(--muted); font-size: 12px; display: block; }
  .dev-note { margin-top: 6px; font-size: 13px; background: var(--accent-soft); border-radius: 8px; padding: 6px 8px; white-space: pre-wrap; }
  .dev-ra { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .dev-ra .tb { width: auto; height: 30px; padding: 0 12px; font-size: 12.5px; }
  .dev-todo { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--tile); }
  .dev-todo input { width: 18px; height: 18px; flex: none; } .dev-tt { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; } .dev-tt small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dev-todo.done b { text-decoration: line-through; color: var(--muted); }
  .dev-prio { font-size: 11.5px; border-radius: 999px; padding: 1px 8px; background: var(--line); } .dev-prio.p2 { background: #f9e3c0; color: #8a5a00; } .dev-prio.p3 { background: #f7d4d4; color: #a02020; } .dev-prio.p0 { opacity: .6; }
  .dev-body.dev-mod { display: block; } .dev-body.dev-mod > .pagebody { height: auto; }
  .dev-chat { flex: 1; min-height: 360px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .dev-msgs { flex: 1; overflow-y: auto; padding: 8px 4px; min-height: 0; } .dev-comp { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--line); }
  .dev-comp { align-items: flex-end; } .dev-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .dev-comp textarea { width: 100%; min-height: 40px; max-height: 160px; resize: vertical; padding: 8px 10px; } .dev-comp .tb { width: auto; padding: 0 16px; }
  .dev-comp .dev-att, .dev-comp .dev-pollb { padding: 0; width: 40px; } .dev-comp .tb svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dev-chip { font-size: 12px; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 3px 8px; cursor: pointer; align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dev-img { display: inline-block; margin-top: 6px; } .dev-img img { max-width: min(360px, 100%); max-height: 300px; border-radius: 10px; display: block; border: 1px solid var(--line); }
  .dev-file { display: inline-flex; flex-direction: column; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tile); color: var(--text); text-decoration: none; max-width: 100%; } .dev-file small { color: var(--muted); }
  .dev-poll { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--tile); max-width: 420px; display: flex; flex-direction: column; gap: 6px; } .dev-poll small { color: var(--muted); }
  .dev-opt { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: transparent; color: var(--text); font: inherit; cursor: pointer; overflow: hidden; text-align: left; }
  .dev-opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent-soft); z-index: 0; transition: width .3s; } .dev-opt > * { position: relative; z-index: 1; }
  .dev-opt i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); flex: none; } .dev-opt.on i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--tile); }
  .dev-search { width: 100%; max-width: 520px; padding: 8px 12px; border-radius: 10px; }
  .dev-typing, .tm-typing { min-height: 0; height: 0; overflow: hidden; font-size: 12px; color: var(--muted); padding: 0 12px; transition: height .15s; font-style: italic; }
  .dev-typing.on, .tm-typing.on { height: 20px; }
  .tm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px 0 2px; background: #9e9a90; vertical-align: middle; }
  .tm-dot.st-online { background: #2e9e5b; } .tm-dot.st-abwesend { background: #e6a100; } .tm-dot.st-beschaeftigt { background: #d32f2f; }
  .dev-todo.late small, .dev-card2.late small { color: #d32f2f; }
  .dev-list.dev-board { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; flex-direction: row; }
  .dev-col { background: var(--hover); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
  .dev-col.over { outline: 2px dashed var(--accent); } .dev-col h4 { margin: 2px 4px 4px; font-size: 13px; display: flex; justify-content: space-between; } .dev-col h4 i { font-style: normal; color: var(--muted); }
  .dev-card2 { background: var(--tile); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; cursor: grab; }
  .dev-card2.drag { opacity: .5; } .dev-card2 small { color: var(--muted); font-size: 12px; } .dev-card2 .dev-prio { align-self: flex-start; }
  .dev-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
  .dev-team section { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--tile); display: flex; flex-direction: column; gap: 8px; } .dev-team h3 { margin: 0; }
  .dev-team .tb { width: auto; padding: 0 14px; align-self: flex-start; } .dev-tbtns { display: flex; gap: 6px; flex-wrap: wrap; }
  .dev-tlist { display: flex; flex-direction: column; gap: 4px; } .dev-titem, .dev-witem { text-align: left; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 8px; padding: 7px 10px; font: inherit; cursor: pointer; display: flex; flex-direction: column; }
  .dev-titem small, .dev-witem small { color: var(--muted); font-size: 11.5px; } .dev-witem.on { border-color: var(--accent); background: var(--accent-soft); }
  .dev-wiki { display: grid; grid-template-columns: 260px 1fr; gap: 14px; min-height: 360px; } .dev-wnav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
  .dev-wnav h4 { margin: 8px 2px 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .dev-wpage { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--tile); min-width: 0; } .dev-wh { display: flex; gap: 8px; align-items: flex-start; } .dev-wh .sp { flex: 1; } .dev-wh .tb { width: auto; padding: 0 12px; }
  .dev-wh h2 { margin: 0; } .dev-wh small { color: var(--muted); } .dev-wbody { margin-top: 10px; line-height: 1.5; overflow-wrap: anywhere; } .dev-wbody code { background: var(--hover); padding: 1px 5px; border-radius: 4px; }
  .dev-wform { display: flex; flex-direction: column; gap: 8px; } .dev-wform input { padding: 8px 10px; } .dev-wb { min-height: 300px; padding: 10px; font: inherit; resize: vertical; } .dev-wbtns { display: flex; gap: 8px; justify-content: flex-end; } .dev-wbtns .tb { width: auto; padding: 0 16px; }
  @media (max-width: 760px) { .dev-wiki { grid-template-columns: 1fr; } .dev-list.dev-board { grid-template-columns: repeat(4, 78vw); } }
  .dev-opt span { flex: 1; } .dev-opt em { font-style: normal; font-size: 12px; color: var(--muted); }
  /* Handy: ganzer Admin-Bereich scrollt (Übersicht, To-dos, Meldungen …), nicht nur die Liste darin */
  @media (max-width: 760px) { .dev-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 24px; } .dev-body > .dev-list:not(.dev-board) { overflow: visible; min-height: auto; flex: none; } .dev-body > .dev-list.dev-board { overflow-y: visible; flex: none; } }
  @media (max-width: 760px) { .dev-comp .dev-send { padding: 0 10px; } .dev-chat { min-height: 60dvh; } .dev-tabs { flex-wrap: nowrap; overflow-x: auto; } .dev-tab { white-space: nowrap; } }
  #offBadge { position: fixed; top: 12px; right: 50%; transform: translateX(50%); z-index: 90; border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 12px; font-weight: 600;
    background: #9a6700; color: #fff; box-shadow: 0 4px 14px #0003; cursor: pointer; } body.touchui #offBadge { top: 74px; }
  /* Konten & System: Reiter mit Symbolen, Abschnitte, Kontenliste */
  .vw-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
  .vw-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .vw-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .vw-tab small { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--tile); color: var(--muted); }
  .vw-tab:hover { background: var(--hover); color: var(--text); } .vw-tab.on { background: var(--accent-soft); color: var(--accent); } .vw-tab.on small { background: var(--panel); color: var(--accent); }
  .vw-sec { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); } .vw-sec h3 { margin: 0; font-size: 15px; } .vw-sec > .note { margin: 0; }
  .vw-sec .vmail { margin: 4px 0 0; }
  .vw-head { display: flex; align-items: flex-start; gap: 12px; } .vw-head > div { flex: 1; } .vw-head h3 { margin: 0; font-size: 15px; } .vw-head .note { margin: 2px 0 0; } .vw-head .tb { width: auto; padding: 0 16px; flex: none; }
  .plist.vw-list { max-height: none; gap: 4px; }
  .vw-row { padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; } .vw-row.off { opacity: .6; }
  .vw-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--muted); font-size: 12px; font-weight: 700; }
  .vw-gs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .vw-g { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--tile); color: var(--muted); }
  .vw-ed { width: 34px !important; height: 34px; padding: 0 !important; display: grid !important; place-items: center; flex: none; } .vw-ed svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .vmail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
  .vmail > b { flex-basis: 100%; } .vmail > small { flex: 1 1 260px; color: var(--muted); } .vmail .tb { width: auto; padding: 0 12px; }
  .gate-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 6px 0; } .gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .ro-imp { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; } .ro-imp th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
  .ro-imp td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; } .ro-impk { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); margin: 1px 2px 1px 0; }
  .ro-impk.neu { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); } .ro-impx { display: block; color: #b3261e; }
  .ro-rsearch { width: 100%; margin: 0 0 8px; padding: 7px 10px; }
  .ro-modh, .ro-mod2 { display: grid; grid-template-columns: 1fr 70px 110px; align-items: center; gap: 8px; }
  .ro-modh { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 2px 4px; } .ro-modh span + span, .ro-mod2 > input, .ro-mod2 > .ro-auto { justify-self: center; }
  .ro-mod2 { padding: 5px 2px; border-bottom: 1px solid var(--line); }
  .ro-mods:has(.ro-mod2) { display: block; max-width: 620px; }
  .ro-auto { position: relative; display: inline-flex; width: 38px; height: 22px; cursor: pointer; } .ro-auto input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .ro-auto i { flex: 1; border-radius: 999px; background: var(--line); transition: background .15s; position: relative; pointer-events: none; }
  .ro-auto i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px #0003; }
  .ro-auto input:checked + i { background: var(--accent); } .ro-auto input:checked + i::after { transform: translateX(16px); } .ro-auto.off { opacity: .35; }
  /* Rechte für einzelne Personen */
  .ro-prights { margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; }
  .ro-prights summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; } .ro-prights summary::-webkit-details-marker { display: none; }
  .ro-prights summary h4 { margin: 8px 0; } .ro-pcount { color: var(--muted); }
  .ro-plist { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; margin-bottom: 10px; }
  .ro-pgroup { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 2px; }
  .ro-prow { display: grid; grid-template-columns: 1fr 190px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
  .ro-prow small { display: block; color: var(--muted); font-size: 11px; } .ro-prow select { padding: 5px 6px; }
  .cm-panel { position: fixed; right: 16px; top: 60px; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 90px); z-index: 99000; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; }
  .cm-panel header { display: flex; align-items: center; } .cm-panel header b { flex: 1; } .cm-panel .tb { width: auto; } .cm-list { overflow: auto; display: flex; flex-direction: column; gap: 8px; }
  .cm-item { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 8px; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .cm-item small { color: var(--muted); } .cm-item p { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; }
  .cm-done { border: 0; background: none; color: var(--muted); cursor: pointer; } .cm-text { min-height: 60px; border-radius: 8px; padding: 8px; font: inherit; font-size: 13px; user-select: text; }
  .gate-card .gate-forgot, .gate-card .gate-reg { display: block; margin: 4px 0; } .gate-form select { height: 44px; border-radius: 10px; padding: 0 10px; font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
  .tp-rnote { margin: 4px 0 0; font-size: 12px; }
  #bmBtn svg { fill: none; } .bm-pop { position: fixed; z-index: 99000; width: 280px; padding: 10px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
  .bm-pop header { display: flex; flex-direction: column; } .bm-pop header small { color: var(--muted); font-size: 12px; } .bm-list { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow: auto; }
  .bm-row { display: flex; align-items: center; gap: 2px; } .bm-row button { border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; border-radius: 7px; padding: 6px 8px; }
  .bm-row button:hover { background: var(--hover); } .bm-go { flex: 1; display: flex; align-items: center; gap: 8px; text-align: left; min-width: 0; } .bm-go span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
  .bm-go small { color: var(--muted); font-size: 11.5px; } .bm-go svg, .c-fav svg { width: 15px; height: 15px; fill: #e8590c; stroke: #e8590c; stroke-width: 1.6; flex: none; } .bm-ed, .bm-rm { color: var(--muted) !important; font-size: 12px !important; }
  .bm-fav { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); } .cthumb { position: relative; } .c-fav { position: absolute; top: 6px; right: 8px; }
  .re-fs { gap: 8px; flex-wrap: wrap; align-items: center; } .re-tool { height: 38px; border-radius: 8px; padding: 0 8px; font: inherit; }
  .hside { display: none; flex-direction: column; width: 230px; padding: 12px 12px 16px; } #pageNotes.side-open .hside { display: flex !important; }
  .lnav { display: flex; flex-direction: column; gap: 2px; } .lnav-i { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; padding: 9px 10px; border-radius: 9px; cursor: pointer; text-align: left; }
  .lnav-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; } .lnav-i:hover { background: var(--hover); } .lnav-i.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
  .lnav-prof { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; } .lnav-prof small { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
  .lnav-prof select { height: 38px !important; } .lnav-prof .row { display: flex; gap: 4px; margin: 0; } .lnav-prof .tb { width: 38px; height: 36px; display: flex; align-items: center; justify-content: center; } .lnav-prof .tb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mk-bm { display: flex; flex-direction: column; } .bmk-card .cthumb { position: relative; } .bmk-tag { position: absolute; left: 8px; bottom: 8px; background: #ffe066; color: #5c4400; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; box-shadow: 0 1px 3px #0003; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .c-fav svg { fill: #f59f00 !important; stroke: #f59f00 !important; }
  .pthumb { position: relative; } .pt-mark { position: absolute; top: -2px; right: 8px; width: 12px; height: 18px; background: #e8590c; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
  .gate-guest { margin-top: 12px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
  .gate-guest span { color: var(--muted); } .gate-guest div { display: flex; gap: 8px; margin-top: 6px; } .gate-gname { flex: 1; min-width: 0; height: 40px; border-radius: 10px; padding: 0 10px; font: inherit; border: 1px solid var(--line); user-select: text; } .gate-gbtn { width: auto !important; }
  .c-star { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--panel) 85%, transparent); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 2; }
  .card:hover .c-star, .c-star.on, .lrow:hover .c-star { opacity: 1; } .c-star svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; } .c-star.on svg { fill: #f59f00; stroke: #f59f00; }
  .c-star.in-row { position: static; opacity: 1; background: transparent; } .drag-armed { outline: 2px solid var(--accent); outline-offset: 2px; transform: scale(.98); }
  .fthumb { position: relative; } @media (hover: none) { .c-star { opacity: .85; } }
  #board.over-bm { cursor: grab !important; } #board.over-bm.panning { cursor: grabbing !important; }
  .bm-menu { position: fixed; z-index: 99000; width: 250px; padding: 10px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
  .bm-mname { height: 34px; border-radius: 9px; padding: 0 10px; font: inherit; font-weight: 700; user-select: text; }
  .bm-mcol { display: flex; gap: 6px; } .bm-mcol button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #0002; cursor: pointer; padding: 0; } .bm-mcol button.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
  .bm-mrow { display: flex; gap: 6px; } .bm-mrow .tb { flex: 1; } .bm-mrow .danger { color: var(--danger); }
  #bmBtn.on { color: #e8590c; } #bmBtn.on svg { fill: #e8590c33; } .bm-ghost { position: fixed; z-index: 99500; pointer-events: none; transform: translate(-20px, -50%); display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: #ffe066; color: #4a3800; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px #0004; }
  .bm-ghost svg { width: 16px; height: 16px; fill: #e8590c; stroke: #e8590c; }
  /* Halbkreis-Radialmenü: Hand mit dem Stift verdeckt nichts */
  #radial.half-links .ring, #radial.half-rechts .ring { inset: -44px; }
  #radial.half-links .ring { clip-path: inset(-10px 50% -10px -10px); } #radial.half-rechts .ring { clip-path: inset(-10px -10px -10px 50%); }
  #radial.half-links .cats, #radial.half-rechts .cats { top: 50%; flex-direction: column; transform: translateY(-50%); }
  #radial.half-links .cats { left: calc(50% + 66px); } #radial.half-rechts .cats { left: auto; right: calc(50% + 66px); }
  .hl-card { width: min(480px, 100%); } .hl-list { display: flex; flex-direction: column; gap: 4px; }
  .hl-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); opacity: .6; } .hl-row.on { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
  .hl-row label { flex: 1; display: flex; gap: 8px; align-items: center; cursor: pointer; } .hl-row .tb { width: 32px; height: 32px; }
  .dhello b { font-size: 24px; } .dhello span { color: var(--muted); }
  .dcard { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; min-width: 0; }
  .dcard.wide { grid-column: span 2; }
  .dcard h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; justify-content: space-between; align-items: center; }
  .dmore { height: 30px !important; font-size: 12px; text-transform: none; letter-spacing: 0; }
  .dles { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-left: 5px solid; border-radius: 8px; background: var(--tile); margin-bottom: 5px; }
  .dles.now { box-shadow: 0 0 0 2px var(--accent); }
  .dles .dt { color: var(--muted); font-size: 12px; width: 70px; flex: none; }
  .dles small { color: var(--muted); margin-left: auto; }
  .drow { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
  .drow:hover { background: var(--hover); }
  .drow small { color: var(--muted); }
  .drow.late small { color: var(--danger); }
  .drow.new { background: var(--accent-soft); }
  .drecent { display: flex; gap: 10px; overflow-x: auto; padding: 3px 3px 4px; scrollbar-width: none; overscroll-behavior-x: contain; } .drecent::-webkit-scrollbar { display: none; }
  .drec { border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; gap: 4px; width: 130px; flex: none; text-align: left; }
  .drimg { height: 90px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 30px; color: var(--muted); }
  .drimg img { max-width: 100%; max-height: 100%; }
  .drec b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #activity { width: 380px; max-height: 70vh; display: flex; flex-direction: column; z-index: 95; }
  #activityList { overflow: auto; padding: 0 8px 8px; }
  .act-item { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; }
  .act-item:hover { background: var(--hover); }
  .act-item.new { background: var(--accent-soft); }
  .act-item .act-ic { grid-row: span 2; font-size: 18px; text-align: center; }
  .act-item small { color: var(--muted); font-size: 11px; }
  @media (max-width: 760px) {
    #home { flex-direction: column-reverse; }
    .snav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; flex: none; }
    .snav-logo { display: none !important; }
    .snav-item { min-width: 0; flex: 1 1 0; padding: 6px 0; font-size: 10.5px; } .snav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .snav-item .bdg { right: calc(50% - 20px); }
    .snav-item.draw { margin-top: 0; }
    .shead { padding: 8px 12px; }
    .shead #homeClose { display: none; }
    .spage { padding: 12px; }
    .dash { grid-template-columns: 1fr; }
    .dcard.wide { grid-column: auto; }
    .shell-cols { grid-template-columns: 1fr; }
    #pageNotes { position: relative; }
    #pageNotes .hside { position: absolute; top: 0; bottom: 0; left: 0; width: min(280px, 82vw); z-index: 6; background: var(--panel); border-right: 1px solid var(--line); box-shadow: var(--shadow);
      display: flex !important; transform: translateX(-105%); transition: transform .22s ease; overflow: auto; }
    #pageNotes.side-open .hside { transform: none; }
    #pageNotes.side-open::before { content: ""; position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.28); }
    #homeGrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .sp-table { font-size: 12px; }
    .sp-time { width: 40px; }
  }

  /* ---------- Kacheln auf der Zeichenfläche ---------- */
  #tileLayer { position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
  .tilebox { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: auto; display: flex; flex-direction: column; overflow: hidden; }
  .tile-body { flex: 1; overflow: auto; }
  .tile-grip { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--line) 50%); touch-action: none; }
  .tile-label { display: none; }
  .tilebox.tiny > :not(.tile-label) { visibility: hidden; }
  .tilebox.tiny .tile-label { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; color: var(--accent); background: var(--accent-soft); }

  /* ---------- Chat im Teams-Stil ---------- */
  .tm { display: grid; grid-template-columns: 240px 1fr; gap: 0; height: min(70vh, 640px); padding: 0 !important; }
  .pagebody.tm { height: calc(100vh - 140px); max-width: none; }
  .tm-nav { border-right: 1px solid var(--line); overflow: auto; padding: 8px; }
  .tm-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 10px 4px 4px; }
  .tm-team { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
  .tm-team b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tm-av { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
  .tm-av.small { width: 26px; height: 26px; border-radius: 50%; font-size: 11px; background: #8d6e63; }
  .tb.tm-mini { width: 28px; height: 28px; font-size: 16px; }
  .tm-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px 7px 14px; border-radius: 8px; cursor: pointer; }
  .tm-item:hover { background: var(--hover); }
  .tm-item.on { background: var(--accent-soft); color: var(--accent); }
  .tm-item.unread span:first-child, .tm-item.unread b { font-weight: 800; }
  .tm-item > span:first-child:not(.tm-av) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tm-item .badge, .tm-team .badge { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
  .tm-cn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .tm-cn b, .tm-cn small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tm-cn small { color: var(--muted); font-size: 12px; }
  .tm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
  .tm-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .tm-head b { margin-right: 10px; }
  .tm-tab { border: 0; background: transparent; padding: 6px 10px; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 600; color: var(--muted); }
  .tm-tab.on { color: var(--accent); border-color: var(--accent); }
  .tm-back { display: none !important; }
  .tm { transition: grid-template-columns .22s ease; }
  .tm.nav-off:not(.narrow) { grid-template-columns: 0 1fr; }
  .tm.nav-off:not(.narrow) .tm-nav { overflow: hidden; padding: 0; border-right: 0; min-width: 0; width: 0; visibility: hidden; }
  .tm > .tm-nav, .tm > .tm-main { min-width: 0; }
  .tb.tm-navtg { width: 34px; height: 34px; flex: none; } .tb.tm-navtg svg { width: 20px; height: 20px; } .tm.narrow .tm-navtg { display: none !important; }
  .tm.nav-off:not(.narrow) .tm-navtg { color: var(--accent); }
  /* Nachrichten: Text markieren und kopieren (auch auf dem iPad/Handy) */
  .dm-text, .tm-pt, .tm-reply > div, .chat-m, .dm-ref span, .tm-post .tm-pt {
    -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; cursor: text; }
  /* iPad/Handy: lange drücken öffnet das Nachrichten-Menü (Reagieren, Antworten, Kopieren, Text markieren) – Hover-Knöpfe gibt es dort nicht */
  @media (hover: none), (pointer: coarse) {
    .dm-tools, .dm:hover .dm-tools { display: none !important; }
    .dm.tools-on .dm-tools { display: flex !important; } .dm.tools-on { background: var(--hover); }
    .dm-tools button { width: 40px !important; height: 36px !important; }
    .dm-text, .tm-pt, .tm-reply > div, .chat-m, .dm-ref span { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    .dm-text.selecting, .tm-pt.selecting, .tm-reply > div.selecting { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
    .dm, .tm-post, .tm-reply { -webkit-touch-callout: none; }
  }
  .msg-menu.mm-touch { min-width: 220px; padding: 8px; border-radius: 16px; }
  .msg-menu.mm-touch .mm-item { padding: 12px 14px; font-size: 16px; } .msg-menu.mm-touch .mm-rx button { width: 42px; height: 42px; font-size: 22px; }
  .tm-list { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
  .tm-post { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
  .tm-ph { display: flex; align-items: center; gap: 8px; }
  .tm-ph small { color: var(--muted); }
  .tm-pt { margin: 6px 0 2px 34px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .tm-replies { margin: 6px 0 0 34px; border-left: 3px solid var(--line); padding-left: 10px; display: flex; flex-direction: column; gap: 6px; }
  .tm-reply { font-size: 14px; overflow-wrap: anywhere; } .tm-reply small { color: var(--muted); }
  .tm-replybtn, .tm-more { align-self: flex-start; border: 0; background: transparent; color: var(--accent); cursor: pointer; padding: 4px 0; font-weight: 600; }
  /* Chat wie Discord: flache Liste statt Blasen */
  .tm-list { gap: 0 !important; }
  .dm { position: relative; padding: 2px 10px 2px 8px; border-radius: 6px; margin-top: 12px; } .dm.cont { margin-top: 0; }
  .dm:hover { background: var(--hover); }
  .dm-row { display: grid; grid-template-columns: 44px 1fr; gap: 0 10px; align-items: start; }
  .dm-av .tm-av { width: 38px; height: 38px; font-size: 13px; border-radius: 50%; margin-top: 2px; }
  .dm-time { font-size: 10px; color: var(--muted); text-align: right; padding-top: 4px; visibility: hidden; font-variant-numeric: tabular-nums; } .dm:hover .dm-time { visibility: visible; }
  .dm-head { display: flex; align-items: baseline; gap: 8px; } .dm-head b { font-size: 15px; } .dm-head small { color: var(--muted); font-size: 11.5px; }
  .dm-text { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.4; } .dm-body { min-width: 0; }
  .dm-text, .tm-post .tm-pt, .tm-reply .tm-pt, .chat-m { max-width: min(68ch, 100%); overflow-wrap: anywhere; word-break: break-word; }   /* Nachrichten brechen nach einer gut lesbaren Breite um */
  .dm-ref { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--muted); padding: 0 0 2px 54px; max-width: 100%; text-align: left; position: relative; }
  .dm-ref i { position: absolute; left: 22px; top: 50%; width: 26px; height: 10px; border-left: 2px solid var(--line); border-top: 2px solid var(--line); border-radius: 6px 0 0 0; }
  .dm-ref span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dm-ref:hover span { color: var(--text); } .dm-ref b { color: var(--text); white-space: nowrap; }
  .dm-tools { position: absolute; right: 10px; top: -12px; display: none; background: var(--panel); border-radius: 8px; box-shadow: 0 1px 6px #0003; padding: 2px; } .dm:hover .dm-tools { display: flex; }
  .dm-tools button { border: 0; background: transparent; width: 28px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 15px; display: grid; place-items: center; padding: 0; } .dm-tools button:hover { background: var(--hover); color: var(--text); }
  .dm-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dm .rx-add { display: none; } .dm .rx-bar { margin-top: 0; } .dm .rx-bar:has(.rx-chip) { margin: 3px 0; }
  .dm-replybar { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; align-items: center; gap: 8px; background: var(--hover); border-radius: 10px 10px 0 0; padding: 5px 12px; font-size: 12.5px; color: var(--muted); }
  .dm-replybar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dm-replybar button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
  .msg-menu { position: fixed; z-index: 97; padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
  .mm-rx { display: flex; gap: 2px; padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 2px; } .mm-rx button { border: 0; background: transparent; font-size: 18px; width: 36px; height: 34px; border-radius: 8px; cursor: pointer; } .mm-rx button:hover { background: var(--hover); }
  .mm-item { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); } .mm-item:hover { background: var(--accent-soft); }
  .tm-post { background: transparent !important; border: 0 !important; border-radius: 6px !important; padding: 6px 10px !important; margin-top: 8px; } .tm-post:hover { background: var(--hover) !important; }
  .tm-post .tm-pt { padding-left: 34px; white-space: pre-wrap; } .tm-post > .rx-bar, .tm-post > a, .tm-post > .tm-file { margin-left: 34px; }
  .tm-replies { margin-left: 34px; border-left: 2px solid var(--line); padding-left: 10px; }
  .mention { color: var(--accent); }
  .mention.me { background: #ffe08a; color: #6b4b00; border-radius: 4px; padding: 0 3px; }
  .mentioned { box-shadow: inset 3px 0 0 #e6a100; background: color-mix(in srgb, #ffe08a 22%, var(--panel)) !important; }
  .flash { animation: msgFlash 2.2s ease; }
  @keyframes msgFlash { 0%, 35% { background: color-mix(in srgb, var(--accent) 30%, var(--panel)); box-shadow: 0 0 0 3px var(--accent); } 100% { } }
  img.tm-av { object-fit: cover; padding: 0; }
  .rx-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
  /* Chat: geteilte Zeichnung / Einladung hervorheben */
  .dm.dm-shared .dm-body, .tm-post.tm-shared { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 10px; }
  .dm.dm-shared .dm-body { padding: 6px 10px 8px; margin: 2px 0; } .tm-post.tm-shared { padding-left: 10px; }
  .tm-linkbtn { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; padding: 0 14px !important; height: 32px; margin: 6px 0 2px; }
  .tm-linkbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .rx-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 1px 8px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
  .rx-chip span { font-size: 12px; color: var(--muted); font-weight: 700; } .rx-chip.mine { border-color: var(--accent); background: var(--accent-soft); }
  .rx-add { position: relative; display: inline-flex; align-items: center; opacity: 0; transition: opacity .12s; }
  .chat-m:hover .rx-add, .tm-post:hover > .rx-bar .rx-add, .tm-reply:hover .rx-add, .rx-add:focus-within { opacity: 1; }
  .rx-open { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 15px; padding: 0 4px; } .rx-open small { font-size: 10px; }
  .rx-pick { display: none; position: absolute; left: 0; bottom: 100%; background: var(--panel); border-radius: 999px; box-shadow: 0 4px 16px #0003; padding: 3px; gap: 2px; z-index: 5; }
  .rx-add:hover .rx-pick, .rx-add:focus-within .rx-pick { display: flex; }
  .rx-pick button { border: 0; background: transparent; font-size: 18px; cursor: pointer; border-radius: 50%; width: 32px; height: 32px; } .rx-pick button:hover { background: var(--hover); transform: scale(1.15); }
  .tm-comp { position: relative; }
  .emo-pop { position: absolute; bottom: 100%; right: 60px; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 8px; z-index: 20; margin-bottom: 6px; }
  .emo-pop button { border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 8px; height: 34px; } .emo-pop button:hover { background: var(--hover); }
  .at-pop { position: absolute; bottom: 100%; left: 8px; width: 280px; padding: 6px; z-index: 20; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
  .at-item { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
  .at-item.on, .at-item:hover { background: var(--accent-soft); } .at-item b { display: block; font-size: 14px; } .at-item small { color: var(--muted); font-size: 12px; }
  .tm-comp { display: flex; gap: 6px; align-items: flex-end; padding: 8px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .tm-comp.reply { border-top: 0; padding: 4px 0; }
  .tm-comp textarea { flex: 1; min-width: 160px; min-height: 42px; max-height: 140px; padding: 8px; resize: vertical; user-select: text; }
  .tm-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; background: var(--field); margin-top: 6px; }
  .tm-fcrumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 4px 12px; color: var(--muted); font-size: 13px; }
  .tm-fcrumb { border: 0; background: none; color: inherit; padding: 4px 6px; border-radius: 6px; cursor: pointer; font: inherit; } .tm-fcrumb:hover { background: var(--hover); } .tm-fcrumb.on { color: var(--text); font-weight: 600; }
  .tm-folder { cursor: pointer; } .tm-folder.drop { outline: 2px dashed var(--accent); }
  .tm-folder .tm-ficon svg { width: 22px; height: 22px; fill: color-mix(in srgb, var(--accent) 25%, transparent); stroke: var(--accent); stroke-width: 1.6; }
  .tm-file .tm-fmore { margin-left: auto; flex: none; }
  .tm-file small { display: block; color: var(--muted); font-size: 12px; }
  .tm-file.small { display: inline-flex; }
  .tm-ficon { font-size: 22px; }
  .tm-img { max-width: 260px; max-height: 200px; border-radius: 8px; margin-top: 6px; display: block; }
  .tm.narrow { grid-template-columns: 1fr; }
  .tm.narrow .tm-main { display: none; }
  .tm.narrow.show-main .tm-nav { display: none; }
  .tm.narrow.show-main .tm-main { display: flex; }
  .tm.narrow .tm-back { display: inline-flex !important; }

  /* ---------- Noten ---------- */
  .nt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
  .nt-head small { color: var(--muted); display: block; }
  .nt-avg { font-size: 30px; font-weight: 800; }
  .nt-avg.small { font-size: 16px; }
  .nt-avg.good { color: #2e7d32; } .nt-avg.mid { color: #c27a00; } .nt-avg.bad { color: var(--danger); }
  .nt-subj { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
  .nt-sh { display: flex; justify-content: space-between; align-items: center; }
  .nt-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
  .nt-chip { min-width: 40px; height: 36px; border-radius: 10px; border: 0; font-weight: 800; cursor: pointer; background: var(--tile); transition: transform .08s; }
  .nt-chip.good { background: #dff0d8; color: #1e5e20; } .nt-chip.mid { background: #fff3cd; color: #7a5200; } .nt-chip.bad { background: #f8d7da; color: #8c1d18; }
  .nt-chip.heavy { box-shadow: inset 0 -3px 0 #0003; }
  .nt-chip.add { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
  .sp-cell.ro { cursor: default; }
  .sp-cell.clash { outline: 2px solid var(--danger); }

  /* ---------- Radialmenü-Editor ---------- */
  .rerow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
  .rechip { cursor: grab; touch-action: none; user-select: none; }
  .rechip.item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); font-size: 13px; }
  .rechip.item svg, .redot svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .rechip.item.avail { opacity: .85; border-style: dashed; }
  .rechip .rx { margin-left: 2px; color: var(--muted); cursor: pointer; font-weight: 400; padding: 0 3px; }
  .rechip .rx:hover { color: var(--danger); }
  .redragging { opacity: .35; }
  .reghost { position: fixed; z-index: 200; pointer-events: none; box-shadow: var(--shadow); }
  .redrop.over { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 10px; }
  .relist { min-height: 44px; padding: 6px; border-radius: 10px; background: var(--tile); }
  .relabel { font-size: 12px; color: var(--muted); margin-top: 8px; }
  .rename { height: 36px; padding: 0 10px; font-weight: 600; user-select: text; }
  .regrid { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
  .rering { position: relative; width: 140px; height: 140px; border-radius: 50%; background: var(--tile); margin-top: 6px; }
  .redot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--field); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px #0002; font-size: 13px; }
  .recenter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11px; color: var(--muted); text-align: center; max-width: 70px; }
  .ricon { font-size: 18px; line-height: 1; }

  /* ---------- Seiten: Leiste links, Scrollleiste rechts ---------- */
  #pageBar { top: 78px; left: 10px; bottom: 76px; width: 140px; z-index: 9; display: flex; flex-direction: column; }
  #pageBar .phead { padding: 8px 6px 4px 12px; }
  #pageList { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
  .pthumb { border: 0; background: transparent; padding: 3px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .08s; }
  .pthumb canvas { border-radius: 4px; box-shadow: 0 1px 4px #0003; background: #fff; }
  .pthumb span { font-size: 11px; color: var(--muted); }
  .pthumb.on { background: var(--accent-soft); }
  .pthumb.on span { color: var(--accent); font-weight: 700; }
  #pageBar .phead { display: flex; align-items: center; gap: 2px; } #pageBar .phead h2 { flex: 1; }
  .pnote { padding: 0 10px; font-size: 11px; margin: 0 0 4px; }
  .pthumb.dragging { opacity: .35; }
  .pthumb.dropbefore { box-shadow: 0 -3px 0 var(--accent); } .pthumb.dropafter { box-shadow: 0 3px 0 var(--accent); }
  #pageMenu .menu { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
  #pageMenu .tb { width: 100%; height: auto; padding: 9px 12px; text-align: left; justify-content: flex-start; }
  #pageBarTab { top: 50%; left: 0; width: 26px; height: 60px; border-radius: 0 10px 10px 0; z-index: 9; }
  body.pagebar[data-tb="left"] #pageBar { left: 76px; }   /* Seiten links neben einer links angedockten Toolleiste */
  body[data-tb="left"] #pageBar { left: 76px; }
  #vscroll { position: fixed; right: 4px; top: 80px; bottom: 76px; width: 14px; z-index: 8; border-radius: 7px; background: rgba(120, 115, 100, .12); }
  #vthumb { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: rgba(90, 85, 75, .45); cursor: grab; touch-action: none; }
  #vthumb:hover { background: rgba(31, 95, 191, .6); }
  #vpage { position: absolute; right: 18px; bottom: 0; font-size: 11px; color: var(--muted); background: var(--panel); border-radius: 6px; padding: 1px 6px; white-space: nowrap; box-shadow: var(--shadow); }
  body:has(#assets.open) #vscroll { right: 318px; }

  /* ---------- Textformat ---------- */
  #fmtBar { z-index: 56; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; max-width: calc(100vw - 16px); }
  .fmtrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .fmtbox .fmtrow { margin-bottom: 6px; }
  .fmtsel { height: 38px; padding: 0 8px; min-width: 150px; flex: 1; }
  .fmtsel.small { min-width: 80px; flex: 0 0 auto; }
  .tb.fmtb { width: 38px; height: 38px; font-size: 17px; }
  .tb.fmtb svg { width: 20px; height: 20px; }
  .fmtcolor { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
  .fmtlab { color: var(--muted); font-size: 12px; margin-right: 2px; }
  .sw.mini.on { box-shadow: 0 0 0 2px var(--accent); }

  /* ---------- Modul-Browser ---------- */
  #store { position: fixed; inset: 0; z-index: 72; background: var(--paper); display: flex; flex-direction: column; }
  .smain { flex: 1; overflow: auto; padding: 18px 26px 40px; }
  .smain h3 { margin: 22px 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  #storeSets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
  #storeCats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .store-have { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 10px; overflow-x: auto; } .store-have button { white-space: nowrap; }
  /* Module im Stil des Shops: Titelbild je Kategorie, Haken oben rechts */
  #store .smain { max-width: 1180px; margin: 0 auto; width: 100%; box-sizing: border-box; }
  #storeSearch { display: block; margin: 6px auto 10px !important; height: 44px; border-radius: 22px !important; padding: 0 18px !important; border: 1px solid var(--line); background: var(--panel); font-size: 15px; }
  #storeCats { justify-content: center; }
  #storeGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
  .pcard { position: relative; background: var(--panel); border-radius: 18px; border: 1px solid var(--line); box-shadow: none; padding: 0; display: flex; flex-direction: column; overflow: hidden; transition: transform .12s, box-shadow .12s; }
  .pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px #0000001f; } .pcard.on { border-color: #2e9e5b; }
  .picon { width: auto; height: auto; aspect-ratio: 16 / 7; border-radius: 0; background: linear-gradient(135deg, var(--c1, #1f5fbf), var(--c2, #3fb5ff)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 38px; }
  .picon svg { width: 52px; height: 52px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 6px #0003); }
  .pcard .pbody { padding: 12px 14px 0; } .pcard .pact { padding: 10px 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
  .pcard .pact .tb { width: auto; padding: 0 12px; height: 32px; font-size: 13px; }
  .pcheck { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: 17px; border: 0; background: #ffffffe6; color: #1d1d1f; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px #0003; }
  .pcheck svg { width: 20px; height: 20px; padding: 2px; border-radius: 50%; border: 2px solid #b0b4bb; fill: none; stroke: transparent; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
  .pcheck.on { background: #2e9e5b; color: #fff; } .pcheck.on svg { border-color: #fff; background: #fff; stroke: #2e9e5b; } .pcheck:disabled { opacity: .85; cursor: default; }
  .pbody b { font-size: 15px; display: block; }
  .pbadge { color: var(--muted); font-size: 12px; }
  .pbody p { margin: 6px 0 0; font-size: 13px; }
  .pact { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
  .pact .tb.wide { height: 40px; }
  .pkey { color: var(--muted); font-size: 12px; margin-left: auto; }

  /* ---------- Konto ---------- */
  .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
  .dfield.dcheck { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 8px; align-items: center; }
  .dfield.dcheck span { margin: 0; color: var(--text); font-size: 14px; }
  .dfield.dcheck input { width: 20px; height: 20px; accent-color: var(--accent); }

  /* ---------- Plattform-Module (Verwaltung, Chat, Abgaben) ---------- */
  .tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
  .plist { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow: auto; }
  .prow { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; }
  .prow:hover { background: var(--hover); }
  .prow .pn { flex: 1; min-width: 0; }
  .prow .pn small { display: block; color: var(--muted); font-size: 12px; }
  .prow select { height: 34px; padding: 0 6px; }
  .tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
  .tag.off { background: #f4d6d3; color: #8c1d18; }
  .chat-msgs { height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; }
  .chat-m { max-width: 82%; padding: 6px 10px; border-radius: 12px; background: var(--tile); align-self: flex-start; overflow-wrap: anywhere; }
  .chat-m.me { align-self: flex-end; background: var(--accent-soft); }
  .chat-m small { display: block; color: var(--muted); font-size: 11px; }
  .chat-in { display: flex; gap: 6px; }
  .chat-in textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 8px; resize: vertical; user-select: text; }
  .chip .badge { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 6px; margin-left: 5px; font-size: 11px; }
  .task { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
  .task h4 { margin: 0 0 2px; font-size: 15px; }
  .task .meta { color: var(--muted); font-size: 12px; }
  .task p { margin: 6px 0; white-space: pre-wrap; }
  .task .state { font-size: 12px; font-weight: 700; }
  .task .state.ok { color: #2e7d32; } .task .state.todo { color: #c27a00; } .task .state.late, .state.late { color: var(--danger); } .task .state.closed { color: var(--muted); text-decoration: line-through; }
  .sub-imgs { display: flex; flex-wrap: wrap; gap: 6px; } .sub-imgs img { max-height: 160px; max-width: 48%; margin: 0; }
  .sb-card { width: min(760px, 100%); } .sb-due { font-size: 13px; color: var(--muted); } .sb-due.late { color: var(--danger); }
  .sb-text { width: 100%; min-height: 90px; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); resize: vertical; user-select: text; }
  .sb-atts { display: flex; flex-wrap: wrap; gap: 10px; }
  .sb-att { position: relative; width: 120px; display: flex; flex-direction: column; gap: 4px; } .sb-att img { width: 120px; height: 90px; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
  .sb-att small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-att button { position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; cursor: pointer; font-size: 12px; }
  .sb-add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sb-big { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; text-align: left; gap: 0 10px; align-items: center; padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; background: transparent; cursor: pointer; color: var(--text); font: inherit; }
  .sb-big:hover { border-color: var(--accent); background: var(--accent-soft); } .sb-big span { grid-row: span 2; font-size: 28px; text-align: center; } .sb-big small { color: var(--muted); font-size: 12px; }
  .sb-docs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .sb-doc { flex: none; width: 116px; border: 2px solid var(--line); border-radius: 12px; background: transparent; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; color: var(--text); }
  .sb-doc.on { border-color: var(--accent); background: var(--accent-soft); } .sb-doc b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-dthumb { height: 70px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; overflow: hidden; font-size: 26px; } .sb-dthumb img { max-width: 100%; max-height: 100%; }
  .sb-mode { align-self: flex-start; } .sb-mode button:disabled { opacity: .4; cursor: not-allowed; }
  .sb-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 40vh; overflow: auto; padding: 4px; }
  .sb-pg { position: relative; border: 2px solid var(--line); border-radius: 10px; background: transparent; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; font: inherit; color: var(--muted); }
  .sb-pg.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
  .sb-pg i { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: transparent; font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center; }
  .sb-pg.on i { background: var(--accent); color: #fff; }
  .sb-pimg { width: 100%; aspect-ratio: 0.72; display: flex; align-items: center; justify-content: center; } .sb-pcv { max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px #0003; }
  .sb-cap { position: fixed; inset: 0; z-index: 77; cursor: crosshair; background: rgba(31, 95, 191, .06); touch-action: none; }
  .sb-cap-hint { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 20px #0003; pointer-events: none; }
  .sb-cap-rect { position: fixed; border: 2px dashed var(--accent); background: rgba(31, 95, 191, .12); border-radius: 4px; pointer-events: none; }
  .sub { border-top: 1px solid var(--line); padding: 8px 0; }
  .sub img { max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: block; margin: 6px 0; cursor: zoom-in; }
  .sub .tprow input { height: 36px; padding: 0 8px; user-select: text; }
  .sub .tprow input.g { width: 80px; } .sub .tprow input.f { flex: 1; }

  /* ---------- Organisations-Module ---------- */
  .todo-add input.todo-text { width: 100%; height: 42px; padding: 0 10px; margin-bottom: 6px; user-select: text; }
  .todo-add input[type=date], .cal-add input { height: 40px; padding: 0 8px; flex: 1; user-select: text; }
  .todo-filter { margin: 10px 0 6px; }
  .todo-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; }
  .todo-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; }
  .todo-row:hover { background: var(--hover); }
  .todo-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
  .todo-row.done .todo-name { text-decoration: line-through; color: var(--muted); }
  .todo-body { flex: 1; min-width: 0; }
  .todo-name { overflow-wrap: anywhere; }
  .todo-body input { width: 100%; padding: 4px 6px; user-select: text; }
  .todo-due-badge { font-size: 11px; color: var(--muted); }
  .todo-due-badge.late { color: var(--danger); font-weight: 700; }
  .todo-due-badge.today { color: var(--accent); font-weight: 700; }
  .tb.todo-star, .tb.todo-del { width: 34px; height: 34px; font-size: 17px; }
  .todo-star.on { color: #e0a100; background: transparent; }
  .sp-table { border-collapse: separate; border-spacing: 3px; width: 100%; table-layout: fixed; }
  .sp-table td { border-radius: 8px; padding: 4px; vertical-align: top; }
  .sp-day { text-align: center; font-weight: 700; color: var(--muted); }
  .sp-day.today { color: var(--accent); }
  .sp-day b { display: block; } .sp-day small { font-weight: 500; font-size: 11px; }
  .sp-grid { position: relative; }
  .sp-break td { height: 10px; padding: 0 4px; background: transparent; }
  .sp-break .sp-time { font-size: 10px; color: var(--muted); font-style: italic; white-space: nowrap; cursor: default; }
  .sp-break td:not(.sp-time) { background: repeating-linear-gradient(-45deg, transparent 0 5px, var(--line) 5px 6px); border-radius: 4px; }
  .sp-cell { position: relative; }
  .sp-cell.dbl-top { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .sp-cell.cont.joined { border-top-left-radius: 0; border-top-right-radius: 0; }
  .sp-cell.cont.joined::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 6px; background: inherit; }
  .sp-cell.cont small { font-style: italic; }
  .sp-mk { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px #0003; }
  .sp-mk.open { background: #fff3cd; color: #7a5200; } .sp-mk.done { background: #2e9e5b; color: #fff; }
  .sp-mk.late { background: #d6d3cc; color: #5a5750; } .sp-mk.closed { background: #d6d3cc; color: #8a877f; text-decoration: line-through; text-decoration-thickness: 2px; }
  .sp-mks { position: absolute; right: 4px; top: 4px; display: flex; gap: 3px; } .sp-mks .sp-mk { position: static; }
  .sb-cap-hint { white-space: nowrap; }
  .sp-mk[data-task] { cursor: pointer; } .sp-mk[data-task]:hover { transform: scale(1.15); }
  .sp-legend .sp-mk { display: inline-flex; vertical-align: middle; }
  .sp-open { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; } .sp-open h4 { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; }
  .sp-task { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--panel); cursor: pointer; font: inherit; color: var(--text); }
  .sp-task:hover { border-color: var(--accent); } .sp-task b { display: block; } .sp-task small { color: var(--muted); font-size: 12px; }
  .sp-task.soon { border-color: #e6a100; } .sp-task.late small { color: var(--danger); }
  .sp-day .sp-mk { position: static; margin: 2px 2px 0; }
  .sp-now { position: absolute; height: 0; border-top: 2px solid #e53935; pointer-events: none; z-index: 2; }
  .sp-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #e53935; }
  .sp-now span { position: absolute; right: 2px; top: -16px; font-size: 10px; font-weight: 800; color: #e53935; background: var(--panel); padding: 0 3px; border-radius: 4px; }
  .sp-time { width: 58px; font-size: 11px; color: var(--muted); cursor: pointer; }
  .sp-time b { display: block; color: var(--text); }
  .sp-cell { height: 50px; background: var(--tile); cursor: pointer; color: #23221f; }
  .sp-cell:hover { outline: 2px solid var(--accent); }
  .sp-cell.now { outline: 3px solid var(--accent); }
  .sp-cell b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sp-cell small { font-size: 11px; opacity: .8; }
  .sp-edit { position: absolute; z-index: 5; width: 200px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
  .sp-edit input { height: 36px; padding: 0 8px; user-select: text; }
  .cal-head { display: flex; align-items: center; gap: 4px; }
  .cal-head .cal-title { flex: 1; text-align: center; text-transform: capitalize; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 8px 0; }
  .cal-wd { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; }
  .cal-d { position: relative; height: 40px; border: 0; border-radius: 8px; background: var(--tile); cursor: pointer; font-weight: 600; transition: transform .08s; }
  .cal-d.other { opacity: .4; }
  .cal-d.today { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
  .cal-d.sel { background: var(--accent); color: #fff; }
  .cal-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 2px; }
  .cal-dots i { width: 5px; height: 5px; border-radius: 50%; }
  .cal-day { border-top: 1px solid var(--line); padding-top: 8px; }
  .cal-ev { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
  .cal-ev i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
  .cal-ev .t { color: var(--muted); font-size: 12px; width: 62px; flex: none; }
  .cal-ev .n { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .cal-day .tb.wide { width: 100%; height: 40px; margin-top: 4px; }

  /* ---------- Werkzeugleiste: Ergänzungen ---------- */
  .tpchips { display: flex; flex-wrap: wrap; gap: 5px; }
  .tphist { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; color: var(--muted); font-size: 11px; }
  #popHist { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 12px; }
  .sw.mini { width: 24px; height: 24px; border-width: 2px; }
  #toolPanel h3 { display: flex; align-items: center; justify-content: space-between; }
  .tb.tpmini { width: 32px; height: 32px; font-size: 15px; }
  .tb.tpmini svg { width: 18px; height: 18px; }
  .layers { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
  .layer { display: flex; align-items: center; gap: 2px; padding: 2px 6px 2px 2px; border-radius: 8px; cursor: pointer; }
  .layer:hover { background: var(--hover); }
  .layer.on { background: var(--accent-soft); }
  .layer .lname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; padding-left: 4px; }
  .layer input { flex: 1; min-width: 0; padding: 3px 6px; user-select: text; }

  /* ---------- Radialmenü am Cursor ---------- */
  #radial { position: fixed; width: 270px; height: 270px; z-index: 58; pointer-events: none; opacity: 0; transform: scale(.92);
    transition: opacity .12s ease, transform .12s ease; }
  #radial.open { opacity: 1; transform: none; }
  #radial .ring { position: absolute; inset: 8px; border-radius: 50%; background: var(--panel); opacity: .97; box-shadow: var(--shadow); }
  #radial.open .ring, #radial.open .ritem, #radial.open .rcat { pointer-events: auto; }
  #radial .inner { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%;
    background: var(--tile); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
  #radial .inner .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  #radial .inner .val { font-weight: 600; font-size: 12px; max-width: 100px; }
  #radial .inner .prev { display: flex; align-items: center; justify-content: center; height: 34px; }
  #radial .ritem { position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: transform .08s ease, box-shadow .08s ease, background .08s ease; }
  #radial .ritem.tool { width: 42px; height: 42px; border-radius: 50%; background: var(--field); box-shadow: 0 0 0 1px #0002; }
  #radial .ritem.tool svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #radial .ritem.size { width: 34px; height: 34px; border-radius: 50%; background: var(--field); box-shadow: 0 0 0 1px #0002; }
  #radial .ritem.color { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px #0004; }
  #radial .ritem.sel { box-shadow: 0 0 0 3px var(--accent); background-color: var(--accent-soft); }
  #radial .ritem.color.sel { transform: translate(-50%, -50%) scale(1.35); background-color: unset; }
  #radial .ritem.snapped { transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 0 3px var(--accent); }
  #radial .ritem.aim { transform: translate(-50%, -50%) scale(1.32); box-shadow: 0 0 0 3px #e07000; z-index: 3; }
  #radial .needle { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
  #radial .needle i { position: absolute; left: -2px; top: -66px; width: 4px; height: 18px; border-radius: 2px; background: #e07000; }
  #radial .cats { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); display: flex; gap: 4px;
    background: var(--panel); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); white-space: nowrap; }
  #radial .rcat { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); }
  #radial .rcat.on { background: var(--accent); color: #fff; }
  #radial .rcat.snapped { box-shadow: 0 0 0 2px var(--accent); }
  #radial .hint { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 11px; color: var(--muted);
    background: var(--panel); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }

  /* ---- Startbildschirm (Anmeldung) ---- */
  #gate { position: fixed; inset: 0; z-index: 150; display: flex; overflow: auto; padding: 16px;
    background: radial-gradient(circle at 20% 15%, var(--accent-soft), transparent 55%), radial-gradient(circle at 85% 90%, #f3e3c3, transparent 50%), var(--paper); }
  #gate[hidden] { display: none; }
  .gate-card { margin: auto; width: min(460px, 100%); background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 26px 18px; }
  .gate-logo { display: flex; align-items: center; gap: 10px; font-size: 26px; }
  .gate-logo svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .gate-sub { color: var(--muted); margin: 8px 0 16px; line-height: 1.45; }
  .gate-form { display: flex; flex-direction: column; gap: 10px; }
  .gate-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
  .gate-form input { height: 46px; padding: 0 12px; font-size: 16px; user-select: text; }
  .gate-go { height: 48px; font-size: 16px; margin-top: 4px; }
  .gate-err { color: var(--danger); margin: 0; font-weight: 600; }
  .gate-link { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 600; padding: 10px 0 0; }
  .gate-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
  .gate-plan { border: 2px solid var(--line); border-radius: 12px; background: var(--field); padding: 10px; text-align: left; cursor: pointer; color: inherit; }
  .gate-plan b { display: block; } .gate-plan span { font-size: 12px; color: var(--muted); }
  .gate-plan.on { border-color: var(--accent); background: var(--accent-soft); }
  /* ---- Segment-Umschalter (allgemein) ---- */
  .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--field); flex: none; }
  .seg button { border: 0; background: transparent; padding: 6px 11px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
  .seg button.on { background: var(--accent); color: #fff; }
  /* ---- Koop ---- */
  .tm-team { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 8px; color: inherit; margin-top: 4px; }
  .tm-team:hover { background: var(--hover); }
  .tm-team.on { background: var(--accent-soft); }
  .tm-caret { color: var(--muted); padding: 0 4px; font-size: 13px; }
  .tm-h span { flex: 1; }
  .tm-addch { color: var(--muted); font-size: 13px; }
  .tm-req { cursor: default; } .tm-req .tm-mini { flex: none; }
  /* Reiter des Koops (Beiträge, Dateien …) immer nebeneinander: passt es neben dem Titel nicht, eigene Zeile, notfalls seitlich wischen */
  .tm-tabs { display: flex; gap: 2px; flex-wrap: nowrap; flex: 1 1 360px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tm-tabs::-webkit-scrollbar { display: none; } .tm-tabs .tm-tab { flex: none; white-space: nowrap; }
  @media (max-width: 1100px) { .tm-head .tm-tabs { order: 5; flex-basis: 100%; } }
  .tm-head { flex-wrap: wrap; }
  .tm-list .sp-wrap { overflow: auto; }
  /* ---- Noten ---- */
  .nt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
  .nt-top .tabs { margin: 0; } .nt-top .sp { flex: 1; }
  .nt-head .tprow { flex-wrap: wrap; }
  .nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
  .nt-subj { border-left: 6px solid var(--accent); background: var(--panel); }
  .nt-subj.open { grid-column: 1 / -1; }
  .nt-sh { width: 100%; border: 0; background: transparent; cursor: pointer; color: inherit; text-align: left; padding: 0; }
  .nt-sh small { display: block; color: var(--muted); font-size: 12px; }
  .nt-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 0 6px; }
  .nt-chip i { font-style: normal; font-size: 9px; font-weight: 700; opacity: .7; margin-top: 2px; }
  .nt-chip.srv { outline: 2px dashed #0003; outline-offset: -3px; }
  .nt-det { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
  .nt-groups { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0; }
  .nt-groups span { display: flex; flex-direction: column; } .nt-groups small { color: var(--muted); font-size: 11px; }
  .nt-groups b.good { color: #2e7d32; } .nt-groups b.mid { color: #c27a00; } .nt-groups b.bad { color: var(--danger); }
  .nt-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 8px 0; }
  .nt-quick label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
  .nt-quick label.wide { grid-column: 1 / -1; }
  .nt-quick input, .nt-quick select { height: 36px; padding: 0 6px; }
  .nt-table { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
  .nt-trow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; }
  .nt-trow .pn { width: 170px; flex: none; } .nt-trow .nt-chips { flex: 1; margin: 0; }
  .nt-trow small b.good { color: #2e7d32; } .nt-trow small b.mid { color: #c27a00; } .nt-trow small b.bad { color: var(--danger); }
  .nt-in { width: 64px; height: 38px; text-align: center; font-weight: 700; font-size: 16px; user-select: text; }
  /* ---- Verwaltung (Organisation) ---- */
  .og { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
  .og-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .og-top .og-orgsel { width: auto; min-width: 200px; margin: 0; }
  .og-body { display: flex; gap: 10px; min-height: 0; flex-direction: column; }
  .og-body.building { flex-direction: row; align-items: flex-start; }
  .og-welcome { max-width: 640px; }
  .og-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 10px; }
  .og-canvas { position: relative; overflow: hidden; flex: 1 1 auto; min-width: 0; height: max(420px, calc(100vh - 190px)); cursor: grab; touch-action: none; border-radius: 10px;
    background: radial-gradient(circle, var(--line) 1.1px, transparent 1.3px) 0 0 / 24px 24px, var(--paper); }
  .widget .og-canvas, .tilebox .og-canvas { height: 62vh; }
  .og-canvas.panning { cursor: grabbing; }
  .og-canvas.build { box-shadow: inset 0 0 0 2px var(--accent-soft); }
  .og-canvas.dropfree { box-shadow: inset 0 0 0 3px var(--accent); }
  .og-canvas.list { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--paper); height: auto; overflow: visible; cursor: default; touch-action: auto; }
  .og-inner { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
  .og-edges { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
  .og-edges path { fill: none; stroke-width: 3; opacity: .55; }
  .og-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 2px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 3px; }
  .og-zpct { min-width: 46px; text-align: center; font-size: 12px; color: var(--muted); }
  .og-hint { position: absolute; left: 12px; bottom: 12px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--paper) 85%, transparent); padding: 3px 8px; border-radius: 8px; pointer-events: none; max-width: 60%; }
  .og-node { position: absolute; background: var(--panel); border: 2px solid var(--nc); border-radius: 14px; padding: 8px 10px; cursor: pointer; box-shadow: 0 2px 6px #0001; user-select: none;
    display: flex; flex-direction: column; gap: 4px; transition: box-shadow .1s, transform .1s; touch-action: none; }
  .og-canvas.list .og-node { position: relative; }
  .og-node:hover { box-shadow: 0 4px 14px #0002; transform: translateY(-1px); }
  .og-node.root { border-width: 3px; }
  .og-node.root .og-nh b { font-size: 17px; }
  .og-node.drop { box-shadow: 0 0 0 4px var(--accent); }
  .og-node.lifted { opacity: .45; }
  .og-nh { display: flex; align-items: center; gap: 6px; border-bottom: 3px solid var(--nc); padding-bottom: 4px; }
  .og-nh b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .og-ic { font-size: 18px; }
  .og-ns { font-size: 12px; color: var(--muted); line-height: 1.45; }
  .og-tools { display: flex; gap: 2px; flex-wrap: wrap; }
  .og-tools .tb { width: 28px; height: 28px; font-size: 14px; }
  .og-pal { width: 190px; flex: none; display: flex; flex-direction: column; gap: 5px; max-height: calc(100vh - 190px); overflow: auto; padding-right: 2px; }
  .og-palh { font-weight: 800; } .og-palh small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
  .og-palg { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin-top: 6px; }
  .og-blk { background: var(--nc); color: #fff; border-radius: 10px 10px 10px 4px; padding: 8px 10px; font-weight: 700; font-size: 13px; cursor: grab; display: flex; gap: 6px; align-items: center;
    box-shadow: inset 0 -3px 0 #0003; touch-action: none; user-select: none; }
  .og-ghost { position: fixed !important; z-index: 300; pointer-events: none; opacity: .9; transform: rotate(-3deg); width: 180px; box-shadow: 0 10px 30px #0003; }
  .og-node.og-ghost { min-height: 0 !important; }
  .og-crumb { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
  .og-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .og-panel > .tb.wide { align-self: flex-start; }
  .og-panel h3 { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
  .og-filter { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .og-filter select, .og-time select, .og-time input { height: 34px; padding: 0 6px; }
  .og-search { height: 34px; padding: 0 10px; min-width: 180px; flex: 1; max-width: 320px; user-select: text; }
  .og-time { display: inline-flex; gap: 4px; align-items: center; }
  .og-list { display: flex; flex-direction: column; gap: 4px; }
  .og-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: left; width: 100%; color: inherit; cursor: pointer; flex-wrap: wrap; }
  div.og-row { cursor: default; } div.og-row.og-sel { cursor: pointer; }
  /* Verwaltung: Namen, Kennungen, E-Mail usw. lassen sich markieren und kopieren */
  .og-panel, .og-panel .og-row, .og-panel .og-kv, .og-panel small, .og-panel b, .og-panel span, .og-panel p, .og-panel td { -webkit-user-select: text; user-select: text; }
  .og-panel button, .og-panel .tb, .og-panel .chip { -webkit-user-select: none; user-select: none; }
  .og-row:hover { background: var(--hover); }
  .og-rn { display: flex; flex-direction: column; min-width: 150px; flex: 1; } .og-rn small { color: var(--muted); font-size: 12px; }
  .og-rm { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; } .og-rm small { color: var(--muted); font-size: 12px; margin-right: 4px; }
  .og-st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
  .og-st.green { background: #dff0d8; color: #1e5e20; } .og-st.red { background: #f8d7da; color: #8c1d18; } .og-st.yellow { background: #fff3cd; color: #7a5200; } .og-st.gray { background: var(--tile); color: var(--muted); }
  .og-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: -1px; margin: 0 3px 0 1px; box-shadow: 0 0 0 2px #fff8; }
  .og-dot.green { background: #2e9e5b; } .og-dot.red { background: #d64545; } .og-dot.yellow { background: #e6b400; } .og-dot.gray { background: #9e9e9e; }
  .og-legend { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .og-rk { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: var(--rc); border: 1.5px solid var(--rc); margin: 1px 2px 1px 0; }
  .og-rdot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
  .og-dhead { display: flex; gap: 12px; align-items: center; }
  .og-dhead h2 { margin: 0; font-size: 20px; } .og-dhead h2 small { color: var(--muted); font-weight: 400; font-size: 13px; }
  .og-dhead .og-dot { width: 18px; height: 18px; }
  .og-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
  .og-kv span { color: var(--muted); } .og-kv b { font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
  .og-text { white-space: pre-wrap; }
  .og-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
  .og-catgrid .og-node { position: relative; }
  .og-chips { display: flex; gap: 5px; flex-wrap: wrap; }
  .og-person { display: inline-flex; align-items: center; gap: 4px; background: var(--tile); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 13px; }
  .og-person button { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 12px; }
  .og-tablewrap { overflow: auto; }
  .og-table { border-collapse: collapse; width: 100%; font-size: 14px; }
  .og-table th { text-align: left; font-size: 12px; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 8px; }
  .og-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
  .og-table tbody tr { cursor: pointer; } .og-table tbody tr:hover { background: var(--hover); }
  .og-times .prow input { height: 34px; }
  .og-reqs { border: 2px solid var(--accent); border-radius: 14px; padding: 8px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 4px; }
  .og-reqh { font-weight: 800; color: var(--accent); padding: 2px 4px; }
  .og-code { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 2px dashed var(--accent); border-radius: 12px; align-self: flex-start; }
  .og-code span { font-size: 12px; color: var(--muted); } .og-code b { font-size: 22px; letter-spacing: .15em; font-family: ui-monospace, monospace; user-select: text; }
  .og-code small { color: var(--muted); font-size: 12px; }
  .tag.plan-privat { background: #eee; color: #555; } .tag.plan-pro { background: #fff3cd; color: #7a5200; } .tag.plan-org { background: #dff0d8; color: #1e5e20; }
  .tag.plan-master { background: #f8d7da; color: #8c1d18; }
  #dlg .note { white-space: pre-wrap; }
  @media (max-width: 640px) { .og-body.building { flex-direction: column; } .og-pal { width: 100%; flex-direction: row; flex-wrap: wrap; max-height: none; } .og-pal .og-palg { width: 100%; } .nt-trow .pn { width: 110px; } }

  /* ---- automatisch ausblenden (Leisten) ---- */
  #toolbar, #toolPanel, #viewbar, #pageBar { transition: opacity .22s ease, translate .22s ease; }
  .ah-hidden { opacity: 0 !important; pointer-events: none !important; }
  body[data-tb="top"] #toolbar.ah-hidden, body[data-tb="float"] #toolbar.ah-hidden { translate: 0 -24px; }
  body[data-tb="bottom"] #toolbar.ah-hidden, #viewbar.ah-hidden { translate: 0 24px; }
  body[data-tb="left"] #toolbar.ah-hidden, #pageBar.ah-hidden { translate: -24px 0; }
  body[data-tb="right"] #toolbar.ah-hidden, #toolPanel.ah-hidden { translate: 24px 0; }
  /* ---- Einrichtungs-Assistent ---- */
  #setup { position: fixed; inset: 0; z-index: 76; display: flex; overflow: auto; padding: 16px; background: var(--backdrop); backdrop-filter: blur(3px); }
  .su-card { margin: auto; width: min(860px, 100%); background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
  .su-steps { display: flex; gap: 6px; flex-wrap: wrap; }
  .su-steps span { padding: 5px 12px; border-radius: 999px; background: var(--tile); color: var(--muted); font-size: 13px; font-weight: 600; }
  .su-steps span.on { background: var(--accent); color: #fff; } .su-steps span.done { background: var(--accent-soft); color: var(--accent); }
  .su-body h2 { margin: 4px 0; }
  .su-label { font-weight: 700; margin: 12px 0 6px; }
  .su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
  .su-pick small { display: block; color: var(--accent); margin-top: 4px; font-weight: 600; }
  .sys.on { border-color: var(--accent); background: var(--accent-soft); }
  .su-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; align-items: flex-end; }
  .su-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
  .su-row select { height: 38px; padding: 0 8px; min-width: 200px; }
  .su-row small { font-size: 11px; }
  .su-check { flex-direction: row !important; align-items: center; color: var(--text) !important; }
  .su-mod { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
  .su-mod:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
  .su-mod.locked { opacity: .55; cursor: not-allowed; }
  .su-mod.fixed { cursor: default; }
  .set-danger { margin-top: 22px; padding: 14px 16px; border: 1.5px solid #e5484d55; border-radius: 12px; }
  .set-danger h4 { margin: 0 0 6px; color: #e5484d; }
  .set-group { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
  .set-group .tb.wide { justify-content: flex-start; }
  .su-mod b { display: block; } .su-mod small { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .su-ic svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .su-pen { position: relative; }
  .su-pad { width: 100%; height: 240px; border-radius: 14px; background: var(--paper); border: 2px dashed var(--line); touch-action: none; display: block; cursor: crosshair; }
  .su-penstat { position: absolute; left: 12px; top: 10px; font-size: 13px; color: var(--muted); pointer-events: none; }
  .su-penstat.ok { color: #2e7d32; font-weight: 700; }
  .su-sliders label { flex: 1; min-width: 180px; }
  .su-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; margin-top: 12px; }
  .su-key { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
  .su-key.tried { border-color: #2e9e5b; background: #e8f5e9; } .su-key.cap { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
  .su-ok { width: 18px; color: #2e9e5b; font-weight: 800; }
  .su-kn { flex: 1; font-size: 14px; }
  .su-kbd { min-width: 70px; height: 34px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px; background: var(--field); font-weight: 700; cursor: pointer; color: inherit; }
  .su-nav { display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
  .su-nav .sp { flex: 1; }
  .su-keys .su-kgroup { grid-column: 1 / -1; margin: 10px 0 2px; }
  .su-choice { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 8px; }
  .su-choice .su-pick { padding: 16px; } .su-choice .su-pick b { font-size: 17px; }
  .su-flow .su-pick b { font-size: 16px; }

  /* ---- Profil oben ---- */
  .tb.tb-prof { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: 13px; }
  .tb.tb-prof svg { width: 20px; height: 20px; }
  #profileList { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
  #profileList .tb { width: 100%; height: auto; padding: 8px 10px; text-align: left; display: block; }
  #profileList small { color: var(--muted); font-weight: 400; }
  #profileList .tb.primary small { color: #fffc; }
  /* ---- Griff an ausgeblendeten Leisten ---- */
  .ah-grip { position: fixed; z-index: 21; width: 52px; height: 12px; border: 0; padding: 0; cursor: pointer; border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 85%, transparent); box-shadow: 0 1px 4px #0003; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
  .ah-grip i { display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--muted); }
  .ah-grip[data-side="left"], .ah-grip[data-side="right"] { width: 12px; height: 52px; flex-direction: row; }
  .ah-grip[data-side="left"] i, .ah-grip[data-side="right"] i { width: 2px; height: 26px; }
  .ah-grip:hover { background: var(--accent-soft); } .ah-grip:hover i { background: var(--accent); }
  .ah-grip[hidden] { display: none; }
  /* ---- Radial-Editor im Assistenten + Rundgang ---- */
  .widget { transform-origin: 0 0; }
  .wgrip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
    background: linear-gradient(135deg, transparent 50%, var(--muted) 50% 58%, transparent 58% 70%, var(--muted) 70% 78%, transparent 78%); opacity: .6; }
  .wgrip:hover { opacity: 1; }
  .rechip.swatch { padding: 4px 6px; } .rechip.swatch svg { width: 22px; height: 22px; }
  .su-radial { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
  .tour-tip { position: fixed; z-index: 145; width: min(300px, calc(100vw - 24px)); background: var(--accent); color: #fff; border-radius: 14px; padding: 12px 14px;
    box-shadow: 0 10px 30px #0004; font-size: 14px; line-height: 1.45; }
  .tour-tip b { display: block; font-size: 15px; margin-bottom: 4px; }
  .tour-tip .tour-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
  .tour-tip button { border: 0; border-radius: 9px; padding: 7px 12px; font-weight: 700; cursor: pointer; background: #fff; color: var(--accent); }
  .tour-tip button.skip { background: transparent; color: #fffc; }
  .tour-tip::before { content: ""; position: absolute; width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); }
  .tour-tip[data-arrow="up"]::before { top: -7px; left: var(--ax, 30px); } .tour-tip[data-arrow="left"]::before { left: -7px; top: var(--ay, 30px); }
  .tour-tip[data-arrow="down"]::before { bottom: -7px; left: var(--ax, 30px); }
  .tour-hl { position: fixed; z-index: 144; border-radius: 14px; box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px #0005; pointer-events: none; transition: all .25s; }

  /* ---- Kontakte (Discord + LinkedIn) ---- */
  .kt { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
  .kt-me { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, var(--accent-soft), var(--panel)); border: 1px solid var(--line); flex-wrap: wrap; }
  .kt-av { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
  .kt-av.big { width: 62px; height: 62px; font-size: 20px; box-shadow: 0 0 0 3px var(--panel); }
  .kt-info { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 1px; }
  .kt-info b { font-size: 15px; } .kt-info small { color: var(--muted); font-size: 12px; }
  .kt-me .kt-info b { font-size: 18px; } .kt-me .kt-info span { color: var(--text); font-size: 13px; margin-top: 2px; }
  .kt-mut { color: var(--accent) !important; }
  .kt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .kt-tab { border: 0; background: transparent; padding: 9px 14px; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; display: inline-flex; gap: 6px; align-items: center; }
  .kt-tab.on { color: var(--text); border-color: var(--accent); }
  .kt-tab.add { color: #2e9e5b; } .kt-tab.add.on { border-color: #2e9e5b; }
  .kt-badge { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; }
  .kt-count { background: var(--tile); color: var(--muted); border-radius: 999px; padding: 0 7px; font-size: 11px; }
  .kt-body { display: flex; flex-direction: column; gap: 6px; }
  .kt-body h3 { margin: 10px 0 2px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
  .kt-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; flex-wrap: wrap; }
  .kt-card:hover { box-shadow: 0 3px 12px #0001; border-color: var(--accent-soft); }
  .kt-act { display: flex; gap: 4px; }
  .kt-addbox { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--tile); }
  .kt-addbox small { color: var(--muted); }
  .kt-search { height: 38px; padding: 0 12px; border-radius: 10px; user-select: text; }
  .kt-search.big { height: 46px; font-size: 16px; }
  .kt-results { display: flex; flex-direction: column; gap: 6px; }
  .kt-empty { padding: 8px 2px; }
  img.av-img { object-fit: cover; display: inline-block; border-radius: 50%; }
  .kt-av.av-img, .sacc-av.av-img { padding: 0; }
  span.av-txt { color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; border-radius: 50%; }
  .sacc-av { width: 32px; height: 32px; font-size: 12px; }
  .kt-avbtn { position: relative; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 50%; flex: none; margin: 5px; }
  .kt-avbtn > span:last-child { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 4px #0003; display: flex; align-items: center; justify-content: center; font-size: 12px; }
  .set-prof { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; } .set-prof b { display: block; font-size: 18px; } .set-prof small { color: var(--muted); }

  /* ===== Runde 48: Liga-Abzeichen, System-Konto, Freunde, Admin, Meldungen, Animationen ===== */
  .hb-ver.hb-vsy svg { fill: #2f6fe4; }
  .hb-tierb { display: inline-flex; vertical-align: -3px; margin-left: 3px; } .hb-tierb svg { display: block; filter: drop-shadow(0 1px 1px #0000001f); }
  .hb-vmeta.hb-vmsys { align-items: flex-start; } .hb-vmeta.hb-vmsys > div { flex: 1; } .hb-vsys { margin-left: auto; padding-top: 2px; } .hb-vsys .hb-ver svg { width: 20px; height: 20px; }
  .hb-vav { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
  .hb-vby .hb-ver svg { width: 14px; height: 14px; vertical-align: -2px; } .hb-vby .hb-tierb svg { width: 12px; height: 13.5px; }
  .hb-wal { gap: 12px; } .hb-walk, .hb-wall { display: inline-flex; align-items: center; gap: 5px; } .hb-wall { padding-left: 12px; border-left: 1px solid var(--line); font-weight: 600; }
  /* Liga-Seite */
  .hb-lgtop { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; } @media (max-width: 860px) { .hb-lgtop { grid-template-columns: 1fr; } }
  .hb-lgme { flex-direction: column; align-items: stretch; }
  .hb-tiers { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 4px 0 2px; }
  .hb-tier { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .45; filter: grayscale(.6); transition: opacity .3s; } .hb-tier small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
  .hb-tier.past { opacity: .8; filter: none; } .hb-tier.on { opacity: 1; filter: none; } .hb-tier.on small { color: var(--text); }
  .hb-tier.on svg { filter: drop-shadow(0 4px 10px #00000026); }
  .hb-tline { flex: 1; max-width: 48px; height: 2px; background: var(--line); margin-bottom: 26px; border-radius: 1px; }
  .hb-lgx { display: flex; flex-direction: column; gap: 6px; } .hb-lgx b { font-size: 22px; } .hb-lgx small { color: var(--muted); }
  .hb-kasse { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; } .hb-kasse header { display: flex; justify-content: space-between; align-items: baseline; } .hb-kasse header small { color: var(--muted); }
  .hb-kbal { display: flex; align-items: center; gap: 8px; font-size: 34px; font-weight: 800; color: #2f6fe4; } .hb-kbal svg { width: 34px; height: 34px; fill: #cfe2ff; stroke: #3d8bfd; stroke-width: 1.6; stroke-linejoin: round; }
  .hb-lgexp { margin: 0; }
  .hb-lbk button { padding: 0 12px; font-size: 13px; }
  .hb-lgt li.up .hb-rk { color: #1f9d55; } .hb-lgp small { font-size: 11px; color: var(--muted); font-weight: 600; }
  .hb-link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
  /* Freunde */
  .hb-fhead { display: flex; align-items: center; gap: 10px; } .hb-fhead h2 { margin: 0; } .hb-fhead .sp { flex: 1; } .hb-fhead .tb { width: auto; padding: 0 14px; }
  .hb-ftabs { align-self: flex-start; flex-wrap: wrap; } .hb-ftabs button { padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
  .hb-topact { order: -1; flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 0; }
  .hb-tbtn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px #0000000f; }
  .hb-tbtn:hover { background: var(--hover); } .hb-tbtn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
  .hb-tbtn svg { width: 20px; height: 20px; } .hb-tbtn .hb-fn { position: absolute; top: -5px; right: -5px; }
  .hb-topact + .hb-main, .hb-main:has(+ .hb-nav) { padding-top: 12px; }
  @media (max-width: 860px) { .hb-topact { padding: 10px 12px 0; } .hb-tbtn span { display: none; } .hb-tbtn { width: 40px; padding: 0; justify-content: center; } }
  .hb-kt .kt-me > .tb { width: auto; padding: 0 16px; height: 38px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; }
  .hb-kt { gap: 14px; } .hb-kt .kt-tab { font-size: 15px; padding: 11px 16px; } .hb-kt .kt-act .tb { width: auto; padding: 0 14px; height: 34px; }
  .hb-kt .kt-addbox { margin: 0; } .hb-addrow { display: flex; gap: 8px; } .hb-addrow input { flex: 1; } .hb-addrow .tb { width: auto; padding: 0 18px; height: 46px; }
  .hb-kt .kt-act .hb-fmore { width: 34px; padding: 0; }
  .hb-fn { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  .hb-fbody { display: flex; flex-direction: column; gap: 6px; } .hb-fh { margin: 10px 0 2px; font-size: 14px; } .hb-fh small { color: var(--muted); font-weight: 600; }
  .hb-fbody .hb-frow { padding: 6px 8px; border-radius: 12px; } .hb-fbody .hb-frow:hover { background: var(--hover); } .hb-fbody .hb-frow .sp { flex: 1; }
  .hb-fmore { width: 36px !important; padding: 0 !important; }
  .hb-fempty { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .hb-fempty .note { margin: 0; } .hb-fempty .tb { width: auto; padding: 0 14px; }
  .hb-fres { display: flex; flex-direction: column; gap: 4px; } .hb-addf input { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; padding: 0 12px; }
  /* Admin-Werkzeuge */
  .hb-adm { gap: 14px; } .hb-admh { display: flex; align-items: center; gap: 14px; padding: 16px 18px; } .hb-admh > div { display: flex; flex-direction: column; } .hb-admh small { color: var(--muted); } .hb-admh .sp { flex: 1; } .hb-admh .tb { width: auto; padding: 0 14px; }
  .hb-admstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .hb-admstats > div { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 10px 14px; display: flex; flex-direction: column; } .hb-admstats small, .hb-admstats i { color: var(--muted); font-size: 12px; font-style: normal; } .hb-admstats b { font-size: 20px; }
  .hb-admsec { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; } .hb-admsec h3 { margin: 0; font-size: 16px; } .hb-admsec h4 { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
  .hb-admacts { display: flex; flex-wrap: wrap; gap: 8px; } .hb-admacts .tb { width: auto; padding: 0 14px; }
  .hb-admrow { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; border-radius: 10px; border: 0; background: var(--hover); color: var(--text); font: inherit; text-align: left; } button.hb-admrow { cursor: pointer; } button.hb-admrow:hover { background: var(--accent-soft); }
  .hb-admrow small { color: var(--muted); font-size: 12px; }
  .hb-admlogl { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; } .hb-admlogl div { display: flex; gap: 10px; } .hb-admlogl span { color: var(--muted); flex: none; width: 110px; } .hb-admlogl code { word-break: break-all; }
  .hb-admbtn { border-color: #d93025 !important; color: #d93025 !important; }
  /* Meldungen */
  .hb-repsh { display: flex; align-items: center; gap: 10px; } .hb-repsh h2 { margin: 0; } .hb-repsh .sp { flex: 1; } .hb-repsh .seg button { padding: 0 12px; }
  .hb-reps { display: flex; flex-direction: column; gap: 12px; }
  .hb-rep { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; } .hb-rep.erledigt { opacity: .7; }
  .hb-rep header { display: flex; align-items: center; gap: 10px; } .hb-rep header .sp { flex: 1; }
  .hb-rkind { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: #fdecea; color: #c5221f; }
  .hb-rst { font-size: 12px; color: var(--muted); font-weight: 600; }
  .hb-rwho { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; } .hb-rwho small { color: var(--muted); font-weight: 500; }
  .hb-rtext { font-size: 14px; white-space: pre-wrap; } .hb-rimg { max-width: 220px; max-height: 160px; border-radius: 10px; object-fit: cover; }
  .hb-rreasons { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); } .hb-rreasons b { color: var(--text); }
  .hb-racts { display: flex; flex-wrap: wrap; gap: 8px; } .hb-racts .tb { width: auto; padding: 0 14px; }
  /* Liga-Wechsel */
  .fx-league { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0b0f1a8c; backdrop-filter: blur(4px); animation: fxFade .3s ease-out; }
  .fx-league.out { opacity: 0; transition: opacity .25s; }
  .fx-lcard { width: min(380px, 100%); background: var(--panel); border-radius: 24px; padding: 26px 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-shadow: 0 24px 60px #00000040; animation: fxRise .45s cubic-bezier(.2,1.2,.4,1); }
  .fx-lcard small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .fx-lcard b { font-size: 26px; } .fx-lcard p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
  .fx-league.up .fx-lcard small { color: #1f9d55; }
  .fx-lstage { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
  .fx-lold, .fx-lnew { position: absolute; display: flex; } .fx-lold { animation: fxLold 1s ease-in forwards; } .fx-lnew { opacity: 0; animation: fxLnew .7s .75s cubic-bezier(.2,1.5,.4,1) forwards; } .fx-lnew svg { filter: drop-shadow(0 8px 18px #00000033); }
  .fx-league.down .fx-lold { animation-name: fxLoldDown; }
  .fx-lring { position: absolute; inset: 10px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; animation: fxRing .9s .8s ease-out forwards; }
  .fx-lshine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, #ffffffaa 50%, transparent 60%); mix-blend-mode: overlay; opacity: 0; animation: fxShine 1.1s 1.2s ease-out forwards; pointer-events: none; }
  .fx-league.down .fx-lring, .fx-league.down .fx-lshine { display: none; }
  @keyframes fxLold { 0% { transform: scale(1); } 60% { transform: scale(.9) translateY(4px); opacity: 1; } 100% { transform: scale(.5) translateY(30px); opacity: 0; } }
  @keyframes fxLoldDown { 0% { transform: scale(1); } 100% { transform: scale(.7) translateY(-20px); opacity: 0; } }
  @keyframes fxLnew { 0% { opacity: 0; transform: scale(.3) translateY(40px); } 100% { opacity: 1; transform: none; } }
  @keyframes fxRing { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.4); } }
  @keyframes fxShine { 0% { opacity: 0; transform: translateX(-60%); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%); } }
  @keyframes fxFade { from { opacity: 0; } } @keyframes fxRise { from { opacity: 0; transform: translateY(24px) scale(.96); } }
  /* Flammen-Moment */
  .fx-fm { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0b0f1a73; backdrop-filter: blur(3px); animation: fxFade .3s ease-out; cursor: pointer; transition: background .45s, backdrop-filter .45s; }
  .fx-fm.out { background: transparent; backdrop-filter: none; } .fx-fm.out .fx-card { background: transparent; box-shadow: none; } .fx-fm.out .fx-card > :not(.fx-stage) { opacity: 0; transition: opacity .25s; }
  .fx-card { width: min(340px, 100%); padding: 28px 24px 24px; border-radius: 26px; background: var(--panel); box-shadow: 0 24px 60px #00000040; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: fxRise .4s cubic-bezier(.2,1.2,.4,1); transition: background .4s, box-shadow .4s; }
  .fx-card b { font-size: 24px; letter-spacing: -.01em; animation: fxRise .45s .25s both; } .fx-card small { color: var(--muted); font-size: 14px; font-weight: 600; animation: fxRise .45s .35s both; }
  .fx-stage { position: relative; width: 160px; height: 170px; display: flex; align-items: flex-end; justify-content: center; }
  .fx-art { position: relative; z-index: 2; width: 130px; height: 150px; transform-origin: 50% 100%; } .fx-art svg.fl { width: 100%; height: 100%; }
  .fx-fm.ignite .fx-art { animation: fxEmber 1.6s ease-in-out infinite; } .fx-fm.ignite .fx-stage.lit .fx-art, .fx-fm.grow .fx-stage.lit .fx-art, .fx-fm.gold .fx-stage.lit .fx-art { animation: fxIgnite .75s cubic-bezier(.25,1.6,.45,1); }
  .fx-fm.ignite .fx-art .fl0 .fo { stroke: #b9bec8; stroke-width: 3; fill: #00000008; }
  .fx-glow { position: absolute; left: 50%; bottom: 0; width: 150px; height: 40px; translate: -50% 40%; border-radius: 50%; background: radial-gradient(closest-side, #ff9a3c66, transparent); opacity: 0; transition: opacity .5s; }
  .fx-stage.lit .fx-glow { opacity: 1; } .fx-fm.gold .fx-glow, .fx-stage.lit:has(.gold) .fx-glow { background: radial-gradient(closest-side, #ffd34d88, transparent); }
  .fx-ring { position: absolute; left: 50%; top: 55%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid #ff9a3c; opacity: 0; } .fx-ring.r2 { border-width: 1.5px; }
  .fx-stage.lit .fx-ring { animation: fxRing .9s ease-out forwards; } .fx-stage.lit .fx-ring.r2 { animation-delay: .15s; }
  .fx-spark { position: absolute; left: 50%; bottom: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #ffb000; box-shadow: 0 0 10px 3px #ffb00088; opacity: 0; z-index: 3; }
  .fx-fm.ignite .fx-spark { animation: fxSpark .75s .05s ease-out forwards; }
  .fx-count { position: relative; height: 34px; overflow: hidden; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; color: #f27a1a; margin-top: 2px; }
  .fx-count span { display: block; line-height: 34px; } .fx-count .o { animation: fxCountOut .4s 1s ease-in forwards; } .fx-count .n { position: absolute; inset: 0; transform: translateY(100%); animation: fxCountIn .45s 1.1s cubic-bezier(.2,1.4,.4,1) forwards; }
  .fx-fm.wait .fx-art { filter: grayscale(.4); opacity: .8; }
  .fx-fm.keep { background: transparent; backdrop-filter: none; align-items: flex-end; padding-bottom: 96px; pointer-events: none; animation: none; }
  .fx-pill { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 22px; background: var(--panel); box-shadow: 0 10px 30px #00000033, 0 0 0 1px var(--line); animation: fxRise .4s cubic-bezier(.2,1.2,.4,1); }
  .fx-pill .fx-art { width: 40px; height: 46px; animation: fxPulse 1.2s ease-in-out 2; } .fx-pill span { display: flex; flex-direction: column; text-align: left; } .fx-pill b { font-size: 15px; } .fx-pill small { color: var(--muted); font-size: 12.5px; }
  .fx-fm.keep.out .fx-pill { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
  .fx-hit { animation: fxHit .45s cubic-bezier(.2,1.6,.4,1); }
  .fx-coin { position: fixed; z-index: 410; width: 22px; height: 22px; pointer-events: none; } .fx-coin svg { width: 22px; height: 22px; fill: #cfe2ff; stroke: #3d8bfd; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 4px #3d8bfd55); }
  @keyframes fxEmber { 0%, 100% { transform: scale(.55); opacity: .7; } 50% { transform: scale(.58); opacity: 1; } }
  @keyframes fxIgnite { 0% { transform: scale(.25, .05); } 55% { transform: scale(1.06, 1.14); } 80% { transform: scale(.97, .95); } 100% { transform: none; } }
  @keyframes fxSpark { 0% { opacity: 0; transform: translateY(0) scale(.6); } 30% { opacity: 1; } 80% { opacity: 1; transform: translateY(-60px) scale(1); } 100% { opacity: 0; transform: translateY(-70px) scale(2.4); } }
  @keyframes fxCountOut { to { transform: translateY(-100%); opacity: 0; } } @keyframes fxCountIn { to { transform: none; } }
  @keyframes fxPulse { 50% { transform: scale(1.15); } }
  @keyframes fxHit { 40% { transform: scale(1.25); } }
  @media (prefers-reduced-motion: reduce) { .fx-art, .fx-ring, .fx-spark, .fx-lold, .fx-lnew, .fx-card, .fx-lcard { animation: none !important; } .fx-lnew { opacity: 1; } }
  /* Menüleiste anpassen */
  .mnu-card { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; }
  .mnu-card header { display: flex; flex-direction: column; gap: 2px; } .mnu-card header b { font-size: 18px; } .mnu-card header small { color: var(--muted); }
  .mnu-list { overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; }
  .mnu-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: transform .15s; } .mnu-row:not(.on) { opacity: .6; }
  .mnu-row.drag { transition: none; z-index: 2; box-shadow: var(--shadow); position: relative; }
  .mnu-grip { width: 22px; height: 22px; cursor: grab; touch-action: none; color: var(--muted); } .mnu-grip svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: none; }
  .mnu-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .mnu-n { flex: 1; font-weight: 600; }
  .mnu-sw { position: relative; width: 40px; height: 24px; flex: none; } .mnu-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
  .mnu-sw i { position: absolute; inset: 0; border-radius: 12px; background: var(--line); transition: background .2s; } .mnu-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s; }
  .mnu-sw input:checked + i { background: var(--accent); } .mnu-sw input:checked + i::after { transform: translateX(16px); }
  .mnu-card footer { display: flex; gap: 8px; } .mnu-card footer .sp { flex: 1; } .mnu-card footer .tb { width: auto; padding: 0 16px; }
  .mnu-prev { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .mnu-prev span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: var(--hover); font-size: 13px; }
  .mnu-prev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .snav-edit { border-top: 1px solid var(--line) !important; color: var(--muted) !important; }
  /* Kontaktfilter, Impressum */
  .pv-grp h4 { margin: 14px 0 4px; } .pv-grp .note { margin: 0 0 8px; }
  .pv-opts { display: flex; flex-direction: column; gap: 6px; }
  .pv-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; } .pv-opt.on { border-color: var(--accent); background: var(--accent-soft); }
  .pv-opt input { accent-color: var(--accent); } .pv-opt span { display: flex; flex-direction: column; } .pv-opt small { color: var(--muted); font-size: 12.5px; }
  .pv-blk { display: flex; align-items: center; gap: 10px; padding: 8px 0; } .pv-blk span { flex: 1; display: flex; flex-direction: column; } .pv-blk small { color: var(--muted); } .pv-blk .tb { width: auto; padding: 0 14px; }
  .pv-av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
  .imp-view { white-space: pre-wrap; line-height: 1.55; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .imp-edit { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; padding: 12px; resize: vertical; }
  .imp-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; } .imp-btns .tb { width: auto; padding: 0 16px; }

  /* Handy: Werkzeugleiste im Editor immer oben (auch ohne Tablet-Modus und mit eigenem Layout) */
  body.is-phone #toolbar { top: calc(6px + env(safe-area-inset-top)) !important; bottom: auto !important; }
  body.is-phone .sb-live { margin-top: env(safe-area-inset-top); }


  /* Ladebildschirm (steht ganz oben, damit er sofort erscheint) */
  #boot { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: center; background: #f4f5f7; color: #1c1d21; transition: opacity .35s ease; font-family: "Nunito", "Segoe UI", system-ui, sans-serif; }
  #boot.dark { background: #17181b; color: #eceef2; }
  #boot.away { opacity: 0; pointer-events: none; }
  #boot .boot-box { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(320px, calc(100vw - 48px)); }
  #boot .boot-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 34px rgba(0,0,0,.18); animation: bootin .5s ease-out; }
  #boot .boot-title { font-size: 26px; font-weight: 800; letter-spacing: .01em; }
  #boot .boot-bar { width: 100%; height: 6px; border-radius: 3px; background: rgba(127,127,127,.22); overflow: hidden; }
  #boot .boot-bar i { display: block; height: 100%; width: 3%; border-radius: 3px; background: linear-gradient(90deg, #7b5cff, #ff5fa2); transition: width .3s ease; }
  #boot .boot-txt { font-size: 13px; opacity: .65; min-height: 1.2em; }
  @keyframes bootin { from { transform: scale(.88); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { #boot, #boot .boot-bar i { transition: none; } #boot .boot-logo { animation: none; } }
