body.app-body { background: #0b0b0c; }
.shell { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }

/* ---------- sidebar ---------- */
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #0b0b0c; border-right: 1px solid var(--line); padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.acct { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; }
.acct:hover { border-color: var(--line-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.acct .who { min-width: 0; flex: 1; }
.acct .email { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-chip { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 7px; background: rgba(255,255,255,.08); color: #d8d8dc; }
.plan-chip.paid { background: rgba(200,255,60,.12); color: var(--lime); }
.acct .chev { color: var(--dim); }
.acct-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; display: none; z-index: 20; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.acct-menu.open { display: block; }
.acct-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.acct-menu button:hover { background: rgba(255,255,255,.06); }
.side .group { color: var(--dim); font-size: 13.5px; font-weight: 500; margin: 20px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #d4d4d8; font-size: 15.5px; font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nav-item svg { width: 20px; height: 20px; flex: none; color: #a1a1a6; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active svg { color: #fff; }
.nav-item .soon { margin-left: auto; font-size: 11px; color: var(--dim); font-weight: 600; letter-spacing: .02em; }
.side .spacer { flex: 1; min-height: 16px; }
.upsell { border-radius: 16px; padding: 16px; background: linear-gradient(160deg, rgba(255,47,135,.16), rgba(255,92,53,.08) 60%, transparent), var(--card); border: 1px solid var(--line); }
.upsell b { display: block; font-size: 15px; margin-bottom: 4px; }
.upsell p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.upsell .bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 12px; }
.upsell .bar i { display: block; height: 100%; background: #fff; }
.upsell .btn { width: 100%; }

/* ---------- top bar + main ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 72px; padding: 0 28px; background: rgba(11,11,12,.85); backdrop-filter: blur(14px); }
.topbar .menu-btn { display: none; margin-right: auto; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text); }
.credits { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.credits svg { width: 17px; height: 17px; color: #ffcc33; }
.content { width: min(1120px, 100%); margin: 0 auto; padding: 24px 28px 90px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 286px; z-index: 80; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.7); }
  .topbar { padding: 0 16px; justify-content: flex-end; }
  .topbar .menu-btn { display: block; }
  .content { padding: 16px 16px 80px; }
}
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 70; display: none; }
.scrim.open { display: block; }

/* ---------- create card (home) ---------- */
.create { max-width: 940px; margin: 36px auto 0; }
.tabs { display: flex; gap: 4px; padding: 0 6px; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px; border-radius: 18px 18px 0 0; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 17px; color: #a1a1a6; }
.tab svg { width: 20px; height: 20px; }
.tab.active { background: #19191b; color: #fff; }
.tab.active svg { color: var(--lime); }
.tab.live-tab.active svg { color: #ff4d5e; }
.panel-card { background: #19191b; border-radius: 26px; padding: 22px; border: 1px solid rgba(255,255,255,.04); }
.tabs + .panel-card { border-top-left-radius: 0; }
.urlbox { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 22px; background: #111113; border: 1px solid var(--line-2); border-radius: 18px; transition: border-color .2s; }
.urlbox:focus-within { border-color: rgba(255,255,255,.35); }
.urlbox svg { width: 20px; height: 20px; color: var(--dim); flex: none; }
.urlbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 17px; padding: 14px 0; }
.urlbox input::placeholder { color: #6e6e73; }
.urlbox .btn { border-radius: 14px; padding: 15px 24px; font-size: 16px; }
.drop { display: grid; place-items: center; gap: 12px; padding: 34px 20px; border: 1.5px dashed rgba(255,255,255,.18); border-radius: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.02); }
.drop b { color: #fff; font-size: 17px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.opt { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); background: #111113; border: 1px solid var(--line); border-radius: 12px; padding: 3px 4px 3px 12px; }
.opt select { background: transparent; border: 0; outline: 0; padding: 8px 6px; color: var(--text); cursor: pointer; font-weight: 500; }
.opt select option { background: #19191b; }
.rights { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; margin-left: auto; }
.rights input { width: 16px; height: 16px; accent-color: #fff; }
.livehint { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.notice { margin: 16px auto 0; max-width: 940px; padding: 13px 16px; border-radius: 14px; font-size: 14.5px; display: none; }
.notice.show { display: block; }
.notice.error { background: rgba(255,80,100,.09); border: 1px solid rgba(255,80,100,.3); color: #ffb3bd; }
.notice.ok { background: rgba(200,255,60,.07); border: 1px solid rgba(200,255,60,.28); color: #e2ffad; }
.notice a { text-decoration: underline; cursor: pointer; color: #fff; }

.recipes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 26px auto 0; }
.recipe { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #d4d4d8; font-size: 15px; font-weight: 500; cursor: pointer; }
.recipe svg { width: 17px; height: 17px; color: #a1a1a6; }
.recipe:hover { background: rgba(255,255,255,.05); color: #fff; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 64px 0 18px; }
.section-title h2 { margin: 0; font-size: 20px; font-weight: 600; color: #d4d4d8; letter-spacing: -.01em; }
.section-title a { color: var(--muted); font-size: 14.5px; cursor: pointer; }
.section-title a:hover { color: #fff; }

/* ---------- project cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pcard { border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pcard .thumb { position: relative; aspect-ratio: 16/9; background: #18181a; overflow: hidden; }
.pcard .thumb .strip { position: absolute; inset: 0; display: flex; }
.pcard .thumb .strip img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.pcard .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85)); }
.pcard .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }
.pcard .thumb .ph svg { width: 34px; height: 34px; }
.pcard .over { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.pcard .over h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.pcard .over .sub { font-size: 13px; color: #c8c8cc; margin-top: 3px; }
.pbadge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); }
.pbadge.live { background: #e5162f; letter-spacing: .06em; }
.pcard .foot { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-size: 13.5px; color: var(--muted); gap: 10px; }
.pcard .foot .ok { color: var(--lime); font-weight: 600; }
.pcard .foot .fail { color: #ff7b8a; font-weight: 600; }
.progress { height: 5px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: #fff; transition: width .6s; }
.pcard .progress { margin: 0 16px 14px; }
.empty { border: 1px dashed var(--line-2); border-radius: 20px; padding: 54px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }

/* ---------- project page ---------- */
.back { color: var(--muted); font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; margin-top: 8px; }
.back:hover { color: var(--text); }
.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 18px 0 28px; flex-wrap: wrap; }
.phead h1 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; max-width: 760px; line-height: 1.15; }
.phead .meta { color: var(--muted); font-size: 14.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.phead .meta a { color: #d4d4d8; text-decoration: underline; text-underline-offset: 3px; }
.phead .actions { display: flex; gap: 10px; }
.status-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-bottom: 28px; }
.status-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 15px; }
.status-card .row b { font-weight: 600; }
.status-card .steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.status-card .steps span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--dim); font-weight: 500; }
.status-card .steps span.done { color: var(--lime); background: rgba(200,255,60,.08); }
.status-card .steps span.now { color: #fff; background: rgba(255,255,255,.12); }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b4e; margin-right: 8px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,78,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,59,78,0); } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 15px; }
.toolbar .count b { color: #fff; }

.clip-list { display: grid; gap: 18px; }
.clip { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.clip .player { position: relative; aspect-ratio: 9/16; background: #000; }
.clip video, .clip .player > img { width: 100%; height: 100%; object-fit: cover; background: #000; }
.clip .overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #d4d4d8; font-size: 14.5px; text-align: center; padding: 20px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #fff; animation: spin .9s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.clip .dur { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.7); font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.clip .rank { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.7); font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.clip .body { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.clip .top { display: flex; gap: 20px; align-items: flex-start; }
.bigscore { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: conic-gradient(var(--lime) calc(var(--s) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.bigscore::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.bigscore div { position: relative; }
.bigscore b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.bigscore small { font-size: 11px; color: var(--muted); font-weight: 600; }
.clip h3 { margin: 4px 0 8px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.clip .reason { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.5; }
.plats { display: flex; gap: 8px; flex-wrap: wrap; }
.plats span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #d4d4d8; }
.plats svg { width: 15px; height: 15px; color: var(--muted); }
.plats b { color: var(--lime); font-variant-numeric: tabular-nums; }
.label { font-size: 13px; color: var(--dim); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0e10; cursor: pointer; font-size: 13.5px; font-weight: 700; line-height: 1; }
.swatch:hover { border-color: rgba(255,255,255,.35); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 1px #fff inset; }
.sw-karaoke { font-family: var(--display); text-transform: uppercase; } .sw-karaoke i { font-style: normal; color: var(--lime); }
.sw-hype { font-family: Impact, var(--display); text-transform: uppercase; color: #ffe135; font-weight: 400; letter-spacing: .02em; }
.sw-boxed { color: #ddd; } .sw-boxed i { font-style: normal; background: #fff; color: #000; padding: 1px 4px; border-radius: 4px; }
.sw-neon { font-family: var(--display); text-transform: uppercase; } .sw-neon i { font-style: normal; color: #ff3ea5; text-shadow: 0 0 8px #ff3ea5; }
.sw-minimal { font-weight: 500; color: #ddd; }
.seg { display: inline-flex; background: #0e0e10; border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button.on { background: rgba(255,255,255,.12); color: #fff; }
.clip .transcript { font-size: 14.5px; color: #c8c8cc; line-height: 1.6; max-height: 4.8em; overflow: hidden; position: relative; margin: 0; }
.clip .transcript.open { max-height: none; }
.clip .more { background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; padding: 0; text-align: left; }
.clip .more:hover { color: #fff; }
.clip .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.clip .cta .btn { padding: 11px 20px; font-size: 14.5px; }
.clip .cta .dirty { display: none; }
.clip.changed .cta .dirty { display: inline-flex; }
@media (max-width: 760px) { .clip { grid-template-columns: 1fr; } .clip .player { max-height: 70vh; } .clip .body { padding: 20px; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); display: none; place-items: center; z-index: 100; padding: 16px; overflow-y: auto; }
.modal.open { display: grid; }
.modal-card { width: min(1000px, 100%); background: #0e0e10; border: 1px solid var(--line-2); border-radius: 28px; padding: 36px; position: relative; }
.modal-card h2 { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -.035em; margin: 0 0 8px; text-align: center; }
.modal-card > p { color: var(--muted); margin: 0 0 30px; text-align: center; font-size: 16.5px; }
.modal .x { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.07); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.modal .x:hover { background: rgba(255,255,255,.14); }
.modal .pricing { grid-template-columns: repeat(3, 1fr); }
.modal .plan { padding: 28px; }
.modal .plan .price { font-size: 46px; }
@media (max-width: 860px) { .modal .pricing { grid-template-columns: 1fr; } .modal-card { padding: 26px 18px; } }
.devnote { font-size: 13.5px; color: var(--muted); margin-top: 18px; text-align: center; }
@media (max-width: 640px) {
  .create { margin-top: 12px; }
  .tabs { overflow-x: auto; scrollbar-width: none; padding: 0; }
  .tab { padding: 12px 14px; font-size: 14.5px; white-space: nowrap; gap: 7px; }
  .tab svg { width: 17px; height: 17px; }
  .panel-card { padding: 14px; border-radius: 20px; }
  .urlbox { flex-wrap: wrap; padding: 8px; gap: 0; }
  .urlbox > svg { display: none; }
  .urlbox input { padding: 12px 10px; font-size: 16px; }
  .urlbox .btn { width: 100%; }
  .opts { gap: 8px; } .opt { flex: 1 1 140px; justify-content: space-between; }
  .rights { margin-left: 0; }
  .recipes { gap: 8px; } .recipe { padding: 9px 14px; font-size: 14px; }
  .bigscore { width: 72px; height: 72px; } .bigscore b { font-size: 24px; }
}

/* ---------- style picker ---------- */
.style-btn { display: inline-flex; align-items: center; gap: 10px; background: #111113; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 4px 4px; cursor: pointer; font-size: 14px; color: var(--muted); }
.style-btn img { width: 30px; height: 40px; object-fit: cover; border-radius: 7px; }
.style-btn b { color: #fff; font-weight: 600; }
.style-btn:hover { border-color: var(--line-2); }
.sgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sitem { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.sitem .pv { position: relative; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: #000; }
.sitem .pv video, .sitem .pv img { width: 100%; height: 100%; object-fit: cover; }
.sitem.on .pv { border-color: #fff; }
.sitem .pv .tick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000; display: none; place-items: center; font-weight: 900; font-size: 13px; }
.sitem.on .pv .tick { display: grid; }
.sitem b { display: block; margin-top: 9px; font-size: 14.5px; }
.sitem small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
@media (max-width: 860px) { .sgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .sgrid { grid-template-columns: repeat(2, 1fr); } }
.cur-style { display: flex; gap: 14px; align-items: center; }
.cur-style .pv { width: 64px; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; flex: none; background: #000; border: 1px solid var(--line-2); }
.cur-style .pv img, .cur-style .pv video { width: 100%; height: 100%; object-fit: cover; }
.cur-style b { display: block; font-size: 15px; }
.cur-style small { color: var(--muted); font-size: 13px; display: block; margin-bottom: 6px; }

/* ---------- editor ---------- */
.modal-card.wide { width: min(1180px, 100%); padding: 0; overflow: hidden; }
.editor { display: grid; grid-template-columns: 360px 1fr; min-height: 640px; }
.editor .stage { background: #050506; display: grid; place-items: center; padding: 24px; border-right: 1px solid var(--line); }
.editor .stage video, .editor .stage img { width: 100%; max-height: 600px; aspect-ratio: 9/16; object-fit: contain; border-radius: 16px; background: #000; }
.editor .side-p { display: flex; flex-direction: column; min-width: 0; max-height: 86vh; }
.editor .ehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.editor .ehead h2 { font-size: 22px; text-align: left; margin: 0; }
.etabs { display: flex; gap: 4px; padding: 16px 20px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.etab { background: none; border: 0; padding: 12px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.etab.on { color: #fff; border-bottom-color: #fff; }
.ebody { padding: 22px 24px; overflow-y: auto; flex: 1; display: grid; gap: 20px; align-content: start; }
.efoot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.trimbar { position: relative; height: 54px; border-radius: 12px; background: repeating-linear-gradient(90deg, #1b1b1e 0 6px, #161618 6px 12px); border: 1px solid var(--line); overflow: hidden; }
.trimbar .sel { position: absolute; top: 0; bottom: 0; background: rgba(200,255,60,.14); border: 2px solid var(--lime); border-radius: 10px; }
.trimbar .orig { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(255,255,255,.35); border-right: 1px dashed rgba(255,255,255,.35); }
.trimrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nudge { display: flex; align-items: center; gap: 6px; background: #111113; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; }
.nudge span { flex: 1; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.nudge button { width: 38px; height: 34px; border-radius: 9px; border: 0; background: rgba(255,255,255,.07); cursor: pointer; font-size: 13px; font-weight: 700; }
.nudge button:hover { background: rgba(255,255,255,.14); }
.hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words input { width: auto; min-width: 2ch; background: #111113; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: #fff; font-size: 14.5px; outline: 0; }
.words input:focus { border-color: rgba(255,255,255,.45); }
.words input.changed { border-color: rgba(200,255,60,.6); }
.words .t { font-size: 11px; color: var(--dim); align-self: center; font-variant-numeric: tabular-nums; }
.brow { display: grid; grid-template-columns: 48px 1fr 110px 110px 34px; gap: 10px; align-items: center; background: #111113; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.brow img, .brow .vid { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #222; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.brow .nm { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow label { font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.brow input { width: 100%; background: #0b0b0c; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; color: #fff; }
.brow .rm { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.lock { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rcard { text-align: left; background: #111113; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 16px; cursor: pointer; }
.rcard b { display: block; font-size: 17px; margin-bottom: 4px; }
.rcard small { color: var(--muted); }
.rcard.on { border-color: #fff; }
.rcard[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } .editor .stage { border-right: 0; border-bottom: 1px solid var(--line); } .editor .stage video { max-height: 50vh; } .brow { grid-template-columns: 48px 1fr 34px; } .brow label { grid-column: span 1; } }

/* ---------- brand kit ---------- */
.brand-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin-top: 18px; }
.bk-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 22px; align-content: start; }
.bk-card h3 { margin: 0; font-size: 17px; }
.logo-drop { display: flex; align-items: center; gap: 16px; }
.logo-drop .box { width: 88px; height: 88px; border-radius: 16px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; background: #0b0b0c; overflow: hidden; color: var(--dim); font-size: 12px; text-align: center; }
.logo-drop .box img { max-width: 80%; max-height: 80%; object-fit: contain; }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cdot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.cdot.on { border-color: #fff; box-shadow: 0 0 0 2px #000 inset; }
.swatch-row input[type=color] { width: 40px; height: 36px; border: 0; background: none; padding: 0; cursor: pointer; }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 260px; }
.pos-grid button { background: #111113; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.pos-grid button.on { border-color: #fff; color: #fff; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-t { position: relative; width: 46px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.15); border: 0; cursor: pointer; flex: none; }
.switch-t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-t.on { background: var(--lime); }
.switch-t.on::after { transform: translateX(20px); background: #000; }
.phone-prev { position: relative; aspect-ratio: 9/16; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.phone-prev video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.phone-prev .lg { position: absolute; width: 22%; }
.phone-prev .lg img { width: 100%; }
.phone-prev .cap { position: absolute; left: 6%; right: 6%; top: 66%; text-align: center; font-family: var(--display); font-weight: 900; font-size: 21px; text-transform: uppercase; -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.phone-prev .hk { position: absolute; top: 15%; left: 14%; right: 14%; text-align: center; padding: 7px 10px; border-radius: 10px; font-weight: 800; font-size: 13px; }
@media (max-width: 860px) { .brand-wrap { grid-template-columns: 1fr; } .brand-wrap .phone-prev { max-width: 260px; margin: 0 auto; } }

/* ---------- billing toggle ---------- */
.bill-toggle { display: flex; justify-content: center; margin: -10px 0 24px; }
.bill-toggle .seg { background: #111113; }
.bill-toggle .save { margin-left: 6px; font-size: 11.5px; font-weight: 700; color: #000; background: var(--lime); padding: 2px 7px; border-radius: 99px; }
.plan .yearly-note { color: var(--muted); font-size: 13.5px; margin-top: 6px; min-height: 20px; }
.live-meter { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sitem .pv { aspect-ratio: 9/10; }
.cur-style .pv { width: 84px; aspect-ratio: 9/10; }
.style-btn img { width: 34px; height: 38px; }
.editor > * { min-width: 0; }
@media (max-width: 860px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .trimrow { grid-template-columns: 1fr; }
  .editor .stage { padding: 14px; }
  .editor .stage video { max-height: 42vh; width: auto; margin: 0 auto; }
  .ebody { padding: 16px; } .efoot { padding: 12px 16px; } .ehead { padding: 16px 16px 0; } .etabs { padding: 10px 12px 0; }
  .modal-card.wide { border-radius: 20px; }
}
.ai-broll { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(200,255,60,.08), rgba(255,255,255,.02)); border: 1px solid rgba(200,255,60,.25); }
.ai-broll b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; margin-bottom: 4px; }
.ai-broll b svg { width: 16px; height: 16px; color: var(--lime); }
.ai-broll .btn { flex: none; }
.brow a.credit { font-size: 11.5px; color: var(--muted); text-decoration: underline; }
.ai-opt { gap: 7px; padding: 9px 12px; }
.ai-opt svg { width: 14px; height: 14px; color: var(--lime); }
.ai-opt input { accent-color: #c8ff3c; }
@media (max-width: 640px) { .ai-broll { flex-direction: column; align-items: stretch; } }

/* ---------- bundled fonts (for live caption previews) ---------- */
@font-face { font-family: "Montserrat"; src: url(/fonts/Montserrat-VF.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(/fonts/Oswald-VF.ttf) format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/Poppins-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/Poppins-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/Poppins-ExtraBold.ttf); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/Poppins-Black.ttf); font-weight: 900; font-display: swap; }
@font-face { font-family: "Anton"; src: url(/fonts/Anton-Regular.ttf); font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url(/fonts/BebasNeue-Regular.ttf); font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url(/fonts/ArchivoBlack-Regular.ttf); font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url(/fonts/LuckiestGuy-Regular.ttf); font-display: swap; }
@font-face { font-family: "Bangers"; src: url(/fonts/Bangers-Regular.ttf); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url(/fonts/PermanentMarker-Regular.ttf); font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url(/fonts/DMSerifDisplay-Regular.ttf); font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url(/fonts/DMSerifDisplay-Italic.ttf); font-style: italic; font-display: swap; }

/* ---------- brand kit (OpusClip-style) ---------- */
.bk-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px 0 22px; flex-wrap: wrap; }
.bk-top h1 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.bk-top p { margin: 4px 0 0; color: var(--muted); }
.bk-actions { display: flex; gap: 14px; align-items: center; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.bk-col { display: grid; gap: 18px; min-width: 0; }
.bk-sec { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 18px; }
.bk-sec.dim { opacity: .5; pointer-events: none; }
.bk-sec-h { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.bk-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.bk-style-row { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: none; border: 0; padding: 12px 0; cursor: pointer; border-top: 1px solid var(--line); color: inherit; }
.bk-style-row > div { flex: 1; min-width: 0; }
.bk-style-row b { font-size: 16.5px; display: block; }
.bk-style-row small { color: var(--muted); font-size: 14px; }
.bk-style-row > svg { width: 20px; height: 20px; color: var(--muted); }
.chip-prev { width: 128px; height: 88px; border-radius: 16px; background: #1d1d20 url(/assets/media/clean.jpg) center/cover; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-2); flex: none; text-align: center; padding: 6px; }
.chip-prev.head { background: #1d1d20; font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.bk-cap { display: inline-block; line-height: 1.15; transition: transform .15s; }
.bk-cap i { font-style: normal; }
.bk-cap.bump { animation: bkbump .35s ease-out; }
@keyframes bkbump { 0% { transform: scale(.75); } 45% { transform: scale(var(--pop, 1.1)); } 100% { transform: scale(1); } }
.editor-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; background: #19191b; border: 1px solid var(--line-2); border-radius: 22px; padding: 18px; }
.pt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-height: 520px; overflow-y: auto; padding-right: 4px; align-content: start; }
.pt { position: relative; background: none; border: 0; padding: 0; cursor: pointer; text-align: center; color: var(--muted); font-size: 13px; }
.pt img { width: 100%; aspect-ratio: 9/10; object-fit: cover; border-radius: 14px; border: 2px solid transparent; display: block; margin-bottom: 6px; background: #0e0e10; }
.pt.on img { border-color: #fff; }
.pt.on span { color: #fff; }
.pt em { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 15px; }
.ht-grid { grid-template-columns: repeat(2, 1fr); }
.ht-prev { aspect-ratio: 9/10; border-radius: 14px; background: #0e0e10 url(/assets/media/clean.jpg) center/cover; display: grid; place-items: start center; padding-top: 18%; border: 2px solid transparent; margin-bottom: 6px; }
.ht.on .ht-prev { border-color: #fff; }
.ht { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 13px; padding: 0; }
.ht.on > span { color: #fff; }
.ht-classic span { background: #fff; color: #111; font-family: Montserrat; font-weight: 800; font-size: 11px; padding: 5px 8px; border-radius: 6px; }
.ht-editorial span { font-family: "DM Serif Display"; font-style: italic; color: #fff; font-size: 15px; text-shadow: 0 2px 8px #000; }
.ht-editorial i { color: #d6ff66; }
.ht-statement { place-items: start start; padding-left: 10%; }
.ht-statement span { font-family: Anton; color: #fff; font-size: 17px; text-shadow: 0 2px 8px #000; text-align: left; }
.ht-none span { color: var(--dim); font-size: 22px; }
.ed-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ed-prev { height: 150px; border-radius: 16px; background: #26262a; display: grid; place-items: center; text-align: center; padding: 10px; overflow: hidden; }
.ed-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sel { flex: 1; min-width: 110px; background: #111113; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: #fff; font-size: 14.5px; outline: 0; }
.num { display: flex; align-items: center; gap: 4px; background: #111113; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 10px; color: var(--muted); font-size: 13px; }
.num input { width: 46px; background: none; border: 0; color: #fff; font-size: 14.5px; outline: 0; padding: 10px 0; }
.ed-row.icons { align-items: center; }
.clr { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); cursor: pointer; }
.clr input { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); padding: 0; background: none; cursor: pointer; overflow: hidden; }
.clr input::-webkit-color-swatch-wrapper { padding: 0; }
.clr input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.tg { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: #111113; color: var(--muted); font-weight: 800; cursor: pointer; font-size: 14px; }
.tg.on { background: #fff; color: #000; border-color: #fff; }
.rng { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.rng input { accent-color: #fff; width: 100%; }
.rng b { color: #fff; font-weight: 600; text-align: right; font-size: 13px; }
.seg.small button { padding: 8px 12px; font-size: 13px; }
.ed-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.bk-side { position: sticky; top: 90px; display: grid; gap: 12px; }
.phone { position: relative; aspect-ratio: 9/16; border-radius: 30px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .lg { position: absolute; width: 22%; } .phone .lg img { width: 100%; }
.phone .lg.top-left { top: 5%; left: 5%; } .phone .lg.top-right { top: 5%; right: 5%; } .phone .lg.bottom-left { bottom: 16%; left: 5%; } .phone .lg.bottom-right { bottom: 16%; right: 16%; }
.bk-head { position: absolute; left: 7%; right: 7%; transform: translateY(-50%); }
.bk-head span { display: inline-block; line-height: 1.15; }
.bk-capwrap { position: absolute; left: 4%; right: 4%; transform: translateY(-50%); text-align: center; }
.tt-rail { position: absolute; right: 3%; bottom: 20%; display: grid; gap: 14px; justify-items: center; font-size: 18px; text-shadow: 0 1px 4px #000; }
.tt-rail span { display: grid; justify-items: center; }
.tt-rail b { font-size: 9.5px; font-weight: 600; }
.tt-rail .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); border: 2px solid #fff; }
.tt-meta { position: absolute; left: 4%; right: 20%; bottom: 4%; display: grid; gap: 3px; font-size: 11.5px; text-shadow: 0 1px 4px #000; }
.tt-meta b { font-size: 12.5px; }
.bk-prev-actions { display: flex; justify-content: center; }
@media (max-width: 1100px) { .editor-panel { grid-template-columns: 1fr; } .pt-grid { grid-template-columns: repeat(4, 1fr); max-height: 300px; } }
@media (max-width: 960px) { .bk-grid { grid-template-columns: 1fr; } .bk-side { position: static; max-width: 320px; margin: 0 auto; width: 100%; } }
@media (max-width: 560px) { .pt-grid { grid-template-columns: repeat(3, 1fr); } .chip-prev { width: 96px; height: 70px; } .rng { grid-template-columns: 90px 1fr 40px; } }

/* ---------- billing ---------- */
.bill-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.plan-now { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-now b { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-right: 10px; }
.price-now { font-family: var(--display); font-size: 26px; font-weight: 800; white-space: nowrap; }
.price-now small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #ddd; vertical-align: 5px; }
.pill.warn { background: rgba(255,170,60,.15); color: #ffc46b; }
.meters { display: grid; gap: 14px; }
.meters div { display: grid; grid-template-columns: 90px 1fr 80px; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.meters i { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.meters i b { display: block; height: 100%; background: var(--lime); }
.meters em { font-style: normal; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.table { display: grid; }
.tr { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr .8fr; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 14.5px; align-items: center; }
.tr.th { color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
.tr a { text-decoration: underline; color: #ddd; }
.st.captured { color: var(--lime); } .st.failed { color: #ff7b8a; }
@media (max-width: 860px) { .bill-grid { grid-template-columns: 1fr; } .tr { grid-template-columns: 1fr 1fr 1fr; } .tr span:nth-child(3), .tr span:nth-child(5) { display: none; } }
.side-logo { padding: 6px 8px 14px; }
.side-logo .wm { font-size: 19px; }
.avatar { background: linear-gradient(135deg, #ad43fd, #7c3aed); }
.upsell { background: linear-gradient(160deg, rgba(173,67,253,.2), rgba(143,220,70,.06) 60%, transparent), var(--card); }
.tt-rail .av { background: url(/assets/brand/icon-64.png) center/cover; }
