/* CONTENTFABRIK – design system "Graphit" (v3, 27.11.2026)
   Calm and neutral: anthracite surfaces, one blue for actions, round buttons, generous space. Light mode with
   the same structure (toggle in the top bar, stored per browser). Tokens first, then shell, surfaces, controls.
   Documentation: docs/DESIGN_SYSTEM.md */
:root, .qr-bg {
  /* surfaces: neutral anthracite, three steps */
  --bg: #1c1c1e;
  --bg-1: #242426;
  --bg-2: #2c2c2e;
  --bg-3: #3a3a3c;
  --ink: 255 255 255;                 /* tint for hairlines and hovers: rgb(var(--ink) / .08) */
  --line: rgb(var(--ink) / .09);
  --line-strong: rgb(var(--ink) / .16);
  /* text */
  --text: #f5f5f7;
  --text-2: #c9c9ce;
  --muted: #98989f;
  /* accents: blue acts, the others only mark data */
  --blue: #2f8cff;
  --blue-hover: #4f9eff;
  --cyan: #5ac8f5;
  --violet: #9d8cff;
  --magenta: #f06bd0;
  --accent: var(--blue);
  --accent-soft: rgba(47, 140, 255, .16);
  --accent-line: rgba(47, 140, 255, .55);
  --ok: #34c77b;
  --warn: #f0b23a;
  --err: #ff6961;
  --warn-text: #f3dcA6;
  --info-text: #cfe2ff;
  --err-text: #ffc9c6;
  --bar: rgba(28, 28, 30, .8);        /* top bar / tab bar, translucent */
  --scrim: rgba(0, 0, 0, .55);
  --chip-base: rgba(28, 28, 30, .7);
  --card-shadow: none;
  --on-accent: #fff;
  color-scheme: dark;
}
:root {
  /* shape, depth, motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 980px;
  --radius: var(--r-md);
  --shadow-pop: 0 24px 64px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  --blur: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: .16s;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI Variable", Inter, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI Variable", Inter, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --side: 240px;
  /* names used by older views and inline styles */
  --near-black: var(--bg);
  --navy: var(--bg-2);
  --rose: var(--accent);
  --amber: var(--cyan);
  --accent-2: var(--violet);
  --line-hi: var(--accent-line);
  --glass: var(--bg-1);
  --glass-strong: var(--bg-2);
  --glass-hi: rgb(var(--ink) / .035);
  --input: var(--bg);
  --panel: var(--bg-2);
}
/* Light mode: light grey page, white cards, the same blue a step darker for contrast. */
:root[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-1: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #e8e8ed;
  --ink: 0 0 0;
  --line: rgb(var(--ink) / .1);
  --line-strong: rgb(var(--ink) / .2);
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --blue: #0a6fdb;
  --blue-hover: #0b7cf2;
  --cyan: #0a84b8;
  --violet: #6a55e0;
  --magenta: #c63aa6;
  --accent-soft: rgba(10, 111, 219, .1);
  --accent-line: rgba(10, 111, 219, .5);
  --ok: #1f9d57;
  --warn: #b26a00;
  --err: #d7372f;
  --warn-text: #7a4a00;
  --info-text: #0b4a94;
  --err-text: #9c1f18;
  --bar: rgba(245, 245, 247, .8);
  --scrim: rgba(0, 0, 0, .32);
  --chip-base: #ffffff;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
  --shadow-pop: 0 24px 64px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
  --input: #ffffff;
  color-scheme: light;
}
:root[data-theme="light"] .qr-bg { color-scheme: dark; }
:root[data-motion="off"] { --blur: 0px; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.1; margin: 0 0 8px; font-weight: 600; letter-spacing: -.022em; }
h2 { font-size: 17px; margin: 0 0 12px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 13.5px; margin: 0 0 12px; font-weight: 600; color: var(--text); letter-spacing: 0; }
h4 { font-size: 12.5px; margin: 0 0 8px; font-weight: 600; color: var(--muted); }
p { margin: 0 0 8px; }
code, kbd { font-family: var(--mono); font-size: 12px; }
code { background: var(--bg-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
::selection { background: var(--accent-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(var(--ink) / .14); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgb(var(--ink) / .24); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px 14px; background: var(--bg-1); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: var(--text); font: 650 12.5px/1 var(--font-display); letter-spacing: .09em; border-radius: var(--r-sm); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--muted); }
.brand-mark { width: 28px; height: 28px; flex: none; display: block; border-radius: 7px; }
.tagline { display: none; }

.nav { flex: 1; }
.nav .group { color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 18px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0; border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.nav a .ico { color: var(--muted); transition: color var(--fast) var(--ease); }
.nav a:hover { background: rgb(var(--ink) / .05); color: var(--text); text-decoration: none; }
.nav a.active { background: rgb(var(--ink) / .08); color: var(--text); font-weight: 600; }
.nav a.active .ico { color: var(--blue); }
.nav details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; border-radius: var(--r-sm); }
.nav details.more > summary::-webkit-details-marker { display: none; }
.nav details.more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--fast) var(--ease); margin-right: 4px; }
.nav details.more[open] > summary::after { transform: rotate(45deg); }

.side-foot { margin-top: 14px; display: grid; gap: 8px; }
.artist-pill { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 11.5px; line-height: 1.3; }
.artist-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); flex: none; }
.artist-pill b { display: block; font-size: 13px; }
.jobs-mini { padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 12px; color: var(--muted); }

.main { padding: 0 36px 72px; width: 100%; max-width: 1440px; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; height: 56px; margin: 0 -36px 28px; padding: 0 36px; background: var(--bar); backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar .crumb { display: flex; align-items: center; gap: 9px; font: 600 14px var(--font-display); }
.topbar .crumb .ico { color: var(--muted); }
.nav-toggle { display: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
a.pill:hover { text-decoration: none; border-color: var(--line-strong); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill .ico { width: 13px; height: 13px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); max-width: 70ch; font-size: 16px; line-height: 1.4; }
#view { animation: view-in .18s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.reels { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.dash { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }

/* ---------- Surfaces ---------- */
.card { position: relative; min-width: 0; padding: 22px; border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.card.tight { padding: 12px; }
.card.neon { border-color: var(--line-strong); }
a.card { color: inherit; text-decoration: none; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
a.card:hover { border-color: var(--line-strong); background: var(--bg-2); }

.stat .num { font: 650 28px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: 12px; }
.kpi { display: flex; align-items: center; gap: 14px; }
.kpi .chip { width: 40px; height: 40px; flex: none; }
.chip { display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--accent-soft); }
.chip .ico { width: 19px; height: 19px; }
.chip.v { color: var(--violet); background: rgba(139, 123, 255, .14); }
.chip.m { color: var(--cyan); background: rgba(95, 212, 255, .12); }
.chip.g { color: var(--ok); background: rgba(62, 207, 142, .12); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.spacer { flex: 1; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }

/* older hero and quick links (still used by some views) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; margin-bottom: 16px; }
.hero .eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; grid-column: 1 / -1; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--text); transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.quick a:hover { text-decoration: none; border-color: var(--line-strong); background: var(--bg-2); }
.quick .chip { width: 36px; height: 36px; }
.quick b { display: block; font-size: 13.5px; }
.quick span { font-size: 12px; color: var(--muted); }

/* ---------- Controls ---------- */
button, .btn { font: 500 14px/1.2 var(--font); border: 1px solid transparent; background: rgb(var(--ink) / .08); color: var(--text); border-radius: var(--r-pill); padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform .08s; }
button:hover, .btn:hover { background: rgb(var(--ink) / .14); text-decoration: none; }
button:active:not(:disabled), .btn:active { transform: scale(.98); }
button .ico, .btn .ico { width: 16px; height: 16px; }
button.primary, .btn.primary { background: var(--blue); border-color: transparent; color: var(--on-accent); font-weight: 500; }
button.primary:hover, .btn.primary:hover { background: var(--blue-hover); border-color: transparent; }
button.ghost { background: transparent; border-color: transparent; color: var(--accent); }
button.ghost:hover { background: rgb(var(--ink) / .06); border-color: transparent; color: var(--text); }
button.danger { color: var(--err); }
button.danger:hover { border-color: rgba(242, 112, 107, .5); background: rgba(242, 112, 107, .1); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.sm, .btn.sm { padding: 5px 12px; font-size: 12.5px; }

input, select, textarea { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 10px; width: 100%; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:hover, select:hover, textarea:hover { border-color: rgb(var(--ink) / .22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
select option, select optgroup { background: var(--bg-2); color: var(--text); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--blue); }
input[type=range] { padding: 0; border: 0; background: transparent; accent-color: var(--cyan); }
input[type=range]:focus { box-shadow: none; }
textarea { min-height: 80px; resize: vertical; }
label.field { display: block; }
label.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.tag { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); margin: 0 4px 4px 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, currentColor 12%, transparent); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-ok { color: var(--ok); } .s-warn { color: var(--warn); } .s-err { color: var(--err); } .s-run { color: var(--cyan); } .s-idle { color: var(--muted); }
.s-run::before, .pill.s-run .dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
tr:last-child > td { border-bottom: 0; }
tbody tr:hover td, tr:hover td { background: rgb(var(--ink) / .025); }
td { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); background: #000; display: block; }
.thumb.reel { aspect-ratio: 9/16; }
.media-card { cursor: pointer; padding: 10px; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.media-card:hover { border-color: var(--line-strong); background: var(--bg-2); }
.media-card .title { font-weight: 600; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dropzone { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 28px; text-align: center; color: var(--muted); transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease); cursor: pointer; }
.dropzone .ico { width: 26px; height: 26px; color: var(--text-2); display: block; margin: 0 auto 8px; }
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: var(--accent-soft); color: var(--text); }
.progress { height: 4px; background: rgb(var(--ink) / .08); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; border-radius: inherit; background: var(--blue); transition: width .4s var(--ease); }

.wave { width: 100%; height: 120px; display: block; background: #05070a; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.hook { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; transition: border-color var(--fast) var(--ease); }
.hook:hover { border-color: var(--line-strong); }
.hook.sel { border-color: var(--accent-line); background: var(--accent-soft); }
.hook ul { margin: 6px 0 0 16px; padding: 0; color: var(--text-2); font-size: 12.5px; }
.score { font-weight: 650; color: var(--cyan); font-variant-numeric: tabular-nums; }
.notice { border: 1px solid rgba(245, 185, 66, .3); background: rgba(245, 185, 66, .08); color: var(--warn-text); border-radius: var(--r-md); padding: 10px 14px; font-size: 13px; }
.notice.info { border-color: color-mix(in srgb, var(--blue) 30%, transparent); background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--info-text); }
.notice.err { border-color: rgba(242, 112, 107, .35); background: rgba(242, 112, 107, .09); color: var(--err-text); }

.video-preview { width: 100%; max-height: 72vh; aspect-ratio: 9/16; background: #000; border-radius: var(--r-md); border: 1px solid var(--line); }
.video-preview.landscape { aspect-ratio: 16/9; }

/* Production Studio: format, text styles, preview stills */
.format-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.format-opt { display: flex; gap: 12px; align-items: center; justify-content: flex-start; text-align: left; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: transparent; color: var(--text); cursor: pointer; }
.format-opt.on { border-color: var(--blue); background: var(--accent-soft); }
.format-shape { flex: none; border: 1.5px solid var(--text-2); border-radius: 3px; }
.format-opt.on .format-shape { border-color: var(--cyan); }
.format-shape.vertical { width: 22px; height: 39px; }
.format-shape.landscape { width: 44px; height: 25px; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.style-opt { display: grid; gap: 5px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; }
.style-opt.on { border-color: var(--blue); background: var(--accent-soft); }
.style-sample { height: 54px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 2px; padding: 4px; border-radius: 6px; color: #fff; overflow: hidden; line-height: 1.1; background: linear-gradient(160deg, #1a2a44, #2a2350 60%, #0b0f1a); }
.preview-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.preview-strip.landscape { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.preview-strip figure { margin: 0; }
.preview-strip img, .preview-missing { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; background: #000; }
.preview-strip.vertical img, .preview-strip.vertical .preview-missing { aspect-ratio: 9/16; object-fit: cover; }
.preview-strip.landscape img, .preview-strip.landscape .preview-missing { aspect-ratio: 16/9; object-fit: cover; }
.preview-missing { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.preview-strip figcaption { font-size: 11.5px; margin-top: 4px; line-height: 1.3; }
.lyrics-lines { max-height: 260px; overflow: auto; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--input); }
.fmt-badge { font: 500 11px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--bg-3); color: var(--text-2); }
.new-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; color: var(--on-accent); background: var(--blue); }
.timeline { display: flex; height: 30px; border-radius: 6px; overflow: hidden; }
.timeline > div { border-right: 2px solid var(--bg-1); font: 500 11px var(--mono); padding: 6px 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.seg-0 { background: color-mix(in srgb, var(--blue) 50%, transparent); } .seg-1 { background: rgba(139, 123, 255, .5); }
.seg-2 { background: rgba(95, 212, 255, .42); } .seg-3 { background: color-mix(in srgb, var(--blue) 30%, transparent); }
.seg-4 { background: rgba(139, 123, 255, .3); } .seg-5 { background: rgba(95, 212, 255, .26); }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--line-strong); padding: 11px 14px 11px 34px; border-radius: var(--r-md); max-width: 420px; box-shadow: var(--shadow-pop); animation: toast-in .22s var(--ease); position: relative; }
.toast::before { content: ""; position: absolute; left: 14px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.toast.err::before { background: var(--err); }
.toast.ok::before { background: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-bg { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 40; padding: 20px; animation: fade-in .16s ease-out; }
.modal { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px; width: min(780px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-pop); animation: modal-in .2s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.scene-pick { position: relative; cursor: pointer; border: 2px solid transparent; border-radius: 10px; transition: border-color var(--fast) var(--ease); }
.scene-pick:hover { border-color: var(--line-strong); }
.scene-pick.on { border-color: var(--blue); }
.scene-pick .cap { font-size: 11.5px; color: var(--muted); padding: 3px 2px; }

/* Empty states: a strip of skyline, one sentence, one action */
.empty { text-align: center; color: var(--muted); padding: 40px 24px 32px; }
.empty::before { content: none; display: block; height: 44px; width: 240px; max-width: 100%; margin: 0 auto 18px; background: #2a3344;
  --b: linear-gradient(#000, #000);
  -webkit-mask: var(--b) 0 100% / 100% 1px no-repeat, var(--b) 6% 100% / 7% 55% no-repeat, var(--b) 18% 100% / 4% 80% no-repeat, var(--b) 28% 100% / 11% 42% no-repeat, var(--b) 43% 100% / 5% 100% no-repeat, var(--b) 54% 100% / 8% 62% no-repeat, var(--b) 67% 100% / 5% 88% no-repeat, var(--b) 80% 100% / 10% 50% no-repeat, var(--b) 94% 100% / 5% 70% no-repeat;
  mask: var(--b) 0 100% / 100% 1px no-repeat, var(--b) 6% 100% / 7% 55% no-repeat, var(--b) 18% 100% / 4% 80% no-repeat, var(--b) 28% 100% / 11% 42% no-repeat, var(--b) 43% 100% / 5% 100% no-repeat, var(--b) 54% 100% / 8% 62% no-repeat, var(--b) 67% 100% / 5% 88% no-repeat, var(--b) 80% 100% / 10% 50% no-repeat, var(--b) 94% 100% / 5% 70% no-repeat; }

/* ---------- YouTube import ---------- */
.yt-import h3 { display: flex; align-items: center; gap: 8px; }
.yt-import h3 .ico { color: var(--rose); }
.yt-job { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 4%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); animation: toast-in .25s ease-out; }
.yt-preview { display: flex; gap: 14px; margin-top: 12px; padding: 12px; border-radius: 12px; background: rgb(var(--ink) / .03); border: 1px solid var(--line); animation: toast-in .25s ease-out; }
.yt-preview > img { width: 180px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.yt-preview .grow { flex: 1; min-width: 0; }
@media (max-width: 800px) { .yt-preview { flex-direction: column; } .yt-preview > img { width: 100%; } }
.yt-pill { color: var(--err-text); border-color: rgba(242, 112, 107, .4); background: rgba(242, 112, 107, .1); }
.pill .ico { width: 13px; height: 13px; }
.thumb-wrap { position: relative; }
.thumb-dur { position: absolute; right: 6px; bottom: 6px; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-variant-numeric: tabular-nums; }
.yt-embed { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Key Finder ---------- */
.kf-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1100px) { .kf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.chroma { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; height: 150px; align-items: end; }
.chroma-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.chroma-col span { font-size: 10.5px; color: var(--muted); }
.chroma-bar { width: 100%; border-radius: 4px 4px 2px 2px; background: rgba(137, 149, 168, .3); }
.chroma-bar.in { background: linear-gradient(180deg, var(--rose), color-mix(in srgb, var(--blue) 35%, transparent)); }
.chroma-bar.tonic { background: linear-gradient(180deg, var(--magenta), rgba(139, 123, 255, .4)); }

/* ---------- Release calendar ---------- */
.status-filter { --c: var(--muted); border-color: color-mix(in srgb, var(--c) 30%, transparent); color: var(--text-2); }
.status-filter .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.status-filter.on { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); color: var(--text); }
.cal-card { padding: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head > div { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 2px 8px 6px; }
.cal-cell { min-height: 108px; padding: 6px; border-radius: 10px; background: rgb(var(--ink) / .025); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: border-color .15s, background .15s; }
.cal-cell.out { opacity: .45; }
.cal-cell.today { border-color: color-mix(in srgb, var(--blue) 55%, transparent); box-shadow: inset 0 0 18px color-mix(in srgb, var(--blue) 8%, transparent); }
.cal-cell.today .cal-num { color: var(--rose); font-weight: 700; }
.cal-cell.drop, .cal-col.drop { border-color: var(--rose); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.cal-num { font-size: 12px; color: var(--muted); }
.rel-chip { --c: var(--rose); display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none;
  background: color-mix(in srgb, var(--c) 20%, var(--chip-base)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); cursor: grab; min-width: 0; }
.rel-chip:hover { text-decoration: none; filter: brightness(1.15); }
.rel-chip span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-chip img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; flex: none; }
.rel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.rel-deadline { font-size: 11px; color: var(--text-2); padding: 1px 6px; border-left: 2px solid rgba(137, 149, 168, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rel-deadline:hover { color: var(--text); text-decoration: none; }
.rel-deadline.done { opacity: .5; text-decoration: line-through; }
.rel-deadline.overdue { border-left-color: var(--err); color: var(--err-text); }
.rel-more { font-size: 11px; color: var(--muted); padding-left: 6px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-col { min-height: 300px; padding: 8px; border-radius: 10px; background: rgb(var(--ink) / .025); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-col.today { border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.cal-col-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rel-card { --c: var(--rose); display: block; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--c) 12%, var(--chip-base)); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); cursor: grab; }
.rel-card:hover { text-decoration: none; }
.rel-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.rel-row { --c: var(--rose); display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; border-left: 3px solid var(--c); margin-top: 8px; background: rgb(var(--ink) / .02); }
.rel-row:hover { text-decoration: none; background: color-mix(in srgb, var(--blue) 5%, transparent); }
.rel-row .grow { flex: 1; min-width: 0; }
.rel-row-date { width: 150px; }
.rel-cover-sm { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.empty-cover { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); background: rgb(var(--ink) / .04); border: 1px dashed rgba(137, 149, 168, .35); border-radius: 10px; }
.rel-cover { width: 150px; height: 150px; flex: none; cursor: pointer; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 34px rgba(0, 0, 0, .45); }
.rel-cover img, .rel-cover .empty-cover { width: 100%; height: 100%; object-fit: cover; }
.rel-countdown { font-size: 22px; font-weight: 700; color: var(--rose); }
.rel-percent { font-size: 30px; font-weight: 700; min-width: 80px; }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.task .grow { flex: 1; min-width: 0; }
.task input[type=checkbox] { width: 18px; height: 18px; }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task.skipped { opacity: .5; }
.task.overdue .task-title { color: var(--err-text); }
.task-edit { padding: 10px; margin: 4px 0 8px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 4%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent); }
@media (max-width: 1100px) { #rel-grid { grid-template-columns: minmax(0, 1fr) !important; } .rel-row-date { width: 110px; } }

/* Color Grading: embedded Grading Lab (web/grading/) */
.grading-frame{display:block;width:100%;height:calc(100vh - 120px);min-height:560px;border:1px solid var(--line,#252a33);border-radius:14px;background:#0b0d10}

/* ---------- Content Calendar ---------- */
.cf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--rose)); flex: none; }
.cf-entry { --c: var(--rose); display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 7px; border-radius: 7px; font-size: 11.5px; text-align: left; color: var(--text);
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); min-width: 0; }
.cf-entry:hover { filter: brightness(1.2); }
.cf-entry .cf-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cf-entry.posted { opacity: .65; }
.cf-entry.skipped { opacity: .4; text-decoration: line-through; }
.cf-entry.idea { border-style: dashed; }
.cf-ok { color: var(--ok); font-weight: 700; }
.cf-card { --c: var(--rose); display: block; width: 100%; text-align: left; padding: 8px; border-radius: 9px; font-size: 12.5px; color: var(--text);
  background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 3px solid var(--c); }
.cf-list-day { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cf-list-day.today .cf-list-date b { color: var(--rose); }
.cf-list-date { width: 130px; flex: none; }
.cf-row { --c: var(--rose); display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; margin-bottom: 6px; border-radius: 9px;
  background: rgb(var(--ink) / .025); border: 1px solid var(--line); border-left: 3px solid var(--c); color: var(--text); flex-wrap: wrap; }
.cf-row:hover { border-color: var(--line-hi); }
.cf-cap { border-left: 2px solid var(--line-hi); padding: 4px 8px; margin-top: 6px; }
.cf-slot td { border-bottom: 0; }
.cf-slot-detail td { padding-top: 0; color: var(--text-2); }
.cal-cell { cursor: pointer; }
.week-card .list-row { align-items: flex-start; }
.issue { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 99px; color: var(--warn); border: 1px solid rgba(251, 191, 36, .35); margin: 2px 4px 0 0; }
@media (max-width: 800px) { .cf-list-day { flex-direction: column; gap: 6px; } .cf-list-date { width: auto; } }

/* ---------- Hochladen ---------- */
.up-item { --c: var(--rose); display: flex; gap: 16px; margin-bottom: 12px; border-left: 3px solid var(--c); }
.up-item.done { opacity: .6; }
.up-media { width: 150px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.up-video { width: 150px; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: contain; }
.up-video.landscape { aspect-ratio: 16 / 9; }
.up-video.placeholder { display: grid; place-items: center; color: var(--muted); font-size: 12px; border: 1px dashed var(--line); background: rgb(var(--ink) / .02); }
.up-body { flex: 1; min-width: 0; }
.up-time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c); }
.up-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.up-cap { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: rgb(var(--ink) / .025); }
.up-cap.posted { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .06); }
.up-text { white-space: pre-wrap; margin-top: 6px; color: var(--text-2); }
@media (max-width: 800px) { .up-item { flex-direction: column; } .up-media, .up-video { width: 100%; max-width: 260px; } }

/* ---------- Schnell-Review (Swipe) ---------- */
.qr-bg { position: fixed; inset: 0; z-index: 50; background: rgba(3, 6, 14, .94); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; padding: 14px 16px 18px; overflow: auto; }
.qr-top { display: flex; align-items: center; gap: 10px; width: min(980px, 100%); color: var(--muted); font-variant-numeric: tabular-nums; }
.qr-stage { position: relative; display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 12px; width: min(980px, 100%); flex: 1; min-height: 0; }
.qr-card { position: relative; height: min(68vh, 640px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; touch-action: none; user-select: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); cursor: grab; transition: transform .25s, opacity .25s; }
.qr-card.landscape { height: auto; width: min(640px, 70vw); aspect-ratio: 16 / 9; }
.qr-card:active { cursor: grabbing; }
.qr-card video, .qr-card img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.qr-deck { position: relative; flex: none; }
.qr-under { position: absolute; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto; transform: scale(.94) translateY(12px); opacity: .45; pointer-events: none; }
.qr-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; pointer-events: none; }
.qr-warn { color: var(--warn); margin-top: 3px; }
.qr-stamp { position: absolute; top: 26px; padding: 4px 12px; border: 3px solid; border-radius: 8px; font-weight: 800; letter-spacing: 2px; opacity: 0; transition: opacity .1s; pointer-events: none; }
.qr-stamp.ok { left: 18px; color: var(--ok); transform: rotate(-12deg); }
.qr-stamp.no { right: 18px; color: var(--err); transform: rotate(12deg); }
.qr-stamp.re { left: 50%; transform: translateX(-50%); color: var(--rose); }
.qr-card.hint-ok .qr-stamp.ok, .qr-card.hint-no .qr-stamp.no, .qr-card.hint-re .qr-stamp.re { opacity: 1; }
.qr-card.fly-approve { transform: translateX(120vw) rotate(25deg) !important; opacity: 0; }
.qr-card.fly-reject { transform: translateX(-120vw) rotate(-25deg) !important; opacity: 0; }
.qr-card.fly-regen { transform: translateY(-110vh) !important; opacity: 0; }
.qr-side { width: 260px; flex: none; max-height: 68vh; overflow: auto; }
.qr-cap { border-left: 2px solid var(--line-hi); padding: 4px 8px; margin-top: 10px; white-space: pre-wrap; color: var(--text-2); }
.qr-actions { display: flex; gap: 22px; margin-top: 16px; }
.qr-btn { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; display: grid; place-items: center; padding: 0; border: 2px solid; background: rgb(var(--ink) / .04); }
.qr-btn.ok { color: var(--ok); border-color: rgba(52, 211, 153, .6); }
.qr-btn.no { color: var(--err); border-color: rgba(248, 113, 113, .6); }
.qr-btn.re { color: var(--rose); border-color: color-mix(in srgb, var(--blue) 50%, transparent); width: 52px; height: 52px; font-size: 22px; align-self: center; }
.qr-btn:hover:not(:disabled) { transform: scale(1.08); }
.qr-keys { margin-top: 10px; text-align: center; }
.qr-done { margin: auto; text-align: center; }
@media (max-width: 900px) { .qr-side { display: none; } .qr-card { height: min(62vh, 560px); } }
@media (prefers-reduced-motion: reduce) { .qr-card { transition: none; } }

/* ---------- Performance-Studio ---------- */
.pf-timeline { position: relative; margin-top: 6px; }
.pf-axis, .pf-sections { position: relative; height: 18px; }
.pf-axis span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.pf-axis span:first-child { transform: none; }
.pf-sections span { position: absolute; top: 2px; height: 14px; font-size: 10.5px; line-height: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 4px; overflow: hidden; white-space: nowrap; }
.pf-lanes { position: relative; min-height: 34px; padding: 6px 0; border-top: 1px solid var(--line); }
.pf-lane { position: relative; height: 20px; margin: 3px 0; border-radius: 5px; background: rgb(var(--ink) / .025); }
.pf-lane-name { position: absolute; left: 6px; top: 0; z-index: 2; font-size: 11px; line-height: 20px; color: var(--text); pointer-events: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-range { position: absolute; top: 3px; height: 14px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 75%, transparent), rgba(95, 212, 255, .75)); }
.pf-range.rep { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--blue) 45%, transparent) 0 5px, color-mix(in srgb, var(--blue) 18%, transparent) 5px 10px); box-shadow: none; }
.pf-range.unsure { background: repeating-linear-gradient(135deg, rgba(251, 191, 36, .6) 0 5px, rgba(251, 191, 36, .2) 5px 10px); }
.pf-ex { position: absolute; top: 0; bottom: 0; border: 1px dashed rgba(139, 123, 255, .55); border-radius: 6px; background: rgba(139, 123, 255, .05); pointer-events: none; z-index: 1; }
.pf-ex.on { border-style: solid; background: rgba(139, 123, 255, .1); }
.pf-ex b { position: absolute; right: 4px; bottom: -1px; font-size: 10px; color: var(--magenta); font-weight: 600; white-space: nowrap; }
.pf-empty { padding: 6px 2px; }
.pf-key { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: 0; }
.pf-k-take { background: var(--rose); } .pf-k-rep { background: repeating-linear-gradient(135deg, var(--rose) 0 3px, transparent 3px 6px); }
.pf-k-unsure { background: var(--warn); } .pf-k-ex { border: 1px dashed var(--magenta); }
.pf-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pf-row-main { flex: 1; min-width: 0; }
.pf-label { width: 160px; padding: 4px 8px; font-weight: 600; }
.pf-add { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 8px; margin-top: 12px; }
.pf-shoot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.pf-drop { margin: 10px 0 4px; padding: 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.pf-progress { min-height: 18px; color: var(--rose); }
.pf-take { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid rgb(var(--ink) / .06); }
.pf-take img, .pf-noposter { width: 72px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: rgb(var(--ink) / .04); display: grid; place-items: center; color: var(--muted); }
.pf-take-main { flex: 1; min-width: 0; }
.pf-take-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pf-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.pf-strip.land { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pf-strip figure { margin: 0; }
.pf-strip img { width: 100%; border-radius: 8px; display: block; }
.pf-strip figcaption { font-size: 11.5px; margin-top: 4px; }
@media (max-width: 1100px) { .pf-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pf-add { grid-template-columns: 1fr 1fr; } .pf-row { flex-wrap: wrap; } .pf-row-main { flex: 1 1 calc(100% - 34px); } .pf-label { width: 100%; } .pf-take { flex-wrap: wrap; } }
.pf-add[hidden] { display: none; }
.pf-player { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-hi); }
.pf-player .row { flex-wrap: wrap; }
.pf-time { font-variant-numeric: tabular-nums; font-size: 15px; min-width: 120px; }
.pf-track { position: relative; height: 26px; margin-top: 8px; }
.pf-track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: rgb(var(--ink) / .08); }
.pf-mark { position: absolute; top: 8px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--blue) 45%, transparent); pointer-events: none; }
.pf-sel { position: absolute; top: 6px; height: 14px; border-radius: 3px; background: rgba(95, 212, 255, .35); border: 1px solid rgba(95, 212, 255, .9); pointer-events: none; }
.pf-sel[hidden] { display: none; }
.pf-player kbd { font: 600 10.5px var(--font); padding: 0 5px; margin-left: 4px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.pf-track input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; accent-color: var(--amber); cursor: pointer; }
.pf-libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-height: 55vh; overflow: auto; }
.pf-libitem { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 12.5px; }
.pf-libitem img, .pf-libitem .pf-noposter { width: 80px; height: 46px; object-fit: cover; border-radius: 6px; flex: none; }
.pf-libitem:has(input:checked) { border-color: var(--line-hi); background: color-mix(in srgb, var(--blue) 6%, transparent); }
.pf-folder { flex: 1; min-width: 200px; padding: 5px 9px; font-size: 12.5px; }

/* ---------- Lyrics Studio ---------- */
.ly-head, .ly-row { display: grid; grid-template-columns: 34px 150px 150px 1fr auto; gap: 8px; align-items: center; }
.ly-head { padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.ly-row { padding: 5px 0; border-bottom: 1px solid rgb(var(--ink) / .06); border-radius: 6px; }
.ly-row.now { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.ly-row.tap { background: rgba(139, 123, 255, .1); }
.ly-t { width: 76px; padding: 4px 6px; font-variant-numeric: tabular-nums; text-align: center; }
.ly-text { padding: 5px 8px; }
@media (max-width: 760px) { .ly-head { display: none; } .ly-row { grid-template-columns: 34px 1fr 1fr; } .ly-text { grid-column: 1 / -1; } }

/* Content calendar: rarely used actions behind "Mehr" */
.cal-more { position: relative; }
.cal-more > summary { list-style: none; cursor: pointer; }
.cal-more > summary::-webkit-details-marker { display: none; }
.cal-more-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 6px; padding: 8px; min-width: 200px; background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); border-radius: 12px; }
.cal-more-menu button { justify-content: flex-start; }

/* Cover-Maker */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cv-grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cv-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-hi); color: var(--text); cursor: pointer; min-height: 64px; }
.cv-opt span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.cv-opt:hover { border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.cv-opt.on { border-color: color-mix(in srgb, var(--blue) 70%, transparent); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.cv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cover-card img, .cv-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: #07090d; }
.cv-ph { display: grid; place-items: center; text-align: center; padding: 12px; }
.cover-card.busy .cv-ph { animation: cvpulse 1.6s ease-in-out infinite; }
@keyframes cvpulse { 50% { opacity: .55; } }
.cv-scene { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 16px; margin-top: 14px; align-items: start; }
.cv-time { font-size: 22px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
@media (max-width: 800px) { .cv-scene { grid-template-columns: 1fr; } }
.modal.wide { width: min(1080px, 100%); }
.modal .mb-sec { margin-top: 12px; }
.mb-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; }
.format-pick.mb-format { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Bildausschnitt (Reframing) */
.rf-modes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font-size: 13px; }
.rf-body { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.rf-body:has(.rf-h) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.rf-stage { position: relative; border-radius: 10px; overflow: hidden; background: #07090d; touch-action: none; user-select: none; }
.rf-stage img { display: block; width: 100%; filter: brightness(.55); pointer-events: none; }
.rf-win { position: absolute; box-sizing: border-box; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); backdrop-filter: brightness(1.8); -webkit-backdrop-filter: brightness(1.8); }
.rf-win.rf-drag { cursor: grab; border-color: var(--rose); }
.rf-times { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.rf-crops { display: grid; gap: 10px; transition: opacity .15s; }
.rf-crops.rf-land { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.rf-crops.rf-port { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.rf-crops.rf-busy { opacity: .45; }
.rf-crops figure { margin: 0; cursor: pointer; }
.rf-crops img { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--line); background: #07090d; }
.rf-crops figure.on img { border-color: var(--rose); }
.rf-crops figcaption { margin-top: 3px; line-height: 1.3; }
@media (max-width: 800px) { .rf-body, .rf-body:has(.rf-h) { grid-template-columns: 1fr; } }

/* Vorab-Prüfung im Monats-Batch */
.bc-acc { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-top: 8px; background: rgb(var(--ink) / .03); }
.bc-acc ul { margin: 6px 0 0; padding-left: 18px; }
.bc-acc li { margin: 3px 0; }
.bc-acc li.warn { color: var(--warn); } .bc-acc li.error { color: var(--err); } .bc-acc li.info { color: var(--muted); }
.bc-list { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Footage-Bedarf pro Kanal */
.fn-slot { margin: 2px 0 12px; }
.fn-line { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.fn-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--muted); }
.fn-dot.green { background: var(--ok); }
.fn-dot.yellow { background: var(--warn); }
.fn-dot.red { background: var(--err); }
.fn-line b { color: var(--text); }
.fn-row { padding: 7px 0; border-bottom: 1px solid var(--line); }
.fn-row:last-child { border-bottom: 0; }

/* Ablehngrund im Schnell-Review */
.qr-reasons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }

/* =========================================================
   Tokyo scene (web/js/background.js). Shown only where it sets the mood:
   as a panorama window at the top of the dashboard. Work views stay plain.
   ========================================================= */
#bg { display: none; position: absolute; z-index: 0; top: 0; left: var(--side); right: 0; height: 380px; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #04060c, #0f1a36 70%, #1d2f66);
  -webkit-mask-image: linear-gradient(#000 58%, transparent); mask-image: linear-gradient(#000 58%, transparent); }
body[data-view="dashboard"] #bg { display: none; }
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; display: block; opacity: 0; transition: opacity .9s ease; }
#bg.ready .bg-canvas { opacity: 1; }
.scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 13, .72) 0, rgba(7, 9, 13, .2) 46%, transparent 70%), linear-gradient(180deg, rgba(7, 9, 13, .35), transparent 30%); }

/* ---------- Dashboard ---------- */
.dash-window { position: relative; padding: 28px 0 32px; }
.dash-window h1 { font-size: 44px; margin: 0 0 10px; letter-spacing: -.03em; }
.dash-window .sub { color: var(--text-2); font-size: 19px; line-height: 1.35; max-width: 46ch; }
.dash-date { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-1); overflow: hidden; }
.steps a { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; color: var(--text); border-left: 1px solid var(--line); transition: background var(--fast) var(--ease); }
.steps a:first-child { border-left: 0; }
.steps a:hover { background: var(--bg-2); text-decoration: none; }
.steps .n { font: 600 12px var(--mono); color: var(--muted); width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.steps a.due .n { color: var(--on-accent); background: var(--blue); border-color: transparent; }
.steps b { display: block; font-weight: 600; }
.steps span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.figures { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 28px 0; }
.figures > a, .figures > div { padding: 0 20px; border-left: 1px solid var(--line); color: inherit; }
.figures > :first-child { padding-left: 0; border-left: 0; }
.figures a:hover { text-decoration: none; }
.figures a:hover .lbl { color: var(--text); }
.figures .num { font: 600 30px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figures .lbl { color: var(--muted); font-size: 12.5px; margin-top: 4px; transition: color var(--fast) var(--ease); }
.figures .num.hl { color: var(--blue); }
.rel-next { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.rel-next:last-child { border-bottom: 0; }
.rel-next:hover { text-decoration: none; }
.rel-next:hover b { color: var(--accent); }
.rel-next .when { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rel-next img, .rel-next .ph { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg-3); }

.reel-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.reel-strip a { color: inherit; }
.reel-strip a:hover { text-decoration: none; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b, .list-row .grow div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { display: flex; gap: 4px; height: 6px; border-radius: 99px; overflow: hidden; background: rgb(var(--ink) / .06); margin: 10px 0 12px; }
.bars > div { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.seg-opt { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg-opt button { border: 0; background: transparent; padding: 5px 14px; border-radius: var(--r-pill); color: var(--muted); }
.seg-opt button:hover { background: transparent; color: var(--text); }
.seg-opt button.on { background: var(--bg-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* ---------- Production Studio: settings rail left, result stays in view ---------- */
.studio-grid { grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); align-items: start; gap: 24px; }
.studio-grid > .stack:first-child { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); }
.studio-grid > .stack:first-child > * + * { margin-top: 0; }
.studio-grid > .stack:first-child > .card { background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.studio-grid > .stack:first-child > .card:last-child { border-bottom: 0; }
.studio-grid > .stack:last-child { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }

/* ---------- Mobile navigation ---------- */
.tabbar { display: none; }
.nav-scrim { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .grid.cols-4, .grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } .studio-grid > .stack:last-child { position: static; max-height: none; } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps a:nth-child(3) { border-left: 0; } .steps a:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 900px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  :root { --side: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: min(300px, 84vw); height: auto; transform: translateX(-102%); transition: transform .24s var(--ease); box-shadow: var(--shadow-pop); padding-bottom: 84px; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: var(--scrim); }
  .nav a { padding: 10px; font-size: 15px; }
  .main { padding: 0 16px 104px; }
  .topbar { margin: 0 -16px 20px; padding: 0 16px; height: 52px; }
  .topbar .pill.hide-sm { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--bar); backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; background: transparent; color: var(--muted); font: 500 10.5px var(--font); border-radius: var(--r-sm); min-height: 48px; }
  .tabbar a:hover, .tabbar button:hover { text-decoration: none; background: transparent; }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar .active { color: var(--text); }
  .tabbar .active .ico { color: var(--blue); }
  .toast-wrap { left: 12px; right: 12px; bottom: 84px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-5 { grid-template-columns: minmax(0, 1fr); }
  .grid[style*="grid-template-columns:minmax(260px"] { grid-template-columns: minmax(0, 1fr) !important; }
  #view > table { display: block; overflow-x: auto; }
  .kf-grid { grid-template-columns: minmax(0, 1fr); }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-grid { gap: 3px; }
  .rel-chip { padding: 2px 4px; font-size: 10px; }
  .rel-chip img { display: none; }
  .rel-deadline, .rel-more { display: none; }
  .cal-week { grid-template-columns: minmax(0, 1fr); }
  .cal-col { min-height: 0; }
  .rel-row { flex-wrap: wrap; }
  .rel-row > div[style*="width"] { width: 100% !important; }
  .rel-cover { width: 96px; height: 96px; }
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis .kpi { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card { padding: 16px; }
  h1 { font-size: 23px; }
  .dash-window { padding: 12px 0 20px; }
  .dash-window h1 { font-size: 30px; }
  .dash-window .sub { font-size: 16px; }
  #bg { height: 300px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .figures > :nth-child(odd) { padding-left: 0; border-left: 0; }
  .figures > :last-child { grid-column: 1 / -1; }
  .modal-bg { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  table { font-size: 13px; }
  .table-wrap, .card > table { display: block; overflow-x: auto; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 520px) { .quick, .steps { grid-template-columns: minmax(0, 1fr); } .steps a { border-left: 0; border-top: 1px solid var(--line); } .steps a:first-child { border-top: 0; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
:root[data-motion="off"] #view, :root[data-motion="off"] .modal, :root[data-motion="off"] .modal-bg, :root[data-motion="off"] .toast { animation: none; }

/* Untertitel-Fassung: video picker */
.sub-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sub-row:last-child { border-bottom: 0; }
.sub-row img, .sub-row .ph { width: 96px; height: 54px; object-fit: cover; border-radius: var(--r-sm, 8px); background: var(--bg-3); flex: none; }
.sub-row img.tall { object-fit: contain; }
.sub-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-versions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .sub-row { flex-wrap: wrap; }
  .sub-row img, .sub-row .ph { width: 72px; height: 40px; }
  .sub-row .grow { flex-basis: calc(100% - 90px); }
}
.quick-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.quick-bar h3 { margin: 0 0 2px; }
.quick-bar > button { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .quick-bar { flex-direction: column; align-items: stretch; } }

/* Caption kit: line above the video + caption in Schnell-Review and "Heute hochladen" */
.qr-kit .qr-cap button { margin-top: 6px; }
.qr-kit > button { margin-top: 12px; }
.up-overlay { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.up-de { color: var(--muted, #9aa3b2); border-top: 1px solid var(--line); padding-top: 6px; }
.kit-row { border-top: 1px solid var(--line); padding: 8px 0 4px; margin-top: 8px; }
.kit-text { white-space: pre-wrap; margin-top: 4px; color: var(--text-2); }

/* ---------- Graphit: theme toggle and small corrections ---------- */
.theme-toggle { width: 34px; height: 34px; padding: 0; border-radius: 50%; flex: none; }
.theme-toggle .ico { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.nav .group .n { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: rgb(var(--ink) / .1); font-size: 10px; color: var(--text-2); }
input, select, textarea { border-radius: var(--r-sm); }
.modal { border-radius: var(--r-lg); }
.pill { background: rgb(var(--ink) / .04); border-color: transparent; }
/* text over pictures and video stays white in both modes */
.thumb-dur, .qr-info, .style-sample { color: #fff; }
:root[data-theme="light"] .wave { background: #1c1c1e; }
:root[data-theme="light"] .timeline > div { color: #1d1d1f; }

/* ---------- Dashboard picture: the Tokyo skyline as a rounded panorama, same in light and dark ---------- */
body[data-view="dashboard"] #bg { display: block; top: 84px; left: calc(var(--side) + 36px); right: max(36px, calc(100% - var(--side) - 1440px + 36px)); height: 320px; border-radius: var(--r-lg); -webkit-mask-image: none; mask-image: none; box-shadow: var(--card-shadow); }
#bg .scrim { background: linear-gradient(90deg, rgba(8, 10, 16, .78) 0, rgba(8, 10, 16, .3) 50%, transparent 78%), linear-gradient(0deg, rgba(8, 10, 16, .45), transparent 40%); }
.dash-window { height: 320px; padding: 34px 38px; margin-bottom: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.dash-window h1 { color: #fff; }
.dash-window .sub { color: rgba(255, 255, 255, .86); }
.dash-window .dash-date { color: rgba(255, 255, 255, .7); }
.brand-mark { border-radius: 8px; }
@media (max-width: 860px) {
  body[data-view="dashboard"] #bg { top: 72px; left: 16px; right: 16px; height: 240px; }
  .dash-window { height: 240px; padding: 22px 20px; margin-bottom: 20px; }
}

/* =========================================================
   v4 (28.11.2026): the app speaks like the public site.
   Camcorder type (VCR OSD Mono) for everything that is a label or a slot, the main button as a plain light pill,
   tower-yellow as the one signal colour, the monthly steps as a yellow block. Blue stays for links and focus.
   ========================================================= */
@font-face { font-family: "VCR"; src: url("fonts/vcr.ttf") format("truetype"); font-display: swap; }
:root { --stamp: "VCR", ui-monospace, Consolas, monospace; --signal: #ffd23f; --cream: #efece4; }

h1, h2, h3, h4 { font-weight: 500; }
h1 { letter-spacing: -.035em; }

/* labels and slots in stamp type */
.nav .group, .pill, th, .tag, .status, .fmt-badge, .new-badge, .dash-date, .cal-head > div, .cal-col-head, .stat .lbl, .figures .lbl, .legend, .issue, .matrix .axis, .thumb-dur, .up-time, .rel-countdown, label.field > span, .topbar .crumb {
  font-family: var(--stamp); letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
.nav .group { font-size: 11.5px; }
.pill, .status, .tag, .issue { font-size: 11.5px; }
th { font-size: 11.5px; }
.stat .lbl, .figures .lbl, label.field > span { font-size: 11.5px; }
.topbar .crumb { font-size: 13px; }
.up-time { font-weight: 400; letter-spacing: 0; }

/* main action: a plain pill, light on dark and dark on light */
button.primary, .btn.primary { background: var(--text); color: var(--bg); font: 400 13px/1.2 var(--stamp); letter-spacing: .05em; text-transform: uppercase; padding: 10px 18px; }
button.primary:hover, .btn.primary:hover { background: var(--text); opacity: .86; }
button.primary.sm, .btn.primary.sm { padding: 8px 14px; font-size: 12px; }
button.primary:disabled { opacity: .35; }

/* signal colour */
.progress > div { background: var(--signal); }
.nav a.active .ico, .tabbar .active .ico { color: var(--signal); }
:root[data-theme="light"] .nav a.active .ico, :root[data-theme="light"] .tabbar .active .ico { color: var(--text); }
.nav a.active { box-shadow: inset 3px 0 0 var(--signal); }
.figures .num.hl { display: inline-block; color: #111; background: var(--signal); padding: 2px 10px 4px; margin-left: -10px; border-radius: 10px; }
.new-badge { background: var(--signal); color: #111; }
.score { color: var(--text); }

/* dashboard: the monthly steps are the yellow block */
.steps { background: var(--signal); border: 0; border-radius: var(--r-lg); --line: rgb(0 0 0 / .16); }
.steps a { color: #111; padding: 22px 22px 24px; }
.steps a:hover { background: rgb(0 0 0 / .07); }
.steps b { font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.steps span { color: #3a3208; }
.steps .n { font: 400 12px/1 var(--stamp); color: #111; border-color: rgb(0 0 0 / .45); width: 26px; height: 26px; }
.steps a.due .n { background: #111; color: var(--signal); border-color: transparent; }
/* quick bar ("Untertitel-Fassung"): the cream block */
.quick-bar { background: var(--cream); border: 0; color: #151515; --muted: #6b6a66; --text: #151515; --line: rgb(0 0 0 / .14); box-shadow: none; }
.quick-bar h3 { color: #151515; font-size: 17px; }
.quick-bar a { color: #0a57b0; }
.quick-bar button.primary { background: #111; color: #f5f5f7; }

/* v5: pixel logo – the mark is drawn on a 16 × 16 grid, so it is shown unsmoothed and without rounding;
   the name next to it is set in the same camcorder face. */
.brand-mark { border-radius: 0; image-rendering: pixelated; }
.brand b { font: 400 15px/1 var(--stamp); letter-spacing: .06em; }
