[hidden] { display: none !important; }
:root {
  --bg: #0f0d1a;
  --card: #18152a;
  --line: #2c2746;
  --text: #f0edfb;
  --muted: #a39dc1;
  --accent: #8b6cff;
  --accent2: #ffa63d;
  --ok: #3ad98c;
  --warn: #ffd166;
  --bad: #ff5c7a;
  --radius: 18px;
  --r-in: 11px;
  --link: #b9a8ff;
  --raise: #1f1b35;
  --display: "Peakzo Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.top { max-width: 1100px; margin: 0 auto; padding: 24px 16px 8px; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.logo { color: var(--accent); }
.ai { color: var(--accent2); }
.claim { margin: 4px 0 0; color: var(--muted); }
h1 { font-size: 22px; margin: 0 0 6px; }
.section-title { font-size: 20px; margin: 28px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.narrow { max-width: 420px; margin: 40px auto; }
.hint { color: var(--muted); margin: 0 0 12px; }
.note { color: var(--warn); font-size: 14px; margin: 8px 0 0; }
.note:empty { display: none; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
label.inline { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
label.inline input { margin-top: 4px; flex: none; }
.opt { color: #8a84aa; }
input[type=text], input[type=password], select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #110f20; color: var(--text); font-size: 15px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px dashed #423b66; border-radius: var(--radius); padding: 28px 16px; cursor: pointer;
  text-align: center; margin: 8px 0 4px; color: var(--text); background: #141127;
}
.drop.over { border-color: var(--accent2); background: #1d1838; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-main { font-size: 17px; font-weight: 600; }
.drop-sub { color: var(--muted); font-size: 14px; }
fieldset.rights { border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; padding: 8px 16px 14px; }
legend { color: var(--muted); font-size: 14px; padding: 0 6px; }
button {
  font: inherit; border-radius: 10px; border: 1px solid var(--line); background: #241f3b;
  color: var(--text); padding: 8px 14px; cursor: pointer;
}
button:hover { border-color: #524a7a; }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
button.big { padding: 12px 22px; font-size: 17px; }
button.danger { color: var(--bad); }
.error { color: var(--bad); min-height: 1em; margin: 8px 0 0; }
.error:empty { display: none; }
.progress { position: relative; height: 26px; background: #110f20; border-radius: 13px; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.2s; }
.progress .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.source-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.source-name { font-weight: 700; word-break: break-all; }
.meta { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; background: #26213f; }
.badge.analyse, .badge.render { color: var(--warn); }
.badge.fertig { color: var(--ok); }
.badge.fehler { color: var(--bad); }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.clip { background: #141127; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.clip video, .clip .placeholder { width: 100%; aspect-ratio: 9 / 16; background: #000; display: block; }
.placeholder { display: flex !important; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 16px; font-size: 14px; }
.clip-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.clip-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.score { font-weight: 800; color: var(--accent2); }
.certain { color: var(--ok); font-size: 13px; }
.guess { color: var(--warn); font-size: 13px; }
.reason { color: var(--muted); }
.title { font-weight: 600; }
.tags { color: var(--link); word-break: break-word; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.actions a, .actions button { font-size: 14px; padding: 6px 10px; }
a.button { text-decoration: none; color: #fff; background: var(--accent); border-radius: 10px; font-weight: 700; }
.checks { color: var(--ok); font-size: 13px; }
.checks.bad { color: var(--bad); }
.foot { text-align: center; color: #6f6990; font-size: 13px; padding: 24px; }
@media (max-width: 520px) {
  .clips { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 16px; }
}

.toggle { margin-top: 14px; }
.hint.small { font-size: 13px; margin: 4px 0 0; }
.hint.small:empty { display: none; }
.viral { display: flex; align-items: baseline; gap: 8px; }
.viral-num { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1; }
.viral-label { font-size: 13px; color: var(--muted); }
details.why summary { cursor: pointer; color: var(--link); font-size: 13px; }
.crit { display: grid; grid-template-columns: 1fr 34px; gap: 2px 8px; margin-top: 6px; font-size: 13px; }
.crit .name { color: var(--text); }
.crit .val { text-align: right; color: var(--muted); }
.crit .bar { grid-column: 1 / -1; height: 5px; background: #26213f; border-radius: 3px; overflow: hidden; }
.crit .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.crit .detail { grid-column: 1 / -1; color: var(--muted); margin-bottom: 4px; }
.disclaimer { color: #8a84aa; font-size: 12px; margin-top: 6px; }
.quote { color: var(--text); font-style: italic; border-left: 3px solid var(--accent2); padding-left: 8px; }
.subs { font-size: 12px; color: var(--link); }

.flash { background: #122a20; border: 1px solid #275c3d; color: var(--ok); border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; }
.flash.bad { background: #2a1517; border-color: #6b2b31; color: var(--bad); }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.channel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.channel h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #4a4468; }
.dot.on { background: var(--ok); }
.dot.warn { background: var(--warn); }
.account { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.account .who { display: flex; flex-direction: column; }
.account .meta { font-size: 13px; }
.channel a.button, .channel .connect { align-self: flex-start; text-decoration: none; padding: 7px 12px; }
.setup { font-size: 13px; color: var(--muted); }
.setup ol { margin: 6px 0; padding-left: 18px; }
.setup code { background: #110f20; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; word-break: break-all; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: #141127; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat .num { font-size: 24px; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 13px; }
table.plain { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
table.plain th { color: var(--muted); font-weight: 600; }
table.plain td.n, table.plain th.n { text-align: right; }
.na { color: #6f6990; }
.pubs { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.pub { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; align-items: center; flex-wrap: wrap; }
.pub .st-published { color: var(--ok); }
.pub .st-failed { color: var(--bad); }
.pub .st-queued, .pub .st-uploading, .pub .st-processing { color: var(--warn); }
.pub a { color: var(--link); }
.pub-detail { font-size: 12px; color: var(--muted); width: 100%; }
.pub-detail.bad { color: var(--bad); }
dialog { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; padding: 20px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog h2 { margin: 0 0 8px; }
textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #110f20; color: var(--text); font: inherit; resize: vertical; }
.target { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.target .opts { margin-top: 6px; padding-left: 26px; font-size: 14px; }
.target .opts label { margin: 6px 0 2px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.small-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
main a:not(.button) { color: var(--link); }

/* Konten und Tarife */
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-menu { display: flex; align-items: center; gap: 10px; }
input[type=email] {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #110f20; color: var(--text); font-size: 15px;
}
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tab { flex: 1; background: #141127; }
.tab.active { border-color: var(--accent); color: #fff; }
#auth form button.primary { width: 100%; margin-top: 14px; }
a { color: var(--link); }
.small { font-size: 14px; }
.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--warn);
  background: #2a2410; color: var(--warn);
}
.usage-bar { height: 10px; border-radius: 5px; background: #110f20; border: 1px solid var(--line); overflow: hidden; margin: 6px 0; }
.usage-bar div { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.plan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-name { font-size: 20px; font-weight: 800; }
.plan-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin: 10px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.price-card.current { border-color: var(--accent2); }
.price-card .price { font-size: 26px; font-weight: 800; }
.price-card ul { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.price-card button { margin-top: auto; }
.warn-text { color: var(--warn); }

.providers { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.provider-btn {
  display: block; text-align: center; padding: 11px 14px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 1px solid var(--line); color: #fff;
}
.providers a.provider-btn:link, .providers a.provider-btn:visited { color: #fff; }
.providers a.provider-google:link, .providers a.provider-google:visited { color: #1f1f1f; }
.provider-google { background: #fff; }
.provider-discord { background: #5865f2; border-color: #5865f2; }
.provider-btn:hover { filter: brightness(1.08); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Editor */
dialog.wide { width: min(1100px, 97vw); max-height: 96vh; }
.editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.editor-head h2 { margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-video-wrap { position: relative; margin-top: 10px; background: #000; border-radius: 10px; overflow: hidden; }
.editor-video { display: block; width: 100%; max-height: 52vh; background: #000; }
.facecam-overlay { position: absolute; inset: 0 0 40px 0; cursor: crosshair; touch-action: none; }
.facecam-box { position: absolute; border: 3px solid var(--accent2); background: rgba(255, 166, 61, 0.18); border-radius: 4px; }
.facecam-hint { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7);
  padding: 4px 10px; border-radius: 8px; font-size: 13px; pointer-events: none; }
.timeline-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.legend { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.sw { display: inline-block; width: 12px; height: 10px; border-radius: 3px; margin-left: 8px; }
.sw.auto, .tl-clip.auto { background: rgba(80, 140, 255, 0.55); }
.sw.manual, .tl-clip.manual { background: rgba(60, 207, 122, 0.6); }
.sw.pending, .tl-range { background: rgba(255, 61, 127, 0.45); }
.timeline { position: relative; height: 74px; margin-top: 6px; background: #110f20; border: 1px solid var(--line);
  border-radius: 8px; cursor: crosshair; touch-action: none; user-select: none; overflow: hidden; }
.activity { position: absolute; inset: 0; pointer-events: none; }
.activity span { position: absolute; bottom: 0; background: rgba(255, 255, 255, 0.12); }
.tl-clip { position: absolute; top: 8px; height: 26px; border-radius: 4px; cursor: pointer; min-width: 3px; }
.tl-clip.sel { outline: 2px solid #fff; z-index: 2; }
.tl-range { position: absolute; bottom: 8px; height: 26px; border-radius: 4px; border: 1px solid var(--accent);
  pointer-events: none; font-size: 11px; font-weight: 700; padding-left: 4px; min-width: 3px; }
.tl-range.drafting { border-style: dashed; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; z-index: 3; }
.editor-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.range-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.range-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.range-row button { padding: 6px 10px; font-size: 13px; }
input.time-input { width: 84px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.editor-options { display: grid; gap: 6px; margin-top: 12px; }
.editor-options select, .editor-options input { width: 100%; }
.facecam-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-actions { margin-top: 0; }
.selected-clip { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.selected-clip h3 { margin: 0 0 6px; font-size: 16px; }
.score.mine { color: var(--ok); font-weight: 700; }
.layout-tag { font-size: 12px; color: var(--accent2); border: 1px solid var(--accent2); border-radius: 999px; padding: 1px 8px; }

.lang-select { margin-left: auto; width: auto; padding: 6px 10px; font-size: 14px; background: #141127; }
.top-row { gap: 10px; }

/* ---------------------------------------------------------------- Navigation & Ansichten */
.nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; margin: 12px 0 4px;
  padding: 6px; background: rgba(15, 13, 26, 0.86); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: var(--radius); scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
#nav a { flex: none; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 600;
  font-size: 15px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
#nav a:hover { color: var(--text); background: #221d38; }
#nav a.active { color: #fff; background: var(--accent); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s infinite; }
#nav a.active .nav-dot { background: #fff; }
@keyframes pulse { 50% { opacity: 0.3; } }
.view > h1, .view > .section-row h1 { margin-top: 18px; }
.view h2 { font-size: 18px; margin: 0 0 8px; }
a.button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; }
a.button.big { padding: 12px 22px; font-size: 17px; }
.link-btn { background: none; border: none; color: var(--muted); padding: 4px 6px; font-size: 13px; }
.link-btn:hover { color: var(--text); }

/* Übersicht */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); align-items: center; gap: 24px; }
.hero h1 { font-size: 24px; }
.hero .hint { margin: 0; max-width: 620px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
a.kpi:hover { border-color: #423b66; }
.kpi .num { font-size: 28px; font-weight: 800; line-height: 1.1; }
.kpi .lbl { color: var(--muted); font-size: 13px; }
.kpi .usage-bar { margin: 6px 0 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.two-col > .card { margin-top: 16px; }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #141127; }
.checklist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #423b66;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: #08120c; }
.checklist li.done .what { color: var(--muted); text-decoration: line-through; }
.checklist .what { display: flex; flex-direction: column; }
.checklist .what small { color: var(--muted); font-size: 13px; text-decoration: none; }
.checklist a { margin-left: auto; font-size: 14px; white-space: nowrap; }
.how { list-style: none; counter-reset: how; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; }
.how li::before { content: counter(how); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.how span { color: var(--muted); font-size: 14px; }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.recent-row:first-child { border-top: none; }
.recent-row .source-name { flex: 1 1 200px; }
.recent-row a { font-size: 14px; }

/* Fortschritt je Video */
.steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 12px 0 4px; flex-wrap: wrap; }
.steps li { flex: 1 1 120px; position: relative; padding: 8px 10px 8px 34px; font-size: 13px; color: var(--muted);
  border-top: 3px solid #2c2746; }
.steps li::before { content: ""; position: absolute; left: 10px; top: 10px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #423b66; }
.steps li.done { border-top-color: var(--ok); color: var(--text); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps li.now { border-top-color: var(--warn); color: var(--text); }
.steps li.now::before { border-color: var(--warn); animation: pulse 1.4s infinite; }
.steps li.bad { border-top-color: var(--bad); color: var(--bad); }
.steps li.bad::before { border-color: var(--bad); }
.steps li strong { display: block; font-size: 14px; }
details.ai-look { margin-top: 6px; font-size: 14px; }
details.ai-look summary { cursor: pointer; color: var(--link); }
.ai-look ul { margin: 6px 0; padding-left: 18px; color: var(--muted); }
.ai-look li.off { text-decoration: line-through; opacity: 0.7; }
.source-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }

/* Erstellen */
.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.create-grid > .card { margin-top: 16px; }
@media (max-width: 900px) { .create-grid { grid-template-columns: 1fr; } }
.next-box { position: sticky; top: 76px; }
.next-steps { padding-left: 18px; margin: 6px 0 12px; color: var(--muted); font-size: 14px; display: flex;
  flex-direction: column; gap: 6px; }
.cost-box { background: #141127; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.cost-box:empty { display: none; }
.cost-box strong { color: var(--text); }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 17px !important; margin: 22px 0 4px !important; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: #26213f; color: var(--accent2); display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin-top: 10px; }
.layout-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0;
  padding: 12px 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: #141127; cursor: pointer;
  text-align: center; color: var(--text); font-size: 14px; }
.layout-card:hover { border-color: #423b66; }
.layout-card input { position: absolute; opacity: 0; pointer-events: none; }
.layout-card:has(input:checked) { border-color: var(--accent); background: #231b45; }
.layout-card.checked { border-color: var(--accent); background: #231b45; }
.layout-card:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.layout-card small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.layout-card.locked { opacity: 0.55; cursor: not-allowed; }
.layout-card .lock { position: absolute; top: 6px; right: 6px; font-size: 10px; font-style: normal; font-weight: 700;
  color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 0 6px; background: #161a22; }
.layout-card .best { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; color: #08120c;
  background: var(--accent2); border-radius: 999px; padding: 0 6px; }

/* Layout-Skizzen (9:16) */
.lay-pic { position: relative; width: 54px; height: 96px; border-radius: 6px; background: #05070a; overflow: hidden;
  border: 1px solid #352f55; flex: none; }
.lay-pic i { position: absolute; display: block; }
.lay-pic .p-g { background: linear-gradient(135deg, #2bb673, #1f7dc9); left: 0; right: 0; }
.lay-pic .p-g::after { content: ""; position: absolute; left: 42%; top: 38%; width: 16%; height: 24%; background: #ffd35c;
  border-radius: 2px; }
.lay-pic .p-b { inset: 0; background: linear-gradient(135deg, #1c5c45, #1b416a); filter: blur(3px); opacity: 0.8; }
.lay-pic .p-c { background: linear-gradient(160deg, #c9785b, #7b4a8c); }
.lay-pic .p-c::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: #f1c7a6; transform: translate(-50%, -60%); }
.lay-pic .p-t { left: 12%; right: 12%; height: 7px; border-radius: 3px; background: #fff; }
.lay-pic .p-z { inset: 18% 14%; border: 2px solid #fff; border-radius: 3px; }
.lay-blur .p-g { top: 36%; height: 28%; }
.lay-fill .p-g, .lay-zoom .p-g { top: 0; bottom: 0; }
.lay-fill .p-g::after, .lay-zoom .p-g::after { width: 30%; left: 35%; height: 20%; top: 40%; }
.lay-cinema .p-t { top: 24%; }
.lay-cinema .p-g { top: 36%; height: 28%; }
.lay-split .p-c { top: 0; left: 0; right: 0; height: 50%; }
.lay-split .p-g { top: 50%; bottom: 0; }
.lay-streamer .p-c { top: 0; left: 0; right: 0; height: 33%; }
.lay-streamer .p-t { top: 37%; }
.lay-streamer .p-g { top: 46%; bottom: 0; }
.lay-bubble .p-g { top: 0; bottom: 0; }
.lay-bubble .p-c { top: 8%; left: 8%; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; }
.lay-bubble .p-c::after { width: 50%; }

/* Webcam-Ecke wählen */
.facecam-pick { margin-top: 12px; padding: 12px; border: 1px dashed #423b66; border-radius: 12px; }
.pick-label { display: block; font-size: 14px; margin-bottom: 8px; }
.corner-box { position: relative; width: min(320px, 100%); aspect-ratio: 16 / 9; border-radius: 8px;
  background: linear-gradient(135deg, #1c5c45, #1b416a); }
.corner { position: absolute; width: 34%; height: 36%; margin: 0; display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.45); border-radius: 6px; cursor: pointer; font-size: 12px; color: #fff;
  text-align: center; background: rgba(0, 0, 0, 0.25); }
.corner input { position: absolute; opacity: 0; pointer-events: none; }
.corner.tl { top: 4%; left: 2%; } .corner.tr { top: 4%; right: 2%; }
.corner.bl { bottom: 4%; left: 2%; } .corner.br { bottom: 4%; right: 2%; }
.corner:has(input:checked), .corner.checked { border: 3px solid var(--accent2); background: rgba(255, 166, 61, 0.35); font-weight: 700; }

/* Untertitel-Stil */
.sub-styles { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px 28px; }
.sub-chip { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 6px; border: 2px solid var(--line);
  border-radius: 999px; cursor: pointer; color: var(--text); font-size: 14px; background: #141127; }
.sub-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sub-chip:has(input:checked), .sub-chip.checked { border-color: var(--accent); }
.sub-styles.off { opacity: 0.45; pointer-events: none; }
.sample { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #2bb673, #1f7dc9);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
.s-classic { color: #fff; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.s-yellow { color: #ffe600; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.sample.s-box { color: #fff; background-image: linear-gradient(#000, #000), linear-gradient(135deg, #2bb673, #1f7dc9);
  background-size: 74% 64%, 100% 100%; background-position: center; background-repeat: no-repeat; }

/* Tarif & Hilfe */
.facts { margin: 6px 0 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.guide { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.guide li { color: var(--muted); }
.guide strong { color: var(--text); }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: none; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 8px 0 0; }
.layout-help { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.layout-help .item { display: flex; gap: 12px; align-items: flex-start; }
.layout-help .item strong { display: block; }
.layout-help .item span { color: var(--muted); font-size: 14px; }
.hook-line { font-size: 13px; color: var(--warn); font-weight: 700; }
.price-card .per { color: var(--muted); font-size: 13px; }
.flash-note { animation: shake 0.4s; color: var(--accent); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.layout-help .cam-tag { display: block; font-style: normal; font-weight: 700; font-size: 12px; color: var(--warn); margin-top: 2px; }
.period-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); }
.period-toggle button { border: none; border-radius: 999px; padding: 6px 14px; background: none; color: var(--muted); }
.period-toggle button.active { background: var(--accent); color: #fff; }
.layout-card .lock.trial { color: var(--ok); border-color: var(--ok); }
.layout-card { padding-top: 28px; }
.layout-card .lock, .layout-card .best { z-index: 2; }

/* Ton-Bereich im Dialog „Edit clip“ */
#clip-dialog { max-height: 92vh; overflow-y: auto; width: min(560px, 94vw); }
.sound-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex;
  flex-direction: column; gap: 8px; }
.sound-section h3 { margin: 0; font-size: 17px; }
.sound-preview { width: 100%; max-height: 300px; background: #000; border-radius: 10px; }
.sfx-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.sfx-chip { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sfx-chip button { border: none; border-radius: 0; padding: 5px 10px; font-size: 13px; }
.sfx-chip .sfx-play { background: #26213f; color: var(--accent2); }
.sfx-chip .sfx-add { background: #161a22; }
.sfx-chip .sfx-add:not(:disabled):hover { background: var(--accent); color: #fff; }
.sfx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.sfx-list li { background: #141127; border: 1px solid var(--line); border-radius: 8px; padding: 2px 4px; }
.slider { display: grid; grid-template-columns: 1fr 160px 44px; align-items: center; gap: 8px; margin: 0; }
.slider-value { text-align: right; color: var(--muted); font-size: 13px; }
.track-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.track-row select { flex: 1 1 200px; }
.track-options { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #141127; border-radius: 10px; }
.inline-field { display: flex; gap: 8px; align-items: center; margin: 0; }
.time-input { width: 90px; }
.upload-audio { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed #423b66;
  border-radius: 10px; }
.copyright-note { font-size: 13px; }
.track-options > button { align-self: flex-start; padding: 6px 14px; }

/* Feedback */
#feedback-form { display: flex; flex-direction: column; gap: 8px; }
.fb-kinds { margin: 4px 0 6px; }
.fb-stars { display: flex; gap: 2px; }
.fb-star { background: none; border: none; font-size: 28px; line-height: 1; padding: 0 2px; color: #423b66; cursor: pointer; }
.fb-star.on { color: var(--warn); }
.fb-star:hover { color: var(--warn); }
#feedback-form button[type=submit] { align-self: flex-start; }
.placeholder .link-btn { display: block; margin: 6px auto 0; }
.meta.keep { margin-top: 2px; }
.meta.keep.gone { color: var(--warn); }


/* ================================================================ Peakzo-Look (Inkrement 7.1) */
@font-face { font-family: "Peakzo Display"; src: url("/static/fonts/InterDisplay-ExtraBold.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Peakzo Display"; src: url("/static/fonts/InterDisplay-BlackItalic.woff") format("woff");
  font-weight: 900; font-style: italic; font-display: swap; }

body { background: radial-gradient(1200px 520px at 85% -10%, #231b45 0%, transparent 60%), var(--bg);
  background-attachment: fixed; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .section-title, .num, .price, .plan-name, .viral-num, .score, .stat .num {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: 26px; line-height: 1.15; }
.view h2 { font-size: 19px; }
.num, .price, .viral-num, .stat .num { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: #fff; }

/* Icons */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.foot a { display: inline-flex; align-items: center; gap: 5px; }

/* Marke: Pegel mit Spitze */
.brand { display: flex; align-items: center; gap: 10px; font-size: 28px; }
.brand .word { font-family: var(--display); font-weight: 900; font-style: italic; letter-spacing: -0.035em;
  line-height: 1; padding-right: 2px; }
.mark { width: 34px; height: 30px; flex: none; overflow: visible; }
.mark .b { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; }
.mark .cap { fill: var(--accent2); animation: drop .5s var(--ease) .55s both; }
.mark .b { animation: rise .55s var(--ease) both; }
.mark .b2 { animation-delay: .06s; } .mark .b3 { animation-delay: .12s; } .mark .b4 { animation-delay: .18s; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.claim { font-size: 15px; }

/* Navigation */
.nav { border-radius: 16px; padding: 5px; gap: 2px; }
#nav a { border-radius: 11px; padding: 9px 14px; transition: color .15s, background-color .15s; }
#nav a .ic { opacity: .8; }
#nav a.active { background: var(--accent); box-shadow: 0 6px 18px -8px var(--accent); }
#nav a.active .ic { opacity: 1; }

/* Flächen und Knöpfe */
.card { background: linear-gradient(180deg, var(--raise), var(--card) 120px); border-color: var(--line); }
button, a.button { border-radius: var(--r-in); transition: transform .12s var(--ease), background-color .15s,
  border-color .15s, filter .15s; }
button:active:not(:disabled), a.button:active { transform: scale(.97); }
button.primary, a.button { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
button.primary:hover:not(:disabled), a.button:hover { filter: brightness(1.1); }
button.ghost { background: transparent; }
button.danger:hover { border-color: var(--bad); }
button.done { color: var(--ok); border-color: var(--ok); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
input[type=text], input[type=password], input[type=email], select, textarea { border-radius: var(--r-in);
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 108, 255, .25); }

/* Übersicht: Kopfbereich mit Höhepunkt-Bild */
.hero { padding: 26px 26px 22px; overflow: hidden; }
.hero h1 { font-size: 30px; }
.hero .hint { margin: 6px 0 18px; }
.peak-viz { position: relative; height: 150px; }
.viz-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4px; }
.viz-bars i { flex: 1; min-width: 3px; border-radius: 3px 3px 1px 1px; background: #3a3361;
  transform-origin: 50% 100%; animation: rise .7s var(--ease) both; }
.viz-bars i.pk { background: linear-gradient(180deg, var(--accent2), #ff7a45); animation-name: rise, glow;
  animation-duration: .7s, .6s; animation-fill-mode: both, both; }
.viz-clip { position: absolute; top: -6px; bottom: -8px; left: 44%; width: 21%; border: 2px solid var(--text);
  border-radius: 9px; animation: frame .45s var(--ease) 1s both; }
@keyframes rise { from { transform: scaleY(.04); } }
@keyframes glow { from { filter: saturate(.2) brightness(.7); } }
@keyframes frame { from { opacity: 0; transform: scale(1.25); } }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } .peak-viz { height: 90px; order: -1; } }

.kpi { position: relative; padding: 14px 16px 14px; transition: border-color .15s, transform .15s var(--ease); }
a.kpi:hover { border-color: #423b66; transform: translateY(-2px); }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px;
  background: #241f3b; color: var(--link); }
.kpi-icon .ic { width: 19px; height: 19px; }
.kpi:last-child .kpi-icon { color: var(--accent2); }

/* Arbeitet gerade: kleine Pegelanzeige */
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: 8px; vertical-align: -1px; }
.meter i { width: 3px; height: 100%; border-radius: 1px; background: var(--warn); transform-origin: 50% 100%;
  animation: level .9s ease-in-out infinite; }
.meter i:nth-child(2) { animation-delay: -.3s; } .meter i:nth-child(3) { animation-delay: -.6s; }
.meter i:nth-child(4) { animation-delay: -.15s; }
@keyframes level { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.steps li { border-top-width: 3px; border-radius: 2px; }
.steps li.done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%230f0d1a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Hochladen */
.drop { border-radius: var(--radius); padding: 34px 16px; transition: border-color .2s, background-color .2s; }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px;
  background: #241f3b; color: var(--link); transition: transform .25s var(--ease); }
.drop-icon .ic { width: 26px; height: 26px; }
.drop:hover .drop-icon { transform: translateY(-3px); }
.drop.over .drop-icon { transform: translateY(-5px) scale(1.06); color: var(--accent2); }
.drop.over { border-color: var(--accent); }
.step-num { background: var(--accent); color: #fff; }

/* Auswahl-Karten: kurze Bestätigung beim Anklicken */
.layout-card, .sub-chip, .corner { transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.layout-card:has(input:checked), .layout-card.checked { border-color: var(--accent); background: #231b45; }
.layout-card:has(input:checked) .lay-pic, .layout-card.checked .lay-pic { animation: pick .3s var(--ease); }
@keyframes pick { 40% { transform: scale(1.08); } }
.layout-card:not(.locked):hover { transform: translateY(-2px); }

/* Clips */
.clip { border-radius: 16px; transition: border-color .15s; }
.clip:hover { border-color: #423b66; }
.clip .actions .ic { width: 1em; height: 1em; }
.clip .actions a.button { background: #241f3b; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.viral-num { color: var(--accent2); }
.badge.fertig { background: rgba(58, 217, 140, .12); }
.badge.analyse, .badge.render { background: rgba(255, 209, 102, .1); }
.badge.fehler { background: rgba(255, 92, 122, .12); }

/* Rückmeldungen auf Aktionen */
.view:not([hidden]) { animation: view-in .22s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.flash:not([hidden]) { animation: toast .3s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translateY(-8px); } }
dialog[open] { animation: pop .22s var(--ease); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
dialog[open]::backdrop { animation: fade .22s ease; background: rgba(8, 6, 16, .7); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
details > summary { transition: color .15s; }
details[open] > :not(summary) { animation: fade .2s ease; }
.usage-bar div { transition: width .6s var(--ease); }
.nav-dot { background: var(--warn); }

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Marke: Slogan, Einstieg, Tarif-Leiter */
.claim { font-family: var(--display); font-weight: 900; font-style: italic; letter-spacing: -0.02em; font-size: 17px;
  color: var(--muted); margin-top: 6px; }
.pitch { max-width: 520px; margin: 44px auto 0; text-align: center; }
.pitch h1 { font-size: clamp(32px, 7vw, 48px); font-style: italic; font-weight: 900; letter-spacing: -0.035em;
  line-height: 1.02; margin: 0 0 12px; }
.pitch p { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 420px; }
.pitch .pitch-free { margin-top: 14px; color: var(--accent2); font-size: 15px; font-weight: 600; }
.pitch + .narrow { margin-top: 24px; }
.ladder { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: -0.02em;
  margin: 2px 0 2px; }
.pricing { align-items: stretch; }
.price-card { position: relative; padding: 22px 20px 20px; gap: 4px; }
.tier-name { font-size: 15px; color: var(--muted); font-weight: 600; }
.tier-promise { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 24px;
  letter-spacing: -0.025em; line-height: 1.1; margin: 2px 0; }
.tier-who { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.price-card .price { margin-top: 4px; }
.tier-creator { border-color: var(--accent); box-shadow: 0 18px 50px -28px var(--accent); }
.tier-pro .tier-promise { color: var(--accent2); }
.tier-badge { position: absolute; top: -11px; left: 20px; background: var(--accent); color: #fff; font-size: 12px;
  font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price-card.current { border-color: var(--ok); }
.claim, .pitch h1, .ladder, .tier-promise, .brand .word { word-spacing: 0.12em; }
.clip .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.clip .actions > * { font-size: 13px; padding: 7px 8px; min-width: 0; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.clip .actions > .primary, .clip .actions > a.button { grid-column: 1 / -1; }
.source-head button { font-size: 14px; padding: 7px 12px; }

/* Sprachauswahl mit Flaggen */
.lang-pick { position: relative; margin-left: auto; }
.lang-btn { gap: 8px; padding: 7px 10px 7px 9px; font-size: 14px; background: #141127; }
.flag { width: 21px; height: 14px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.chev { width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); margin-left: 2px; transition: transform .15s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-1px, -1px); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: 5px;
  min-width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); animation: pop .16s var(--ease); }
.lang-menu button { width: 100%; justify-content: flex-start; gap: 10px; border: none; background: none;
  padding: 8px 10px; font-size: 14px; border-radius: 9px; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: #241f3b; outline: none; }
.lang-menu button.current { color: var(--link); font-weight: 700; }

/* „Continue with Google“ nach Googles Vorgaben: weiß, grauer Rand, G links (12 px Abstand, 10 px zum Text) */
.provider-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  border-radius: var(--r-in); font-weight: 600; }
.providers a.provider-google:link, .providers a.provider-google:visited { color: #1F1F1F; }
.provider-google { background: #FFFFFF; border: 1px solid #747775; padding: 10px 12px;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 500; font-size: 15px; }
.provider-google:hover { filter: none; background: #F7F8F8; }
.provider-logo { width: 18px; height: 18px; flex: none; }

/* Hochladen: Name gekürzt, Prozent gut lesbar, Restzeit darunter */
.upload-progress { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #141127; }
.up-head { display: flex; align-items: baseline; gap: 12px; }
.up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px;
  color: var(--text); }
.up-pct { font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; color: var(--text); }
.upload-progress .progress { height: 10px; margin-top: 8px; border-radius: 5px; }
.upload-progress .bar { border-radius: 5px; transition: width .3s var(--ease); }
.up-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .create-grid { grid-template-columns: minmax(0, 1fr); } }
.upload-progress { min-width: 0; max-width: 100%; }

/* Zu wenige Minuten: Upgrade direkt anbieten */
.quota-help { margin-top: 14px; padding: 16px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: linear-gradient(180deg, #231b45, #18152a); animation: pop .22s var(--ease); }
.quota-title { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.quota-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.quota-actions .hint { width: 100%; margin: 0; }
.quota-actions.compact { flex-direction: column; align-items: stretch; margin-top: 8px; }
.quota-actions.compact button { font-size: 13px; padding: 8px 10px; justify-content: flex-start; text-align: left; }
.quota-link { font-size: 14px; }
.quota-actions.compact .quota-link { font-size: 13px; }

/* Menü + Upload-Leiste bleiben gemeinsam oben stehen */
.topbar { position: sticky; top: 0; z-index: 20; }
.topbar .nav { position: static; }
.upload-progress.dock { margin: 6px 0 4px; padding: 10px 14px; border-color: var(--accent);
  background: rgba(24, 21, 42, .94); backdrop-filter: blur(8px); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8); }
.dock .up-icon { color: var(--accent2); width: 18px; height: 18px; animation: bob 1.6s ease-in-out infinite; }
.dock .up-pct { font-size: 18px; }
.dock .progress { height: 8px; margin-top: 6px; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.uploading .next-box { top: 170px; }

/* Facecam beim Hochladen: automatisch (Standard) oder Ecke */
.auto-cam { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #141127; cursor: pointer; color: var(--text); }
.auto-cam input { margin-top: 4px; flex: none; }
.auto-cam:has(input:checked) { border-color: var(--accent); background: #231b45; }
.auto-cam-text { display: flex; flex-direction: column; gap: 2px; }
.auto-cam-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.auto-cam-text strong .ic { color: var(--accent2); }
.auto-cam-text small { color: var(--muted); font-size: 13px; }
.pick-or { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.facecam-pick:has(.auto-cam input:checked) .corner-box { opacity: .55; }

/* Facecam im Clip und im Bearbeiten-Dialog */
.cam-line { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.cam-line.ok { color: var(--ok); }
.cam-line.warn { color: var(--warn); }
.cam-line .link-btn { padding: 0; font-size: 13px; color: var(--link); text-decoration: underline; }
.cam-line .ic { width: 1em; height: 1em; }
.cam-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cam-section h3 { margin: 0 0 4px; font-size: 17px; }
.cam-status { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.cam-frame { position: relative; border-radius: 10px; overflow: hidden; background: #000; cursor: crosshair;
  touch-action: none; user-select: none; aspect-ratio: 16 / 9; }
.cam-still { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cam-frame .facecam-box { pointer-events: none; }
.cam-actions { margin-top: 6px; }

/* Kanäle: Schritte für Nutzer, „Bald verfügbar“, Vertrauen */
.trust { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.trust .ic { color: var(--ok); }
.user-steps ol { margin: 4px 0 6px; padding-left: 20px; font-size: 14px; color: var(--muted); display: flex;
  flex-direction: column; gap: 4px; }
.user-steps .hint { margin: 0 0 4px; }
.soon-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent2); border: 1px solid var(--accent2);
  border-radius: 999px; padding: 1px 9px; }
.channel a.button.connect { align-self: stretch; padding: 10px 14px; }
.channel a.button.connect.secondary { background: #241f3b; border: 1px solid var(--line); color: var(--text);
  align-self: flex-start; }
p.hint.trust { margin-bottom: 14px; }
#channels { margin-bottom: 24px; }
.channel a.button.connect:not(.secondary) { margin-top: auto; }
.tiktok-lock { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tiktok-lock .hint { margin: 0; }
.target.locked > label { opacity: .6; }

/* Rechtsseiten (Impressum, Datenschutz, AGB) */
.legal-head { max-width: 760px; margin: 0 auto; padding: 28px 20px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-brand { font-family: "Inter Display", Inter, system-ui, sans-serif; font-weight: 800; font-style: italic;
  font-size: 26px; color: var(--text); text-decoration: none; }
.legal-lang { font-size: 14px; color: var(--muted); }
.legal-lang a { color: var(--muted); }
.legal-lang a[aria-current="page"] { color: var(--text); font-weight: 700; text-decoration: none; }
.legal { max-width: 760px; margin: 0 auto; padding: 8px 20px 40px; line-height: 1.65; }
.legal h1 { font-size: 34px; margin: 28px 0 6px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal h3 { font-size: 16px; margin: 20px 0 4px; }
.legal p, .legal li { color: #d9d5ec; max-width: 70ch; }
.legal ul { padding-left: 20px; }
.legal .meta { color: var(--muted); font-size: 14px; }
.legal .legal-todo { color: var(--accent2); }
.legal-links a { color: inherit; }
