/* AKHI APP – Web-Oberfläche. Mobil zuerst (iPhone), ab 900 px Desktop-Layout mit Seitenleiste. */

@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #0E0F12; --surface: #16181D; --surface-2: #1E2128; --surface-3: #262a33; --border: #2A2E37;
  --text: #E8EAED; --muted: #8A909C; --accent: #C6FF00; --accent-dim: #9BC800; --on-accent: #0E0F12;
  --danger: #FF4D5E; --ok: #3DDC97; --warn: #FFC93D;
  --radius: 12px; --tabbar-h: 62px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overscroll-behavior-y: none; }
[v-cloak] { display: none; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0 0 10px; font-weight: 700; }
h2 { font-size: 20px; } h3 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .danger { color: var(--danger); } .ok { color: var(--ok); }
.warn { color: var(--warn); } .accent { color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.spacer { flex: 1; } .center { text-align: center; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack > * + * { margin-top: 12px; }

/* ---------- Logo / Kopf */
.logo { font-family: "Anton", Impact, sans-serif; font-size: 26px; letter-spacing: 1px; line-height: 1; }
.logo b { color: var(--accent); font-weight: normal; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-top)) 16px 10px; background: rgba(14,15,18,.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar .title { font-weight: 700; font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.chip.on { color: var(--ok); } .chip.busy { color: var(--accent); }

/* ---------- Layout */
.app { min-height: 100vh; }
.main { padding: 14px 14px calc(var(--tabbar-h) + var(--safe-bottom) + 20px); max-width: 1200px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom); background: rgba(22,24,29,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11px; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--accent); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Benutzer (Nutzerwunsch 07.10.2026): Profilbild, Handy-Tab mit Name, Benutzer-Karte unten links (PC) */
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .ic { width: 62%; height: 62%; }
.tabbar a.active .avatar { border-color: var(--accent); color: var(--accent); }
.tab-name { max-width: 72px; }
.only-desk { display: none; }
.side-user { display: none; }
.avatar-edit { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar-edit:disabled { cursor: default; }
.avatar-badge { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid;
  place-items: center; background: var(--accent); color: var(--on-accent); }
.avatar-badge .ic { width: 13px; height: 13px; }
.up-member { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.up-member small { display: block; font-size: 11px; color: var(--muted); }
.up-member.warn { border-color: var(--warn); } .up-member.crit { border-color: var(--danger, #ff5d5d); }
.up-member .chev { color: var(--muted); font-size: 22px; line-height: 1; }
@media (min-width: 900px) {
  .only-mobile { display: none !important; }
  .only-desk { display: inline-flex; }
  .side-user { display: block; position: relative; margin-top: auto; padding: 10px 12px 0; border-top: 1px solid var(--border); }
  .side-user-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 0;
    background: none; color: var(--text); cursor: pointer; text-align: left; font: inherit; font-size: 14px; font-weight: 700; }
  .side-user-btn:hover, .side-user-btn[aria-expanded="true"] { background: var(--surface-2); }
  .side-user-btn small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
  .user-pop { position: absolute; left: 10px; right: -150px; bottom: calc(100% + 6px); z-index: 40; padding: 14px;
    display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
  .up-block .bar { margin: 6px 0 2px; }
  .up-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text);
    text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 400; cursor: pointer;
    text-align: left; min-height: 0; justify-content: flex-start; }
  .up-link:hover { background: var(--surface-2); }
  .up-link .ic { width: 18px; height: 18px; color: var(--muted); }
}

/* Mobil: Abschnitte der Erstellen-Seite in sinnvoller Reihenfolge (Vorschau direkt nach den Hooks) */
@media (max-width: 899px) {
  .desk-cols { display: flex; flex-direction: column; gap: 12px; }
  .desk-cols > .stack, .desk-cols > .desk-sticky { display: contents; }
  .desk-cols > .stack > * { margin-top: 0 !important; }
  /* Ablauf: Videos -> Hooks -> Vorschau -> (selten) Optionen -> Rendern */
  .o-videos { order: 1; } .o-versions { order: 2; } .o-preview { order: 3; } .o-options { order: 4; }
  .o-render { order: 5; } .o-jobs { order: 6; }
  .render-hint { display: none; }
}
/* RENDERN immer erreichbar: klebt unten (Handy: über der Tab-Leiste), ohne bis ans Seitenende zu scrollen */
.o-render { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px); z-index: 15; padding: 8px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.45); }
@media (min-width: 900px) { .o-render { bottom: 12px; padding: 12px; } }
/* Optionen eingeklappt: Zusammenfassung als Chips */
.opt-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; cursor: pointer; }
.opt-summary span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--muted); }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 220px 1fr; }
  .tabbar { position: sticky; top: 0; height: 100vh; flex-direction: column; justify-content: flex-start; padding: 18px 0;
    border-top: 0; border-right: 1px solid var(--border); gap: 2px; }
  .tabbar .side-logo { display: block !important; padding: 0 20px 22px; }
  .tabbar a { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 20px; font-size: 15px;
    border-left: 3px solid transparent; }
  .tabbar a.active { background: var(--surface-2); border-left-color: var(--accent); color: var(--text); }
  .tabbar a svg { width: 20px; height: 20px; }
  .badge { position: static; margin-left: auto; }
  .topbar .logo { display: none; }
  .main { padding: 20px 28px 40px; }
  .desk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
  .desk-sticky { position: sticky; top: 76px; }
}

/* ---------- Karten / Formulare */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.card + .card { margin-top: 12px; }
/* Wer rendert? (components.RenderTarget, nur Admin) */
.render-target { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.render-target select { flex: 1; min-width: 150px; min-height: 36px; padding: 0 8px; }
.render-target.compact { margin: 0; flex-wrap: nowrap; }
.render-target.compact select { min-width: 0; max-width: 170px; min-height: 34px; font-size: 13px; }
/* Auflösung eines Clips (components.ResBadge) */
.res-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .03em; line-height: 1; padding: 3px 5px;
  border-radius: 4px; vertical-align: middle; margin-left: 4px; background: var(--surface-3); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap; }
.res-badge.r4k { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.res-badge.r1440 { color: #8fd3ff; border-color: #3b6f8f; }
.res-badge.r1080 { color: var(--text); }
.src-thumb { position: relative; cursor: pointer; }
.src-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 7px; display: block; }
.src-thumb .res-badge, .src-res .res-badge { position: absolute; left: 2px; bottom: 2px; margin: 0; font-size: 8px; padding: 2px 3px; }
.src-res .res-badge { bottom: 16px; }
.render-cfg { margin: 10px 0 6px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--border); min-width: 0; }
/* Ausgegraut für Benutzer ohne höheren Plan (nur der Admin darf ändern) */
.render-cfg.locked { opacity: .45; pointer-events: none; filter: grayscale(1); }
.plan-lock { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: var(--surface-2); border: 1px dashed var(--border); }
.plan-lock a { color: var(--accent); }
.render-cfg input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 6px; }
/* QR-Code zum Verbinden/Anmelden (Desktop-App und Anmeldeseite am PC) */
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.qr-box img { width: 220px; height: 220px; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.qr-login { text-align: center; }
.qr-login img { width: 200px; height: 200px; border-radius: 10px; background: #fff; image-rendering: pixelated; margin-bottom: 6px; }
.qr-match { font-size: 44px; font-weight: 800; letter-spacing: 4px; color: var(--accent); line-height: 1.1; margin: 4px 0; }
/* Grundgröße aller Symbole (ohne sie füllen SVGs die ganze Breite, z. B. die Glocke bei "Mitteilungen");
   speziellere Regeln wie .btn svg / .tabbar a svg gehen vor */
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.card-title .num { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; /* iOS zoomt sonst */ color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); padding: 0; flex: none; }
input[type=color] { padding: 2px; width: 46px; height: 44px; }
input[type=range] { padding: 0; accent-color: var(--accent); background: none; border: 0; height: 32px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); padding: 9px 6px; border-radius: 8px; font: inherit;
  font-size: 13px; font-weight: 600; min-height: 38px; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 800; }
.btn.danger { color: var(--danger); }
.btn.ghost { background: none; border-color: transparent; }
.btn.small { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.iconbtn { width: 40px; height: 40px; padding: 0; min-height: 0; }

/* ---------- Clips (Erstellen) */
.clips { display: grid; gap: 8px; }
.clip { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; }
.clip.sel { border-color: var(--accent); }
.clip img, .thumbbox { width: 74px; height: 74px; object-fit: contain; background: #000; border-radius: 8px; display: block; }
.clip img { width: 60px; height: 60px; }
.clip .name { font-weight: 600; font-size: 14px; }
.clip .meta { font-size: 12px; color: var(--muted); }
.addrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.addrow .btn { flex-direction: column; gap: 3px; min-height: 64px; font-size: 12px; padding: 6px; }
.addrow .btn svg { width: 22px; height: 22px; }

.upload { padding: 9px 10px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border); margin-top: 8px; }
.bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }

/* ---------- Hook-Liste */
.versions .v { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 8px; align-items: start; padding: 10px 0;
  border-top: 1px solid var(--border); }
.versions .v:first-child { border-top: 0; }
.versions .v .tag { font-size: 11px; color: var(--muted); padding-top: 2px; min-width: 44px; }
.versions .v .txt { font-size: 15px; }
.versions .v .cat { font-size: 11px; color: var(--muted); }
.versions .v.cur .txt { color: var(--accent); }
.vgroup + .vgroup { margin-top: 14px; }
.vgroup-title { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- Vorschau */
.preview { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; background: #000;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.preview img, .preview video { width: 100%; height: 100%; object-fit: contain; display: block; }
.preview .overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45);
  color: var(--accent); font-weight: 700; text-align: center; padding: 20px; }
.preview .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }

/* ---------- Raster (Videos, Verlauf) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } .grid.reels { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  cursor: pointer; user-select: none; -webkit-user-select: none; }
.tile .img { aspect-ratio: 1; background: #000; }
.grid.reels .tile .img { aspect-ratio: 9 / 16; position: relative; }
/* Haken "alle in die Warteschlange" über RENDERN */
.auto-queue { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 12px; font-size: 14px; line-height: 1.35; }
.auto-queue input { flex: none; margin-top: 2px; }
/* KI-Hook-Chat (Erstellen -> Hooks) */
.ai-chat { margin: 0 0 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ai-log { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ai-msg { font-size: 13px; line-height: 1.4; padding: 6px 10px; border-radius: 10px; max-width: 88%; white-space: pre-wrap; }
.ai-msg.user { align-self: flex-end; background: var(--surface-3); }
.ai-msg.assistant { align-self: flex-start; color: var(--muted); }
.ai-in { display: flex; gap: 8px; align-items: flex-end; }
.ai-in textarea { flex: 1; min-width: 0; resize: none; font: inherit; }
.ai-in .btn { flex: none; min-width: 48px; min-height: 44px; }
/* Clip-Ranking (Videos) */
.clipfactor { position: absolute; bottom: 44px; right: 6px; font-size: 11px; font-weight: 800; padding: 2px 6px;
  border-radius: 8px; background: rgba(0,0,0,.75); }
.clipfactor.good { color: var(--ok); } .clipfactor.mid { color: var(--warn); } .clipfactor.bad { color: var(--danger); }
.clipfactor.big { position: static; font-size: 15px; padding: 4px 8px; background: var(--surface-3); flex: none; align-self: flex-start; }
.rank-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); cursor: pointer; }
.rank-row img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; background: #000; }
.rank-n { width: 20px; flex: none; font-weight: 800; color: var(--muted); padding-top: 2px; }
.rank-list { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.conf-wenig { color: var(--muted); } .conf-mittel { color: var(--warn); } .conf-gut { color: var(--ok); }
/* Verlauf: Statistik-Übersicht im Reel-Fenster */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.kpi-l { font-size: 11px; color: var(--muted); }
.kpi-v { font-size: 20px; font-weight: 800; line-height: 1.2; }
.kpi-d { font-size: 11px; font-weight: 600; }
.kpi-d.ok { color: var(--ok); } .kpi-d.danger { color: var(--danger); }
.kpi-r { font-size: 11px; }
.chart, .learn { margin-top: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.chart-t { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.chart-t .lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.lg.me, .bar2 .me { background: var(--accent); } .lg.av, .bar2 .av { background: var(--muted); opacity: .55; }
.bar2, .bar1 { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; font-size: 12px; margin: 5px 0; }
.bar1 { grid-template-columns: minmax(0, 120px) 1fr auto; }
.bar2 .bt { display: flex; flex-direction: column; gap: 2px; }
.bar2 .bt b, .bar1 .bt b { display: block; height: 7px; border-radius: 4px; min-width: 2px; }
.bar1 .bt b { height: 10px; background: var(--muted); opacity: .6; }
.bar1.mine .bt b { background: var(--accent); opacity: 1; }
.bar1.mine .bl { font-weight: 700; color: var(--text); }
.bar1 .bv { font-size: 11px; white-space: nowrap; }
.learn p { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.learn p:last-child { margin-bottom: 0; }
.manual-stats { margin-top: 16px; }
.manual-stats summary { cursor: pointer; color: var(--muted); }
/* Verlauf: Kennzahlen unten im Vorschaubild */
.tile .statrow { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 3px 8px;
  padding: 18px 7px 6px; font-size: 11px; font-weight: 600; color: #fff; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); text-shadow: 0 1px 2px #000; }
.tile .statrow span { white-space: nowrap; }
.tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile .cap { padding: 6px 7px; font-size: 11px; line-height: 1.3; }
.tile .cap b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.tile .tick { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(0,0,0,.35); display: grid; place-items: center; }
.tile.sel .tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile .missing { position: absolute; top: 6px; left: 6px; font-size: 10px; background: var(--danger); color: #fff; padding: 1px 6px; border-radius: 6px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.toolbar input { width: auto; flex: 1 1 100%; }
.toolbar select { width: auto; flex: 1 1 110px; min-width: 0; text-overflow: ellipsis; }
.toolbar .btn { flex: none; }
@media (max-width: 899px) { .hide-sm { display: none; } }
@media (min-width: 900px) { .toolbar input { flex-basis: 240px; } }
.btnrow { display: flex; gap: 8px; margin-bottom: 12px; }
.btnrow .btn { flex: 1; min-height: 40px; padding: 0 8px; font-size: 13px; }
@media (min-width: 900px) { .btnrow .btn { flex: 0 0 auto; padding: 0 14px; } }
.actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: 25;
  display: flex; gap: 8px; padding: 10px 14px; background: rgba(22,24,29,.97); border-top: 1px solid var(--border);
  overflow-x: auto; }
@media (min-width: 900px) { .actionbar { left: 220px; bottom: 0; } }

/* ---------- Listen (Hooks, Jobs) */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--border); cursor: pointer;
  font-size: 14px; line-height: 1.35; }
.item .small { font-size: 11px; margin-top: 2px; }
.item input[type=checkbox] { width: 20px; height: 20px; }
.item:first-child { border-top: 0; }
.item.off { opacity: .45; }
.item .id { font-size: 12px; color: var(--muted); min-width: 32px; }
.star { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--border); cursor: pointer; padding: 4px 2px; min-width: 32px; }
.star.on { color: var(--accent); }
.pill.danger { color: var(--danger); } .pill.warn { color: var(--warn); }
.paybanner { display: block; margin: 0; padding: 10px 16px; background: rgba(255, 201, 61, .14); color: var(--warn);
  border-bottom: 1px solid var(--border); text-decoration: none; font-size: 13px; }
.paybanner.locked { background: rgba(255, 77, 94, .14); color: var(--danger); }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }

/* ---------- Bottom-Sheet / Dialog */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: calc(100vh - var(--safe-top) - 30px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(18px + var(--safe-bottom)); animation: up .2s ease-out; }
.sheet.wide { max-width: 900px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; flex: 1; font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head .iconbtn { flex: none; }
/* Bugfix 10.10.2026: lange Titel/Inhalte machten das Fenster breiter als den Bildschirm (X nur per Wischen sichtbar) */
.sheet { overflow-x: hidden; box-sizing: border-box; overflow-wrap: anywhere; }
.sheet > * { max-width: 100%; }
@media (min-width: 900px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Toast */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px);
  z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--surface-3); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 11px 14px;
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5); font-size: 14px; animation: up .2s ease-out; }
.toast.err { border-left-color: var(--danger); }

/* ---------- Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: min(360px, 100%); text-align: center; }
.login .logo { font-size: 46px; margin-bottom: 6px; }
.login form { margin-top: 26px; display: grid; gap: 12px; }

/* ---------- Jobs */
.job { padding: 10px 0; border-top: 1px solid var(--border); }
.job:first-child { border-top: 0; }
.result { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.result:first-child { border-top: 0; }
.result img { width: 64px; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; background: #000; }
.spin { width: 16px; height: 16px; border: 2px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Profil "Mein Sound": Musikrichtungen als Auswahl-Knöpfe */
.genres { display: flex; flex-wrap: wrap; gap: 8px; }
.genres button { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); padding: 9px 14px;
  border-radius: 99px; font: inherit; font-size: 14px; cursor: pointer; }
.genres button.on { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--accent); }
.onboarding { min-height: 100dvh; display: flex; justify-content: center; padding: 24px 16px; }
.onboarding > .stack { width: 100%; max-width: 560px; }

/* QoL-Paket: Favorit/gepostet-Markierungen, Statistik, Caption, Instagram-Ansicht, Speicher, Einführung */
.tile .favmark { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; color: var(--accent); filter: drop-shadow(0 0 2px #000); }
.tile .favmark svg { width: 22px; height: 22px; fill: var(--accent); }
.tile .postedmark { position: absolute; bottom: 44px; left: 6px; font-size: 10px; background: rgba(0,0,0,.7); color: var(--ok);
  padding: 1px 6px; border-radius: 6px; }
.tile .statmark { position: absolute; top: 6px; left: 6px; font-size: 11px; background: rgba(0,0,0,.72); color: #fff;
  padding: 2px 7px; border-radius: 8px; display: flex; gap: 4px; align-items: center; }
.tile .statmark svg { width: 13px; height: 13px; }
.tile .statmark.win { color: var(--accent); }
.starbtn svg { fill: none; }
.starbtn.on { color: var(--accent); }
.starbtn.on svg { fill: var(--accent); }
.caption-box { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; line-height: 1.45; margin: 6px 0 8px; }
.caption-box textarea { min-height: 120px; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.statgrid label { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.statgrid input { padding: 8px; text-align: center; }
@media (max-width: 420px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }
.preview { position: relative; }
.igov { position: absolute; inset: 0; pointer-events: none; font-size: 9px; color: #fff; }
.igov > div { position: absolute; background: rgba(255, 60, 60, .28); outline: 1px dashed rgba(255,255,255,.6); }
.igov span { position: absolute; left: 4px; top: 2px; text-shadow: 0 0 3px #000; }
.storebanner { display: block; margin: 0 16px 10px; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  background: rgba(255, 193, 7, .14); border: 1px solid rgba(255, 193, 7, .45); color: var(--text); text-decoration: none; }
.storebanner.crit { background: rgba(255, 70, 70, .14); border-color: rgba(255, 70, 70, .5); }
.intro { text-align: center; }
.intro .big { font-size: 46px; line-height: 1; margin: 6px 0 10px; }
.intro .dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.intro .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.intro .dots i.on { background: var(--accent); }
.covergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.covergrid .tile .img { aspect-ratio: 9 / 16; }
.covergrid .tile img { object-fit: cover; }

.versions .v .iconbtn { margin: -6px -4px 0; }   /* Würfel + Stift dicht nebeneinander */

/* Clip für den Durchgang an-/abwählen (Häkchen auf dem Vorschaubild) */
.clip .pick { position: relative; display: block; cursor: pointer; }
.clip .pick input { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); z-index: 1; }
.clip.skipped, .vgroup.skipped { opacity: .45; }

/* ---------------- Editor (Phase 3): Vorschau oben, Zeitleiste unten */
.editor { display: flex; flex-direction: column; gap: 8px; }
.ed-head input { font-weight: 700; }
.ed-main { display: grid; gap: 10px; }
@media (min-width: 900px) { .ed-main { grid-template-columns: minmax(300px, 420px) 1fr; align-items: start; } }
.ed-preview .preview { max-width: 340px; touch-action: none; }
@media (max-width: 899px) {
  .ed-preview .preview { max-width: min(340px, 44vh * 0.5625); }   /* Platz für Zeitleiste (wie CapCut) */
  /* Werkzeuge: eine wischbare Reihe statt mehrerer umbrechender Zeilen */
  .editor .ed-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -14px; padding: 2px 14px; }
  .editor .ed-tools::-webkit-scrollbar { display: none; }
  .editor .ed-tools > * { flex: none; }
  .editor .ed-tools .spacer { display: none; }
}
.tbox { position: absolute; transform: translate(-50%, -50%); border: 1px dashed rgba(255,255,255,.35); border-radius: 6px;
  cursor: grab; touch-action: none; }
.tbox.sel { border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0,0,0,0); }
.tbox.warn { border-color: var(--warn); }
.ed-side textarea { margin-top: 6px; }
.ed-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ed-tools select { width: auto; padding: 6px 8px; }
.timeline { position: relative; overflow-x: auto; overflow-y: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; touch-action: pan-x; user-select: none; -webkit-user-select: none; }
.tl-inner { position: relative; --tl-clips: 34px; --tl-wave: 56px; --tl-texts: 72px; }
.tl-clips { position: relative; height: var(--tl-clips); border-bottom: 1px solid var(--border); }
.tl-label { display: none; }                       /* Spur-Beschriftung nur am PC (Desktop-Studio unten) */
@media (max-width: 899px) { .ed-empty { display: none; } }
/* Kennzahlen im leeren Eigenschaften-Feld (iPad + PC; vorher nur ab 1200 px gestaltet -> "Länge0:36.6") */
.ed-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.ed-facts > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 6px 8px; }
.ed-facts span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ed-facts b { font-size: 14px; }
.tseg { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; border: 1px solid var(--border); overflow: hidden;
  background: var(--surface-3) center / auto 100% repeat-x; cursor: pointer; }
.tseg span { position: absolute; left: 3px; bottom: 1px; font-size: 9px; background: rgba(0,0,0,.6); padding: 0 3px; border-radius: 3px;
  white-space: nowrap; pointer-events: none; }
.tseg.sel { border: 2px solid var(--accent); }
.tseg.sync::after { content: "♪"; position: absolute; right: 3px; top: 0; font-size: 10px; color: var(--accent); }
/* Neue Version verfügbar (Service Worker): Leiste erscheint, sobald der SW geänderte Dateien gefunden hat */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 76px);
  z-index: 70; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 700;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 24px rgba(0,0,0,.5); cursor: pointer; white-space: nowrap; }
@media (min-width: 900px) { .update-bar { bottom: 24px; left: calc(50% + 110px); } }

/* Kompakte Link-Liste (Mehr): kleines Symbol, Titel + Unterzeile, Pfeil */
.linklist { padding: 4px 0; }
.linklist a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: inherit; text-decoration: none; }
.linklist a + a { border-top: 1px solid var(--border); }
.linklist a:active { background: rgba(255,255,255,.04); }
.linklist .li-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px;
  background: rgba(198,255,0,.12); color: var(--accent); }
.linklist .li-icon svg { width: 18px; height: 18px; }
.linklist b { display: block; font-size: 15px; }
.linklist small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.linklist .chev { color: var(--muted); font-size: 22px; line-height: 1; }

/* Instagram-Ansicht (Symbole statt nur Flächen) */
.igsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* Editor: Stil pro Text */
.tx-style { border-top: 1px solid var(--border); margin-top: 10px; }
.tx-style .field { margin-top: 6px; }
.tx-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; align-items: center; }
.tx-tools button { min-width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-3);
  color: inherit; font-size: 14px; cursor: pointer; }
.tx-tools button.on { border-color: var(--accent); background: rgba(198,255,0,.18); color: var(--accent); }
.tx-tools .sep { width: 8px; }
.tx-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.tx-row label { display: flex; align-items: center; gap: 6px; }
.tx-row input[type=range] { flex: 1; min-width: 70px; }
.tx-row input[type=color] { width: 34px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; }

/* Download-Seite Desktop-App */
.dl-hero { text-align: center; padding: 28px 18px 22px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(198,255,0,.14), transparent 60%), var(--surface); }
.dl-logo { font-family: "Anton", "Bebas Neue", Impact, sans-serif; font-size: 52px; letter-spacing: .5px; line-height: 1; }
.dl-logo span { color: var(--accent); }
.dl-sub { color: var(--muted); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; margin-top: 6px; }
.dl-lead { max-width: 520px; margin: 14px auto 18px; line-height: 1.5; }
.dl-btn { min-height: 54px; padding: 0 28px; font-size: 17px; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.dl-meta { margin-top: 10px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.dl-grid > div { background: var(--surface-2, rgba(255,255,255,.03)); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.dl-grid b { display: block; margin-bottom: 3px; }
.dl-grid span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.dl-steps { margin: 0; padding-left: 20px; line-height: 1.55; }
.dl-steps li { margin-bottom: 8px; }
.dl-req { margin: 0 0 10px; padding-left: 18px; line-height: 1.6; }
.dl code { background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

/* Lang drücken = Clip abspielen: iPhone-Bildmenü unterdrücken */
.peekable, .peekable img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.peek-bg { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 16px; }
.peek { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.peek video { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; display: block; }
.tone-badge { position: absolute; left: 3px; top: 3px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700;
  border-radius: 6px; padding: 0 5px; pointer-events: none; }
.ton-row { display: flex; gap: 6px; align-items: center; min-width: 0; }
.ton-row select { width: auto; min-width: 0; flex: 1 1 auto; padding: 6px 8px; }
.audio-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.tl-ruler { position: relative; height: 18px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--border); }
.tl-ruler span { position: absolute; top: 2px; transform: translateX(2px); }
.tl-wave { position: relative; height: var(--tl-wave); }
.tl-wave canvas { display: block; }
.tl-bar { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.10); }
.tl-kf { position: absolute; top: 0; bottom: calc(-2px - var(--tl-texts)); width: 2px; margin-left: -1px; background: var(--accent); opacity: .8; }
.tl-kf::before { content: ""; position: absolute; top: -1px; left: -4px; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.tl-drop { position: absolute; top: 0; bottom: calc(-2px - var(--tl-texts)); width: 2px; background: var(--danger); }
.tl-drop b { position: absolute; top: 2px; left: 4px; font-size: 9px; color: var(--danger); }
.tl-texts { position: relative; height: var(--tl-texts); }
.tbar { position: absolute; height: 20px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 5px;
  font-size: 11px; line-height: 18px; overflow: hidden; white-space: nowrap; padding: 0 10px; cursor: grab; touch-action: none; }
.tbar.sel { border-color: var(--accent); background: rgba(198,255,0,.15); }
.tbar span { pointer-events: none; }
.tbar .h { position: absolute; top: 0; bottom: 0; width: 9px; background: rgba(255,255,255,.12); cursor: ew-resize; }
.tbar .h.l { left: 0; } .tbar .h.r { right: 0; }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.editor, .editor > *, .ed-main > * { min-width: 0; max-width: 100%; }   /* lange Zeitleiste darf die Seite nicht verbreitern */
.timeline { width: 100%; }
.ed-head { flex-wrap: nowrap; }
.ed-head input { flex: 1 1 auto; width: 0; }
.ed-head .btn.primary { flex: none; }
/* Handy: Reihenfolge Vorschau -> Werkzeuge -> Zeitleiste -> Text-Panel (Editierleiste direkt unter der Vorschau) */
@media (max-width: 899px) {
  .ed-main { display: contents; }
  .ed-head { order: 1; } .ed-preview { order: 2; } .ed-tools { order: 3; } .ton-row { order: 4; } .tl-transport { order: 4; } .timeline { order: 4; } .tl-hint { order: 5; }
  .ed-side { order: 6; }
}

/* =====================================================================================================================
   DESKTOP-STUDIO (Nutzerwunsch 06.10.2026: am PC mehr Sichtbarkeit, feinere Auflösung, Look wie Sony Vegas Pro –
   aber nutzerfreundlich). Gilt NUR ab 1200 px Breite – Handy/Tablet bleiben unverändert.
   ===================================================================================================================== */
@media (min-width: 1200px) {
  :root {
    --bg: #1a1b1e; --surface: #232428; --surface-2: #2b2d32; --surface-3: #34373e; --border: #393c44;
    --radius: 6px; --muted: #9298a3;
  }
  body { font-size: 14px; }
  /* Seitenleiste schmaler, volle Breite für den Inhalt */
  .app { grid-template-columns: 196px 1fr; }
  .tabbar a { padding: 9px 18px; font-size: 14px; }
  .tabbar .side-logo { padding: 0 18px 18px; }
  .main { max-width: none; padding: 14px 18px 24px; }
  .topbar { padding: 8px 18px; }
  .topbar .title { font-size: 15px; }

  /* feinere Bedienelemente (Maus statt Finger) */
  .btn { min-height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; }
  .btn.small { min-height: 28px; padding: 0 9px; font-size: 12px; border-radius: 5px; }
  .btn svg { width: 16px; height: 16px; }
  .iconbtn { width: 32px; height: 32px; padding: 0; }   /* sonst quetscht .btn-Innenabstand das Symbol */
  .iconbtn svg { flex-shrink: 0; }
  .iconbtn svg { width: 18px; height: 18px; }
  input, select, textarea { font-size: 14px; padding: 7px 10px; border-radius: 6px; }
  .seg { border-radius: 6px; padding: 2px; }
  .seg button { min-height: 28px; padding: 5px 6px; font-size: 12px; border-radius: 5px; }
  .check { min-height: 30px; }
  label.field { margin-bottom: 9px; }
  label.field > span { font-size: 12px; }

  /* Panels mit Kopfzeile (Vegas-Stil) */
  .card { padding: 10px 12px; border-radius: 6px; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }
  .card-title, .panel-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
    margin: -2px -12px 10px; padding: 0 12px 8px; border-bottom: 1px solid var(--border); }
  .card-title .num { width: 18px; height: 18px; font-size: 10px; }

  /* Filterleisten: kompakte Felder statt über die ganze Breite gezogen */
  .toolbar input { flex: 0 1 340px; }
  .toolbar select { flex: 0 1 200px; }
  .tabs, .seg.tabs { max-width: 420px; }

  /* Listen / Raster dichter */
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
  .item { padding: 7px 12px; }

  /* ---------- Erstellen: Videos+Optionen | Hooks | Vorschau ---------- */
  .desk-cols { grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
  .clip { grid-template-columns: 52px 1fr auto; padding: 5px; }
  .clip img { width: 52px; height: 52px; }
  .addrow .btn { min-height: 48px; }
  .versions .v .txt { font-size: 14px; }
  /* Würfel/Stift je Hook (Nutzerwunsch): größer und gut sichtbar, mit Fläche beim Drüberfahren */
  .versions .v .iconbtn { width: 38px; height: 38px; padding: 0; margin: -4px 0 0; color: var(--text); opacity: .85;
    border: 1px solid var(--border); border-radius: 8px; }
  .versions .v .iconbtn:hover { opacity: 1; background: var(--surface-3); }
  .versions .v .iconbtn svg { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 2.2; }
}
@media (min-width: 1400px) {
  .desk-cols { grid-template-columns: minmax(340px, 1fr) minmax(360px, 1.15fr) 380px;
    grid-template-areas: "videos hooks preview" "options hooks preview" "jobs render preview"; grid-template-rows: auto auto 1fr; }
  .desk-cols > .stack { display: contents; }
  .desk-cols > .stack > * { margin-top: 0 !important; }
  .o-videos { grid-area: videos; } .o-options { grid-area: options; } .o-versions { grid-area: hooks; align-self: start; }
  .o-render { grid-area: render; align-self: end; } .o-jobs { grid-area: jobs; }
  .desk-cols > .desk-sticky { grid-area: preview; }
}

/* ---------- Editor als Arbeitsfläche über den ganzen Bildschirm (wie ein Schnittprogramm) ---------- */
@media (min-width: 1200px) {
  .editor { display: grid; height: calc(100vh - 96px); min-height: 620px; gap: 8px;
    grid-template-columns: 330px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto;    /* Zeitleiste so hoch wie ihre Spuren, Rest = Vorschau */
    grid-template-areas: "head head" "side preview" "tools tools" "ton ton" "tr tr" "tl tl" "hint hint"; }
  .editor > .ed-main { display: contents; }
  .ed-head { grid-area: head; } .ed-tools { grid-area: tools; } .ton-row { grid-area: ton; } .tl-transport { grid-area: tr; }
  .editor > .timeline { grid-area: tl; } .tl-hint { grid-area: hint; margin-top: 0 !important; }
  .ed-side { grid-area: side; overflow-y: auto; align-self: stretch; }
  /* Vorschau füllt die Fläche (9:16, so groß wie die Höhe erlaubt) */
  .ed-preview { grid-area: preview; display: flex; flex-direction: column; align-items: center; min-height: 0;
    background: #101113; border: 1px solid var(--border); border-radius: 6px; padding: 10px; }
  .ed-preview .preview { flex: 1 1 0; min-height: 0; height: auto; width: auto; max-width: 100%; aspect-ratio: 9 / 16;
    border-radius: 4px; }
  .ed-preview > .row { flex: none; }
  .ed-tools { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px 6px; gap: 4px; }
  .ton-row { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; }
  /* Zeitleiste: hohe Spuren mit Beschriftung, füllt die untere Fläche */
  .editor > .timeline { overflow-y: hidden; background: #18191c; border-radius: 6px; }
  .editor .tl-inner { --tl-clips: 52px; --tl-wave: 96px; --tl-texts: 104px; --tbar-step: 30px; --tbar-top: 8px; }
  .editor .tl-ruler { height: 22px; font-size: 11px; background: #202125; }
  .editor .tl-clips, .editor .tl-wave { border-bottom: 1px solid var(--border); }
  .editor .tl-clips { background: rgba(80,140,255,.04); } .editor .tl-wave { background: rgba(198,255,0,.025); }
  .editor .tseg span { font-size: 11px; }
  .editor .tbar { height: 26px; line-height: 24px; font-size: 12px; }
  .tl-label { display: inline-block; position: sticky; left: 0; z-index: 6; top: 0; margin: 4px 0 0 0;
    padding: 1px 6px; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--muted);
    background: rgba(24,25,28,.85); border-radius: 0 4px 4px 0; pointer-events: none; }
}

/* Videos: Monats-Abschnitte (neueste oben) */
.month-head { display: flex; align-items: baseline; gap: 8px; margin: 16px 2px 8px; font-size: 14px; }
.month-head:first-child { margin-top: 4px; }
.month-head .muted { font-size: 12px; }


/* Hook / Texte als eigene Ebene über der Vorschau: flüssig verschieben, Einrast-Hilfslinien */
.hook-layer { position: absolute; z-index: 1; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none;
  object-fit: fill !important; outline: 1px dashed rgba(255,255,255,.0); border-radius: 4px; transition: outline-color .15s; }
.hook-layer:hover, .hook-layer.sel { outline-color: rgba(255,255,255,.55); }
.hook-layer:active { cursor: grabbing; }
.snap-guide { position: absolute; z-index: 3; pointer-events: none; background: var(--accent); opacity: .9; }
.snap-guide.h { left: 0; right: 0; height: 1px; }
.snap-guide.v { top: 0; bottom: 0; width: 1px; }

/* Editor: geführter Einstieg (Vorlage -> Clips -> Ton), Vorlagen, Sound-Ordner */
.wiz-steps { display: flex; gap: 6px; margin: -4px 0 14px; }
.wiz-steps button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.wiz-steps button span { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px;
  background: var(--border); color: var(--text); }
.wiz-steps button.on { color: var(--text); border-color: var(--accent); }
.wiz-steps button.on span, .wiz-steps button.done span { background: var(--accent); color: #000; }
.wiz-steps button:disabled { opacity: .45; cursor: default; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: inherit; }
.tpl.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tpl-ic { font-size: 20px; line-height: 1; color: var(--accent); }
.folder-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 13px; cursor: pointer; }
.fchip.on { border-color: var(--accent); color: var(--accent); }
.fchip:disabled { opacity: .4; cursor: default; }
.wiz-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); }
.wiz-summary div { display: flex; flex-direction: column; min-width: 0; }
.wiz-summary span { color: var(--muted); font-size: 11px; }
.audio-row { padding: 8px 0; border-top: 1px solid var(--border); }

/* Editor-Zeitleiste klarer (Nutzerwunsch 08.10.2026): Transport-Leiste, Phasen Build-up/Drop, Abspielkopf mit Zeit,
   Spur-Beschriftung auch am Handy, Legende */
.tl-transport { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tl-transport::-webkit-scrollbar { display: none; }
.tl-transport > * { flex: none; }
.tl-transport .drop-btn { color: var(--danger); font-weight: 800; letter-spacing: .05em; }
.tl-time { font-variant-numeric: tabular-nums; }
.tl-phase { position: absolute; top: 18px; bottom: 0; pointer-events: none; z-index: 0; }
.tl-phase.pre { background: rgba(120,150,255,.06); }
.tl-phase.post { background: rgba(255,70,70,.07); }
.tl-phase b { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: .14em;
  color: rgba(255,255,255,.28); font-weight: 800; white-space: nowrap; }
.tl-clips, .tl-wave, .tl-texts { z-index: 1; }
.tl-head { width: 2px; background: var(--accent) !important; z-index: 8; box-shadow: 0 0 6px rgba(198,255,0,.5); }
.tl-head b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 1px 5px; border-radius: 4px;
  background: var(--accent); color: #000; font-size: 10px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-add { position: absolute; top: 10px; z-index: 5; padding: 4px 10px; border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer;
  background: rgba(198,255,0,.12); color: var(--accent); border: 1px dashed var(--accent); }
.tbar .h { background: rgba(198,255,0,.25); }
.tl-legend { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.tl-legend i { display: inline-block; width: 2px; height: 11px; }
.lg-bar { background: rgba(255,255,255,.35); } .lg-kf { background: var(--accent); } .lg-drop { background: var(--danger); }
@media (max-width: 1199px) {
  .tl-inner { --tl-clips: 40px; --tl-wave: 52px; --tl-texts: 80px; --tbar-step: 25px; --tbar-top: 4px; }
  .tbar { height: 23px; line-height: 21px; }
  .tl-label { display: inline-block; position: sticky; left: 0; z-index: 6; top: 0; margin: 2px 0 0 0; padding: 0 5px;
    font-size: 8px; font-weight: 800; letter-spacing: .1em; color: var(--muted); background: rgba(22,24,29,.85);
    border-radius: 0 4px 4px 0; pointer-events: none; }
}

/* Zeitleiste in klar getrennten Reihen (Nutzerwunsch 08.10.2026): VIDEO | TON | TEXT – nichts ragt in die Nachbarreihe */
.tl-clips, .tl-wave, .tl-texts { overflow: clip; border-bottom: 2px solid var(--border) !important; }
.tl-clips { background: rgba(80,140,255,.07); }
.tl-wave { background: rgba(198,255,0,.04); }
.tl-texts { background: rgba(255,255,255,.025); border-bottom: 0 !important; }
.tl-wave canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.tl-kf { bottom: 0 !important; }                                   /* Keyframes nur in der Ton-Reihe */
.tl-drop { bottom: 0 !important; }
.tl-label { position: sticky; left: 0; z-index: 6; }
.tl-ruler span.minor { height: 6px; width: 1px; top: auto; bottom: 0; background: rgba(255,255,255,.25); }
.tl-ruler span { white-space: nowrap; }
.tl-zoom { display: inline-flex; gap: 2px; }
.tl-zoom .btn { min-width: 34px; font-weight: 800; }
@media (max-width: 1199px) {
  .tl-inner { --tl-clips: 46px; --tl-wave: 70px; --tl-texts: 98px; --tbar-step: 25px; --tbar-top: 18px; }
}
@media (min-width: 1200px) {
  .editor .tl-inner { --tbar-top: 20px; --tl-texts: 116px; }
}
/* Ton-Auswahl im Dialog: Vorschaubilder statt abgeschnittener Dateinamen */
.tone-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.tone-thumbs::-webkit-scrollbar { display: none; }
.tone-thumb { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; }
.tone-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; outline: 2px solid transparent; outline-offset: 1px; }
.tone-thumb.on img { outline: 3px solid var(--accent); }
.tone-thumb.on small { color: var(--accent); }
.tone-thumb small { font-size: 10px; }
/* Handy: Transport-Leiste zweizeilig, Zoom-Knöpfe immer sichtbar; Zeitleiste lässt Zwei-Finger-Gesten durch */
@media (max-width: 899px) {
  .tl-transport { flex-wrap: wrap; overflow: visible; row-gap: 4px; }
  .tl-transport .spacer { display: block; flex: 1 1 auto; }
}
.timeline { touch-action: pan-x; }

/* Keyframes greifbar, Ton-Griffe, Kontextmenü, Magnet (Nutzerwunsch 08.10.2026) */
.tl-kf { pointer-events: none; }
.tl-kf .kf-h { position: absolute; top: -4px; left: -11px; width: 22px; height: 22px; pointer-events: auto; cursor: ew-resize;
  touch-action: none; z-index: 4; }
.tl-kf.sel { background: #fff; width: 3px; }
.tl-kf.sel::before { background: #fff; transform: rotate(45deg) scale(1.4); }
.au-h { position: absolute; top: 0; bottom: 0; width: 14px; z-index: 5; cursor: ew-resize; touch-action: none;
  background: rgba(198,255,0,.85); border-radius: 3px; }
.au-h.l { margin-left: 0; }
.au-h.r { margin-left: -14px; }
.au-h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2px; height: 16px; margin: -8px 0 0 -1px;
  background: #000; border-radius: 1px; box-shadow: -3px 0 0 #000, 3px 0 0 #000; transform: scaleX(.6); }
.au-ghost { position: absolute; top: 0; bottom: 0; z-index: 3; pointer-events: none; background: rgba(0,0,0,.6);
  outline: 1px dashed rgba(255,255,255,.4); }
.au-ghost.add { background: rgba(198,255,0,.18); }
.timeline { -webkit-touch-callout: none; }
.ctx-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.25); }
.ctx-menu { position: fixed; transform: translate(-50%, 8px); min-width: 220px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); padding: 6px; display: flex; flex-direction: column; }
.ctx-menu button { text-align: left; padding: 11px 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px;
  border-radius: 8px; cursor: pointer; }
.ctx-menu button:hover, .ctx-menu button:active { background: var(--surface-3); }
.ctx-menu .ctx-head { font-size: 11px; color: var(--muted); padding: 4px 12px 6px; }
.tl-zoom .magon { color: var(--accent); background: rgba(198,255,0,.12); }
/* Ton-Spur schmaler (Nutzerwunsch) */
@media (max-width: 1199px) { .tl-inner { --tl-wave: 50px; } }
@media (min-width: 1200px) { .editor .tl-inner { --tl-wave: 64px; } }

/* Weitere Audio-Spuren + Stelle wählen */
.tl-sfx { position: relative; height: 34px; z-index: 1; overflow: clip; border-bottom: 2px solid var(--border); background: rgba(120,200,255,.05); }
.sfx-b { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: rgba(60,120,200,.35) center / 100% 100% no-repeat;
  border: 1px solid rgba(120,200,255,.5); color: #dfefff; font-size: 11px; line-height: 24px; overflow: hidden; white-space: nowrap;
  cursor: grab; touch-action: none; }
.sfx-b.sel { border: 2px solid var(--accent); }
.sfx-b span { pointer-events: none; padding: 0 12px; text-shadow: 0 0 3px #000; }
.sfx-b .h { position: absolute; top: 0; bottom: 0; width: 10px; background: rgba(255,255,255,.18); cursor: ew-resize; }
.sfx-b .h.l { left: 0; } .sfx-b .h.r { right: 0; }
.audio-pick { display: block; width: 100%; text-align: left; margin-top: 4px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: inherit; cursor: pointer; }
.ar-box { position: relative; height: 90px; background: #111316; border-radius: 8px; overflow: hidden; touch-action: none; cursor: pointer; }
.ar-box canvas { position: absolute; inset: 0; }
.ar-win { position: absolute; top: 0; bottom: 0; background: rgba(198,255,0,.18); border: 2px solid var(--accent); border-radius: 6px; cursor: grab; }
.ar-drop { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); }
@media (max-width: 899px) {
  .ton-row { flex-wrap: wrap; row-gap: 6px; }
  .ton-row select { flex: 1 1 55%; }
}
/* Auswahl-Fenster: Griffe links/rechts = Länge (groß genug für den Finger) */
.ar-h { position: absolute; top: 0; bottom: 0; width: 22px; background: var(--accent); cursor: ew-resize; touch-action: none; }
.ar-h.l { left: -2px; border-radius: 5px 0 0 5px; }
.ar-h.r { right: -2px; border-radius: 0 5px 5px 0; }
.ar-h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2px; height: 22px; margin: -11px 0 0 -1px; background: #000;
  border-radius: 1px; box-shadow: -4px 0 0 #000, 4px 0 0 #000; transform: scaleX(.7); }
.ar-win { min-width: 44px; }
/* Ton-Griffe: über den Keyframe-Rauten (die lagen am Anfang/Ende darüber und fingen das Ziehen ab), breiter für den Finger */
.au-h { z-index: 8 !important; width: 22px; }
.au-h.r { margin-left: -22px; }
.au-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; right: -10px; }   /* größere Trefferfläche */
.au-h.l::before { left: 0; }
.au-h.r::before { right: 0; }
/* Audio-Spur-Blöcke: Ränder breiter greifbar */
.sfx-b .h { width: 18px; background: rgba(255,255,255,.28); z-index: 2; }
.sfx-b .h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px; background: #fff;
  box-shadow: -3px 0 0 #fff, 3px 0 0 #fff; transform: scaleX(.6); opacity: .8; }
/* Löschen direkt an der Spur (ausgewählter Video-Abschnitt / Audio-Spur) + stummer Haupt-Ton */
.tl-del { position: absolute; top: 2px; right: 2px; z-index: 6; width: 22px; height: 22px; border-radius: 50%; display: grid;
  place-items: center; background: var(--danger); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; pointer-events: auto; }
.sfx-b .tl-del { top: 1px; right: 20px; width: 20px; height: 20px; }
.tl-wave.muted canvas { opacity: .18; filter: grayscale(1); }

/* Render-Übersicht (Anzeige oben antippen) */
.rc-chip { cursor: pointer; border: 1px solid var(--border); font: inherit; font-size: 12px; }
.rc-chip.done { background: rgba(198,255,0,.15); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.rc-chip.quiet { background: none; padding: 2px 8px; }
.rc-job { padding: 8px 0; border-bottom: 1px solid var(--border); }
.rc-done { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rc-done > img { width: 54px; height: 96px; object-fit: cover; border-radius: 6px; background: #000; cursor: pointer; flex: none; }
.rc-video { flex: 1 1 100%; width: 100%; max-height: 60vh; background: #000; border-radius: 10px; }
/* Textbalken: frei verschieben (lang gedrückt) sichtbar machen */
.tbar.free { border-style: dashed; border-color: #fff; background: rgba(255,255,255,.12); }
.tbar.free::after { content: "frei"; position: absolute; top: -14px; right: 2px; font-size: 9px; font-weight: 800; color: #fff;
  letter-spacing: .08em; text-transform: uppercase; }
/* iPhone/iPad (Finger): Textbalken höher, Griffe breit genug, "frei" sichtbar im Balken (Nutzerwunsch 09.10.2026) */
.tbar.free::after { top: 50%; transform: translateY(-50%); right: 14px; background: #fff; color: #000; padding: 1px 5px; border-radius: 4px; }
@media (pointer: coarse) {
  .tl-inner { --tl-texts: 108px; --tbar-step: 34px; --tbar-top: 18px; }
  .tbar { height: 30px; line-height: 28px; font-size: 12px; padding: 0 22px; }
  .tbar .h { width: 20px; }
  .tbar .h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px;
    background: rgba(255,255,255,.8); box-shadow: -3px 0 0 rgba(255,255,255,.8), 3px 0 0 rgba(255,255,255,.8); transform: scaleX(.6); }
  .tbar.sel .h { background: rgba(198,255,0,.45); }
  .timeline, .tbar { -webkit-touch-callout: none; -webkit-user-select: none; }
}
/* Handy: Griffe nur am AUSGEWÄHLTEN Text und außen an den Rändern – der ganze Balken bleibt zum Verschieben frei */
@media (pointer: coarse) {
  .tbar:not(.sel) .h { display: none; }
  .tbar { padding: 0 8px; }
  .tbar.sel { overflow: visible; z-index: 3; }
  .tbar.sel span { display: block; overflow: hidden; text-overflow: ellipsis; }
  .tbar.sel .h { width: 22px; border-radius: 6px; background: var(--accent); }
  .tbar.sel .h.l { left: -24px; } .tbar.sel .h.r { right: -24px; }
  .tbar.sel .h::after { background: #000; box-shadow: -3px 0 0 #000, 3px 0 0 #000; }
}
.upd-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
/* Instagram-Seite */
.ig-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.ig-row > img { width: 48px; height: 85px; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.ig-row a { color: var(--text); }
.ig-page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ig-page > .card { margin: 0; }
/* Posting-Plan: fertige Reels als Bilder (antippen = einreihen) */
.q-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.q-tile { position: relative; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: #000; aspect-ratio: 9 / 16; cursor: pointer; color: #fff; font: inherit; }
.q-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-plus { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #000; font-weight: 700; display: grid; place-items: center; font-size: 18px; border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.q-plus:disabled { opacity: .5; }
.q-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; font-size: 11px; line-height: 1.25;
  text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.btn.ok { border-color: var(--ok); color: var(--ok); }
/* Skip-Rate: ab 65 % rot, 50–65 % gelb, bis 50 % grün */
.skip-bad, input.skip-bad { color: var(--danger) !important; }
.skip-mid, input.skip-mid { color: var(--warn) !important; }
.skip-good, input.skip-good { color: var(--ok) !important; }
/* Posting-Plan: Ruhezeit-Felder nebeneinander – iOS gibt type=time eine feste Mindestbreite -> ragte über die Karte */
.ig-page .field { min-width: 0; }
.ig-page .field input, .ig-page .field select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.ig-page input[type="time"] { -webkit-appearance: none; appearance: none; min-width: 0; }
/* Posting-Plan: Uhrzeiten + Wochentage */
.timepill { font-size: 14px; padding: 6px 4px 6px 12px; display: inline-flex; align-items: center; gap: 2px; }
.timepill button { background: none; border: 0; color: var(--muted); font: inherit; padding: 0 6px; cursor: pointer; }
.daypick { display: flex; gap: 4px; margin-top: 8px; }
.daypick button { flex: 1; min-height: 36px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.daypick button.on { color: var(--text); border-color: var(--accent); background: var(--surface-3); }
.skip-in { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.skip-in input { width: 74px; padding: 4px 8px; }

/* Sprache wählen (components.LangPicker) */
.lang-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-pick .btn { flex: 0 0 auto; }
.lang-pick.compact { justify-content: center; }
.lang-pick.compact .btn { padding: 0 8px; min-height: 30px; font-size: 12px; }
.lang-flag { font-size: 15px; line-height: 1; }
