/* ClipForge Studio: design system. Light by default (fits inside GoHighLevel), dark follows the OS or the toggle. */
:root {
  --bg: #f5f5f7; --surface: #ffffff; --surface2: #fafafc; --sunken: #f0f0f3; --line: rgba(0,0,0,.09); --line2: rgba(0,0,0,.16);
  --text: #1d1d1f; --muted: #6e6e73; --faint: #a1a1a6; --accent: #0071e3; --accent-ink: #fff; --accent-soft: rgba(0,113,227,.1);
  --brand: #c8ed48; --brand-ink: #1c280c; --primary: #1d1d1f; --primary-ink: #fff; --primary-hover: #000;
  --ok: #1f8a3b; --ok-soft: rgba(31,138,59,.12); --warn: #b25000; --warn-soft: rgba(178,80,0,.12); --bad: #d70015; --bad-soft: rgba(215,0,21,.1);
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06); --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
  --header: 58px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0b0c; --surface: #161618; --surface2: #1c1c1f; --sunken: #111113; --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.18);
  --text: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73; --accent: #2997ff; --accent-soft: rgba(41,151,255,.14);
  --primary: #f5f5f7; --primary-ink: #111; --primary-hover: #fff; --ok-soft: rgba(48,209,88,.14); --ok: #30d158; --warn: #ff9f0a; --warn-soft: rgba(255,159,10,.14);
  --bad: #ff453a; --bad-soft: rgba(255,69,58,.14); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3); --shadow-lg: 0 16px 60px rgba(0,0,0,.55); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b0b0c; --surface: #161618; --surface2: #1c1c1f; --sunken: #111113; --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.18);
  --text: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73; --accent: #2997ff; --accent-soft: rgba(41,151,255,.14);
  --primary: #f5f5f7; --primary-ink: #111; --primary-hover: #fff; --ok-soft: rgba(48,209,88,.14); --ok: #30d158; --warn: #ff9f0a; --warn-soft: rgba(255,159,10,.14);
  --bad: #ff453a; --bad-soft: rgba(255,69,58,.14); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3); --shadow-lg: 0 16px 60px rgba(0,0,0,.55); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
img, video, canvas { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 21px; line-height: 1.25; }
h3 { font-size: 16px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.center { text-align: center; }
.right { margin-left: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.appbar { position: sticky; top: 0; z-index: 50; height: var(--header); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1440px; margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; letter-spacing: -.02em; font-size: 15.5px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; }
.logo-mark svg { width: 16px; height: 16px; }
.nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); padding: 7px 12px; border-radius: 999px; font-weight: 550; font-size: 13.5px; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.nav a:hover { color: var(--text); background: var(--sunken); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--sunken); }
.nav .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav .count.spin { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.pill:hover { background: var(--sunken); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pill .dot.low { background: var(--warn); } .pill .dot.none { background: var(--bad); }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #5b6cff, #c8ed48); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.imp-bar { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 7px 12px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); }
.imp-bar button { margin-left: 8px; }
.menu { position: absolute; right: 16px; top: calc(var(--header) - 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); min-width: 240px; padding: 6px; z-index: 60; }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu button, .menu a { display: flex; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--text); gap: 10px; align-items: center; }
.menu button:hover, .menu a:hover { background: var(--sunken); text-decoration: none; }

/* ---------- page layout ---------- */
.view { max-width: 1440px; margin: 0 auto; padding: 26px 20px 80px; min-height: calc(100vh - var(--header)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card.pad-lg { padding: 26px; }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line2); border-bottom-width: 2px; padding: 0 5px; border-radius: 5px; color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, transform .05s, opacity .15s; background: var(--sunken); color: var(--text); text-decoration: none !important; }
.btn:hover { background: color-mix(in srgb, var(--sunken) 70%, var(--line2)); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.busy { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.brand { background: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--sunken); }
.btn.plain { background: transparent; padding: 0 8px; color: var(--accent); }
.btn.plain:hover { background: var(--accent-soft); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.xs { height: 26px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }
.btn.block { width: 100%; }
.btn .spinner { width: 14px; height: 14px; }
.btn.busy { color: transparent !important; }
.btn.busy > :not(.busy-spin) { visibility: hidden; }
.busy-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line2); background: var(--surface); border-radius: var(--r); padding: 9px 12px; font-size: 14px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.textarea.big { font-size: 16px; min-height: 130px; padding: 14px 16px; border-radius: var(--r-lg); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=color] { width: 44px; height: 36px; padding: 3px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); cursor: pointer; }
input[type=range] { accent-color: var(--accent); width: 100%; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 38px; height: 23px; border-radius: 12px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(15px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--sunken); border-radius: 12px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg.sm button { padding: 5px 10px; font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 550; color: var(--text); white-space: nowrap; }
.chip:hover { background: var(--sunken); }
.chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: var(--sunken); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.blue { background: var(--accent-soft); color: var(--accent); } .badge.brand { background: var(--brand); color: var(--brand-ink); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 17px; color: var(--muted); }
.stepper button:hover { background: var(--sunken); }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; }
.progress { height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
.progress.ok i { background: var(--ok); } .progress.bad i { background: var(--bad); }
.progress.indet i { width: 35% !important; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.drop { border: 1.5px dashed var(--line2); border-radius: var(--r-lg); padding: 22px; text-align: center; color: var(--muted); background: var(--surface2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.drop b { color: var(--text); }
.help { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 0; user-select: none; }
details.more > summary::before { content: '›'; display: inline-block; transition: transform .2s; font-size: 17px; line-height: 1; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > summary::-webkit-details-marker { display: none; }

/* ---------- create page ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero h1 { font-size: 38px; letter-spacing: -.035em; }
.hero p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px auto 22px; max-width: 1200px; }
.ico.mcode { background: linear-gradient(135deg, #3b3b46, #6d5dfc); color: #fff; }
@media (max-width: 1240px) and (min-width: 961px) { .modes { grid-template-columns: repeat(2, 1fr); } }
.mode { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 18px; display: flex; gap: 14px; align-items: flex-start; transition: border-color .15s, box-shadow .15s, transform .1s; box-shadow: var(--shadow); }
.mode:hover { border-color: var(--line2); transform: translateY(-1px); }
.mode.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent), var(--shadow); }
.mode .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.mode .ico svg { width: 22px; height: 22px; }
.mode h3 { font-size: 15.5px; }
.mode p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ico.motion { background: linear-gradient(135deg, #7b5cff, #c35bff); color: #fff; }
.ico.clips { background: linear-gradient(135deg, #ff6a3d, #ffb13d); color: #fff; }
.ico.mix { background: linear-gradient(135deg, #1fbf73, #c8ed48); color: #fff; }
.composer { max-width: 1060px; margin: 0 auto; }
.composer .card { padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.form-grid .span2 { grid-column: span 2; } .form-grid .span3 { grid-column: span 3; } .form-grid .span4 { grid-column: 1 / -1; }
.composer-foot { display: flex; align-items: center; gap: 14px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; flex-wrap: wrap; }
.estimate { color: var(--muted); font-size: 13px; }
.estimate b { color: var(--text); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb-item { width: 150px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface2); position: relative; }
.thumb-item img { width: 100%; height: 90px; object-fit: cover; display: block; background: var(--sunken); }
.thumb-item input { border: 0; border-top: 1px solid var(--line); width: 100%; padding: 6px 8px; font-size: 12px; background: transparent; }
.thumb-item .x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 1; }
.thumb-item .up { position: absolute; left: 0; right: 0; top: 0; height: 90px; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 600; }
.url-list { font-family: var(--mono); font-size: 13px; }
.picker { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface2); }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--sunken); }
.pick-row img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--sunken); flex: none; }
.upload-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.upload-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.upload-row .progress { flex: 1; }

/* ---------- library ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; }
.search input { padding-left: 34px; width: 260px; border-radius: 999px; height: 36px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }
.folders { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .1s, border-color .15s; position: relative; box-shadow: var(--shadow); }
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tile.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tile .media { position: relative; aspect-ratio: 16/10; background: #0d0d0f; overflow: hidden; cursor: pointer; display: block; }
.tile .media img, .tile .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .media.contain img { object-fit: contain; }
.tile .media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.3); }
.tile .media .ph svg { width: 34px; height: 34px; }
.tile .kind { position: absolute; top: 9px; left: 9px; }
.tile .dur { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 650; padding: 2px 6px; border-radius: 6px; }
.tile .pick { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); background: rgba(0,0,0,.25); display: none; place-items: center; color: #fff; }
.tile:hover .pick, .selecting .tile .pick { display: grid; }
.tile.sel .pick { background: var(--accent); border-color: var(--accent); display: grid; }
.tile .body { padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .title { font-weight: 620; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.tile .meta { color: var(--muted); font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tile .status { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; text-align: center; font-size: 12.5px; font-weight: 600; }
.tile .status .progress { width: 70%; background: rgba(255,255,255,.2); }
.tile .status.err { background: rgba(120,0,10,.7); }
.bulkbar { position: sticky; bottom: 16px; margin: 18px auto 0; width: fit-content; background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 8px 10px 8px 18px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow-lg); z-index: 20; }
.bulkbar .btn { background: color-mix(in srgb, var(--primary-ink) 14%, transparent); color: var(--primary-ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1.5px dashed var(--line2); border-radius: var(--r-xl); background: var(--surface2); }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 17px; }
.empty .btn { margin-top: 16px; }
.skeleton { background: linear-gradient(90deg, var(--sunken), var(--surface2), var(--sunken)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- source project ---------- */
.proj-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.proj-title { font-size: 26px; font-weight: 700; letter-spacing: -.025em; border: 1px solid transparent; border-radius: 10px; padding: 2px 6px; margin-left: -7px; background: transparent; width: min(760px, 100%); }
.proj-title:hover { border-color: var(--line); }
.proj-title:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.src-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.player { background: #000; border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.player video { width: 100%; max-height: 62vh; display: block; background: #000; }
.player .cap { position: absolute; left: 8%; right: 8%; bottom: 14%; text-align: center; font-weight: 850; font-size: clamp(16px, 2.2vw, 30px); text-transform: uppercase; color: #fff; text-shadow: 0 2px 3px #000, 0 0 12px rgba(0,0,0,.6); pointer-events: none; line-height: 1.25; }
.player .cap mark { background: none; color: var(--brand); }
.timeline { padding: 10px 2px 0; }
.speech { position: relative; height: 34px; display: flex; align-items: flex-end; gap: 1px; cursor: crosshair; margin-top: 6px; border-radius: 6px; overflow: hidden; background: var(--sunken); }
.speech i { flex: 1; background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 1px; min-width: 1px; }
.speech .sel { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: 5px; pointer-events: none; }
.speech .head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); pointer-events: none; }
.speech .clipmark { position: absolute; bottom: 0; height: 4px; background: var(--ok); opacity: .8; pointer-events: none; border-radius: 2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header) + 14px); max-height: calc(100vh - var(--header) - 28px); overflow: auto; }
.panel h3 { font-size: 16px; margin-bottom: 4px; }
.panel .field + .field { margin-top: 12px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 20px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .tabs { flex-wrap: wrap; overflow: visible; } }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.tabs .n { font-size: 11px; background: var(--sunken); padding: 1px 6px; border-radius: 9px; color: var(--muted); }
.clip-card .media { aspect-ratio: 9/12; }
.clip-card .actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.clip-card.editing { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.transcript { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; max-height: 64vh; overflow: auto; line-height: 2; font-size: 15px; user-select: none; }
.transcript .para { display: flex; gap: 14px; margin-bottom: 10px; }
.transcript .ts { color: var(--accent); font: 600 11.5px var(--mono); padding-top: 7px; cursor: pointer; flex: none; width: 52px; }
.transcript .w { border-radius: 4px; padding: 1px 1px; cursor: pointer; }
.transcript .w:hover { background: var(--sunken); }
.transcript .w.cur { background: var(--accent-soft); color: var(--accent); }
.transcript .w.pick { background: var(--accent); color: #fff; }
.transcript .w.cut { text-decoration: line-through; opacity: .35; }
.transcript .w.hit { background: #ffe066; color: #111; }
.transcript .w[contenteditable=true] { outline: 1px dashed var(--line2); cursor: text; user-select: text; }
.transcript .gap { font: 600 10.5px var(--mono); color: var(--warn); background: var(--warn-soft); border: 0; border-radius: 5px; padding: 1px 5px; margin: 0 3px; vertical-align: 2px; }
.script-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.copy-field { position: relative; }
.copy-field .btn { position: absolute; top: 30px; right: 8px; }
.copy-field .input { padding-right: 70px; }
.copy-field > .input + .btn { top: 50%; transform: translateY(-50%); }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-list { display: flex; flex-direction: column; gap: 8px; }
.editor-item { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: var(--surface2); }
.kf { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 4px 0; }

/* ---------- motion studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.stage-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header) + 14px); }
.stage { position: relative; margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage .safe { position: absolute; inset: 0; pointer-events: none; }
.stage .safe div { position: absolute; background: repeating-linear-gradient(45deg, rgba(255,80,80,.18) 0 6px, transparent 6px 12px); }
.stage .busy { position: absolute; inset: 0; background: rgba(0,0,0,.6); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; font-weight: 600; }
.stage .busy .progress { width: 60%; background: rgba(255,255,255,.2); }
.transport { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.transport .time { font: 600 12px var(--mono); color: var(--muted); min-width: 92px; text-align: center; }
.seek { position: relative; flex: 1; height: 26px; display: flex; align-items: center; }
.seek input { width: 100%; margin: 0; position: relative; z-index: 1; }
.seek .marks { position: absolute; left: 0; right: 0; top: 50%; height: 12px; transform: translateY(-50%); pointer-events: none; }
.seek .marks i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line2); }
.scenes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.scenes .chip { font-size: 12px; padding: 3px 10px; }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.side .tabs { margin: 0; padding: 0 6px; gap: 0; flex-wrap: wrap; overflow: visible; }   /* all tabs always visible: wrap instead of hiding off the edge */
.side .tabs button { padding: 11px 9px; font-size: 13px; }
.side .pane { padding: 16px; max-height: calc(100vh - var(--header) - 110px); overflow: auto; }
.side .chips .chip { white-space: normal; text-align: left; line-height: 1.35; }
.side .pane { overflow-x: hidden; }
.chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.msg { padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--sunken); max-width: 92%; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; }
.msg.sys { background: transparent; border: 1px dashed var(--line2); color: var(--muted); font-size: 12.5px; }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.msg .who { font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.pgroup { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.pgroup > summary { padding: 10px 12px; font-weight: 650; cursor: pointer; background: var(--surface2); list-style: none; display: flex; align-items: center; gap: 8px; }
.pgroup > summary::-webkit-details-marker { display: none; }
.pgroup .fields { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.pfield .flab { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.pfield .reset { color: var(--accent); cursor: pointer; font-weight: 600; }
.crow { display: flex; gap: 8px; }
.rrow { display: flex; gap: 10px; align-items: center; }
.rrow output { font: 600 12px var(--mono); min-width: 44px; text-align: right; color: var(--muted); }
.code { width: 100%; min-height: 420px; font: 12.5px/1.55 var(--mono); tab-size: 2; white-space: pre; border-radius: var(--r); padding: 12px; background: var(--sunken); border: 1px solid var(--line2); color: var(--text); resize: vertical; }
.errbox { background: var(--bad-soft); color: var(--bad); border-radius: var(--r); padding: 10px 12px; font: 12px/1.5 var(--mono); white-space: pre-wrap; margin-top: 10px; overflow-wrap: anywhere; }
.ver { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.ver:last-child { border-bottom: 0; }
.ver img { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--sunken); flex: none; }
.ver.cur { background: var(--accent-soft); margin: 0 -10px; padding: 10px; border-radius: 10px; border: 0; }
.render-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.render-row img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--sunken); flex: none; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.banner.blue { background: var(--accent-soft); color: var(--accent); }
.banner .btn { margin-left: auto; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cost-table th, .cost-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.cost-table th { color: var(--muted); font-weight: 600; }
.words-edit { display: flex; flex-wrap: wrap; gap: 4px; max-height: 50vh; overflow: auto; }
.words-edit input { width: auto; min-width: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font-size: 13px; background: var(--surface2); }

/* ---------- tasks ---------- */
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 2px; }
.stat.live b { color: var(--accent); }
.task-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.task { display: grid; grid-template-columns: 34px minmax(0, 2.4fr) minmax(0, 1.6fr) 90px 150px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task:hover { background: var(--surface2); }
.task .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--muted); }
.task .ti svg { width: 16px; height: 16px; }
.task.running .ti, .task.waiting .ti { background: var(--accent-soft); color: var(--accent); }
.task.succeeded .ti { background: var(--ok-soft); color: var(--ok); }
.task.failed .ti { background: var(--bad-soft); color: var(--bad); }
.task .name { font-weight: 620; }
.task .sub { color: var(--muted); font-size: 12.5px; }
.task .acts { display: flex; gap: 4px; justify-content: flex-end; }
.task .err { color: var(--bad); font-size: 12.5px; overflow-wrap: anywhere; }
.worker-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: 13px; background: var(--warn-soft); color: var(--warn); }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.cal .dow { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px 2px; }
.cal .day { min-height: 118px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal .day.pad { background: transparent; border: 0; }
.cal .day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal .day.over { background: var(--accent-soft); border-style: dashed; }
.cal .day > b { font-size: 12px; color: var(--muted); padding: 0 3px; }
.cal .post { border: 0; text-align: left; background: var(--sunken); border-radius: 8px; padding: 5px 7px; font-size: 11.5px; line-height: 1.3; cursor: grab; display: flex; flex-direction: column; gap: 2px; }
.cal .post:hover { background: var(--accent-soft); }
.cal .post .t { color: var(--muted); font: 600 10.5px var(--mono); display: flex; justify-content: space-between; gap: 4px; }
.cal .post .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soc { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; font-size: 8px; font-weight: 800; color: #fff; font-style: normal; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plat-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.bar { height: 8px; background: var(--sunken); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-cal button, .mini-cal span { height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 12.5px; }
.mini-cal button:hover { background: var(--sunken); }
.mini-cal button.on { background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.mini-cal button.today { box-shadow: inset 0 0 0 1px var(--accent); }
.mini-cal button:disabled { opacity: .3; }
.mini-cal .dow { font-size: 11px; color: var(--faint); font-weight: 700; display: grid; place-items: center; }
.opt { text-align: left; border: 1px solid var(--line); background: var(--surface2); border-radius: var(--r); padding: 9px 11px; width: 100%; font-size: 13px; line-height: 1.4; }
.opt b { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.acct { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.acct:hover { background: var(--sunken); }
.acct input { flex: none; }
.lineup { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.lineup button { flex: none; width: 150px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 8px; font-size: 12px; }
.lineup button.on { border-color: var(--primary); }
.lineup button.done { border-color: var(--ok); }
.lineup img { width: 100%; height: 70px; object-fit: cover; border-radius: 7px; background: var(--sunken); display: block; margin-bottom: 6px; }
.lineup-poster { width: 140px; flex: none; }
.lineup-poster img { width: 100%; border-radius: 10px; display: block; }
@media (max-width: 640px) { .lineup-card { flex-direction: column; } .lineup-card > .grow { width: 100%; flex: none; } .lineup-poster { width: 110px; } }

/* ---------- modal & toasts ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.36); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow: auto; animation: fadein .15s; }
.modal { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: min(560px, 100%); padding: 24px; position: relative; animation: pop .18s cubic-bezier(.2,.9,.3,1.2); border: 1px solid var(--line); }
.modal.wide { width: min(900px, 100%); }
.modal.xwide { width: min(1180px, 100%); }
.modal h2 { margin-bottom: 4px; padding-right: 30px; }
.modal .close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--sunken); color: var(--muted); font-size: 16px; display: grid; place-items: center; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--primary); color: var(--primary-ink); padding: 11px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; animation: pop .2s; overflow-wrap: anywhere; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.warn { background: var(--warn); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
.toast a { color: inherit; text-decoration: underline; font-weight: 700; white-space: nowrap; }
.toast button { background: none; border: 0; color: inherit; opacity: .7; margin-left: auto; font-size: 15px; line-height: 1; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - var(--header)); display: grid; place-items: center; padding: 30px 16px; }
.auth .card { width: min(420px, 100%); padding: 30px; }
.auth h1 { font-size: 26px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin: 6px 0 20px; }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.wl-auth .card { width: min(460px, 100%); padding: 34px 32px; position: relative; overflow: hidden; }
.wl-auth .card::before { content: ''; position: absolute; inset: -40% -20% auto; height: 220px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent, #c6f432) 22%, transparent), transparent); pointer-events: none; }
.wl-badge { display: table; margin: 0 auto 14px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #c6f432); border: 1px solid color-mix(in srgb, var(--accent, #c6f432) 45%, transparent); background: color-mix(in srgb, var(--accent, #c6f432) 10%, transparent); position: relative; }
.wl-steps { margin: 18px 0 4px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; position: relative; }
.wl-steps li { counter-increment: s; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.wl-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.auth .alt { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ---------- admin ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--surface2); }
.table tr:hover td { background: var(--surface2); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; font-size: 13px; }
.kv > span:nth-child(odd) { color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header) + 20px); align-self: start; }
.settings-nav button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.settings-nav button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.form-card { display: flex; flex-direction: column; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .studio { grid-template-columns: minmax(0, 1fr) 360px; }
  .src-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .task { grid-template-columns: 34px minmax(0, 2fr) minmax(0, 1.3fr) 130px; }
  .task .costcol { display: none; }
}
@media (max-width: 960px) {
  .modes { grid-template-columns: 1fr; }
  .studio, .src-grid { grid-template-columns: 1fr; }
  .stage-wrap, .panel { position: static; max-height: none; }
  .side .pane { max-height: none; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span3 { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; position: static; }
  .cal .day { min-height: 90px; }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 12px; gap: 10px; }
  .logo span { display: none; }
  .view { padding: 18px 12px 70px; }
  .hero h1 { font-size: 28px; }
  .form-grid, .two, .three { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: 1 / -1; }
  .task { grid-template-columns: 34px minmax(0, 1fr) 90px; }
  .task .stagecol { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .search input { width: 100%; }
  .cal { gap: 3px; }
  .cal .dow { font-size: 9px; }
  .pill.hide-sm { display: none; }
  .kv { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* images pasted/dropped into prompt boxes */
.textarea.drop-over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, rgba(200,237,72,.25)); }
.thumb-tray { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb-tray:empty { display: none; }
.mini-thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: rgba(128,128,128,.12); flex: none; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-thumb .spinner { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; }
.mini-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; line-height: 18px; padding: 0; cursor: pointer; }

/* like / dislike */
.rate { margin-left: auto; display: inline-flex; gap: 2px; }
.rate button { border: 0; background: transparent; color: var(--faint); width: 26px; height: 24px; border-radius: 7px; display: grid; place-items: center; padding: 0; cursor: pointer; }
.rate button:hover { background: var(--sunken); color: var(--text); }
.rate button.on.up { color: var(--ok); background: var(--ok-soft); }
.rate button.on.down { color: var(--bad); background: var(--bad-soft); }
.rate button.on svg { fill: currentColor; fill-opacity: .2; }
#lrate button svg { vertical-align: -3px; }
#stMeta .rate, #sMeta .rate { margin-left: 6px; vertical-align: middle; }

/* previous / next clip on the video player */
.clipnav .pnav { position: absolute; top: 50%; transform: translateY(-60%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 30px; line-height: 44px; padding: 0 0 4px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s; }
.clipnav .pnav:hover { background: rgba(0,0,0,.8); }
.clipnav .prev { left: 12px; } .clipnav .next { right: 12px; }
.clipnav .pcount { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }

/* not watched yet */
.new-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); font-size: 11px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 4px rgba(0,0,0,.25); vertical-align: middle; }

/* hour / minute / second length picker */
.durpick { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.durpick .dp { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.durpick .select { width: auto; min-width: 0; padding: 0 26px 0 10px; }
.durpick .dp > span { color: var(--muted); font-size: 13px; }

/* saved prompts */
.saved-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.saved-row .faint { margin-left: auto; }
.pl-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pl-list { display: flex; flex-direction: column; gap: 8px; max-height: min(60vh, 560px); overflow: auto; padding: 2px; }
.pl-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: flex; gap: 8px; align-items: stretch; transition: border-color .15s, box-shadow .15s; }
.pl-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pl-body { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; color: inherit; }
.pl-text { font-size: 13px; color: var(--muted); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-wrap; word-break: break-word; }
.pl-acts { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 10px 0; justify-content: center; }
@media (max-width: 640px) { .pl-card { flex-direction: column; } .pl-acts { flex-direction: row; flex-wrap: wrap; padding: 0 12px 12px; } }

/* calendar post: where it went */
.where { display: flex; flex-direction: column; gap: 6px; }
.where-row { border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px; background: var(--surface); }
.stat-chip { font-size: 12px; color: var(--muted); background: var(--sunken); border-radius: 999px; padding: 2px 9px; }
.stat-chip b { color: var(--text); }

/* voiceover + B-roll */
.footage-box { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.vo-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 12px; background: var(--surface); }
.vo-chip .x { border: 0; background: var(--sunken); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.broll-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.broll-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; background: var(--surface); }
.broll-item img, .broll-item video, .broll-item .ph { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--sunken); flex: none; display: block; }
.pick-tile { border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 6px; text-align: left; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.pick-tile img, .pick-tile .ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--sunken); display: block; }
.pick-tile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* "Guide the new options" input + button on one line */
.guide-row { display: flex; gap: 8px; align-items: center; }
.guide-row .input { flex: 1; min-width: 0; }
.guide-row .btn { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .guide-row { flex-wrap: wrap; } .guide-row .btn { width: 100%; justify-content: center; } }

/* Send for approval */
.approval { display: flex; flex-direction: column; gap: 8px; }
.approval .acct { align-items: flex-start; }
.approval .acct input { margin-top: 3px; }

/* Media picker: tabs up top, folder trail, grid */
.media-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.media-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; border-radius: 8px 8px 0 0; }
.media-tabs button:hover { color: var(--text); background: var(--sunken); }
.media-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.media-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.media-bar .crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.media-bar .crumbs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 3px 6px; border-radius: 6px; display: inline-flex; gap: 5px; align-items: center; }
.media-bar .crumbs button:hover { background: var(--sunken); color: var(--text); }
.media-bar .crumbs button:last-of-type { color: var(--text); }
.media-search { position: relative; width: 240px; max-width: 100%; }
.media-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.media-search .input { padding-left: 32px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: min(60vh, 640px); overflow-y: auto; padding: 2px; }
.media-grid .pick-tile { position: relative; }
.media-grid .pick-tile video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: #000; display: block; }
.media-grid .media-ico { display: grid !important; place-items: center; color: var(--muted); }
.media-grid .folder .media-ico { color: var(--accent); background: var(--accent-soft); }
.media-grid audio { width: 100%; height: 30px; }
.media-grid .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 13px; display: none; place-items: center; }
.media-grid .pick-tile.on .tick { display: grid; }
.media-status { align-self: center; }
@media (max-width: 560px) { .media-grid { grid-template-columns: repeat(2, 1fr); } .media-search { width: 100%; } }
.thumb-tray { align-items: center; }

/* Media picker v2: wide, previews, search everywhere */
.modal.media { width: min(1640px, 100%); }
.modal-back:has(.modal.media) { padding-left: 2vw; padding-right: 2vw; }
.media-top { display: flex; flex-direction: column; gap: 10px; }
.media-top .media-search { width: 100%; max-width: none; }
.media-search { position: relative; }
.media-search .input { padding-left: 36px; padding-right: 34px; height: 44px; font-size: 15px; }
.media-search > svg { left: 12px; }
.media-search .x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--sunken); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; color: var(--muted); }
.media-tabs .count { font-size: 11px; font-weight: 700; background: var(--sunken); border-radius: 999px; padding: 1px 7px; color: var(--muted); }
.media-tabs button.on .count { background: var(--accent-soft); color: var(--accent); }
.media-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; max-height: min(64vh, 900px); }
.media-grid .pick-tile { outline: none; }
.media-grid .pick-tile:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.media-thumb { position: relative; border-radius: 6px; overflow: hidden; }
.media-thumb img, .media-thumb video, .media-thumb .ph { margin: 0; }
.media-thumb .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 17px; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, transform .15s; backdrop-filter: blur(4px); padding-left: 3px; }
.media-thumb .play svg { margin-left: -3px; }
.pick-tile:hover .media-thumb .play, .media-thumb .play:focus-visible { opacity: 1; }
.media-thumb .play:hover { transform: scale(1.08); background: rgba(0,0,0,.75); }
@media (hover: none) { .media-thumb .play { opacity: .9; width: 38px; height: 38px; } }
.media-thumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; }
.media-thumb .src { position: absolute; left: 6px; top: 6px; background: rgba(255,255,255,.92); color: #111; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.media-grid .tick { top: 12px; right: 12px; z-index: 2; }
.media-preview { position: absolute; inset: 0; z-index: 5; background: var(--surface); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.media-preview[hidden] { display: none; }
.mp-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; background: #000; border-radius: var(--r-lg); overflow: hidden; }
.mp-stage video, .mp-stage img { max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; display: block; }
.mp-stage .audio-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #fff; width: min(520px, 90%); }
.mp-stage .audio-wrap audio { width: 100%; }
.mp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.mp-nav:hover:not(:disabled) { background: rgba(255,255,255,.3); }
.mp-nav:disabled { opacity: .25; cursor: default; }
.mp-nav.prev { left: 12px; } .mp-nav.next { right: 12px; }
.mp-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.modal.media { min-height: min(86vh, 1000px); display: flex; flex-direction: column; }
.modal.media .mbody { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.modal.media .media-grid { flex: 1; max-height: none; min-height: 240px; height: 0; }
@media (max-width: 700px) { .modal.media { min-height: 92vh; } .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .media-preview { padding: 14px; } }
.media-grid { align-content: start; grid-auto-rows: max-content; }
/* the preview always fits the visible window, even when the picker is taller than the screen */
.media-preview { position: fixed; inset: max(16px, 3vh) max(16px, 3vw); box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 50; }
.mp-stage video, .mp-stage img { height: auto; max-height: 100%; }
.mp-stage { min-height: 160px; }
@media (max-width: 700px) { .media-preview { inset: 8px; } }

/* Private Integration setup */
.pit-steps { margin: 12px 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.pit-steps code, .checks code { background: var(--sunken); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.scope-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin: 8px 0; }
.scope { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.scope code { background: none; padding: 0; font-weight: 600; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.check .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--sunken); color: var(--muted); flex: none; }
.check.ok .dot { background: var(--ok, #1f9d55); color: #fff; }
.check.bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.check.bad .dot { background: var(--bad); color: #fff; }

/* Admin → Storage */
.st-list { display: flex; flex-direction: column; }
.st-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-row.dim { opacity: .55; }
.st-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; font-size: 16px; flex: none; }
.st-size { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .st-row { flex-wrap: wrap; } .st-size { text-align: left; min-width: 0; } }
.hint-list { margin: 4px 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }

/* A source video cleared to save space */
.player { position: relative; }
.cleared-note { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); color: #fff; text-align: center; border-radius: inherit; }
.cleared-note > div { max-width: 420px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.cleared-note p { color: rgba(255,255,255,.8); margin: 0; }

/* Video preview overlay (above any dialog) */
.vp-back { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,14,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: max(16px, 3vh) max(16px, 3vw); animation: fade .15s ease; }
.vp { width: min(1400px, 100%); height: min(92vh, 1100px); background: var(--surface); border-radius: var(--r-xl); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-lg); }
.vp-media { width: 100%; height: 100%; display: grid; place-items: center; }
.vp-media video { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.play-btn { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; padding-left: 3px; display: grid; place-items: center; cursor: pointer; z-index: 2; backdrop-filter: blur(4px); transition: transform .15s, background .15s; }
.play-btn:hover { transform: scale(1.08); background: rgba(0,0,0,.78); }

/* Calendar: day summary, empty-spot scheduling, stats */
.cal .day { cursor: pointer; }
.cal .day.past { cursor: default; }
.cal .day:not(.past):not(.pad):hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.day-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.day-sum { display: inline-flex; align-items: center; gap: 2px; }
.day-sum svg { width: 13px; height: 13px; }
.day-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; margin-left: 3px; }
.plat-table td, .plat-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.top-post { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.top-post .n { width: 18px; flex: none; }
.lineup-poster { position: relative; }
.lineup-poster video { width: 100%; border-radius: 12px; background: #000; display: block; }
.tile .media { position: relative; }

/* Previews: always show the whole video (or image), letterboxed, whatever its shape (9:16, 16:9, 1:1). */
.vp-media { position: relative; overflow: hidden; }
.vp-media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; background: #000; }
.media-preview .mp-stage video, .media-preview .mp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.media-preview .mp-stage .audio-wrap { position: relative; z-index: 1; }

/* Brand prompts */
.brand-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.brand-list { display: flex; flex-direction: column; gap: 6px; }
.brand-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; min-width: 0; font: inherit; }
.brand-item:hover { border-color: var(--muted); }
.brand-item.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.brand-edit { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brand-text { min-height: 420px; font-size: 14px; line-height: 1.55; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.brand-logo { height: 52px; max-width: 180px; border-radius: 8px; background: var(--sunken); object-fit: contain; }
@media (max-width: 760px) { .brand-wrap { grid-template-columns: 1fr; } .brand-text { min-height: 300px; } }

/* Caption options keep their line breaks; long ones scroll inside the card */
.opt { white-space: pre-line; }
.opt b { white-space: normal; }
.col > .opt, .col.gap6 > .opt { max-height: 240px; overflow-y: auto; }

/* Posted / scheduled badges */
.pbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.pbadge.sched { background: #e0ecff; color: #1d4ed8; }
.pbadge.review { background: #fff4d6; color: #92400e; }
.pbadge.posted { background: #dcfce7; color: #15803d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pbadge.sched { background: #1e3a8a; color: #dbeafe; } :root:not([data-theme="light"]) .pbadge.review { background: #78350f; color: #fef3c7; } :root:not([data-theme="light"]) .pbadge.posted { background: #14532d; color: #dcfce7; } }
:root[data-theme="dark"] .pbadge.sched { background: #1e3a8a; color: #dbeafe; } :root[data-theme="dark"] .pbadge.review { background: #78350f; color: #fef3c7; } :root[data-theme="dark"] .pbadge.posted { background: #14532d; color: #dcfce7; }
.post-flags { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; max-width: calc(100% - 60px); }
.post-flags .pbadge { box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tile.has-post .media img { opacity: .82; }
.dup-warn { background: #fff7e6; border: 1px solid #f5c26b; color: #7a4b00; border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.45; }
.dup-warn a { color: inherit; font-weight: 700; }
:root[data-theme="dark"] .dup-warn { background: #3b2a06; border-color: #8a6414; color: #fde7b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dup-warn { background: #3b2a06; border-color: #8a6414; color: #fde7b0; } }

/* Clickable post badges, status rows, post window */
button.pbadge { border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
button.pbadge[data-open-posts]:hover, button.pbadge.none:hover { filter: brightness(.95); text-decoration: underline; }
.pbadge.bad { background: #fee2e2; color: #b91c1c; }
.pbadge.none { background: var(--sunken); color: var(--muted); }
:root[data-theme="dark"] .pbadge.bad { background: #7f1d1d; color: #fee2e2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pbadge.bad { background: #7f1d1d; color: #fee2e2; } }
.post-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.note-box { background: var(--sunken); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.badge.warn { background: #fff4d6; color: #92400e; }

/* Needs attention */
.count.bad { background: var(--bad, #dc2626); color: #fff; }
.chip.alert { border-color: #f87171; color: #b91c1c; }
.chip.alert.on { background: #fee2e2; }
.attn-card { border: 1px solid #fca5a5; background: #fff5f5; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
:root[data-theme="dark"] .attn-card { background: #2a1212; border-color: #7f1d1d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .attn-card { background: #2a1212; border-color: #7f1d1d; } }
.attn-row { display: flex; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid rgba(220,38,38,.18); }
.attn-row img, .attn-row .ph { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--sunken); flex: none; }
.attn-reason { color: #b91c1c; font-weight: 600; margin: 2px 0; }
.cal .post.bad { border-color: #f87171 !important; background: #fff1f1 !important; }
.cal .post.review { border-left: 3px solid #f59e0b; }
.cal .post.done { opacity: .75; }
.post-alert { color: #b91c1c; font-weight: 700; display: block; }
.fix-panel { display: flex; flex-direction: column; gap: 8px; }
.fix-reason { font-size: 14px; }
.fix-steps { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.orig-copy { white-space: pre-line; font-size: 13px; background: var(--sunken); border-radius: 8px; padding: 10px 12px; margin-top: 6px; color: var(--muted); }
.textarea.flash { box-shadow: 0 0 0 3px var(--accent-soft); transition: box-shadow .3s; }

/* Rejected post → back to the video */
.post-src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.newer-card { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }
.post-alert-banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px solid #fca5a5; background: #fff5f5; color: #7f1d1d; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
:root[data-theme="dark"] .post-alert-banner { background: #2a1212; border-color: #7f1d1d; color: #fecaca; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .post-alert-banner { background: #2a1212; border-color: #7f1d1d; color: #fecaca; } }
.flash-card { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .4s; }

/* Cut editor */
.ce { outline: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 6px 8px 6px; user-select: none; -webkit-user-select: none; }
.ce:focus-visible, .ce:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ce-bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-height: 30px; }
.ce-btn { border: 0; background: none; height: 28px; min-width: 28px; padding: 0 7px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ce-btn span { font-size: 12px; }
.ce-btn:hover:not(:disabled) { background: var(--sunken); }
.ce-btn:disabled { opacity: .35; cursor: default; }
.ce-play { background: var(--text); color: var(--surface); width: 30px; justify-content: center; font-size: 11px; }
.ce-play:hover:not(:disabled) { background: var(--text); opacity: .85; }
.ce-time { font-variant-numeric: tabular-nums; font-size: 12px; margin: 0 6px 0 4px; white-space: nowrap; }
.ce-of { color: var(--muted); }
.ce-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.ce-grow { flex: 1; }
.ce-parts { color: var(--muted); margin-right: 4px; }
.ce-mini { position: relative; height: 6px; border-radius: 3px; background: var(--sunken); margin: 4px 0 5px; cursor: pointer; }
.ce-mini i { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 3px; }
.ce-mini i.on { background: var(--accent); }
.ce-mini b { position: absolute; top: -2px; width: 2px; height: 10px; background: var(--text); border-radius: 1px; }
.ce-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.ce-inner { position: relative; }
.ce-ruler { position: relative; height: 14px; }
.ce-ruler span { position: absolute; top: 0; font-size: 9.5px; color: var(--muted); transform: translateX(-50%); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ce-ruler span:first-child { transform: none; }
.ce-track { position: relative; height: 52px; cursor: text; }
.ce-seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); overflow: hidden; box-sizing: border-box; cursor: pointer; }
.ce-seg + .ce-seg { margin-left: 0; }
.ce-seg.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 26%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.ce-bars { position: absolute; inset: 4px 6px 4px; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; }
.ce-bars i { flex: 1; background: color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 1px; min-width: 2px; }
.ce-lbl { position: absolute; left: 8px; right: 8px; top: 3px; font-size: 10px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; text-shadow: 0 1px 0 var(--surface); }
.ce-h { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 2; }
.ce-h.l { left: -1px; } .ce-h.r { right: -1px; }
.ce-h::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity .12s; }
.ce-h.l::after { left: 2px; } .ce-h.r::after { right: 2px; }
.ce-seg:hover .ce-h::after, .ce-seg.on .ce-h::after { opacity: 1; }
.ce-range { position: absolute; top: -2px; bottom: -2px; background: rgba(239,68,68,.16); border: 1.5px dashed #ef4444; border-radius: 6px; pointer-events: none; z-index: 3; }
.ce-head { position: absolute; top: -16px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--text); z-index: 4; pointer-events: none; }
.ce-head span { position: absolute; top: 0; left: -5px; width: 12px; height: 10px; background: var(--text); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ce-hint { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.ce-hint b { font-weight: 700; color: var(--text); }
.ce-menu { position: fixed; z-index: 2000; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; animation: fade .1s; }
.ce-menu button { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 13px; padding: 6px 9px; border-radius: 6px; cursor: pointer; color: var(--text); text-align: left; }
.ce-menu button:hover:not(:disabled) { background: var(--accent-soft); }
.ce-menu button:disabled { opacity: .4; cursor: default; }
.ce-menu .ic { width: 18px; text-align: center; }
.ce-menu kbd { font: inherit; font-size: 11px; color: var(--muted); }
.ce-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.cut-head { display: flex; align-items: center; gap: 6px; margin: 8px 0 6px; }
#sCut:empty { display: none; }
.fe { display: flex; flex-direction: column; gap: 10px; }
.fe video { width: 100%; max-height: 46vh; background: #000; border-radius: 12px; object-fit: contain; }
@media (max-width: 640px) { .ce-btn span { display: none; } }

/* Post window: the video's links and switching */
.post-media-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.post-media-actions .newer-card { padding: 9px 10px; }
.picked-card { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 7px 9px; }
.return-pill { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; background: var(--text); color: var(--surface); border-radius: 999px; box-shadow: var(--shadow-lg); overflow: hidden; animation: fade .2s; max-width: calc(100vw - 36px); }
.return-pill button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.return-pill .rp-go { padding: 11px 6px 11px 16px; font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.return-pill .rp-t { font-weight: 500; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.return-pill .rp-x { padding: 11px 14px 11px 8px; opacity: .7; font-size: 16px; }
.return-pill .rp-x:hover { opacity: 1; }

/* ---- connection switcher (top right) ---- */
.conn-pill{display:inline-flex;align-items:center;gap:8px;max-width:260px;height:36px;padding:0 10px 0 12px;border-radius:999px;border:1px solid var(--line,rgba(127,127,127,.25));background:var(--card,transparent);color:inherit;cursor:pointer;font:inherit;text-align:left}
.conn-pill:hover{border-color:var(--accent,#5B8CFF)}
.conn-pill .conn-txt{display:flex;flex-direction:column;min-width:0;line-height:1.1}
.conn-pill .conn-txt b{font-size:13px;max-width:180px}
.conn-pill .conn-txt .tiny{opacity:.7;max-width:180px}
.conn-pill .warn-t{color:var(--warn,#e0a100);opacity:1}
.conn-pill .caret{opacity:.6;font-size:11px}
.conn-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none;box-shadow:0 0 0 2px rgba(127,127,127,.18)}
.conn-menu{min-width:300px;max-height:70vh;overflow:auto}
.conn-menu [data-conn]{display:flex;align-items:center;gap:10px;width:100%}
.conn-menu [data-conn].on{background:rgba(127,127,127,.1)}
.conn-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.conn-card{border:1px solid var(--line,rgba(127,127,127,.25));border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}
.conn-card.on{border-color:var(--accent,#5B8CFF);box-shadow:0 0 0 1px var(--accent,#5B8CFF) inset}
.conn-card .conn-checks{display:flex;flex-direction:column;gap:3px;font-size:12px}
.conn-card .conn-checks span.ok::before{content:'✓ ';color:var(--ok,#2BD4A4)}
.conn-card .conn-checks span.no::before{content:'○ ';opacity:.6}
@media (max-width:640px){.conn-pill{max-width:150px}.conn-pill .conn-txt .tiny{display:none}}

.tut-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, #ffffff14); background: var(--accent-soft); color: inherit; cursor: pointer; }
.tut-card:hover { border-color: var(--accent); }
.tut-play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #fff); font-size: 14px; }

.welcome .done-steps li::before { content: counter(s); }
.welcome .done-steps li.ok::before { content: '✓'; background: color-mix(in srgb, #22c55e 18%, transparent); color: #22c55e; }
.welcome .done-steps li.now::before { background: var(--accent); color: var(--accent-ink, #fff); }
.welcome .done-steps li { color: var(--text); }

.secret-in { -webkit-text-security: disc; text-security: disc; font-family: var(--mono, monospace); letter-spacing: .08em; }
.secret-in:focus { -webkit-text-security: none; text-security: none; }

.welcome .done-steps li { align-items: flex-start; }
.welcome .done-steps li::before { margin-top: 1px; }
.welcome .done-steps li > b { display: block; }
.welcome .done-steps li .tiny { display: block; margin-top: 1px; }
.welcome .done-steps li { flex-wrap: nowrap; }
.welcome .done-steps li span.grow-text { display: block; }

/* share links: obvious, one tap */
.share-box{display:flex;gap:8px;align-items:center}
.share-box .input{font-size:14px;font-weight:600}
.share-grid{display:flex;flex-wrap:wrap;gap:8px}
.share-btn{background:#16a34a;border-color:#16a34a;color:#fff;font-weight:700}
.share-btn:hover{background:#15803d;border-color:#15803d;color:#fff}
.share-chip{margin:6px 0 2px;background:#16a34a;border:1px solid #16a34a;color:#fff;font-weight:700}
.share-chip:hover{background:#15803d;color:#fff}
@media (max-width:560px){.share-box{flex-direction:column;align-items:stretch}}
/* ElevenLabs voice picker + guide */
.el-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:18px}
@media (max-width:760px){.el-grid{grid-template-columns:1fr}}
.el-voices{max-height:320px;overflow:auto;border:1px solid var(--line,rgba(127,127,127,.25));border-radius:12px;padding:4px}
.el-voice{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;cursor:pointer}
.el-voice:hover{background:var(--accent-soft)}
.el-voice.on{background:var(--accent-soft);outline:1px solid var(--accent)}
.el-voice input{accent-color:var(--accent)}
.el-result{border:1px solid var(--line,rgba(127,127,127,.25));border-radius:12px;padding:12px}
.el-step-n{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.el-shot{width:100%;border-radius:12px;border:1px solid var(--line,rgba(127,127,127,.25));display:block}
.el-dots{display:flex;gap:6px}.el-dots i{width:7px;height:7px;border-radius:50%;background:var(--faint)}.el-dots i.on{background:var(--accent);width:18px;border-radius:4px}

/* ---------- voiceover studio, teleprompter, camera ---------- */
.vs-script { font-size: 16px; line-height: 1.55; }
.vs-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-opt { text-align: left; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: inherit; font: inherit; }
.vs-opt:hover { border-color: var(--accent, #6366f1); box-shadow: var(--shadow); }
.vs-opt b { font-size: 15px; } .vs-opt span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .vs-choose { grid-template-columns: 1fr; } }
.tp { position: fixed; inset: 0; z-index: 99; background: #0b0b0f; color: #f5f5f7; display: flex; flex-direction: column; }
.tp .btn.ghost { color: #f5f5f7; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.tp .faint, .tp .muted { color: rgba(255,255,255,.55); }
.tp-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.tp input[type=range] { width: 120px; flex: none; }
.tp-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 48px; }
.tp-meter { width: 90px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; } .tp-meter i { display: block; height: 100%; width: 0; background: #22c55e; transition: width .05s; }
.tp-stage { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 30vh 8vw 60vh; scroll-behavior: auto; }
.tp-text { max-width: 980px; margin: 0 auto; font-weight: 700; line-height: 1.45; letter-spacing: .005em; overflow-wrap: anywhere; }
.tp-line { position: sticky; top: 28%; height: 0; border-top: 2px dashed rgba(239,68,68,.55); margin: 0 -8vw; pointer-events: none; z-index: 1; }
.tp-count { position: fixed; inset: 0; display: grid; place-items: center; font-size: 160px; font-weight: 800; color: #ef4444; background: rgba(0,0,0,.45); }
.tp-edit { width: 100%; max-width: 980px; display: block; margin: -8vh auto 0; min-height: 50vh; background: #15151c; color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 18px; line-height: 1.5; font-weight: 600; }
.tp-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.tp-bot > span { flex: 1; } .tp-bot > span:last-child { text-align: right; }
.tp-rec { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.tp-rec i { width: 52px; height: 52px; border-radius: 50%; background: #ef4444; transition: all .15s; }
.tp-rec.on i { width: 28px; height: 28px; border-radius: 6px; animation: tppulse 1.2s infinite; }
@keyframes tppulse { 50% { opacity: .6; } }
.tp-review { flex: 1; overflow: auto; padding: 24px 6vw; max-width: 1100px; width: 100%; margin: 0 auto; }
.wave { position: relative; background: #15151c; border-radius: 14px; padding: 10px; }
.wave canvas { width: 100%; height: 160px; display: block; cursor: crosshair; touch-action: none; }
.wave-head { position: absolute; top: 6px; bottom: 6px; width: 2px; background: #f59e0b; display: none; pointer-events: none; }
.tp-mini { white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); margin-top: 8px; }
.cam { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: contain; }
.cam-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 800; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.tp .btn.primary { background: #16a34a; color: #fff; border-color: #16a34a; }
.tp .btn:not(.ghost):not(.primary) { background: rgba(255,255,255,.9); color: #111; }

.tp-recbtn { display: inline-flex; align-items: center; gap: 8px; background: #ef4444; color: #fff; border: 0; border-radius: 999px; padding: 9px 18px 9px 12px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 0 0 3px rgba(239,68,68,.25); }
.tp-recbtn i { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.tp-recbtn.on i { border-radius: 3px; animation: tppulse 1.2s infinite; }
.tp-stage { padding-top: 12vh; } .tp-line { top: 10%; }
.tp-bot { padding: 8px 18px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; }
.mp-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); }
.mp-card.on { border-color: var(--accent, #6366f1); box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.mp-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--primary, #111); color: var(--primary-ink, #fff); cursor: pointer; flex: none; display: grid; place-items: center; font-size: 12px; }
.mp-bar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; } .mp-bar i { display: block; height: 100%; width: 0; background: var(--accent, #6366f1); }
.au-saved { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.au-pane .btn { flex-direction: column; gap: 2px; }
.au-pane .rrow .btn, .au-pane .btn.xs { flex-direction: row; }
.au-pane .btn.danger-text { color: var(--bad, #dc2626); }
.au-pane .card + .card, .au-pane .au-saved + .card { margin-top: 12px; }
.au-pane .card .btn:not(.xs) { width: 100% !important; align-self: stretch; }
.au-pane .rrow .btn { width: auto !important; }
.au-pane .row.mt12 .btn { width: auto !important; }
.au-pane .card > p.small { margin-bottom: 10px; }

/* ---------- public website (direct plan): landing, paywall, connect upsell ---------- */
body.lp-on .appbar .nav { display: none; }
.lp { max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; }
.lp-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 36px 0 56px; }
.lp-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.lp-hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #9bd400, #c8ed48); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 540px; margin: 0 0 24px; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lp-wl { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; max-width: 520px; }
.lp-wl:hover { border-color: var(--brand); }
.lp-wl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }
.lp-phone { justify-self: center; width: min(320px, 80vw); aspect-ratio: 9/16; border-radius: 38px; padding: 10px; background: #111; box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
.lp-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #0b0c10; }
.lp-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 10px 0 56px; }
.lp-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.lp-feat b { display: block; font-size: 16px; margin: 10px 0 6px; }
.lp-feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lp-ico { font-size: 24px; }
.lp h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; text-align: center; margin: 0 0 24px; }
.lp-plans { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px; align-items: stretch; }
.lp-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.lp-plan.main { border: 2px solid var(--brand); box-shadow: 0 16px 50px rgba(150,200,20,.18); }
.lp-plan h3 { margin: 4px 0 0; font-size: 19px; }
.lp-plan p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lp-plan ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; flex: 1; }
.lp-plan li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 8px; }
.lp-price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.lp-price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--sunken); color: var(--muted); }
.lp-tag.ok { background: var(--ok-soft); color: var(--ok); }
.lp-link { display: block; text-align: center; color: var(--muted); margin-top: 6px; }
.lp-ways { padding: 0 0 56px; }
.lp-steps { text-align: center; padding: 0 0 48px; }
.lp-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0 auto 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.lp-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 20px 62px; position: relative; }
.lp-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.lp-steps li b { display: block; margin-bottom: 4px; }
.lp-steps li span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.lp-foot { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); padding-top: 22px; }
.lp-foot a { color: var(--muted); }
/* Claude skill: bar on Create, steps in its popup */
.skill-bar { display: flex; align-items: center; gap: 12px; margin: -6px auto 16px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 14px; font-size: 14px; }
.skill-bar .ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.skill-bar .ico svg { width: 18px; height: 18px; }
.skill-bar .grow { flex: 1; min-width: 0; }
@media (max-width: 640px) { .skill-bar { flex-wrap: wrap; } .skill-bar .btn { width: 100%; justify-content: center; } }
.skill-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .lp-phone { width: min(260px, 70vw); }
  .lp-feats, .lp-plans, .lp-steps ol { grid-template-columns: 1fr; }
  .lp { padding: 4px 16px 32px; }
}
.pw .pw-list { list-style: none; padding: 0; margin: 14px 0 4px; display: grid; gap: 8px; text-align: left; }
.pw .pw-list li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 8px; }
.pw-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 14px 0 10px; }
.pw-or::before, .pw-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cp-meter { background: var(--sunken); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.cp-bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9bd400, #c8ed48); }
.cp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-opt { border: 1px solid var(--line2); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cp-opt.best { border: 2px solid var(--brand); }
.cp-opt h3 { margin: 0; font-size: 17px; }
.cp-opt p { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
@media (max-width: 620px) { .cp-opts { grid-template-columns: 1fr; } }
.save-chip { gap: 8px; }
.save-chip b { color: var(--brand-ink); background: var(--brand); border-radius: 99px; padding: 1px 8px; font-size: 11.5px; }
.save-chip.full span { color: var(--warn); }
