/* Cuts — cuts.pov.sg. Ported from the approved Claude Design canvas (Main.dc.html / Mobile.dc.html). */
:root {
  --accent: #FFD11A;
  --bg: #F1F1F1; --panel: #FFFFFF; --panel2: #F6F6F6; --sunk: #ECECEC;
  --ink: #141414; --muted: #5C5C5C; --line: #E4E4E4; --line2: #D3D3D3;
  --cta: #141414; --ctaink: #FFFFFF; --sel: #141414; --selink: #FFFFFF;
  --ok: #166B37; --okbg: #E4F4EA; --warn: #7A4E00; --warnbg: #FFF1D1;
  --err: #A1261B; --errbg: #FDE4E1;
  --blue: #1C3D9E; --bluebg: #D9E4FF; --org: #8A3A00; --orgbg: #FFE3CC; --green: #0F6B4F; --greenbg: #D5F2E6;
  --player: #101010; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Anton', 'Impact', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1B1B; --panel: #2A2626; --panel2: #332E2E; --sunk: #231F1F;
    --ink: #F5F2EE; --muted: #B8B0A9; --line: #3B3535; --line2: #4A4343;
    --cta: var(--accent); --ctaink: #141414; --sel: var(--accent); --selink: #141414;
    --ok: #86E0A8; --okbg: #1F3A2A; --warn: #FFD27A; --warnbg: #3D3017;
    --err: #FFB4A8; --errbg: #4A1F1A;
    --blue: #D4DEFF; --bluebg: #2B3A66; --org: #FFDCC2; --orgbg: #5A3519; --green: #9BE8C8; --greenbg: #1C4536;
    --player: #141212; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1B1B; --panel: #2A2626; --panel2: #332E2E; --sunk: #231F1F;
  --ink: #F5F2EE; --muted: #B8B0A9; --line: #3B3535; --line2: #4A4343;
  --cta: var(--accent); --ctaink: #141414; --sel: var(--accent); --selink: #141414;
  --ok: #86E0A8; --okbg: #1F3A2A; --warn: #FFD27A; --warnbg: #3D3017;
  --err: #FFB4A8; --errbg: #4A1F1A;
  --blue: #D4DEFF; --bluebg: #2B3A66; --org: #FFDCC2; --orgbg: #5A3519; --green: #9BE8C8; --greenbg: #1C4536;
  --player: #141212; --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, textarea, select { font: inherit; color: inherit; }
textarea::placeholder, input::placeholder { color: inherit; opacity: .62; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll { scrollbar-width: thin; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ── top bar ─────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1400px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 6px 4px 0; color: var(--ink); }
/* the logo is just the wordmark: lowercase, heavy, the theme's text colour */
.wordmark { font-family: var(--font); font-weight: 800; font-size: 27px; line-height: 1; letter-spacing: -0.055em; color: var(--ink); padding-bottom: 3px; }
.wordmark.lg { font-size: 40px; }
.wm-mini { font-family: var(--font); font-weight: 800; font-size: 15px; line-height: 1; letter-spacing: -0.05em; color: #141414; margin-top: -2px; }
.nav { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.nav button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: transparent; color: var(--muted); border: 1px solid transparent; }
.nav button[aria-current="page"] { background: var(--sel); color: var(--selink); border-color: var(--sel); }
.projbar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.projpill { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 600; min-width: 0; max-width: 360px; }
.projpill span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot.work { background: var(--accent); }
.dot.err { background: var(--err); }
.spacer { flex: 1 1 0; min-width: 0; }
.top-right { display: flex; align-items: center; gap: 10px; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #FFD11A; border: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #141414; padding: 0; overflow: hidden; flex-shrink: 0; }
.avatar.has-img { background: var(--panel2); box-shadow: 0 0 0 1px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-flag { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--warnbg); color: var(--warn); }

/* ── bottom tab bar (phones) ─────────────────────────── */
.tabbar { display: none; }

/* ── main ────────────────────────────────────────────── */
main { max-width: 1400px; margin: 0 auto; padding: 20px 20px 48px; }
.narrow { max-width: 900px; margin: 0 auto; }
.mid { max-width: 1080px; margin: 0 auto; }
.h1 { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.lede { margin-top: 6px; color: var(--muted); font-size: 15px; }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; padding: 4px 0; }
.headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 22px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 14px; gap: 12px; }
.sechead h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.linkbtn { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; padding: 4px; }
.ulink { background: none; border: 0; padding: 2px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--accent); color: #141414; font-weight: 700; }
.btn-cta { background: var(--cta); color: var(--ctaink); }
.btn-ghost { background: var(--panel2); color: var(--ink); border-color: var(--line2); }
.btn-ok { background: var(--okbg); color: var(--ok); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--panel); color: var(--ink); border: 1px solid var(--line2); }
.chip[aria-pressed="true"] { background: var(--sel); color: var(--selink); border-color: var(--sel); }
.chip .sub { font-weight: 500; font-size: 12px; opacity: .78; }
.chip .soon { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: var(--warnbg); color: var(--warn); }
.chip-sm { height: 32px; font-size: 13px; padding: 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { flex-shrink: 0; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge.ok { background: var(--okbg); color: var(--ok); }
.badge.work { background: var(--bluebg); color: var(--blue); }
.badge.warn { background: var(--warnbg); color: var(--warn); }
.badge.err { background: var(--errbg); color: var(--err); }
.badge.idle { background: var(--panel2); color: var(--muted); border-color: var(--line2); }
.tag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--sunk); border-radius: 999px; }
.seg button { flex: 1; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; background: transparent; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.note svg { flex-shrink: 0; margin-top: 1px; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.banner.warn { background: var(--warnbg); color: var(--warn); }
.banner.err { background: var(--errbg); color: var(--err); }
.banner.ok { background: var(--okbg); color: var(--ok); }
.banner.info { background: var(--panel); border: 1px solid var(--line); color: var(--ink); }

/* ── home ────────────────────────────────────────────── */
.home { padding-top: 28px; }
.greet { margin: 0 0 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.ask-h1 { display: block; font-size: 44px; line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 22px; }
.promptbox { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.promptbox textarea { width: 100%; resize: vertical; min-height: 96px; border: 0; background: transparent; color: var(--ink); font-size: 18px; line-height: 1.5; padding: 6px 6px 10px; outline: none; }
.promptbox textarea:focus-visible { outline: none; }
.promptbox:focus-within { border-color: var(--line2); }
.addrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 0 14px; }
.addbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font-weight: 600; font-size: 14px; }
.filechip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line2); color: var(--muted); font-size: 13px; font-weight: 500; max-width: 100%; min-width: 0; }
.filechip .sw { width: 22px; height: 14px; border-radius: 4px; background: linear-gradient(135deg,#E7B49A,#8C4A3A); flex-shrink: 0; }
.filechip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.makerow { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.makerow .outs { flex: 1 1 420px; min-width: 0; }
.lbl { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hints { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }

.tplrow { display: flex; flex-wrap: wrap; gap: 12px; }
.tplmini { flex: 1 1 180px; min-width: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 10px; color: var(--ink); }
.tplmini .th { display: flex; align-items: flex-end; padding: 10px; aspect-ratio: 4/3; border-radius: 12px; }
.tplmini .th span { font-family: var(--display); font-size: 20px; line-height: 1; color: #fff; letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.tplmini .nm { display: block; font-weight: 600; font-size: 14px; margin-top: 10px; }
.tplmini .tg { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.projgrid { display: flex; flex-wrap: wrap; gap: 16px; }
.projgrid.sm { gap: 12px; }
.proj { flex: 1 1 280px; max-width: 440px; min-width: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 10px; color: var(--ink); }
.projgrid.sm .proj { flex-basis: 240px; max-width: none; border-radius: 18px; }
.proj .th { display: block; position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; }
.proj .len { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; }
.proj .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.proj .nm { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj .meta { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 18px; width: 100%; }

/* ── templates ───────────────────────────────────────── */
.tplgrid { display: flex; flex-wrap: wrap; gap: 16px; }
.tpl { flex: 1 1 260px; max-width: 340px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; }
.tpl .art { position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; }
.tpl .art > div { position: absolute; inset: 0; }
.tpl .body { padding: 12px 4px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tpl .body .r { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl h3 { font-size: 16px; font-weight: 600; }
.tpl p { font-size: 13px; line-height: 1.45; color: var(--muted); flex: 1; }
.tpl .use { margin-top: 10px; }
.soonmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-4deg); background: #141414; color: var(--accent); font-family: var(--display); font-size: 22px; padding: 6px 14px; border-radius: 10px; letter-spacing: .02em; z-index: 2; }

/* ── upload ──────────────────────────────────────────── */
.upgrid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.upmain { flex: 2 1 460px; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.upside { flex: 1 1 260px; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.field label, .field .flabel { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); padding: 0 12px; font-size: 15px; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 34px 18px; border-radius: 18px; border: 2px dashed var(--line2); background: var(--panel2); color: var(--ink); }
.drop.over { border-color: var(--ink); background: var(--sunk); }
.drop .big { font-size: 18px; font-weight: 600; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picked { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.picked .sw { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(160deg,#E7B49A,#8C4A3A); flex-shrink: 0; }
.picked .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.consent.need { border-color: var(--err); background: var(--errbg); }
.bar { height: 12px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.bar > div { height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.bar.sm { height: 6px; }
.upstats { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.keepopen { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--warnbg); color: var(--warn); font-weight: 600; font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel2); font-size: 14px; font-weight: 600; color: var(--muted); }
.steps li .ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps li.done { background: var(--okbg); color: var(--ok); }
.steps li.done .ic { border-color: currentColor; }
.steps li.now { background: var(--panel); border: 1px solid var(--ink); color: var(--ink); }
.steps li.now .ic { border-color: var(--ink); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.now .ic { animation: none; } .bar > div { transition: none; } }

/* ── progress ────────────────────────────────────────── */
.prog { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.prog .big { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pct { font-family: var(--display); font-size: 56px; line-height: 1; }

/* ── editor ──────────────────────────────────────────── */
.ed { display: grid; gap: 12px; grid-template-columns: 72px minmax(200px, 250px) minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "rail side player ask" "tl tl tl tl"; align-items: stretch; }
.ed-rail { grid-area: rail; display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; }
.ed-rail button { border: 0; border-radius: 14px; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; width: 100%; background: transparent; color: var(--muted); }
.ed-rail button[aria-pressed="true"] { background: var(--sunk); color: var(--ink); }
.ed-side { grid-area: side; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ed-side .hd { display: flex; align-items: center; justify-content: space-between; }
.ed-side h2 { font-size: 15px; font-weight: 600; }
.ritems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ritems li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); }
.ritems li.on { border-color: var(--ink); }
.ritems .t { display: block; font-size: 13px; font-weight: 600; }
.ritems .s { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ritems button { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: 12px; font-weight: 600; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mthumb { position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg,#E7B49A 0%,#8C4A3A 100%); border: 2px solid var(--accent); }
.mthumb .d { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 600; }
.ed-player { grid-area: player; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.stage { position: relative; height: 460px; aspect-ratio: 9/16; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--player); }
.stage.wide { height: auto; width: 100%; aspect-ratio: 16/9; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 20px; font-weight: 600; }
.stage .fmt { position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,.66); color: #fff; border-radius: 999px; padding: 4px 9px; font-size: 10px; font-weight: 700; z-index: 3; }
.stage .ver { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.66); color: #fff; border-radius: 999px; padding: 4px 9px; font-size: 10px; font-weight: 700; letter-spacing: .06em; z-index: 3; }
.stage .scrub { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); z-index: 3; pointer-events: none; }
.stage .scrub > div { width: 0; height: 100%; border-radius: 4px; background: var(--accent); }
.mockframe { position: absolute; inset: 0; }
.mockframe .cap { position: absolute; left: 14px; right: 14px; bottom: 13%; font-family: var(--display); color: #fff; line-height: 1.04; letter-spacing: .005em; text-shadow: 0 2px 10px rgba(0,0,0,.4); font-size: 38px; text-transform: uppercase; }
.mockframe .cap .hl { background: var(--accent); color: #141414; padding: 0 .14em; border-radius: 4px; }
.stage.wide .mockframe .cap { font-size: 30px; bottom: 9%; }
.sticker { position: absolute; right: 14px; top: 34%; transform: rotate(7deg); background: #fff; color: #141414; border: 2.5px solid #141414; border-radius: 12px; padding: 5px 10px; font-family: var(--display); font-size: 17px; letter-spacing: .01em; box-shadow: 3px 3px 0 #141414; }
.ctrls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ctrls .sm { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
.ctrls .play { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--cta); color: var(--ctaink); display: flex; align-items: center; justify-content: center; padding: 0; }
.ctrls .time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; padding: 0 4px; }
.approve { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.approve .hint { font-size: 13px; color: var(--muted); }
.ed-ask { grid-area: ask; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 560px; min-width: 0; }
.chat { flex: 1; min-height: 200px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg.user { justify-content: flex-end; }
.msg .av { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bubble { padding: 10px 12px; font-size: 14px; line-height: 1.45; max-width: 86%; overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--sel); color: var(--selink); border-radius: 16px 16px 4px 16px; }
.msg.cuts .bubble { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.bubble .at { display: block; font-size: 11px; opacity: .75; margin-bottom: 2px; font-weight: 600; }
.opchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--okbg); color: var(--ok); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.askbox { display: flex; gap: 8px; align-items: center; background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 5px 5px 16px; }
.askbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; outline: none; height: 34px; }
.askbox:focus-within { border-color: var(--ink); }
.askbox input:focus-visible { outline: none; }
.send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cta); color: var(--ctaink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.attime { font-size: 12px; color: var(--muted); margin-top: -4px; padding-left: 16px; }
.caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; }
.caps li { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.caps li.low { border-color: var(--warn); background: var(--warnbg); }
.caps li.cur { border-color: var(--ink); }
.caps .tc { font-size: 12px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 2px 4px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.caps input { flex: 1; min-width: 0; height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); padding: 0 8px; font-size: 14px; }

.ed-tl { grid-area: tl; padding: 12px 14px 14px; min-width: 0; }
.tlhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.tlwrap { overflow-x: auto; }
.tlin { min-width: 640px; position: relative; }
.ruler { display: flex; align-items: flex-end; height: 22px; }
.ruler .lab { flex: 0 0 96px; }
.ruler .ticks { flex: 1; position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.ruler .ticks span { position: absolute; bottom: 3px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.track { display: flex; align-items: center; height: 38px; margin-top: 6px; }
.track .lab { flex: 0 0 96px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.track .lab i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.track .lane { flex: 1; position: relative; height: 100%; background: var(--sunk); border-radius: 12px; cursor: pointer; }
.clipblk { position: absolute; top: 3px; bottom: 3px; border-radius: 10px; padding: 0 6px; display: flex; align-items: center; overflow: hidden; border: 2px solid transparent; text-align: left; }
.clipblk .l { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.clipblk.vid { background: repeating-linear-gradient(90deg,transparent 0 40px,rgba(0,0,0,.3) 40px 42px), linear-gradient(135deg,#B67B5D,#5B3424); }
.clipblk.vid:nth-child(4n+2) { background: repeating-linear-gradient(90deg,transparent 0 40px,rgba(0,0,0,.3) 40px 42px), linear-gradient(135deg,#8F6A4E,#3B2A1F); }
.clipblk.vid:nth-child(4n+3) { background: repeating-linear-gradient(90deg,transparent 0 40px,rgba(0,0,0,.3) 40px 42px), linear-gradient(135deg,#6F7A84,#2E353C); }
.clipblk.vid:nth-child(4n+4) { background: repeating-linear-gradient(90deg,transparent 0 40px,rgba(0,0,0,.3) 40px 42px), linear-gradient(135deg,#A0784E,#4A3520); }
.clipblk.vid .l { background: rgba(0,0,0,.6); color: #fff; }
.clipblk.vid.cur { border-color: var(--accent); }
.clipblk.cap { border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); padding: 0 4px; }
.clipblk.cap .l { color: var(--ink); }
.clipblk.chap { border-radius: 999px; background: var(--bluebg); padding: 0 4px; }
.clipblk.chap .l { color: var(--blue); }
.clipblk.hook { border-radius: 999px; background: var(--accent); padding: 0 4px; }
.clipblk.hook .l { color: #141414; }
.playhead { position: absolute; left: 96px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.playhead > div { position: absolute; left: 0; top: 0; bottom: -4px; width: 2px; margin-left: -1px; background: var(--accent); }
.ruler .ticks span:first-child { left: 12px !important; }
.playhead > div::before { content: ''; position: absolute; left: -6px; top: 2px; width: 14px; height: 14px; border-radius: 4px 4px 7px 7px; background: var(--accent); }

/* ── export ──────────────────────────────────────────── */
.exgrid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.exlist { flex: 2 1 460px; min-width: 0; padding: 8px 18px; }
.exlist ul { list-style: none; margin: 0; padding: 0; }
.exlist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.exlist .th { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exlist .th span { display: block; border-radius: 6px; background: linear-gradient(160deg,#E7B49A,#8C4A3A); }
.exlist .nm { flex: 1; min-width: 160px; }
.exlist .nm b { display: block; font-weight: 600; font-size: 15px; }
.exlist .nm span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.exlist .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.exacts { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0 10px; }
.checks { flex: 1 1 280px; min-width: 0; padding: 18px; }
.checks ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.checks li.ok { background: var(--okbg); color: var(--ok); border-color: transparent; }
.checks li b { display: block; font-size: 14px; }
.checks li span { display: block; font-size: 12px; font-weight: 500; margin-top: 2px; }
.checks li svg { flex-shrink: 0; margin-top: 2px; }

/* ── coming soon / login ─────────────────────────────── */
.soonwrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.soonart { flex: 1 1 340px; min-width: 0; padding: 18px; display: flex; gap: 12px; overflow: hidden; position: relative; }
.soonart .slide { position: relative; flex: 0 0 150px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; opacity: .55; }
.sooncopy { flex: 1 1 300px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.login { max-width: 420px; margin: 8vh auto 0; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.login .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.login .or::before, .login .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.err { color: var(--err); font-size: 14px; font-weight: 600; }


/* ── Style panel (editor → Style tab) ──────────────────────────────────── */
.stylep { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 640px; padding-right: 2px; }
.sty-busy { justify-content: flex-start; background: var(--warnbg); color: var(--warn); font-size: 13px; }
.sreco { padding: 12px; border-radius: 16px; border: 2px solid var(--accent); background: var(--panel2); display: flex; flex-direction: column; gap: 10px; }
.sreco .lbl { margin: 0; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.srow { display: flex; gap: 12px; align-items: flex-start; }
.sname { font-size: 17px; font-weight: 700; }
.swhy { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stags { display: flex; flex-wrap: wrap; gap: 6px; }
.stags span { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); }
.sapplied { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 999px; background: var(--okbg); color: var(--ok); font-weight: 700; font-size: 14px; }
.sapplied.sm { height: 30px; padding: 0 10px; font-size: 12px; flex-shrink: 0; }
.stry { display: flex; flex-direction: column; gap: 8px; }
.stcard { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); }
.stcard b { font-size: 14px; } .stcard p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stcard .sp { width: 40px; height: 64px; }
.sgrp { border-top: 1px solid var(--line); padding-top: 10px; }
.sgrp summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.sgrp summary::-webkit-details-marker { display: none; }
.sgrp summary::after { content: '+'; font-size: 18px; color: var(--muted); }
.sgrp[open] summary::after { content: '–'; }
.sgrp summary .muted { font-weight: 500; font-size: 12px; margin-left: auto; margin-right: 10px; }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.scard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); text-align: left; min-width: 0; }
.scard b { font-size: 13px; line-height: 1.2; }
.scard > span:not(.sp) { font-size: 11px; color: var(--muted); line-height: 1.3; }
.scard[aria-pressed="true"] { border: 2px solid var(--ink); padding: 7px; }
.scard .sp { width: 100%; height: 74px; }
.scard .tg { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.35); }
.scard[aria-pressed="true"] .tg { background: var(--accent); border-color: #141414; }
.scard[aria-pressed="true"] .tg::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #141414; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sfxrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 10px; }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--line2); position: relative; flex-shrink: 0; padding: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"] i { left: 25px; }
.sfxlist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sfxlist li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line); }
.sfxlist li.on { background: var(--panel2); border-color: var(--line2); }
.sfxlist b { display: block; font-size: 13px; } .sfxlist li > span span { display: block; font-size: 11px; color: var(--muted); }
.sfxlist em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--okbg); color: var(--ok); flex-shrink: 0; }
.sfxplay { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.wv { display: flex; gap: 2px; align-items: center; height: 14px; }
.wv i { width: 3px; height: 6px; border-radius: 2px; background: var(--ink); }
.wv i:nth-child(2) { height: 12px; } .wv i:nth-child(3) { height: 9px; } .wv i:nth-child(4) { height: 4px; }
.sfxplay.playing .wv i { animation: wv .35s ease-in-out infinite alternate; }
.sfxplay.playing .wv i:nth-child(2) { animation-delay: .1s; } .sfxplay.playing .wv i:nth-child(3) { animation-delay: .2s; }
@keyframes wv { to { transform: scaleY(1.8); } }
.clipblk.fxb { background: var(--orgbg); border: 1px solid var(--org); border-radius: 8px; }
.clipblk.fxb .l { color: var(--org); padding: 0 4px; }
.sfxmark { position: absolute; bottom: 2px; width: 2px; height: 10px; margin-left: -1px; background: var(--org); border-radius: 1px; pointer-events: none; }

/* previews: a tiny 9:16 "frame" + CSS-only animation of the look / caption / element */
.sp { position: relative; display: block; flex-shrink: 0; width: 54px; height: 86px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #8FB0CC 0 34%, #D9B9A3 34% 100%); }
.sp::before { content: ''; position: absolute; left: 30%; right: 30%; top: 30%; bottom: 0; border-radius: 40% 40% 0 0; background: #4A3B33; }
.sp::after { content: ''; position: absolute; left: 39%; top: 18%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #C08F6E; }
.sp .cap { position: absolute; left: 4px; right: 4px; bottom: 16%; z-index: 3; text-align: center; color: #fff; font: 800 9px/1.1 'Inter Tight', sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; }
.sp .cap em { font-style: normal; color: #FFD11A; }
.scard .sp .cap { font-size: 13px; }
.sp .lb, .sp .pb { display: none; }
/* looks */
.lk-creator-punch .cap em { font: 900 1.05em/1 'Unbounded', sans-serif; display: inline-block; animation: pop 1.6s infinite; }
.lk-creator-punch .pb { display: block; position: absolute; top: 0; left: 0; height: 3px; background: #FFD11A; z-index: 4; animation: grow 3s linear infinite; }
.lk-creator-punch::before { animation: punch 1.6s infinite; }
.lk-clean-editorial .cap { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }
.lk-clean-editorial .cap em { font: italic 500 1.25em/1 'Playfair Display', serif; text-transform: none; }
.lk-karaoke-box .cap { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }
.lk-karaoke-box .cap em, .t-karaoke-box .cap em { background: #FFD11A; color: #141414; border-radius: 3px; padding: 0 2px; animation: kbox 1.6s steps(1) infinite; text-shadow: none; }
.lk-bold-news .cap { font: 400 1.5em/1 'Anton', sans-serif; text-transform: uppercase; }
.lk-bold-news .cap span, .lk-bold-news .cap { letter-spacing: .02em; }
.lk-bold-news::before { animation: shake 1.8s infinite; }
.lk-luxury-calm .cap { font: 600 1em/1.1 'Playfair Display', serif; animation: fade 3s infinite; }
.lk-luxury-calm .cap em { font-style: italic; font-weight: 500; }
.lk-luxury-calm .lb { display: block; position: absolute; inset: 0; z-index: 4; border-top: 12px solid #000; border-bottom: 12px solid #000; animation: bars 3s infinite; }
.lk-minimal-subtitle .cap { font: 800 .95em/1.1 'Fira Sans', sans-serif; -webkit-text-stroke: .6px #000; }
.lk-minimal-subtitle .cap em { color: #fff; }
/* typography */
.sp-typo .cap { bottom: 22%; }
.t-phrase-pop .cap em { font: 900 1.05em/1 'Unbounded', sans-serif; display: inline-block; animation: pop 1.6s infinite; }
.t-phrase-pop .cap span { animation: fade 1.6s infinite; }
.t-karaoke-box .cap { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }
.t-karaoke-box .cap span { background: #FFD11A; color: #141414; border-radius: 3px; padding: 0 2px; text-shadow: none; animation: kbox 1.6s steps(1) infinite reverse; }
.t-word-by-word .cap { font: 800 1.2em/1 'Montserrat', sans-serif; }
.t-word-by-word .cap span { animation: wordA 1.6s steps(1) infinite; } .t-word-by-word .cap em { animation: wordB 1.6s steps(1) infinite; display: inline-block; }
.t-big-word .cap { font: 400 2.1em/1 'Anton', sans-serif; text-transform: uppercase; bottom: 18%; }
.t-big-word .cap span { display: none; } .t-big-word .cap em { display: inline-block; animation: pop 1.6s infinite; }
.t-outlined .cap { font: 800 1em/1.1 'Fira Sans', sans-serif; -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.t-outlined .cap em { color: #fff; }
.t-serif-luxury .cap { font: 600 1.05em/1.1 'Playfair Display', serif; animation: fade 2.4s infinite; }
.t-serif-luxury .cap em { font-style: italic; font-weight: 500; }
.t-handwritten-callout .cap { font: 800 1em/1.1 'Fira Sans', sans-serif; }
.t-handwritten-callout .hw { position: absolute; z-index: 3; left: 0; right: 0; bottom: 44%; text-align: center; font: 700 1.25em/1 'Caveat', cursive; color: #FFD11A; transform: rotate(-5deg); text-shadow: 0 1px 2px #000; font-style: normal;
  background: linear-gradient(#FFD11A, #FFD11A) no-repeat 50% 100% / 0 2px; animation: under 2s infinite; }
.scard .t-handwritten-callout .hw { font-size: 19px; }
.t-giant-mix .cap { font: 800 1em/1 'Montserrat', sans-serif; text-transform: uppercase; }
.t-giant-mix .cap em { font: italic 500 1.5em/1 'Playfair Display', serif; text-transform: none; display: inline-block; animation: pop 1.6s infinite; }
/* elements */
.sp-el i { position: absolute; z-index: 3; display: block; }
.e-punch-keyword::before, .e-punch-keyword::after { animation: punch 1.4s steps(1) infinite; }
.e-whip i:nth-child(1) { inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75) 40%, rgba(255,255,255,.75) 60%, transparent); filter: blur(2px); animation: whip 1.6s infinite; }
.e-flash i:nth-child(1) { inset: 0; background: #fff; animation: flash 1.8s infinite; }
.e-sticker-pop i:nth-child(1) { right: 12%; top: 30%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: pop2 1.8s infinite; }
.e-sticker-pop i:nth-child(1)::after { content: '🏠'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.e-arrow-callout i:nth-child(1) { left: 12%; top: 14%; width: 46%; height: 30%; border: 3px solid #FFD11A; border-color: #FFD11A transparent transparent #FFD11A; border-radius: 60% 0 0 0; transform: rotate(-12deg); animation: draw 1.8s infinite; }
.e-arrow-callout i:nth-child(2) { left: 54%; top: 34%; width: 0; height: 0; border: 6px solid transparent; border-top-color: #FFD11A; animation: fade 1.8s infinite; }
.e-progress-bar i:nth-child(1) { left: 0; top: 0; height: 5px; background: #FFD11A; animation: grow 2.4s linear infinite; }
.e-price-ticker i:nth-child(1) { left: 14%; right: 14%; top: 18%; height: 26%; border-radius: 6px; background: #0B1426; border-top: 3px solid #FFD11A; }
.e-price-ticker i:nth-child(1)::after { content: '$1.2M'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #FFD11A; font: 400 15px/1 'Anton', sans-serif; animation: count 1.8s infinite; }
.e-lower-third i:nth-child(1) { left: 6%; bottom: 10%; width: 62%; height: 15%; border-radius: 4px; background: #0B1426; border-left: 4px solid #FFD11A; animation: slide 2.4s infinite; }
.e-map-pin i:nth-child(1) { left: 14%; right: 14%; top: 18%; height: 18%; border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.e-map-pin i:nth-child(2) { left: 20%; top: 17%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: #FFD11A; border: 2px solid #0B1426; transform: rotate(-45deg); animation: drop 1.8s infinite; }
.e-split-screen i:nth-child(1) { left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(180deg, #8FB0CC, #C08F6E); }
.e-split-screen i:nth-child(1)::after { content: ''; position: absolute; left: 35%; top: 30%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: #9C6E52; }
.e-split-screen i:nth-child(2) { left: 0; right: 0; top: calc(50% - 2px); height: 4px; background: #FFD11A; }
.e-letterbox-title i:nth-child(1) { inset: 0; border-top: 16px solid #000; border-bottom: 16px solid #000; animation: bars 2.6s infinite; }
.e-letterbox-title i:nth-child(2) { left: 0; right: 0; top: 3px; text-align: center; font: italic 500 9px/1 'Playfair Display', serif; color: #FFD11A; }
.e-letterbox-title i:nth-child(2)::after { content: 'The Title'; }
.e-shake-beat::before, .e-shake-beat::after { animation: shake 1.4s infinite; }
@keyframes pop { 0%, 40% { transform: scale(1); } 48% { transform: scale(1.3); } 56%, 100% { transform: scale(1); } }
@keyframes pop2 { 0%, 20% { transform: scale(0); } 30% { transform: scale(1.18); } 38%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes grow { from { width: 0; } to { width: 100%; } }
@keyframes punch { 0%, 49% { transform: scale(1); } 50%, 100% { transform: scale(1.18); transform-origin: 50% 40%; } }
@keyframes kbox { 0% { background: #FFD11A; color: #141414; } 50% { background: transparent; color: #FFD11A; } }
@keyframes wordA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes wordB { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes fade { 0% { opacity: 0; } 25%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bars { 0% { border-width: 0; } 20%, 85% { border-top-width: 12px; border-bottom-width: 12px; } 100% { border-width: 0; } }
@keyframes shake { 0%, 60%, 100% { transform: translate(0, 0); } 64% { transform: translate(-2px, 1px); } 68% { transform: translate(2px, -1px); } 72% { transform: translate(-1px, 1px); } 76% { transform: translate(1px, 0); } }
@keyframes whip { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes flash { 0%, 50% { opacity: 0; } 52% { opacity: .9; } 70%, 100% { opacity: 0; } }
@keyframes draw { 0% { clip-path: inset(0 100% 0 0); } 40%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes count { 0% { opacity: .2; transform: translateY(4px); } 30%, 100% { opacity: 1; transform: none; } }
@keyframes slide { 0% { transform: translateX(-110%); } 15%, 85% { transform: none; } 100% { transform: translateX(-110%); } }
@keyframes drop { 0% { transform: translateY(-14px) rotate(-45deg); opacity: 0; } 25%, 100% { transform: rotate(-45deg); opacity: 1; } }
@keyframes under { 0%, 20% { background-size: 0 2px; } 50%, 100% { background-size: 70% 2px; } }
@media (prefers-reduced-motion: reduce) { .sp, .sp *, .sp::before, .sp::after, .sp *::after { animation: none !important; } }
@media (max-width: 820px) { .stylep { max-height: none; } }
@media (max-width: 380px) { .sgrid { grid-template-columns: minmax(0, 1fr); } }
/* toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.2); text-align: center; }
.toast.err { background: var(--err); color: #fff; }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 1180px) {
  .ed { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "player ask" "tl tl" "rail rail" "side side"; }
  .ed-rail { flex-direction: row; justify-content: space-around; padding: 6px; }
  .ed-rail button { width: auto; flex: 1; }
}
@media (max-width: 820px) {
  .ed { grid-template-columns: minmax(0, 1fr); grid-template-areas: "player" "ask" "tl" "rail" "side"; }
  .ed-ask { min-height: 0; }
  .chat { max-height: 300px; }
}
@media (max-width: 720px) {
  .top-in { padding: 10px 16px; gap: 10px; }
  .nav { display: none; }
  .projbar { order: 5; flex: 1 1 100%; }
  .projpill { max-width: 100%; }
  main { padding: 12px 16px 104px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; align-items: flex-start; height: calc(68px + env(safe-area-inset-bottom)); padding: 8px 0 env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line); }
  .tabbar button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 2px 14px; }
  .tabbar button[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .toasts { bottom: 92px; }
  .home { padding-top: 4px; }
  .ask-h1 { font-size: 28px; line-height: 1.1; margin-bottom: 14px; }
  .greet { margin-bottom: 6px; }
  .promptbox { padding: 14px; border-radius: 22px; }
  .promptbox textarea { font-size: 16px; min-height: 64px; }
  .addrow .addbtn { flex: 1 1 0; justify-content: center; white-space: nowrap; padding: 0 12px; font-size: 13px; }
  .projgrid.sm .proj .th { aspect-ratio: 16/6; }
  .exlist .acts { margin-left: 66px; }
  .makerow { flex-direction: column; align-items: stretch; }
  .makerow .outs { flex-basis: auto; }
  .makerow .btn-lg { width: 100%; height: 54px; }
  .chip { height: 34px; padding: 0 12px; font-size: 13px; }
  .h1 { font-size: 30px; }
  .sechead { margin: 26px 0 10px; }
  .tpl { max-width: none; }
  .proj { max-width: none; }
  .stage { height: auto; width: min(100%, 300px); }
  .stage.wide { width: 100%; }
  .mockframe .cap { font-size: 30px; }
  .brand-by { display: none; }
}
@media (max-width: 420px) {
  .tplmini { flex-basis: calc(50% - 6px); }
  .hide-xs { display: none !important; }
}

/* ── several clips + photos: the media tray (home + new project) ───────────── */
.mediatray { display: flex; flex-direction: column; gap: 12px; padding: 2px 0 14px; }
.mediatray.big { padding: 0; }
.mrow .lbl { margin-bottom: 6px; }
.mlist { display: flex; flex-wrap: wrap; gap: 10px; }
.mtile { position: relative; width: 84px; display: flex; flex-direction: column; gap: 5px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; border-radius: 14px; outline-offset: 3px; }
.mediatray.big .mtile { width: 96px; }
.mtile .th { position: relative; display: block; width: 100%; aspect-ratio: 3/4; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid var(--line2); overflow: hidden; }
.mtile.wide .th { background-size: cover; }
.mtile.k-photo .th, .mtile.k-pdf .th { aspect-ratio: 1/1; }
.mtile.k-pdf .th { background: var(--panel) !important; }
.mtile .no { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #FFD11A; color: #141414; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mtile .d { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.66); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; }
.mtile .pdf { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--err); }
.mtile .nm { font-size: 11px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtile .x { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); background: var(--ink); color: var(--panel); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.mtile.dragging { opacity: .55; cursor: grabbing; }
.mtile.dragging .th { border: 2px solid var(--ink); }
.mlist.sorting .mtile:not(.dragging) { transition: transform .12s ease; }
.mtile:focus-visible .th { box-shadow: 0 0 0 3px var(--accent); }
@media (pointer: coarse) { .mtile .x { width: 30px; height: 30px; right: -8px; top: -8px; } }

/* full-window drop overlay */
.dropov { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20,20,20,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); pointer-events: none; }
.dropov[hidden] { display: none; }
.dropov .in { width: min(560px, 100%); min-height: 260px; border-radius: 28px; border: 3px dashed #FFD11A; background: var(--panel); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dropov .in b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.dropov .in span { color: var(--muted); font-size: 14px; }
.dropov .ic { width: 64px; height: 64px; border-radius: 20px; background: #FFD11A; color: #141414; display: flex; align-items: center; justify-content: center; }

/* upload list (several files) + resume list */
.uplist, .resumelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.uplist:empty { display: none; }
.uplist li, .resumelist li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.uplist li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.resumelist li .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resumelist li .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uplist .ic, .resumelist .ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.uplist li.ok .ic, .resumelist li.ok .ic { background: var(--okbg); color: var(--ok); }

/* editor: photos track + media panel */
.clipblk.brl { background: var(--greenbg); border-radius: 8px; padding: 0 4px; }
.clipblk.brl .l { color: var(--green); }
.mthumb .no { position: absolute; left: 6px; top: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #FFD11A; color: #141414; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mname { font-size: 12px; font-weight: 600; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgrid > div { min-width: 0; }
.ritems.photos li { flex-wrap: wrap; row-gap: 8px; }
.ritems.photos li > span:first-child { flex: 1 1 140px; }
.rbtns { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
