/* Pipe: one stylesheet for every page.
   Navy, video first, Pipe's cyan for the action that moves a film forward
   and for work in progress, green for finished, amber for "your turn",
   red for trouble. Colour tokens below; the Edit Studio uses the same
   names. */

:root {
  --bg: #0b1220;
  --bg-elev: #0d1628;
  --panel: #111b2e;
  --panel-2: #16223a;
  --panel-3: #1c2a46;
  --line: rgba(148, 178, 232, .1);
  --line-2: rgba(148, 178, 232, .16);
  --line-3: rgba(148, 178, 232, .28);
  --ink: #e8eef8;
  --ink-2: #c9d4e8;
  --mute: #8fa0bf;
  --dim: #5d6d8c;
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-ink: #04121a;
  --accent-soft: rgba(34, 211, 238, .12);
  --accent-line: rgba(34, 211, 238, .42);
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, .12);
  --amber: #f7941e;
  --amber-soft: rgba(247, 148, 30, .14);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, .13);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, .12);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 20px 60px -20px rgba(2, 6, 16, .8);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --top: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 64px); overflow-x: clip }
body { overflow-x: clip }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14.5px/1.55 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block }
::selection { background: rgba(34, 211, 238, .3); color: #fff }
a { color: inherit; text-decoration: none }
p a, li a, td a, .hint a, .lead a, .note a, .lnk {
  color: var(--accent); text-decoration: none; font-weight: 500;
}
p a:hover, li a:hover, td a:hover, .hint a:hover, .lead a:hover, .note a:hover, .lnk:hover {
  text-decoration: underline; text-underline-offset: 3px;
}
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px }
* { scrollbar-width: thin; scrollbar-color: #22304d transparent }
::-webkit-scrollbar { width: 10px; height: 10px }
::-webkit-scrollbar-thumb { background: #22304d; border-radius: 10px; border: 2px solid var(--bg) }
::-webkit-scrollbar-track { background: transparent }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
[hidden] { display: none !important }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em }
h1 { font-size: 26px }
h2 { font-size: 16px; margin: 0 0 12px }
h3 { font-size: 14px }
.display {
  font-family: var(--display); font-weight: 600; letter-spacing: -.035em;
  font-size: clamp(36px, 5.4vw, 66px); line-height: 1.02; margin: 0;
}
.title {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.06; margin: 0;
}
.grad {
  background: linear-gradient(92deg, #5ef0ff 0%, var(--accent) 38%, #0ea5ff 72%, #2f80ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--mute); margin-bottom: 10px;
}
.eyebrow .i { color: var(--accent) }
.lead { color: var(--mute); font-size: 15.5px; line-height: 1.6; margin: 10px 0 0; max-width: 72ch }
.mute { color: var(--mute) }
.dim { color: var(--dim) }
.small { font-size: 13px }
.tiny { font-size: 12px }
.hint { color: var(--mute); font-size: 12.8px; line-height: 1.5; margin: 8px 0 0 }
.mono { font-family: var(--mono); font-size: 12.5px }
.num { font-variant-numeric: tabular-nums }
.ok { color: var(--green) }
.warn-t { color: var(--amber) }
.bad { color: var(--red) }
.i { flex: none; vertical-align: middle }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  background: rgba(11, 18, 32, .78); backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; color: var(--ink) }
.brand .lockup { display: block; width: auto; height: 32px; filter: drop-shadow(0 4px 16px rgba(34, 211, 238, .2)) }
.auth-hero .brand .lockup { height: 40px }
.nav { display: flex; gap: 4px; align-items: center }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 10px; color: var(--mute); font-weight: 500; font-size: 14px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04) }
.nav a.on { color: var(--ink); background: rgba(255, 255, 255, .07) }
.nav a.on .i { color: var(--accent) }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px }
.balance {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 13.5px;
  background: rgba(255, 255, 255, .02); transition: border-color .15s;
}
.balance:hover { border-color: var(--line-3) }
.balance .i { color: var(--mute) }
.balance .plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-3); color: var(--ink) }
.balance .plus .i { color: var(--ink) }
.menu { position: relative }
.menu > summary { list-style: none; cursor: pointer }
.menu > summary::-webkit-details-marker { display: none }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--blue));
}
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .14s ease-out;
}
.menu-h { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px }
.menu-h b { display: block; font-size: 14px }
.menu-h span { font-size: 12px; color: var(--mute) }
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px }
.menu-pop a:hover { background: var(--panel-2); color: var(--ink) }
.menu-pop a .i { color: var(--mute) }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98) } to { opacity: 1; transform: none } }

.wrap { max-width: 1280px; margin: 0 auto; padding: 34px 28px 110px }
.wrap.wide { max-width: 1440px }
.wrap.narrow { max-width: 760px }

.tabbar { display: none }
@media (max-width: 860px) {
  .nav, .top-right .btn, .balance .plus { display: none }
  .topbar-in { padding: 0 16px; gap: 12px }
  .wrap { padding: 22px 16px 120px }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 18, 32, .94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--mute); padding: 4px 0 }
  .tabbar a.on { color: var(--ink) }
  .tabbar a.on .i { color: var(--accent) }
  .tabbar a.make .i { width: 40px; height: 30px; padding: 5px 9px; border-radius: 11px; background: var(--accent); color: var(--accent-ink) }
}

/* ---------- page header ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px }
.page-h .actions { display: flex; gap: 10px; flex-wrap: wrap }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 18px; flex-wrap: wrap }
.crumbs a { color: var(--mute); display: inline-flex; align-items: center; gap: 4px }
.crumbs a:hover { color: var(--ink) }
.crumbs .sep { color: var(--dim) }
.crumbs .admin-link { margin-left: auto }

/* ---------- buttons ---------- */
.btn {
  --b: var(--accent); --t: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; background: var(--b); color: var(--t);
  font-weight: 600; font-size: 14px; letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .15s, border-color .15s, color .15s; text-decoration: none;
}
.btn:hover { background: var(--accent-2); box-shadow: 0 8px 28px -8px rgba(34, 211, 238, .55); text-decoration: none }
.btn:active { transform: translateY(1px) }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none }
.btn.amber { background: var(--amber); color: #1c0f00; box-shadow: 0 10px 34px -10px rgba(247, 148, 30, .6) }
.btn.amber:hover { background: #ffa94d; box-shadow: 0 10px 34px -8px rgba(247, 148, 30, .7) }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2) }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); border-color: var(--line-3); box-shadow: none }
.btn.soft { background: var(--panel-3); color: var(--ink); border-color: var(--line) }
.btn.soft:hover { background: #22304d; box-shadow: none }
.btn.white { background: #f4f4f5; color: #0a0a0b }
.btn.white:hover { background: #fff; box-shadow: 0 8px 28px -10px rgba(255, 255, 255, .4) }
.btn.danger { background: transparent; color: #ff9a9d; border-color: rgba(255, 107, 107, .35) }
.btn.danger:hover { background: var(--red-soft); box-shadow: none }
.btn.small, .btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 6px }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 14px }
.btn.block { display: flex; width: 100% }
.btn.icon-only { width: 42px; padding: 0 }
.btn.icon-only.small, .btn.icon-only.sm { width: 34px }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 7px }
.field { margin: 0 0 18px; min-width: 0 }
.field:last-child { margin-bottom: 0 }
.opt-tag { font-weight: 500; font-size: 11.5px; color: var(--dim); margin-left: 6px; text-transform: lowercase }
input[type=text], input[type=password], input[type=number], input[type=email], textarea, select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-elev); color: var(--ink); font: inherit; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.55 }
input::placeholder, textarea::placeholder { color: #5d6d8c }
input:hover, textarea:hover, select:hover { border-color: var(--line-3) }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px rgba(34, 211, 238, .1); background: #0b1424;
}
input:disabled, select:disabled, textarea:disabled { opacity: .55 }
select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select option { background: #111b2e; color: var(--ink) }
input[type=file] { font: inherit; font-size: 13px; color: var(--mute); max-width: 100% }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; font-size: 13px; color: var(--ink); background: var(--panel-3);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 12px; margin-right: 10px; cursor: pointer;
}
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; vertical-align: middle }
input[type=color] { width: 44px; height: 44px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-elev); cursor: pointer }
input[type=range] { width: 100%; accent-color: var(--accent) }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); cursor: pointer; margin: 10px 0 0 }
.inline { display: flex; gap: 10px; align-items: center }
.inline > input, .inline > select { flex: 1; min-width: 0 }
.inline > input[type=color] { flex: none }

/* segmented choice (radios); not .seg, which the Edit Studio uses */
.choice { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 14px }
.choice label { margin: 0; cursor: pointer; position: relative }
.choice input { position: absolute; opacity: 0; pointer-events: none }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 10px;
  color: var(--mute); font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s; white-space: nowrap;
}
.choice span small { font-weight: 500; color: var(--dim); font-size: 12px }
.choice label:hover span { color: var(--ink) }
.choice input:checked + span { background: var(--accent); color: var(--accent-ink) }
.choice input:checked + span small { color: rgba(4, 18, 26, .62) }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
.choice.full { display: flex }
.choice.full label { flex: 1 }
.choice.full span { width: 100%; justify-content: center }

/* option cards (radios with a description) */
.opts { display: grid; gap: 10px }
.opts.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.opts.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 640px) { .opts.cols-2, .opts.cols-3 { grid-template-columns: 1fr } }
.opt { position: relative; margin: 0; cursor: pointer }
.opt input { position: absolute; opacity: 0; pointer-events: none }
.opt-box {
  display: block; height: 100%; padding: 14px 16px 15px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg-elev); transition: border-color .15s, background .15s;
}
.opt-box b { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-bottom: 3px }
.opt-box small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.45; font-weight: 400 }
.opt-box .tick { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; color: transparent }
.opt:hover .opt-box { border-color: var(--line-3) }
.opt input:checked + .opt-box { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(34, 211, 238, .07), rgba(34, 211, 238, .02)) }
.opt input:checked + .opt-box .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--accent); outline-offset: 2px }

/* ---------- cards ---------- */
.card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
.card + .card { margin-top: 16px }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap }
.card-h h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px }
.card-h h2 .i { color: var(--mute) }
.card-h .by { font-size: 12.5px; font-weight: 500; color: var(--mute) }
.card.flat { background: transparent }
.card.tight { padding: 16px }
.sec-title { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; display: flex; align-items: center; gap: 10px }
.sec-title small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: 0 }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0 }

.grid { display: grid; gap: 16px }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr } }
.stack { display: flex; flex-direction: column; gap: 16px }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
@media (max-width: 640px) { .row { grid-template-columns: 1fr } }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.gap-s { gap: 8px }

/* ---------- notices ---------- */
.notice, .err, .warn {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin: 0 0 16px;
  font-size: 14px; line-height: 1.5; border: 1px solid;
}
.notice { background: var(--green-soft); border-color: rgba(61, 220, 151, .28); color: #c8f7d9 }
.err { background: var(--red-soft); border-color: rgba(255, 107, 107, .32); color: #ffc9cb }
.warn { background: var(--amber-soft); border-color: rgba(247, 148, 30, .3); color: #ffe0b0 }
.notice > .i { color: var(--green); margin-top: 2px }
.err > .i { color: var(--red); margin-top: 2px }
.warn > .i { color: var(--amber); margin-top: 2px }
.notice b, .warn b, .err b { color: #fff }

/* ---------- pills, chips, tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; vertical-align: middle;
  background: rgba(255, 255, 255, .07); color: var(--ink-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9 }
.pill.queued { color: #c9c9d0 }
.pill.running { background: var(--cyan-soft); color: #8beeff }
.pill.running::before { animation: blink 1.4s ease-in-out infinite }
.pill.paused { background: var(--amber-soft); color: #ffc876 }
.pill.done { background: var(--green-soft); color: #6ee7b7 }
.pill.failed { background: var(--red-soft); color: #ff8f93 }
.pill.cancelled { background: rgba(255, 255, 255, .07); color: var(--mute) }
.pill.plain::before { display: none }
.pill.glass { background: rgba(8, 14, 26, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .1) }
.title .pill { font-family: var(--font); letter-spacing: .01em; position: relative; top: -6px; margin-left: 8px }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.chip .i { color: var(--mute) }
.chip.dark { background: rgba(8, 14, 26, .62); border-color: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px) }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--panel-3); color: var(--ink-2); font-size: 11.5px; font-weight: 500 }
.tag.amber { background: var(--amber-soft); color: #ffc876 }
.tag.lime { background: var(--accent-soft); color: var(--accent) }
.tag.cyan { background: var(--cyan-soft); color: #8beeff }
.tag.red { background: var(--red-soft); color: #ff8f93 }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse }
td, th { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle }
th { color: var(--mute); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; padding-top: 4px }
tr:last-child td { border-bottom: 0 }
tbody tr { transition: background .12s }
.table tr:hover td { background: rgba(255, 255, 255, .015) }
td.r, th.r { text-align: right }
.table-wrap { overflow-x: auto; margin: 0 -10px }
.table-wrap table { min-width: 640px }
.total td { font-weight: 600; border-top: 1px solid var(--line-2) }

/* ---------- tabs (filters) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--mute); font-weight: 500; font-size: 13.5px; cursor: pointer;
  transition: all .15s;
}
.tabs button:hover { color: var(--ink); border-color: var(--line-3) }
.tabs button.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent) }
.tabs button .n { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums }
.tabs button.on .n { color: rgba(34, 211, 238, .7) }

/* ---------- film cards ---------- */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 18px }
@media (max-width: 520px) { .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px } }
.film {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); isolation: isolate;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .25s;
}
.film:hover { transform: translateY(-3px); border-color: var(--line-3); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9) }
.film-media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 30% 0%, #1a2742, #0c1424 70%) }
.film-media img, .film-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.film-media video { opacity: 0; transition: opacity .3s }
.film.playing .film-media video { opacity: 1 }
.film-media img.cover { filter: blur(2px) saturate(.85) brightness(.55); transform: scale(1.06) }
.film.failed .film-media img { filter: grayscale(.7) brightness(.45) }
.film-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start }
.film-play {
  position: absolute; left: 50%; top: 46%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25); color: #fff; opacity: 0; transform: scale(.9); transition: all .2s;
}
.film:hover .film-play { opacity: 1; transform: none }
.film.playing .film-play { opacity: 0 }
.film-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .9));
}
.film-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 5px }
.film-title { font-weight: 600; font-size: 13.5px; line-height: 1.38; letter-spacing: -.005em; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.film-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: rgba(255, 255, 255, .55) }
.film-meta span + span::before { content: "·"; margin-right: 6px }
.film-status {
  position: absolute; left: 14px; right: 14px; top: 42%; text-align: center; color: rgba(255, 255, 255, .85);
  font-size: 13px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.film-status .i { color: var(--cyan) }
.film.paused .film-status .i { color: var(--amber) }
.film.failed .film-status .i { color: var(--red) }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08) }
.film-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); border-radius: 0 3px 3px 0; transition: width .6s }
.film.new {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px;
  border: 1.5px dashed var(--line-3); background: radial-gradient(90% 60% at 50% 30%, rgba(34, 211, 238, .08), transparent 70%), var(--bg-elev);
}
.film.new .plus-big {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .55); transition: transform .2s;
}
.film.new:hover .plus-big { transform: scale(1.06) rotate(90deg) }
.film.new b { font-size: 15px }
.film.new small { color: var(--mute); font-size: 12.5px; line-height: 1.45; max-width: 18ch }
.shimmer {
  position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%);
  background-size: 250% 100%; animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { from { background-position: 130% 0 } to { background-position: -130% 0 } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .15); border-top-color: var(--cyan); animation: spin .9s linear infinite; display: inline-block }
.spinner.sm { width: 14px; height: 14px; border-width: 2px }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-elev) }
.empty .ico { width: 56px; height: 56px; border-radius: 18px; display: inline-grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 16px }
.empty h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px }
.empty p { color: var(--mute); margin: 0 auto 18px; max-width: 46ch }

/* ---------- stepper ---------- */
.steps { list-style: none; padding: 0; margin: 0; position: relative }
.steps li { display: flex; gap: 12px; align-items: center; padding: 7px 0; position: relative; color: var(--ink-2); font-size: 14px }
.steps li::after { content: ""; position: absolute; left: 10px; top: 29px; bottom: -9px; width: 2px; background: var(--line); border-radius: 2px }
.steps li:last-child::after { display: none }
.steps li.done::after { background: rgba(61, 220, 151, .4) }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 2px solid var(--line-3); background: var(--bg-elev); display: grid; place-items: center; position: relative; z-index: 1 }
.steps .done .dot { background: var(--green); border-color: var(--green); color: #04121a }
.steps .done .dot::before { content: ""; width: 9px; height: 5px; border: 2px solid currentColor; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) }
.steps .active .dot { border-color: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); animation: ring 1.6s ease-out infinite }
.steps .active .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan) }
.steps .active { color: #fff; font-weight: 600 }
.steps .paused .dot { border-color: var(--amber); background: var(--amber-soft) }
.steps .paused .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber) }
.steps .paused { color: #ffd59a; font-weight: 600 }
.steps .failed .dot { border-color: var(--red); background: var(--red-soft) }
.steps .failed .dot::before { content: "!"; color: var(--red); font-weight: 800; font-size: 12px; line-height: 1 }
.steps .failed { color: #ffb3b5; font-weight: 600 }
.steps .todo { color: var(--dim) }
.steps .dur { margin-left: auto; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .45) } 100% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0) } }

/* ---------- progress bar ---------- */
.bar { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--blue)); transition: width .6s }

/* ---------- dialogs and the image viewer ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border-radius: 22px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgba(0, 0, 0, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
dialog.modal[open] { animation: pop .16s ease-out }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0 }
.modal-h h2 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -.02em }
.modal-b { padding: 14px 22px 22px }
.x-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); display: grid; place-items: center; cursor: pointer }
.x-btn:hover { color: var(--ink); border-color: var(--line-3) }
.viewer { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 28px; cursor: zoom-out; animation: fade .15s }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: var(--shadow) }
.viewer .x-btn { position: absolute; top: 18px; right: 18px; background: rgba(17, 27, 46, .85) }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ---------- media ---------- */
video { background: #000 }
audio { width: 100%; height: 40px; filter: invert(.9) hue-rotate(180deg) saturate(.4); border-radius: 10px }

/* ---------- misc ---------- */
details > summary { cursor: pointer }
.more > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); font-weight: 500; padding: 4px 0;
}
.more > summary::-webkit-details-marker { display: none }
.more > summary .i { transition: transform .15s }
.more[open] > summary .i { transform: rotate(180deg) }
.more > summary:hover { color: var(--ink) }
pre { margin: 0 }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2) }
.stat { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px }
.stat .k { font-size: 12px; color: var(--mute); font-weight: 500; text-transform: uppercase; letter-spacing: .08em }
.stat .v { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums }
.stat .s { font-size: 12px; color: var(--dim); margin-top: 2px }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px }
.glow { position: relative }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(34, 211, 238, .55), rgba(59, 130, 246, .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.aurora-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1;
}
.aurora-bg::before, .aurora-bg::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.aurora-bg::before { background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 60%); top: -30%; left: -10% }
.aurora-bg::after { background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 60%); top: -20%; right: -20% }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important }
}

/* =========================================================== login */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) 440px; min-height: 100vh }
.auth-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 34px 56px 30px; border-right: 1px solid var(--line) }
.auth-hero .aurora-bg::before { opacity: .8 }
.auth-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent); mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent);
}
.auth-main { flex: 1; display: grid; align-items: center; gap: 40px; padding: 40px 0 }
.auth-main.with-reel { grid-template-columns: minmax(0, 620px) minmax(330px, 1fr) }
.auth .display { font-size: clamp(38px, 4vw, 60px) }
.auth-copy { max-width: 600px }
.auth-copy .lead { font-size: 17px; margin-top: 20px }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--mute); font-size: 14.5px; line-height: 1.5 }
.auth-points b { color: var(--ink); font-weight: 600 }
.pt-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent) }
.auth-foot { font-size: 12.5px; color: var(--dim) }
.reel { position: relative; height: min(64vh, 560px); display: flex; align-items: center; justify-content: center }
.reel-item {
  position: absolute; margin: 0; width: min(44%, 250px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .03);
}
.reel-item video { width: 100%; height: 100%; object-fit: cover }
.reel-item figcaption {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: rgba(8, 14, 26, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12);
}
.reel.n1 .reel-item { width: min(58%, 300px) }
.reel.n2 .reel-item:nth-child(1) { transform: translateX(-28%) rotate(-5deg) }
.reel.n2 .reel-item:nth-child(2) { transform: translateX(28%) rotate(4deg) translateY(18px) }
.reel.n3 .reel-item:nth-child(1) { transform: translateX(-62%) rotate(-7deg) scale(.86); opacity: .9 }
.reel.n3 .reel-item:nth-child(2) { z-index: 2; width: min(50%, 290px) }
.reel.n3 .reel-item:nth-child(3) { transform: translateX(62%) rotate(7deg) scale(.86); opacity: .9 }
.auth-side { display: grid; place-items: center; padding: 40px 32px; background: var(--bg-elev) }
.auth-card { width: 100%; max-width: 360px }
.auth-card .title { font-size: 34px }
@media (max-width: 1180px) { .auth-main.with-reel { grid-template-columns: 1fr } .reel { display: none } }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr }
  .auth-hero { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px 26px }
  .auth-main { padding: 26px 0 6px }
  .auth-points, .auth-foot { display: none }
  .auth-copy .lead { font-size: 15px; margin-top: 14px }
  .auth-side { padding: 30px 20px 48px; place-items: start center }
}

/* =========================================================== create */
.create-hero { position: relative; isolation: isolate; padding: 10px 0 30px }
.create-hero .aurora-bg { inset: -140px -12vw -40px; z-index: -1; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent) }
.create-hero .lead { max-width: 64ch }
.create { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start }
.create-main { display: flex; flex-direction: column; gap: 16px; min-width: 0 }
.create-main .card + .card { margin-top: 0 }
.create-side { position: sticky; top: calc(var(--top) + 20px) }
.prompt-card { padding: 18px 20px 14px; background: linear-gradient(180deg, #14213a, #0f1a2e); border-color: var(--line-2); box-shadow: 0 40px 90px -50px rgba(34, 211, 238, .35) }
.prompt-card:focus-within { border-color: var(--accent-line) }
.prompt-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--mute); font-weight: 600; margin-bottom: 4px }
.prompt-label .i { color: var(--accent) }
textarea.prompt { min-height: 150px; font-size: 17.5px; line-height: 1.6; border: 0; background: transparent; padding: 6px 0; resize: none; letter-spacing: -.005em }
textarea.prompt:focus, textarea.prompt:hover { box-shadow: none; background: transparent; border: 0 }
.prompt-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px }
.count { font-size: 12px; color: var(--dim); white-space: nowrap }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px }
.pick { border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-elev); overflow: hidden; transition: border-color .15s, box-shadow .15s }
.pick:hover { border-color: var(--line-3) }
.pick:has(input:checked) { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(34, 211, 238, .08) }
.pick-main { display: block; margin: 0; cursor: pointer; position: relative }
.pick-main input { position: absolute; opacity: 0; pointer-events: none }
.pick-img { display: block; position: relative; aspect-ratio: 1; background: #0c1424 }
.pick-img img { width: 100%; height: 100%; object-fit: cover }
.pick-tick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); border: 1.5px solid rgba(255, 255, 255, .55); color: transparent; transition: all .15s }
.pick-main input:checked ~ .pick-img .pick-tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.pick-main input:focus-visible ~ .pick-img { outline: 2px solid var(--accent); outline-offset: -2px }
.pick-name { display: flex; flex-direction: column; padding: 10px 12px 12px }
.pick-name b { font-size: 13.5px }
.pick-name span { font-size: 12px; color: var(--mute); text-transform: capitalize }
.pick-extra { padding: 0 12px 12px; display: none }
.pick:has(input:checked) .pick-extra { display: block }
.pick-extra select, .pick-extra input { height: 36px; font-size: 12.5px; border-radius: 10px; padding-left: 10px }
.uploads { display: grid; gap: 12px }
.upl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center }
.drop {
  position: relative; margin: 0; height: 84px; border: 1.5px dashed var(--line-3); border-radius: 14px; display: grid; place-items: center;
  cursor: pointer; overflow: hidden; background: var(--bg-elev); color: var(--mute); transition: border-color .15s, color .15s;
}
.drop:hover { border-color: var(--accent-line); color: var(--ink) }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100% }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; pointer-events: none }
.drop.has { border-style: solid; border-color: var(--line-2) }
.drop.has .drop-empty, .drop-name { display: none }
.summary { padding: 22px }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px }
.price { border-top: 1px solid var(--line) }
.price-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px }
.price-row b { display: block; font-weight: 600; font-size: 14px }
.price-row small { display: block; color: var(--mute); font-size: 12px; line-height: 1.45; margin-top: 2px }
.price-row > .num { font-weight: 600; white-space: nowrap }
.price-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 0 }
.price-total span { color: var(--mute); font-weight: 500 }
.price-total b { font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.02em }
.mobile-cta { display: none }
@media (max-width: 1080px) { .create { grid-template-columns: 1fr } .create-side { position: static } }
@media (max-width: 860px) {
  .create { padding-bottom: 70px }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 44; padding: 10px 16px;
    background: rgba(11, 18, 32, .95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
    align-items: center; justify-content: space-between; gap: 12px;
  }
  .mobile-cta small { display: block; font-size: 11px; color: var(--mute) }
  .mobile-cta b { font-size: 19px; font-family: var(--display) }
  .upl { grid-template-columns: 92px minmax(0, 1fr) }
}

/* =========================================================== film page */
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 26px; flex-wrap: wrap }
.job-head-main { min-width: 0; flex: 1 1 520px; max-width: 920px }
.job-head .lead { font-size: 15.5px; margin-top: 12px }
.job-head-actions { display: flex; gap: 10px; flex-wrap: wrap }
.job-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 26px }
.job-player { position: sticky; top: calc(var(--top) + 20px) }
.player {
  position: relative; aspect-ratio: 9 / 16; width: min(100%, calc((100vh - var(--top) - 96px) * 9 / 16)); margin: 0 auto;
  border-radius: 24px; overflow: hidden; background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .025);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000 }
.player-meta { text-align: center; font-size: 12px; color: var(--mute); margin: 12px 0 0 }
.player.ph { display: grid; place-items: center; background: radial-gradient(120% 70% at 50% 0%, #1a2742, #0a1120) }
.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.38) saturate(.9); transform: scale(1.12) }
.ph-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; max-width: 300px }
.ph-in b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em }
.ph-in span { color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.5 }
.ph-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14) }
.ph-in .ph-ico.amber { color: var(--amber); background: rgba(247, 148, 30, .12); border-color: rgba(247, 148, 30, .3) }
.ph-in .ph-ico.red { color: var(--red); background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .3) }
.spinner.big { width: 44px; height: 44px; border-width: 3px }
.job-side { display: flex; flex-direction: column; gap: 16px; min-width: 0 }
.job-side .card + .card { margin-top: 0 }
.gate { border-color: rgba(247, 148, 30, .22); background: linear-gradient(180deg, rgba(247, 148, 30, .07), transparent 55%), var(--panel) }
.gate.glow::before { background: linear-gradient(135deg, rgba(247, 148, 30, .65), rgba(34, 211, 238, .3) 45%, transparent 75%) }
.gate-title { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 10px }
.gate-price { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px }
.gate-price b { color: #fff; font-size: 15px }
.studio-cta {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .1), rgba(59, 130, 246, .06)); border: 1px solid var(--accent-line);
  transition: transform .15s, box-shadow .2s;
}
.studio-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -18px rgba(34, 211, 238, .5) }
.studio-cta > span:nth-child(2) { flex: 1 }
.studio-cta b { display: block; font-size: 14.5px }
.studio-cta small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px }
.studio-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none }
.files { display: flex; flex-direction: column }
.files a { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2) }
.files a:last-child { border-bottom: 0 }
.files a:hover { color: #fff }
.files a .i { color: var(--mute) }
.files a span { flex: 1 }
.files a small { color: var(--dim); font-size: 12px }
.sub-h { font-size: 12px; font-weight: 600; color: var(--mute); margin: 22px 0 12px; text-transform: uppercase; letter-spacing: .1em }
.card-h + .sub-h, .hint + .sub-h { margin-top: 4px }
.vers-table td, .vers-table th { padding: 8px 6px }
.subnav {
  position: sticky; top: var(--top); z-index: 30; display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; margin: 0 0 14px;
  background: linear-gradient(180deg, var(--bg) 72%, rgba(11, 18, 32, 0)); scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none }
.subnav a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--mute); font-size: 13.5px; font-weight: 500; white-space: nowrap; border: 1px solid transparent }
.subnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04) }
.subnav a.on { color: var(--ink); background: var(--panel-2); border-color: var(--line-2) }
.job-sections { display: flex; flex-direction: column; gap: 16px }
.job-sections .card + .card { margin-top: 0 }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px }
.ref { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0 }
.ref-img { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #0c1424; cursor: zoom-in; overflow: hidden }
.ref-img::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.42) saturate(1.1) }
.ref-img img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .3s }
.ref-img:hover img { transform: scale(1.03) }
.ref-num { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: rgba(8, 14, 26, .72); border: 1px solid rgba(255, 255, 255, .12); color: #fff }
.ref-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(6, 12, 22, .76); font-size: 13px; font-weight: 600; color: var(--amber) }
.ref-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.ref-name { font-weight: 650; font-size: 14.5px; letter-spacing: -.005em }
.ref-tags { display: flex; flex-wrap: wrap; gap: 5px }
.ref-desc { margin: 0; color: var(--mute); font-size: 12.8px; line-height: 1.5 }
.ref-note { font-size: 12.8px; line-height: 1.5; display: flex; gap: 6px; align-items: flex-start }
.ref-note.amber { color: #ffc876 }
.ref-note.red { color: #ff9a9d }
.ref-note.lime { color: var(--green); margin-top: 6px; align-items: center; font-weight: 500 }
.ref-regen { display: flex; flex-direction: column; gap: 8px; margin-top: 4px }
.ref-regen input { height: 38px; font-size: 13px; border-radius: 10px }
.more-form { margin-top: 10px; display: flex; flex-direction: column }
.more-form label { margin-bottom: 5px; color: var(--mute) }
textarea.code { min-height: 380px; font-family: var(--mono); font-size: 12.8px; line-height: 1.65; background: #0a1220 }
textarea.code.small-code { min-height: 130px; font-size: 12px; line-height: 1.5 }
textarea.code.short { min-height: 72px }
.code-view {
  white-space: pre-wrap; font-family: var(--mono); font-size: 12.8px; line-height: 1.65; color: var(--ink-2); background: #0a1220;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 10px; max-height: 560px; overflow: auto;
}
.vo { display: flex; flex-direction: column; gap: 8px }
.vo-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: center }
.vo-t { font-family: var(--mono); font-size: 13px }
input.vo-t { padding: 0 8px; text-align: center; color: var(--cyan) }
.vo-row.ro { padding: 11px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 14px }
.vo-row.ro .vo-t { color: var(--cyan) }
.notes-list { display: flex; flex-direction: column; gap: 10px }
.note-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--ink-2) }
.note-item b { color: #fff }
.note-item .tag { flex: none; margin-top: 1px }
.ok-line { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--ink-2); font-size: 14px }
.ok-line .i { color: var(--accent) }
.change-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2) }
.tobe { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px }
.tobe > div { padding: 14px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line) }
.tobe b { display: block; margin: 8px 0 4px }
.tobe p { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.5 }
.tobe .tag { gap: 5px }
.brief-text { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--ink-2); max-width: 85ch }
@media (max-width: 900px) {
  .job-grid { grid-template-columns: 1fr }
  .job-player { position: static }
  .player { width: min(100%, calc(72vh * 9 / 16)) }
  .side-first .job-side { order: -1 }
  .player.ph { aspect-ratio: auto; width: 100%; min-height: 240px }
}

.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer }
.clamp.open { -webkit-line-clamp: unset; display: block; cursor: auto }

/* =========================================================== library */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px }
.asset { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s }
.asset:hover { border-color: var(--line-3) }
.asset-media { position: relative; aspect-ratio: 1; background: #0c1424; overflow: hidden }
.asset-media video { width: 100%; height: 100%; object-fit: contain; background: #000 }
.asset-img { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; position: relative; overflow: hidden }
.asset-img::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.42) saturate(1.1) }
.asset-img img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .3s }
.asset-img:hover img { transform: scale(1.03) }
.sting-viz { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--accent); background: radial-gradient(80% 60% at 50% 40%, rgba(34, 211, 238, .1), transparent 70%) }
.wave { display: flex; gap: 4px; align-items: center; height: 44px }
.wave i { width: 4px; border-radius: 4px; background: linear-gradient(var(--accent), var(--blue)); opacity: .85 }
.wave i:nth-child(1) { height: 30% } .wave i:nth-child(2) { height: 60% } .wave i:nth-child(3) { height: 90% } .wave i:nth-child(4) { height: 50% }
.wave i:nth-child(5) { height: 75% } .wave i:nth-child(6) { height: 100% } .wave i:nth-child(7) { height: 65% } .wave i:nth-child(8) { height: 40% }
.wave i:nth-child(9) { height: 85% } .wave i:nth-child(10) { height: 55% } .wave i:nth-child(11) { height: 30% } .wave i:nth-child(12) { height: 45% }
.asset-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.asset-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start }
.asset-name { font-size: 14.5px; font-weight: 650 }
.asset-top .tag { flex: none }
.asset-desc { margin: 0; color: var(--mute); font-size: 12.8px; line-height: 1.5; flex: 1 }
.asset-foot { margin-top: 4px }
.drop.wide { height: 120px }

/* =========================================================== billing */
.bill-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; margin-bottom: 16px }
.bill-top .card + .card { margin-top: 0 }
.balance-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: 210px }
.balance-card .aurora-bg::before { top: -70%; left: -30%; width: 120%; height: 170% }
.balance-card .aurora-bg::after { top: -50%; right: -60%; width: 120%; height: 170% }
.balance-big { font-family: var(--display); font-size: clamp(44px, 6vw, 70px); font-weight: 600; letter-spacing: -.035em; line-height: 1 }
.topups { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px }
.topup {
  height: 58px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--ink);
  font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; transition: all .15s;
}
.topup:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent) }
.ledger { display: flex; flex-direction: column }
.ledger-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line) }
.ledger-row:last-child { border-bottom: 0 }
.ledger-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--panel-3); color: var(--mute) }
.ledger-ico.in { background: var(--green-soft); color: var(--green) }
.ledger-what { flex: 1; min-width: 0; font-size: 14px }
.ledger-amt { font-weight: 600; white-space: nowrap }
.ledger-amt.in { color: var(--green) }
.checkout .warn { margin-bottom: 20px }
@media (max-width: 760px) { .bill-top { grid-template-columns: 1fr } }

.gate .eyebrow .i { color: inherit }

/* =========================================================== account message (pipe user notice) */
.acct-note {
  display: flex; align-items: center; gap: 14px; padding: 13px 13px 13px 15px; margin: 0 0 26px; border-radius: 16px;
  border: 1px solid var(--accent-line); background: linear-gradient(135deg, rgba(34, 211, 238, .13), rgba(59, 130, 246, .08));
  box-shadow: 0 18px 50px -30px rgba(34, 211, 238, .6);
}
.acct-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none }
.acct-note p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--ink) }
.acct-note form { margin: 0 }

/* =========================================================== guided tour (static/tour.js) */
.tour-block { position: fixed; inset: 0; z-index: 80 }
.tour-block.dim { background: rgba(3, 8, 18, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px) }
.tour-hole {
  position: fixed; z-index: 81; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .95), 0 0 0 7px rgba(34, 211, 238, .16), 0 0 0 9999px rgba(3, 8, 18, .74);
  transition: top .3s cubic-bezier(.2, .8, .2, 1), left .3s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1), height .3s cubic-bezier(.2, .8, .2, 1);
}
.tour-card {
  position: fixed; z-index: 82; width: min(360px, calc(100vw - 24px)); padding: 18px 18px 16px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--accent-line); box-shadow: var(--shadow), 0 0 0 6px rgba(34, 211, 238, .06);
  animation: fade .2s ease-out;
}
.tour-card.center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 32px)); padding: 26px 26px 22px }
.tour-top { display: flex; justify-content: space-between; align-items: center }
.tour-count { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) }
.tour-skip { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 12.5px; padding: 4px 2px }
.tour-skip:hover { color: var(--ink) }
.tour-card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 6px }
.tour-card.center h3 { font-size: 30px; margin-top: 10px }
.tour-card p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; line-height: 1.55 }
.tour-list { margin: 4px 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 6px }
.tour-list li::marker { color: var(--accent); font-weight: 700 }
.tour-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px }
@media (max-width: 699px) {
  .tour-card:not(.center) { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto }
}

/* =========================================================== a refused picture (film page) */
.refused-box { margin: 0 0 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(255, 107, 107, .35); background: var(--red-soft) }
.refused-box > p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2) }
.refused-box > p b { color: #fff }
.rf-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.rf-opt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2) }
.rf-opt b { display: flex; align-items: center; gap: 7px; font-size: 14px }
.rf-opt small { color: var(--mute); font-size: 12.5px; line-height: 1.45; flex: 1 }
.rf-opt input[type=file] { font-size: 12px }
@media (max-width: 640px) { .rf-opts { grid-template-columns: 1fr } }
