/* 🤝 Coop (js/coop.js, js/coopmedia.js, js/coopav.js) — Kanäle, Chat, Medienraum.
   Aufbau wie Discord (Nutzer, 13.10.2026: „minimale Belegung der UI, maximale Nutzfläche“, „UI in Overlays“): #/coop füllt
   das ganze Fenster (App-Kopf und -Navigation weg, 🏠 in der Kanalliste führt zurück). Inhalt (Chat bzw. Bühne) nimmt alles
   ein; Kanalliste (links), Mitglieder (rechts), Suche und Chat im Call schweben als Overlay darüber (📌 heftet sie ab, erst
   ab 900 px Breite). Kopf schmal (46 px), im Call schwebend und mit der Steuerleiste ausgeblendet.
   retropixels: harte Kanten, 2px-Outlines, Hard-Drop-Shadows, Pixelfont für Köpfe/Knöpfe, keine CSS-Gradients
   (Software-Renderer), Farben nur aus den Theme-Tokens (Editionen färben über dieselben Variablen). */

.view.co-view { overflow: hidden; display: flex; flex-direction: column; }
/* 🎨 Coop-Theme: Schrift auf Akzent-Flächen (coopthemes --on-accent; ohne eigenes Theme wie bisher Weiß) */
.co-app .btn-primary, #gp .btn-primary { color: var(--on-accent, #fff); }
.co-app { --co-side-w: 240px; --co-panel-w: 300px; --co-head-h: 46px; position: relative; flex: 1; min-height: 0; display: flex;
  background: var(--bg); overflow: hidden; }
/* Route #/coop: über dem ganzen Rahmen (App-Kopf/-Navigation, Editions-Rahmen) — unter Dialogen (60), Toasts, Menüs (90+) */
html.co-full body { overflow: hidden; }
html.co-full .co-app { position: fixed; inset: 0; z-index: 55; height: 100vh; height: 100dvh; }
html.co-full #co-pill { display: none !important; }   /* im Coop zeigt die Kanalliste „🔊 Verbunden“ bzw. der Kopf den Raum */
/* Editionen geben .co-side/.co-main Rahmen und Rundungen — im Vollfenster liegen beide bündig am Rand */
html.co-full .co-app > .co-main { border: 0; border-radius: 0; box-shadow: none; }
html.co-full .co-app > .co-side { border-width: 0 2px 0 0; border-style: solid; border-color: var(--line); border-radius: 0; }
.co-muted { color: var(--muted); font-size: .85rem; }
.co-pad { padding: 8px 10px; margin: 0; }

/* Kleine Icon-Knöpfe ohne Rahmen (Kopf, Panels, Kanalliste) */
.co-hb { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 32px; height: 32px;
  padding: 0 6px; box-sizing: border-box; border: 2px solid transparent; background: transparent; color: var(--muted); font: inherit;
  font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; }
.co-hb:hover { color: var(--text); background: var(--accent-soft); }
.co-hb:focus-visible, .co-cb:focus-visible, .co-row:focus-visible, .co-mact button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.co-hb.on, .co-hb[aria-expanded="true"] { color: var(--text); background: var(--accent-soft); border-color: var(--line); }
.co-hb[hidden] { display: none; }
.co-hb small { font-family: var(--px); font-size: .5rem; }
.co-hdot { position: absolute; top: 4px; right: 3px; width: 7px; height: 7px; background: var(--danger); border: 1px solid var(--shadow-c); }
.co-hdot[hidden] { display: none; }

/* ---- Kanalliste (links): schwebt über dem Inhalt, 📌 heftet sie an ---- */
.co-side { width: var(--co-side-w); max-width: 86vw; flex: none; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box;
  background: var(--surface); border-right: 2px solid var(--line); outline: none;
  position: absolute; z-index: 30; top: 0; bottom: 0; left: 0; transform: translateX(-102%); visibility: hidden;
  transition: transform .18s ease-out, visibility 0s linear .18s; }
.co-app.side-open .co-side { transform: none; visibility: visible; box-shadow: 4px 0 0 var(--shadow-c); transition: transform .18s ease-out; }
.co-app.side-pin .co-side { position: relative; transform: none; visibility: visible; box-shadow: none; transition: none; }
.co-app.side-pin .co-sidebtn, .co-app.side-pin .co-closebtn { display: none; }
.co-side-head { display: flex; align-items: center; gap: 2px; height: var(--co-head-h); padding: 0 6px; box-sizing: border-box; flex: none;
  border-bottom: 2px solid var(--line); }
.co-brand { flex: 1; min-width: 0; padding-left: 4px; font-family: var(--px); font-weight: 700; font-size: .7rem; letter-spacing: 1px;
  color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .co-pinbtn { display: none !important; } }   /* Anheften erst ab 900 px (cooplayout.PIN_MIN_W) */
.co-list { flex: 1; overflow: auto; padding: 4px 0 8px; overscroll-behavior: contain; }
.co-sec { margin-top: 8px; }
.co-sec.focus .co-sec-h { color: var(--accent); }
.co-sec-h { font-family: var(--px); font-size: .5rem; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 4px 10px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-row { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 8px; margin: 1px 6px; box-sizing: border-box; color: var(--muted);
  text-decoration: none; border: 2px solid transparent; font-size: .9rem; }
.co-row:hover { background: var(--accent-soft); color: var(--text); }
.co-row.on { background: var(--accent-soft); border-color: var(--line); color: var(--text); }
.co-row.unread { color: var(--text); }
.co-row.unread .co-row-n { font-weight: 700; }
.co-row-e { width: 1.3em; text-align: center; flex: none; color: var(--muted); }
.co-row-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-row-live { display: none; }   /* die Teilnehmer stehen unter dem Kanal (.co-vus) */
.co-row-here { font-size: .68rem; color: var(--muted); flex: none; }
/* Sprachkanal in der Liste: „Beitreten“ beim Überfahren/Fokus, beim offenen Kanal immer (Klick tritt direkt bei) */
.co-row-join { display: none; flex: none; padding: 1px 7px; background: var(--ok); color: var(--bg); border: 2px solid var(--shadow-c);
  font-size: .68rem; font-weight: 800; }
.co-row.voice:hover .co-row-join, .co-row.voice:focus-visible .co-row-join, .co-row.voice.on .co-row-join { display: inline-block; }
.co-row.voice:hover .co-row-here, .co-row.voice.on .co-row-here { display: none; }
.co-badge { flex: none; min-width: 18px; padding: 1px 5px; text-align: center; font-family: var(--px); font-size: .5rem; font-weight: 700;
  background: var(--accent); color: var(--on-accent, #fff); border: 2px solid var(--shadow-c); box-sizing: border-box; }
.co-badge.mention { background: var(--danger); color: var(--bg); }   /* dunkle Schemata: --danger ist hell → Hintergrundfarbe als Schrift */
/* „🔊 Verbunden“ unten in der Liste (wie Discord), solange man in einem Raum ist */
.co-vbox { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-top: 2px solid var(--line); background: var(--surface-2); flex: none; }
.co-vbox[hidden] { display: none; }
.co-vbox-ch { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 4px; color: var(--text); text-decoration: none; }
.co-vbox-ch b { font-family: var(--px); font-size: .5rem; color: var(--ok); }
.co-vbox-ch small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-vbox-ch:hover small { color: var(--text); }
.co-vbox-leave:hover { background: var(--danger); color: #fff; }

/* ---- Hauptbereich ---- */
.co-main { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.co-embed { display: flex; flex-direction: column; min-height: 420px; }
.co-embed > .co-main { flex: 1; border: 2px solid var(--line); }
/* Schmaler Kopf: ☰ · Emoji Name · Thema | 🖼️ 🔍 👥 ⋯ */
.co-head { position: relative; z-index: 12; display: flex; align-items: center; gap: 6px; height: var(--co-head-h, 46px); padding: 0 6px; box-sizing: border-box;
  flex: none; border-bottom: 2px solid var(--line); background: var(--surface); transition: opacity .25s, transform .25s; }
.co-hname { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.co-he { font-size: 1.05rem; flex: none; padding-left: 2px; }
.co-hn { margin: 0; font-family: var(--px); font-size: .72rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 0 1 auto; min-width: 3ch; line-height: 1.3; }
.co-htopic { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 0; color: var(--muted); font-size: .8rem; }
.co-htopic:not(:empty)::before { content: ''; flex: none; width: 2px; height: 18px; background: var(--border); }
.co-htxt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.co-htopic .co-ref { flex: 0 1 auto; min-width: 0; font-size: .78rem; }
.co-hact { display: flex; gap: 2px; align-items: center; flex: none; }
.co-callchip:empty { display: none; }
.co-chip-call { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; max-width: 26ch; border: 2px solid var(--ok); color: var(--text);
  font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-chip-call:hover { background: var(--accent-soft); }
.co-avas { display: inline-flex; }
.co-avas .co-ava { margin-left: -4px; border: 2px solid var(--surface-2); }

/* Sprachleiste ohne Call: „🔊 Sprachkanal · 2 drin · Beitreten“ statt einer großen leeren Fläche */
.co-vbar { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 3px 8px 3px 12px; box-sizing: border-box; flex: none;
  border-bottom: 2px solid var(--line); background: var(--surface-2); font-size: .85rem; }
.co-vbar[hidden] { display: none; }
.co-vb-ic { flex: none; }
.co-vb-t { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.co-vb-t b { color: var(--text); }
.co-vbar .co-avas { flex: none; }
/* „🔊 Beitreten“: gut sichtbarer Hauptknopf in Grün (Theme-Farbe --ok; Schrift in Hintergrundfarbe → hell auf dunklem Grün
   in hellen Schemata, dunkel auf hellem Grün in dunklen) — Sprachleiste, Gastkopf */
.co-join-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 34px; padding: 4px 16px; box-sizing: border-box; cursor: pointer;
  border: 2px solid var(--shadow-c); background: var(--ok); color: var(--bg); font: inherit; font-size: .92rem; font-weight: 800; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--shadow-c); }
.co-join-btn:hover { filter: brightness(1.08); }
.co-join-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-c); }
.co-join-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.co-join-btn.leave { background: var(--danger); color: var(--bg); }
.co-join-n { min-width: 1.4em; padding: 0 5px; text-align: center; background: var(--bg); color: var(--text); font-size: .75rem; line-height: 1.5; }
.co-vb-join { margin-left: auto; }
.co-vbar { min-height: 46px; }

/* Suche im Kanal: schwebt unter dem Kopf */
.co-findbar { position: absolute; z-index: 25; top: calc(var(--co-head-h, 46px) + 4px); right: 8px; width: min(420px, calc(100% - 16px)); padding: 6px;
  box-sizing: border-box; background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); }
.co-findbar[hidden] { display: none; }
.co-findbar input, .co-search input { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); }
.co-findres { max-height: 50vh; overflow: auto; }
.co-search { padding: 10px; overflow: auto; flex: 1; }
.co-search .co-findres { max-height: none; }
.co-hit { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--border); background: transparent;
  color: var(--text); text-decoration: none; cursor: pointer; font-size: .88rem; }
.co-hit:hover { background: var(--accent-soft); }
.co-hit small { color: var(--muted); }
.co-hit-ch { font-family: var(--px); font-size: .6rem; color: var(--accent); }

.co-body { position: relative; flex: 1; min-height: 0; display: flex; }
.co-body.with-stage .co-stage { flex: 1.4; }
.co-stage { min-width: 0; min-height: 0; overflow: auto; background: var(--bg); }
.co-chat { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; outline: none; }
.co-msgs { flex: 1; overflow: auto; padding: 4px 0 8px; overscroll-behavior: contain; outline: none; }
.co-first { color: var(--muted); padding: 30px 16px; text-align: center; }
.co-first small { display: block; margin-top: 6px; }
.co-readonly { padding: 10px; color: var(--muted); border-top: 2px solid var(--line); font-size: .85rem; }
.co-empty { margin: auto; padding: 30px 20px; text-align: center; max-width: 520px; }
.co-empty-e { font-size: 3rem; }
.co-empty h2 { font-family: var(--px); color: var(--accent); }
.co-empty-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* ---- Panels rechts (👥 Mitglieder & Info; im Call auch 💬 Chat): schweben über dem Inhalt, 📌 als Spalte ---- */
.co-members { position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: var(--co-panel-w, 300px); max-width: 92%; display: flex; flex-direction: column;
  box-sizing: border-box; background: var(--surface); border-left: 2px solid var(--line); box-shadow: -4px 0 0 var(--shadow-c); outline: none;
  animation: co-in-r .16s ease-out; }
.co-members[hidden] { display: none; }
.co-main.mem-pin .co-members { position: relative; box-shadow: none; flex: none; width: 260px; max-width: 30%; animation: none; background: var(--surface-2); }
@keyframes co-in-r { from { transform: translateX(24px); opacity: .4; } }
.co-panel-head { display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 4px 0 10px; border-bottom: 2px solid var(--line); flex: none; }
.co-panel-head b { flex: 1; font-family: var(--px); font-size: .55rem; }
.co-panel-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 0 10px; }
.co-mem-topic { margin: 6px 10px; font-size: .85rem; color: var(--text); overflow-wrap: anywhere; }
.co-mem-h { margin: 10px 10px 2px; font-family: var(--px); font-size: .5rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.co-members .co-card { margin: 4px 10px; min-width: 0; }
.co-mem-l { list-style: none; margin: 0; padding: 0 4px; }
.co-mem { display: flex; align-items: center; gap: 8px; padding: 3px 6px; font-size: .88rem; color: var(--text); }
.co-mem-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-mem.speaking .co-vu-ava { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.co-mem .co-vu-ava { width: 24px; height: 24px; font-size: .5rem; }

/* ---- 🎬 Watch-Party-Panel (Stufe D1): rechts schwebend wie 👥, 📌 als Spalte ---- */
.co-watch { position: absolute; z-index: 21; top: 0; right: 0; bottom: 0; width: var(--co-panel-w, 300px); max-width: 92%; display: flex; flex-direction: column;
  box-sizing: border-box; background: var(--surface); border-left: 2px solid var(--line); box-shadow: -4px 0 0 var(--shadow-c); outline: none; animation: co-in-r .16s ease-out; }
.co-watch[hidden] { display: none; }
.co-main.watch-pin:not(.in-call) .co-watch, .co-main.watch-pin .co-body:not(.in-call) .co-watch { position: relative; box-shadow: none; flex: none; width: 300px; max-width: 34%; animation: none; }
.co-main.in-call.watch-open > .co-head { right: min(var(--co-panel-w, 300px), 92%); }
.cs-wpanel { padding: 6px 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: .85rem; }
.cs-wnow { margin: 0; }
.cs-wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 40vh; overflow: auto; }
.cs-witem { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border: 1px solid transparent; }
.cs-witem.on { border-color: var(--line); background: var(--accent-soft); }
.cs-witem[draggable="true"] { cursor: grab; }
.cs-wnum { width: 1.6em; text-align: center; color: var(--muted); flex: none; }
.cs-wsel { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; }
.cs-wsel:disabled { cursor: default; color: var(--text); }
.cs-wdel { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.cs-wdel:hover { color: var(--danger); }
.cs-wadd { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-wadd input[type=url] { flex: 1; min-width: 140px; padding: 5px 8px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .8rem; }
.cs-wup { display: inline-flex; align-items: center; margin: 0; font-family: var(--font); text-transform: none; letter-spacing: normal; }
.cs-wsets { display: flex; flex-direction: column; gap: 3px; }
.cs-wopt { display: flex; align-items: center; gap: 6px; margin: 0; font-family: var(--font); font-size: .8rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--text); }
.cs-wopt input, .cs-wopt select { width: auto; margin: 0; }
.cs-wopt select { height: auto; min-height: 0; padding: 2px 6px; font-size: .8rem; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); }
.cs-wrights table { width: 100%; border-collapse: collapse; font-size: .78rem; margin-top: 4px; }
.cs-wrights td, .cs-wrights th { padding: 2px 4px; border-bottom: 1px solid var(--border); text-align: center; }
.cs-wrights td:first-child { text-align: left; }
.cs-wstop { align-self: flex-start; }
.cs-whelp { font-size: .72rem; }
/* Kachel „Gemeinsam schauen“: Video + Leiste (Titel, ▶/⏸, Zeitleiste, ⏭, ≡) */
.cs-tile.watch { flex-direction: column; align-items: stretch; justify-content: flex-start; cursor: auto; background: #000; }
.cs-tile.watch .cs-wbar { gap: 6px; }
.cs-wmedia { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.cs-wmedia video { width: 100%; height: 100%; object-fit: contain; display: block; }
.cs-wunmute { position: absolute; top: 8px; left: 8px; padding: 4px 10px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: .8rem; }
.cs-wunmute[hidden] { display: none; }
/* 📺 YouTube (D2): Player im eigenen Bereich, nichts darüber (Nutzungsbedingungen) — „Ton einschalten“ steht darüber in der Spalte */
.cs-wmedia.yt { flex-direction: column; align-items: stretch; }
.cs-wmedia.yt .cs-wunmute { position: static; align-self: flex-start; margin: 4px; flex: none; }
.cs-wmedia video[hidden], .cs-wyt[hidden], .cs-wgatebox[hidden], .cs-wytmount[hidden] { display: none; }
.cs-wyt { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.cs-wytmount { flex: 1; min-height: 0; position: relative; }
.cs-wytmount iframe, .cs-wytmount > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-wgatebox { flex: none; overflow: auto; max-height: 100%; }
.cs-wgate { max-width: 520px; margin: 0 auto; padding: 12px 14px; background: var(--surface); color: var(--text); border: 2px solid var(--line); font-size: .8rem; line-height: 1.4; }
.cs-wgate p { margin: 0 0 8px; }
.cs-wgate p:last-child { margin-bottom: 0; }
.cs-wgate a { color: var(--accent); }
.cs-wgatebtn { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-wvote.on { border-color: var(--accent); color: var(--accent); }
.cs-wvoterow { display: flex; align-items: center; gap: 6px; margin: 0; }
.cs-wvoterow .cs-wvote { min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: .78rem; cursor: pointer; }
.cs-wtitle { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-wheld { font-style: normal; color: var(--muted); }
.cs-wctl { display: flex; align-items: center; gap: 4px; flex: none; }
.cs-wctl button, .cs-wstate { min-width: 26px; height: 22px; padding: 0 5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: .75rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.cs-wstate { cursor: default; opacity: .7; }
.cs-wseek { width: clamp(60px, 18vw, 220px); accent-color: var(--accent); }
.cs-wtime { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 6.5em; }
@container (max-width: 420px) { .cs-wseek, .cs-wtime { display: none; } }

/* ---- Nachrichten: gruppiert (Avatar/Name/Zeit nur bei der ersten von mehreren innerhalb 5 min), Aktionen beim Überfahren ---- */
.co-rows { padding-bottom: 2px; }
.co-day, .co-new { display: flex; align-items: center; gap: 8px; padding: 10px 14px 4px; font-family: var(--px); font-size: .5rem; font-weight: 700; color: var(--muted); }
.co-day::before, .co-day::after, .co-new::before, .co-new::after { content: ''; flex: 1; border-top: 2px dotted var(--border); }
.co-new { color: var(--danger); }
.co-new::before, .co-new::after { border-top-color: var(--danger); }
.co-msg { position: relative; display: flex; gap: 12px; padding: 6px 48px 1px 14px; margin-top: 8px; }
.co-msg.compact { padding-top: 0; margin-top: 0; }
.co-msg:hover, .co-msg:focus-within { background: var(--surface-2); }
.co-msg.mention { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.co-msg.flash { outline: 3px solid var(--accent); outline-offset: -3px; }
.co-ava { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--px); font-weight: 700; font-size: .72rem; border: 2px solid var(--shadow-c); box-sizing: border-box; }
.co-ava.sm { width: 22px; height: 22px; font-size: .5rem; }
.co-mtime { flex: none; width: 34px; font-size: .6rem; color: transparent; text-align: center; padding-top: 4px; white-space: nowrap; }
.co-msg.compact:hover .co-mtime, .co-msg.compact:focus-within .co-mtime { color: var(--muted); }
.co-mbody { flex: 1; min-width: 0; max-width: 960px; }   /* lesbare Zeilenlänge auf breiten Bildschirmen */
.co-mhead { line-height: 1.25; }
.co-mhead b { font-size: .9rem; }
.co-mhead time { color: var(--muted); font-size: .68rem; margin-left: 6px; }
.co-text { font-size: .93rem; line-height: 1.42; overflow-wrap: anywhere; }
.co-text p { margin: 0; }
.co-text code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--border); padding: 0 4px; }
.co-text pre.ch-code { margin: 4px 0; padding: 8px 10px; background: var(--bg); border: 2px solid var(--border); overflow: auto; max-height: 320px; }
.co-text pre.ch-code code { border: 0; background: transparent; padding: 0; }
.co-text blockquote { margin: 2px 0; padding: 2px 8px; border-left: 4px solid var(--line); color: var(--muted); }
.co-text a { color: var(--accent); }
.co-edited { color: var(--muted); font-size: .7rem; }
.co-quote { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--line); padding: 1px 6px; margin: 2px 0 3px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Aktionsleiste: unsichtbar, aber per Tab erreichbar (opacity statt display:none); Überfahren/Fokus zeigt sie */
.co-mact { position: absolute; top: -12px; right: 12px; z-index: 2; display: flex; background: var(--surface); border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--shadow-c); opacity: 0; pointer-events: none; }
.co-msg:hover .co-mact, .co-msg:focus-within .co-mact { opacity: 1; pointer-events: auto; }
.co-msg.compact .co-mact { top: -16px; }
.co-mact button { border: 0; background: transparent; padding: 3px 7px; cursor: pointer; font-size: .88rem; color: var(--text); }
.co-mact button:hover { background: var(--accent-soft); }

/* Objekt-Links: Chip im Text + Vorschaukarte */
.co-ref { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; border: 2px solid var(--line); background: var(--surface-2);
  color: var(--text) !important; text-decoration: none; font-weight: 600; font-size: .88em; line-height: 1.35; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: baseline; }
.co-ref:hover { background: var(--accent-soft); }
.co-ref.user { border-color: var(--accent); color: var(--accent) !important; }
.co-ref.user.me { background: var(--accent); color: var(--on-accent, #fff) !important; }
.co-ref.locked, .co-ref.pending { color: var(--muted) !important; border-style: dashed; font-weight: 500; }
.co-cards { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 2px; }
.co-card { display: flex; align-items: stretch; max-width: 360px; min-width: 200px; flex: 1 1 220px; border: 2px solid var(--line);
  background: var(--surface-2); box-shadow: 3px 3px 0 var(--shadow-c); }
.co-card.locked { padding: 6px 10px; color: var(--muted); border-style: dashed; box-shadow: none; flex: 0 1 auto; min-width: 0; }
.co-card-main { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 6px 9px; color: var(--text); text-decoration: none; }
.co-card-main:hover { background: var(--accent-soft); }
.co-card-e { grid-row: span 3; font-size: 1.4rem; align-self: center; }
.co-card-t { font-weight: 700; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-card-s { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-prog { display: block; height: 6px; background: var(--bg); border: 1px solid var(--border); margin-top: 3px; }
.co-prog span { display: block; height: 100%; background: var(--ok); }
.co-card-plan { flex: none; display: flex; align-items: center; padding: 0 8px; border-left: 2px solid var(--line); color: var(--text);
  text-decoration: none; font-family: var(--px); font-size: .55rem; font-weight: 700; }
.co-card-plan:hover { background: var(--accent-soft); }
.co-att { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.co-att-img { padding: 0; border: 2px solid var(--line); background: var(--bg); cursor: zoom-in; box-shadow: 2px 2px 0 var(--shadow-c); }
.co-att-img img { display: block; max-width: 240px; max-height: 180px; object-fit: cover; }
.co-att video { max-width: min(360px, 100%); max-height: 240px; border: 2px solid var(--line); }
.co-att-doc { padding: 4px 8px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; }


/* ---- Eingabe: unten angeheftet, eine Zeile (wächst bis 200 px), 📎 · 😀 · ➤ klein im Feld ---- */
.co-compose { position: relative; padding: 0 12px 12px; flex: none; }
.co-crow { display: flex; gap: 2px; align-items: flex-end; padding: 2px 4px; border: 2px solid var(--line); background: var(--surface-2); }
.co-crow:focus-within { border-color: var(--accent); }
.co-compose .co-crow textarea { flex: 1; min-width: 0; resize: none; overflow-y: hidden; min-height: 36px; max-height: 200px; box-sizing: border-box; padding: 8px 6px;
  border: 0; border-radius: 0; outline: none; background: transparent; color: var(--text); font: inherit; line-height: 1.35; box-shadow: none; }
.co-crow textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-cb { flex: none; width: 34px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0;
  background: transparent; color: var(--muted); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.co-cb:hover { color: var(--text); background: var(--accent-soft); }
.co-send { color: var(--accent); }
.co-ctx { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); padding: 4px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-ctx b { color: var(--text); }
.co-x { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.co-atts { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; }
.co-attchip { display: inline-flex; gap: 4px; align-items: center; padding: 2px 6px; border: 2px solid var(--line); background: var(--surface); font-size: .8rem; }
.co-attchip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.co-suggest { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 4px); max-height: 280px; overflow: auto; z-index: 30;
  background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); }
.co-sug-h { font-family: var(--px); font-size: .55rem; font-weight: 700; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.co-sug { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 6px; align-items: center; width: 100%; text-align: left; padding: 7px 10px;
  border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.co-sug.on, .co-sug:hover { background: var(--accent-soft); }
.co-sug-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-sug small { color: var(--muted); white-space: nowrap; }

/* ---- Kanal-Leiste an Objekten ---- */
.co-bound-bar { display: flex; align-items: center; gap: 8px; margin: 6px 0; padding: 6px 8px; border: 2px solid var(--line);
  background: var(--surface-2); box-shadow: 3px 3px 0 var(--shadow-c); flex-wrap: wrap; }
.co-bound-btn { display: inline-flex; align-items: center; gap: 6px; }
.co-bound-btn.ghost { background: var(--surface); }
.co-bound-info { font-size: .82rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* ---- DM-Auswahl, Kanal-Formular ---- */
.co-dm-list { max-height: 50vh; overflow: auto; margin-top: 8px; }
.co-dm-p { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.co-dm-p:hover { background: var(--accent-soft); }
.co-dm-p small { color: var(--muted); }
#co-dm-q { width: 100%; box-sizing: border-box; }
.co-f-row { display: flex; gap: 8px; margin-bottom: 10px; }
.co-f-row input[type=text] { flex: 1; }
#co-chform label { display: block; margin-bottom: 10px; }
#co-chform input[type=text], #co-chform select { width: 100%; box-sizing: border-box; }
.co-f-priv { border: 2px solid var(--border); padding: 6px 10px; margin-bottom: 10px; }
.co-f-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; margin-top: 6px; max-height: 200px; overflow: auto; }
#co-chform .co-f-people label { margin: 0; }

/* ---- Medienraum (coop.js hängt die Bühne in .cm-stage) ---- */
.cm-stage { height: 100%; min-height: 0; }

/* ---- Call-Ansicht (coopstage.js): Bühne füllt alles, Kopf schwebt darüber, Chat als Panel rechts ---- */
.co-body.in-call .co-stage { flex: 1; overflow: hidden; }
.co-body.in-call .co-chat { position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: var(--co-panel-w, 300px); max-width: 92%;
  background: var(--surface); border-left: 2px solid var(--line); box-shadow: -4px 0 0 var(--shadow-c); animation: co-in-r .16s ease-out; }
.co-body.in-call.chat-pin .co-chat { position: relative; flex: none; width: 340px; max-width: 40%; box-shadow: none; animation: none; }
.co-body.chat-off .co-chat { display: none; }
.co-body.in-call .co-members { z-index: 21; }
.co-chat-head { display: none; }
.co-body.in-call .co-chat-head { display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 4px 0 10px; border-bottom: 2px solid var(--line);
  font-family: var(--px); font-size: .55rem; flex: none; }
.co-body.in-call .co-chat-head b { flex: 1; }
.co-body.in-call .co-compose { padding: 0 8px 8px; }
.co-body.in-call .co-msg { padding-right: 12px; }
/* Kopf im Call: schwebt über der Bühne (Platz oben hält die Bühne frei: ui.topPad), blendet sich mit der Leiste aus;
   Fokus darin oder Maus darüber hält ihn sichtbar */
.co-main.in-call > .co-head { position: absolute; top: 0; left: 0; right: 0; background: var(--surface); border-bottom-color: var(--line); }
.co-main.in-call:is(.chat-on, .mem-open) > .co-head { right: min(var(--co-panel-w, 300px), 92%); }
.co-main.in-call.chat-on:has(> .co-body.chat-pin) > .co-head { right: min(340px, 40%); }
.co-main.in-call.co-idle > .co-head:not(:focus-within) { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.co-main.in-call .cs-hints, .co-main.in-call .cs-livechip { top: calc(var(--co-head-h, 46px) + 8px); }
.co-main.in-call .cs-phoneboard[data-strip="right"] .cs-strip { padding-top: calc(var(--co-head-h, 46px) + 34px); }
/* Namen/Status an den Kacheln: mit der Leiste aus- und eingeblendet (LIVE-Hinweis der eigenen Freigabe bleibt immer) */
.cs-name, .cs-badges, .cs-qbadge { transition: opacity .25s; }
.cs-idle .cs-tile:not(:focus-within):not(:focus-visible) :is(.cs-name, .cs-badges, .cs-qbadge:not(.open)) { opacity: 0; }
/* Beitritt gescheitert / Verbindung weg: nur die Meldungsleiste über dem Chat (Chat + Eingabe bleiben, auch am Handy) */
.co-body.with-stage.call-fail { flex-direction: column; }
.co-body.with-stage.call-fail .co-stage { flex: none; max-height: none; overflow: visible; }
.co-body.with-stage.call-fail .co-chat { flex: 1; max-width: none; border-left: 0; border-top: 2px solid var(--line); }
.co-body.call-fail .cs-stage { height: auto; }
.co-body.call-fail .cs-hints { position: static; transform: none; max-width: none; padding: 8px; }
.co-body.call-fail .cs-area, .co-body.call-fail .cs-dock, .co-body.call-fail .cs-fs, .co-body.call-fail .cs-clist { display: none; }

.cs-stage { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; outline: none; }
.cs-area { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; box-sizing: border-box; }
.cs-area { position: relative; }
.cs-stage[data-view="focus"]:is([data-strip="right"], [data-strip="left"]) .cs-area { flex-direction: row; }
/* Kamera-Fenster (Stufe B): angedockt (oben/links: vor dem Splitter) oder schwebend über dem Fokus */
.cs-stripwin { display: none; flex: none; flex-direction: column; min-width: 0; min-height: 0; box-sizing: border-box; }
.cs-stage.has-strip .cs-stripwin { display: flex; }
.cs-stage[data-strip="top"] .cs-stripwin, .cs-stage[data-strip="left"] .cs-stripwin { order: -2; }
.cs-stage[data-strip="top"] .cs-split, .cs-stage[data-strip="left"] .cs-split { order: -1; }
.cs-stage[data-strip="float"] .cs-split { display: none; }
.cs-stage[data-strip="float"] .cs-stripwin { background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); }
.cs-stripwin > .cs-strip { flex: 1; min-height: 0; min-width: 0; }
.cs-strip.cs-abs { position: relative; display: block; overflow: hidden; padding: 0; }
.cs-strip.cs-abs > .cs-tile { position: absolute; margin: 0; }
.cs-stripbar { flex: none; display: flex; align-items: center; gap: 6px; height: 20px; padding: 0 2px 0 8px; box-sizing: border-box; cursor: grab;
  font-size: .68rem; color: var(--muted); user-select: none; touch-action: none; }
.cs-stripbar:active { cursor: grabbing; }
.cs-stripttl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-stripdock { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 0 6px; }
.cs-stripdock:hover, .cs-stripdock:focus-visible { color: var(--text); background: var(--accent-soft); }
.cs-stage:is([data-strip="left"], [data-strip="right"]) .cs-stripbar { justify-content: center; }
.cs-idle .cs-stripbar:not(:focus-within) { opacity: .25; transition: opacity .25s; }
.cs-stage.cs-mobile .cs-stripbar, .cs-phoneboard .cs-stripbar { display: none; }
.cs-fwh { display: none; }
.cs-stage[data-strip="float"] .cs-fwh { display: block; }
.cs-fwh .cs-rh[data-h="se"] { opacity: .8; }
/* Andock-Zonen beim Ziehen des Fenstertitels */
.cs-dockzones { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.cs-dockzones[hidden] { display: none; }
.cs-dockzones i { position: absolute; display: block; border: 2px dashed var(--accent); opacity: .35; }
.cs-dockzones i.on { opacity: 1; background: var(--accent-soft); }
.cs-dockzones i[data-z="top"] { left: 14%; right: 14%; top: 0; height: 14%; }
.cs-dockzones i[data-z="bottom"] { left: 14%; right: 14%; bottom: 0; height: 14%; }
.cs-dockzones i[data-z="left"] { top: 14%; bottom: 14%; left: 0; width: 14%; }
.cs-dockzones i[data-z="right"] { top: 14%; bottom: 14%; right: 0; width: 14%; }
.cs-main { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: 8px; padding: 8px; box-sizing: border-box; overflow: hidden; }
/* Raster (gepackt) und „Frei“: Kacheln absolut in der Bühne; Wechsel gleiten weich (weniger Bewegung: sofort) */
.cs-main.cs-abs { position: relative; display: block; overflow: hidden; }
/* Kacheln stapeln nur untereinander („Frei“ holt Kacheln mit z-index bis 9000 nach vorn) — Leiste, Menüs, ⛶ und ▴ liegen
   immer darüber (Nutzer 22.10.2026: „Menüs öffnen unter den Streams“). Vollbild-Ersatz (.cs-full) darf wieder über alles. */
.cs-main, .cs-strip { isolation: isolate; }
.cs-main:has(> .cs-full), .cs-strip:has(> .cs-full) { isolation: auto; }
.cs-main.cs-abs > .cs-tile { position: absolute; margin: 0; transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease; }
.cs-freedrag .cs-main.cs-abs > .cs-tile, .cs-main.cs-abs > .cs-tile.cs-moving { transition: none; }
.cs-tile.cs-moving { box-shadow: 0 0 0 2px var(--accent), 6px 6px 0 var(--shadow-c); }
/* „Frei“: Griff ⠿ oben mittig, Kanten/Ecken skalieren (nur in dieser Ansicht, beim Überfahren/Fokus) */
.cs-fh { display: none; }
.cs-stage[data-view="free"] .cs-main .cs-fh { display: block; }
.cs-grip { position: absolute; z-index: 4; top: 2px; left: 50%; transform: translateX(-50%); padding: 0 8px; line-height: 16px; font-size: .8rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); cursor: move; opacity: 0; transition: opacity .15s; touch-action: none; }
.cs-tile:hover .cs-grip, .cs-tile:focus-within .cs-grip, .cs-tile.cs-moving .cs-grip { opacity: 1; }
.cs-idle .cs-tile:not(:focus-within) .cs-grip { opacity: 0; }
.cs-rh { position: absolute; z-index: 5; touch-action: none; }
.cs-rh[data-h="n"], .cs-rh[data-h="s"] { left: 14px; right: 14px; height: 8px; cursor: ns-resize; }
.cs-rh[data-h="n"] { top: -3px; } .cs-rh[data-h="s"] { bottom: -3px; }
.cs-rh[data-h="e"], .cs-rh[data-h="w"] { top: 14px; bottom: 14px; width: 8px; cursor: ew-resize; }
.cs-rh[data-h="e"] { right: -3px; } .cs-rh[data-h="w"] { left: -3px; }
.cs-rh[data-h$="e"][data-h^="n"], .cs-rh[data-h$="w"][data-h^="n"], .cs-rh[data-h$="e"][data-h^="s"], .cs-rh[data-h$="w"][data-h^="s"] { width: 14px; height: 14px; }
.cs-rh[data-h="ne"] { top: -3px; right: -3px; cursor: nesw-resize; } .cs-rh[data-h="sw"] { bottom: -3px; left: -3px; cursor: nesw-resize; }
.cs-rh[data-h="nw"] { top: -3px; left: -3px; cursor: nwse-resize; } .cs-rh[data-h="se"] { bottom: -3px; right: -3px; cursor: nwse-resize;
  border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); opacity: 0; }
.cs-tile:hover .cs-rh[data-h="se"], .cs-tile.cs-moving .cs-rh[data-h="se"] { opacity: 1; }
/* ✂ Rahmen zum Zuschneiden direkt in der Kachel (ganzes Bild sichtbar, außerhalb abgedunkelt) */
/* Qualität: eigene Auflösung + eigene Presets (coopquality.js) */
.cs-qmine { display: inline-flex; align-items: stretch; }
.cs-qmine .cs-opt { margin-right: 0; }
.cs-qdel { padding: 0 6px; border: 2px solid var(--line); border-left: 0; background: var(--surface); color: var(--muted); font: inherit; font-size: .75rem; cursor: pointer; }
.cs-qdel:hover, .cs-qdel:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: -2px; }
.cs-qcustom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.cs-qcustom label { display: flex; flex-direction: column; gap: 2px; font-size: .7rem; color: var(--muted); margin: 0; }
.cs-qcustom input, .cs-qsave input[data-qname] { padding: 3px 4px; font: inherit; font-size: .8rem; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); }
.cs-qcustom input { width: 6.5em; }
.cs-qcustom .cs-muted { flex-basis: 100%; }
.cs-qsave input[data-qname] { flex: 1 1 10em; min-width: 0; }
.cs-cropedit { position: absolute; inset: 0; z-index: 9; cursor: crosshair; outline: none; }
/* ✂ eigene Quelle sendet schon geschnitten: im Rahmen das ganze Original zeigen (coopcrop.js) */
.cs-cropsrc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; display: block; }
.cs-cropsrc.mirror { transform: scaleX(-1); }
.cs-croprect { position: absolute; box-sizing: border-box; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(8, 6, 14, .6); cursor: move; touch-action: none; }
.cs-croprect .cs-rh[data-h$="e"][data-h^="s"] { opacity: 1; }
.cs-croprect .cs-rh { background: transparent; }
.cs-croprect .cs-rh[data-h="nw"], .cs-croprect .cs-rh[data-h="ne"], .cs-croprect .cs-rh[data-h="sw"], .cs-croprect .cs-rh[data-h="se"] { background: var(--accent); width: 12px; height: 12px; }
.cs-cropbar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; }
.cs-cropbar button { padding: 3px 9px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .78rem; cursor: pointer; }
.cs-cropbar button:first-child { background: var(--ok); color: var(--bg); }
.cs-cropbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Hilfslinien beim Einrasten */
.cs-guides { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.cs-guide { position: absolute; display: block; }
.cs-guide.v { width: 0; border-left: 1px dashed var(--accent); }
.cs-guide.h { height: 0; border-top: 1px dashed var(--accent); }
.cs-strip { display: none; flex: none; gap: 8px; padding: 8px; box-sizing: border-box; overflow: auto; }
.cs-stage.has-strip .cs-strip { display: flex; }
.cs-stage:is([data-strip="bottom"], [data-strip="top"]) .cs-strip { flex-direction: row; align-items: center; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cs-stage[data-strip="right"] .cs-strip { scrollbar-width: thin; }
.cs-stage:is([data-strip="right"], [data-strip="left"]) .cs-strip { flex-direction: column; overflow-x: hidden; }
.cs-split { display: none; flex: none; position: relative; background: var(--surface-2); touch-action: none; }
.cs-stage.has-strip .cs-split { display: block; }
.cs-stage:is([data-strip="bottom"], [data-strip="top"]) .cs-split { height: 10px; cursor: row-resize; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); box-sizing: border-box; }
.cs-stage:is([data-strip="right"], [data-strip="left"]) .cs-split { width: 10px; cursor: col-resize; border-left: 2px solid var(--line); border-right: 2px solid var(--line); box-sizing: border-box; }
.cs-split::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 2px; margin: -1px 0 0 -14px; background: var(--muted); }
.cs-stage:is([data-strip="right"], [data-strip="left"]) .cs-split::after { width: 2px; height: 28px; margin: -14px 0 0 -1px; }
.cs-split:hover, .cs-split:focus-visible { background: var(--accent-soft); outline: none; }
.cs-stage.cs-mobile .cs-split { display: none; }

/* Kachel */
.cs-tile { position: relative; flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--surface-2); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c); container-type: size; cursor: grab;
  scroll-snap-align: start; transition: box-shadow .08s steps(2); }
.cs-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.cs-tile.screen { background: #000; }
.cs-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cs-media video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cs-tile.screen .cs-media video { object-fit: contain; }
/* „Frei“, Form frei skaliert: das Bild füllt die Kachel (Ränder beschnitten, keine Balken); Vollbild zeigt weiter alles (unten) */
.cs-tile.cs-fill .cs-media video { object-fit: cover; }
.cs-media video.mirror { transform: scaleX(-1); }
.cs-ava { height: 38%; max-height: 120px; min-height: 26px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--px); font-weight: 700; font-size: clamp(.55rem, 13cqh, 2.4rem); border: 2px solid var(--shadow-c);
  box-shadow: 3px 3px 0 var(--shadow-c); box-sizing: border-box; }
.cs-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: clamp(1rem, 22cqh, 2.4rem); }
.cs-ph small { font-size: .7rem; }
/* Sprech-Indikator: Rahmen leuchtet nach Audio-Pegel (--lvl 0..1 aus LiveKit) */
.cs-tile.speaking { border-color: var(--ok); box-shadow: 0 0 0 calc(2px + var(--lvl, .3) * 5px) var(--ok), 3px 3px 0 var(--shadow-c); }
/* eigene Freigabe: dauerhaft roter Rahmen */
.cs-tile.live { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger), 3px 3px 0 var(--shadow-c); }
.cs-tile.dragging { opacity: .45; }
.cs-tile.drop { outline: 3px dashed var(--accent); outline-offset: -6px; }
.cs-main.drop, .cs-strip.drop { background: var(--accent-soft); }
.cs-over { position: absolute; inset: 0; pointer-events: none; }
.cs-over > * { pointer-events: auto; }
.cs-badges { position: absolute; left: 4px; top: 4px; display: flex; gap: 2px; }
.cs-badges i, .cs-pst i { font-style: normal; font-size: .72rem; line-height: 1.35; }
.cs-badges i { background: var(--surface); border: 1px solid var(--line); padding: 0 3px; }
.cs-name { position: absolute; left: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 1px 6px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .72rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-live { position: absolute; left: 4px; top: 4px; display: flex; align-items: center; gap: 5px; padding: 3px 6px; background: var(--danger);
  color: var(--bg); border: 1px solid var(--shadow-c); font-family: var(--px); font-size: .5rem; font-weight: 700; white-space: nowrap; cursor: help; }
.cs-selfhint { position: absolute; top: 28px; left: 4px; padding: 1px 7px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font-size: .68rem; white-space: nowrap; }
.cs-dot { display: inline-block; width: 7px; height: 7px; background: currentColor; animation: cs-blink 1.4s steps(2) infinite; font-style: normal; }
@keyframes cs-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cs-dot { animation: none; } }
.cs-acts { position: absolute; right: 4px; top: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.cs-tile:hover .cs-acts, .cs-tile:focus-within .cs-acts { opacity: 1; }
.cs-acts button { min-width: 24px; padding: 1px 5px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: .72rem; font-family: var(--px); cursor: pointer; }
.cs-acts button:hover { background: var(--accent-soft); }
.cs-acts button.on { background: var(--accent); color: var(--on-accent, #fff); }

/* 🔍 Zoom im Bild: − / Stufe / + / 1:1 / ⟲ unten mittig; erscheint beim Überfahren/Fokus bzw. gezoomt, blendet sich mit der Leiste aus */
.cs-zoom { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 1px;
  background: var(--surface); border: 1px solid var(--line); opacity: 0; transition: opacity .2s; }
.cs-zoom[hidden] { display: none; }
.cs-tile:hover .cs-zoom, .cs-tile:focus-within .cs-zoom, .cs-tile.zoomed .cs-zoom { opacity: 1; }
.cs-idle .cs-tile:not(:focus-within) .cs-zoom { opacity: 0; pointer-events: none; }
.cs-zoom button { min-width: 24px; height: 22px; padding: 0 5px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; }
.cs-zoom button:hover { background: var(--accent-soft); }
.cs-zoom button:disabled { opacity: .35; cursor: default; }
.cs-zoom button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cs-zl { min-width: 3.6em; text-align: center; font-family: var(--px); font-size: .45rem; }
.cs-main .cs-tile:not(.board), .cs-tile.cs-full, .cs-tile:fullscreen { touch-action: none; }   /* Pinch/Verschieben gehören dem Bild */
.cs-tile.zoomed { cursor: grab; }
.cs-tile.zoomed:active { cursor: grabbing; }
.cs-tile.me .cs-zoom { bottom: 22px; }   /* eigene Kachel: Qualitäts-Schild unten rechts */

@container (max-height: 96px) {
  .cs-zoom { display: none; }
  .cs-name { font-size: .6rem; padding: 0 4px; }
  .cs-selfhint, .cs-acts button[data-v] { display: none; }
  .cs-badges i { font-size: .6rem; }
}
/* Vollbild je Kachel (Fullscreen-API, sonst Ersatz über die ganze Seite) */
.cs-tile:fullscreen { width: 100vw !important; height: 100vh !important; border: 0; box-shadow: none; background: #000; cursor: default; }
.cs-tile.cs-full { position: fixed; inset: 0; z-index: 95; width: 100vw !important; height: 100dvh !important; border: 0; box-shadow: none; background: #000; }
.cs-tile:fullscreen .cs-media video, .cs-tile.cs-full .cs-media video { object-fit: contain; }

/* Hinweise oben, LIVE-Chip (eigene Freigabe, wenn die Kachel gerade nicht zu sehen ist) */
.cs-hints { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; gap: 4px; align-items: center;
  max-width: calc(100% - 140px); }
.cs-hint { padding: 4px 10px; background: var(--surface); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c); font-size: .8rem; }
.cs-hint.warn { border-color: var(--danger); color: var(--danger); }
.cs-livechip { position: absolute; top: 8px; left: 8px; z-index: 4; display: flex; align-items: center; gap: 5px; padding: 4px 7px; cursor: pointer;
  background: var(--danger); color: var(--bg); border: 2px solid var(--shadow-c); font-family: var(--px); font-size: .5rem; font-weight: 700; }
.cs-livechip[hidden] { display: none; }

/* Schwebende Steuerleiste unten mittig — blendet sich im Call nach 3 s ohne Bewegung aus */
.cs-dock { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center;
  gap: 6px; max-width: calc(100% - 16px); box-sizing: border-box; padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);   /* Safe-Area: Notch/Home-Leiste */
  transition: opacity .25s, transform .25s; }
.cs-idle .cs-dock { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
.cs-idle .cs-area { cursor: none; }
/* Passt immer in die Breite (coopstage fitBar: was nicht passt, steht unter „⋯ Mehr“); falls doch zu schmal (Messung daneben):
   die anderen Knöpfe werden schmaler, 📞 Auflegen behält seine Größe und bleibt rechts im Bild */
.cs-bar { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c);
  max-width: 100%; box-sizing: border-box; }
.cs-bar > * { flex: 0 1 auto; min-width: 0; }
.cs-bar > .cs-b.leave { flex: none; }
.cs-bar[hidden] { display: none; }
.cs-b { position: relative; width: 42px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1.05rem; line-height: 1; }
.cs-b:hover { background: var(--accent-soft); }
.cs-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-b.on { background: var(--ok); color: #0a0810; }
.cs-b.open { background: var(--accent); color: var(--on-accent, #fff); }
.cs-b.live { background: var(--danger); color: var(--bg); }
.cs-b.off::after { content: ''; position: absolute; left: 50%; top: 5px; bottom: 5px; width: 3px; margin-left: -1px; background: var(--danger); transform: rotate(45deg); }
.cs-b.ptt { border-style: dashed; }
.cs-b.leave { width: 52px; background: var(--danger); color: #fff; }
.cs-b.leave:hover { background: var(--danger); filter: brightness(1.12); }
.cs-b small { font-family: var(--px); font-size: .45rem; margin-left: 2px; }
.cs-b .cs-badge { position: absolute; top: -8px; right: -8px; padding: 1px 4px; background: var(--danger); color: var(--bg); border: 2px solid var(--shadow-c);
  font-family: var(--px); font-size: .45rem; font-weight: 700; }
.cs-b .cs-dot { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; }
.cs-sep { width: 2px; height: 26px; margin: 0 2px; background: var(--border); }
/* ⋯ Mehr: die Knöpfe, die nicht in die Leiste passen — mit Text, groß genug für Finger */
.cs-more { display: flex; flex-direction: column; gap: 4px; }
.cs-more .cs-moreopt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; font-size: .9rem; }
.cs-moreic { width: 1.6em; text-align: center; font-size: 1.05rem; }
/* Touch (Handy/Tablet): Ziele mind. 44 × 44 px */
@media (pointer: coarse) {
  .cs-b { width: 44px; height: 44px; }
  .cs-b.leave { width: 52px; }
}

/* 🎧 Rauschunterdrückung (⚙-Menü) und Rauschfilter/Lautstärke je Person (👥-Menü, Kachel) */
.cs-ns { margin-top: 6px; }
.cs-nsl { flex-basis: 100%; }
.cs-michint { display: block; margin: 2px 0 6px; }
.cs-miclbl { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); margin: 4px 0; }
.cs-miclbl input[type="range"] { flex: 1; min-width: 0; }
.cs-miclbl span { min-width: 3.6em; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
/* 🚪 Pegelanzeige: Balken = aktueller Pegel, Strich = Schwelle; grün, solange die Sperre offen ist */
.cs-micmeter { position: relative; height: 10px; margin: 6px 0 2px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.cs-micmeter .cs-mmbar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--muted); transition: width .06s linear; }
.cs-micmeter.open .cs-mmbar { background: var(--ok); }
.cs-micmeter .cs-mmthr { position: absolute; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; background: var(--accent); }
.cs-micmeter.off .cs-mmthr { opacity: .35; }
.cs-prx { display: flex; align-items: center; gap: 6px; width: 100%; padding-left: 18px; box-sizing: border-box; }
.cs-rx { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: .75rem; cursor: pointer; }
.cs-rx.on, .cs-acts button[data-cm="rxns"].on { background: var(--ok); color: var(--bg); }
.cs-rx:disabled, .cs-acts button[data-cm="rxns"]:disabled { opacity: .45; cursor: not-allowed; }
.cs-vol { display: inline-flex; align-items: center; gap: 4px; flex: 1; min-width: 0; margin: 0; font-size: .8rem; }
.cs-vol input { flex: 1; min-width: 60px; accent-color: var(--accent); }
/* 🔊 Lautstärke je Person 0–300 %: Wert daneben, ab 100 % als Boost gekennzeichnet; Schild an der Kachel, wenn ≠ 100 % */
.cs-vctl { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 200px; }
.cs-volv { min-width: 6.2em; font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.cs-volv.boost { color: var(--danger); font-weight: 700; }
.cs-prx-solo { padding-left: 0; margin: 4px 0 8px; }
.cs-badges i.cs-volb { font-size: .65rem; padding: 0 4px; }
.cs-badges i.cs-volb.boost { background: var(--danger); color: var(--bg); border-color: var(--shadow-c); }

/* 🔔 UI-Töne (coopsounds.settingsHtml): ⚙-Menü im Call, Dialog in Coop, Panel der Gastseite */
.cs-snd { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.cs-snd label { display: flex; align-items: center; gap: 6px; margin: 0; font-family: var(--font); font-size: .85rem; font-weight: 400;
  text-transform: none; letter-spacing: normal; color: var(--text); }
.cs-snd label > input { width: auto; margin: 0; }
.cs-snd label.cs-snd-vol > input { flex: 1; }
.cs-snd-vol input { flex: 1; min-width: 80px; accent-color: var(--accent); }
.cs-snd-more summary { cursor: pointer; color: var(--muted); }
.cs-snd-list, .cs-snd-more { display: flex; flex-direction: column; gap: 1px; }
.cs-snd-ev { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 1px 0; }
.cs-snd-try { flex: none; width: 26px; height: 22px; padding: 0; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: .7rem; }
.cs-snd-try:hover { background: var(--accent-soft); }
.cs-snd-try:focus-visible, .cs-snd input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#co-snd .cs-snd-list { max-height: 50vh; overflow: auto; }
.gp-snd { max-height: 70vh; overflow: auto; padding: 10px; }
/* 🎨 Coop-Theme-Auswahl (coopthemes.js pickerHtml): Karten mit Vorschau + zwei Farbräder */
.cth-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.cth-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border: 2px solid var(--line); background: var(--surface); color: var(--text); font-size: .82rem; }
.cth-card.on { border-color: var(--accent); box-shadow: 3px 3px 0 var(--shadow-c); }
.cth-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cth-sw { flex: none; width: 34px; height: 24px; border: 2px solid; display: flex; align-items: flex-end; gap: 2px; padding: 3px; box-sizing: border-box; }
.cth-sw i { flex: 1; height: 8px; }
.cth-sw i:last-child { height: 14px; }
.cth-sw.kosyn { border-color: var(--line); background: var(--bg); }
.cth-sw.kosyn i:first-child { background: var(--surface-2); } .cth-sw.kosyn i:last-child { background: var(--accent); }
.cth-wheels { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 10px; }
.cth-wheels label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted); }
.cth-wheels input[type="color"] { width: 64px; height: 36px; padding: 0; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.cth-note { color: var(--muted); font-size: .76rem; margin: 8px 0 0; }

/* 🗂️ Ansichten (Stufe C): Automatisch + eigene Presets mit Tasten, Aktionen je Zeile */
.cs-vlist { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-vrow { display: flex; align-items: center; gap: 4px; }
.cs-vapply { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-vapply kbd { display: inline-block; min-width: 1.3em; padding: 0 3px; margin-right: 4px; text-align: center; font: inherit; font-size: .7rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.cs-vapply.on kbd { color: var(--text); }
.cs-vacts { display: flex; gap: 1px; flex: none; }
.cs-vacts button { min-width: 24px; height: 24px; padding: 0 3px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: .72rem; }
.cs-vacts button:hover, .cs-vacts button:focus-visible { background: var(--accent-soft); }
.cs-vacts button.on { background: var(--accent); color: var(--on-accent, #fff); }
.cs-vacts button.warn { background: var(--danger); color: var(--bg); }
.cs-vedit { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cs-vedit input[type=text] { flex: 1; min-width: 120px; padding: 3px 6px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .8rem; }
.cs-vsave { margin: 4px 0; }
.cs-vfollow { display: flex; align-items: center; gap: 4px; flex-basis: 100%; margin: 0; font-family: var(--font); font-size: .78rem; font-weight: 400;
  text-transform: none; letter-spacing: normal; color: var(--text); }
.cs-vfollow input { width: auto; margin: 0; }
.cs-vimport { display: inline-flex; align-items: center; margin: 0; font-family: var(--font); font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--text); }

/* Menüs (⚙ Ansicht & Geräte, 👥 Teilnehmer) */
.cs-pop { width: min(340px, calc(100vw - 32px)); max-height: min(60vh, 520px); overflow: auto; padding: 8px 10px; box-sizing: border-box;
  background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); font-size: .85rem; }
.cs-pop[hidden] { display: none; }
.cs-mh { margin: 2px 0 6px; font-family: var(--px); font-size: .55rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cs-msec + .cs-msec { margin-top: 8px; padding-top: 8px; border-top: 2px dashed var(--border); }
.cs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 6px; font-size: .8rem; }
.cs-opt { padding: 4px 8px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .8rem;
  text-align: left; cursor: pointer; }
.cs-opt:hover { background: var(--accent-soft); }
.cs-opt.on { background: var(--accent); color: var(--on-accent, #fff); }
.cs-msec > .cs-opt { display: block; width: 100%; margin-top: 4px; }
.cs-chk { font-family: var(--px); font-size: .6rem; }
.cs-dev { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: .75rem; }
.cs-dev select { width: 100%; height: auto; min-height: 0; padding: 3px 6px; font-size: .8rem; }
.cs-help, .cs-muted { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
/* Qualitätswahl beim Start (Kamera/Bildschirm): Presets, Auflösung · fps · Bitrate */
.cs-pop[data-pop="quality"] { width: min(380px, calc(100vw - 24px)); }
.cs-q .cs-row .cs-opt { padding: 3px 7px; font-size: .75rem; }
.cs-qgrid { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 6px; margin: 4px 0 6px; }
.cs-qgrid label { display: flex; flex-direction: column; gap: 2px; font-size: .7rem; color: var(--muted); margin: 0; }
.cs-qgrid select { width: 100%; height: auto; min-height: 0; padding: 3px 4px; font-size: .8rem; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); }
.cs-qgrid select option:disabled { color: var(--muted); }
.cs-qsum { font-family: var(--px); font-size: .55rem; font-weight: 700; color: var(--accent); margin: 2px 0 4px; }
.cs-qwarn { margin: 6px 0 0; padding: 4px 6px; border: 2px dashed var(--danger); color: var(--text); font-size: .75rem; }
.cs-qaudio { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .8rem; }
.cs-qact { justify-content: flex-end; margin: 8px 0 0; }
.cs-qact .cs-opt small { font-size: .65rem; opacity: .8; }
.cs-qline { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 3px 0; font-size: .78rem; }
.cs-qline .cs-opt { padding: 2px 7px; font-size: .72rem; flex: none; }
/* Info-Badge in der eigenen Kachel: tatsächlich gesendet (Stats), Klick/Tap zeigt Details */
.cs-qbadge { position: absolute; right: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 1px 5px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-family: var(--px); font-size: .45rem; cursor: help; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-qbadge:empty { display: none; }
.cs-tile.me .cs-name { max-width: 55%; }
.cs-qbadge.open { white-space: pre-line; bottom: 26px; font-family: var(--font); font-size: .7rem; text-align: left; max-width: min(320px, calc(100% - 8px)); z-index: 2; }
.cs-qbadge.open::after { content: '\A' attr(data-info); }
@container (max-height: 96px) { .cs-qbadge { display: none; } }
.cs-people { list-style: none; margin: 0; padding: 0; }
.cs-people li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cs-people li.speaking b { color: var(--ok); }
.cs-pdot { width: 12px; height: 12px; flex: none; border: 2px solid var(--shadow-c); }
.cs-pst { display: inline-flex; gap: 3px; margin-left: auto; }
.cs-pmod { display: inline-flex; gap: 3px; }
.cs-pmod button { padding: 1px 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.btn.sm { padding: 2px 6px; font-size: .75rem; }

/* ⛶ Theatermodus (+ Browser-Vollbild, wo unterstützt): nur Bühne + schwebende Leiste + ⛶ — liegt über dem Rahmen jeder
   Oberfläche (auch der Editionen), unter Dialogen (60) und Toasts (80); das Alpha-Dock ist solange weg */
.co-app.theater .co-main { position: fixed; inset: 0; z-index: 56; border: 0; box-shadow: none; }
.co-app.theater :is(.co-head, .co-vbar, .co-findbar, .co-chat, .co-members) { display: none !important; }
.co-app.theater .co-body.with-stage .co-stage, .co-app.theater .co-body.in-call .co-stage { flex: 1; max-height: none; }
html.co-theater #alpha-dock, html.co-theater #co-pill { display: none !important; }
/* ⛶-Knopf unten rechts in der Bühne: direkt, ohne Untermenü; blendet sich mit der Leiste aus, Bewegung holt ihn zurück */
.cs-fs { position: absolute; right: 12px; bottom: 12px; z-index: 6; width: 34px; height: 34px; padding: 0; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 1rem; line-height: 1; box-shadow: 3px 3px 0 var(--shadow-c); transition: opacity .25s, transform .25s; }
.cs-fs:hover { background: var(--accent-soft); }
.cs-fs:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-fs.on { background: var(--accent); color: var(--on-accent, #fff); }
.cs-fs[hidden] { display: none; }
.cs-idle .cs-fs { opacity: 0; transform: translateY(14px); pointer-events: none; }
/* ▾ Leiste eingeklappt: kein Dock, Kacheln bis ganz unten; ▴ unten rechts immer sichtbar und über allen Kacheln */
.cs-b.cs-barhide { width: 26px; font-size: .85rem; color: var(--muted); }
.cs-stage.cs-barhidden .cs-dock { display: none; }
.cs-barshow { position: absolute; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 8;
  width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: var(--text); font-size: 1rem; line-height: 1; box-shadow: 3px 3px 0 var(--shadow-c); }
.cs-barshow[hidden] { display: none; }
.cs-barshow:hover { background: var(--accent-soft); }
.cs-barshow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-idle .cs-barshow { opacity: .55; }
.cs-stage.cs-barhidden .cs-fs { right: calc(54px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { .cs-fs { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); } }   /* Handy: über der Leiste, nie darunter */
html.coop-compact .co-body.in-call .cs-fs { display: none; }

/* Wer ist im Sprachkanal (wie TeamSpeak): unter dem Kanal, mit Sprech-Indikator, stumm/teilt/Kamera */
.co-row.in-call .co-row-e { color: var(--ok); }
.co-vus { margin: 0 6px 4px 28px; }
.co-vu { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-size: .82rem; color: var(--muted); }
.co-vu.me .co-vu-n { color: var(--text); font-weight: 600; }
.co-vu-ava { width: 18px; height: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  color: #fff; font-family: var(--px); font-size: .45rem; border: 2px solid var(--shadow-c); }
.co-vu.speaking .co-vu-ava { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.co-vu.speaking .co-vu-n { color: var(--ok); }
.co-vu-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-vu-ic { display: inline-flex; gap: 2px; }
.co-vu-ic i { font-style: normal; font-size: .72rem; }

/* Schwebende Anzeige, solange man in einem Raum ist und woanders hinschaut */
#co-pill { position: fixed; left: 50%; transform: translateX(-50%); top: var(--co-pill-top, 62px);   /* Editionen: eigene Kopfhöhe */ z-index: 57; display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); padding: 4px; max-width: calc(100vw - 24px); }
#co-pill button { border: 2px solid var(--line); background: var(--surface-2); color: var(--text); padding: 4px 8px; cursor: pointer;
  font-family: var(--font); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55vw; }
.co-pill-live { background: var(--danger); color: var(--bg); font-family: var(--px); font-size: .55rem; padding: 4px 6px; font-weight: 700; }

/* ---- Handy: Kanalliste als Schublade (☰), Chat bzw. Bühne im Vollbild, Mitglieder von rechts, Chat im Call als Blatt ---- */
@media (max-width: 760px) {
  .co-app { --co-head-h: 48px; --co-panel-w: 86vw; }
  .co-side { width: min(320px, 86vw); }
  .co-hb { min-width: 38px; height: 38px; }
  .co-htxt, .co-htopic::before { display: none; }
  .co-msg { padding-right: 12px; }
  .co-mact { right: 6px; }
  .co-card { min-width: 0; }
  .co-compose { padding: 0 6px 6px; }
  .co-body { flex-direction: column; }
  .co-body.in-call .co-stage { flex: 1; max-height: none; min-height: 0; }
  .co-body.in-call .co-chat { display: none; }
  .co-body.in-call.chat-sheet .co-chat { display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 59; width: auto; max-width: none;
    height: 72dvh; background: var(--surface); border-left: 0; border-top: 2px solid var(--line); box-shadow: 0 -4px 0 var(--shadow-c); animation: co-in-b .16s ease-out; }
  .cs-b { width: 40px; height: 38px; }
  .cs-b.leave { width: 46px; }
  .cs-dock { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .cs-sep { margin: 0; }
}
@keyframes co-in-b { from { transform: translateY(24px); opacity: .4; } }

/* ---- Fuß der Kanalliste: Download-Link Desktop-App (nur im Browser) + 🔔 UI-Töne ---- */
.co-sidefoot { display: flex; align-items: center; flex: none; border-top: 2px dashed var(--border); }
.co-sidefoot .co-sndbtn { margin-left: auto; min-width: 30px; height: 28px; font-size: .85rem; }
.co-applink { display: block; flex: 1; min-width: 0; padding: 4px 10px; color: var(--muted); font-size: .7rem;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-applink:hover { color: var(--accent); background: var(--accent-soft); }
.cs-applink { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; text-decoration: none; }
.cs-applink:hover { color: var(--accent); }
.cs-appptt { display: block; }
html.coop-app .co-applink, html.coop-app .cs-applink { display: none; }

/* ---- Kompaktmodus der Desktop-App (html.coop-compact, Strg+Umschalt+K): schmales Fenster für den zweiten Bildschirm.
   Im Call nur: aktueller Sprachkanal, Personen mit Sprech-Punkt, Stumm (Mikro/PTT) und Auflegen. Außerhalb eines Calls
   greift das normale schmale Layout (Kanalliste ↔ Kanal). retropixels: harte Kanten, Pixel-Schatten, keine Verläufe. ---- */
.cs-clist { display: none; }
html.coop-compact body:has(.co-body.in-call) .topbar,
html.coop-compact body:has(.co-body.in-call) .bottombar,
html.coop-compact .co-app:has(.co-body.in-call) .co-side,
html.coop-compact .co-body.in-call .co-chat,
html.coop-compact .co-app:has(.co-body.in-call) .co-head,
html.coop-compact .co-app:has(.co-body.in-call) .co-vbar,
html.coop-compact .co-app:has(.co-body.in-call) .co-findbar,
html.coop-compact .co-body.in-call .co-members,
html.coop-compact .co-body.in-call .cs-area,
html.coop-compact .co-body.in-call .cs-livechip,
html.coop-compact .co-body.in-call .cs-pop,
html.coop-compact #co-pill { display: none !important; }
html.coop-compact .co-app:has(.co-body.in-call) { padding: 0; gap: 0; }
html.coop-compact .co-app:has(.co-body.in-call) .co-main { display: flex; border: 0; box-shadow: none; }
html.coop-compact .co-body.in-call .co-stage { flex: 1; max-height: none; }
html.coop-compact .co-body.in-call .cs-stage { background: var(--bg); }
html.coop-compact .co-body.in-call .cs-clist { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; padding: 8px; gap: 6px; }
.cs-ctitle { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--surface-2); border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow-c); font-family: var(--px); font-size: .6rem; min-width: 0; }
.cs-ctitle b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-ctitle small { padding: 1px 5px; background: var(--accent); color: var(--on-accent, #fff); border: 2px solid var(--shadow-c); }
.cs-cpeople { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-cpeople li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--surface); border: 2px solid var(--line); min-width: 0; font-size: .85rem; }
.cs-cpeople li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cs-cpeople li small { color: var(--muted); }
.cs-cdot { width: 12px; height: 12px; flex: none; border: 2px solid var(--shadow-c); }
.cs-cpeople li.speaking { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.cs-cpeople li.speaking .cs-cdot { outline: 2px solid var(--ok); outline-offset: 1px; }
.cs-cpeople li.speaking b { color: var(--ok); }
.cs-cpeople li.mute { opacity: .8; }
.cs-cst { display: inline-flex; gap: 3px; font-style: normal; }
.cs-cst i { font-style: normal; font-size: .85rem; }
/* Leiste: fest unten, nur Mikro/PTT und Auflegen, blendet sich nicht aus */
html.coop-compact .co-body.in-call .cs-dock,
html.coop-compact .co-body.in-call .cs-idle .cs-dock { position: static; transform: none; opacity: 1; pointer-events: auto; max-width: none; padding: 6px 8px 8px; }
html.coop-compact .co-body.in-call .cs-bar { width: 100%; justify-content: center; box-sizing: border-box; }
html.coop-compact .co-body.in-call .cs-bar > :not([data-cm="mic"]):not([data-cm="ptt-hold"]):not([data-cm="leave"]) { display: none; }
html.coop-compact .co-body.in-call .cs-b { flex: 1; max-width: 120px; height: 40px; }
html.coop-compact .co-body.in-call .cs-stage.cs-barhidden .cs-dock { display: flex; }   /* Kompaktmodus: Leiste immer da */
html.coop-compact .co-body.in-call .cs-barshow { display: none; }
html.coop-compact .co-body.in-call .cs-idle .cs-area { cursor: auto; }

/* ---- 🖼️ Kanal-Whiteboard: im Kanal neben dem Chat (Handy: anstelle), im Call als Kachel auf der Bühne. Der Board-Editor
   (board.js, eingebettet mit .bd-embed) bringt seine Werkzeugleiste mit; retropixels: harte Kanten, keine Verläufe ---- */
.co-wb[hidden] { display: none; }
.co-body.wb-open .co-wb { flex: 1.4; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 2px solid var(--line); }
.co-body.wb-open .co-chat { flex: 1; max-width: 420px; }
.co-hact [data-a="wb"].on { background: var(--accent); color: var(--on-accent, #fff); }
.bd-embed { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.bd-embed .board-wrap { flex: 1; min-height: 0; }
.bd-embed .board-top { flex-wrap: wrap; }
.bd-embed-title { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }
.bd-embed-wait { margin: auto; padding: 24px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .co-body.wb-open .co-chat { display: none; }
  .co-body.wb-open .co-wb { flex: 1; border-right: 0; }
}
/* Kachel „Whiteboard" auf der Bühne: kein Video, direkt bearbeitbar; Kopfzeile zeigt, wer geteilt hat */
.cs-tile.board { flex-direction: column; align-items: stretch; justify-content: flex-start; cursor: auto; background: var(--bg);
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 3px 3px 0 var(--shadow-c); }
.cs-wbbar { flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; background: var(--surface);
  border-bottom: 2px solid var(--line); font-size: .75rem; min-width: 0; }
.cs-wbname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-wbacts { display: flex; gap: 2px; flex: none; }
.cs-wbacts button { min-width: 24px; padding: 1px 5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-size: .72rem; cursor: pointer; }
.cs-wbacts button:hover { background: var(--accent-soft); }
.cs-wbacts button.on { background: var(--accent); color: var(--on-accent, #fff); }
.cs-wbhost { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.cs-wbhost > .bd-embed-wait { font-size: .8rem; }
.cs-idle .cs-tile.board, .cs-idle .cs-tile.board * { cursor: auto; }
@container (max-height: 160px) { .cs-tile.board .board-top, .cs-wbacts button[data-ta="wbstop"] { display: none; } }
.co-body.wb-open:not(.in-call) .co-stage { display: none; }   /* Sprachkanal ohne Call: Whiteboard statt „Beitreten"-Fläche */

/* ---- Handy: geteiltes Whiteboard groß („Zuschau-Modus", .cs-phoneboard): das Board füllt die Bühne, die Kameras laufen
   als kompakter Streifen mit Mini-Kacheln (Maße: cooplayout.js boardStage) — hochkant OBEN und wischbar (Finger beim
   Zoomen verdecken die Kameras nicht), quer rechts; die Steuerleiste bleibt unten. ▴ klappt den Streifen zu einer Avatar-Leiste ein (.cs-camsmin). Werkzeugleiste des Boards eingeklappt (.cs-wbview),
   ✏️ Bearbeiten klappt sie auf; Wischen schiebt die Ansicht, zwei Finger zoomen (board.js). Desktop unverändert. ---- */
.cs-phoneboard .cs-area { position: relative; }
.cs-phoneboard .cs-main { padding: 6px; }
.cs-phoneboard .cs-strip { padding: 6px; gap: 6px; }
.cs-phoneboard[data-strip="top"] .cs-stripwin { order: -1; }
.cs-phoneboard[data-strip="top"] .cs-strip { flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scrollbar-width: thin; padding-left: 38px; }
.cs-phoneboard[data-strip="right"] .cs-strip { padding-top: 34px; align-items: center; }
.cs-phoneboard .cs-strip .cs-tile { scroll-snap-align: start; box-shadow: 2px 2px 0 var(--shadow-c); }
.cs-phoneboard .cs-strip .cs-tile.speaking { box-shadow: 0 0 0 calc(2px + var(--lvl, .3) * 3px) var(--ok); }
.cs-phoneboard .cs-strip :is(.cs-acts, .cs-badges, .cs-qbadge, .cs-selfhint) { display: none; }
.cs-phoneboard .cs-strip .cs-name { left: 2px; bottom: 2px; max-width: calc(100% - 4px); padding: 0 3px; font-size: .58rem; }
.cs-phoneboard .cs-strip .cs-live { padding: 2px 4px; font-size: .42rem; }
.cs-camsmin .cs-strip .cs-over { display: none; }
.cs-camsmin .cs-strip .cs-ava { height: 100%; max-height: none; min-height: 0; font-size: .8rem; border: 0; }
.cs-stripbtn { position: absolute; z-index: 3; width: 28px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); background: var(--surface); color: var(--text); box-shadow: 2px 2px 0 var(--shadow-c); font-size: .8rem; cursor: pointer; }
.cs-stripbtn[hidden] { display: none; }
.cs-stripbtn:hover { background: var(--accent-soft); }
.cs-wbview .cs-tile.board :is(.board-top, .bd-selbar, .bd-hint, .bd-side, .bd-dock, .bd-floats, .bd-dz) { display: none !important; }
.cs-wbview .cs-tile.board .bd-item { pointer-events: none; }   /* Zuschauen: Wischen schiebt die Ansicht, nichts wird verschoben */
.cs-phoneboard .cs-wbacts button { min-width: 30px; min-height: 26px; }
.cs-wbacts .cs-wbedit { font-family: var(--font); font-weight: 600; padding: 1px 8px; }
/* Coop App im Kompaktmodus: keine Board-Kachel, nur der Hinweis */
.cs-chint { padding: 6px 8px; background: var(--surface); border: 2px dashed var(--accent); font-size: .8rem; }


/* Handy quer (flach): im Call nur Bühne (Kopf schwebt) — Chat als Blatt von rechts über 💬 */
@media (max-height: 500px) and (orientation: landscape) {
  .co-app { --co-head-h: 40px; }
  .co-body.in-call .co-stage { flex: 1; max-height: none; min-height: 0; }
  .co-body.in-call .co-chat { display: none; }
  .co-body.in-call.chat-sheet .co-chat { display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 59; width: min(360px, 62vw); height: auto;
    max-width: none; background: var(--surface); border-top: 0; border-left: 2px solid var(--line); box-shadow: -4px 0 0 var(--shadow-c); }
  .cs-b { width: 40px; height: 34px; }
}
@media (pointer: coarse) and (max-width: 760px), (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .cs-b { width: 44px; height: 44px; }
  .cs-b.leave { width: 52px; }
}
.cs-phoneboard[data-strip="top"] .cs-strip { scroll-padding-left: 38px; }
.cs-phoneboard[data-strip="top"] .cs-fs { display: none; }   /* hochkant: ⛶ läge auf dem Board — Vollbild gibt es am Board-Kopf */
/* Weniger Bewegung: Panels und Kopf erscheinen ohne Gleiten/Blenden */
@media (prefers-reduced-motion: reduce) {
  .co-side, .co-app.side-open .co-side, .co-head, .co-members, .co-body.in-call .co-chat, .co-body.in-call.chat-sheet .co-chat,
  .cs-dock, .cs-fs, .cs-name, .cs-badges, .cs-qbadge, .cs-zoom, .cs-main.cs-abs > .cs-tile, .cs-grip { transition: none !important; animation: none !important; }
  .co-main.in-call.co-idle > .co-head:not(:focus-within) { transform: none; }
}

/* ---- 🎲 Brettspielmodus (coopgame.js): Ebene über dem geteilten Whiteboard — Figuren in Board-Koordinaten ---- */
.cs-game { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.cs-ggrid { position: absolute; inset: 0; }
.cs-ggrid path { fill: none; stroke: var(--line); stroke-width: 1; opacity: .55; }
.cs-gitems { position: absolute; inset: 0; }
.cs-gp, .cs-gmk { position: absolute; pointer-events: auto; border-radius: 50%; box-sizing: border-box; touch-action: none; user-select: none; }
.cs-gp { border: 3px solid var(--gc, var(--accent)); background: var(--surface); box-shadow: 3px 3px 0 var(--shadow-c); container-type: size; }
.cs-gp.movable, .cs-gmk.movable { cursor: grab; }
.cs-gp.dragging, .cs-gmk.dragging { cursor: grabbing; z-index: 3; opacity: .92; }
.cs-gp:focus-visible, .cs-gmk:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cs-gp.speaking { box-shadow: 0 0 0 4px var(--ok), 0 0 14px 2px var(--ok), 3px 3px 0 var(--shadow-c); }
.cs-gp.turn::after { content: ''; position: absolute; inset: -9px; border: 2px dashed var(--gc, var(--accent)); border-radius: 50%; animation: cs-gturn 6s linear infinite; pointer-events: none; }
@keyframes cs-gturn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cs-gp.turn::after { animation: none; } }
.cs-gp.away { opacity: .45; }
.cs-gface { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cs-gface video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.cs-gface video.mirror { transform: scaleX(-1); }
.cs-gava { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--px); font-size: 40cqmin; text-shadow: 1px 1px 0 #000; }
.cs-gname { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 2px 6px; font-size: .72rem;
  background: var(--surface); color: var(--text); border: 2px solid var(--gc, var(--line)); opacity: 0; transition: opacity .12s; pointer-events: none; }
.cs-gp:hover .cs-gname, .cs-gp:focus-visible .cs-gname, .cs-gp.dragging .cs-gname, .cs-gp.turn .cs-gname { opacity: 1; }
.cs-gbs { position: absolute; right: -4px; bottom: -4px; display: flex; gap: 2px; pointer-events: none; }
.cs-gb { font-style: normal; font-size: 11px; line-height: 1; padding: 2px; background: var(--surface); border: 1px solid var(--line); }
.cs-gbcam { text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.cs-gmk { border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--shadow-c); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #111; }
.cs-gbar { position: absolute; left: 8px; bottom: calc(var(--gdock, 0px) + 8px); pointer-events: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 16px);
  padding: 4px 6px; background: var(--surface); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c); font-size: .78rem; }
.cs-gbar button { min-width: 28px; height: 26px; padding: 0 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .78rem; cursor: pointer; }
.cs-gbar button:hover { border-color: var(--accent); }
.cs-groll { padding: 0 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-gturn b { color: var(--text); }
.cs-gturn.mine { color: var(--ok); font-weight: 700; }
.cs-gmenu { position: absolute; left: 8px; bottom: calc(var(--gdock, 0px) + var(--gbarh, 36px) + 14px); width: min(340px, calc(100% - 16px)); max-height: calc(100% - var(--gdock, 0px) - var(--gbarh, 36px) - 30px); overflow: auto; pointer-events: auto;
  padding: 8px 10px; background: var(--surface); color: var(--text); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); font-size: .8rem; display: flex; flex-direction: column; gap: 8px; }
.cs-gmenu[hidden] { display: none; }
.cs-gmhead { display: flex; align-items: center; gap: 6px; }
.cs-gmhead button { margin-left: auto; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; }
.cs-gset { border: 1px solid var(--line); padding: 6px 8px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-gset legend { padding: 0 4px; font-size: .74rem; color: var(--muted); }
.cs-gopt { display: flex; align-items: center; gap: 6px; margin: 0; font-family: var(--font); font-size: .8rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--text); }
.cs-gopt input[type=checkbox] { width: auto; margin: 0; }
.cs-gopt input[type=range] { flex: 1; accent-color: var(--accent); }
.cs-gopt select { width: auto; height: auto; min-height: 0; padding: 2px 6px; font-size: .8rem; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); }
.cs-gopt button { min-width: 24px; height: 22px; padding: 0 4px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.cs-gsw { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-gsw button { width: 22px; height: 22px; padding: 0; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: .7rem; }
.cs-gsw button.on { outline: 2px solid var(--text); outline-offset: 1px; }
.cs-gorder { margin: 0; padding-left: 20px; }
.cs-gorder li.on { color: var(--ok); font-weight: 700; }
.cs-wbacts .cs-wbgame.on { border-color: var(--accent); color: var(--accent); }
/* 📦 Spielpakete (gamepackui.js) im 🎲-Menü bzw. Start-Feld */
.cs-gpkhost { border-top: 1px solid var(--line); padding-top: 8px; }
.cs-gpk { display: flex; flex-direction: column; gap: 6px; }
.cs-gpkhead { display: flex; align-items: baseline; gap: 6px; }
.cs-gpklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-gpkitem { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid var(--line); background: var(--surface-2); }
.cs-gpkicon { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; object-fit: contain; font-size: 1.2rem; }
.cs-gpkmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-gpkmain small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-gpkitem button { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; }
.cs-gpkitem button:hover { color: var(--danger); }
.cs-gpkdrop { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; border: 2px dashed var(--line); }
.cs-gpkdrop.over { border-color: var(--accent); background: var(--surface-2); }
.cs-gpkpick { cursor: pointer; }
.cs-gpkmsg { margin: 0; font-size: .78rem; }
.cs-gpkrep { margin: 0; padding-left: 16px; font-size: .74rem; max-height: 160px; overflow: auto; }
.cs-gpkrep li.err { color: var(--danger); }
.cs-gpkrep li.warn { color: var(--muted); }
.cs-gpkhelp, .cs-gpknote { margin: 0; font-size: .72rem; }
.cs-gbar:empty { display: none; }
/* Fehler/Hinweise des Spiels (abgelehnte Aktion, Netz weg, Skriptfehler): über der Spiel-Leiste — nichts verschwindet */
.cs-gnote { position: absolute; left: 8px; bottom: calc(var(--gdock, 0px) + var(--gbarh, 36px) + 14px); z-index: 2; max-width: calc(100% - 16px); box-sizing: border-box; pointer-events: auto;
  padding: 4px 8px; background: var(--surface); color: var(--text); border: 2px solid var(--danger); box-shadow: 3px 3px 0 var(--shadow-c); font-size: .8rem; }
.cs-gnote[hidden] { display: none; }
/* Handy/Touch: Knöpfe der Spiel-Leiste mind. 44 px; Whiteboard füllt die Bühne → Leiste, Menü, Karte über der Call-Leiste */
@media (pointer: coarse) {
  .cs-gbar button, .cs-gbar .cs-gact { min-width: 44px; height: 44px; }
  .cs-gbar { gap: 6px; }
}
.cs-gmenu.start { bottom: calc(var(--gdock, 0px) + 8px); max-height: calc(100% - var(--gdock, 0px) - 16px); }
/* 📦 Paket-Spiel (F2): Spielplan, offene Karte, Aktionen, Spielstand */
.cs-gboard { position: absolute; pointer-events: none; overflow: hidden; }
.cs-gboard img, .cs-gboard svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.cs-gcardbox { position: absolute; right: 8px; bottom: calc(var(--gdock, 0px) + 8px); pointer-events: auto; }
.cs-gcard { display: flex; flex-direction: column; gap: 4px; width: 170px; padding: 8px 10px; background: var(--surface); color: var(--text); border: 2px solid var(--accent); box-shadow: 4px 4px 0 var(--shadow-c); font-size: .8rem; }
.cs-gcard img { width: 100%; max-height: 110px; object-fit: contain; }
.cs-gcard small { color: var(--muted); }
.cs-gbar .cs-gact { height: 30px; border-color: var(--accent); background: var(--accent); color: var(--bg); font-weight: 700; }
.cs-gbar .cs-gact:disabled { opacity: .6; }
.cs-gctr { margin: 0; padding-left: 16px; }
.cs-ghand { display: flex; flex-wrap: wrap; gap: 4px; }
.cs-gcardmini { padding: 3px 6px; border: 1px solid var(--accent); background: var(--surface-2); font-size: .74rem; }
.cs-glog { margin: 0; padding-left: 18px; max-height: 150px; overflow: auto; font-size: .74rem; color: var(--muted); }
.cs-glog li.big { color: var(--text); }
.cs-gwinline { margin: 0; font-size: .95rem; color: var(--ok); }
.cs-grulestext { font-size: .76rem; max-height: 220px; overflow: auto; margin-top: 4px; }
.cs-grulestext p, .cs-grulestext ul { margin: 0 0 6px; }
.cs-grulestext ul { padding-left: 16px; }
.cs-gpkplay { height: 26px; padding: 0 8px; font-size: .74rem; }
.cs-gbusy { color: var(--muted); font-style: italic; }
/* 🏷 Feld-Markierungen aus Skripten (F4): Besitz-Ring + Zahl */
.cs-gmarks { position: absolute; inset: 0; pointer-events: none; }
.cs-gmark { position: absolute; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--mc); box-shadow: 0 0 0 2px var(--bg); }
.cs-gmark b { position: absolute; right: -10px; top: -10px; min-width: 20px; padding: 1px 4px; background: var(--mc); color: #111; font-size: .72rem; text-align: center; border: 2px solid var(--bg); }
.cs-gpkex { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cs-gpkex .btn { padding: 2px 8px; font-size: .74rem; }
/* 🎬 Clip im Spiel (F5): eigener Kasten oben rechts — nichts liegt über dem Player */
.cs-gmediahost { position: absolute; top: 8px; right: 8px; width: min(360px, calc(100% - 16px)); pointer-events: auto; background: var(--surface); color: var(--text);
  border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); display: flex; flex-direction: column; font-size: .78rem; z-index: 2; }
.cs-gmediahost[hidden] { display: none; }
.cs-gmhd { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.cs-gmtime { color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-gmunmute { margin-left: auto; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; font-size: .74rem; }
.cs-gmunmute[hidden] { display: none; }
.cs-gmbody:empty { display: none; }
.cs-gmbody { position: relative; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.cs-gmyt, .cs-gmyt > div, .cs-gmyt iframe, .cs-gmvideo { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-gmhint:empty { display: none; }
.cs-gmhint { padding: 6px 8px; }
.cs-gmhint .cs-wgate { border: 0; max-width: none; padding: 0; font-size: .74rem; }
.cs-gcard.back { border-style: dashed; }

/* ==== 🧱 Stil „Modern“ (coopthemes STYLES, data-co-style="modern" auf .co-app bzw. #gp; Nutzer 21.10.2026) ====
   Gegenstück zu retropixels: runde Ecken, 1px-Linien, weiche Schatten, Systemschrift statt Pixelfont, Steuerleiste als Pille mit
   runden Knöpfen. Farben bleiben die Theme-Tokens (🎨). Umfang: :where() → gleiche Spezifität wie die Grundregeln oben, die
   hier später stehen und gewinnen; Zustände (.on, .speaking …) bleiben, wo sie spezifischer sind, und werden nur bei Rahmen/
   Schatten nachgezogen. */
.co-app[data-co-style="modern"], #gp[data-co-style="modern"] {
  --px: var(--font);   /* alle Pixelfont-Stellen in Coop → Systemschrift */
  --co-r: 12px; --co-r-sm: 8px;
  --co-shadow: 0 12px 32px -10px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .22);
  --co-shadow-sm: 0 4px 14px -4px rgba(0, 0, 0, .4);
  --co-glass: color-mix(in srgb, var(--surface) 86%, transparent);
}
html[data-co-style="modern"] #co-pill { border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); padding: 4px 6px; }
html[data-co-style="modern"] #co-pill button { border: 0; border-radius: 999px; padding: 5px 12px; }
html[data-co-style="modern"] .co-pill-live { border-radius: 999px; font-family: var(--font); font-size: .68rem; }

/* Schrift: Pixelfont-Größen (.45–.72rem) sind für Systemschrift zu klein */
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-brand) { font-size: .95rem; letter-spacing: 0; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-hn) { font-size: .95rem; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-sec-h, .co-mem-h, .cs-mh) { font-size: .68rem; letter-spacing: .04em; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-panel-head b, .co-chat-head, .co-sug-h, .co-card-plan) { font-size: .82rem; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-body.in-call .co-chat-head { font-size: .82rem; font-weight: 700; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-day, .co-new) { font-size: .7rem; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-badge, .co-hb small, .co-vbox-ch b, .cs-b small, .cs-b .cs-badge, .cs-zl, .cs-qbadge, .co-hit-ch, .cs-qsum) { font-size: .66rem; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-live, .cs-livechip) { font-size: .66rem; letter-spacing: .03em; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-vu-ava) { font-size: .6rem; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-chk) { font-size: .8rem; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-empty h2 { font-size: 1.3rem; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) label { font-size: .78rem; }

/* Allgemeine Knöpfe/Felder innerhalb von Coop (style.css: retropixels) */
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .btn { border: 1px solid var(--border); border-radius: var(--co-r-sm); box-shadow: none; font-weight: 600; font-size: .85rem; padding: 8px 14px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .btn:active { transform: scale(.97); box-shadow: none; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .btn-primary { border-color: transparent; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .btn-ghost { border: 0; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(input[type=text], input[type=url], input[type=search], input[type=password], select, textarea) { border: 1px solid var(--border); border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(input, select, textarea):focus { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Kopf, Kanalliste, Panels */
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-hb { border-width: 1px; border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-hb.on, :where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-hb[aria-expanded="true"] { border-color: transparent; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-hdot { border-radius: 50%; border: 0; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-side { border-right: 1px solid var(--border); }
.co-app[data-co-style="modern"].side-open .co-side { box-shadow: var(--co-shadow); }
html.co-full .co-app[data-co-style="modern"] > .co-side { border-right-width: 1px; border-color: var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-side-head, .co-head, .co-panel-head, .co-vbar) { border-bottom: 1px solid var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-body.in-call .co-chat-head { border-bottom: 1px solid var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-vbox, .co-sidefoot, .co-readonly) { border-top: 1px solid var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-row { border: 0; border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-row.on { font-weight: 600; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-row-join { border: 0; border-radius: 999px; padding: 2px 10px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-badge { border: 0; border-radius: 999px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-vbox { margin: 6px; border: 1px solid var(--border); border-radius: var(--co-r); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-vu-ava { border: 0; border-radius: 50%; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-members, .co-watch) { border-left: 1px solid var(--border); box-shadow: var(--co-shadow); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-body.in-call .co-chat { border-left: 1px solid var(--border); box-shadow: var(--co-shadow); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-main.mem-pin .co-members, :where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-body.in-call.chat-pin .co-chat { box-shadow: none; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-findbar, .co-suggest) { border: 1px solid var(--border); border-radius: var(--co-r); box-shadow: var(--co-shadow); overflow: hidden; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-chip-call { border-radius: 999px; border-width: 1px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-join-btn { border: 0; border-radius: 999px; box-shadow: var(--co-shadow-sm); padding: 6px 18px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-join-btn:active { transform: scale(.97); box-shadow: none; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-avas .co-ava { border-radius: 50%; }

/* Chat */
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-ava { border: 0; border-radius: 50%; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-msg { border-radius: var(--co-r-sm); margin-left: 6px; margin-right: 6px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-msg.mention { box-shadow: inset 3px 0 0 var(--accent); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-msg.flash { outline-width: 2px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-day, .co-new)::before, :where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-day, .co-new)::after { border-top: 1px solid var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-new::before, :where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-new::after { border-top-color: var(--danger); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-mact { border: 1px solid var(--border); border-radius: var(--co-r-sm); box-shadow: var(--co-shadow-sm); overflow: hidden; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-ref { border-width: 1px; border-radius: 6px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-card { border: 1px solid var(--border); border-radius: var(--co-r); box-shadow: none; overflow: hidden; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-card-plan { border-left: 1px solid var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-prog { border: 0; border-radius: 999px; overflow: hidden; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.co-att-img, .co-att video, .co-att-doc, .co-attchip) { border: 1px solid var(--border); border-radius: var(--co-r-sm); box-shadow: none; overflow: hidden; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-text code { border-radius: 4px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-text pre.ch-code { border: 1px solid var(--border); border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-crow { border: 1px solid var(--border); border-radius: var(--co-r); padding: 2px 6px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-cb { border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .co-bound-bar { border: 1px solid var(--border); border-radius: var(--co-r); box-shadow: none; }

/* Bühne: Kacheln, Schilder, Hinweise */
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-main { gap: 10px; padding: 10px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-tile { border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .45); transition: box-shadow .15s ease; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-tile.speaking { border-color: var(--ok); box-shadow: 0 0 0 calc(1px + var(--lvl, .3) * 4px) var(--ok), 0 6px 20px -8px rgba(0, 0, 0, .45); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-tile.live { box-shadow: 0 0 0 3px var(--danger); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-tile.cs-moving { box-shadow: 0 0 0 2px var(--accent), var(--co-shadow); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-tile:fullscreen, .cs-tile.cs-full) { border-radius: 0; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-ava { border: 0; border-radius: 50%; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-name, .cs-selfhint, .cs-badges i, .cs-qbadge) { border: 0; border-radius: 6px; background: var(--co-glass); backdrop-filter: blur(8px); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-name { left: 8px; bottom: 8px; padding: 2px 8px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-badges { left: 8px; top: 8px; gap: 4px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-badges i.cs-volb.boost { background: var(--danger); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-live, .cs-livechip) { border: 0; border-radius: 6px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-acts { right: 8px; top: 8px; gap: 4px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-acts button { border: 0; border-radius: 6px; background: var(--co-glass); backdrop-filter: blur(8px); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-zoom { border: 0; border-radius: 999px; padding: 2px 6px; background: var(--co-glass); backdrop-filter: blur(8px); bottom: 8px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-zoom button { border-radius: 999px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-grip { border: 0; border-radius: 999px; background: var(--co-glass); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-hint { border: 1px solid var(--border); border-radius: var(--co-r); box-shadow: var(--co-shadow); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-stage[data-strip="float"] .cs-stripwin { border: 1px solid var(--border); border-radius: var(--co-r); box-shadow: var(--co-shadow); overflow: hidden; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-stage:is([data-strip="bottom"], [data-strip="top"]) .cs-split { border-top-width: 1px; border-bottom-width: 1px; border-color: var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-stage:is([data-strip="right"], [data-strip="left"]) .cs-split { border-left-width: 1px; border-right-width: 1px; border-color: var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-split::after { border-radius: 999px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-cropbar button, .cs-wunmute, .cs-wctl button, .cs-wstate, .cs-wvoterow .cs-wvote) { border-width: 1px; border-radius: 6px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-wgate { border: 1px solid var(--border); border-radius: var(--co-r); }

/* Steuerleiste: schwebende Pille mit runden Knöpfen */
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-bar { gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--co-glass);
  backdrop-filter: blur(14px); box-shadow: var(--co-shadow); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); transition: background .12s, transform .12s; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b:active { transform: scale(.94); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b.ptt { border: 2px dashed var(--muted); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b.leave { width: 58px; border-radius: 999px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b.off::after { top: 10px; bottom: 10px; border-radius: 2px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b .cs-badge { border: 0; border-radius: 999px; top: -4px; right: -4px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b .cs-dot { border-radius: 50%; top: 6px; right: 8px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-sep { width: 1px; height: 24px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-fs, .cs-barshow) { border: 1px solid var(--border); border-radius: 50%; box-shadow: var(--co-shadow-sm); width: 40px; height: 40px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-barshow { background: var(--co-glass); backdrop-filter: blur(10px); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b.cs-barhide { width: 30px; background: transparent; }
.cs-stage.cs-barhidden:where(.co-app[data-co-style="modern"] *, #gp[data-co-style="modern"] *) .cs-fs { right: calc(60px + env(safe-area-inset-right, 0px)); }
@media (max-width: 760px) { :where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b { width: 40px; height: 40px; } :where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-b.leave { width: 50px; } }

/* Menüs (⚙, 👥, Qualität): Karte mit runden Ecken, Optionen als weiche Chips */
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-pop { border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--co-shadow); padding: 10px 12px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-msec + .cs-msec { border-top: 1px solid var(--border); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-opt { border: 1px solid var(--border); border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-opt.on { border-color: var(--accent); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-qdel { border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--co-r-sm) var(--co-r-sm) 0; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-qmine .cs-opt { border-radius: var(--co-r-sm) 0 0 var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-dev select, .cs-qgrid select, .cs-qcustom input, .cs-qsave input[data-qname], .cs-vedit input[type=text], .cs-wadd input[type=url], .cs-wopt select) { border: 1px solid var(--border); border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-qwarn { border: 1px solid var(--danger); border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-micmeter { border: 0; border-radius: 999px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) :is(.cs-vacts button, .cs-pmod button, .cs-rx, .cs-snd-try, .cs-vapply kbd) { border-width: 1px; border-radius: 6px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-pdot { border: 0; border-radius: 50%; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cs-people li { border-bottom-color: var(--border); }

/* 🎨-Auswahl (Gastseite inline; in Coop im App-Dialog): Stil-Schalter + Karten */
.cth-style { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; font-size: .82rem; }
.cth-style > span { margin-right: 4px; color: var(--muted); }
.cth-st { padding: 4px 10px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; }
.cth-st:hover { background: var(--accent-soft); }
.cth-st.on { background: var(--accent); color: var(--on-accent, #fff); }
.cth-st:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cth-st { border-width: 1px; border-radius: var(--co-r-sm); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cth-card { border-width: 1px; border-radius: 10px; }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cth-card.on { box-shadow: 0 0 0 2px var(--accent); }
:where(.co-app[data-co-style="modern"], #gp[data-co-style="modern"]) .cth-sw { border-radius: 6px; }
