/* ============================================================
   Ignis Console — UI kit chrome & screen styles
   (kit-specific layout; primitives come from the DS bundle)
   ============================================================ */

.app{ display:grid; grid-template-columns:var(--sidebar-w) 1fr; height:100%; min-height:100%;
  background:var(--surface-app); color:var(--text-body); }

/* ---------- Sidebar ---------- */
.side{ background:var(--ink-900); color:var(--text-on-dark); display:flex; flex-direction:column;
  padding:16px 12px; gap:4px; }
.side__brand{ display:flex; align-items:center; gap:10px; padding:6px 8px 14px; }
.side__brand img{ height:33px; }
.side__section{ font:var(--weight-semibold) var(--text-2xs)/1 var(--font-sans);
  letter-spacing:var(--tracking-caps); text-transform:uppercase; color:var(--ink-500);
  padding:14px 10px 6px; }
/* prominent create-video CTA */
.nav__create{ display:flex; align-items:center; justify-content:center; gap:8px; margin:6px 2px 2px;
  padding:11px; border:none; border-radius:var(--radius-md); cursor:pointer;
  background:var(--brand); color:#fff; box-shadow:var(--shadow-flame);
  font:var(--weight-bold) var(--text-base)/1 var(--font-sans);
  transition:background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.nav__create svg{ width:18px; height:18px; }
.nav__create:hover{ background:var(--brand-hover); }
.nav__create:active{ transform:scale(0.98); }
.nav__create--active{ outline:2px solid rgba(255,255,255,0.3); outline-offset:1px; }
.nav__item{ display:flex; align-items:center; gap:11px; padding:9px 11px; border-radius:var(--radius-md);
  color:var(--ink-300); cursor:pointer; font:var(--weight-medium) var(--text-base)/1 var(--font-sans);
  border:none; background:transparent; width:100%; text-align:left;
  transition:background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nav__item svg{ width:18px; height:18px; stroke-width:1.9; flex:none; }
.nav__item:hover{ background:rgba(255,255,255,0.06); color:var(--ink-50); }
.nav__item--active{ background:var(--brand); color:#fff; box-shadow:var(--shadow-flame); }
.nav__item--active:hover{ background:var(--brand-hover); color:#fff; }
.nav__badge{ margin-left:auto; display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--ember-500);
  color:#fff; font:var(--weight-bold) 10px/1 var(--font-mono); }
.nav__item--active .nav__badge{ background:rgba(0,0,0,0.25); }
.side__spacer{ flex:1; }
.side__user{ display:flex; align-items:center; gap:10px; padding:10px; border-radius:var(--radius-lg);
  background:rgba(255,255,255,0.05); cursor:pointer; }
.side__user:hover{ background:rgba(255,255,255,0.09); }
.side__user .nm{ font:var(--weight-semibold) var(--text-sm)/1.2 var(--font-sans); color:var(--ink-50); }
.side__user .role{ font:var(--weight-regular) var(--text-2xs)/1.2 var(--font-sans); color:var(--ink-400); }

/* ---------- Main + Topbar ---------- */
.main{ display:flex; flex-direction:column; min-width:0; height:100%; overflow:hidden; }
.topbar{ height:var(--topbar-h); flex:none; display:flex; align-items:center; gap:16px;
  padding:0 24px; background:var(--surface-card); border-bottom:1px solid var(--border-subtle); }
.topbar__title{ display:flex; flex-direction:column; gap:1px; }
.topbar__title h1{ font:var(--weight-bold) var(--text-xl)/1.1 var(--font-display); color:var(--text-strong); }
.topbar__title p{ font:var(--weight-regular) var(--text-xs)/1 var(--font-sans); color:var(--text-muted); }
.topbar__search{ margin-left:8px; flex:1; max-width:360px; }
.topbar__spacer{ flex:1; }
.topbar__actions{ display:flex; align-items:center; gap:8px; }
.content{ flex:1; overflow-y:auto; padding:24px; }
.content__inner{ max-width:var(--content-max); margin:0 auto; display:flex; flex-direction:column; gap:20px; }

/* ---------- Common section bits ---------- */
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.sec-head h2{ font:var(--weight-bold) var(--text-2xl)/1.1 var(--font-display); color:var(--text-strong); }
.sec-head p{ font:var(--weight-regular) var(--text-sm)/1.4 var(--font-sans); color:var(--text-muted); margin-top:3px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.grid-2{ display:grid; grid-template-columns:2fr 1fr; gap:16px; }
.toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.toolbar__spacer{ flex:1; }

/* ---------- Video / content tile ---------- */
.vtile{ display:flex; flex-direction:column; background:var(--surface-card);
  border:1px solid var(--border-subtle); border-radius:var(--radius-xl); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.vtile:hover{ box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.vthumb{ position:relative; aspect-ratio:9/16; display:flex; align-items:flex-end; padding:10px;
  background-size:cover; background-position:center; }
.vthumb__scrim{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(17,15,12,0) 45%,rgba(17,15,12,0.78)); }
.vthumb__play{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.92); display:flex;
  align-items:center; justify-content:center; color:var(--ink-900); box-shadow:var(--shadow-md); }
.vthumb__play svg{ width:18px; height:18px; margin-left:2px; }
.vthumb__meta{ position:relative; display:flex; align-items:center; gap:10px; color:#fff;
  font:var(--weight-semibold) var(--text-xs)/1 var(--font-mono); }
.vthumb__meta span{ display:inline-flex; align-items:center; gap:4px; }
.vthumb__meta svg{ width:13px; height:13px; }
.vthumb__rank{ position:absolute; top:10px; left:10px; }
.vbody{ padding:12px 13px; display:flex; flex-direction:column; gap:9px; }
.vbody__title{ font:var(--weight-semibold) var(--text-sm)/1.35 var(--font-sans); color:var(--text-strong);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vbody__foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.vauthor{ display:flex; align-items:center; gap:7px; font:var(--weight-medium) var(--text-xs)/1 var(--font-sans); color:var(--text-muted); }

/* ---------- Login ---------- */
.login{ display:grid; grid-template-columns:1fr 1fr; height:100%; background:var(--surface-card); }
.login__form{ display:flex; flex-direction:column; justify-content:center; align-items:center; padding:40px; }
.login__card{ width:100%; max-width:360px; display:flex; flex-direction:column; gap:18px; }
.login__logo{ height:36px; align-self:flex-start; }
.login__h{ font:var(--weight-bold) var(--text-3xl)/1.1 var(--font-display); color:var(--text-strong); }
.login__sub{ font:var(--weight-regular) var(--text-sm)/1.5 var(--font-sans); color:var(--text-muted); margin-top:-8px; }
.login__row{ display:flex; align-items:center; justify-content:space-between; }
.login__brand{ position:relative; overflow:hidden; padding:48px;
  background:linear-gradient(150deg,var(--flame-500) 0%,var(--flame-700) 55%,var(--ink-900) 130%);
  color:#fff; display:flex; flex-direction:column; justify-content:flex-end; gap:18px; }
.login__brand .spark{ position:absolute; right:-40px; top:-30px; width:280px; height:280px; opacity:0.16; }
.login__brand h2{ font:var(--weight-bold) var(--text-4xl)/1.1 var(--font-display); position:relative; max-width:380px; }
.login__brand p{ font:var(--weight-regular) var(--text-md)/1.6 var(--font-sans); opacity:0.9; position:relative; max-width:360px; }
.login__stats{ position:relative; display:flex; gap:28px; margin-top:8px; flex-wrap:wrap; }
.login__stats b{ display:block; font:var(--weight-bold) var(--text-3xl)/1 var(--font-display); }
.login__stats span{ font:var(--weight-medium) var(--text-xs)/1.3 var(--font-sans); opacity:0.82; white-space:nowrap; }

/* ---------- misc panels ---------- */
.panel-list{ display:flex; flex-direction:column; }
.lrow{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border-subtle); }
.lrow:last-child{ border-bottom:none; }
.lrow__rank{ font:var(--weight-bold) var(--text-sm)/1 var(--font-display); color:var(--text-subtle); width:20px; text-align:center; }
.lrow__thumb{ width:38px; height:50px; border-radius:var(--radius-sm); flex:none; background-size:cover; background-position:center; }
.lrow__main{ flex:1; min-width:0; }
.lrow__t{ font:var(--weight-semibold) var(--text-sm)/1.3 var(--font-sans); color:var(--text-strong);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lrow__s{ font:var(--weight-regular) var(--text-xs)/1.2 var(--font-sans); color:var(--text-muted); margin-top:2px; }
.lrow__v{ font:var(--weight-bold) var(--text-sm)/1 var(--font-mono); color:var(--text-strong); font-variant-numeric:tabular-nums; }

/* simple bar chart */
.chart{ display:flex; align-items:flex-end; gap:10px; height:160px; padding-top:10px; }
.chart__col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; justify-content:flex-end; }
.chart__bar{ width:60%; border-radius:6px 6px 0 0; background:linear-gradient(180deg,var(--flame-400),var(--flame-600));
  min-height:4px; transition:height var(--dur-slow) var(--ease-out); }
.chart__bar--soft{ background:var(--ink-150); }
.chart__x{ font:var(--weight-medium) 10px/1 var(--font-mono); color:var(--text-subtle); }

.platform-chip{ display:inline-flex; align-items:center; gap:5px; height:22px; padding:0 8px;
  border-radius:var(--radius-sm); background:var(--ink-900); color:#fff;
  font:var(--weight-semibold) var(--text-2xs)/1 var(--font-sans); }
.platform-chip svg{ width:12px; height:12px; }

/* ============================================================
   Dashboard hero (达人矩阵)
   ============================================================ */
.hero{ position:relative; overflow:hidden; border-radius:var(--radius-2xl); padding:22px 24px;
  background:linear-gradient(120deg,var(--ink-900),var(--ink-800) 58%,var(--flame-800));
  color:#fff; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.hero .spark{ position:absolute; right:-30px; top:-40px; width:200px; height:200px; opacity:0.14; }
.hero__l{ position:relative; }
.hero__hi{ font:var(--weight-bold) var(--text-2xl)/1.15 var(--font-display); }
.hero__sub{ font:var(--weight-regular) var(--text-sm)/1.5 var(--font-sans); opacity:0.86; margin-top:4px; max-width:460px; }
.hero__pulse{ position:relative; display:flex; gap:30px; }
.hero__pulse div b{ display:block; font:var(--weight-bold) var(--text-3xl)/1 var(--font-display); font-variant-numeric:tabular-nums; }
.hero__pulse div span{ font:var(--weight-medium) var(--text-xs)/1 var(--font-sans); opacity:0.82; white-space:nowrap; }

/* simple bar chart already defined above; ranking rows reuse .lrow */

/* category split bars */
.catbar{ display:flex; flex-direction:column; gap:12px; }
.catrow{ display:flex; align-items:center; gap:10px; }
.catrow__name{ width:64px; font:var(--weight-medium) var(--text-xs)/1 var(--font-sans); color:var(--text-body); flex:none; }
.catrow__track{ flex:1; height:8px; border-radius:999px; background:var(--ink-150); overflow:hidden; }
.catrow__fill{ height:100%; border-radius:999px; }
.catrow__v{ width:48px; text-align:right; font:var(--weight-semibold) var(--text-xs)/1 var(--font-mono); color:var(--text-body); font-variant-numeric:tabular-nums; }

/* ============================================================
   Creator card (ranking / picker / management)
   ============================================================ */
.ccard{ position:relative; display:flex; align-items:center; gap:12px; padding:13px;
  background:var(--surface-card); border:1.5px solid var(--border-subtle); border-radius:var(--radius-lg);
  cursor:pointer; transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.ccard:hover{ border-color:var(--border-strong); box-shadow:var(--shadow-sm); }
.ccard--sel{ border-color:var(--brand); box-shadow:var(--ring-flame); }
.ccard--sel::after{ content:""; position:absolute; top:10px; right:10px; width:18px; height:18px; border-radius:50%;
  background:var(--brand); }
.ccard--sel .ccard__check{ position:absolute; top:10px; right:10px; width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff; z-index:1; }
.ccard--sel .ccard__check svg{ width:12px; height:12px; }
.ccard__name{ font:var(--weight-semibold) var(--text-sm)/1.2 var(--font-sans); color:var(--text-strong); }
.ccard__sub{ font:var(--weight-regular) var(--text-xs)/1 var(--font-sans); color:var(--text-muted); margin-top:3px; }

/* ============================================================
   Create-video wizard
   ============================================================ */
.wizard{ display:flex; flex-direction:column; gap:0; max-width:1040px; margin:0 auto; width:100%; }
.wizhead{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 0 16px; }
.wizhead__t{ font:var(--weight-bold) var(--text-2xl)/1.1 var(--font-display); color:var(--text-strong); }
.wizhead__s{ font:var(--weight-regular) var(--text-xs)/1 var(--font-sans); color:var(--text-muted); margin-top:3px; }
.stepper{ display:flex; align-items:center; gap:0; padding:4px 0 22px; }
.step{ display:flex; align-items:center; gap:10px; }
.step__num{ width:28px; height:28px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  font:var(--weight-bold) var(--text-xs)/1 var(--font-mono); background:var(--ink-150); color:var(--text-muted);
  transition:background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.step__label{ font:var(--weight-semibold) var(--text-sm)/1 var(--font-sans); color:var(--text-muted); white-space:nowrap; }
.step--active .step__num{ background:var(--brand); color:#fff; box-shadow:var(--shadow-flame); }
.step--active .step__label{ color:var(--text-strong); }
.step--done .step__num{ background:var(--success-500); color:#fff; }
.step--done .step__label{ color:var(--text-body); }
.step__line{ flex:1; height:2px; margin:0 14px; min-width:24px; background:var(--ink-150); border-radius:2px; }
.step__line--done{ background:var(--success-500); }

.wizpanel{ background:var(--surface-card); border:1px solid var(--border-subtle); border-radius:var(--radius-2xl);
  box-shadow:var(--shadow-sm); padding:24px; }
.wiztitle{ font:var(--weight-bold) var(--text-xl)/1.2 var(--font-display); color:var(--text-strong); }
.wizsub{ font:var(--weight-regular) var(--text-sm)/1.5 var(--font-sans); color:var(--text-muted); margin-top:4px; }
.wizfoot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; }

.ctxbar{ display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--brand-soft);
  border:1px solid var(--flame-200); border-radius:var(--radius-lg); margin-bottom:18px; }
.ctxbar__t{ font:var(--weight-medium) var(--text-sm)/1.3 var(--font-sans); color:var(--flame-800); }
.ctxbar__t b{ font-weight:700; }

/* method choice */
.method-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.method{ position:relative; display:flex; flex-direction:column; gap:12px; padding:22px;
  border:1.5px solid var(--border-default); border-radius:var(--radius-xl); cursor:pointer; background:var(--surface-card);
  transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.method:hover{ border-color:var(--flame-300); }
.method--sel{ border-color:var(--brand); box-shadow:var(--ring-flame); }
.method--disabled{ opacity:0.6; cursor:not-allowed; background:var(--ink-25); }
.method--disabled:hover{ border-color:var(--border-default); }
.method__ico{ width:46px; height:46px; border-radius:var(--radius-lg); display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--flame-400),var(--flame-600)); color:#fff; }
.method__ico svg{ width:24px; height:24px; }
.method--disabled .method__ico{ background:var(--ink-200); color:var(--ink-500); }
.method__name{ font:var(--weight-bold) var(--text-lg)/1.2 var(--font-display); color:var(--text-strong); display:flex; align-items:center; gap:8px; }
.method__desc{ font:var(--weight-regular) var(--text-sm)/1.5 var(--font-sans); color:var(--text-muted); }

/* source options (radio cards) */
.source-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.source{ display:flex; flex-direction:column; gap:8px; padding:16px; border:1.5px solid var(--border-default);
  border-radius:var(--radius-lg); cursor:pointer; background:var(--surface-card);
  transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.source:hover{ border-color:var(--flame-300); }
.source--sel{ border-color:var(--brand); box-shadow:var(--ring-flame); }
.source__ico{ width:34px; height:34px; border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center;
  background:var(--brand-soft); color:var(--flame-600); }
.source__ico svg{ width:18px; height:18px; }
.source__name{ font:var(--weight-semibold) var(--text-sm)/1.2 var(--font-sans); color:var(--text-strong); }
.source__desc{ font:var(--weight-regular) var(--text-xs)/1.4 var(--font-sans); color:var(--text-muted); }

/* picker grid (products / personas / recommended viral) */
.picker{ display:grid; grid-template-columns:repeat(auto-fill,minmax(116px,1fr)); gap:12px; }
.pick{ position:relative; display:flex; flex-direction:column; gap:7px; cursor:pointer; }
.pick__media{ position:relative; aspect-ratio:1/1; border-radius:var(--radius-lg); overflow:hidden;
  border:1.5px solid var(--border-subtle); background-size:cover; background-position:center;
  transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.pick--video .pick__media{ aspect-ratio:9/16; }
.pick:hover .pick__media{ border-color:var(--flame-300); }
.pick--sel .pick__media{ border-color:var(--brand); box-shadow:var(--ring-flame); }
.pick--sel .pick__check{ position:absolute; top:6px; right:6px; width:20px; height:20px; border-radius:50%;
  background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); }
.pick--sel .pick__check svg{ width:12px; height:12px; }
.pick__name{ font:var(--weight-medium) var(--text-xs)/1.3 var(--font-sans); color:var(--text-strong);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pick__sub{ font:var(--weight-regular) var(--text-2xs)/1 var(--font-mono); color:var(--text-muted); }
.pick__play{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:30px; height:30px;
  border-radius:50%; background:rgba(255,255,255,0.92); display:flex; align-items:center; justify-content:center; color:var(--ink-900); }
.pick__play svg{ width:13px; height:13px; }
.pick__badge{ position:absolute; left:6px; top:6px; }

/* upload / add tile */
.addtile{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
  aspect-ratio:1/1; border:1.5px dashed var(--border-strong); border-radius:var(--radius-lg); cursor:pointer;
  color:var(--text-muted); background:var(--ink-25); text-align:center; padding:8px;
  transition:border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.addtile:hover{ border-color:var(--flame-400); color:var(--flame-600); background:var(--brand-soft); }
.addtile svg{ width:22px; height:22px; }
.addtile span{ font:var(--weight-medium) var(--text-2xs)/1.2 var(--font-sans); }
.addtile--video{ aspect-ratio:9/16; }

.dropzone{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  padding:34px; border:1.5px dashed var(--border-strong); border-radius:var(--radius-xl); cursor:pointer;
  color:var(--text-muted); background:var(--ink-25); text-align:center;
  transition:border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.dropzone:hover{ border-color:var(--flame-400); background:var(--brand-soft); }
.dropzone__ico{ width:44px; height:44px; border-radius:var(--radius-lg); background:var(--surface-card);
  border:1px solid var(--border-subtle); display:flex; align-items:center; justify-content:center; color:var(--flame-600); }
.dropzone__ico svg{ width:22px; height:22px; }
.dropzone b{ font:var(--weight-semibold) var(--text-sm)/1.2 var(--font-sans); color:var(--text-strong); }
.dropzone span{ font:var(--weight-regular) var(--text-xs)/1.4 var(--font-sans); }

/* segmented toggle (e.g. 上传 / AI 生成) */
.seg{ display:inline-flex; padding:3px; background:var(--surface-sunken); border-radius:var(--radius-md); gap:2px; width:100%; }
.seg button{ flex:1; border:none; background:transparent; cursor:pointer; padding:8px 14px; border-radius:var(--radius-sm);
  font:var(--weight-semibold) var(--text-sm)/1 var(--font-sans); color:var(--text-muted);
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  transition:background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.seg button svg{ width:15px; height:15px; }
.seg button.on{ background:var(--surface-card); color:var(--text-strong); box-shadow:var(--shadow-xs); }

/* video type choice */
.vtype-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.vtype{ display:flex; align-items:center; gap:10px; padding:13px 14px; border:1.5px solid var(--border-default);
  border-radius:var(--radius-lg); cursor:pointer; background:var(--surface-card); }
.vtype--sel{ border-color:var(--brand); box-shadow:var(--ring-flame); }
.vtype--soon{ opacity:0.55; cursor:not-allowed; }
.vtype__ico{ width:32px; height:32px; border-radius:var(--radius-md); flex:none; display:flex; align-items:center; justify-content:center;
  background:var(--brand-soft); color:var(--flame-600); }
.vtype__ico svg{ width:17px; height:17px; }
.vtype__name{ font:var(--weight-semibold) var(--text-sm)/1.1 var(--font-sans); color:var(--text-strong); }
.vtype__desc{ font:var(--weight-regular) var(--text-2xs)/1.2 var(--font-sans); color:var(--text-muted); margin-top:2px; }

/* config two-column */
.cfg-grid{ display:grid; grid-template-columns:280px 1fr; gap:20px; align-items:start; }
.cfg-label{ display:flex; align-items:center; gap:8px; font:var(--weight-semibold) var(--text-sm)/1 var(--font-sans);
  color:var(--text-strong); margin-bottom:12px; }
.cfg-label svg{ width:16px; height:16px; color:var(--flame-600); }
.cfg-label .req{ color:var(--flame-600); }

/* generated results */
.work-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.variant{ display:flex; flex-direction:column; gap:7px; }
.variant__thumb{ position:relative; aspect-ratio:9/16; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border-subtle); }
.variant__play{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:34px; height:34px;
  border-radius:50%; background:rgba(255,255,255,0.92); display:flex; align-items:center; justify-content:center; color:var(--ink-900); box-shadow:var(--shadow-md); }
.variant__play svg{ width:15px; height:15px; }
.variant__badge{ position:absolute; left:7px; top:7px; }
.variant__foot{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.variant__name{ font:var(--weight-medium) var(--text-xs)/1 var(--font-sans); color:var(--text-strong); }

/* gen progress */
.genwrap{ display:flex; flex-direction:column; align-items:center; gap:18px; padding:40px 0; text-align:center; }
.genspin{ width:60px; height:60px; border-radius:50%; border:4px solid var(--brand-soft-2); border-top-color:var(--brand);
  animation:ig-spin 0.9s linear infinite; }
@keyframes ig-spin{ to{ transform:rotate(360deg); } }

/* 导演稿 script editor */
.script{ display:flex; flex-direction:column; gap:12px; }
.script__title{ width:100%; font:var(--weight-bold) var(--text-lg)/1.3 var(--font-display); color:var(--text-strong);
  border:none; border-bottom:1.5px solid var(--border-default); padding:6px 2px; outline:none; background:transparent; }
.script__title:focus{ border-color:var(--flame-400); }
.scriptbeat{ border:1px solid var(--border-subtle); border-radius:var(--radius-lg); background:var(--surface-card); overflow:hidden; }
.scriptbeat__head{ display:flex; align-items:center; gap:10px; padding:9px 13px; background:var(--ink-25); border-bottom:1px solid var(--border-subtle); }
.scriptbeat__type{ display:inline-flex; align-items:center; gap:5px; height:22px; padding:0 9px; border-radius:var(--radius-sm);
  background:var(--brand-soft); color:var(--flame-700); font:var(--weight-semibold) var(--text-2xs)/1 var(--font-sans); }
.scriptbeat__type svg{ width:12px; height:12px; }
.scriptbeat__time{ font:var(--weight-bold) var(--text-2xs)/1 var(--font-mono); color:var(--text-muted); }
.scriptbeat__dur{ font:var(--weight-medium) var(--text-2xs)/1 var(--font-mono); color:var(--text-subtle); }
.scriptbeat__rw{ margin-left:auto; display:inline-flex; align-items:center; gap:5px; border:none; background:transparent;
  cursor:pointer; color:var(--text-muted); font:var(--weight-semibold) var(--text-2xs)/1 var(--font-sans); padding:5px 8px; border-radius:var(--radius-sm); }
.scriptbeat__rw:hover{ background:var(--brand-soft); color:var(--flame-700); }
.scriptbeat__rw svg{ width:13px; height:13px; }
.scriptbeat__body{ padding:11px 13px; display:flex; flex-direction:column; gap:9px; }
.sfield{ display:flex; flex-direction:column; gap:4px; }
.sfield__lbl{ display:inline-flex; align-items:center; gap:5px; font:var(--weight-semibold) var(--text-2xs)/1 var(--font-sans);
  letter-spacing:var(--tracking-caps); text-transform:uppercase; color:var(--text-subtle); }
.sfield__lbl svg{ width:12px; height:12px; }
.sedit{ width:100%; font:var(--weight-regular) var(--text-sm)/1.5 var(--font-sans); color:var(--text-strong);
  border:1px solid transparent; border-radius:var(--radius-sm); padding:6px 8px; outline:none; resize:none;
  background:var(--ink-25); transition:border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.sedit:hover{ background:var(--surface-sunken); }
.sedit:focus{ background:var(--surface-card); border-color:var(--flame-400); box-shadow:var(--ring-flame); }
.sedit--shot{ font-size:var(--text-xs); color:var(--text-muted); }
.scriptbar{ display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px dashed var(--border-strong);
  border-radius:var(--radius-lg); background:var(--ink-25); }
.scriptbar__t{ font:var(--weight-regular) var(--text-xs)/1.4 var(--font-sans); color:var(--text-muted); flex:1; }
.scriptbar__t b{ color:var(--text-strong); font-weight:600; }
