*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

:root {
    --pg: #0b0b0d; --pg2: #141417; --pgline: rgba(255,255,255,.10);
    --pt: #fff; --pt2: rgba(255,255,255,.62); --pt3: rgba(255,255,255,.40);
    --acc: #3b82f6;
    --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Menlo, monospace;
  }
  @media (prefers-color-scheme: light) {
    :root { --pg: #f3f3f5; --pg2: #fff; --pgline: rgba(10,10,15,.12);
      --pt: #0a0a0c; --pt2: rgba(10,10,15,.66); --pt3: rgba(10,10,15,.46); --acc: #1d4ed8; }
  }
  :root[data-theme="light"] { --pg: #f3f3f5; --pg2: #fff; --pgline: rgba(10,10,15,.12);
    --pt: #0a0a0c; --pt2: rgba(10,10,15,.66); --pt3: rgba(10,10,15,.46); --acc: #1d4ed8; }
  :root[data-theme="dark"] { --pg: #0b0b0d; --pg2: #141417; --pgline: rgba(255,255,255,.10);
    --pt: #fff; --pt2: rgba(255,255,255,.62); --pt3: rgba(255,255,255,.40); --acc: #3b82f6; }

  body { background: var(--pg); color: var(--pt); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 44px 24px 72px; display: flex; flex-direction: column; gap: 30px; }
  .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pt3); margin: 0 0 12px; }
  h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -.022em; font-weight: 600; margin: 0 0 14px; text-wrap: balance; }
  .lede { font-size: 16px; line-height: 1.6; color: var(--pt2); max-width: 66ch; margin: 0; }

  /* ============ DESKTOP STAGE ============ */
  .stage {
    --op: .88;
    position: relative; width: 100%; aspect-ratio: 16/10; min-height: 600px;
    border-radius: 14px; overflow: hidden; border: 1px solid var(--pgline);
    user-select: none;
  }
  .stage[data-win="dark"] {
    --wall1: #101a33; --wall2: #1d2c52; --wall3: #0a0e1c; --wall4: #3557a8;
    --bar: rgba(28,28,32,.72); --barline: rgba(255,255,255,.09); --barink: rgba(255,255,255,.85);
    --barhov: rgba(255,255,255,.09);
    --pan: rgba(24,24,28,.80); --panline: rgba(255,255,255,.11); --panedge: rgba(255,255,255,.055);
    --ink: #fff; --ink2: rgba(255,255,255,.62); --ink3: rgba(255,255,255,.42);
    --hov: rgba(255,255,255,.08); --act: rgba(255,255,255,.13);
    --fld: rgba(255,255,255,.06); --a: #3b82f6; --asoft: rgba(59,130,246,.16); --dngr: #ff6b6f;
    --shadow: 0 18px 50px rgba(0,0,0,.55), 0 3px 12px rgba(0,0,0,.4);
  }
  .stage[data-win="light"] {
    --wall1: #c9d6ec; --wall2: #e6ecf7; --wall3: #aebdd8; --wall4: #f2f5fb;
    --bar: rgba(243,243,245,.78); --barline: rgba(10,10,15,.10); --barink: rgba(10,10,15,.82);
    --barhov: rgba(10,10,15,.07);
    --pan: rgba(250,250,252,.86); --panline: rgba(10,10,15,.13); --panedge: rgba(255,255,255,.6);
    --ink: #0a0a0c; --ink2: rgba(10,10,15,.64); --ink3: rgba(10,10,15,.45);
    --hov: rgba(10,10,15,.06); --act: rgba(10,10,15,.10);
    --fld: rgba(10,10,15,.05); --a: #1d4ed8; --asoft: rgba(29,78,216,.10); --dngr: #c8353a;
    --shadow: 0 18px 50px rgba(20,30,60,.22), 0 3px 12px rgba(20,30,60,.14);
  }

  .wall { position: absolute; inset: 0; background:
      radial-gradient(120% 90% at 22% 18%, var(--wall2) 0%, transparent 58%),
      radial-gradient(90% 80% at 82% 72%, var(--wall4) 0%, transparent 55%),
      radial-gradient(140% 120% at 50% 110%, var(--wall3) 0%, transparent 70%),
      var(--wall1); }
  .wall::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 50% at 50% 42%, rgba(255,255,255,.06), transparent 70%); }

  .deskicons { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 4px; }
  .di { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 8px 4px; border-radius: 5px; color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.75); }
  .di svg { width: 30px; height: 30px; opacity: .95; }
  .stage[data-win="light"] .di { color: #14213d; text-shadow: 0 1px 3px rgba(255,255,255,.9); }

  /* ---- taskbar ---- */
  .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
    background: var(--bar); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border-top: 1px solid var(--barline); display: flex; align-items: center; padding: 0 10px; z-index: 20; }
  .barmid { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; align-items: center; }
  .tb { position: relative; width: 40px; height: 40px; border-radius: 5px; border: 0; background: none; cursor: pointer;
    display: grid; place-items: center; color: var(--barink); padding: 0; }
  .tb:hover { background: var(--barhov); }
  .tb:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .tb svg { width: 19px; height: 19px; }
  .tb img { width: 21px; height: 21px; display: block; }
  .tb .dot { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 5px; height: 3px; border-radius: 2px; background: var(--barink); opacity: .5; transition: width .18s ease, opacity .18s ease; }
  .tb[hidden] { display: none; }
  .tb[aria-expanded="true"], .tb.active { background: var(--barhov); }
  .tb[aria-expanded="true"] .dot, .tb.active .dot { width: 17px; background: var(--a); opacity: 1; }
  .tray { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--barink); }
  .trayb { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 5px; border: 0; background: none; color: inherit; cursor: pointer; }
  .trayb:hover { background: var(--barhov); }
  .trayb:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .trayb svg { width: 15px; height: 15px; }
  .trayb[aria-expanded="true"] { background: var(--barhov); }
  .trayfly { position: absolute; right: 8px; bottom: 56px; z-index: 32; padding: 7px;
    display: grid; grid-template-columns: repeat(3, 34px); gap: 3px;
    background: color-mix(in srgb, var(--pan) calc(var(--op) * 100%), transparent);
    backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid var(--panline); border-radius: 8px; box-shadow: var(--shadow); }
  .trayfly[hidden] { display: none; }
  /* Sprungliste am angehefteten N. Sie sitzt ueber der Taskleiste, mittig
     ueber ihrem Symbol, und traegt dieselbe Glasflaeche wie das Panel. */
  .anmfly { position: absolute; left: 50%; transform: translateX(-50%); bottom: 56px;
    z-index: 32; width: 232px; max-height: 60vh; overflow-y: auto; padding: 6px;
    display: flex; flex-direction: column; gap: 1px;
    background: color-mix(in srgb, var(--pan) calc(var(--op) * 100%), transparent);
    backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid var(--panline); border-radius: 8px; box-shadow: var(--shadow); }
  .anmfly[hidden] { display: none; }
  .anmfly h5 { margin: 4px 8px 6px; font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink3, var(--ink2)); font-weight: 500; }
  .anmitem { display: block; width: 100%; text-align: left; border: 0; background: none;
    padding: 7px 9px; border-radius: 5px; color: var(--ink); font-size: 13px;
    cursor: pointer; }
  .anmitem:hover { background: var(--hov); }
  .anmitem:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .anmitem[aria-current="true"] { background: var(--asoft); }
  .trayicon { width: 34px; height: 34px; border-radius: 5px; border: 0; background: none; padding: 0;
    color: var(--ink2); cursor: pointer; display: grid; place-items: center; }
  .trayicon:hover { background: var(--hov); color: var(--ink); }
  .trayicon:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .trayicon[aria-expanded="true"] { background: var(--asoft); }
  .trayicon img { width: 19px; height: 19px; }
  .trayicon svg { width: 17px; height: 17px; }
  .clock { text-align: right; font-size: 12px; line-height: 1.28; padding: 5px 10px; border-radius: 5px; border: 0; background: none; color: inherit; cursor: default; font-variant-numeric: tabular-nums; }

  /* ---- panel ---- */
  .panel { position: absolute; bottom: 58px; left: 12px; width: 320px; border-radius: 9px; z-index: 30;
    background: color-mix(in srgb, var(--pan) calc(var(--op) * 100%), transparent);
    backdrop-filter: blur(34px) saturate(1.7); -webkit-backdrop-filter: blur(34px) saturate(1.7);
    border: 1px solid var(--panline); box-shadow: var(--shadow); color: var(--ink);
    padding: 7px 6px 5px; font-size: 13px;
    opacity: 0; transform: translateY(10px) scale(.985); pointer-events: none;
    transition: opacity .16s ease, transform .16s cubic-bezier(.16,1,.3,1); transform-origin: bottom center; }
  .panel.open { opacity: 1; transform: none; pointer-events: auto; cursor: grab; }
  .panel.dragging { cursor: grabbing; }
  .panel .view, .panel .fldrow, .panel .foot, .panel .shead { cursor: default; }
  .panel::after { content: ""; position: absolute; inset: 0; border-radius: 9px; border: 1px solid var(--panedge); pointer-events: none; }
  @media (prefers-reduced-motion: reduce) { .panel { transition: none; } }

  .view { display: flex; flex-direction: column; }
  .view[hidden] { display: none; }

  .fldrow { display: flex; align-items: center; gap: 3px; margin: 2px 3px 5px; }
  .fld { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--fld); border: 1px solid transparent;
    border-radius: 6px; padding: 0 9px; height: 32px; }
  .detach { width: 32px; height: 32px; flex: none; border-radius: 6px; border: 0; background: none; color: var(--ink2); cursor: pointer; display: grid; place-items: center; }
  .detach:hover { background: var(--hov); color: var(--ink); }
  .detach:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .detach[aria-pressed="true"] { background: var(--asoft); color: var(--a); }
  .detach svg { width: 17px; height: 17px; }

  /* app window */
  .win { position: absolute; z-index: 15; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
    background: color-mix(in srgb, var(--pan) calc(var(--op) * 78%), transparent);
    backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid var(--panline); box-shadow: var(--shadow); color: var(--ink); }
  .win[hidden] { display: none; }
  .win.max { border-radius: 0; border-width: 0 0 1px; }
  .winbar { height: 36px; flex: none; display: flex; align-items: center; gap: 8px; padding-left: 11px;
    border-bottom: 1px solid var(--panline); cursor: grab; touch-action: none;
    background: color-mix(in srgb, var(--pan) calc(var(--op) * 78%), transparent); }
  .winbar.drag { cursor: grabbing; }
  .win.max .winbar { cursor: default; }
  .winbar img { width: 17px; height: 17px; flex: none; }
  .wintitle { font-size: 12px; color: var(--ink2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .winctl { display: flex; flex: none; align-self: stretch; }
  .winctl button { width: 42px; border: 0; background: none; color: var(--ink2); cursor: pointer; display: grid; place-items: center; }
  .winctl button:hover { background: var(--hov); color: var(--ink); }
  .winctl button:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .winctl button.cl:hover { background: #d13438; color: #fff; }
  .winctl svg { width: 11px; height: 11px; }
  .winbody { flex: 1; min-height: 0; position: relative; overflow: hidden;
    background: color-mix(in srgb, var(--fld) calc(var(--op) * 78%), transparent); }
  /* Der Rahmen bekommt einen festen gedachten Viewport von 1440 px und wird
     auf die Fenstergröße heruntergerechnet. Ohne das rendert die Oberfläche
     1:1 und wirkt in einem 900-px-Fenster grob vergrößert, die Seitenspalte
     nimmt dann ein Viertel der Breite ein statt einem Sechstel. */
  /* Kein opacity mehr auf dem Rahmen: Das hellte die Seite nur auf, statt
     sie durchsichtig zu machen. Die Seite selbst traegt jetzt Alpha, siehe
     ?embed=1 in der eingebetteten Oberflaeche. Der Rahmen bleibt ohne
     Grundfarbe, damit der Fensterkitt darunter die Wand zeigt. */
  .winbody iframe { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; background: transparent; }
  .winbody iframe[hidden] { display: none; }
  .winfall { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 9px; padding: 26px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--ink2); }
  .winfall[hidden] { display: none; }
  .winfall a { color: var(--a); }

  /* floating mini search */
  .mini { position: absolute; z-index: 25; width: 264px; border-radius: 8px; padding: 5px 5px 5px 9px;
    background: color-mix(in srgb, var(--pan) calc(var(--op) * 100%), transparent);
    backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid var(--panline); box-shadow: var(--shadow); color: var(--ink);
    display: flex; align-items: center; gap: 7px; cursor: grab; touch-action: none; }
  .mini[hidden] { display: none; }
  .mini.drag { cursor: grabbing; }
  .mini svg.mg { width: 15px; height: 15px; opacity: .5; flex: none; }
  .mini input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 12px; cursor: text; }
  .mini input::placeholder { color: var(--ink3); }
  .mini .x, .mini .pin { width: 24px; height: 24px; flex: none; border-radius: 5px; border: 0; background: none; color: var(--ink2); cursor: pointer; display: grid; place-items: center; }
  .mini .x:hover, .mini .pin:hover { background: var(--hov); color: var(--ink); }
  .mini .x:focus-visible, .mini .pin:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .mini .x svg { width: 13px; height: 13px; }
  .mini .pin svg { width: 14px; height: 14px; }
  .mini .pin[aria-pressed="true"] { color: var(--a); background: var(--asoft); }
  .mini.pinned { z-index: 35; border-color: color-mix(in srgb, var(--a) 50%, var(--panline)); }
  .fld:focus-within { border-color: var(--a); box-shadow: 0 0 0 2px var(--asoft); background: var(--fld); }
  .fld input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 13px; }
  .fld input::placeholder { color: var(--ink3); }
  .fld input { text-overflow: ellipsis; }
  .fld svg { width: 15px; height: 15px; opacity: .5; flex: none; }
  .kbd { font-family: var(--mono); font-size: 10px; color: var(--ink3); border: 1px solid var(--panline); border-radius: 3px; padding: 2px 5px; flex: none; }

  .nex { display: flex; align-items: center; gap: 10px; width: calc(100% - 6px); margin: 0 3px 3px; padding: 8px 9px;
    border-radius: 7px; background: var(--asoft); border: 1px solid transparent; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
  .nex:hover { background: var(--asoft); filter: brightness(1.12); }
  .nex:focus-visible { outline: 2px solid var(--a); outline-offset: -1px; }
  .nex img { width: 30px; height: 30px; flex: none; }
  .nex img.mark { width: 23px; height: 23px; margin: 0 3.5px; }
  .nex b { display: block; font-size: 13px; font-weight: 600; }
  .nex small { display: block; font-size: 11px; color: var(--ink2); margin-top: 1px; }
  .nex .kbd { margin-left: auto; }

  .rule { height: 1px; background: var(--panline); margin: 5px 8px; }
  .lbl { font-size: 11px; font-weight: 400; color: var(--ink3); padding: 6px 9px 4px; }

  .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
  .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .t { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px;
    padding: 8px 2px 8px; border-radius: 7px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; min-height: 62px; }
  .t:hover { background: var(--hov); }
  .t:active { background: var(--act); }
  .t:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .t img { width: 30px; height: 30px; display: block; flex: none; opacity: calc(.07 + .93 * var(--op)); }
  .t span { font-size: 11px; line-height: 1.15; color: var(--ink2); text-align: center; }
  .t[hidden] { display: none; }

  .empty { padding: 16px 10px 18px; text-align: center; font-size: 12px; color: var(--ink3); }
  .empty[hidden] { display: none; }

  .foot { display: flex; align-items: center; gap: 1px; padding: 1px 3px; }
  .fb { display: flex; align-items: center; gap: 7px; padding: 0 9px; height: 32px; border-radius: 6px; background: none;
    border: 0; color: var(--ink2); font: inherit; font-size: 12px; cursor: pointer; }
  .fb:hover { background: var(--hov); color: var(--ink); }
  .fb:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .fb svg { width: 15px; height: 15px; }
  .fb.dngr:hover { background: color-mix(in srgb, var(--dngr) 15%, transparent); color: var(--dngr); }
  .sp { flex: 1; }
  .ver { text-align: center; font-family: var(--mono); font-size: 10px; color: var(--ink3); padding: 3px 0 3px; letter-spacing: .03em; }

  /* settings view */
  .shead { display: flex; align-items: center; gap: 6px; padding: 1px 3px 6px; }
  .shead b { font-size: 13px; font-weight: 600; }
  .back { width: 28px; height: 28px; border-radius: 6px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
  .back:hover { background: var(--hov); }
  .back:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .back svg { width: 15px; height: 15px; }
  .srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px; border-radius: 7px; }
  .srow > span { font-size: 12px; }
  .srow small { display: block; font-size: 11px; color: var(--ink3); margin-top: 1px; }
  .grp { font-size: 11px; color: var(--ink3); padding: 6px 9px 2px; }
  .srow select { font: inherit; font-size: 12px; color: var(--ink); background: var(--fld); border: 1px solid var(--panline);
    border-radius: 6px; padding: 5px 7px; max-width: 132px; cursor: pointer; }
  .srow select:focus-visible { outline: 2px solid var(--a); outline-offset: 1px; }
  .sbtn { font: inherit; font-size: 12px; color: var(--ink); background: var(--fld); border: 1px solid var(--panline);
    border-radius: 6px; padding: 6px 11px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
  .sbtn:hover { background: var(--hov); }
  .sbtn:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
  .sbtn.rec { color: var(--dngr); border-color: color-mix(in srgb, var(--dngr) 45%, transparent); }
  .recdot { width: 7px; height: 7px; border-radius: 50%; background: var(--dngr); animation: pulse 1.1s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
  @media (prefers-reduced-motion: reduce) { .recdot { animation: none; } }
  a.srow { text-decoration: none; color: inherit; }
  a.srow:hover { background: var(--hov); }
  a.srow:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
  .srow .ext { display: flex; align-items: center; gap: 8px; color: var(--ink3); }
  .srow .ext svg { width: 15px; height: 15px; }
  .seg { display: flex; gap: 2px; background: var(--fld); border-radius: 6px; padding: 2px; }
  .seg button { border: 0; background: none; color: var(--ink2); font: inherit; font-size: 11px; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
  .seg button[aria-pressed="true"] { background: var(--a); color: #fff; }
  .seg button:focus-visible { outline: 2px solid var(--a); outline-offset: 1px; }
  input[type="range"] { -webkit-appearance: none; appearance: none; width: 108px; height: 16px; background: none; cursor: pointer; }
  input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--panline); }
  input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--a); margin-top: -5px; }
  input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--panline); }
  input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--a); }
  input[type="range"]:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
  .sw { width: 36px; height: 20px; border-radius: 10px; border: 1px solid var(--panline); background: var(--fld); position: relative; cursor: pointer; padding: 0; }
  .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink2); transition: transform .16s ease; }
  .sw[aria-checked="true"] { background: var(--a); border-color: transparent; }
  .sw[aria-checked="true"]::after { transform: translateX(16px); background: #fff; }
  .sw:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }

  /* confirm dialog */
  .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.34); z-index: 40; display: grid; place-items: center; padding: 20px; }
  .scrim[hidden] { display: none; }
  .dlg { width: 320px; border-radius: 9px; background: var(--pan); backdrop-filter: blur(34px) saturate(1.7); -webkit-backdrop-filter: blur(34px) saturate(1.7);
    border: 1px solid var(--panline); box-shadow: var(--shadow); color: var(--ink); padding: 18px 18px 14px; }
  .dlg h4 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
  .dlg p { margin: 0 0 15px; font-size: 12px; line-height: 1.55; color: var(--ink2); }
  .dlgb { display: flex; gap: 7px; justify-content: flex-end; }
  .dlgb button { font: inherit; font-size: 12px; padding: 7px 13px; border-radius: 6px; cursor: pointer;
    border: 1px solid var(--panline); background: var(--fld); color: var(--ink); }
  .dlgb button:hover { background: var(--hov); }
  .dlgb button:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
  .dlgb button.pri { background: var(--a); border-color: transparent; color: #fff; }
  .dlgb button[disabled] { opacity: .45; cursor: default; }
  .dlgb--luft { margin-top: 14px; }

  /* Sprachdialoge. Breiter als der Bestaetigungsdialog, weil beide eine Liste
     oder einen Vorlesesatz tragen, und mit eigenem Kopf samt Schliessknopf:
     man verlaesst sie ohne Entscheidung, anders als beim Beenden. */
  .dlg--v { width: 372px; padding: 0; }
  .vhead { display: flex; align-items: center; gap: 10px; padding: 15px 16px 12px; }
  .vhead h4 { flex: 1; margin: 0; }
  .vx { border: 0; background: none; color: var(--ink2); cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
  .vx:hover { background: var(--hov); color: var(--ink); }
  .vx:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
  .vbody { padding: 0 16px 14px; }
  .vcard { border: 1px solid var(--panline); border-radius: 8px; padding: 12px; margin-bottom: 13px; }
  .vcard > p { margin: 0 0 9px; }
  .vsatz { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink);
    background: var(--fld); border-radius: 7px; padding: 11px 12px; }
  .vlab { display: block; font-size: 12px; color: var(--ink2); margin: 0 0 6px; }
  .vfeld { width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 7px;
    border: 1px solid var(--panline); background: var(--fld); color: var(--ink); }
  .vfeld:focus-visible { outline: 2px solid var(--a); outline-offset: 1px; }
  /* Aufnahmezeile: Knopf, Ausschlag, Uhr. Der Ausschlag ist Beiwerk, die
     Aussage traegt die Uhr daneben, deshalb steht er bei reduzierter Bewegung
     still, statt beschleunigt zu zappeln. */
  .vrec { display: flex; align-items: center; gap: 13px; margin-top: 13px; }
  .vknopf { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
    background: var(--fld); display: grid; place-items: center; }
  .vknopf:hover { background: var(--hov); }
  .vknopf:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
  .vpunkt { width: 15px; height: 15px; border-radius: 50%; background: #fff; }
  .vknopf[aria-pressed="true"] .vpunkt { border-radius: 3px; background: #e5484d; }
  .vwelle { flex: 1; display: flex; align-items: center; gap: 4px; height: 15px; }
  .vwelle i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink2); opacity: .5; }
  .vknopf[aria-pressed="true"] ~ .vwelle i { animation: vpuls 1.1s ease-in-out infinite; }
  .vwelle i:nth-child(2) { animation-delay: .1s } .vwelle i:nth-child(3) { animation-delay: .2s }
  .vwelle i:nth-child(4) { animation-delay: .3s } .vwelle i:nth-child(5) { animation-delay: .4s }
  .vwelle i:nth-child(6) { animation-delay: .5s } .vwelle i:nth-child(7) { animation-delay: .6s }
  .vwelle i:nth-child(8) { animation-delay: .7s }
  @keyframes vpuls { 0%,100% { transform: scaleY(1); opacity: .5 } 50% { transform: scaleY(3.2); opacity: 1 } }
  @media (prefers-reduced-motion: reduce) { .vwelle i { animation: none !important } }
  .vuhr { font-family: var(--mono); font-size: 12px; color: var(--ink2); flex: none; }

  /* Stimmenliste. Rollt, weil mehr Stimmen dazukommen als hineinpassen. */
  .vliste { max-height: 188px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; }
  .vzeile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 7px;
    border: 1px solid var(--panline); background: var(--fld); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
  .vzeile:hover { background: var(--hov); }
  .vzeile:focus-visible { outline: 2px solid var(--a); outline-offset: 1px; }
  .vzeile[aria-checked="true"] { border-color: var(--a); }
  .vzeile b { flex: 1; font-size: 13px; font-weight: 600; }
  .vplay { width: 26px; height: 26px; border-radius: 6px; border: 0; background: var(--hov); color: var(--ink);
    display: grid; place-items: center; cursor: pointer; flex: none; }
  .vplay:hover { background: var(--panline); }
  .vplay:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
  .vgrp { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); margin: 0 0 7px; }

  .toast { position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%) translateY(6px); z-index: 45;
    background: var(--pan); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid var(--panline);
    color: var(--ink); font-size: 12px; padding: 8px 14px; border-radius: 7px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .toast.show { opacity: 1; transform: translateX(-50%); }

  /* ---- page chrome ---- */
  .ab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -16px; }
  .ab > span { font-size: 13px; color: var(--pt2); }
  .abseg { display: flex; gap: 2px; border: 1px solid var(--pgline); border-radius: 8px; padding: 3px; }
  .abseg button { border: 0; background: none; color: var(--pt2); font: inherit; font-size: 12px; padding: 6px 12px; border-radius: 5px; cursor: pointer; }
  .abseg button[aria-pressed="true"] { background: var(--acc); color: #fff; }
  .abseg button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
  .hint { display: flex; flex-wrap: wrap; gap: 7px; }
  .hint span { font-size: 12px; color: var(--pt2); border: 1px solid var(--pgline); border-radius: 6px; padding: 6px 10px; }
  .hint code { font-family: var(--mono); font-size: 11px; color: var(--pt); }
  h2 { font-size: 12px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pt3); font-weight: 400; margin: 0 0 18px; padding-bottom: 11px; border-bottom: 1px solid var(--pgline); }
  .tablewrap { overflow-x: auto; border: 1px solid var(--pgline); border-radius: 11px; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: var(--pt3); font-weight: 400; padding: 11px 15px; border-bottom: 1px solid var(--pgline); white-space: nowrap; }
  td { padding: 10px 15px; border-bottom: 1px solid var(--pgline); color: var(--pt2); vertical-align: middle; }
  tr:last-child td { border-bottom: 0; }
  td:first-child { color: var(--pt); white-space: nowrap; }
  td img { width: 26px; height: 26px; display: block; }
  .note { font-size: 13px; line-height: 1.62; color: var(--pt2); max-width: 72ch; margin: 0; }
  .note b { color: var(--pt); font-weight: 600; }
  /* Drei Notizen brauchten einen eigenen Abstand und trugen ihn als
     style-Attribut. Der Vhost setzt style-src 'self' ohne 'unsafe-inline',
     und der Browser verwirft ein solches Attribut STILLSCHWEIGEND: oertlich
     sass der Abstand, live nicht, und in der Konsole stand nichts. Dieselbe
     Falle hat beim Bau der Akte zweimal zugeschlagen. Als Klasse wirkt sie. */
  .note--zurueck { margin-top: -18px; }
  .note--luft    { margin-top: 15px; }
  .note--luft-s  { margin-top: 12px; }
  ul.dl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
  ul.dl li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--pgline); font-size: 13px; line-height: 1.58; color: var(--pt2); }
  ul.dl li:last-child { border-bottom: 1px solid var(--pgline); }
  ul.dl b { color: var(--pt); font-weight: 600; }
  @media (max-width: 640px) { ul.dl li { grid-template-columns: 1fr; gap: 3px; } .stage { aspect-ratio: auto; height: 620px; } }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
