/* VODSpark design system - shared by the landing page, sign-in and the workspace. */
:root {
  --charcoal: #151922;
  --charcoal-2: #1c212c;
  --charcoal-3: #262c39;
  --charcoal-4: #343b4b;
  --lime: #91ff00;
  --lime-hover: #a4ff33;
  --green: #65bd00;          /* accent text/icons on light backgrounds */
  --green-ink: #3f7a00;      /* small accent text on light (AA) */
  --off: #f5f7fa;
  --soft: #a7b0c0;           /* secondary text on dark */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --line: #e2e6ee;
  --line-2: #d3d9e3;
  --text: #151922;
  --muted: #586174;          /* secondary text on light (AA on white) */
  --danger: #c62f2f;
  --danger-bg: #fdeeee;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;
  --ok: #2c7a3f;
  --ok-bg: #e8f6ec;
  --info-bg: #eef3ff;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(21, 25, 34, .06), 0 4px 16px rgba(21, 25, 34, .06);
  --shadow-lg: 0 10px 40px rgba(21, 25, 34, .16);
  --font: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, "Cascadia Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.right { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.offscreen { position: fixed; left: -9999px; top: 0; width: 320px; height: 180px; opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- buttons & inputs */
.btn { font: inherit; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 10px; padding: 9px 16px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover:not(:disabled) { border-color: #b9c1cf; background: var(--surface-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--charcoal); }
.btn-lime:hover:not(:disabled) { background: var(--lime-hover); border-color: var(--lime-hover); }
.btn-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--off); }
.btn-dark:hover:not(:disabled) { background: var(--charcoal-3); border-color: var(--charcoal-3); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: rgba(21, 25, 34, .06); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.on-dark .btn:not(.btn-lime) { background: var(--charcoal-3); border-color: var(--charcoal-4); color: var(--off); }
.on-dark .btn:not(.btn-lime):hover:not(:disabled) { background: var(--charcoal-4); }
.on-dark .btn-ghost { background: transparent !important; border-color: transparent !important; }

input[type=text], input[type=url], input[type=number], input[type=email], textarea, select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 12px; width: 100%; }
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid rgba(101, 189, 0, .45); outline-offset: 1px; }
input[type=range] { width: 100%; accent-color: var(--green); }
input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; }
input[type=color] { width: 40px; height: 32px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
label > input, label > select, label > textarea, label > div { margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 500; }
.check input { margin: 0; flex: none; }

/* ---------------------------------------------------------------- pills, bars, misc */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--danger-bg); color: var(--danger); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.run { background: #ecffd6; color: var(--green-ink); }
.pill.high { background: var(--ok-bg); color: var(--ok); }
.pill.medium { background: var(--warn-bg); color: var(--warn); }
.pill.low { background: var(--surface-2); color: var(--muted); }
.pill.src { background: var(--charcoal); color: var(--off); }
.pill.src.kick { background: #0d1a05; color: #8cf03c; }
.pill.src.twitch { background: #26173f; color: #c7a4ff; }
.pill.src.youtube { background: #3a0f0f; color: #ff8f8f; }
.pill.src.upload { background: var(--charcoal-3); color: var(--off); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--soft); display: inline-block; flex: none; }
.dot.ok { background: #3fd26b; } .dot.bad { background: #ff5d5d; } .dot.warn { background: #ffb547; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s; }
.on-dark .bar { background: var(--charcoal-4); }
.on-dark .bar > i { background: var(--lime); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--charcoal); color: var(--off);
  padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: min(560px, 92vw); box-shadow: var(--shadow-lg); font-size: 14px; }
.toast.bad { background: #5c1414; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 30px; width: auto; display: block; }

/* ---------------------------------------------------------------- workspace shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--charcoal); color: var(--off); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 4px 8px 18px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--soft);
  text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: var(--charcoal-2); color: var(--off); }
.nav-item.active { background: var(--charcoal-3); color: var(--off); }
.nav-item.active svg { color: var(--lime); }
.nav-count { margin-left: auto; font-size: 12px; background: var(--charcoal-4); color: var(--off); border-radius: 99px; padding: 1px 8px; }
.side-active { margin: 14px 4px 0; padding: 12px; background: var(--charcoal-2); border-radius: 12px; display: grid; gap: 10px; }
.side-active h5 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.side-job { display: grid; gap: 6px; text-decoration: none; color: var(--off); font-size: 13px; }
.side-job .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.side-job .m { color: var(--soft); font-size: 12px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.status-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--soft); font: inherit; font-size: 13px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.status-btn:hover { background: var(--charcoal-2); color: var(--off); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--charcoal-2); border-radius: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--charcoal); display: grid; place-items: center;
  font-weight: 800; font-size: 14px; flex: none; }
.user-chip .n { font-weight: 600; font-size: 14px; line-height: 1.2; }
.user-chip .p { color: var(--soft); font-size: 12px; }
.user-chip button { margin-left: auto; background: none; border: 0; color: var(--soft); cursor: pointer; padding: 6px; border-radius: 8px; }
.user-chip button:hover { color: var(--off); background: var(--charcoal-3); }

.main { min-width: 0; }
.topbar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 32px 40px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.crumb:hover { color: var(--text); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card h2 { font-size: 18px; font-weight: 700; }
.card h3 { font-size: 16px; font-weight: 700; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { font-size: 18px; font-weight: 700; }

/* import hero */
.import { background: var(--charcoal); color: var(--off); border-radius: 22px; padding: 34px; position: relative; overflow: hidden; }
.import::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(145, 255, 0, .18), transparent); pointer-events: none; }
.import .eyebrow { color: var(--lime); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.import h1 { font-size: 30px; font-weight: 800; margin: 8px 0 6px; }
.import p { color: var(--soft); margin: 0 0 22px; max-width: 640px; }
.import-form { display: flex; gap: 10px; position: relative; z-index: 1; }
.import-form input { background: var(--charcoal-2); border-color: var(--charcoal-4); color: var(--off); padding: 14px 16px; font-size: 16px; border-radius: 12px; }
.import-form input::placeholder { color: #7d8698; }
.import-alt { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--charcoal-3); color: var(--off); }
.dropzone { border: 1.5px dashed var(--charcoal-4); border-radius: 12px; padding: 10px 14px; color: var(--soft); font-size: 14px;
  display: flex; align-items: center; gap: 10px; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--lime); color: var(--off); }
.dropzone b { color: var(--off); }
.upload-progress { margin-top: 14px; display: grid; gap: 6px; position: relative; z-index: 1; }

/* job list */
.jobs { display: grid; gap: 10px; }
.job-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.job-row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.job-thumb { aspect-ratio: 16/9; border-radius: 10px; background: var(--charcoal) center/cover no-repeat; display: grid; place-items: center; }
.job-thumb img { width: 34px; opacity: .9; }
.job-row .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-row .m { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.job-row .bar { margin-top: 8px; max-width: 420px; }
.job-side { display: grid; justify-items: end; gap: 6px; }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty img { width: 56px; margin-bottom: 12px; }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* project page */
.project-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.project-thumb { aspect-ratio: 16/9; border-radius: 14px; background: var(--charcoal) center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.project-thumb img.ph { width: 54px; }
.project-head h1 { font-size: 24px; font-weight: 800; margin: 8px 0 4px; overflow-wrap: anywhere; }
.project-url { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.fact { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.fact span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact b { display: block; font-size: 15px; margin-top: 2px; }
.fact em { font-style: normal; font-size: 12px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; display: flex; gap: 8px; }
.note::before { content: "i"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }

.stepper { display: flex; gap: 0; margin: 18px 0 14px; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 1; min-width: 92px; display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.step::before { content: ""; height: 4px; border-radius: 99px; background: var(--line); margin-right: 4px; }
.step.done { color: var(--ok); } .step.done::before { background: var(--green); }
.step.now { color: var(--text); } .step.now::before { background: linear-gradient(90deg, var(--green) var(--p, 30%), var(--line) var(--p, 30%)); }
.step.fail { color: var(--danger); } .step.fail::before { background: var(--danger); }
.step.off { color: #9aa3b2; } .step.off::before { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.alert { border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.alert b { display: block; margin-bottom: 4px; }
.alert.bad { background: var(--danger-bg); color: #6e1717; }
.alert.ok { background: var(--ok-bg); color: #1f4f2a; }
.alert.info { background: var(--info-bg); color: #24324f; }
.suggest { display: grid; gap: 6px; margin-top: 12px; }
.suggest button { display: flex; justify-content: space-between; gap: 12px; text-align: left; font: inherit; font-size: 14px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid #f2c9c9; background: #fff; cursor: pointer; color: var(--text); }
.suggest button:hover { border-color: var(--danger); }

/* clip list */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.clip { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; }
.clip:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.clip-thumb { position: relative; aspect-ratio: 9/16; border-radius: 10px; background: var(--charcoal) center/cover no-repeat; cursor: pointer; overflow: hidden; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-thumb .len { position: absolute; right: 6px; bottom: 6px; background: rgba(21, 25, 34, .85); color: var(--off); font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 6px; }
.clip-thumb .rank { position: absolute; left: 6px; top: 6px; background: var(--lime); color: var(--charcoal); font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px; }
.clip-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.clip-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.clip-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.verdict { border-radius: 10px; padding: 8px 10px; background: var(--surface-2); font-size: 13px; }
.verdict .head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.verdict .ev { color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.verdict.reject .ev { color: #7b2a2a; }
.mini-scores { display: flex; gap: 3px; margin-left: auto; }
.mini-scores i { width: 6px; height: 14px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.mini-scores i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--v); background: var(--green); }
.reasons { margin: 0; padding-left: 16px; font-size: 12px; color: var(--muted); }
.clip-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.warnline { font-size: 12px; color: var(--warn); }
.accentline { font-size: 12px; color: var(--green-ink); font-weight: 600; }
.dangerline { font-size: 12px; color: var(--danger); }

/* ---------------------------------------------------------------- studio (clip editor) */
.studio { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); min-height: 100vh; }
.studio-stage { background: var(--charcoal); color: var(--off); padding: 22px 26px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh; overflow: auto; }
.studio-top { display: flex; align-items: center; gap: 10px; }
.studio-top .crumb { color: var(--soft); margin: 0; }
.studio-top .crumb:hover { color: var(--off); }
.studio-tabs { display: inline-flex; background: var(--charcoal-2); border-radius: 10px; padding: 3px; margin-left: auto; }
.studio-tabs button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--soft);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.studio-tabs button.active { background: var(--charcoal-4); color: var(--off); }
.studio-tabs button:disabled { opacity: .4; cursor: not-allowed; }
.stage-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stage { position: relative; height: min(640px, calc(100vh - 250px)); min-height: 380px; aspect-ratio: 9 / 16; background: #000; border-radius: 14px;
  overflow: hidden; box-shadow: 0 0 0 1px var(--charcoal-4); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ov-title, .ov-caption { position: absolute; left: 8%; right: 8%; text-align: center; pointer-events: none; font-weight: 900; color: #fff; }
.ov-title span { display: inline; padding: .12em .32em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.5; }
.ov-caption { transform: translateY(-100%); line-height: 1.15; }
.ov-caption span { box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .2em; }
.ov-wm { position: absolute; display: flex; align-items: center; pointer-events: none; font-family: Arial, sans-serif; font-weight: 700; white-space: nowrap; }
.ov-wm img { display: block; }
.ov-wm .wm-vod { color: var(--off); } .ov-wm .wm-spark { color: var(--lime); }
.ov-wm span { -webkit-text-stroke: .22em var(--charcoal); paint-order: stroke fill; text-shadow: 0 .07em .1em rgba(0, 0, 0, .5); letter-spacing: 0; }
.safe-hint { position: absolute; left: 0; right: 0; bottom: 0; height: 17%; pointer-events: none; border-top: 1px dashed rgba(255, 255, 255, .22);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px); }
#renderedVideo { height: min(640px, calc(100vh - 250px)); min-height: 380px; aspect-ratio: 9 / 16; background: #000; border-radius: 14px; }
.player { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; }
.scrub { width: 100%; max-width: 380px; }
.scrub-track { position: relative; height: 28px; background: var(--charcoal-2); border-radius: 8px; cursor: pointer; border: 1px solid var(--charcoal-4); }
.scrub-clip { position: absolute; top: 0; bottom: 0; background: rgba(145, 255, 0, .2); border-left: 2px solid var(--lime); border-right: 2px solid var(--lime); }
.scrub-head { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; }
.scrub-labels { display: flex; justify-content: space-between; margin-top: 4px; color: var(--soft); font-size: 12px; }
.plan-note { color: var(--soft); font-size: 12px; text-align: center; max-width: 380px; }
.plan-note b { color: var(--off); }
.plan-note .pill.ok { background: rgba(63, 210, 107, .15); color: #7ef0a0; }
.plan-note .pill.warn { background: rgba(255, 181, 71, .15); color: #ffcf85; }
.rendered-info { color: var(--soft); font-size: 12px; text-align: center; max-width: 400px; overflow-wrap: anywhere; }

.studio-panel { padding: 26px 34px 120px; min-width: 0; }
.studio-head h1 { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.studio-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 20px; overflow-x: auto; }
.ptabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 12px; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.ptabs button.active { color: var(--text); border-bottom-color: var(--green); }
.ptabs button .pill { margin-left: 4px; }
.pane { display: grid; gap: 16px; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.block h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.block .hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nudge { display: flex; gap: 6px; } .nudge input { text-align: center; font-family: var(--mono); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; flex: 1; min-width: 120px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); cursor: pointer; }
.seg button.active { border-color: var(--green); background: #f3ffe6; color: var(--green-ink); }
.slider { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 10px; margin: 8px 0; color: var(--text); font-weight: 500; }
.slider input { margin: 0; }
.cue-list { max-height: 300px; overflow: auto; display: grid; gap: 5px; }
.cue { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; }
.cue .ts { font-size: 12px; color: var(--muted); cursor: pointer; font-family: var(--mono); }
.cue input { padding: 6px 9px; font-size: 13px; }
.cue.active input { border-color: var(--green); background: #f8fff0; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); margin: 4px 0; }
.split-canvas { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; cursor: crosshair; touch-action: none; display: block; }
.split-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.split-legend .key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.split-legend .key.cam { background: #ffb547; } .split-legend .key.game { background: #4fc3ff; }
.scores { display: grid; gap: 4px; margin: 10px 0; }
.score-row { display: grid; grid-template-columns: 96px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; text-transform: capitalize; }
.review-body { font-size: 14px; display: grid; gap: 6px; }
.files { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.render-bar { position: fixed; bottom: 0; right: 0; left: calc(248px + min(440px, max(340px, 0px))); display: flex; align-items: center; gap: 12px; padding: 14px 34px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 5; }
.render-bar .status { font-size: 13px; color: var(--muted); margin-right: auto; }
.wm-preview { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--charcoal); border-radius: 10px; }
.wm-preview img { height: 22px; }

/* settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: grid; gap: 2px; }
.settings-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.settings-nav a:hover { background: var(--surface-2); color: var(--text); }
.set-section { scroll-margin-top: 24px; }
.set-section + .set-section { margin-top: 18px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-grid .full { grid-column: 1 / -1; }
.health-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.health-row:last-child { border-bottom: 0; }
.save-bar { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 18px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .project-head { grid-template-columns: 1fr; }
  .project-thumb { max-width: 460px; }
  .studio { grid-template-columns: 1fr; }
  .studio-stage { position: static; height: auto; }
  .render-bar { left: 248px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--charcoal); position: sticky; top: 0; z-index: 20; }
  .topbar button { background: none; border: 0; color: var(--off); padding: 6px; cursor: pointer; }
  .page { padding: 20px 16px 80px; }
  .import { padding: 22px; }
  .import h1 { font-size: 24px; }
  .import-form { flex-direction: column; }
  .project-head { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 84px minmax(0, 1fr); }
  .job-side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .clip-grid { grid-template-columns: 1fr; }
  .studio-panel { padding: 20px 16px 120px; }
  .render-bar { left: 0; padding: 12px 16px; }
  .settings { grid-template-columns: 1fr; }
  .settings-nav { display: none; }
  .set-grid, .grid2 { grid-template-columns: 1fr; }
  .slider { grid-template-columns: 100px 1fr 44px; }
}

/* ---------------------------------------------------------------- motion (see motion.js) */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.btn-lime:hover:not(:disabled) { box-shadow: 0 8px 28px -8px rgba(145, 255, 0, .65); }
.btn .ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); pointer-events: none;
  animation: ripple .65s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms); }
.js [data-reveal="left"] { transform: translateX(-26px); }
.js [data-reveal="right"] { transform: translateX(26px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-stagger] > * { transition-delay: var(--d, 0ms); }
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(145, 255, 0, .10), transparent 60%); z-index: 0; }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
[data-tilt] { transition: transform .35s var(--ease); transform-style: preserve-3d; will-change: transform; }
[data-magnetic] { transition: transform .3s var(--ease); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, #e8ebf1 40%, var(--surface-2) 80%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important; }

/* ---------------------------------------------------------------- workspace motion & polish */
.view-in { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.job-row { transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.job-row:hover { transform: translateY(-2px); }
.job-row.fresh { animation: rowIn .5s var(--ease) both; }
.jobs > .job-row.fresh:nth-child(2) { animation-delay: .05s; } .jobs > .job-row.fresh:nth-child(3) { animation-delay: .1s; }
.jobs > .job-row.fresh:nth-child(4) { animation-delay: .15s; } .jobs > .job-row.fresh:nth-child(5) { animation-delay: .2s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } }
.clip { animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: box-shadow .25s, border-color .25s, transform .25s var(--ease); }
.clip:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(21, 25, 34, .35); }
.clip-thumb img { opacity: 0; transition: opacity .4s, transform .5s var(--ease); }
.clip-thumb img.ok { opacity: 1; }
.clip-thumb:hover img { transform: scale(1.05); }
.clip-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35)); pointer-events: none; }
.bar > i { position: relative; overflow: hidden; }
.pill.run, .job-row .bar > i, .side-job .bar > i { background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  background-size: 50% 100%; background-repeat: no-repeat; animation: barShine 1.6s linear infinite; }
.job-row .bar > i, .side-job .bar > i { background-color: var(--green); }
.side-job .bar > i { background-color: var(--lime); }
.pill.run { background-color: #ecffd6; }
@keyframes barShine { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.step.now::before { animation: stepGlow 1.6s ease-in-out infinite; }
@keyframes stepGlow { 50% { box-shadow: 0 0 10px rgba(101, 189, 0, .55); } }
.nav-item { transition: background .2s, color .2s, transform .2s var(--ease); position: relative; }
.nav-item:hover { transform: translateX(2px); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime);
  box-shadow: 0 0 10px rgba(145, 255, 0, .6); animation: navIn .35s var(--ease-spring); }
@keyframes navIn { from { transform: scaleY(0); } }
.toast { animation: toastIn .4s var(--ease-spring); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
.card, .block { transition: box-shadow .25s, border-color .25s; }

/* import hero */
.import { isolation: isolate; }
.import::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask: radial-gradient(ellipse 60% 80% at 80% 20%, #000, transparent 70%); mask: radial-gradient(ellipse 60% 80% at 80% 20%, #000, transparent 70%); }
.import::after { animation: glowDrift 12s ease-in-out infinite alternate; }
@keyframes glowDrift { to { transform: translate(-120px, 60px) scale(1.3); } }
.import-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.import-fx i { position: absolute; width: 12px; height: 12px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0c1.4 5.8 3.2 7.6 9 9-5.8 1.4-7.6 3.2-9 9-1.4-5.8-3.2-7.6-9-9 5.8-1.4 7.6-3.2 9-9Z' fill='%2391FF00'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: sparkle 4.5s ease-in-out infinite; }
.import-fx i:nth-child(1) { right: 12%; top: 18%; } .import-fx i:nth-child(2) { right: 26%; top: 60%; width: 8px; height: 8px; animation-delay: -1.2s; }
.import-fx i:nth-child(3) { right: 6%; top: 74%; width: 9px; height: 9px; animation-delay: -2.4s; } .import-fx i:nth-child(4) { right: 38%; top: 14%; width: 7px; height: 7px; animation-delay: -3.3s; }
.import-fx i:nth-child(5) { right: 18%; top: 40%; width: 16px; height: 16px; animation-delay: -0.6s; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .75; transform: scale(1) rotate(90deg); } }
.import h1, .import p, .import .eyebrow { position: relative; z-index: 1; }
.import-form input { transition: border-color .2s, box-shadow .25s, background .2s; }
.import-form input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(145, 255, 0, .15), 0 10px 30px -10px rgba(145, 255, 0, .35); outline: none; }
.chip { transition: transform .2s var(--ease), background .2s; }
.chip:hover { transform: translateY(-2px); background: var(--charcoal-4); }

/* verify banner */
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 40px; background: linear-gradient(90deg, #f3ffe6, #fff8e6);
  border-bottom: 1px solid var(--line); font-size: 14px; animation: rowIn .4s var(--ease); }
.banner .btn { margin-left: auto; }

/* sidebar usage */
.usage-mini { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--charcoal-2); text-decoration: none; color: var(--off);
  border: 1px solid var(--charcoal-3); transition: border-color .2s; }
.usage-mini:hover { border-color: rgba(145, 255, 0, .35); }
.um-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.um-top a { color: var(--lime); text-decoration: none; font-size: 12px; }
.um-sub { font-size: 11.5px; color: var(--soft); }
.meter-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter-bar.sm { height: 5px; background: var(--charcoal-4); }
.meter-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 1.1s var(--ease); }

/* plan & usage page */
.usage-card { position: relative; overflow: hidden; }
.usage-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; opacity: .06;
  background: url("/static/brand/vodspark-icon.svg") center/contain no-repeat; transform: rotate(-12deg); pointer-events: none; }
.usage-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.usage-head h2 { font-size: 28px; font-weight: 900; margin: 2px 0 4px; }
.usage-head p { margin: 0; }
.eyebrow-s { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.meter-top b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.meter-top em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }
.meter-row.hi .meter-bar i { background: linear-gradient(90deg, #ffb547, #ff9f1a); }
.meter-row.full .meter-bar i { background: linear-gradient(90deg, #ff6b6b, var(--danger)); }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(21, 25, 34, .35); }
.pcard.pop { border-color: rgba(101, 189, 0, .55); box-shadow: 0 0 0 3px rgba(145, 255, 0, .15); }
.pcard.cur { background: #f8fff0; }
.pcard h3 { font-size: 20px; font-weight: 900; }
.pc-price { font-weight: 800; color: var(--muted); }
.pc-badge { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--lime);
  color: var(--charcoal); padding: 3px 8px; border-radius: 99px; }
.pc-sub { display: block; font-size: 12px; font-weight: 600; color: var(--green-ink); }
.bill-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-left: auto; padding: 3px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); }
.bill-toggle button { position: relative; z-index: 1; font: inherit; font-size: 13px; font-weight: 700; border: 0; background: none; color: var(--muted);
  padding: 6px 14px; border-radius: 99px; cursor: pointer; transition: color .25s; white-space: nowrap; }
.bill-toggle button.on { color: var(--off); }
.bill-toggle button em { font-style: normal; font-size: 10px; color: var(--green-ink); background: #ecffd6; padding: 1px 6px; border-radius: 99px; margin-left: 3px; }
.bill-toggle button.on em { background: var(--lime); color: var(--charcoal); }
.bill-toggle .ibg { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: var(--charcoal);
  transition: transform .4s var(--ease-spring); }
.bill-toggle.yr .ibg { transform: translateX(100%); }
.pcard ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 5px; font-size: 13.5px; color: var(--text); }
.pcard .btn { margin-top: auto; }
.btn.pulse { animation: pulseBtn 1.4s ease-in-out 3; }
@keyframes pulseBtn { 50% { box-shadow: 0 0 0 8px rgba(145, 255, 0, .35); } }

/* settings additions */
.plan-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 38px; color: var(--text); font-size: 14px; }
.pw-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.lock-note { font-size: 13px; color: var(--green-ink); background: #f3ffe6; border: 1px solid #d6f5b0; border-radius: 10px; padding: 9px 12px; margin: 8px 0 0; }
.lock-note a { color: inherit; font-weight: 700; }
.danger-zone { border-color: #f2c9c9; }
.danger-zone h2 { color: var(--danger); }
.danger-zone .btn-danger { border-color: #f2c9c9; }
.danger-zone .btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.logo-up { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--line-2); border-radius: 14px; }
.logo-prev { width: 72px; height: 72px; border-radius: 14px; background: var(--charcoal) repeating-conic-gradient(#232a37 0 25%, #1c212c 0 50%) 0 0 / 14px 14px;
  display: grid; place-items: center; flex: none; overflow: hidden; }
.logo-prev img { max-width: 80%; max-height: 80%; }
.logo-prev span { font-size: 11px; color: var(--soft); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

/* upgrade modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(13, 16, 23, 0); backdrop-filter: blur(0);
  transition: background .25s, backdrop-filter .25s; }
.modal.open { background: rgba(13, 16, 23, .55); backdrop-filter: blur(6px); }
.modal-card { width: min(440px, 100%); background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); text-align: center;
  transform: translateY(16px) scale(.96); opacity: 0; transition: transform .35s var(--ease-spring), opacity .25s; }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--charcoal); display: grid; place-items: center;
  animation: icoBob 2.4s ease-in-out infinite; }
.modal-ico img { width: 34px; }
@keyframes icoBob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.modal-card h2 { font-size: 21px; font-weight: 900; }
.modal-card p { color: var(--muted); margin: 8px 0 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

@media (max-width: 860px) {
  .banner { padding: 10px 16px; }
  .plan-cards { grid-template-columns: minmax(0, 1fr); }
}
