/* ==========================================================================
   Lyme Media – Design auf Basis des Firmenlogos (Limette #A1DA51 auf Dunkelgrün #11311E)
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #07130c;
  --bg-elev: #0a1a10;
  --surface: #0f2216;
  --surface-2: #142b1d;
  --surface-3: #1a3625;
  --border: #1b3324;
  --border-2: #284a35;
  --text: #ecf6e8;
  --muted: #9fb9a5;
  --faint: #83a28c;

  --logo-green: #11311e;
  --accent: #a1da51;
  --accent-hi: #b5e673;
  --accent-soft: rgba(161, 218, 81, .13);
  --on-accent: #0f2a17;
  --grad: linear-gradient(135deg, #b9ec6c 0%, #8ccb3c 100%);
  --font-brand: "Nunito", "Inter", -apple-system, sans-serif;
  --accent-ink: #b5e673;   /* Akzent als Text */
  --chart: #a1da51;        /* Akzent als Linie/Grafik */
  --glass: rgba(15, 34, 22, .93);
  --glass-soft: rgba(15, 34, 22, .78);
  --weekend: #0d1e13;
  --checker-a: #12291b; --checker-b: #0e2216;
  --scheme: dark;
  --shadow-strong: rgba(0, 0, 0, .8);

  --ok: #2dd4bf;   --ok-soft: rgba(45, 212, 191, .12);
  --bad: #fb7185;  --bad-soft: rgba(251, 113, 133, .12);
  --wait: #fbbf24; --wait-soft: rgba(251, 191, 36, .12);
  --info: #60a5fa; --info-soft: rgba(96, 165, 250, .12);

  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; font: 14px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; background: var(--bg); color: var(--text); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-ink); filter: brightness(1.15); }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 650; margin: 0; }
h1 { font-size: 27px; line-height: 1.2; font-family: var(--font-brand); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 15px; }
h3 { font-size: 15px; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
code { font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent-ink); }
[hidden] { display: none !important; }
::selection { background: rgba(161, 218, 81, .35); color: var(--text); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.i { flex-shrink: 0; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 20;
  background: var(--bg-elev); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.02em; padding: 2px 8px 22px; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); color: var(--on-accent); box-shadow: 0 6px 20px -6px rgba(161, 218, 81, .6);
}
.brand-mark svg { margin-left: 2px; }
.brand-mark.big { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 6px; }

nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--muted); font-weight: 500; transition: background .15s, color .15s;
}
nav a:hover { background: var(--surface-2); color: var(--text); }
nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
nav a.active .i { color: var(--accent-ink); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.me { display: flex; align-items: center; gap: 6px; padding: 10px 6px 0; border-top: 1px solid var(--border); }
.me-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; border-radius: var(--r-sm); color: var(--text); }
.me-info:hover { background: var(--surface-2); color: var(--text); }
.me-info > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.me-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 3px; }

.avatar {
  --s: 32px; width: var(--s); height: var(--s); flex-shrink: 0; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: calc(var(--s) * .38); font-weight: 650; letter-spacing: -.02em;
  color: hsl(var(--h) 90% 88%); background: linear-gradient(135deg, hsl(var(--h) 55% 38%), hsl(calc(var(--h) + 40) 55% 28%));
  vertical-align: middle;
}

/* ---------- Layout ---------- */
body.app main { margin-left: var(--sidebar-w); padding: 34px 44px 70px; max-width: calc(1480px + var(--sidebar-w)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .sub { color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-head .sub strong { color: var(--wait); font-weight: 600; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumb:hover { color: var(--text); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px; }
.panel.narrow { max-width: 620px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--faint); font-weight: 400; }
input:not([type=checkbox]):not([type=file]), textarea, select {
  font: inherit; color: var(--text); width: 100%;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 44px; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9bab' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input[type=file] { font: inherit; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--text); background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 36px; height: 20px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-2); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1; white-space: nowrap; cursor: pointer;
  padding: 10px 15px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); transition: background .15s, border-color .15s, transform .05s, filter .15s;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.btn.sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { padding: 13px 18px; font-size: 14.5px; }
.btn.full { width: 100%; }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 24px -12px rgba(161, 218, 81, .7); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.approve { background: var(--ok-soft); border-color: rgba(45, 212, 191, .35); color: var(--ok); }
.btn.approve:hover:not(:disabled) { background: rgba(45, 212, 191, .2); }
.btn.reject { background: var(--bad-soft); border-color: rgba(251, 113, 133, .35); color: var(--bad); }
.btn.reject:hover:not(:disabled) { background: rgba(251, 113, 133, .2); }
.btn.danger-ghost { background: transparent; border-color: rgba(251, 113, 133, .25); color: var(--bad); }
.btn.danger-ghost:hover { background: var(--bad-soft); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.done { color: var(--ok); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; }
.muted-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-top: 14px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: var(--r);
  background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--border-2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2); transition: opacity .3s, transform .3s;
}
.toast > span { flex: 1; padding-top: 1px; }
.toast > .i { margin-top: 2px; }
.toast.success > .i { color: var(--ok); }
.toast.error { border-color: rgba(251, 113, 133, .4); }
.toast.error > .i { color: var(--bad); }
.toast.out { opacity: 0; transform: translateX(20px); }
.toast-close { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 2px; display: grid; }
.toast-close:hover { color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* ---------- Status ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 9px; border-radius: 99px; border: 1px solid transparent; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-pill.lg { font-size: 13.5px; padding: 7px 14px 7px 12px; }
.status-pill.pending { color: var(--wait); background: var(--wait-soft); border-color: rgba(251, 191, 36, .25); }
.status-pill.approved { color: var(--ok); background: var(--ok-soft); border-color: rgba(45, 212, 191, .25); }
.status-pill.rejected { color: var(--bad); background: var(--bad-soft); border-color: rgba(251, 113, 133, .25); }
.status-pill.pending i { animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.state.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.state.on { color: var(--ok); }
.state.warn i { background: var(--wait); }
.state.warn { color: var(--wait); }

.role-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.role-chip.admin { color: var(--accent-ink); background: rgba(161, 218, 81, .16); }
.role-chip.editor { color: var(--info); background: var(--info-soft); }
.role-chip.reviewer { color: var(--ok); background: var(--ok-soft); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, background .15s;
}
a.stat:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--text); }
.stat.active { border-color: var(--accent); background: linear-gradient(180deg, rgba(161, 218, 81, .07), transparent), var(--surface); }
.stat-icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.stat.pending .stat-icon { color: var(--wait); background: var(--wait-soft); }
.stat.approved .stat-icon { color: var(--ok); background: var(--ok-soft); }
.stat.rejected .stat-icon { color: var(--bad); background: var(--bad-soft); }
.stat.published .stat-icon { color: var(--accent-ink); background: var(--accent-soft); }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

/* ---------- Suche ---------- */
.searchbar { position: relative; display: flex; align-items: center; margin-bottom: 22px; max-width: 520px; }
.searchbar > .i { position: absolute; left: 13px; color: var(--faint); pointer-events: none; }
.searchbar input { padding-left: 40px !important; background: var(--surface) !important; }
.searchbar .clear { position: absolute; right: 10px; color: var(--faint); display: grid; }

/* ---------- Video-Grid ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.vcard { display: block; color: var(--text); border-radius: var(--r-lg); }
.vcard:hover { color: var(--text); }
.vthumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #183424, #07130c); border: 1px solid var(--border);
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.vcard:hover .vthumb { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }
.vthumb video { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 30%, transparent 65%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.vthumb .status-pill { position: absolute; top: 10px; left: 10px; z-index: 2; backdrop-filter: blur(8px); background-color: rgba(10, 10, 12, .6); }
.duration { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-variant-numeric: tabular-nums; }
.vplatforms { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: flex; gap: 4px; }
.vplatforms .brand-i { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.vplay {
  position: absolute; inset: 0; margin: auto; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2); transition: opacity .2s, transform .2s;
}
.vplay svg { margin-left: 3px; }
.vcard:hover .vplay { opacity: 0; transform: scale(.85); }
.vbody { padding: 12px 4px 4px; }
.vbody h3 { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.vmeta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.empty-state { text-align: center; padding: 80px 20px; border: 1px dashed var(--border-2); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 6px; }
.empty-state .btn { margin-top: 10px; }

/* ---------- Upload ---------- */
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.dropzone {
  position: relative; min-height: 380px; border-radius: var(--r-lg); border: 1.5px dashed var(--border-2);
  background: radial-gradient(ellipse at 50% 0%, rgba(161, 218, 81, .07), transparent 70%), var(--surface);
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: radial-gradient(ellipse at 50% 0%, rgba(161, 218, 81, .14), transparent 70%), var(--surface); }
.dropzone > input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.has-file > input { pointer-events: none; }
.dropzone.has-file { border-style: solid; place-items: stretch; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; pointer-events: none; padding: 30px; }
.dz-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 10px; box-shadow: 0 12px 30px -12px rgba(161, 218, 81, .7); }
.dz-empty strong { font-size: 16px; }
.dz-formats { margin-top: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--faint); }
.dz-preview { display: flex; flex-direction: column; }
.dz-preview video { width: 100%; max-height: 460px; background: #000; border-radius: var(--r-lg) var(--r-lg) 0 0; display: block; }
.dz-file { display: flex; align-items: center; gap: 10px; padding: 14px 16px; position: relative; z-index: 2; }
.dz-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-change { margin-left: auto; font-weight: 600; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .2s; }

/* ---------- Detailseite ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.player { background: #000; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.player video { width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; object-fit: contain; display: block; background: #000; }
.player.portrait video { aspect-ratio: auto; height: 72vh; }
.file-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 4px 22px; color: var(--muted); font-size: 12.5px; }
.file-strip span { display: inline-flex; align-items: center; gap: 6px; }
.file-strip .btn { margin-left: auto; }
.replace { display: inline-block; }
.replace summary { list-style: none; }
.replace summary::-webkit-details-marker { display: none; }
.replace[open] summary { background: var(--surface-2); }
.replace-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }

.composer { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.composer-box { flex: 1; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer-box textarea { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.composer-actions { display: flex; justify-content: space-between; padding: 0 8px 8px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--border-2); }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.ev-icon { position: relative; z-index: 1; width: 27px; height: 27px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); border: 3px solid var(--surface); box-sizing: content-box; margin: -3px; }
.ev-approve .ev-icon { background: var(--ok); color: #052e1c; }
.ev-reject .ev-icon { background: var(--bad); color: #3b0713; }
.ev-upload .ev-icon, .ev-version .ev-icon { background: var(--accent); color: var(--on-accent); }
.ev-body { flex: 1; min-width: 0; padding-top: 3px; }
.ev-head { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; font-size: 13.5px; }
.ev-head .faint { font-size: 12px; }
.ev-text { margin-top: 8px; padding: 10px 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px var(--r) var(--r) var(--r); }
.ev-reject .ev-text { border-color: rgba(251, 113, 133, .3); background: var(--bad-soft); }
.ev-approve .ev-text { border-color: rgba(45, 212, 191, .3); background: var(--ok-soft); }
.tc { font: inherit; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-ink); background: var(--accent-soft); border: 0; border-radius: 5px; padding: 1px 6px; cursor: pointer; }
.tc:hover { background: rgba(161, 218, 81, .25); }

.col-side { position: sticky; top: 24px; }
.review-panel.pending { border-color: rgba(251, 191, 36, .35); background: linear-gradient(180deg, rgba(251, 191, 36, .05), transparent 40%), var(--surface); }
.review-result { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.review-result .i { margin-top: 2px; }
.review-result.approved { background: var(--ok-soft); color: var(--ok); }
.review-result.rejected { background: var(--bad-soft); color: var(--bad); }
.review-result strong { color: var(--text); }
.review-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-buttons .btn { padding: 12px; }
.notice { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 14px; }

.publish-list { display: flex; flex-direction: column; gap: 8px; }
.publish-row { padding: 12px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--border); }
.publish-top { display: flex; align-items: center; gap: 12px; }
.publish-name { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.publish-name .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-status { display: flex; align-items: flex-start; gap: 7px; flex-wrap: wrap; font-size: 12.5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.pub-status .i { margin-top: 2px; }
.pub-status.done { color: var(--ok); }
.pub-status.done a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.pub-status.failed { color: var(--bad); }
.pub-status.failed span { flex: 1; word-break: break-word; }
.pub-status.running, .pub-status.queued { color: var(--wait); }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.history li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hist-state { font-size: 12.5px; font-weight: 600; }
.hist-state.done { color: var(--ok); } .hist-state.failed { color: var(--bad); } .hist-state.running, .hist-state.queued { color: var(--wait); }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Team ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.role-card { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.role-card p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 170px; }
.table-panel { padding: 0; overflow: visible; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 20px; border-bottom: 1px solid var(--border); }
td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .015); }
tr:last-child td { border-bottom: 0; }
tr.inactive .user-cell, tr.inactive .role-chip { opacity: .45; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.you { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); margin-left: 4px; }
td.actions { text-align: right; width: 1%; }
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.popover {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 300px; text-align: left;
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .8); animation: toast-in .2s ease-out;
}

/* ---------- Plattformen ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.platform-card { display: flex; flex-direction: column; gap: 16px; margin: 0; position: relative; overflow: hidden; }
.platform-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; opacity: .14; pointer-events: none; }
.platform-card.youtube::before { background: radial-gradient(ellipse at 15% 0%, #ff0033, transparent 70%); }
.platform-card.instagram::before { background: radial-gradient(ellipse at 15% 0%, #d6249f, transparent 70%); }
.platform-card.tiktok::before { background: radial-gradient(ellipse at 15% 0%, #25f4ee, transparent 70%); }
.platform-head { display: flex; align-items: center; gap: 14px; }
.platform-head h2 { font-size: 18px; margin-bottom: 2px; }
.account-box { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--border); }
pre.env { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border); font: 12px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent-ink); overflow-x: auto; }
.redirect { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.copy-field { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.copy-field code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Konto ---------- */
.profile { display: flex; align-items: center; gap: 16px; }
.profile-name { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.panel h2 + form { margin-top: 14px; }

/* ---------- Login / Setup ---------- */
body.auth-page { min-height: 100vh; background:
  radial-gradient(ellipse 60% 50% at 50% -10%, rgba(161, 218, 81, .22), transparent),
  radial-gradient(ellipse 45% 45% at 85% 110%, rgba(31, 107, 58, .45), transparent), var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 34px;
  background: rgba(19, 19, 24, .75); backdrop-filter: blur(20px); border: 1px solid var(--border-2); border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.auth-card h1 { font-size: 24px; }
.auth-card > .muted { margin-top: -10px; margin-bottom: 6px; }
.auth-card .btn { margin-top: 6px; }

.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.error-code { font-size: 88px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.auth-page .error-page { min-height: 100vh; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .detail { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .upload-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  .sidebar { position: sticky; top: 0; width: auto; flex-direction: row; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { padding: 0 10px 0 0; }
  .brand > span:last-child, .nav-label, nav a span:not(.nav-count), .me-info > span:last-child { display: none; }
  nav { flex-direction: row; flex: 1; }
  .me { border: 0; padding: 0; }
  body.app main { padding: 22px 16px 50px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles, .field-row { grid-template-columns: 1fr; }
  .table-panel { overflow-x: auto; }
}

/* ==========================================================================
   Erweiterungen: Marken, Versionen, Marker, Texte, Kundenlinks, Kalender, Analytics …
   ========================================================================== */
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.plain { color: var(--text) !important; font-weight: 600; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.panel-head h2 { display: flex; align-items: center; gap: 8px; }
.panel-head.pad { padding: 18px 20px 0; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field.inline select { width: auto; }

.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat.client .stat-icon { color: var(--info); background: var(--info-soft); }
.stat-value small { font-size: 14px; font-weight: 500; }
.status-pill.client { color: var(--info); background: var(--info-soft); border-color: rgba(96, 165, 250, .25); }

.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .searchbar { margin: 0; flex: 1 1 320px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 500;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.brand-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.brand-chip i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.vbrand { margin-top: 6px; }

.version-pill { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.vthumb .version-pill { position: absolute; top: 12px; right: 10px; z-index: 2; background: rgba(0, 0, 0, .65); color: #fff; }
.version-pill.inline { font-weight: 600; }
.sched-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: var(--wait); }
.meta-ico { display: inline-flex; align-items: center; gap: 4px; }

/* Player-Marker */
.marker-track { position: relative; height: 22px; margin: 8px 14px 0; border-radius: 99px; background: linear-gradient(var(--border), var(--border)) center / 100% 2px no-repeat; }
.marker { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--bg);
  background: var(--accent); cursor: pointer; padding: 0; transition: transform .15s; }
.marker.guest { background: var(--info); }
.marker:hover { transform: scale(1.35); z-index: 3; }
.marker-tip { display: none; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px;
  padding: 8px 10px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text);
  font-size: 12px; text-align: left; white-space: normal; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.marker-tip b { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.marker:hover .marker-tip { display: block; }
.strip-actions { margin-left: auto; display: flex; gap: 6px; }
.file-strip .strip-actions .btn { margin: 0; }

.tc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 4px 2px 9px; border-radius: 6px; }
.tc-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.guest-badge { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: var(--info-soft); color: var(--info); }
.timeline li.old-version { opacity: .55; }
.timeline.compact li { padding-bottom: 12px; }

/* Texte pro Plattform */
.tabs-bar { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; margin: 14px 0 16px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted);
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px 10px; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.dot-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); }
.counter.over { color: var(--bad); }
.ai-status.err { color: var(--bad); }
textarea::placeholder, input::placeholder { opacity: .85; }

/* Vorschaubild & Untertitel */
.media-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.thumb-preview { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; text-align: center; }
.thumb-preview img { width: 100%; height: 100%; object-fit: contain; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.srt-editor summary { cursor: pointer; color: var(--muted); }
.subs-status { min-height: 22px; }

.version-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.version-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--border); }
.version-list li > div { flex: 1; min-width: 0; }
.version-list li.current { border-color: rgba(161, 218, 81, .45); }
.version-list li.current .version-pill { background: var(--accent); color: var(--on-accent); }

/* Abnahme-Stufen */
.stage-bar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; counter-reset: st; }
.stage-bar li { flex: 1; font-size: 11.5px; font-weight: 600; color: var(--faint); padding-top: 8px; border-top: 3px solid var(--surface-3); }
.stage-bar li.done { color: var(--ok); border-color: var(--ok); }
.stage-bar li.current { color: var(--wait); border-color: var(--wait); }
.stage-bar li.failed { color: var(--bad); border-color: var(--bad); }
.client.review-panel { border-color: rgba(96, 165, 250, .35); }
.approvers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.approve-meter { flex: 1 0 100%; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.approve-meter span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.avatar-stack { display: inline-flex; margin-left: auto; }
.avatar-stack .avatar { margin-left: -6px; border: 2px solid var(--surface); box-sizing: content-box; }

/* Kundenlinks */
.share-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.share-row:first-of-type { padding-top: 0; }
.share-info { display: flex; flex-direction: column; }
.share-new { margin-top: 12px; }
.share-new summary { list-style: none; display: inline-flex; }
.share-new summary::-webkit-details-marker { display: none; }
#freigabe .hint { margin-top: 12px; display: block; }

/* Veröffentlichen */
.publish-row { display: block; cursor: pointer; }
.publish-row.disabled { cursor: default; opacity: .65; }
.publish-row:has(.pcheck:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pcheck { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.warn-line { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--wait); margin-top: 8px; }
.warn-line .i { margin-top: 2px; }
.mini-stats { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.publish-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.seg label { position: relative; padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface-3); color: var(--text); }
.publish-actions .seg { align-self: flex-start; }
input[type=datetime-local] { color-scheme: var(--scheme); }
.pub-status .link { margin-left: auto; color: var(--bad); }

/* Versionsvergleich */
.compare-pick { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; color: var(--faint); }
.compare-pick .field { flex: 1; max-width: 320px; }
.compare { position: relative; --wipe: 50%; }
.compare.side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-pane { position: relative; background: #000; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.cmp-pane video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.cmp-label { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: rgba(0, 0, 0, .7); }
.compare.wipe { display: block; }
.compare.wipe .cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--wipe)); border-color: transparent; }
.compare.wipe .cmp-b .cmp-label { left: auto; right: 10px; }
.compare.wipe::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 2px; background: #fff; pointer-events: none; z-index: 3; }
.wipe-range { display: none; }
.compare.wipe .wipe-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.cmp-controls { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.seek { flex: 1; accent-color: var(--accent); min-width: 160px; }

/* Kunden-Seite */
body.client-page { min-height: 100vh; background: radial-gradient(ellipse 50% 40% at 50% -10%, rgba(161, 218, 81, .14), transparent) no-repeat, var(--bg); }
body.client-page main { padding: 28px 32px 60px; max-width: 1400px; margin: 0 auto; }
.client-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.client-head > div { flex: 1; min-width: 200px; }
.client-head h1 { font-size: 22px; }
.client-desc { margin-top: 18px; }

/* 2FA */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.qr-box { width: 200px; padding: 10px; background: #fff; border-radius: var(--r); margin: 6px 0; }
.qr-box svg { width: 100%; height: auto; display: block; }
.secret { font-size: 14px; letter-spacing: .08em; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; align-self: flex-start; }
.code-input { font-size: 20px !important; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.backup-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.backup-codes code { font-size: 15px; padding: 10px; text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; letter-spacing: .06em; }
.tag-2fa { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ok); margin-left: 8px; }

/* Marken */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.brand-card { margin: 0; border-top: 3px solid var(--c); }
.brand-card-head { display: flex; align-items: center; gap: 10px; }
.swatch { width: 34px !important; height: 34px; padding: 2px !important; border-radius: 9px !important; cursor: pointer; flex-shrink: 0; }
.brand-name-input { font-size: 16px !important; font-weight: 650; background: transparent !important; border-color: transparent !important; padding-left: 4px !important; }
.brand-name-input:hover, .brand-name-input:focus { border-color: var(--border-2) !important; }
.color-field { flex: 0 0 80px !important; }
.color-field input { height: 42px; padding: 3px !important; cursor: pointer; }

/* Einstellungen */
.settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-layout .panel { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.settings-layout .panel-head { margin-bottom: 0; }
.settings-layout hr { margin: 4px 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.status-list li { display: flex; gap: 12px; align-items: flex-start; }
.status-list li > div { display: flex; flex-direction: column; gap: 2px; }
.status-list .state { margin-top: 6px; }
.settings-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }

/* Protokoll */
.action-label { font-weight: 500; }
tr.audit-warn .action-label { color: var(--bad); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.searchbar + .panel { margin-top: 0; }

/* Kalender */
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav strong { min-width: 140px; text-align: center; font-size: 15px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--border); gap: 1px; }
.cal-dow { background: var(--bg-elev); padding: 10px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.cal-day { background: var(--surface); min-height: 112px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.weekend { background: var(--weekend); }
.cal-day.other { background: var(--bg); }
.cal-day.other .cal-num { color: var(--faint); opacity: .5; }
.cal-num { font-size: 12.5px; font-weight: 600; color: var(--muted); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--accent); color: var(--on-accent); }
.cal-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; color: var(--text);
  background: var(--surface-2); border-left: 3px solid var(--c); min-width: 0; }
.cal-item:hover { background: var(--surface-3); color: var(--text); }
.cal-item.scheduled { background: var(--wait-soft); }
.cal-item.failed { background: var(--bad-soft); }
.cal-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: 11px; color: var(--faint); padding-left: 6px; }
.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.upcoming li { display: flex; align-items: center; gap: 10px; }
.upcoming li > div { flex: 1; min-width: 0; }
.upcoming strong { font-size: 13px; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 4px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); }
.cal-legend .lg.scheduled { background: var(--wait-soft); border: 1px solid var(--wait); }
.cal-legend .lg.failed { background: var(--bad-soft); border: 1px solid var(--bad); }
.cal-legend .lg.done { border: 1px solid var(--border-2); }

/* Analytics */
.stats.kpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats.kpi .stat-icon { color: var(--accent-ink); background: var(--accent-soft); }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bar-table th, .bar-table td { padding: 10px 8px; }
.bar-table th:first-child, .bar-table td:first-child { padding-left: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { text-align: right; }
.bar-col { width: 45%; }
.hbar { position: relative; display: flex; align-items: center; gap: 8px; height: 22px; }
.hbar span { display: block; height: 14px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--accent); transition: filter .15s; }
.hbar:hover span { filter: brightness(1.25); }
.hbar em { font-style: normal; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.top-list li { display: flex; align-items: center; gap: 12px; }
.rank { width: 20px; text-align: center; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.top-thumb { width: 64px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--faint); flex-shrink: 0; }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.top-info strong { font-size: 13px; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nums { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.warn-dot { color: var(--wait); display: inline-flex; vertical-align: middle; }

@media (max-width: 1280px) {
  .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-layout, .analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .settings-layout, .two-col, .media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .stats.six, .stats.kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare.side { grid-template-columns: 1fr; }
  .cal-day { min-height: 70px; padding: 4px; }
  .cal-title, .cal-time { display: none; }
  .check-grid { grid-template-columns: 1fr; }
  body.client-page main { padding: 18px 16px 40px; }
}

/* ==========================================================================
   Performance-Seite, Diagramm & Rechte
   ========================================================================== */
.table-scroll { overflow-x: auto; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; vertical-align: middle; margin-left: 4px; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.stats.kpi .stat-value { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.chart-panel .panel-head { flex-wrap: wrap; gap: 10px; }
.chart-wrap { position: relative; }
.chart { width: 100%; min-height: 280px; }
.chart svg { display: block; outline: none; overflow: visible; }
.chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { stroke: var(--border-2); stroke-width: 1; }
.chart .tick { fill: var(--faint); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent-hi); opacity: .1; }
.chart .end-dot { fill: var(--accent-hi); stroke: var(--surface); stroke-width: 2; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart .hover-dot { fill: var(--accent-hi); stroke: var(--surface); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; display: flex; flex-direction: column; gap: 1px; padding: 7px 11px; border-radius: 8px;
  background: var(--surface-3); border: 1px solid var(--border-2); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8); white-space: nowrap; }
.chart-tip strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-tip span { font-size: 11.5px; color: var(--muted); }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; }
.chart-table .table-scroll { max-height: 300px; overflow-y: auto; margin-top: 8px; }

.bench-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bench-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bench-list li:last-child { border-bottom: 0; }
.bench-label { flex: 1; color: var(--muted); }
.bench-values { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }

.perm-matrix th.center, .perm-matrix td.center { text-align: center; width: 120px; }
.perm-matrix thead th { background: var(--bg-elev); }
.perm-matrix tbody + thead th { border-top: 1px solid var(--border); }
.perm-matrix input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.perm-matrix input:disabled { cursor: not-allowed; opacity: .55; }
.perm-group h2 { font-size: 14px; }
.perm-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.perm-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.perm-list li:last-child { border-bottom: 0; }
.perm-list .switch { align-items: flex-start; }
.perm-list .switch > span { margin-top: 2px; flex-shrink: 0; }
.perm-list input:disabled + span { opacity: .45; }
.person-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.person-list li { display: flex; align-items: center; gap: 10px; }
.person-list li > span { flex: 1; }
.tag-custom { display: inline-block; font-size: 11px; font-weight: 600; color: var(--info); margin-left: 8px; }
.mini-stats > span { display: inline-flex; align-items: center; gap: 3px; }
td.actions { white-space: nowrap; }
td.actions > .btn { margin-right: 4px; }

.row.nowrap { flex-wrap: nowrap; }


/* ==========================================================================
   Lyme-Media-Logo
   ========================================================================== */
.logo-mark { display: block; flex-shrink: 0; }
.brand { gap: 11px; padding: 0 6px 22px; }
.brand .logo-mark { width: 40px; height: 40px; }
.brand-word { font-family: var(--font-brand); font-weight: 800; font-size: 17px; line-height: .98; color: var(--accent-ink); letter-spacing: -.005em; }
.brand:hover .brand-word { color: var(--accent-ink); }
.sidebar { background: linear-gradient(180deg, #0c2014 0%, var(--bg-elev) 60%); }
nav a.active { box-shadow: inset 2px 0 0 var(--accent); background: rgba(161, 218, 81, .08); }
nav a.active .i { color: var(--accent-ink); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.auth-logo .logo-mark { width: 62px; height: 62px; }
.auth-logo .brand-word { font-size: 26px; }
.auth-card { background: var(--glass-soft); }
.client-head .logo-mark { width: 44px; height: 44px; }
.client-brand { display: flex; align-items: center; gap: 10px; padding-right: 18px; margin-right: 4px; border-right: 1px solid var(--border-2); }
.client-brand .brand-word { font-size: 15px; }
.error-code { font-family: var(--font-brand); }
.chart .line { stroke: var(--chart); }
.chart .area { fill: var(--chart); opacity: .12; }
.chart .end-dot, .chart .hover-dot { fill: var(--chart); }
.hbar span { background: var(--accent); }
.marker { background: var(--accent); }
@media (max-width: 820px) { .brand-word { display: none; } .brand .logo-mark { width: 32px; height: 32px; } }

/* ==========================================================================
   Dashboard, Aufgaben, Inbox, Assets & Lizenzen, Zeichnen, mobile App
   ========================================================================== */
.push-right { margin-left: auto; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-link { padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg-link:hover { color: var(--text); }
.seg-link.on { background: var(--surface-3); color: var(--text); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.mini-empty { display: flex; align-items: center; gap: 10px; color: var(--faint); padding: 18px 4px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Dashboard */
.stats.dash { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.spark-stat { position: relative; overflow: hidden; }
.sparkline { position: absolute; right: 12px; bottom: 10px; width: 110px; height: 30px; opacity: .9; }
.sparkline polyline { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; align-items: start; }
.dash-grid .panel { margin: 0; }
.mini-videos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-videos a { display: flex; gap: 12px; align-items: center; color: var(--text); padding: 6px; border-radius: 10px; }
.mini-videos a:hover { background: var(--surface-2); color: var(--text); }
.mini-videos a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mini-thumb { width: 64px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--faint); flex-shrink: 0; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-comments li { display: flex; gap: 10px; align-items: flex-start; }
.mini-comments li > div { min-width: 0; }
.license-alert { border-color: rgba(251, 191, 36, .35); }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.activity li { display: flex; align-items: center; gap: 10px; }
.activity li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Aufgaben */
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 24px 0 10px; font-family: var(--font); }
.task-group.overdue .group-title { color: var(--bad); }
.task-group.today .group-title { color: var(--accent-ink); }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.task.overdue { border-color: rgba(251, 113, 133, .35); }
.task.done { opacity: .55; }
.task.done .task-main strong { text-decoration: line-through; }
.task-list.compact .task { background: var(--bg-elev); padding: 10px 12px; }
.task-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-2); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--on-accent); padding: 0; margin-top: 1px; transition: border-color .15s, background .15s; }
.task-check:hover { border-color: var(--accent); background: var(--accent-soft); }
.task-check.done { background: var(--accent); border-color: var(--accent); }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.task-main a { color: var(--text); }
.task-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.task-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.task-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kind-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.kind-chip.edit { color: var(--info); background: var(--info-soft); }
.kind-chip.review { color: var(--wait); background: var(--wait-soft); }
.kind-chip.publish { color: var(--accent-ink); background: var(--accent-soft); }
.kind-chip.in-progress { color: var(--ok); background: var(--ok-soft); }
.due { display: inline-flex; align-items: center; gap: 4px; }
.due.overdue { color: var(--bad); font-weight: 600; }
.due.today { color: var(--accent-ink); font-weight: 600; }

/* Zuständigkeiten am Video */
.assign-form { display: flex; flex-direction: column; gap: 8px; }
.assign-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 128px; gap: 6px; align-items: center; }
.assign-row select, .assign-row input { padding: 7px 9px !important; font-size: 12.5px !important; }
.assign-row .done-note { grid-column: 2 / -1; font-size: 11.5px; color: var(--ok); display: inline-flex; gap: 4px; align-items: center; }
.assign-form .btn { margin-top: 4px; }
.assign-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.assign-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.assign-list .kind-chip { width: 70px; text-align: center; }

/* Inbox */
.inbox-list { display: flex; flex-direction: column; gap: 10px; }
.inbox-item { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.inbox-item.new { border-color: rgba(161, 218, 81, .35); box-shadow: inset 3px 0 0 var(--accent); }
.inbox-item.done { opacity: .7; }
.inbox-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.inbox-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inbox-text { margin: 0; font-size: 14.5px; }
.new-pill, .own-pill { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: var(--on-accent); }
.own-pill { background: var(--accent-soft); color: var(--accent-ink); }
.inbox-reply { margin-left: 14px; padding: 8px 12px; border-left: 2px solid var(--border-2); }
.inbox-reply.own { border-color: var(--accent); }
.inbox-reply p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.inbox-actions { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.inbox-actions form.push-right { display: flex; gap: 6px; }
.reply-box { flex: 1 1 100%; order: 10; }
.reply-box[open] { order: 10; }
.reply-box summary { list-style: none; display: inline-flex; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box form { margin-top: 10px; }
.inbox-actions > .reply-box:not([open]) { flex: 0 0 auto; order: 0; }

/* Assets & Lizenzen */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.asset-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
.asset-card:hover { border-color: var(--border-2); transform: translateY(-2px); color: var(--text); }
.asset-preview { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background:
  repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 50% / 18px 18px; color: var(--faint); }
.asset-preview img, .asset-preview video { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.asset-preview video { padding: 0; object-fit: cover; }
.asset-preview.music, .asset-preview.document, .asset-preview.other { background: radial-gradient(circle at 50% 40%, #183424, #0b1a11); }
.font-sample { font-size: 54px; color: var(--text); line-height: 1; }
.audio-icon { color: var(--accent-ink); }
.play-audio { position: absolute; bottom: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 12px; cursor: pointer; }
.asset-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.asset-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lic-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.lic-badge.ok { color: var(--ok); background: var(--ok-soft); }
.lic-badge.expiring { color: var(--wait); background: var(--wait-soft); }
.lic-badge.expired { color: var(--bad); background: var(--bad-soft); }
.lic-badge.none { color: var(--muted); background: var(--surface-3); }
.lic-badge.float { position: absolute; top: 8px; left: 8px; backdrop-filter: blur(6px); }
.small-dz { min-height: 150px; }
.asset-big { padding: 0; overflow: hidden; display: grid; place-items: center; min-height: 320px;
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 50% / 22px 22px; }
.asset-big img { max-width: 100%; max-height: 70vh; object-fit: contain; padding: 20px; }
.asset-big video { width: 100%; max-height: 70vh; background: #000; }
.audio-big { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px; color: var(--accent-ink); width: 100%; }
.audio-big audio { width: min(520px, 100%); }
.font-big { display: flex; flex-direction: column; gap: 14px; padding: 36px; width: 100%; color: var(--text); font-size: 22px; }
.font-big .xl { font-size: 72px; line-height: 1; }
.font-big .sm { font-size: 16px; color: var(--muted); }
.license-panel.expired, .license-panel.none { border-color: rgba(251, 113, 133, .3); }
.license-panel.expiring { border-color: rgba(251, 191, 36, .35); }
.notice.danger { background: var(--bad-soft); color: var(--bad); }
.platform-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--border-2); font-size: 12px; color: var(--muted); cursor: pointer; }
.pchip input { accent-color: var(--accent); }
.pchip:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.lic-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: 13px; }
.lic-facts dt { color: var(--faint); }
.lic-facts dd { margin: 0; }
.linked-assets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.linked-assets li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--border); }
.la-icon { color: var(--accent-ink); display: grid; }
.warn-line.block { color: var(--bad); font-weight: 600; }

/* Zeichnen im Standbild */
.player { position: relative; }
.annotate-layer { position: absolute; inset: 0; z-index: 10; background: rgba(0, 0, 0, .25); }
.annotate-layer canvas { position: absolute; cursor: crosshair; touch-action: none; }
.annotate-bar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border-2); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 20px); }
.annotate-bar button { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
.annotate-bar button:hover { background: var(--surface-3); color: var(--text); }
.annotate-bar button.on { background: var(--accent-soft); color: var(--accent-ink); }
.annotate-bar .swatch::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.annotate-bar .swatch.on { background: var(--surface-3); }
.annotate-bar .swatch.on::after { box-shadow: 0 0 0 2px var(--text); }
.annotate-bar .sep { width: 1px; height: 22px; background: var(--border-2); margin: 0 4px; }
.annotate-bar .txt { padding: 0 10px; }
.annotate-bar .txt.primary { background: var(--accent); color: var(--on-accent); }
.annotating video { pointer-events: none; }
.annotation-preview { position: relative; margin: 0 8px 8px; width: 160px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-2); }
.annotation-preview img { display: block; width: 100%; }
.annotation-preview .icon-btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: rgba(0, 0, 0, .65); color: #fff; }
.client-page .annotation-preview { margin: 0; }
.annotation-thumb { display: block; margin-top: 8px; padding: 0; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #000; max-width: 280px; }
.annotation-thumb img { display: block; width: 100%; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(3, 10, 6, .85); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 94vw; max-height: 92vh; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .6); color: #fff; }

/* Mobile App: untere Navigation + Menü als Schublade */
.bottom-nav { display: none; }
.dot-badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--on-accent);
  font-size: 10px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
@media (max-width: 820px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; flex-direction: column; align-items: stretch; padding: calc(16px + env(safe-area-inset-top)) 14px 14px;
    border-right: 1px solid var(--border); border-bottom: 0; transform: translateX(-105%); transition: transform .25s ease; z-index: 60; overflow-y: auto; }
  body.nav-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 50; }
  .sidebar .brand-word, .sidebar nav a span:not(.nav-count) { display: inline; }
  .sidebar .nav-label { display: block; }
  .sidebar .me-info > span:last-child { display: flex; }
  .sidebar .brand .logo-mark { width: 40px; height: 40px; }
  .sidebar .brand { padding: 0 6px 18px; }
  .sidebar nav { flex-direction: column; flex: 1; }
  .sidebar .me { border-top: 1px solid var(--border); padding-top: 10px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--glass); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .bottom-nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--faint); border-radius: 10px; }
  .bottom-nav a.active { color: var(--accent-ink); }
  body.app main { padding: calc(18px + env(safe-area-inset-top)) 14px calc(90px + env(safe-area-inset-bottom)); }
  .toasts { top: calc(12px + env(safe-area-inset-top)); right: 12px; left: 12px; max-width: none; }
  .field-row.three { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .assign-row { grid-template-columns: 70px minmax(0, 1fr); }
  .assign-row input[type=date] { grid-column: 2; }
  .task { flex-wrap: wrap; }
  .task-side { width: 100%; padding-left: 34px; }
  .inbox-video { display: none; }
  .page-head h1 { font-size: 23px; }
  .annotate-bar { top: auto; bottom: 8px; }
}
@media (max-width: 820px) {
  nav.bottom-nav a span:not(.nav-count) { display: block; }
  .sidebar .brand > .brand-word { display: inline; }
}

/* ==========================================================================
   Eigene Rollen
   ========================================================================== */
.role-chip { color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, #6b8a74) 16%, transparent); }
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.role-card-x { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--c); display: flex; flex-direction: column; gap: 6px; }
.role-card-head { display: flex; align-items: center; gap: 8px; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lock-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px; }
.role-th { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text); }
.role-th i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.role-col { min-width: 110px; }
.link.tiny { display: block; margin: 4px auto 0; font-size: 10.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--faint); }
.link.tiny:hover { color: var(--accent-ink); }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; align-items: center; padding: 10px 14px; border-radius: var(--r-lg); background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border-2); margin-top: 12px; }
.roles .role-card p { margin-top: 6px; }
.add-role { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); border-style: dashed; font-weight: 600; }
.add-role:hover { color: var(--accent-ink); border-color: var(--accent); }
.roles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ==========================================================================
   Einladungen, Marken-Rollen, Archiv, Zielgruppe, Posting-Zeiten
   ========================================================================== */
.text-bad { color: var(--bad); }
.invite-link-box { border-color: rgba(161, 218, 81, .4); }
.invite-link-box .copy-field { margin-top: 10px; }
.invite-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.invite-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--border); }
.invite-list li.expired { opacity: .6; }
.invite-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.brand-role-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.brand-role-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.brand-role-row .brand-chip { color: var(--text); font-size: 13px; }
.brand-role-form > div:last-child { margin-top: 6px; }
.status-pill.archived { color: var(--muted); background: var(--surface-3); border-color: var(--border-2); }
.archive-chip { margin-left: auto; }
.side-actions { display: flex; flex-direction: column; gap: 8px; }
.best-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); }
.best-hint strong { color: var(--text); }
.best-hint .i { color: var(--accent-ink); }
.report-form { display: flex; gap: 8px; align-items: center; }
.report-form input[type=month] { width: auto; color-scheme: var(--scheme); padding: 8px 10px; }

/* Zielgruppe */
.aud-card { padding: 14px 0; border-bottom: 1px solid var(--border); }
.aud-card:last-child { border-bottom: 0; padding-bottom: 0; }
.aud-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.aud-grid h4 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.ibars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ibars li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 54px; align-items: center; gap: 8px; font-size: 12.5px; }
.ibar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ibar-track { height: 8px; border-radius: 0 4px 4px 0; background: transparent; }
.ibar-fill { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--accent); }
.ibars li:hover .ibar-fill { filter: brightness(1.2); }
.ibar-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Heatmap */
.best-reco { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.best-reco .i { color: var(--accent-ink); }
.heat-wrap { overflow-x: auto; }
.heatmap { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 560px; }
.heatmap th { font-size: 11px; font-weight: 600; color: var(--faint); padding: 4px; text-align: center; border: 0; text-transform: none; letter-spacing: 0; }
.heatmap tbody th { text-align: left; width: 34px; }
.heatmap td { height: 34px; border-radius: 6px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text); padding: 0 2px;
  background: rgba(161, 218, 81, var(--lv)); border: 0; outline-offset: 1px; }
.heatmap td.strong { color: var(--on-accent); font-weight: 600; }
.heatmap td.empty { background: var(--surface-2); }
.heatmap td.best { outline: 2px solid var(--text); }
.heatmap td:hover, .heatmap td:focus { outline: 2px solid var(--accent-hi); }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.heat-legend > i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(161, 218, 81, .08), rgba(161, 218, 81, 1)); }
.best-key { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; }
.best-key b { width: 12px; height: 12px; border-radius: 3px; outline: 2px solid var(--text); background: var(--accent); }
@media (max-width: 1100px) { .aud-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .brand-role-row { grid-template-columns: 1fr; } .report-form { width: 100%; } }

.fixed-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--border-2); color: var(--text); font-weight: 600; }
.fixed-value .hint { font-weight: 400; }

/* ==========================================================================
   Hell-Modus (data-theme="light" auf <html>, gesetzt per Umschalter oder Systemeinstellung)
   Sidebar und Player bleiben dunkel – das Logo wirkt auf Dunkelgrün, Videos auf Schwarz.
   ========================================================================== */
:root[data-theme="light"] {
  color-scheme: light;
  --scheme: light;
  --bg: #f4f7f1;
  --bg-elev: #f9fbf7;
  --surface: #ffffff;
  --surface-2: #f0f4ec;
  --surface-3: #e5ece0;
  --border: #e0e8db;
  --border-2: #cfdac8;
  --text: #13261a;
  --muted: #4b6152;
  --faint: #5e7466;
  --accent-soft: rgba(110, 160, 40, .14);
  --accent-ink: #4a7a10;
  --chart: #5b8f14;
  --ok: #0f766e;   --ok-soft: rgba(15, 118, 110, .1);
  --bad: #be123c;  --bad-soft: rgba(190, 18, 60, .08);
  --wait: #a35b04; --wait-soft: rgba(217, 119, 6, .12);
  --info: #1d4ed8; --info-soft: rgba(29, 78, 216, .09);
  --glass: rgba(255, 255, 255, .94);
  --glass-soft: rgba(255, 255, 255, .88);
  --weekend: #eef3ea;
  --checker-a: #eef2ea; --checker-b: #f8faf6;
  --shadow-strong: rgba(19, 38, 26, .18);
}
/* Sidebar bleibt im dunklen Markendesign */
:root[data-theme="light"] .sidebar {
  color-scheme: dark;
  --bg-elev: #0a1a10; --surface-2: #142b1d; --surface-3: #1a3625; --border: #1b3324; --border-2: #284a35;
  --text: #ecf6e8; --muted: #9fb9a5; --faint: #83a28c; --accent-ink: #b5e673; --accent-soft: rgba(161, 218, 81, .13);
}
:root[data-theme="light"] body.app main { background: transparent; }
:root[data-theme="light"] .panel, :root[data-theme="light"] .stat, :root[data-theme="light"] .task,
:root[data-theme="light"] .inbox-item, :root[data-theme="light"] .asset-card, :root[data-theme="light"] .role-card-x,
:root[data-theme="light"] .vthumb { box-shadow: 0 1px 2px rgba(19, 38, 26, .05), 0 2px 8px -2px rgba(19, 38, 26, .06); }
:root[data-theme="light"] .role-chip, :root[data-theme="light"] .brand-chip, :root[data-theme="light"] .chip i { --mix: 62%; }
:root[data-theme="light"] .role-chip { color: color-mix(in srgb, var(--c, #6b8a74) var(--mix), #0b1a10); background: color-mix(in srgb, var(--c, #6b8a74) 18%, #fff); }
:root[data-theme="light"] .status-pill { background-color: var(--surface); }
:root[data-theme="light"] .vthumb .status-pill { background-color: rgba(255, 255, 255, .9); }
:root[data-theme="light"] .btn.primary { box-shadow: 0 6px 18px -10px rgba(74, 122, 16, .7); }
:root[data-theme="light"] .toast, :root[data-theme="light"] .popover, :root[data-theme="light"] .chart-tip,
:root[data-theme="light"] .marker-tip { box-shadow: 0 14px 34px -12px rgba(19, 38, 26, .28); }
:root[data-theme="light"] body.auth-page, :root[data-theme="light"] body.client-page {
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(161, 218, 81, .35), transparent) no-repeat,
              radial-gradient(ellipse 45% 45% at 85% 110%, rgba(17, 49, 30, .12), transparent) no-repeat, var(--bg); }
:root[data-theme="light"] .heatmap td.strong { color: #0f2a17; }
:root[data-theme="light"] .cal-item.scheduled { background: var(--wait-soft); }
:root[data-theme="light"] .bottom-nav { border-top-color: var(--border); }
:root[data-theme="light"] .bottom-nav a.active { color: var(--accent-ink); }
:root[data-theme="light"] .ev-icon { border-color: var(--surface); }
:root[data-theme="light"] .dropzone { background: radial-gradient(ellipse at 50% 0%, rgba(161, 218, 81, .18), transparent 70%), var(--surface); }
:root[data-theme="light"] .sticky-save { box-shadow: 0 10px 30px -14px rgba(19, 38, 26, .3); }

/* Umschalter Hell/Dunkel */
.theme-toggle { width: 32px; height: 32px; }
.theme-toggle .i-sun, .theme-toggle .i-moon, .theme-toggle .i-auto { display: none; }
:root[data-theme-pref="light"] .theme-toggle .i-sun, :root[data-theme-pref="dark"] .theme-toggle .i-moon,
:root:not([data-theme-pref]) .theme-toggle .i-auto, :root[data-theme-pref="auto"] .theme-toggle .i-auto { display: block; }

/* ==========================================================================
   Bedienung: einklappbare Seitenleiste, Ladezustände, Rückgängig, Platzhalter,
   Video-Tabs & Mini-Player, Listen-/Board-Ansicht
   ========================================================================== */
.theme-switching, .theme-switching * { transition: background-color .3s, border-color .3s, color .3s !important; }
.sidebar { transition: width .2s ease; overflow-x: hidden; }
body.app main { transition: margin-left .2s ease; }
.sidebar nav { overflow-y: auto; overflow-x: hidden; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.sidebar nav a { position: relative; white-space: nowrap; }
.me { flex-wrap: wrap; }
.me-actions { display: flex; align-items: center; gap: 2px; }
.me-actions .icon-btn { width: 32px; height: 32px; }
.collapse-toggle .i { transition: transform .2s; }

/* Verwaltung als aufklappbare Gruppe */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: var(--r-sm); user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: var(--muted); }
.nav-group > summary .i { transition: transform .2s; }
.nav-group[open] > summary .i { transform: rotate(90deg); }

/* Eingeklappt: nur Icons (nur Desktop) */
@media (min-width: 821px) {
  html.sidebar-collapsed { --sidebar-w: 76px; }
  html.sidebar-collapsed .sidebar { padding: 18px 12px 12px; }
  html.sidebar-collapsed .brand { justify-content: center; padding: 0 0 18px; }
  html.sidebar-collapsed .brand-word,
  html.sidebar-collapsed .sidebar nav a > span:not(.nav-count),
  html.sidebar-collapsed .sidebar .nav-label:not(summary),
  html.sidebar-collapsed .me-info > span:last-child { display: none; }
  html.sidebar-collapsed .sidebar nav a { justify-content: center; padding: 10px 0; }
  html.sidebar-collapsed .sidebar nav a.active { box-shadow: inset 0 0 0 1px var(--border-2); }
  html.sidebar-collapsed .nav-count { position: absolute; top: 2px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
  html.sidebar-collapsed .nav-group > summary { justify-content: center; padding: 10px 0 6px; font-size: 0; }
  html.sidebar-collapsed .nav-group > summary::before { content: ""; width: 22px; height: 1px; background: var(--border-2); }
  html.sidebar-collapsed .nav-group > summary .i { display: none; }
  html.sidebar-collapsed .nav-group:not([open]) > a { display: none; }
  html.sidebar-collapsed .me { flex-direction: column; padding: 10px 0 0; }
  html.sidebar-collapsed .me-info { justify-content: center; flex: none; }
  html.sidebar-collapsed .me-actions { flex-direction: column; }
  html.sidebar-collapsed .collapse-toggle .i { transform: rotate(180deg); }
  /* Beschriftung als Tooltip beim Überfahren */
  html.sidebar-collapsed .sidebar nav a:hover::after {
    content: attr(title); position: fixed; left: 70px; margin-top: 0; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
    background: var(--glass); border: 1px solid var(--border-2); color: var(--text); font-size: 12.5px; font-weight: 600; z-index: 80; pointer-events: none;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
  }
}
@media (max-width: 820px) { .collapse-toggle { display: none; } }

/* Ladebalken & Buttons im Ladezustand */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, var(--accent), #d4f59c); box-shadow: 0 0 12px rgba(161, 218, 81, .7); border-radius: 0 3px 3px 0; }
.nav-progress.run { opacity: 1; animation: nav-progress 8s cubic-bezier(.08, .7, .2, 1) forwards; }
@keyframes nav-progress { 0% { width: 0; } 10% { width: 35%; } 40% { width: 70%; } 100% { width: 94%; } }
.btn.is-busy, button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy > *, button.is-busy > * { visibility: hidden; }
.btn.is-busy::after, button.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--muted) var(--muted) var(--muted) transparent; animation: spin .7s linear infinite; }
.btn.primary.is-busy::after, .btn.approve.is-busy::after { border-color: var(--on-accent) var(--on-accent) var(--on-accent) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 7%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Toast mit „Rückgängig“ */
.toast.has-undo { position: relative; overflow: hidden; align-items: center; }
.toast.has-undo > .i { margin-top: 0; }
.undo-form { display: contents; }
.undo-btn { background: var(--accent-soft); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.undo-btn:hover { background: var(--accent); color: var(--on-accent); }
.undo-timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; animation: undo-timer 8s linear forwards; }
.toast.has-undo:hover .undo-timer { animation-play-state: paused; }
@keyframes undo-timer { to { transform: scaleX(0); } }

/* Platzhalter in Markenfarbe */
.ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--pc) 55%, transparent), transparent 55%),
    radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--pc) 38%, #0b1d12), #081309); }
.ph::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 12px); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.ph-glyph { position: relative; font-family: var(--font-brand); font-weight: 800; font-size: clamp(22px, 30cqw, 56px); letter-spacing: -.02em; line-height: 1;
  color: color-mix(in srgb, var(--pc) 45%, #fff); text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.ph-play { display: none; }
.vthumb, .mini-thumb, .top-thumb, .mthumb, .thumb-preview { container-type: inline-size; position: relative; }
.vthumb video { position: relative; z-index: 1; opacity: 0; transition: opacity .3s; }
.vthumb.loaded video { opacity: 1; }
.vthumb.loaded .ph { opacity: 0; transition: opacity .3s .1s; }
.mini-thumb .ph-glyph, .top-thumb .ph-glyph, .mthumb .ph-glyph { font-size: 14px; }
.thumb-preview .thumb-note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .85); }

/* Video-Seite: Tabs */
.vtabs { position: sticky; top: 0; z-index: 15; display: flex; gap: 2px; margin: 18px 0 16px; padding: 5px; overflow-x: auto; scrollbar-width: none;
  background: var(--glass-soft); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--r); }
.vtab-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 9px; background: transparent; white-space: nowrap;
  font: inherit; font-size: 13.5px; font-weight: 550; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.vtab-btn:hover { color: var(--text); background: var(--surface-2); }
.vtab-btn.active { color: var(--text); background: var(--surface-3); box-shadow: inset 0 -2px 0 var(--accent); }
.vtab-btn.active .i { color: var(--accent-ink); }
.vtab-count { font-style: normal; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted); }
.vtab-btn.active .vtab-count { background: var(--accent-soft); color: var(--accent-ink); }
.vtab-pane > .panel:first-child { margin-top: 0; }
.vtab-pane { animation: pane-in .2s ease; }
@keyframes pane-in { from { opacity: 0; transform: translateY(4px); } }

/* Mini-Player */
.player-slot { position: relative; }
.mini-close, .mini-back { display: none; }
.player.mini { position: fixed; right: 22px; bottom: 22px; width: min(360px, 46vw); z-index: 70; border-radius: 14px; border-color: var(--border-2);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .75); animation: mini-in .25s cubic-bezier(.2, .9, .3, 1.1); }
.player.mini video, .player.mini.portrait video { aspect-ratio: auto; height: auto; max-height: 50vh; }
.player.mini .mini-close { display: grid; position: absolute; top: 6px; right: 6px; z-index: 5; width: 28px; height: 28px; background: rgba(0, 0, 0, .65); color: #fff; }
.player.mini .mini-back { display: flex; align-items: center; gap: 6px; position: absolute; top: 6px; left: 6px; right: 40px; z-index: 5; padding: 5px 9px; border: 0; border-radius: 8px;
  background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .15s; text-align: left; }
.player.mini .mini-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player.mini:hover .mini-back { opacity: 1; }
@keyframes mini-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (max-width: 820px) { .player.mini { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 58vw; } .player.mini .mini-back { opacity: 1; } }

/* Videoliste: Ansicht umschalten */
.view-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.view-switch a { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 7px; color: var(--muted); }
.view-switch a:hover { color: var(--text); background: var(--surface-2); }
.view-switch a.active { color: var(--accent-ink); background: var(--accent-soft); }
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mthumb { width: 72px; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--bg); display: block; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-table tbody tr { cursor: pointer; }
.video-table tbody tr:hover td { background: var(--surface-2); }
.vt-title { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 260px; }
.vt-title > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vt-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.sched-pill.inline { position: static; display: inline-flex; }
.board { display: grid; grid-template-columns: repeat(var(--cols), minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.board-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.board-col > header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.bcard { display: flex; flex-direction: column; gap: 10px; padding: 9px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, transform .15s; }
.bcard:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.bcard .mthumb { width: 100%; }
.bcard-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bcard-body strong { font-size: 13.5px; line-height: 1.35; }
.bcard .vmeta { font-size: 12px; }
.board-empty { text-align: center; padding: 18px 0; }
@media (max-width: 820px) { .board { grid-template-columns: repeat(var(--cols), 78vw); scroll-snap-type: x mandatory; } .board-col { scroll-snap-align: start; } }

:root[data-theme="light"] .vtabs { background: rgba(255, 255, 255, .85); }
:root[data-theme="light"] .board-col { background: var(--surface-2); }
:root[data-theme="light"] .bcard { background: var(--surface); box-shadow: 0 1px 2px rgba(19, 38, 26, .05); }
:root[data-theme="light"] .vthumb { background: radial-gradient(circle at 50% 40%, #2a4a33, #0d1f14); }
@media (prefers-reduced-motion: reduce) { .nav-progress.run, .vtab-pane, .player.mini, .undo-timer { animation-duration: .01s; } }
.vthumb::after { z-index: 1; }
.sched-pill.inline { background: var(--wait-soft); }
nav.vtabs { flex-direction: row; flex: none; }
.ph-glyph { font-size: clamp(18px, 16cqw, 44px); }
.vthumb:not(.loaded) .vplay { opacity: 0; }
.vcard:hover .vthumb .vplay { opacity: 1; }
.vcard:hover .vthumb:not(.loaded) .ph-glyph { opacity: .35; transition: opacity .2s; }
.auth-card > h1, .auth-card > p.muted { text-align: center; }
.format-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; }
.format-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; }
.format-chip.short { background: var(--accent-soft); color: var(--accent-ink); }
.format-chip.long { background: var(--info-soft); color: var(--info); }

/* KI-Vorprüfung */
.ai-panel { border-left: 3px solid var(--border-2); }
.ai-panel.ok { border-left-color: var(--ok); }
.ai-panel.check { border-left-color: var(--wait); }
.ai-panel.problems { border-left-color: var(--bad); }
.verdict-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.verdict-pill.ok { background: var(--ok-soft); color: var(--ok); }
.verdict-pill.check { background: var(--wait-soft); color: var(--wait); }
.verdict-pill.problems { background: var(--bad-soft); color: var(--bad); }
.ai-running { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.ai-summary { margin: 0 0 12px; line-height: 1.55; }
.hook-meter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hook-bar { width: 120px; height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hook-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.hook-bar i.mid { background: var(--wait); }
.hook-bar i.low { background: var(--bad); }
.hook-note { flex-basis: 100%; }
.ai-issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ai-issues li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.ai-issues li:first-child { border-top: 0; }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--info); transform: translateY(-1px); }
.sev-warn .sev-dot { background: var(--wait); }
.sev-problem .sev-dot { background: var(--bad); }
.ai-issues .tc, .tc-none { flex-shrink: 0; min-width: 46px; }
.tc-none { font-size: 12px; color: var(--faint); }
.ai-msg { flex: 1; }
.ai-src { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.marker.ai { background: var(--info); }
.marker.ai.sev-warn { background: var(--wait); }
.marker.ai.sev-problem { background: var(--bad); }
.ai-mark { font-style: normal; font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); }
.ai-draft-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--accent-ink); background: var(--accent-soft); padding: 8px 11px; border-radius: 9px; }
/* Sichere Zone TikTok / Shorts */
.safe-zone { position: absolute; inset: 0; pointer-events: none; z-index: 3; display: flex; justify-content: center; }
.safe-zone[hidden] { display: none; }
.safe-zone i { position: absolute; background: repeating-linear-gradient(135deg, rgba(251, 113, 133, .38) 0 6px, rgba(251, 113, 133, .16) 6px 12px); outline: 1px solid rgba(251, 113, 133, .7); }
.player .safe-zone { left: 50%; transform: translateX(-50%); aspect-ratio: 9 / 16; height: 100%; inset: 0 auto auto 50%; }
.sz-top { top: 0; left: 0; right: 0; height: 8%; }
.sz-bottom { bottom: 0; left: 0; right: 0; height: 20%; }
.sz-right { right: 0; top: 40%; height: 30%; width: 15%; }
.sz-label { position: absolute; bottom: 21%; left: 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(190, 18, 60, .85); padding: 2px 6px; border-radius: 5px; }
#safe-toggle.on { background: var(--bad-soft); color: var(--bad); }
/* Inbox mit KI */
.cat-pill { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.cat-pill.question { background: var(--info-soft); color: var(--info); }
.cat-pill.criticism { background: var(--bad-soft); color: var(--bad); }
.cat-pill.praise { background: var(--ok-soft); color: var(--ok); }
.prio-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--wait); }
.prio-chip.active { background: var(--wait-soft); border-color: var(--wait); color: var(--wait); }
.draft-box { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.draft-box p { margin: 0; }
.draft-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; }

/* Trends & Ideen */
.trend-run { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.trend-run input { width: 240px; }
.trend-running { display: flex; gap: 14px; align-items: center; }
.trend-hero { position: relative; overflow: hidden; padding: 26px 28px; border-radius: var(--r-lg); margin-bottom: 22px; border: 1px solid var(--border);
  background: radial-gradient(ellipse at 100% 0%, rgba(161, 218, 81, .22), transparent 60%), linear-gradient(135deg, var(--surface-2), var(--surface)); }
.trend-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; }
.trend-hero h2 { font-family: var(--font-brand); font-size: 26px; line-height: 1.2; margin: 10px 0 8px; max-width: 900px; }
.trend-hero p { margin: 0; max-width: 900px; color: var(--muted); line-height: 1.6; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; align-items: center; }
.tag-cloud span { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.trend-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.idea-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.idea-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.idea-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.idea-card h3 { margin: 2px 0 0; font-size: 15.5px; line-height: 1.35; }
.idea-hook { margin: 0; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); font-weight: 550; line-height: 1.45; }
.idea-hook span { display: block; font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 2px; }
.idea-concept { margin: 0; line-height: 1.55; font-size: 13.5px; }
.idea-why { margin: 0; display: flex; gap: 5px; }
.idea-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); }
.idea-tags { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effort { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.effort.low { color: var(--ok); }
.effort.high { color: var(--wait); }
.trend-side { display: flex; flex-direction: column; gap: 16px; }
.trend-side .panel { margin: 0; }
.trend-list { list-style: none; margin: 0; padding: 0; }
.trend-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.trend-list li:first-child { border-top: 0; padding-top: 0; }
.trend-list p { margin: 4px 0; line-height: 1.5; }
.strength { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.strength.hot { background: var(--bad-soft); color: var(--bad); }
.strength.rising { background: var(--accent-soft); color: var(--accent-ink); }
.trend-link { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.yt-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.yt-top a { display: flex; gap: 10px; color: var(--text); align-items: flex-start; }
.yt-top img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.yt-top a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.35; }
.watch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.watch-list li { display: flex; flex-direction: column; gap: 2px; }
.sources summary { cursor: pointer; display: flex; align-items: center; gap: 7px; font-weight: 600; }
.sources ul { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; word-break: break-word; }
.report-history { list-style: none; margin: 0; padding: 0; }
.report-history li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.report-history li:first-child { border-top: 0; }
.report-history li.current a { font-weight: 700; color: var(--accent-ink); }
[data-copy-tags].done, [data-copy-idea].done { color: var(--ok); }
@media (max-width: 1100px) { .trend-layout { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .trend-run, .trend-run input { width: 100%; } .trend-hero { padding: 20px; } .trend-hero h2 { font-size: 21px; } }
.trend-run { flex-wrap: nowrap; }
.trend-run input { width: 220px; }
@media (max-width: 820px) { .trend-run { flex-wrap: wrap; } }
