:root{
  --bg:#0a0a0c; --bg-grad:#0d0d12;
  --surface:#141417; --surface-2:#1a1a1f; --surface-3:#212127;
  --border:#26262c; --border-2:#303038; --border-subtle:#1c1c21;
  --text:#f4f4f5; --text-muted:#a1a1aa; --text-faint:#71717a;
  --accent:#8b7cff; --accent-2:#6d5efc; --accent-fg:#ffffff; --accent-soft:rgba(124,108,255,.14);
  --success:#34d399; --success-soft:rgba(52,211,153,.13);
  --warning:#fbbf24; --warning-soft:rgba(251,191,36,.13);
  --danger:#f87171; --danger-soft:rgba(248,113,113,.13);
  --link:#a5b4fc;
  --chart-1:#3987e5; --chart-2:#d95926; --chart-3:#199e70; --chart-4:#c98500;
  --chart-5:#d55181; --chart-6:#008300; --chart-7:#9085e9;
  --code-bg:#1a1a1f; --code-border:#2a2a31;
  --contrast-bg:#fafafa; --contrast-fg:#111114; --contrast-hover:#e6e6e8;
  --radius:14px; --radius-sm:9px; --radius-lg:18px;
  --shadow:0 1px 2px rgba(0,0,0,.4); --shadow-lg:0 16px 48px -12px rgba(0,0,0,.6);
  --ring:0 0 0 3px rgba(124,108,255,.28);
  --sb-w:68px; --set-w:200px;
}
html[data-theme="light"]{
  --bg:#f7f7f8; --bg-grad:#f2f2f4;
  --surface:#ffffff; --surface-2:#f6f6f7; --surface-3:#efeff1;
  --border:#e6e6e9; --border-2:#dcdce0; --border-subtle:#efeff1;
  --text:#18181b; --text-muted:#52525b; --text-faint:#9ca3af;
  --accent:#6d5efc; --accent-2:#5b4df0; --accent-fg:#ffffff; --accent-soft:rgba(109,94,252,.10);
  --success:#059669; --success-soft:rgba(5,150,105,.10);
  --warning:#b45309; --warning-soft:rgba(180,83,9,.10);
  --danger:#dc2626; --danger-soft:rgba(220,38,38,.09);
  --link:#4f46e5;
  --chart-1:#2a78d6; --chart-2:#eb6834; --chart-3:#1baf7a; --chart-4:#eda100;
  --chart-5:#e87ba4; --chart-6:#008300; --chart-7:#4a3aa7;
  --code-bg:#f4f4f5; --code-border:#e4e4e7;
  --contrast-bg:#111114; --contrast-fg:#ffffff; --contrast-hover:#26262c;
  --shadow:0 1px 3px rgba(15,23,42,.06); --shadow-lg:0 18px 40px -12px rgba(15,23,42,.14);
  --ring:0 0 0 3px rgba(109,94,252,.18);
}
*{box-sizing:border-box}
html,body{background:var(--bg)}
body{margin:0;min-height:100vh;color:var(--text);
  font:400 14px/1.6 'Inter',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;display:flex;letter-spacing:-.01em;}
a{color:var(--link);text-decoration:none}a:hover{color:var(--text)}
::selection{background:var(--accent-soft)}
h1,h2,h3{letter-spacing:-.02em;margin:0}
.mono,code,.code{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace}
aside{width:var(--sb-w);flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);
  display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;z-index:40;overflow-y:auto;}
#sb{align-items:center;padding:12px 0 14px;overflow:visible;background:var(--bg);border-right:1px solid var(--border-subtle);z-index:50}
.rail-logo{width:36px;height:36px;display:grid;place-items:center;border-radius:10px}
.rail-logo img{width:100%;height:100%;object-fit:contain}
.rail-spacer{flex:1}
.rail-btn{width:60px;height:54px;margin-top:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  border-radius:12px;color:var(--text-muted);font-size:10.5px;font-weight:500;line-height:1.2;transition:background .13s,color .13s}
.rail-btn:hover{background:var(--surface-3);color:var(--text)}
.rail-btn.active{background:var(--surface-3);color:var(--accent)}
.rail-btn svg{width:20px;height:20px}
#nav-studio-assets{margin-top:80px}   
.rail-btn span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail-avatar{all:unset;box-sizing:border-box;cursor:pointer;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface-2);color:var(--text-muted);overflow:hidden;
  border:2px solid var(--accent);transition:box-shadow .13s}
.rail-avatar svg{width:18px;height:18px}
.rail-avatar img,.um-av img{width:100%;height:100%;object-fit:cover;display:block}
.rail-avatar:hover,.rail-avatar[aria-expanded="true"]{box-shadow:var(--ring)}
.umenu{position:fixed;left:calc(var(--sb-w) + 8px);bottom:10px;width:312px;max-height:calc(100vh - 20px);overflow-y:auto;z-index:70;
  background:var(--surface);border:1px solid var(--border-2);border-radius:18px;padding:10px;box-shadow:var(--shadow-lg);
  opacity:0;pointer-events:none;transform:translateY(6px);transition:opacity .14s,transform .14s}
.umenu.open{opacity:1;pointer-events:auto;transform:none}
.um-card{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:13px;background:var(--surface-2);color:var(--text);margin-bottom:8px}
.um-card .um-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:var(--surface-3);
  color:var(--text-muted);overflow:hidden}
.um-card .um-av svg{width:18px;height:18px}
.um-card .um-name{font-weight:600;font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.um-card .um-sub{font-size:12px;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.um-card .um-txt{min-width:0;flex:1}
.um-credits{display:block;padding:12px;border-radius:13px;background:var(--surface-2);margin-bottom:6px;color:var(--text)}
.um-credits:hover{color:var(--text)}
.um-credits .um-row{display:flex;align-items:center;gap:10px}
.um-credits .um-row+.um-row{margin-top:10px}
.um-credits .um-k{font-size:14px;font-weight:600;flex:1}
.um-credits .um-v{font-size:13px;color:var(--text-muted)}
.um-credits .um-get{background:var(--accent);color:var(--accent-fg);font-weight:700;font-size:13px;padding:5px 16px;border-radius:9999px}
.um-item{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:10px;
  font-size:14px;font-weight:500;color:var(--text);transition:background .13s}
.um-item:hover{background:var(--surface-2);color:var(--text)}
.um-item svg{width:18px;height:18px;flex-shrink:0;color:var(--text-muted)}
.um-sep{height:1px;background:var(--border);margin:6px 4px}
.um-item.um-danger:hover{color:var(--danger)}
.um-ov{position:fixed;inset:0;z-index:65;display:none}
.um-ov.open{display:block}
#setNav,#devNav{position:fixed;top:0;bottom:0;left:var(--sb-w);width:var(--set-w);display:flex;flex-direction:column;overflow-y:auto;
  padding:16px 8px 24px;background:var(--bg);border-right:1px solid var(--border);z-index:35}
.set-back{display:grid;place-items:center;width:30px;height:30px;margin-right:10px;flex-shrink:0;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);
  color:var(--text-muted);transition:background .13s,color .13s}
.set-back:hover{background:var(--surface-3);color:var(--text)}
.set-back svg{width:15px;height:15px;transform:rotate(180deg)}
.set-title{display:flex;align-items:center;font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--text);padding:2px 10px 8px}
.sb-nav{padding:0;flex:1}
.sb-group{margin-top:12px;}
.sb-group-label{font-size:12.5px;font-weight:500;color:var(--text-faint);padding:6px 10px 5px;}
.nav-item{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:var(--radius-sm);cursor:pointer;
  font:inherit;font-size:13.5px;font-weight:500;line-height:1.6;letter-spacing:inherit;color:var(--text-muted);border:none;background:none;width:100%;text-align:left;
  text-decoration:none;-webkit-appearance:none;appearance:none;transition:background .13s,color .13s;margin-bottom:1px;}
.nav-item:hover{background:var(--surface-2);color:var(--text);}
.nav-item.active{background:var(--surface-3);color:var(--text);font-weight:600;}
.nav-item svg{flex-shrink:0;opacity:.75;width:16px;height:16px}
.nav-item.active svg{opacity:1}
html[data-shell="creator"] #setNav,html[data-shell="creator"] #devNav,html[data-shell="developer"] #setNav,html[data-shell="settings"] #devNav{display:none}
html[data-shell="settings"],html[data-shell="developer"]{--sb-w:0px}
html[data-shell="settings"] #sb,html[data-shell="developer"] #sb{display:none}
.set-logo{display:grid;place-items:center;width:30px;height:30px;margin-right:10px;flex-shrink:0}
.set-logo img{width:100%;height:100%;object-fit:contain}
.set-avatar{margin-top:12px;flex-shrink:0;align-self:flex-start;margin-left:6px}
html[data-shell="settings"] .umenu,html[data-shell="developer"] .umenu{left:8px;bottom:62px;max-height:calc(100vh - 74px)}
html[data-shell="settings"] main,html[data-shell="developer"] main{margin-left:calc(var(--sb-w) + var(--set-w))}
html[data-shell="settings"] .topbar{display:none}
html[data-shell="developer"] .vn-c,html[data-shell="developer"] .vn-brand{display:none}   
.page-head{display:none;padding:26px 30px 0;max-width:1180px;width:100%;margin:0 auto}
html[data-shell="settings"] .page-head,html[data-shell="developer"] .page-head{display:flex;align-items:flex-start;gap:12px}
.page-head h1{font-size:24px;font-weight:600;letter-spacing:-.025em;line-height:1.25}
.page-head p{margin:3px 0 0;font-size:13.5px;color:var(--text-muted)}
html[data-shell="settings"] .content,html[data-shell="developer"] .content{padding-top:18px}
html[data-shell="settings"] .content,html[data-shell="developer"] .content{margin-left:auto;margin-right:auto}   
html[data-shell="settings"] .page-head,html[data-shell="developer"] .page-head{margin-left:auto;margin-right:auto}
main:has(.content.wide) .page-head{max-width:none}   
.ref-poster{display:block;width:100%;max-width:260px;margin:6px auto 0;border-radius:16px;box-shadow:var(--shadow-lg)}
.ref-code-row{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:14px;font-size:12.5px;color:var(--text-muted)}
.ref-code-row code{font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:700;color:var(--text);letter-spacing:.12em}
.ref-actions{display:flex;gap:10px;align-items:center;margin-top:16px;width:100%}
.ref-actions .btn{flex:1;justify-content:center}
.ref-actions .icon-btn{border:1px solid var(--border-2);flex-shrink:0}
.ref-toast{margin-top:10px;font-size:12.5px;color:var(--success);opacity:0;transition:opacity .2s;min-height:16px}
main{margin-left:var(--sb-w);flex:1;min-width:0;display:flex;flex-direction:column;min-height:100vh;}
.topbar{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:saturate(140%) blur(12px);border-bottom:1px solid var(--border);
  padding:0 20px;height:60px;display:flex;align-items:center;gap:12px;}
.topbar-title,.topbar-sub{display:none}  
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}
.vn-brand{display:flex;align-items:center;font-size:19px;font-weight:700;letter-spacing:-.03em;color:var(--text);flex-shrink:0;margin-right:4px}
.vn-brand:hover{color:var(--text)}
.vnav{display:flex;align-items:center;gap:2px;min-width:0;overflow-x:auto;scrollbar-width:none}
.vnav::-webkit-scrollbar{display:none}
.vn-item{all:unset;box-sizing:border-box;cursor:pointer;flex-shrink:0;white-space:nowrap;padding:6px 11px;border-radius:9px;
  font-size:14px;font-weight:500;color:var(--text-muted);transition:color .13s,background .13s}
.vn-item:hover{color:var(--text);background:var(--surface-2)}
.vn-item.active,.vn-item.open{color:var(--accent)}
.vn-item.km-open{color:var(--text);background:var(--surface-2)}
.vn-assets{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:10px;background:var(--surface-2);
  border:1px solid var(--border);font-size:13.5px;font-weight:500;color:var(--text)}
.vn-assets:hover{background:var(--surface-3);color:var(--text)}
.vn-assets.active{border-color:var(--accent);color:var(--accent)}
.vn-assets svg{width:15px;height:15px}
.mode-switch{display:flex;align-items:center;gap:2px;background:var(--surface-2);
  border:1px solid var(--border);border-radius:9999px;padding:3px;}
.mode-switch button{display:flex;align-items:center;gap:6px;border:none;background:transparent;
  color:var(--text-muted);font-size:13px;font-weight:600;padding:7px 14px;border-radius:9999px;
  cursor:pointer;transition:background .13s,color .13s;white-space:nowrap;}
.mode-switch button svg{width:15px;height:15px}
.mode-switch button:hover{color:var(--text)}
html[data-mode="creator"] .mode-switch button[data-mode="creator"],
html[data-mode="developer"] .mode-switch button[data-mode="developer"]{
  background:var(--accent);color:var(--accent-fg);box-shadow:0 4px 12px -4px var(--accent);}
html[data-mode="developer"] [data-modegroup="creator"]{display:none}
html[data-mode="creator"] [data-modegroup="developer"]{display:none}
.top-link{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:var(--radius-sm);
  color:var(--text-muted);font-size:13px;font-weight:500;transition:background .13s,color .13s}
.top-link:hover{background:var(--surface-2);color:var(--text)}
.icon-btn{display:grid;place-items:center;width:34px;height:34px;border-radius:var(--radius-sm);cursor:pointer;
  border:1px solid var(--border);background:var(--surface);color:var(--text-muted);transition:.13s;}
.icon-btn:hover{color:var(--text);border-color:var(--border-2);background:var(--surface-2)}
.icon-btn svg{width:16px;height:16px}
html[data-theme="dark"] .sun{display:none} html[data-theme="light"] .moon{display:none}
.content{padding:26px 30px 72px;max-width:1180px;width:100%;margin:0 auto;flex:1;}
.content.wide{max-width:none}
.tabs{display:flex;gap:2px;align-items:center;border-bottom:1px solid var(--border);
  margin:-6px 0 24px;overflow-x:auto;scrollbar-width:none;}
.tabs::-webkit-scrollbar{display:none}
.tab{padding:11px 14px;font-size:13.5px;font-weight:500;color:var(--text-muted);border-bottom:2px solid transparent;
  margin-bottom:-1px;white-space:nowrap;transition:color .13s;cursor:pointer;}
.tab:hover{color:var(--text)}
.tab.active{color:var(--text);border-bottom-color:var(--accent);font-weight:600;}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:22px;margin-bottom:18px;box-shadow:var(--shadow);}
.card.tight{padding:0;overflow:hidden}
.card-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.card-title{font-size:15px;font-weight:600;color:var(--text);letter-spacing:-.02em}
.card-sub{font-size:13px;color:var(--text-muted);margin-top:3px;line-height:1.55}
.section-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);margin:0 0 12px}
.grid{display:grid;gap:16px}
.cols-2{grid-template-columns:repeat(2,1fr)} .cols-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:820px){.cols-2,.cols-3{grid-template-columns:1fr}}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(186px,1fr));gap:14px;margin-bottom:20px}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 18px;box-shadow:var(--shadow)}
.stat .label{color:var(--text-faint);font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;font-weight:600;display:flex;align-items:center;gap:6px}
.stat .val{font-size:27px;font-weight:600;color:var(--text);margin-top:7px;letter-spacing:-.03em;line-height:1.05}
.stat .val.ok{color:var(--success)}.stat .val.err{color:var(--danger)}
.stat .sub{color:var(--text-muted);font-size:12.5px;margin-top:4px}
.stats.compact{display:flex;flex-wrap:wrap;gap:28px;margin-bottom:16px}
.stats.compact .stat{background:none;border:none;box-shadow:none;padding:0;border-radius:0}
.stats.compact .stat .label{font-size:10.5px}
.stats.compact .stat .val{font-size:19px;margin-top:3px}
.stats.compact .stat .sub{font-size:11.5px;margin-top:2px}
.good{color:var(--success)!important}.warn{color:var(--warning)!important}.bad{color:var(--danger)!important}
.spend-total{font-size:28px;font-weight:600;color:var(--text);letter-spacing:-.03em}
.spend-avg{color:var(--accent);font-size:13px;font-weight:600;margin-top:2px;margin-bottom:16px}
.spend-chart{position:relative;display:flex;align-items:flex-end;gap:6px;height:200px}
.spend-bar-wrap{flex:1;position:relative;display:flex;align-items:flex-end;height:100%}
.spend-bar{width:100%;background:var(--accent);border-radius:3px 3px 0 0;min-height:2px}
.spend-tip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:var(--surface-2);color:var(--text);font-size:11.5px;font-weight:600;padding:4px 8px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .1s;box-shadow:var(--shadow);border:1px solid var(--border);z-index:5}
.spend-bar-wrap:hover .spend-tip{opacity:1}
.spend-avgline{position:absolute;left:0;right:0;border-top:1px dashed var(--accent)}
.spend-labels{display:flex;justify-content:space-between;color:var(--text-muted);font-size:12px;margin-top:6px}
.linechart{position:relative;width:100%}
.linechart svg{display:block;width:100%;height:auto;overflow:visible}
.linechart .lc-grid{stroke:var(--border);stroke-width:1}
.linechart .lc-ytick{fill:var(--text-muted);font-size:10.5px;font-family:inherit}
.linechart .lc-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.linechart .lc-crosshair{stroke:var(--text-faint);stroke-width:1;opacity:0;pointer-events:none}
.linechart .lc-dot{fill:var(--surface);stroke-width:2;opacity:0;pointer-events:none}
.linechart .lc-hit{fill:transparent}
.linechart .bc-bar{shape-rendering:crispEdges}
.linechart .bc-hover{fill:var(--surface-2)}
.lc-tooltip{position:absolute;pointer-events:none;background:var(--surface-2);color:var(--text);
  font-size:11.5px;padding:8px 10px;border-radius:8px;white-space:nowrap;opacity:0;
  transition:opacity .08s;box-shadow:var(--shadow);border:1px solid var(--border);z-index:6;
  transform:translateY(-50%);line-height:1.6}
.lc-tooltip .lc-day{color:var(--text-muted);font-weight:600;margin-bottom:3px}
.lc-tooltip .lc-row{display:flex;align-items:center;gap:6px}
.lc-tooltip .lc-key{width:8px;height:2px;border-radius:1px;flex:none}
.lc-tooltip .lc-val{font-weight:700;margin-left:auto;padding-left:10px}
.lc-xaxis{display:flex;justify-content:space-between;color:var(--text-muted);font-size:11.5px;margin-top:6px}
.chart-legend{display:flex;flex-wrap:wrap;gap:8px 18px}
.chart-legend .item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted)}
.chart-legend .sw{width:10px;height:10px;border-radius:2px;flex:none}
.tbl-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow)}
table{width:100%;border-collapse:collapse}
thead th{background:var(--surface-2);text-align:left;padding:11px 16px;font-size:11px;font-weight:600;
  text-transform:uppercase;letter-spacing:.05em;color:var(--text-faint);border-bottom:1px solid var(--border);white-space:nowrap;}
tbody td{padding:13px 16px;font-size:13px;color:var(--text);border-bottom:1px solid var(--border-subtle);vertical-align:middle}
.tbl-compact tbody td{padding:8px 16px}
tbody tr:last-child td{border-bottom:none}
tbody tr.click{cursor:pointer}tbody tr.click:hover{background:var(--surface-2)}
td.muted,.muted{color:var(--text-muted)}
.tbl-empty{padding:44px 16px;text-align:center;color:var(--text-faint);font-size:13.5px}
.card table{margin-top:2px}
.card thead th{background:transparent;padding:8px 8px;border-bottom:1px solid var(--border)}
.card tbody td{padding:11px 8px}
.src-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px 10px;padding:4px 18px 16px}
.src-grid .src{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 10px;border-radius:8px;background:var(--surface-3);font-size:12px;min-width:0}
.src-grid .src .n{font-weight:600;color:var(--text);flex:none}
.src-grid .src .l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted)}
code{background:var(--code-bg);border:1px solid var(--code-border);border-radius:6px;padding:2.5px 7px;font-size:12px;color:var(--text)}
.copyable{cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.copyable svg{width:13px;height:13px;color:var(--text-faint);transition:color .13s}
.copyable:hover svg{color:var(--text)}
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:9999px;font-size:11.5px;font-weight:600;line-height:1.4;white-space:nowrap}
.pill.ok,.pill.success{background:var(--success-soft);color:var(--success)}
.pill.err,.pill.bad{background:var(--danger-soft);color:var(--danger)}
.pill.fb,.pill.warn{background:var(--warning-soft);color:var(--warning)}
.pill.neutral{background:var(--surface-3);color:var(--text-muted)}
.pill .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
label.field{display:block;font-size:12px;font-weight:600;color:var(--text-muted);margin-bottom:6px}
input,select,textarea{background:var(--surface-2);color:var(--text);border:1px solid var(--border-2);
  border-radius:var(--radius-sm);padding:9px 12px;font:inherit;font-size:13.5px;transition:border-color .15s,box-shadow .15s;}
input::placeholder,textarea::placeholder{color:var(--text-faint)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);background-color:var(--surface)}
select{cursor:pointer;-webkit-appearance:none;appearance:none;padding-right:30px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;background-size:12px}
select:hover{border-color:var(--text-faint)}
select[multiple],select[size]:not([size="1"]){background-image:none;padding-right:12px}
textarea{resize:vertical;line-height:1.55}
input[type=checkbox],input[type=radio]{width:auto;padding:0;accent-color:var(--accent)}
.btn{cursor:pointer;border:1px solid var(--border-2);background:var(--surface-2);color:var(--text);
  padding:9px 15px;border-radius:var(--radius-sm);font:inherit;font-weight:600;font-size:13.5px;
  display:inline-flex;align-items:center;gap:7px;transition:.14s;white-space:nowrap}
.btn:hover{border-color:var(--text-faint);background:var(--surface-3)}
.btn svg{width:15px;height:15px}
.btn-primary{background:var(--contrast-bg);color:var(--contrast-fg);border-color:transparent;}
.btn-primary:hover{background:var(--contrast-hover);border-color:transparent}
.btn-accent{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;border-color:transparent;
  box-shadow:0 6px 18px -6px color-mix(in srgb,var(--accent) 60%,transparent)}
.btn-accent:hover{background:linear-gradient(135deg,var(--accent),var(--accent-2));filter:brightness(1.06);border-color:transparent}
.btn-ghost{background:transparent;border-color:var(--border)}
.btn-danger{color:var(--danger);border-color:var(--danger-soft);background:var(--danger-soft)}
.btn-danger:hover{border-color:var(--danger);background:var(--danger-soft)}
.btn-sm{padding:6px 11px;font-size:12.5px}
.btn:disabled{opacity:.6;cursor:default}
.reveal{background:var(--success-soft);border:1px solid var(--success);color:var(--text);border-radius:var(--radius);
  padding:15px 16px;margin-top:16px;font-size:13px}
.reveal .k{font-weight:600;color:var(--success);margin-bottom:8px;display:flex;align-items:center;gap:7px}
.reveal code{background:var(--surface);border-color:var(--border-2);word-break:break-all;display:block;padding:10px 12px;margin:6px 0}
.infobar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-bottom:20px;padding:13px 18px;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);font-size:13px;color:var(--text-muted);box-shadow:var(--shadow)}
.infobar b{color:var(--text);font-weight:600}
.infobar .sep{color:var(--border-2)}
.empty{text-align:center;padding:52px 20px;color:var(--text-muted)}
.empty .ico{width:46px;height:46px;border-radius:13px;background:var(--surface-2);border:1px solid var(--border);
  display:grid;place-items:center;margin:0 auto 14px;color:var(--text-faint)}
.empty h3{font-size:15px;color:var(--text);font-weight:600;margin-bottom:6px}
.empty p{font-size:13.5px;max-width:400px;margin:0 auto 16px;line-height:1.6}
.balance-card{position:relative;overflow:hidden;background:
  radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--accent) 20%,transparent),transparent 55%),var(--surface)}
.balance-amt{font-size:42px;font-weight:700;letter-spacing:-.04em;line-height:1;margin:4px 0 14px}
.balance-split{display:flex;gap:22px;flex-wrap:wrap;font-size:13px;color:var(--text-muted);margin-bottom:18px}
.balance-split b{color:var(--text);font-weight:600}
.balance-split .div{width:1px;background:var(--border-2)}
.kv{display:flex;gap:26px;flex-wrap:wrap;margin-bottom:18px}
.kv .k{font-size:12px;color:var(--text-faint);text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.kv .v{font-size:16px;color:var(--text);font-weight:600;margin-top:3px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:900px){.tiles{grid-template-columns:1fr}}
.tile{display:flex;align-items:flex-start;gap:13px;padding:16px 17px;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface);transition:.15s;box-shadow:var(--shadow)}
.tile:hover{border-color:var(--border-2);background:var(--surface-2);transform:translateY(-1px)}
.tile .t-ico{width:38px;height:38px;border-radius:11px;background:var(--surface-2);border:1px solid var(--border);
  display:grid;place-items:center;flex-shrink:0;color:var(--accent)}
.tile .t-ico svg{width:18px;height:18px}
.tile h4{font-size:14px;font-weight:600;color:var(--text);margin:1px 0 2px}
.tile p{font-size:12.5px;color:var(--text-muted);margin:0;line-height:1.45}
.barrow{display:flex;align-items:center;gap:10px;margin:5px 0}
.barrow .d{width:74px;color:var(--text-muted);font-size:12px;flex-shrink:0}
.barrow .track{flex:1;background:var(--surface-2);border-radius:6px;height:18px;position:relative;overflow:hidden}
.barrow .base{position:absolute;left:0;top:0;bottom:0;background:var(--surface-3)}
.barrow .fill{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,var(--accent-2),var(--accent))}
.barrow .v{width:92px;text-align:right;color:var(--text);font-size:12px;flex-shrink:0}
.code-block{position:relative;background:var(--code-bg);border:1px solid var(--code-border);border-radius:var(--radius-sm);padding:14px 15px;overflow-x:auto}
.code-block pre{margin:0;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12.5px;line-height:1.75;color:var(--text);white-space:pre}
.code-block .tok-flag{color:var(--accent)} .code-block .tok-str{color:var(--success)}
.copy-btn{position:absolute;top:9px;right:9px;padding:4px 10px;font-size:11.5px;font-weight:600;border-radius:6px;
  border:1px solid var(--border-2);background:var(--surface);color:var(--text-muted);cursor:pointer;transition:.13s}
.copy-btn:hover{color:var(--text);border-color:var(--text-faint)}
.icon-act{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:7px;cursor:pointer;
  border:1px solid transparent;background:none;color:var(--text-faint);transition:.13s}
.icon-act:hover{color:var(--text);background:var(--surface-2);border-color:var(--border)}
.icon-act.danger:hover{color:var(--danger)}
.icon-act svg{width:15px;height:15px}
.rowmenu{position:relative;display:inline-block}
.rowmenu .dd{position:absolute;right:0;top:36px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);min-width:152px;z-index:40;display:none;overflow:hidden;padding:5px}
.rowmenu .dd.open{display:block}
.rowmenu .dd button{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border:none;background:none;
  font-size:13px;color:var(--text);border-radius:6px;cursor:pointer;text-align:left}
.rowmenu .dd button:hover{background:var(--surface-2)}
.rowmenu .dd button.danger{color:var(--danger)}
.rowmenu .dd button svg{width:14px;height:14px;flex-shrink:0;color:var(--text-faint)}
.usage-cell{display:flex;flex-direction:column;gap:4px;min-width:84px}
.usage-cell .amt{font-weight:600;color:var(--text)}
.usage-cell .mini-track{width:84px;height:5px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.usage-cell .mini-fill{height:100%;background:linear-gradient(90deg,var(--accent-2),var(--accent))}
.usage-cell .cap-label{font-size:11px;color:var(--text-faint)}
.detail{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:14px;margin:6px 0;
  white-space:pre-wrap;font:12px/1.55 'JetBrains Mono',ui-monospace,monospace;color:var(--text-muted);overflow-x:auto}
.pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;font-size:13px;color:var(--text-muted)}
.avatar{width:20px;height:20px;border-radius:5px;display:inline-grid;place-items:center;font-size:10px;font-weight:700;color:#fff;flex-shrink:0}
.cellico{display:inline-flex;align-items:center;gap:8px;min-width:0}
.cellico code{background:none;border:none;padding:0;font-size:12.5px}
tbody tr.sel{background:var(--accent-soft)}
.activity{display:flex;align-items:flex-end;gap:3px;height:44px}
.activity .abar{flex:1;min-width:2px;background:linear-gradient(180deg,var(--accent),var(--accent-2));border-radius:2px 2px 0 0;opacity:.8;transition:opacity .12s}
.activity .abar:hover{opacity:1}
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .2s;z-index:55}
.drawer-overlay.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;left:auto;bottom:0;width:508px;max-width:94vw;background:var(--surface);border-left:1px solid var(--border);
  box-shadow:var(--shadow-lg);transform:translateX(100%);transition:transform .22s ease;z-index:60;display:flex;flex-direction:column}
.drawer.open{transform:none}
.drawer-head{position:sticky;top:0;background:var(--surface);border-bottom:1px solid var(--border);padding:15px 20px;display:flex;align-items:center;gap:10px;z-index:1}
.drawer-body{padding:18px 20px 44px;overflow-y:auto;flex:1}
.drawer-body .section-title{margin:22px 0 8px}
.drawer-body .stats{grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:4px}
.drawer-body .stat{padding:12px 13px}.drawer-body .stat .val{font-size:18px;margin-top:4px}.drawer-body .stat .label{font-size:10.5px}
.chipset{display:flex;gap:7px;flex-wrap:wrap;align-items:center;flex:1;min-width:0}
#balChip.low{color:var(--danger);border-color:var(--danger)}
.bal-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 20px;font-size:13px;line-height:1.5;
  color:var(--text);background:rgba(245,158,11,.12);border-bottom:1px solid rgba(245,158,11,.35)}
.bal-banner.empty{background:rgba(220,38,38,.10);border-bottom-color:rgba(220,38,38,.35)}
.bal-banner span{flex:1;min-width:220px}
.bal-banner .bal-x{all:unset;cursor:pointer;font-size:18px;line-height:1;padding:0 4px;color:var(--text-muted)}
.mchip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:9999px;background:var(--surface-2);border:1px solid var(--border);font-size:12px;font-weight:600;color:var(--text)}
.kvlist{margin:0}
.kv-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;font-size:13px;border-bottom:1px solid var(--border-subtle)}
.kv-row:last-child{border-bottom:none}
.kv-row .k{color:var(--text-muted);white-space:nowrap}
.kv-row .v{color:var(--text);text-align:right;word-break:break-all}
.kv-row .v code{font-size:12px}
.fb-chain{border:1px solid var(--border-subtle);border-radius:8px;overflow:hidden}
.fb-attempt{padding:10px 12px;border-bottom:1px solid var(--border-subtle)}
.fb-attempt:last-child{border-bottom:none}
.fb-attempt.click{cursor:pointer}
.fb-attempt.click:hover{background:var(--surface-2)}
.fb-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px}
.fb-time{color:var(--text-muted);min-width:110px}
.fb-err{margin-top:5px;font-size:12px;color:var(--text-muted);word-break:break-word}
.fb-settings-list{list-style:none;margin:6px 0 0;padding:0;background:var(--surface-2);
  border:1px solid var(--border);border-radius:10px;font-size:13px;line-height:1.6;color:var(--text-muted)}
.fb-settings-list li{padding:8px 14px;border-bottom:1px solid var(--border-subtle)}
.fb-settings-list li:last-child{border-bottom:none}
.wf{display:flex;flex-direction:column;gap:9px;margin-top:6px}
.wf-row{display:grid;grid-template-columns:96px 1fr 52px;align-items:center;gap:10px;font-size:12px}
.wf-row .lbl{color:var(--text-muted);display:flex;align-items:center;gap:6px;min-width:0}
.wf-track{height:16px;background:var(--surface-2);border-radius:4px;overflow:hidden}
.wf-fill{height:100%;border-radius:4px;min-width:3px;display:flex;align-items:center;padding:0 7px;font-size:10px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden}
.wf-row .ms{text-align:right;color:var(--text-muted)}
.drawer-body details{border-top:1px solid var(--border-subtle);padding:12px 0 0}
.drawer-body summary,.modal-body summary{cursor:pointer;font-weight:600;font-size:13px;color:var(--text);list-style:none;display:flex;align-items:center;gap:8px}
.drawer-body summary::-webkit-details-marker,.modal-body summary::-webkit-details-marker{display:none}
.drawer-body summary::before,.modal-body summary::before{content:'›';color:var(--text-faint);font-size:16px;transition:transform .15s}
.drawer-body details[open] summary::before,.modal-body details[open] summary::before{transform:rotate(90deg)}
.prompt-open{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);
  cursor:pointer;font-size:13px;font-weight:600;color:var(--text);transition:.13s;margin-top:6px}
.prompt-open:hover{border-color:var(--accent);background:var(--surface-2)}
.prompt-open .tok{margin-left:auto;color:var(--text-muted);font-weight:500;font-size:12.5px}
.prompt-open svg{width:15px;height:15px;color:var(--text-faint)}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:80;opacity:0;pointer-events:none;transition:opacity .18s;display:flex}
.modal-overlay.open{opacity:1;pointer-events:auto}
.modal-overlay.center{align-items:center;justify-content:center}
.modal{margin:22px;flex:1;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);
  display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);max-height:calc(100vh - 44px)}
.modal.modal-sm{flex:none;width:440px;max-width:calc(100vw - 44px);margin:0}
.modal.modal-sm .modal-body{flex-direction:column;padding:18px 20px 20px}
.warn-note{background:var(--warning-soft);border:1px solid var(--warning);color:var(--warning);
  border-radius:var(--radius-sm);padding:10px 12px;font-size:13px;font-weight:600;margin-bottom:12px}
.key-box{background:var(--surface);border-color:var(--border-2);word-break:break-all;display:block;padding:10px 12px}
.modal-head{padding:13px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;flex-shrink:0}
.modal-head h3{font-size:15px;font-weight:600;display:flex;align-items:center;gap:9px}
.modal-head .sub{color:var(--text-muted);font-weight:400;font-size:13px}
.modal-top{padding:14px 20px;border-bottom:1px solid var(--border);display:grid;grid-template-columns:1fr 300px;gap:24px;flex-shrink:0}
.tpm{display:flex;align-items:flex-end;gap:2px;height:54px;margin-top:8px}
.tpm .b{flex:1;min-width:2px;border-radius:2px 2px 0 0;opacity:.9;min-height:2px}
.roletable{font-size:12.5px}
.roletable .rt-row{display:grid;grid-template-columns:1fr auto auto;gap:14px;padding:3px 0}
.roletable .rt-row .pct{color:var(--text-muted);text-align:right} .roletable .rt-row .cnt{color:var(--text-faint);text-align:right;min-width:28px}
.role-badge{font-size:11px;font-weight:600;padding:2px 8px;border-radius:5px;text-transform:capitalize}
.modal-body{flex:1;display:flex;min-height:0}
.msg-list{width:42%;border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}
.msg-list .lhead{padding:11px 14px;border-bottom:1px solid var(--border);display:flex;gap:8px;flex-shrink:0}
.msg-list .lhead input{flex:1}
.msg-rows{overflow-y:auto;flex:1}
.msg-row{display:grid;grid-template-columns:30px 74px 1fr;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border-subtle);
  cursor:pointer;font-size:12.5px;align-items:center}
.msg-row:hover{background:var(--surface-2)}
.msg-row.sel{background:var(--accent-soft)}
.msg-row .num{color:var(--text-faint)}
.msg-row .prev{color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.msg-view{flex:1;display:flex;flex-direction:column;min-height:0}
.msg-view .vhead{padding:11px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;flex-shrink:0}
.msg-view .vbody{overflow:auto;flex:1;padding:16px;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12.5px;
  line-height:1.7;white-space:pre-wrap;word-break:break-word;color:var(--text)}
@media(max-width:720px){.modal-top{grid-template-columns:1fr}.msg-list{width:100%}.modal-body{flex-direction:column}}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}
@media(max-width:760px){
  :root{--sb-w:46px}
  #sb{padding:8px 0 10px} .rail-logo{width:30px;height:30px}
  .rail-btn{width:36px;height:36px} .rail-btn span{display:none}   
  #nav-studio-assets{margin-top:14px}
  #setNav,#devNav{transform:translateX(calc(-100% - var(--sb-w)));transition:transform .2s;box-shadow:var(--shadow-lg)} #setNav.open,#devNav.open{transform:none}
  html[data-shell="settings"] main,html[data-shell="developer"] main{margin-left:0}
  .topbar{padding:0 10px;gap:6px} .vn-brand{display:none} .vn-assets span{display:none} .content{padding:20px 16px 60px}
  .page-head{padding:20px 16px 0} html[data-shell="settings"] .menu-btn,html[data-shell="developer"] .menu-btn{display:grid!important}
  .umenu{width:min(312px,calc(100vw - var(--sb-w) - 16px))}
}
.menu-btn{display:none}
.vsm-ov{position:fixed;inset:0;z-index:55;display:none}
.vsm-ov.open{display:block}
.vsm-panel{position:fixed;left:calc(var(--sb-w) + 10px);top:60px;z-index:56;width:min(680px,calc(100vw - var(--sb-w) - 30px));
  background:var(--surface);border:1px solid var(--border-2);border-radius:20px;padding:16px 18px 14px;box-shadow:var(--shadow-lg)}
.vsm-head{display:flex;align-items:center;gap:9px;margin:0 0 12px}
.vsm-head svg{width:18px;height:18px;color:var(--accent);fill:var(--accent);stroke:none}
.vsm-head h3{margin:0;font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--text)}
.vsm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 12px}
.vsm-card{display:block;text-decoration:none;color:var(--text);text-align:center}
.vsm-tile{position:relative;display:block;container-type:inline-size;aspect-ratio:16/9.4;border-radius:13px;overflow:hidden;border:1px solid var(--border-2);
  background:radial-gradient(120% 90% at 50% 0%,hsl(var(--h),30%,17%),#0c0c10 75%);transition:border-color .15s,transform .15s,box-shadow .15s}
.vsm-card:hover .vsm-tile{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 10px 24px -12px var(--accent)}
.vsm-card.active .vsm-tile{border-color:var(--accent);box-shadow:var(--ring)}
.vsm-name{display:block;margin-top:6px;font-size:12.5px;font-weight:600;letter-spacing:-.005em}
.vsm-c{position:absolute;border-radius:7px;border:1px solid rgba(255,255,255,.28);overflow:hidden;background:#1a1a22 var(--img) center/cover no-repeat;
  box-shadow:0 6px 14px -4px rgba(0,0,0,.65)}
.vsm-pill{position:absolute;z-index:1;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;white-space:nowrap;padding:3px 3px 3px 9px;border-radius:99px;
  background:rgba(18,18,24,.88);border:1px solid rgba(255,255,255,.16);color:#f4f4f5;font-size:9.5px;font-weight:600;box-shadow:0 4px 12px rgba(0,0,0,.45)}
.vsm-pill i{width:15px;height:15px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-style:normal;font-size:9px}
.vsm-word{position:absolute;font-weight:800;letter-spacing:-.02em;line-height:.9;text-transform:uppercase;
  background:linear-gradient(180deg,#fff,hsl(var(--h),70%,78%));-webkit-background-clip:text;background-clip:text;color:transparent}
.vsm-cap{position:absolute;left:0;right:0;bottom:0;padding:10px 1px 4px;text-align:center;font-size:min(8px,4.4cqw);font-weight:700;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.72))}
@container (max-width:200px){.vsm-pill{width:max-content;max-width:calc(100% - 8px);white-space:normal;text-align:center;line-height:1.25;border-radius:11px}.vsm-pill b,.vsm-pill i{flex:none}}
@media(max-width:760px){.vsm-panel{left:12px;right:auto;width:calc(100vw - 24px);box-sizing:border-box;top:56px;max-height:calc(100vh - 24px);overflow-y:auto}.vsm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.km-panel{position:fixed;top:60px;left:calc(var(--sb-w) + 12px);width:min(var(--w,calc(var(--n,4) * 150px + (var(--n,4) - 1) * 10px + 28px)),calc(100vw - var(--sb-w) - 24px));z-index:56;display:none;padding:14px 14px 10px;
  background:var(--surface);border:1px solid var(--border-2);border-radius:22px;box-shadow:var(--shadow-lg)}
.km-cards{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:10px}
.km-card{display:block;text-decoration:none;color:var(--text);text-align:center}
.km-art{position:relative;display:block;aspect-ratio:16/10;border-radius:18px;overflow:hidden;border:1px solid var(--border-2);
  background:radial-gradient(110% 90% at 50% 0%,#202026,#0e0e11 80%);transition:border-color .15s,transform .15s,box-shadow .15s}
.km-card:hover .km-art{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 12px 28px -14px var(--accent)}
.ka{position:absolute;display:block}
.ka-p{border-radius:7px;border:1.5px solid rgba(255,255,255,.26);background:#1a1a22 var(--img) center/cover no-repeat;box-shadow:0 5px 12px -4px rgba(0,0,0,.65)}
.ka-pill{border-radius:99px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18)}
.ka-dot{border-radius:50%;background:var(--accent)}
.ka-play{border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center}
.ka-play::after{content:"";margin-left:2px;border-style:solid;border-width:4px 0 4px 7px;border-color:transparent transparent transparent #111}
.ka-line{height:3px;border-radius:2px;background:rgba(255,255,255,.28)}
.ka-line.on{background:var(--accent)}
.ka-bar{background:rgba(255,255,255,.3);border-radius:2px;width:3px}
.ka-bar.on{background:var(--accent)}
.ka-chip{font-size:7.5px;font-weight:700;letter-spacing:.04em;color:rgba(255,255,255,.55);padding:1px 4px;border-radius:5px}
.ka-chip.on{color:var(--accent);border:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 16%,transparent)}
.ka-badge{font-size:8px;font-weight:800;color:#fff;background:var(--accent);padding:1px 5px;border-radius:5px}
.ka-sel{border:1.5px dashed var(--accent);border-radius:5px}
.ka-svg{color:rgba(255,255,255,.85)}
.ka-svg svg{width:100%;height:100%;display:block}
.km-name{display:block;margin-top:7px;font-size:13.5px;font-weight:600;letter-spacing:-.01em}
.km-sep{height:1px;background:var(--border);margin:12px 0 8px}
.km-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 24px}
.km-panel[data-kind="nsfw"] .km-name-long{font-size:13px}
.km-feat-label{font-size:13px;font-weight:500;color:var(--text-faint);margin:0 10px 6px}
.km-feat{display:flex;flex-direction:column}
.km-mico{width:24px;height:24px;border-radius:7px;flex-shrink:0;display:grid;place-items:center;background:var(--surface-3);
  color:var(--text-muted);font-size:12px;font-weight:700}
.km-msub{margin-left:auto;font-size:12px;font-weight:400;color:var(--text-faint)}
.km-item{display:flex;align-items:center;gap:12px;padding:8px 8px;border-radius:10px;text-decoration:none;
  font-size:14px;font-weight:500;color:var(--text);transition:background .13s}
.km-item:hover{background:var(--surface-2);color:var(--text)}
.km-item svg{width:19px;height:19px;flex-shrink:0;color:var(--text-muted);transition:color .13s}
.km-item:hover svg{color:var(--accent)}
@media(max-width:760px){.km-panel{display:none!important}}
.st-up-overlay{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:8px;background:rgba(0,0,0,.82);color:#fff;font-size:13px;font-weight:600;
  border-radius:inherit;pointer-events:all;cursor:progress}
.studio-dd-grp{padding:8px 10px 4px;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-faint)}
.studio-dd-sub{margin-left:auto;font-size:11px;color:var(--text-faint);white-space:nowrap}
.st-up-spin{width:26px;height:26px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;
  animation:studiospin .8s linear infinite}
.content{max-width:none;width:min(100%, calc(1180px + (100% - 1180px) / 2))}
.studio-hero-wrap{position:relative}
.studio-glow{position:absolute;top:-26px;left:-30px;right:-30px;height:420px;z-index:-1;pointer-events:none;
  background:radial-gradient(60% 100% at 50% 0%, var(--accent-soft), transparent 70%)}
.studio-hero{position:relative;text-align:center;padding:14px 20px 0}
.studio-hero h1{margin:0;font-size:32px;font-weight:800;letter-spacing:-.03em;line-height:1.15;
  background:linear-gradient(120deg,var(--text) 40%,var(--accent) 130%);-webkit-background-clip:text;
  background-clip:text;-webkit-text-fill-color:transparent}
.studio-kindnav{display:none!important;gap:26px;margin:6px 0 10px;border-bottom:1px solid var(--border)}  
.studio-kindnav button{border:none;background:none;font:inherit;font-weight:700;font-size:14px;
  color:var(--text-muted);padding:10px 2px;cursor:pointer;border-bottom:2px solid transparent;
  margin-bottom:-1px;transition:.13s}
.studio-kindnav button:hover{color:var(--text)}
.studio-kindnav button.active{color:var(--text);border-bottom-color:var(--accent)}
.studio-tabs{display:flex;justify-content:center;margin:14px 0}
.studio-seg{display:inline-flex;padding:4px;background:var(--surface-2);border:1px solid var(--border);
  border-radius:9999px;gap:2px;box-shadow:var(--shadow)}
.studio-seg button{border:none;background:none;padding:10px 22px;border-radius:9999px;font:inherit;
  font-weight:600;font-size:13.5px;color:var(--text-muted);cursor:pointer;transition:.14s}
.studio-seg button:hover{color:var(--text)}
.studio-seg button.active{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:var(--accent-fg);
  box-shadow:0 6px 16px -6px var(--accent)}
.studio-groups{display:flex;flex-wrap:wrap;gap:20px 14px;margin:22px 0 22px;align-items:flex-start}
.sg-group{position:relative;display:flex;border:1px solid var(--border-2);border-radius:14px;padding:7px 5px 5px;min-width:0}
.sg-label{position:absolute;top:-8px;left:13px;padding:0 6px;font-size:10.5px;font-weight:700;letter-spacing:.09em;line-height:15px;
  text-transform:uppercase;color:var(--text-faint);background:var(--bg);white-space:nowrap}
.sg-group.active{border-color:var(--accent)}
.sg-group.active .sg-label{color:var(--accent)}
.sg-tabs{display:flex;gap:2px}
.sg-tabs button{border:none;background:none;color:var(--text-muted);padding:5px 11px;border-radius:9999px;font:inherit;font-size:13px;
  font-weight:600;cursor:pointer;transition:.13s;white-space:nowrap}
.sg-tabs button:hover{color:var(--text);background:var(--surface-2)}
.sg-tabs button.active{color:var(--accent);background:var(--accent-soft)}
.studio-modes{display:flex;justify-content:flex-start;gap:8px;margin:12px 0 20px;flex-wrap:wrap}
.studio-modes button{border:1px solid var(--border-2);background:var(--surface);color:var(--text-muted);
  padding:6px 13px;border-radius:9999px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:.13s}
.studio-modes button:hover{border-color:var(--text-faint);color:var(--text)}
.studio-modes button.active{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.studio-card{max-width:1400px;margin:0 auto 30px;box-shadow:var(--shadow-lg);border-color:var(--border-2);
  transition:box-shadow .18s,border-color .18s}
.studio-card:focus-within{border-color:var(--accent);
  box-shadow:var(--shadow-lg),0 0 0 3px var(--accent-soft)}
.studio-prompt{width:100%;min-height:96px;font-size:14.5px;border:none;background:none;padding:0;resize:vertical}
.studio-prompt:focus{outline:none;box-shadow:none}
.studio-refs{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 4px}
.studio-ref{position:relative;width:64px;height:64px;border-radius:10px;overflow:hidden;border:1px solid var(--border-2);
  background:var(--surface-2)}
.studio-ref img,.studio-ref video{width:100%;height:100%;object-fit:cover}
.studio-ref .rm{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background:rgba(0,0,0,.6);
  color:#fff;display:grid;place-items:center;cursor:pointer;font-size:12px;line-height:1}
.studio-ref .el-src-badge{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.65);color:#fff;
  font-size:9px;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-ref .ref-idx{position:absolute;top:2px;left:2px;background:rgba(0,0,0,.65);color:#fff;font-size:9px;
  padding:1px 4px;border-radius:4px;line-height:1.3;pointer-events:none}
.studio-ref .ref-busy{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;background:rgba(0,0,0,.45);color:#fff;font-size:10px;font-weight:600}
.studio-ref.busy .ref-busy{display:flex}
.studio-ref .ref-busy .spin{width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  border-radius:50%;animation:studiospin .8s linear infinite}
.studio-ref.uploading{display:grid;place-items:center;background:var(--surface-2)}
.studio-ref.audio{display:grid;place-items:center;color:var(--text-muted)}
.studio-ref.audio .nm{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.65);color:#fff;font-size:9px;
  padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-mention-pop .sec{padding:6px 12px 2px;font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint)}
.st-mention-pop .row .ico{width:26px;height:26px;border-radius:6px;background:var(--surface-2);display:grid;place-items:center;font-size:13px}
.studio-addref{width:64px;height:64px;border-radius:10px;border:1.5px dashed var(--border-2);display:grid;
  place-items:center;cursor:pointer;color:var(--text-faint);flex-shrink:0}
.studio-addref:hover{border-color:var(--accent);color:var(--accent)}
.studio-card.st-dragover{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent)}
.studio-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:14px;
  border-top:1px solid var(--border-subtle)}
.studio-row>select,.studio-row>.studio-gen,.studio-row>.studio-pick{flex-shrink:0}
.studio-imgsel{position:relative;display:inline-block;flex-shrink:0}
.studio-imgsel-cap{position:absolute;left:14px;top:calc(100% + 3px);font-size:10px;line-height:1;color:var(--text-muted);white-space:nowrap;pointer-events:none}
.studio-pick{position:relative}
.studio-pick.studio-pick-wrap{flex-shrink:1;min-width:0}
.studio-pick.studio-pick-wrap .studio-pickbtn{min-width:0}
.studio-pick.studio-pick-wrap .studio-pickbtn>span{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;max-width:120px;min-width:0}
.studio-pickbtn{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--border-2);
  border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font-size:12.5px;font-weight:600;
  cursor:pointer;white-space:nowrap}
.studio-pickbtn:hover{border-color:var(--text-faint)}
.studio-row select,.studio-row .studio-pickbtn{height:38px;padding:0 32px 0 14px;border:1px solid transparent;
  border-radius:999px;background-color:var(--surface-3);font-size:14px;font-weight:500;transition:background-color .15s,border-color .15s}
.studio-row .studio-pickbtn{padding:0 14px 0 16px;gap:8px}
.studio-row select{color-scheme:dark;background-position:right 12px center;background-size:13px}
html[data-theme="light"] .studio-row select{color-scheme:light}
.studio-row select option,.studio-row select optgroup{background-color:var(--surface);color:var(--text)}
.studio-row select:hover,.studio-row .studio-pickbtn:hover{background-color:var(--border-2);border-color:transparent}
.studio-row select:focus{border-color:var(--accent);background-color:var(--surface-3)}
.studio-row .studio-gen{border-radius:999px;padding-left:22px;padding-right:22px;height:38px}
.studio-row{gap:8px}
.studio-row select{height:38px;min-width:0;width:auto;flex:0 0 auto}
.studio-row .studio-pick.studio-pick-wrap{flex:0 1 auto;max-width:min(300px,100%)}
.studio-row .studio-pickbtn{height:38px;min-width:0;width:auto}
.studio-row .studio-pick.studio-pick-wrap .studio-pickbtn>span{max-width:240px}
.studio-row .studio-gen{height:38px;padding-left:24px;padding-right:24px}
.studio-row .studio-est-price{margin-left:auto}
.studio-seed{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 8px 0 14px;border-radius:999px;
  background:var(--surface-3);border:1px solid transparent;flex:0 0 auto}
.studio-seed:hover{background-color:var(--border-2)}
.studio-seed:focus-within{border-color:var(--accent)}
.studio-seed-lbl{font-size:13px;font-weight:600;color:var(--text-muted)}
.studio-seed input{width:104px;height:30px;border:0;background:transparent;padding:0 2px;font-size:13px;box-shadow:none;outline:none;
  -moz-appearance:textfield}
.studio-seed input::-webkit-outer-spin-button,.studio-seed input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.studio-seed-btn{border:0;background:transparent;cursor:pointer;width:26px;height:26px;border-radius:50%;font-size:14px;
  line-height:1;color:var(--text-muted);padding:0}
.studio-seed-btn:hover{background:var(--border-2);color:var(--text)}
.studio-card{border-radius:24px;padding:20px 22px 16px}
.st-hero{display:none;text-align:center;padding:6px 0 0}
html[data-st-kind="image"][data-st-has-images="0"] .st-hero{display:block}   
html[data-st-kind="video"] #studioGroupRow{display:none!important}
.st-vtabs,.st-mhero,.st-tl{display:none}
.st-tile{display:contents}
html[data-st-kind="video"] #stGenView .studio-card{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start;padding:14px;border-radius:24px;
  background:var(--bg);box-shadow:none;border-color:var(--border-2)}
html[data-st-kind="video"] #stGenView .studio-card>*{grid-column:1/-1}
html[data-st-kind="video"] #stGenView .studio-row{display:contents}
html[data-st-kind="video"] #stGenView .studio-row>*{grid-column:1/-1;order:3}
html[data-st-kind="video"] .st-vtabs{display:flex;gap:22px;flex-shrink:0;border-bottom:1px solid var(--border);margin:0 2px 14px;overflow-x:auto;scrollbar-width:none}
html[data-st-kind="video"] .st-vtabs.in-card{order:-6;gap:14px;margin:0 2px 2px}
html[data-st-kind="video"] .st-vtabs.in-card button{font-size:13px;white-space:nowrap}
html[data-st-kind="video"] .st-vtabs button{border:0;background:none;font:inherit;font-size:13.5px;font-weight:500;color:var(--text-muted);padding:8px 0 10px;
  margin-bottom:-1px;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
html[data-st-kind="video"] .st-vtabs button:hover{color:var(--text)}
html[data-st-kind="video"] .st-vtabs button.on{color:var(--accent);border-bottom-color:var(--accent)}
html[data-st-kind="video"] .st-mhero{display:block;order:-4;position:relative;padding:18px 16px 16px;border-radius:16px;min-height:112px;
  background:linear-gradient(150deg,color-mix(in srgb,var(--accent) 20%,var(--surface)) 0%,var(--surface-2) 60%,var(--surface) 100%);border:1px solid var(--border)}
.st-change{position:absolute;right:12px;top:12px;display:inline-flex;align-items:center;gap:7px;border:0;border-radius:10px;padding:8px 14px;
  background:var(--surface-3);color:var(--text);font:inherit;font-size:13.5px;font-weight:500;cursor:pointer}
.st-change:hover{background:var(--border-2)}
.st-mname{margin-top:36px;font-size:25px;font-weight:600;letter-spacing:-.02em;color:var(--accent);line-height:1.15;word-break:break-word}
.st-msub{margin-top:6px;font-size:13px;color:var(--text-muted)}
html[data-st-kind="video"] #stRefs{order:-3;margin:0;padding:18px 12px;border:1px solid var(--border-2);border-radius:16px;justify-content:center;background:transparent}
.st-hub{display:none}
html[data-st-grp="hub"] .content{display:grid;grid-template-columns:minmax(290px,1fr) minmax(0,4fr);column-gap:16px;align-items:start}
html[data-st-grp="hub"] .content>*{grid-column:2}
html[data-st-grp="hub"] .content>.st-hub{display:flex;flex-direction:column;gap:10px;grid-column:1;grid-row:1/span 40;position:sticky;top:76px;z-index:6;
  padding:14px;border:1px solid var(--border-2);border-radius:24px;background:var(--bg)}
html[data-st-grp="hub"] .content>.st-hub .st-vtabs{order:-9;gap:14px;margin:0 2px 2px}
html[data-st-grp="hub"] .content>.st-hub .st-vtabs button{font-size:13px;white-space:nowrap}
.st-hublist{display:flex;flex-direction:column}
.st-hubitem{display:flex;align-items:center;gap:14px;width:100%;padding:12px 10px;border:0;border-radius:14px;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.st-hubitem+.st-hubitem{border-top:1px solid var(--border-subtle)}
.st-hubitem:hover,.st-hubitem.on{background:var(--surface-2)}
.st-hubitem svg{width:22px;height:22px;flex-shrink:0;color:var(--text-muted)}
.st-hubitem .st-hb{flex:1;min-width:0}
.st-hubitem b{display:block;font-size:15px;font-weight:500}
.st-hubitem small{display:block;font-size:13px;color:var(--text-muted);margin-top:1px}
.st-hubitem .st-hc{width:16px;height:16px;color:var(--text-faint)}
.st-choose{display:none;grid-template-columns:1fr 1fr;gap:10px}
.st-choose button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;padding:14px 8px;
  border:1px solid var(--border-2);border-radius:16px;background:transparent;color:var(--text);font:inherit;font-size:14.5px;font-weight:500;text-align:center;cursor:pointer}
.st-choose button:hover{border-color:var(--text-faint);background:var(--surface-2)}
.st-choose .st-ci{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface-3);color:var(--text-muted)}
.st-choose .st-optsub{display:none;font-size:12.5px;font-weight:400;color:var(--text-muted)}
.st-choose .st-optsub::before{content:"("}
.st-choose .st-optsub::after{content:")"}
.st-choose .st-ref{grid-column:1/-1}
.st-choose:not(.has-end) .st-start{grid-column:1/-1}
.st-choose .st-ref .st-opt{display:none}
.st-choose .st-ref .st-optsub{display:block;margin-top:-2px}
.st-choose .st-opt{position:absolute;right:8px;top:8px;font-size:11.5px;color:var(--text-muted);background:var(--surface-3);padding:2px 8px;border-radius:99px}
.st-textonly{justify-self:start;border:0;background:var(--surface-3);color:var(--text-muted);font:inherit;font-size:12.5px;padding:5px 12px;border-radius:99px;cursor:pointer}
.st-textonly:hover{color:var(--text)}
html[data-st-kind="video"] #stChoose{order:-3}
html[data-st-kind="video"] #stTextOnly{order:-3}
html[data-st-kind="video"] .st-promptbox{order:-2;border:1px solid var(--border-2);border-radius:16px;padding:12px 14px 6px;background:transparent}
html[data-st-kind="video"] .st-promptbox::before{content:attr(data-label);display:block;font-size:13.5px;color:var(--text-muted);margin-bottom:4px}
html[data-st-kind="video"] #stGenView .studio-prompt{min-height:110px;font-size:15px}
html[data-st-kind="video"] .st-tl{display:block;font-size:13px;line-height:1.2;color:var(--text-muted);font-weight:400}
html[data-st-kind="video"] .st-tile,html[data-st-kind="video"] #stGenView .studio-pick-wrap{display:block;position:relative;border:1px solid var(--border-2);border-radius:16px;
  padding:10px 14px 8px;background:transparent}
html[data-st-kind="video"] #stGenView .studio-row>.st-tile{grid-column:span 1;order:4}
html[data-st-kind="video"] #stAspect{grid-column:auto}
html[data-st-kind="video"] .st-tile:has(>select[style*="none"]){display:none}
html[data-st-kind="video"] #stGenView .studio-row>.studio-pick-wrap{order:1;max-width:none;padding:0}
html[data-st-kind="video"] #stGenView .studio-row .studio-pickbtn{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;height:auto;
  padding:10px 38px 9px 14px;border:0;border-radius:16px;background:transparent}
html[data-st-kind="video"] #stGenView .studio-pick-wrap{border:1px solid var(--border-2)}
html[data-st-kind="video"] #stModelLbl{font-size:16px;font-weight:500;color:var(--text)}
html[data-st-kind="video"] #stGenView .studio-pickbtn::after{position:absolute;right:14px;top:50%;margin-top:-6px}
html[data-st-kind="video"] #stGenView .studio-pick-wrap .studio-pickbtn>span{max-width:100%}
html[data-st-kind="video"] .st-tile select{display:block;width:100%!important;height:auto;margin-top:3px;padding:0 24px 0 0;border:0;background-color:transparent;
  font-size:16.5px;font-weight:500;color:var(--text);box-shadow:none}
html[data-st-kind="video"] .st-tile select:hover{background-color:transparent}
html[data-st-kind="video"] #stGenView .studio-row>.studio-imgsel{order:4;grid-column:span 1;display:block;height:auto;border:1px solid var(--border-2);border-radius:16px;padding:10px 14px 8px}
html[data-st-kind="video"] #stGenView .studio-imgsel .studio-imgsel-cap{display:block;order:0;padding:0;font-size:13px}
html[data-st-kind="video"] #stGenView .studio-imgsel select{display:block;width:100%!important;height:auto;border:0;padding:0 24px 0 0;margin-top:3px;font-size:16.5px;font-weight:500;background-color:transparent}
html[data-st-kind="video"] #stNWrap{display:flex;flex-direction:column-reverse}
html[data-st-kind="video"] #stNWrap .studio-imgsel-cap{display:block;position:static;order:0;padding:0;margin-bottom:0;font-size:13px;color:var(--text-muted)}
.st-chips{display:none}
html[data-st-kind="video"] .st-chips{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 8px}
.st-chip,.st-chips .studio-audio{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:0;border-radius:999px;background:var(--surface-3);
  color:var(--text);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.st-chip:hover,.st-chips .studio-audio:hover{background:var(--border-2)}
.st-chips .studio-audio[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft)}
.st-chips .studio-audio[aria-pressed="false"]{color:var(--text-muted)}
.st-chips .studio-audio svg{width:16px;height:16px}
html[data-st-kind="video"] #stGenView .studio-row>#stAudio{order:5;justify-self:start;grid-column:1/-1}
html[data-st-kind="video"] #stGenView .studio-row>.studio-est-price{order:8;margin:2px 4px 0!important;text-align:right;font-size:12.5px;color:var(--text-muted)}
html[data-st-kind="video"] #stGenView .studio-row>#stGenBtn{order:9;width:100%;height:50px;border-radius:999px;justify-content:center;font-size:16px;font-weight:600;gap:8px}
html[data-st-kind="video"] #stGenBtn svg{display:none}
html[data-st-kind="video"] #stGenBtn::after{content:attr(title)}
html[data-st-kind="video"] #stGenView .studio-card>.studio-err{order:10}   
html[data-st-kind="video"] .content{max-width:none;width:100%;margin:0;padding-left:18px;padding-right:18px}   
html[data-st-kind="video"] #stGenView{display:grid;grid-template-columns:minmax(290px,1fr) minmax(0,4fr);gap:16px;align-items:start}
html[data-st-kind="video"] #stGenView .studio-card{max-width:none;margin:0;position:sticky;top:76px;z-index:6;border-radius:20px;padding:16px 16px 14px;
  }
html[data-st-kind="video"] #stGenView .studio-prompt{min-height:120px}
html[data-st-kind="video"] #stGenView .studio-row{flex-wrap:wrap}
html[data-st-kind="video"] #stManualOutput{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:14px 18px 20px;
  min-height:calc(100vh - 150px)}
html[data-st-kind="video"] .studio-gallery{grid-template-columns:repeat(4,1fr)}
html[data-st-kind="video"] .studio-gallery[data-view="large"]{grid-template-columns:repeat(3,1fr)}
html[data-st-kind="video"] .studio-gallery[data-view="small"]{grid-template-columns:repeat(6,1fr)}
@media(max-width:980px){html[data-st-kind="video"] #stGenView{grid-template-columns:1fr}
  html[data-st-kind="video"] #stGenView .studio-card{position:static;max-height:none}}
html[data-st-kind="video"] #stGenView .studio-card{gap:8px;padding:12px 12px 12px;max-height:calc(100vh - 90px);overflow-y:auto}
html[data-st-kind="video"] .st-vtabs.in-card button{padding:5px 0 7px}
html[data-st-kind="video"] .st-mhero{padding:10px 12px;min-height:0}
html[data-st-kind="video"] .st-mhero .st-mname{margin-top:0!important;padding-right:86px;font-size:19px}
html[data-st-kind="video"] .st-mhero .st-msub{margin-top:3px;font-size:12px}
html[data-st-kind="video"] .st-mhero .st-change{top:8px;right:8px;padding:5px 10px;font-size:12.5px;gap:5px}
html[data-st-kind="video"] #stRefs{padding:10px 12px}
.st-choose{gap:8px;position:relative}
.st-choose button{overflow:hidden}
.st-choose .st-lbl{display:block}
.st-choose .st-trm{display:none;position:absolute;right:6px;top:6px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;
  font-size:15px;line-height:22px;text-align:center}
.st-choose button.filled{background-size:cover;background-position:center;border-style:solid}
.st-choose button.filled .st-ci,.st-choose button.filled .st-opt{display:none}
.st-choose button.filled .st-lbl{position:absolute;left:6px;top:6px;padding:2px 8px;border-radius:99px;background:rgba(0,0,0,.65);color:#fff;font-size:11.5px}
.st-choose button.filled .st-trm{display:block}
.st-choose button.dim{opacity:.45}
.st-choose .el-menu{min-width:190px}
.st-choose button{min-height:68px;padding:8px 6px;gap:4px;font-size:13px}
.st-choose .st-ci{width:30px;height:30px}
.st-choose .st-ci svg{width:17px;height:17px}
.st-choose .st-opt{top:6px;right:6px;font-size:10.5px;padding:1px 6px}
html[data-st-kind="video"] .st-promptbox{padding:8px 12px 4px}
html[data-st-kind="video"] .st-promptbox::before{font-size:12.5px;margin-bottom:2px}
html[data-st-kind="video"] #stGenView .studio-prompt{min-height:64px;font-size:14px}
html[data-st-kind="video"] .st-chips{padding:4px 0}
html[data-st-kind="video"] .st-tile,html[data-st-kind="video"] #stGenView .studio-pick-wrap,
html[data-st-kind="video"] #stGenView .studio-row>.studio-imgsel{padding:6px 12px 5px}
html[data-st-kind="video"] #stGenView .studio-row .studio-pickbtn{padding:6px 34px 5px 12px;gap:1px}
html[data-st-kind="video"] #stModelLbl{font-size:14.5px}
html[data-st-kind="video"] .st-tl,html[data-st-kind="video"] #stGenView .studio-imgsel .studio-imgsel-cap{font-size:12px}
html[data-st-kind="video"] .st-tile select,html[data-st-kind="video"] #stGenView .studio-imgsel select{font-size:14.5px;margin-top:1px}
html[data-st-kind="video"] #stGenView .studio-row>#stGenBtn{height:44px;font-size:15px}
.st-rtabs,.st-how{display:none}
html[data-st-kind="video"] .st-rtabs{display:inline-flex;gap:2px;padding:3px;margin-bottom:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}
.st-rtabs button{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:var(--text-muted);font:inherit;font-size:13.5px;font-weight:500;
  padding:7px 14px;border-radius:9px;cursor:pointer}
.st-rtabs button:hover{color:var(--text)}
html[data-st-tab="history"] #stManualOutput .st-rtabs [data-t="history"],html[data-st-tab="how"] #stManualOutput .st-rtabs [data-t="how"]{background:var(--accent-soft);color:var(--accent)}
html[data-st-kind="video"][data-st-tab="how"] .st-how{display:block}
html[data-st-kind="video"][data-st-tab="how"] #stManualOutput>.section-title,html[data-st-kind="video"][data-st-tab="how"] #stGallery,
html[data-st-kind="video"][data-st-tab="how"] #stEmpty,html[data-st-kind="video"][data-st-tab="how"] #stPager{display:none!important}
.st-how{text-align:center;padding:34px 10px 10px}
.st-how h2{font-size:26px;font-weight:600;letter-spacing:-.02em;margin:0 0 8px}
.st-how-sub{color:var(--text-muted);font-size:14px;margin:0 0 34px}
.st-how-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1040px;margin:0 auto;text-align:left}
.st-how-art{aspect-ratio:4/3;border-radius:16px;border:1px solid var(--border-2);overflow:hidden;margin-bottom:14px;background:var(--surface-2)}
.st-how-frame{display:grid;place-items:center}
.st-how-frame span{display:grid;place-items:center;width:62%;aspect-ratio:1;border:1.5px dashed var(--border-2);border-radius:8px;color:var(--text-faint)}
.st-how-models{display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;background:radial-gradient(110% 90% at 50% 0%,#202026,#0e0e11 80%)}
.st-how-models span{position:relative;flex:1;height:62%;border-radius:9px;background:#1a1a22 var(--img) center/cover no-repeat;border:1px solid rgba(255,255,255,.18);overflow:hidden}
.st-how-models b{position:absolute;left:0;right:0;bottom:0;padding:10px 4px 4px;font-size:9.5px;font-weight:700;color:#fff;text-align:center;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.st-how-result{background:#1a1a22 var(--img) center/cover no-repeat}
.st-how-step h3{font-size:16px;font-weight:600;margin:0 0 4px}
.st-how-step p{margin:0;font-size:13.5px;line-height:1.55;color:var(--text-muted)}
@media(max-width:760px){.st-how-steps{grid-template-columns:1fr}}
html[data-st-kind="image"] #studioSubtabRow{display:none!important}   
.st-hero-cards{position:relative;height:190px;width:min(560px,100%);margin:0 auto 18px}
.st-hero-cards span{position:absolute;top:18px;width:118px;height:160px;border-radius:14px;border:3px solid rgba(255,255,255,.28);
  background:#1a1a22 var(--img) center/cover no-repeat;box-shadow:0 10px 26px -8px rgba(0,0,0,.7)}
.st-hero-cards span:nth-child(1){left:6%;transform:rotate(-8deg)}
.st-hero-cards span:nth-child(2){left:27%;top:6px;transform:rotate(-2deg)}
.st-hero-cards span:nth-child(3){left:49%;top:6px;transform:rotate(3deg);border-radius:50% / 40%;width:126px}
.st-hero-cards span:nth-child(4){left:71%;transform:rotate(8deg)}
@media(max-width:560px){   
  .st-hero-cards span,.st-hero-cards span:nth-child(3){width:92px;height:128px}
  .st-hero-cards span:nth-child(1){left:2%}.st-hero-cards span:nth-child(2){left:25%}.st-hero-cards span:nth-child(3){left:48%}.st-hero-cards span:nth-child(4){left:70%}}
.st-hero h2{font-size:clamp(26px,3.6vw,38px);line-height:1.08;font-weight:800;letter-spacing:-.025em;text-transform:uppercase;margin:0}
.st-hero h2 em{font-style:normal;color:var(--accent)}
.st-hero p{margin:10px auto 0;max-width:560px;color:var(--text-faint);font-size:14.5px}
html[data-st-kind="image"] .content{padding-bottom:300px}
html[data-st-kind="image"] #stGenView .studio-card{position:fixed;left:calc(50% + var(--sb-w) / 2);bottom:18px;transform:translateX(-50%);
  width:min(1090px,calc(100vw - var(--sb-w) - 40px));margin:0;z-index:30;padding:14px 18px 12px;border-radius:22px;max-width:none}
html[data-st-kind="image"] #stGenView .studio-prompt{min-height:56px}
html[data-theme="light"][data-st-kind="image"] #stGenView .studio-card{border:1.5px solid #b9bdd6;
  box-shadow:0 18px 50px rgba(30,35,80,.22),0 4px 14px rgba(30,35,80,.14),0 0 0 6px rgba(255,255,255,.55)}
html[data-theme="light"][data-st-kind="image"] #stGenView .studio-card:focus-within{border-color:var(--accent);
  box-shadow:0 18px 50px rgba(30,35,80,.22),0 4px 14px rgba(30,35,80,.14),0 0 0 6px var(--accent-soft)}
html[data-st-kind="image"] .studio-dd{top:auto;bottom:calc(100% + 8px)}
@media(max-width:760px){html[data-st-kind="image"] #stGenView .studio-card{left:50%;width:calc(100vw - 20px)}}
.studio-prompt{min-height:84px;font-size:15.5px;line-height:1.5}
.studio-prompt::placeholder{color:var(--text-faint)}
.studio-row{border-top:0;padding-top:0;margin-top:12px;gap:10px}
.studio-row select,.studio-row .studio-pickbtn{background-color:transparent;border:1px solid var(--border-2);
  border-radius:14px;height:42px;font-size:14px;font-weight:500}
.studio-row select:hover,.studio-row .studio-pickbtn:hover{background-color:var(--surface-2);border-color:var(--text-faint)}
.studio-row select:focus{background-color:transparent}
.studio-imgsel{display:inline-flex;align-items:center;height:42px;border:1px solid var(--border-2);border-radius:14px;
  transition:background-color .15s,border-color .15s}
.studio-imgsel:hover{background-color:var(--surface-2);border-color:var(--text-faint)}
.studio-imgsel:focus-within{border-color:var(--accent)}
.studio-imgsel-cap{position:static;order:-1;padding-left:14px;font-size:13px;line-height:1;color:var(--text-muted)}
.studio-row .studio-imgsel select{border:0;background-color:transparent;height:40px;padding-left:8px;border-radius:14px}
.studio-toggle{display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 14px;border:1px solid var(--border-2);
  border-radius:14px;font-size:14px;font-weight:500;color:var(--text);cursor:pointer;user-select:none;flex:0 0 auto}
.studio-toggle:hover{background-color:var(--surface-2);border-color:var(--text-faint)}
.studio-toggle input{position:absolute;opacity:0;pointer-events:none}
.studio-toggle .sw{position:relative;width:34px;height:20px;border-radius:999px;background:var(--border-2);transition:background .15s}
.studio-toggle .sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.studio-toggle input:checked + .sw{background:var(--accent)}
.studio-toggle input:checked + .sw::after{transform:translateX(14px)}
.studio-toggle:focus-within{box-shadow:var(--ring)}
.studio-row .studio-audio,.rm-sound .studio-audio{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 14px;border:1px solid var(--border-2);
  border-radius:14px;background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:500;cursor:pointer;flex:0 0 auto}
.studio-row .studio-audio:hover,.rm-sound .studio-audio:hover{background-color:var(--surface-2);border-color:var(--text-faint)}
.studio-row .studio-audio[aria-pressed="false"],.rm-sound .studio-audio[aria-pressed="false"]{color:var(--text-muted)}
.studio-audio .off,.studio-audio[aria-pressed="false"] .on{display:none}
.studio-audio[aria-pressed="false"] .off{display:inline}
.studio-row .studio-imgsel select:focus,.studio-row .studio-imgsel input:focus{box-shadow:none;outline:none;
  border:0;background-color:transparent}
.studio-imgsel:focus-within{box-shadow:var(--ring)}
.studio-row .studio-imgsel .studio-seed{background:transparent;border:0;height:40px;padding-left:8px}
.studio-row .studio-imgsel .studio-seed:hover{background:transparent}
.studio-row .studio-gen{order:99;width:auto;min-width:140px;height:58px;padding:0 28px;border-radius:16px;display:inline-flex;
  flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:0 0 auto;line-height:1.15}
.studio-row .studio-gen svg{display:none}
.studio-gen-txt{font-size:17px;font-weight:700}
.studio-gen-price{font-size:13px;font-weight:500;opacity:.9}
.studio-gen-price:empty{display:none}
html[data-st-kind="image"] .studio-row>#stEstPrice:not([data-fb]){display:none}   
html[data-st-kind="video"] .studio-gen-txt,html[data-st-kind="video"] .studio-gen-price{display:none}
.studio-row .studio-est-price{margin-left:auto}
.studio-row .studio-est-price + .studio-est-price{margin-left:0}
html[data-st-kind="image"] #stGenView .studio-row{gap:7px}
html[data-st-kind="image"] #stGenView .studio-row select{padding:0 25px 0 11px;background-position:right 8px center;field-sizing:content}
html[data-st-kind="image"] #stGenView .studio-row .studio-pickbtn{padding:0 11px 0 13px}
html[data-st-kind="image"] #stGenView .studio-imgsel-cap{display:none}
html[data-st-kind="image"] #stGenView .st-ic{display:inline-flex;align-items:center;flex:0 0 auto;height:42px;border:1px solid var(--border-2);border-radius:14px}
html[data-st-kind="image"] #stGenView .st-ic:hover{background-color:var(--surface-2);border-color:var(--text-faint)}
html[data-st-kind="image"] #stGenView .st-ic select{height:40px;border:0;background-color:transparent;padding-left:6px}
html[data-st-kind="image"] #stGenView .st-ic::before{content:"";width:14px;height:14px;margin-left:11px;flex:none;background:var(--text-muted);
  -webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.st-ic-ratio{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='4' width='13' height='8' rx='2' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E")}
.st-ic-quality{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1l1.6 4.4L13 7l-4.4 1.6L7 13 5.4 8.6 1 7l4.4-1.6zM13 10l.7 1.8 1.8.7-1.8.7L13 15l-.7-1.8-1.8-.7 1.8-.7z'/%3E%3C/svg%3E")}
.st-ic-bg{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 1h4.7v4.7H1zM10.3 1H15v4.7h-4.7zM5.7 5.7h4.6v4.6H5.7zM1 10.3h4.7V15H1zM10.3 10.3H15V15h-4.7z'/%3E%3C/svg%3E")}
html[data-st-kind="image"] #stNWrap::before{content:"×";padding-left:12px;color:var(--text-muted)}
html[data-st-kind="image"] #stNWrap select{padding-left:3px}
html[data-st-kind="image"] #stOutSize:not([data-err]){display:none}   
html[data-st-kind="image"] #stGenView .studio-row>#stGenBtn{margin-left:auto}
@media(min-width:901px){
  html[data-st-kind="image"] #stGenView .studio-row .studio-pick.studio-pick-wrap{flex:1 1 150px;max-width:max-content}
  html[data-st-kind="image"] #stGenView .studio-row .studio-pick.studio-pick-wrap .studio-pickbtn{width:100%}
  html[data-st-kind="image"] #stGenView .studio-row>#stEstPrice[data-fb]{order:100;flex-basis:100%;text-align:right;margin:0!important}
}
@media(max-width:900px){
  .studio-row .studio-pick.studio-pick-wrap{flex:1 1 100%;max-width:100%}
  .studio-row .studio-pick.studio-pick-wrap .studio-pickbtn{width:100%}
  .studio-row .studio-pick.studio-pick-wrap .studio-pickbtn>span{max-width:none;flex:1;text-align:left}
  .studio-dd{width:min(380px,calc(100vw - 32px))}
}
.studio-pickbtn::after{content:"";width:12px;height:12px;flex-shrink:0;background:#8a8f98;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.studio-dd{position:absolute;top:calc(100% + 8px);left:0;width:380px;max-height:min(72vh,620px);background:var(--surface);
  border:1px solid var(--border-2);border-radius:18px;box-shadow:var(--shadow-lg);z-index:50;
  display:none;flex-direction:column;overflow:hidden}
.studio-dd.open{display:flex}
.studio-dd-search{display:flex;align-items:center;gap:10px;padding:0 16px;height:50px;flex-shrink:0;
  border-bottom:1px solid var(--border);color:var(--text-faint)}
.studio-dd-search input{flex:1;min-width:0;margin:0;padding:0;height:100%;width:auto;border:0;background:transparent;
  box-shadow:none;font-size:14px;color:var(--text);border-radius:0}
.studio-dd-search input:focus{border:0;box-shadow:none;background:transparent}
.studio-dd-list{overflow-y:auto;padding:6px}
.studio-dd-item{padding:6px 10px;border-radius:10px;cursor:pointer;display:flex;align-items:center;gap:10px}
.studio-dd-item:hover{background:var(--surface-2)}
.studio-dd-item.sel{background:var(--surface-3)}
.studio-dd-ico{width:30px;height:30px;border-radius:8px;flex-shrink:0;display:grid;place-items:center;
  font-size:13px;font-weight:700;letter-spacing:-.02em}
.studio-dd-main{flex:1;min-width:0}
#stModelDD{width:min(300px,calc(100vw - 32px))}
#stModelDD .studio-dd-list{padding:6px}
#stModelDD .studio-dd-item{padding:6px 10px 6px 6px;border-radius:12px;gap:10px}
#stModelDD .studio-dd-ico{width:38px;height:38px;border-radius:10px;font-size:16px;font-weight:700;background:var(--surface-3)!important;color:var(--text-muted)!important}
#stModelDD .studio-dd-item.sel .studio-dd-ico{background:var(--accent-soft)!important;color:var(--accent)!important}
#stModelDD .studio-dd-name{font-size:14px;font-weight:500}
#stModelDD .studio-dd-chips{flex-wrap:wrap;gap:4px;margin-top:3px;overflow:visible}
#stModelDD .studio-dd-chip{display:inline-flex;align-items:center;gap:4px;padding:1px 6px;border-radius:6px;background:var(--surface-3);
  color:var(--text-muted);font-size:11.5px;font-weight:500}
#stModelDD .studio-dd-chip+.studio-dd-chip::before{content:none}
#stModelDD .studio-dd-chip svg{width:11px;height:11px;flex-shrink:0}
#stModelDD .studio-dd-chip.nsfw{color:#e0245e;background:rgba(224,36,94,.12)}
#stModelDD .studio-dd-item.sel .studio-dd-check{width:18px;height:18px}
.studio-dd-name{font-size:13.5px;font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-dd-chips{display:flex;flex-wrap:nowrap;margin-top:1px;font-size:11.5px;color:var(--text-faint);white-space:nowrap;overflow:hidden}
.studio-dd-chip{color:var(--text-faint);font-weight:400}
.studio-dd-chip+.studio-dd-chip::before{content:"·";margin:0 5px}
.studio-dd-chip.nsfw{color:#e0245e;font-weight:500}
.studio-dd-check{flex-shrink:0;color:var(--accent);display:none}
.studio-dd-item.sel .studio-dd-check{display:block}
.studio-dd-empty{padding:24px;text-align:center;color:var(--text-faint);font-size:13px}
.studio-dd-flyout{position:fixed;width:310px;max-height:min(72vh,560px);overflow-y:auto;background:var(--surface);
  border:1px solid var(--border-2);border-radius:18px;box-shadow:var(--shadow-lg);z-index:100;
  display:none;padding:6px}
.studio-dd-flyout.open{display:block}
@media(max-width:760px){.studio-dd-flyout{left:8px!important;right:8px;width:auto;top:auto!important;bottom:8px;max-height:60vh;z-index:120}}
.studio-dd-flyhead{padding:8px 10px 6px;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--text-faint)}
.studio-dd-subitem{padding:6px 10px;border-radius:10px;cursor:pointer;display:flex;align-items:center;gap:10px}
.studio-dd-subitem:hover{background:var(--surface-2)}
.studio-dd-subitem.sel{background:var(--surface-3)}
.studio-dd-subitem.off{opacity:.5}
.studio-dd-subitem .studio-dd-ico{width:26px;height:26px;border-radius:7px;font-size:12px}
.studio-dd-subitem .studio-dd-main{display:flex;align-items:center;gap:7px}
.studio-dd-subitem .sub-name{font-size:13.5px;font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-dd-subitem .sub-price{margin-left:auto;color:var(--text-muted);font-weight:500;font-size:12.5px;white-space:nowrap;
  font-variant-numeric:tabular-nums}
.studio-dd-subitem .sub-tag{flex-shrink:0;padding:0 6px;line-height:17px;border-radius:5px;font-size:10.5px;font-weight:500;
  background:rgba(34,170,90,.14);color:#22aa5a}
.studio-est-price{margin-left:auto;color:var(--text-muted);font-size:12.5px;font-weight:600;white-space:nowrap}
.studio-gen{margin-left:auto;padding:10px 24px;font-size:14px;transition:.15s}
.studio-gen:hover:not(:disabled){transform:translateY(-1px)}
.studio-gen:disabled{opacity:.6;cursor:default;transform:none}
.studio-err{margin-top:12px;padding:10px 13px;border-radius:var(--radius-sm);background:var(--danger-soft);
  color:var(--danger);font-size:13px;font-weight:500;display:none}
.studio-err.show{display:block}
.studio-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.studio-gallery[data-view="large"]{grid-template-columns:repeat(3,1fr)}
.studio-gallery[data-view="small"]{grid-template-columns:repeat(7,1fr);gap:10px}
.studio-gallery[data-filter="image"] .studio-item[data-mode="video"],
.studio-gallery[data-filter="video"] .studio-item[data-mode="images"],
.studio-gallery[data-filter="video"] .studio-item[data-mode="chat_image_output"]{display:none}
.st-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.st-pop-wrap{position:relative}
.st-tool-btn{text-transform:none;letter-spacing:normal;font-weight:500;gap:7px}
.st-tool-btn.on{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 45%,transparent);background:var(--accent-soft)}
.st-pop{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:140px;padding:5px;background:var(--surface);
  border:1px solid var(--border-2);border-radius:12px;box-shadow:var(--shadow-lg)}
.st-pop.open{display:block}
.st-pop button{display:block;width:100%;text-align:left;border:0;background:none;color:var(--text);font:inherit;font-size:13px;font-weight:500;
  text-transform:none;letter-spacing:normal;padding:8px 10px;border-radius:8px;cursor:pointer}
.st-pop button:hover{background:var(--surface-2)}
.st-pop button.on{color:var(--accent);font-weight:600}
@media(max-width:980px){.studio-gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.studio-gallery{grid-template-columns:repeat(2,1fr)}}
.studio-item{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface);
  box-shadow:var(--shadow);transition:box-shadow .15s,transform .15s}
.studio-item:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.studio-item .thumb{aspect-ratio:1/1;background:var(--surface-2);display:flex;align-items:center;justify-content:center;
  overflow:hidden;position:relative}
.studio-item .thumb img,.studio-item .thumb video{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.studio-item .thumb.clickable:hover img,.studio-item .thumb.clickable:hover video{transform:scale(1.05)}
.studio-item .badge{position:absolute;top:7px;left:7px;padding:2px 8px;border-radius:9999px;font-size:10px;
  font-weight:700;letter-spacing:.03em;text-transform:uppercase;background:rgba(0,0,0,.55);color:#fff;
  backdrop-filter:blur(4px);pointer-events:none}
.studio-item .meta{padding:9px 11px}
.studio-item .prompt{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4;min-height:2.5em}
.studio-item .ts{font-size:11px;color:var(--text-faint);margin-top:5px}
.studio-item .reuse{margin-top:7px;display:inline-flex;align-items:center;gap:5px;padding:3px 9px;font:inherit;
  font-size:11px;font-weight:600;color:var(--text-muted);background:var(--surface-2);border:1px solid var(--border-2);
  border-radius:9999px;cursor:pointer;transition:.13s}
.studio-item .reuse:hover{color:var(--accent);border-color:var(--accent)}
.studio-item .pending{color:var(--text-faint);font-size:12px;display:flex;align-items:center;gap:6px}
.studio-item .pending.failed{flex-direction:column;gap:4px;padding:0 14px;text-align:center}
.studio-item .pending.failed .fail-label{color:var(--text-muted);font-weight:600}
.studio-item .pending.failed .fail-reason{font-size:11px;color:var(--text-faint);overflow:hidden;
  text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}
.studio-item .pending.failed .fail-viewlog{font-size:11px;color:var(--accent);text-decoration:none}
.studio-item .pending.failed .fail-viewlog:hover{text-decoration:underline}
.studio-item .spin{width:14px;height:14px;border:2px solid var(--border-2);border-top-color:var(--accent);
  border-radius:50%;animation:studiospin .8s linear infinite}
@keyframes studiospin{to{transform:rotate(360deg)}}
.studio-item .thumb.clickable{cursor:pointer}
.studio-item .thumb .playbtn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  pointer-events:none;opacity:0;transition:opacity .13s}
.studio-item .thumb.clickable:hover .playbtn{opacity:1}
.studio-item .thumb .playbtn span{width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.55);
  display:grid;place-items:center;color:#fff}
.studio-item .thumb.clickable:hover{filter:brightness(.85)}
.studio-item .thumb .dl{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;
  background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .13s;cursor:pointer;z-index:2}
.studio-item .thumb.clickable:hover .dl{opacity:1}
.studio-item .thumb .dl:hover{background:rgba(0,0,0,.8)}
.studio-item .thumb .refresh{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;
  background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;z-index:2;transition:background .13s}
.studio-item .thumb .refresh:hover{background:rgba(0,0,0,.8)}
.studio-item .thumb .refresh.spin svg{animation:studiospin .8s linear infinite}
.studio-lightbox-overlay{position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:90;display:none;
  align-items:center;justify-content:center}
.studio-lightbox-overlay.open{display:flex}
.studio-lightbox-body{max-width:min(92vw,1000px);max-height:90vh}
.studio-lightbox-body img,.studio-lightbox-body video{max-width:min(92vw,1000px);max-height:76vh;
  border-radius:var(--radius);display:block}
.studio-lightbox-info{margin-top:10px;padding:10px 14px;border-radius:var(--radius);
  background:rgba(255,255,255,.08);color:#fff;font-size:12px;line-height:1.5;max-width:min(92vw,1000px)}
.studio-lightbox-info .li-prompt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden;margin-bottom:6px;opacity:.9}
.studio-lightbox-info .li-meta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;opacity:.75}
.studio-lightbox-info a{color:#fff;font-weight:600;text-decoration:underline}
.studio-lightbox-close{position:fixed;top:20px;right:20px;background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.2);color:#fff}
.studio-lightbox-close:hover{background:rgba(255,255,255,.18)}
.studio-lightbox-dl{position:fixed;top:20px;right:64px;background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.2);color:#fff}
.studio-lightbox-dl:hover{background:rgba(255,255,255,.18)}
.el-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
@media(max-width:980px){.el-gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.el-gallery{grid-template-columns:repeat(2,1fr)}}
.el-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface);
  box-shadow:var(--shadow);cursor:pointer}
.el-card .thumb{aspect-ratio:3/4;background:var(--surface-2);position:relative;overflow:hidden}
.el-card .thumb img,.el-card .thumb video{width:100%;height:100%;object-fit:cover}
.el-card .thumb .sub{position:absolute;bottom:6px;right:6px;width:30px;height:30px;border-radius:50%;
  overflow:hidden;border:2px solid var(--surface);box-shadow:var(--shadow)}
.el-card .thumb .sub img{width:100%;height:100%;object-fit:cover}
.el-card .meta{padding:8px 10px;display:flex;align-items:center;gap:6px;justify-content:space-between}
.el-card .name{font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.el-card .voice-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);flex-shrink:0}
.el-add{border:1.5px dashed var(--border-2);border-radius:var(--radius);aspect-ratio:3/4;display:grid;
  place-items:center;cursor:pointer;color:var(--text-faint);font-size:28px}
.el-add:hover{border-color:var(--accent);color:var(--accent)}
.voice-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.voice-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);
  box-shadow:var(--shadow);padding:12px 14px;display:flex;align-items:center;gap:10px}
.voice-add{border:1.5px dashed var(--border-2);border-radius:var(--radius);display:flex;align-items:center;
  justify-content:center;gap:8px;min-height:62px;color:var(--text-muted);font-size:13px;font-weight:600;cursor:pointer}
.voice-add:hover{border-color:var(--accent);color:var(--accent)}
.voice-add.busy{opacity:.6;cursor:default;pointer-events:none}
.voice-card .play{flex-shrink:0;width:34px;height:34px;border-radius:50%;background:var(--surface-2);
  color:var(--text);display:flex;align-items:center;justify-content:center;font-size:12px;cursor:pointer}
.voice-card .play:hover,.voice-card .play.playing{background:var(--accent);color:var(--accent-fg)}
.voice-card .info{flex:1;min-width:0}
.voice-card .name{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.voice-card .tag{font-size:10.5px;color:var(--text-faint);margin-top:2px}
.voice-card .del{flex-shrink:0;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;color:var(--text-faint);cursor:pointer;font-size:15px;line-height:1}
.voice-card .del:hover{background:var(--danger-soft);color:var(--danger)}
.el-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:95;display:none;
  align-items:flex-start;justify-content:center;overflow-y:auto;padding:40px 16px}
.el-modal-overlay.open{display:flex}
.el-modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  width:100%;max-width:640px;padding:22px 24px 20px}
.el-modal h3{margin:0 0 16px;font-size:18px}
.el-drop{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start;margin-bottom:6px}
.el-drop .primary{width:120px;height:150px;border-radius:10px;overflow:hidden;position:relative;
  background:var(--surface-2);border:1px dashed var(--border-2);cursor:pointer}
.el-drop .primary img,.el-drop .primary video{width:100%;height:100%;object-fit:cover}
.el-drop .primary .ph{position:absolute;inset:0;display:grid;place-items:center;color:var(--text-faint);
  font-size:12px;text-align:center;padding:8px}
.el-angle{width:64px;height:64px;border-radius:10px;overflow:hidden;position:relative;background:var(--surface-2);
  border:1px solid var(--border-2)}
.el-angle img{width:100%;height:100%;object-fit:cover}
.el-angle .rm{position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:rgba(0,0,0,.6);
  color:#fff;display:grid;place-items:center;cursor:pointer;font-size:10px;line-height:1}
.el-addangle{width:64px;height:64px;border-radius:10px;border:1.5px dashed var(--border-2);display:grid;
  place-items:center;cursor:pointer;color:var(--text-faint);flex-shrink:0}
.el-addangle:hover{border-color:var(--accent);color:var(--accent)}
.el-hint{font-size:12px;color:var(--text-faint);margin:6px 0 18px}
.el-voice-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.el-voice-tile{width:64px;text-align:center;cursor:pointer}
.el-voice-tile .ico{width:64px;height:64px;border-radius:10px;background:var(--surface-2);border:1px solid var(--border-2);
  display:grid;place-items:center;font-size:20px;position:relative;overflow:hidden}
.el-voice-tile.sel .ico{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.el-voice-tile .lbl{font-size:10.5px;color:var(--text-muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.el-voice-tile .tag{position:absolute;top:2px;left:2px;font-size:8px;padding:1px 4px;border-radius:4px;
  background:var(--accent-soft);color:var(--accent);font-weight:700}
.el-voice-tile .play{position:absolute;bottom:2px;right:2px;width:18px;height:18px;border-radius:50%;
  background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;cursor:pointer;font-size:8px}
.el-voice-tile .play:hover,.el-voice-tile .play.playing{background:var(--accent)}
.el-field{margin-bottom:14px}
.el-field label{display:block;font-size:12.5px;color:var(--text-muted);margin-bottom:6px}
.el-field .cnt{float:right;color:var(--text-faint);font-weight:400}
.el-field input[type=text],.el-field textarea,.el-field select{width:100%}
.el-fields-row{display:flex;gap:16px}
.el-fields-row>.el-field{flex:1}
.el-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.el-modal-actions .del{margin-right:auto}
.el-auto-btn{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:5px;
  padding:5px 10px;font-size:11.5px;background:var(--surface-2);border-color:var(--border-2)}
.el-auto-btn:disabled{opacity:.5;cursor:default}
.el-menu{position:absolute;z-index:60;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow-lg);min-width:200px;display:none;overflow:hidden}
.el-menu.open{display:block}
.el-menu .it{padding:10px 14px;font-size:13px;cursor:pointer}
.el-menu .it:hover{background:var(--surface-2)}
.el-picker-overlay{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:96;display:none;
  align-items:flex-start;justify-content:center;overflow-y:auto;padding:40px 16px}
.el-picker-overlay.open{display:flex}
.el-picker{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  width:100%;max-width:640px;padding:20px 22px}
.el-picker h3{margin:0 0 14px;font-size:16px}
.el-picker-empty{color:var(--text-faint);font-size:13px;padding:20px 0;text-align:center}
.st-mention-pop{position:absolute;z-index:60;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow-lg);width:280px;max-height:280px;overflow-y:auto;display:none}
.st-mention-pop.open{display:block}
.st-mention-pop .hd{padding:9px 12px;font-size:12.5px;font-weight:600;cursor:pointer;border-bottom:1px solid var(--border-subtle)}
.st-mention-pop .hd:hover{background:var(--surface-2)}
.st-mention-pop .row{display:flex;align-items:center;gap:9px;padding:8px 12px;cursor:pointer;font-size:13px}
.st-mention-pop .row:hover{background:var(--surface-2)}
.st-mention-pop .row img{width:26px;height:26px;border-radius:6px;object-fit:cover}
.st-mention-pop .empty{padding:14px 12px;font-size:12px;color:var(--text-faint)}
.assets-search{display:block;box-sizing:border-box;width:100%;max-width:420px;margin:0 0 14px;padding:8px 12px;font:inherit;font-size:13px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.assets-search:focus{border-color:var(--accent);outline:none}
.studio-item .drive-place{display:block;max-width:100%;margin-top:6px;padding:0;border:0;background:none;font:inherit;font-size:11px;color:var(--accent);text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drive-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.drive-bar .assets-search{flex:1;min-width:180px;width:auto;margin:0 auto 0 0}
.drive-path{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0 0 8px;font-size:13px;color:var(--text-faint)}
.drive-path:empty{display:none}
.drive-path button{background:none;border:0;padding:3px 5px;font:inherit;color:var(--accent);cursor:pointer}
.drive-path button.on{color:var(--text);font-weight:700}
.drive-msg{font-size:12px;color:var(--text-muted);margin:0 0 8px}
.drive-msg:empty{display:none}
.drive-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:0 0 14px}
.drive-folders:empty{display:none}
.drive-folder{display:flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:8px 8px 8px 11px}
.drive-folder:hover{border-color:var(--accent)}
.drive-folder .open{flex:1;min-width:0;background:none;border:0;padding:0;text-align:left;font:inherit;color:var(--text);cursor:pointer}
.drive-folder .name{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drive-folder .count{display:block;font-size:11px;color:var(--text-faint)}
.drive-more,.drive-move{font:inherit;color:var(--text-muted);background:none;border:1px solid transparent;border-radius:7px;cursor:pointer}
.drive-move:hover,.drive-move[aria-expanded="true"]{color:var(--text);background:var(--surface-2);border-color:var(--border)}
.drive-more{flex-shrink:0;width:30px;height:30px;font-size:16px;line-height:1;border:0;box-shadow:none;outline:none;-webkit-tap-highlight-color:transparent}
.drive-more:hover,.drive-more[aria-expanded="true"]{color:var(--text)}
.drive-more:focus-visible{color:var(--accent)}
.studio-item .drive-move{margin-top:7px;padding:3px 9px;font-size:11px;font-weight:600;border-color:var(--border)}
.st-menu{position:fixed;z-index:70;box-sizing:border-box;min-width:176px;max-width:280px;overflow-y:auto;overscroll-behavior:contain;padding:5px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg)}
.st-menu button{display:block;width:100%;padding:8px 10px;border:0;background:none;font:inherit;font-size:13px;color:var(--text);text-align:left;border-radius:6px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-menu button:hover,.st-menu button:focus-visible{background:var(--surface-2);outline:none}
.st-menu button.danger{color:var(--danger)}
.st-menu .heading{padding:6px 10px 3px;font-size:11px;font-weight:600;color:var(--text-faint)}
.st-menu .line{height:1px;margin:5px 3px;background:var(--border)}
.pls-layout{display:grid;grid-template-columns:120px 1fr 500px;gap:18px;max-width:1340px;margin:0 auto 26px;
  align-items:start}
@media(max-width:900px){.pls-layout{grid-template-columns:1fr;max-width:640px}}
.pls-photo-col{display:flex;flex-direction:column;gap:10px}
.pls-photo-add{width:100%;aspect-ratio:3/4;border-radius:10px;border:1.5px dashed var(--border-2);
  display:grid;place-items:center;cursor:pointer;color:var(--text-faint);font-size:12px;text-align:center;gap:4px}
.pls-photo-add:hover{border-color:var(--accent);color:var(--accent)}
.pls-photo-add .plus{font-size:20px;line-height:1}
.pls-photo-tabs{display:flex;gap:4px;padding:3px;background:var(--surface-2);border:1px solid var(--border);
  border-radius:9999px}
.pls-photo-tabs button{flex:1;border:none;background:none;padding:5px 0;border-radius:9999px;font:inherit;
  font-weight:600;font-size:11px;color:var(--text-muted);cursor:pointer}
.pls-photo-tabs button.active{background:var(--accent);color:var(--accent-fg)}
.pls-photo-strip{display:flex;flex-direction:column;gap:10px;max-height:420px;overflow-y:auto}
.pls-photo-thumb{width:100%;flex-shrink:0;aspect-ratio:3/4;border-radius:10px;overflow:hidden;cursor:pointer;
  border:2px solid transparent;background:var(--surface-2);position:relative}
.pls-photo-thumb img{width:100%;height:100%;object-fit:cover}
.pls-photo-thumb.sel{border-color:var(--accent)}
.pls-photo-thumb .cap{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.55);color:#fff;
  font-size:9px;padding:2px 4px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pls-photo-empty{color:var(--text-faint);font-size:11.5px;text-align:center;padding:16px 4px}
.pls-preview-col{border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;min-height:420px;overflow:hidden;position:relative}
.pls-preview-col img,.pls-preview-col video{max-width:100%;max-height:520px;object-fit:contain}
.pls-sel-badge{position:absolute;left:10px;bottom:10px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;
  font-weight:600;padding:4px 10px;border-radius:9999px}
.pls-preview-empty{color:var(--text-faint);font-size:13px;text-align:center;padding:20px}
.pls-panel-col h3{margin:0 0 14px;font-size:17px}
#plsSongPane{max-height:504px;overflow-y:auto;padding-right:4px}
.pls-style-summary{display:flex;align-items:center;gap:12px;padding:8px 14px;border:1px solid var(--border-2);
  border-radius:9999px;background:var(--surface-2);cursor:pointer;transition:.13s}
.pls-style-summary:hover{border-color:var(--text-faint)}
.pls-style-summary img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}
.pls-style-summary .lbl{flex:1;font-size:14.5px;font-weight:700;color:var(--text)}
.pls-style-summary .more{display:flex;align-items:center;gap:2px;font-size:14px;font-weight:700;color:var(--text);
  flex-shrink:0}
.pls-style-summary .more .chev{font-size:17px;line-height:1}
.pls-style-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:6px}
.pls-style-tile{border:1.5px solid var(--border-2);border-radius:10px;cursor:pointer;overflow:hidden;
  position:relative;aspect-ratio:4/3;background:var(--surface-2);transition:.13s}
.pls-style-tile:hover{border-color:var(--text-faint)}
.pls-style-tile.sel{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.pls-style-tile img{width:100%;height:100%;object-fit:cover;display:block}
.pls-style-tile .lbl{position:absolute;bottom:0;left:0;right:0;padding:6px 8px;font-size:12px;font-weight:700;
  color:#fff;background:linear-gradient(0deg,rgba(0,0,0,.72),transparent)}
.pls-style-tile .play{position:absolute;bottom:6px;right:6px;width:22px;height:22px;border-radius:50%;
  background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;
  font-size:9px;z-index:2}
.pls-style-tile .play:hover,.pls-style-tile .play.playing{background:var(--accent)}
.pls-picker-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:97;display:none;
  align-items:flex-start;justify-content:center;overflow-y:auto;padding:40px 16px}
.pls-picker-modal-overlay.open{display:flex}
.pls-picker-modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  width:100%;max-width:920px;padding:24px 26px;max-height:calc(100vh - 80px);display:flex;flex-direction:column}
.pls-picker-modal-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-shrink:0}
.pls-picker-modal-hd h3{margin:0;font-size:20px}
.pls-picker-modal-hd .x{cursor:pointer;font-size:24px;line-height:1;color:var(--text-muted)}
.pls-picker-modal-hd .x:hover{color:var(--text)}
.pls-picker-modal-empty{grid-column:1/-1;text-align:center;color:var(--text-faint);font-size:13px;padding:30px 0}
.pls-picker-modal-confirm{margin:18px 0 0 auto;display:block;flex-shrink:0}
.pls-song-modal-search{width:100%;padding:11px 14px;font-size:14px;border:1px solid var(--border-2);
  border-radius:var(--radius-sm);background:var(--surface);margin-bottom:16px;flex-shrink:0}
.pls-song-modal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;overflow-y:auto;padding-right:4px}
@media(max-width:720px){.pls-song-modal-grid{grid-template-columns:repeat(2,1fr)}}
.pls-voice-modal-tabs{display:flex;gap:4px;padding:3px;background:var(--surface-2);border:1px solid var(--border);
  border-radius:9999px;margin-bottom:16px;max-width:220px;flex-shrink:0}
.pls-voice-modal-tabs button{flex:1;border:none;background:none;padding:7px 0;border-radius:9999px;font:inherit;
  font-weight:600;font-size:12.5px;color:var(--text-muted);cursor:pointer}
.pls-voice-modal-tabs button.active{background:var(--accent);color:var(--accent-fg)}
.pls-voice-record-row{display:flex;align-items:center;gap:8px;width:100%;padding:11px 14px;margin-bottom:10px;
  border:1.5px dashed var(--border-2);border-radius:var(--radius-sm);background:none;color:var(--accent);
  font:inherit;font-weight:600;font-size:13.5px;text-align:left;cursor:pointer;flex-shrink:0}
.pls-voice-record-row:hover{border-color:var(--accent)}
.pls-voice-record-row.recording{border-color:var(--danger);border-style:solid;color:var(--danger)}
.pls-voice-record-row .pls-record-dot{width:8px;height:8px;border-radius:50%;background:var(--danger);display:none}
.pls-voice-record-row.recording .pls-record-dot{display:inline-block;animation:plsblink 1s ease-in-out infinite}
.pls-voice-modal-grid{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding-right:4px}
.pls-voice-tile{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;
  border:1.5px solid var(--border-2);border-radius:var(--radius-sm);cursor:pointer;transition:.13s}
.pls-voice-tile:hover{border-color:var(--text-faint)}
.pls-voice-tile.sel{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.pls-voice-tile .lbl{font-size:14px;font-weight:600;color:var(--text)}
.pls-voice-tile .play{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--surface-2);
  color:var(--text);display:flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer}
.pls-voice-tile .play:hover,.pls-voice-tile .play.playing{background:var(--accent);color:var(--accent-fg)}
.pls-modal-tile{border:1.5px solid var(--border-2);border-radius:10px;cursor:pointer;transition:.13s;
  background:var(--surface-2);position:relative}
.pls-modal-tile:hover{border-color:var(--text-faint)}
.pls-modal-tile.sel{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.pls-modal-thumb{width:100%;aspect-ratio:4/3;border-radius:8.5px;overflow:hidden}
.pls-modal-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pls-modal-tile-row{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;
  justify-content:space-between;gap:8px;padding:7px 9px;border-radius:0 0 8.5px 8.5px;
  background:linear-gradient(0deg,rgba(0,0,0,.72),transparent)}
.pls-modal-tile-lbl{font-size:12px;font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.pls-modal-tile-play{flex-shrink:0;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:9px;cursor:pointer}
.pls-modal-tile-play:hover,.pls-modal-tile-play.playing{background:var(--accent)}
.pls-text{width:100%;min-height:120px;font-size:13.5px;border:1px solid var(--border-2);border-radius:var(--radius-sm);
  padding:10px 12px;resize:vertical;background:var(--surface)}
.pls-voice-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  margin-top:12px;padding:12px 14px;border:1px solid var(--border-2);border-radius:var(--radius-sm);
  background:var(--surface-2);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:.13s}
.pls-voice-row:hover{border-color:var(--text-faint)}
.pls-voice-row-lbl{font-size:13px;font-weight:700;color:var(--text)}
.pls-voice-row-val{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}
.pls-voice-row-chev{flex-shrink:0;color:var(--text-faint);font-size:16px;line-height:1}
.pls-audio-drop{border:1.5px dashed var(--border-2);border-radius:var(--radius-sm);padding:22px 12px;
  text-align:center;font-size:13px;color:var(--text-muted);cursor:pointer;margin-bottom:10px}
.pls-audio-drop:hover{border-color:var(--accent);color:var(--accent)}
.pls-audio-drop .fn{display:block;margin-top:6px;font-size:11.5px;color:var(--text-faint)}
.pls-record-btn{display:flex;align-items:center;gap:8px;justify-content:center;width:100%}
.pls-record-btn.recording{border-color:var(--danger);color:var(--danger)}
.pls-record-dot{width:8px;height:8px;border-radius:50%;background:var(--danger);display:none}
.pls-record-btn.recording .pls-record-dot{display:inline-block;animation:plsblink 1s ease-in-out infinite}
@keyframes plsblink{0%,100%{opacity:1}50%{opacity:.2}}
.pls-gen{margin-top:16px}
.pls-back{display:inline-block;margin-bottom:16px;font-size:12.5px;font-weight:600;color:var(--text-muted);
  cursor:pointer;text-decoration:none}
.pls-back:hover{color:var(--text)}
.simple-tool{max-width:520px;margin:0 auto 30px}
.simple-tool-drop{width:100%;aspect-ratio:4/3;border-radius:var(--radius);border:1.5px dashed var(--border-2);
  display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;background:var(--surface-2);
  margin-bottom:14px}
.simple-tool-drop:hover{border-color:var(--accent)}
.simple-tool-drop .ph{color:var(--text-faint);font-size:13px;text-align:center;padding:20px}
.simple-tool-drop img,.simple-tool-drop video{width:100%;height:100%;object-fit:contain}
.simple-tool select{width:100%;margin-bottom:14px}
.simple-tool .studio-gen{width:100%;justify-content:center}
.ref-editor{display:block;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:break-word;overflow-y:auto;
  max-height:360px;cursor:text;outline:none;text-align:left;resize:vertical}
.ref-editor.is-empty{position:relative}
.ref-editor.is-empty::before{content:attr(data-placeholder);color:var(--text-faint,#9ca3af);pointer-events:none;
  position:absolute;left:0;right:0;top:0;padding:inherit}
.ref-editor.has-chips{line-height:2.05}
.ref-chip{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;margin:0 2px;padding:2px 8px 2px 2px;
  border:1px solid var(--border-2,#e5e7eb);border-radius:8px;background:var(--surface,#fff);line-height:1.25;
  white-space:nowrap;user-select:all}
.ref-chip>img,.ref-chip>video,.ref-chip>i{width:2.5em;height:1.45em;margin:0;padding:0;border:0;border-radius:5px;
  object-fit:cover;background:var(--surface-2,#f3f4f6);flex:none}
.ref-chip>i{display:grid;place-items:center;font-style:normal;color:var(--text-muted,#6b7280)}
.ref-menu{position:fixed;z-index:1000;min-width:170px;max-height:260px;overflow-y:auto;padding:4px;
  border:1px solid var(--border-2,#e5e7eb);border-radius:10px;background:var(--surface,#fff);color:var(--text,#111);
  box-shadow:0 10px 30px -8px rgba(0,0,0,.35);font-size:13px}
.ref-menu>div{display:flex;align-items:center;gap:9px;padding:6px 9px;border-radius:7px;cursor:pointer}
.ref-menu>div.on{background:var(--surface-2,#f3f4f6)}
.ref-menu img,.ref-menu video,.ref-menu i{width:38px;height:24px;border-radius:5px;object-fit:cover;
  background:var(--surface-3,#e5e7eb);display:grid;place-items:center;font-style:normal;flex:none}
.vst-tts-card{max-width:640px;margin:0 0 16px}
.vst-field-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  color:var(--text-faint)}
.vst-field-hint{font-size:12.5px;color:var(--text-muted);margin-top:4px;line-height:1.5}
.vst-script{width:100%;min-height:130px;border:none;background:none;padding:0;margin-top:14px;
  resize:vertical;font-size:14px;color:var(--text);font-family:inherit}
.vst-script:focus{outline:none;border-color:transparent;box-shadow:none;background:none}
.vst-voice-card{display:flex;align-items:center;justify-content:space-between;width:100%;
  cursor:pointer;text-align:left;color:inherit;font:inherit;transition:border-color .13s}
.vst-voice-card:hover{border-color:var(--text-faint)}
.vst-voice-value{display:block;font-size:16px;font-weight:700;color:var(--text);margin-top:4px}
.vst-chev{flex-shrink:0;color:var(--text-faint);font-size:20px;line-height:1}
.vst-generate{width:100%;justify-content:center}
.vst-list{display:flex;flex-direction:column;gap:10px;max-width:640px}
.vst-list + .st-list-pager{max-width:640px}
.vst-item{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;background:var(--surface)}
.vst-item .txt{font-size:12.5px;color:var(--text-muted);margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.vst-item audio{width:100%}
html[data-st-kind="voicestudio"] .content{max-width:none;width:100%;margin:0;padding-left:18px;padding-right:18px}
.vst-two{display:grid;grid-template-columns:minmax(290px,1fr) minmax(0,4fr);gap:16px;align-items:start}
.vst-left{display:flex;flex-direction:column;gap:10px;position:sticky;top:76px;z-index:6;padding:14px;border:1px solid var(--border-2);border-radius:24px;background:var(--bg)}
.vst-right{border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:14px 18px 20px;min-height:calc(100vh - 150px)}
.vst-left .st-vtabs,.vst-left .st-mhero{display:flex}
.vst-left .st-mhero{display:block;position:relative;padding:18px 16px 16px;border-radius:16px;min-height:112px;
  background:linear-gradient(150deg,color-mix(in srgb,var(--accent) 20%,var(--surface)) 0%,var(--surface-2) 60%,var(--surface) 100%);border:1px solid var(--border)}
.vst-left .st-vtabs{gap:14px;border-bottom:1px solid var(--border);margin:0 2px 2px;overflow-x:auto;scrollbar-width:none}
.vst-left .st-vtabs button{border:0;background:none;font:inherit;font-size:13.5px;font-weight:500;color:var(--text-muted);padding:8px 0 10px;
  margin-bottom:-1px;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.vst-left .st-vtabs button:hover{color:var(--text)}
.vst-left .st-vtabs button.on{color:var(--accent);border-bottom-color:var(--accent)}
.vst-box{border:1px solid var(--border-2);border-radius:16px;padding:12px 14px 8px}
.vst-box-h{display:flex;justify-content:space-between;font-size:13.5px;color:var(--text-muted)}
.vst-box .vst-script{margin-top:8px;min-height:190px;font-size:15px}
.vst-left .vst-generate{height:50px;border-radius:999px;font-size:16px;font-weight:600}
.vst-right .st-rtabs{display:inline-flex;gap:2px;padding:3px;margin-bottom:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}
.vst-two[data-tab="history"] .st-rtabs [data-t="history"],.vst-two[data-tab="how"] .st-rtabs [data-t="how"]{background:var(--accent-soft);color:var(--accent)}
.vst-right .vst-list,.vst-right .st-list-pager{max-width:none}
.vst-two .vst-how{display:none}
.vst-two[data-tab="how"] .vst-how{display:block}
.vst-two[data-tab="how"] .vst-list,.vst-two[data-tab="how"] .st-list-pager{display:none!important}
.vst-art-voices{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:0 18%;background:radial-gradient(110% 90% at 50% 0%,#202026,#0e0e11 80%)}
.vst-art-voices i{display:flex;align-items:center;gap:7px;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.06)}
.vst-art-voices b{width:16px;height:16px;border-radius:50%;flex-shrink:0}
.vst-art-voices u{text-decoration:none;font-size:8.5px;color:#fff;width:34px;flex-shrink:0}
.vst-art-voices s{flex:1;height:7px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.4) 0 1.5px,transparent 1.5px 4px);opacity:.8}
.vst-art-script{display:grid;place-items:center;position:relative;background:radial-gradient(110% 90% at 50% 0%,#202026,#0e0e11 80%)}
.vst-art-script span{display:block;width:66%;height:58%;border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:8px;font-size:10px;color:#fff}
.vst-art-script em{display:inline-block;font-style:normal;font-size:7.5px;padding:1px 6px;border-radius:99px;background:rgba(255,255,255,.12);margin-right:5px}
.vst-art-script q{display:inline-block;width:1px;height:10px;background:var(--accent);margin-left:1px;vertical-align:middle}
.vst-art-script b{position:absolute;right:21%;bottom:17%;width:22px;height:22px;border-radius:50%;background:var(--accent)}
.vst-art-listen{position:relative}
.vst-art-listen div{position:absolute;left:0;right:0;bottom:0;padding:22px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.vst-art-listen p{margin:0 0 6px;font-size:10px;font-weight:600;color:#fff;line-height:1.3}
.vst-art-listen s{display:block;height:8px;background:repeating-linear-gradient(90deg,var(--accent) 0 2px,transparent 2px 5px)}
@media(max-width:980px){.vst-two{grid-template-columns:1fr}.vst-left{position:static}}
.vst-two .vst-voices{display:none}
.vst-two[data-tab="voices"] .vst-voices{display:block}
.vst-two[data-tab="voices"] .vst-hist,.vst-two[data-tab="voices"] .vst-how{display:none!important}
.vst-two[data-tab="how"] .vst-hist{display:none!important}
.vst-two[data-tab="voices"] .st-rtabs [data-t="voices"]{background:var(--accent-soft);color:var(--accent)}
.vst-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:96px;padding:12px 10px;text-align:center;
  border:1px dashed var(--border-2);border-radius:16px;cursor:pointer;color:var(--text)}
.vst-tile:hover{border-color:var(--text-faint);background:var(--surface-2)}
.vst-tile b{font-size:14.5px;font-weight:600}
.vst-tile small{font-size:12px;color:var(--text-muted)}
.vst-req{position:absolute;right:8px;top:8px;font-size:11px;color:var(--text-muted);background:var(--surface-3);padding:2px 8px;border-radius:99px}
.vst-modeltile,.vst-tile.vst-off:not(:first-of-type){min-height:0;align-items:flex-start;text-align:left;border-style:solid;padding:7px 14px}
.vst-modeltile .st-tl,.vst-off .st-tl{font-size:12px;color:var(--text-muted)}
.vst-off{opacity:.55;cursor:default}
.vst-off:hover{background:none;border-color:var(--border-2)}
.vst-soon{padding:8px 12px;border-radius:12px;background:var(--warning-soft);color:var(--warning);font-size:12.5px;font-weight:600}
.vst-left .vst-gen,.vst-left .vst-generate{height:48px;border-radius:999px;font-size:15.5px;font-weight:600;justify-content:center;width:100%}
.vc-recpill{align-self:flex-start;display:inline-flex;align-items:center;gap:7px}
.vc-recpill::before{content:"";width:15px;height:15px;flex-shrink:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center/contain no-repeat}
#vstSubtabRow{display:none!important}
.vst-left .st-tl{display:block}
.vst-left>*{flex-shrink:0}
.vst-two{grid-template-columns:minmax(380px,1fr) minmax(0,4fr)!important}
.vst-left{max-height:calc(100vh - 92px);overflow-y:auto;scrollbar-width:thin}
.vst-left .st-vtabs{gap:9px!important;flex-shrink:0;margin-right:0!important;justify-content:space-between}   
.vst-left .st-vtabs button{font-size:12px!important;white-space:nowrap}
.vst-left .st-vtabs button:last-child{padding-right:2px}
#vstMusicPane .ms-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-top:8px}
#vstMusicPane .ms-chip{white-space:nowrap;flex-shrink:0}
#vstVcPane .vc-modes{margin:0}
#vstVcPane .vst-left>.vc-err{margin:0}
#vcFileBox,#vcLiveBox{display:flex;flex-direction:column;gap:8px}
#vcFileBox[style*="none"],#vcLiveBox[style*="none"]{display:none}
#vcLiveBox .vc-bar{margin:0;flex-direction:column}
#vcLiveBox .vc-pill,#vcLiveBox .vc-pill.vc-main{flex:0 0 auto;min-height:44px}
#vcLiveBox .vc-meter{max-width:none;margin:2px 4px 0}
#vcFileBox .st-tile{display:block;position:relative;border:1px solid var(--border-2);border-radius:16px;padding:7px 14px 6px}
#vcFileBox .st-tile .st-tl{display:block;font-size:12px;color:var(--text-muted)}
#vcFileBox .st-tile select{display:block;width:100%;background:transparent;border:0;border-radius:0;padding:0;font-size:15px;font-weight:500;color:var(--text)}
.vst-right .vc-results{max-width:none}
.vst-right .vc-library{background:transparent;border:0;box-shadow:none;padding:0}
.vst-right .vc-grid{max-height:none}
.vst-art-wave,.vst-art-chips,.vst-art-langs{display:flex;align-items:center;justify-content:center;background:radial-gradient(110% 90% at 50% 0%,#202026,#0e0e11 80%)}
.vst-art-wave i{display:block;width:70%;height:34%;border-radius:10px;border:1px solid rgba(255,255,255,.12);
  background:repeating-linear-gradient(90deg,#ff7a66 0 2px,transparent 2px 5px);-webkit-mask:linear-gradient(transparent 20%,#000 20% 80%,transparent 80%);mask:linear-gradient(transparent 20%,#000 20% 80%,transparent 80%)}
.vst-art-chips{flex-wrap:wrap;align-content:center;gap:6px;padding:0 14%}
.vst-art-chips span{font-size:10.5px;padding:3px 9px;border-radius:99px;color:#fff;background:color-mix(in srgb,var(--accent) 35%,#14141a);border:1px solid color-mix(in srgb,var(--accent) 60%,transparent)}
.vst-art-langs{flex-wrap:wrap;align-content:center;gap:6px;padding:0 16%}
.vst-art-langs span{flex:0 0 calc(50% - 3px);text-align:center;font-size:10.5px;font-weight:600;color:#fff;padding:5px 0;border-radius:6px;background:rgba(255,255,255,.1)}
.vst-art-voices i.on{outline:1px solid var(--accent);background:rgba(255,255,255,.1)}
#vstMusicPane .vst-left{gap:6px}
#vstMusicPane #msModel,#vstMusicPane .ms-card:has(#msModel){display:none}
#vstMusicPane .st-mhero{padding:8px 12px 9px}
#vstMusicPane .st-mhero .st-mname{margin-top:6px;font-size:19px}
#vstMusicPane .st-mhero .st-msub{font-size:12px;margin-top:1px}
#vstMusicPane .st-mhero .st-change{top:7px;right:8px;padding:4px 10px;font-size:12px}
#vstMusicPane .ms-card{padding:9px 12px}
#vstMusicPane .ms-seg{margin-bottom:6px;padding:2px}
#vstMusicPane .ms-seg button{padding:4px 13px;font-size:12.5px}
#vstMusicPane .ms-label{margin-bottom:3px;font-size:12.5px}
#vstMusicPane .ms-text{min-height:64px;font-size:14px;line-height:1.45}
#vstMusicPane .ms-chips{margin-top:6px}
#vstMusicPane .ms-chip{font-size:11.5px;padding:3px 10px}
#vstMusicPane #msInstrCard .ms-toggle .d{display:none}
#vstMusicPane #msInstrCard .ms-toggle .t{font-size:13.5px}
#vstMusicPane #msInstrCard{padding:8px 12px}
#vstMusicPane .ms-adv summary{font-size:12.5px}
#vstMusicPane .ms-gen{position:sticky;bottom:0;z-index:2;height:44px;font-size:15px;box-shadow:0 -10px 14px -6px var(--bg)}
#vstMusicPane .studio-err{margin:0}
.vst-left .st-mhero{min-height:0!important;padding:8px 12px 9px!important}
.vst-left .st-mhero .st-mname{margin-top:0!important;font-size:18px!important;line-height:1.2;padding-right:92px}
.vst-left .st-mhero .st-msub{margin-top:1px!important;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vst-left .st-mhero .st-change{top:6px!important;right:7px!important;padding:4px 10px!important;font-size:12px!important;border-radius:8px}
.vst-wait{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-faint)}
.vst-comingsoon{max-width:520px;margin:40px auto;text-align:center;padding:30px 20px;border:1px dashed var(--border-2);
  border-radius:var(--radius)}
.vst-comingsoon h3{margin:0 0 10px;font-size:17px}
.vst-comingsoon p{margin:0;font-size:13px;color:var(--text-muted);line-height:1.6}
.vc-app{width:100%;color:var(--text)}
.vc-app button,.vc-app input,.vc-app select{font:inherit}
.vc-library{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px 2px;
  box-shadow:var(--shadow)}
.vc-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--border);padding-bottom:8px}
.vc-tabs{display:flex;flex-wrap:wrap;gap:4px}
.vc-tabs button{display:inline-flex;align-items:center;gap:7px;border:1px solid transparent;background:none;
  color:var(--text-muted);font-size:12.5px;font-weight:600;padding:5px 12px;border-radius:999px;cursor:pointer}
.vc-tabs button:hover{color:var(--text)}
.vc-tabs button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.vc-tabs .star{color:#f5b301}
.vc-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.vc-app select{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:999px;
  padding:5px 10px;font-size:12.5px;cursor:pointer}
.vc-search{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:999px;
  padding:6px 13px;font-size:12.5px;width:190px;max-width:100%}
.vc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:12px 4px;align-content:start;
  min-height:120px;max-height:clamp(220px,calc(100vh - 415px),760px);overflow-y:auto;padding:12px 2px 10px;scrollbar-width:thin;
  scrollbar-color:var(--border-2) transparent}
.vc-voice{display:flex;flex-direction:column;align-items:center;text-align:center;cursor:pointer;min-width:0}
.vc-ava{position:relative;width:62px;height:62px;border-radius:50%;border:2px solid transparent;padding:2px;
  transition:transform .14s,border-color .14s}
.vc-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;background:var(--surface-2)}
.vc-voice:hover .vc-ava{transform:translateY(-2px)}
.vc-voice.sel .vc-ava{border-color:var(--accent)}
.vc-voice:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:12px}
.vc-dot{position:absolute;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--surface);border:1px solid var(--border-2);box-shadow:var(--shadow);color:var(--text);font-size:10px;line-height:1;cursor:pointer}
.vc-fav{top:-3px;right:-5px;color:var(--text-faint);font-size:11px;opacity:0;transition:opacity .12s}
.vc-voice:hover .vc-fav,.vc-voice:focus-within .vc-fav,.vc-fav.on{opacity:1}
.vc-fav.on{color:#f5b301}
.vc-play{bottom:-3px;right:-5px;font-size:8px}
.vc-play:hover{background:var(--surface-3)}
.vc-check{bottom:-3px;left:-5px;background:var(--accent);border-color:var(--accent);color:var(--accent-fg);font-weight:800;cursor:default}
.vc-more{top:-3px;left:-5px;font-size:12px}
.vc-name{font-size:12.5px;font-weight:600;margin-top:5px;line-height:1.3;color:var(--text);max-width:100%;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.vc-voice.sel .vc-name{color:var(--accent);font-weight:700}
.vc-meta{display:flex;align-items:center;justify-content:center;gap:4px;font-size:10.5px;color:var(--text-muted);margin-top:1px;line-height:1.35;
  max-width:100%;white-space:nowrap;overflow:hidden}
.vc-meta svg{width:11px;height:11px;flex-shrink:0}
.vc-clip{min-width:0;overflow:hidden;text-overflow:ellipsis}
.vc-tag{font-size:10px;font-weight:700;padding:0 6px;border-radius:999px;background:var(--surface-3);color:var(--text-muted)}
.vc-tag.pending{background:var(--warning-soft);color:var(--warning)}.vc-tag.public{background:var(--success-soft);color:var(--success)}
.vc-tag.rejected{background:var(--danger-soft);color:var(--danger)}
.vc-new .vc-ava{display:flex;align-items:center;justify-content:center;background:var(--surface-2);
  border:1px dashed var(--border-2);font-size:22px;font-weight:300;color:var(--text-muted)}
.vc-new:hover .vc-ava{color:var(--accent);border-color:var(--accent)}
.vc-empty{grid-column:1/-1;text-align:center;color:var(--text-muted);font-size:13px;padding:26px 0}
.vc-err{display:none;margin:10px 4px 0;padding:9px 14px;border-radius:12px;background:var(--danger-soft);color:var(--danger);font-size:13px}
.vc-err.show{display:block}
.vc-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.vc-pill{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);
  border-radius:999px;padding:3px 14px 3px 5px;min-height:44px}
.vc-pill.vc-main{flex:0 1 250px}
.vc-pill.vc-main.live{border-color:var(--accent);background:linear-gradient(var(--accent-soft),var(--accent-soft)),var(--surface)}
.vc-ico{width:32px;height:32px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;
  justify-content:center;color:var(--text-muted);flex-shrink:0}
.vc-ico svg{width:15px;height:15px}
.vc-go{width:34px;height:34px;border-radius:50%;border:none;cursor:pointer;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));color:var(--accent-fg);font-size:11px;flex-shrink:0}
.vc-go:disabled{opacity:.45;cursor:default}
.vc-k{display:block;font-size:10.5px;color:var(--text-muted);line-height:1.3}
.vc-pill.live .vc-k{color:var(--accent)}
.vc-v{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;line-height:1.3}
.vc-v img{width:16px;height:16px;border-radius:50%;object-fit:cover}
.vc-app .vc-pill select{background:transparent;border:none;border-radius:0;padding:0 4px 0 0;font-size:12.5px;font-weight:700}
.vc-pill select option{background:var(--surface);color:var(--text)}
.vc-app input[type=checkbox].vc-switch{width:32px;height:18px;appearance:none;-webkit-appearance:none;border-radius:999px;
  background:var(--border-2);position:relative;cursor:pointer;flex-shrink:0;margin:0 0 0 6px}
.vc-switch::after{content:'';position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;
  transition:left .13s}
.vc-app input[type=checkbox].vc-switch:checked{background:var(--accent)}
.vc-switch:checked::after{left:16px}
.vc-meter{height:3px;border-radius:3px;background:var(--border);overflow:hidden;margin:6px 8px 0;max-width:234px}
.vc-meter i{display:block;height:100%;width:0;background:var(--accent);transition:width .1s linear}
.vc-status{font-size:12px;margin:4px 8px 0;min-height:1.4em;font-variant-numeric:tabular-nums}
.vc-note{font-size:11.5px;color:var(--text-muted);line-height:1.5;margin:2px 8px 0}
.vc-modes{display:flex;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:3px;
  width:max-content;max-width:100%;margin:0 0 8px}
.vc-modes button{border:none;background:none;color:var(--text-muted);font-size:12.5px;font-weight:600;padding:5px 13px;
  border-radius:999px;cursor:pointer}
.vc-modes button.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.vc-file{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.vc-btn{background:var(--surface-2);color:var(--text);border:1px solid var(--border-2);border-radius:999px;padding:6px 14px;
  font-size:12.5px;font-weight:600;cursor:pointer}
.vc-btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));border-color:transparent;color:var(--accent-fg)}
.vc-btn.danger{color:var(--danger)}
.vc-btn:disabled{opacity:.5;cursor:default}
.vc-app input[type=file]{color:var(--text-muted);font-size:12.5px;max-width:100%}
#vcSource{margin-top:12px;width:100%;max-width:640px}
.vc-results{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.vc-result{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:12px 16px;max-width:660px}
.vc-result .t{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--text-muted);margin-bottom:8px}
.vc-result a{color:var(--accent)}
.vc-result audio{width:100%}
.vc-overlay{display:none;position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.66);align-items:center;
  justify-content:center;padding:16px}
.vc-overlay.open{display:flex}
.vc-modal{box-shadow:var(--shadow-lg);border-radius:20px;width:520px;max-width:100%;max-height:90vh;overflow-y:auto;padding:20px 22px}
.vc-modal h3{margin:0 0 14px;font-size:18px;display:flex;justify-content:space-between;align-items:center}
.vc-x{background:none;border:none;color:var(--text-muted);font-size:22px;cursor:pointer;line-height:1}
.vc-field{margin-bottom:14px}
.vc-field>span{display:block;font-size:12px;font-weight:700;color:var(--text-muted);margin-bottom:6px}
.vc-app input[type=text]{width:100%;box-sizing:border-box;background:var(--surface-2);color:var(--text);
  border:1px solid var(--border);border-radius:12px;padding:10px 13px}
.vc-picker{display:flex;gap:8px;overflow-x:auto;padding:3px;scrollbar-width:thin;scrollbar-color:var(--border-2) transparent}
.vc-picker img{width:52px;height:52px;border-radius:50%;cursor:pointer;border:3px solid transparent;flex-shrink:0}
.vc-picker img.on{border-color:var(--accent)}
.vc-checkline{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;margin-bottom:10px;cursor:pointer}
.vc-checkline input{margin-top:3px;accent-color:var(--accent)}
.vc-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}
.vc-hero{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.vc-hero img{width:68px;height:68px;border-radius:50%}
.vc-id{display:block;font-size:12px;color:var(--text-muted);margin-top:8px;user-select:all}
@media (max-width:640px){.vc-library{padding:10px}
  .vc-ava{width:56px;height:56px}.vc-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:12px 2px}
  .vc-search{width:100%}.vc-tools{width:100%}.vc-pill{width:100%;box-sizing:border-box}.vc-pill.vc-main{flex:1 1 100%}
  .vc-modes{width:100%;box-sizing:border-box}.vc-modes button{flex:1;padding:8px 6px}}
.ms-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:24px;align-items:start}
.ms-compose{display:block;min-width:0}
.ms-col{min-width:0}
@media(min-width:2200px){
  .ms-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px}
  .ms-compose{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
}
@media(max-width:960px){.ms-layout{grid-template-columns:1fr}}
.ms-card{max-width:none;margin:0 0 14px}
.ms-seg{display:inline-flex;border:1px solid var(--border-2);border-radius:999px;padding:3px;gap:2px;margin-bottom:16px;
  background:var(--surface)}
.ms-seg button{border:none;background:none;color:var(--text-muted);font:inherit;font-size:13px;font-weight:600;
  padding:6px 16px;border-radius:999px;cursor:pointer;transition:.13s}
.ms-seg button.active{background:var(--accent-soft);color:var(--accent)}
.ms-seg button:disabled{opacity:.45;cursor:default}
.ms-label{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint);margin-bottom:8px}
.ms-label .ms-count{font-weight:500;text-transform:none;letter-spacing:0}
.ms-text{width:100%;border:none;background:none;padding:0;resize:vertical;font-size:14.5px;line-height:1.55;
  color:var(--text);font-family:inherit;min-height:84px}
.ms-text:focus{outline:none;box-shadow:none;background:none;border-color:transparent}
.ms-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.ms-chip{border:1px solid var(--border-2);background:var(--surface);color:var(--text-muted);font:inherit;font-size:12px;
  padding:4px 11px;border-radius:999px;cursor:pointer;transition:.13s}
.ms-chip:hover{border-color:var(--accent);color:var(--accent)}
.ms-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;user-select:none}
.ms-toggle .t{font-size:14px;font-weight:600;color:var(--text)}
.ms-toggle .d{font-size:12.5px;color:var(--text-muted);margin-top:2px}
.ms-switch{position:relative;width:38px;height:22px;border-radius:999px;background:var(--border-2);flex-shrink:0;transition:.15s}
.ms-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.15s}
.ms-switch.on{background:var(--accent)}
.ms-switch.on::after{left:19px}
.ms-select{width:100%;font:inherit;font-size:14.5px;font-weight:600;padding:10px 12px;border-radius:var(--radius-sm);
  border:1px solid var(--border-2);background:var(--surface);color:var(--text)}
.ms-model-meta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:12.5px;line-height:1.5;color:var(--text-muted)}
.ms-model-meta b{color:var(--text);font-weight:700;white-space:nowrap}
.ms-adv summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--text-muted);list-style:none;display:flex;
  align-items:center;justify-content:space-between}
.ms-adv summary::-webkit-details-marker{display:none}
.ms-adv summary::after{content:"+";font-size:18px;color:var(--text-faint)}
.ms-adv[open] summary::after{content:"\2212"}
.ms-adv-body{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.ms-field input[type=text]{width:100%;font:inherit;font-size:14px;padding:9px 11px;border-radius:var(--radius-sm);
  border:1px solid var(--border-2);background:var(--surface);color:var(--text)}
.ms-field .ms-label{margin-bottom:6px}
.ms-range{display:flex;align-items:center;gap:12px}
.ms-range input[type=range]{flex:1;accent-color:var(--accent)}
.ms-range input[type=range]:disabled{opacity:.4}
.ms-hint{font-size:12.5px;color:var(--text-muted);margin-top:4px}
.ms-range output{min-width:48px;text-align:right;font-size:13px;font-weight:700;color:var(--text)}
#vstMusicPane .ms-card{border-radius:16px;padding:12px 14px;margin:0;box-shadow:none;background:transparent;border:1px solid var(--border-2)}
#vstMusicPane .ms-label{text-transform:none;letter-spacing:0;font-size:13.5px;font-weight:500;color:var(--text-muted);margin-bottom:6px}
#vstMusicPane .ms-seg{margin-bottom:10px}
#vstMusicPane .ms-text{min-height:96px;font-size:14.5px}
#vstMusicPane .ms-select{font-size:15px;font-weight:500;padding:6px 10px}
#vstMusicPane .ms-gen{height:48px;border-radius:999px;font-weight:600;padding:0 20px}
#vstMusicPane .ms-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
#vstMusicPane .ms-results{max-width:none}
.ms-gen{width:100%;justify-content:center;padding:13px 24px;font-size:15px}
.ms-results-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.ms-search{width:220px;max-width:55vw;font:inherit;font-size:13px;padding:7px 12px;border-radius:999px;border:1px solid var(--border-2);
  background:var(--surface);color:var(--text)}
.ms-search:focus{outline:none;border-color:var(--accent)}
.ms-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px;font-size:13px;color:var(--text-muted)}
.ms-pager button{border:1px solid var(--border-2);background:none;color:var(--text);font:inherit;font-size:13px;font-weight:600;
  padding:6px 14px;border-radius:999px;cursor:pointer;transition:.13s}
.ms-pager button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
.ms-pager button:disabled{opacity:.4;cursor:default}
.ms-results-hd h3{margin:0;font-size:15px}
.ms-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px;align-items:start}
.ms-empty{grid-column:1/-1;border:1px dashed var(--border-2);border-radius:var(--radius);padding:40px 20px;text-align:center;
  color:var(--text-muted);font-size:13.5px;line-height:1.6}
.ms-track{display:grid;grid-template-columns:76px 1fr;gap:14px;padding:12px;border:1px solid var(--border);
  border-radius:var(--radius);background:var(--surface);transition:border-color .13s}
.ms-track.playing{border-color:var(--accent)}
.ms-cover{position:relative;width:76px;height:76px;border-radius:12px;overflow:hidden;background-size:cover;background-position:center;
  cursor:pointer;flex-shrink:0}
.ms-cover .ms-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;
  background:rgba(0,0,0,.28);opacity:.92;transition:.13s}
.ms-cover:hover .ms-play{background:rgba(0,0,0,.42)}
.ms-body{min-width:0}
.ms-title{font-size:14.5px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-sub{font-size:12px;color:var(--text-muted);margin-top:2px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ms-pill{border:1px solid var(--border-2);border-radius:999px;padding:0 8px;font-size:11px;font-weight:600;color:var(--text-muted)}
.ms-prompt{font-size:12.5px;color:var(--text-muted);margin-top:6px;overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical}
.ms-bar{display:flex;align-items:center;gap:10px;margin-top:10px}
.ms-bar .tm{font-size:11.5px;color:var(--text-faint);font-variant-numeric:tabular-nums;min-width:34px}
.ms-prog{flex:1;height:6px;border-radius:999px;background:var(--border);cursor:pointer;position:relative}
.ms-prog i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--accent);width:0}
.ms-actions{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}
.ms-actions a,.ms-actions button{border:1px solid var(--border-2);background:none;color:var(--text-muted);font:inherit;font-size:12px;
  font-weight:600;padding:4px 11px;border-radius:999px;cursor:pointer;text-decoration:none;transition:.13s}
.ms-actions a:hover,.ms-actions button:hover{border-color:var(--accent);color:var(--accent)}
.ms-lyrics{display:none;margin-top:10px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--bg);font-size:12.5px;
  line-height:1.7;color:var(--text-muted);white-space:pre-wrap;max-height:240px;overflow:auto}
.ms-lyrics.open{display:block}
.ms-track.pending .ms-cover{background:linear-gradient(135deg,var(--accent-soft),var(--border))}
.ms-eq{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;gap:4px;padding:18px 0}
.ms-eq i{width:5px;border-radius:3px;background:var(--accent);animation:msEq 1s ease-in-out infinite}
.ms-eq i:nth-child(2){animation-delay:.18s}.ms-eq i:nth-child(3){animation-delay:.36s}
.ms-eq i:nth-child(4){animation-delay:.54s}.ms-eq i:nth-child(5){animation-delay:.72s}
@keyframes msEq{0%,100%{height:8px}50%{height:38px}}
.ms-track.failed{border-color:var(--danger)}
.ms-track.failed .ms-title{color:var(--danger)}
.act-examples{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;max-width:1160px;margin:0 auto 34px}
.act-example{position:relative;aspect-ratio:3/4;border-radius:var(--radius);overflow:hidden;cursor:pointer;
  border:1px solid var(--border-2);background:var(--surface-2);transition:.15s}
.act-example:hover{transform:translateY(-2px);border-color:var(--accent)}
.act-example.picked{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.act-example video{width:100%;height:100%;object-fit:cover;display:block}
.act-example .lbl{position:absolute;left:0;right:0;bottom:0;padding:20px 10px 10px;font-size:12.5px;font-weight:700;
  color:#fff;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0));text-shadow:0 1px 3px rgba(0,0,0,.5);
  pointer-events:none}
.act-example .play{position:absolute;bottom:8px;right:8px;width:26px;height:26px;border-radius:50%;
  background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;
  cursor:pointer;z-index:1}
.act-example .play:hover,.act-example .play.playing{background:var(--accent)}
@media (max-width:900px){.act-examples{grid-template-columns:repeat(3,1fr)}}
.act-floating{width:100%;max-width:520px;margin:0 auto 28px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px 22px}
.act-floating select{width:100%;margin-bottom:12px}
.act-est{margin-top:8px;font-size:12.5px;color:var(--text-muted);text-align:center;min-height:16px}
.act-tabs{display:flex;gap:26px;justify-content:center;margin-bottom:18px}
.act-tabs button{background:none;border:none;font:inherit;font-weight:700;font-size:15px;color:var(--text-muted);
  padding:0 0 7px;border-bottom:2px solid transparent;cursor:pointer}
.act-tabs button.active{color:var(--text);border-bottom-color:var(--text)}
.act-drops{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:18px}
.act-drop{width:110px}
.act-drop-tile{aspect-ratio:1/1;border-radius:var(--radius-sm);border:1.5px dashed var(--border-2);
  background:var(--surface-2);display:flex;align-items:center;justify-content:center;flex-direction:column;
  gap:6px;cursor:pointer;overflow:hidden;position:relative;transition:.13s}
.act-drop-tile:hover{border-color:var(--accent)}
.act-drop-tile svg{color:var(--text-faint);position:relative;z-index:1}
.act-drop-tile .lbl{font-size:11px;color:var(--text-muted);text-align:center;padding:0 4px;position:relative;z-index:1}
.act-drop-tile img,.act-drop-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.act-drop-tile.filled .lbl{position:absolute;left:0;right:0;bottom:0;z-index:1;margin:0;padding:14px 6px 6px;
  color:#fff;background:linear-gradient(to top,rgba(0,0,0,.7),rgba(0,0,0,0));text-shadow:0 1px 2px rgba(0,0,0,.5)}
.act-drop-tile.filled svg{display:none}
.act-replace{position:absolute;top:4px;right:4px;z-index:2;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.6);
  color:#fff;font-size:13px;display:none;align-items:center;justify-content:center;cursor:pointer}
.act-drop-tile.filled .act-replace{display:flex}
#actVideoDrop.filled{cursor:zoom-in}
.act-plus{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--surface-2);
  border:1px solid var(--border-2);display:flex;align-items:center;justify-content:center;font-size:15px;
  color:var(--text-faint)}
.act-quality-label{font-size:12px;font-weight:600;color:var(--text-muted);margin:0 0 10px}
.act-quality-row{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.act-quality-row label{display:flex;align-items:center;gap:6px;font-size:13.5px;cursor:pointer}
.act-pro-badge{font-size:10px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent-2));
  padding:1px 7px;border-radius:9999px;letter-spacing:.02em}
.act-floating .studio-err{margin-top:0;margin-bottom:10px}
.act-floating .studio-gen{width:100%;justify-content:center;margin:0}
.act-grid{display:grid;grid-template-columns:minmax(290px,1fr) minmax(0,4fr);gap:16px;align-items:start}
.act-grid .act-floating{max-width:none;margin:0;position:sticky;top:76px;z-index:6;display:flex;flex-direction:column;gap:10px;padding:14px;
  border-radius:24px;background:var(--bg);border-color:var(--border-2)}
.act-grid .act-floating .st-vtabs{order:-9;gap:14px;margin:0 2px 2px}
.act-grid .act-floating .st-vtabs button{font-size:13px;white-space:nowrap}
.act-grid .act-tabs{justify-content:flex-start;gap:8px;margin:0}
.act-grid .act-tabs button{border:1px solid var(--border-2);border-radius:99px;padding:5px 12px;font-size:12.5px;font-weight:500}
.act-grid .act-tabs button.active{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.act-grid .act-drops{gap:10px;margin:0}
.act-grid .act-drop{flex:1;width:auto}
.act-grid .act-plus{display:none}
.act-grid .act-drop-tile{aspect-ratio:auto;min-height:150px;border-radius:16px;background:transparent;padding:10px}
.act-grid .act-drop-tile .lbl{font-size:13px;color:var(--text)}
.act-grid .act-floating select{margin:0}
.act-grid .act-floating .studio-gen{height:50px;border-radius:999px;font-size:16px;font-weight:600}
.act-right{border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:14px 18px 20px;min-height:calc(100vh - 150px)}
.act-right .st-rtabs{display:inline-flex;gap:2px;padding:3px;margin-bottom:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}
.act-grid[data-tab="history"] .st-rtabs [data-t="history"],.act-grid[data-tab="how"] .st-rtabs [data-t="how"]{background:var(--accent-soft);color:var(--accent)}
.act-grid .act-examples{max-width:none;margin:0 0 24px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.act-grid .act-how{display:none}
.act-grid[data-tab="how"] .act-how{display:block}
.act-grid[data-tab="how"] .act-hist{display:none}
@media(max-width:980px){.act-grid{grid-template-columns:1fr}.act-grid .act-floating{position:static}}
#stRemixView .rm-card{width:100%;max-width:420px;margin:0 auto 24px;background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:6px}
.rm-hero{position:relative;overflow:hidden;border-radius:12px;padding:8px 12px 9px;border:1px solid var(--border);
  background:radial-gradient(130% 150% at 100% 0%,var(--accent-soft),transparent 62%),var(--surface-2)}
.rm-hero-top{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;color:var(--text-muted)}
.rm-hero-top svg{color:var(--accent);flex-shrink:0;width:15px;height:15px}
.rm-hero h2{margin:0;font-size:17px;line-height:1.1;font-weight:700;color:var(--accent);letter-spacing:-.01em}
.rm-hero p{margin:3px 0 0;font-size:12px;line-height:1.35;color:var(--text-muted)}
.rm-seg{display:flex;gap:3px;padding:3px;background:var(--surface-2);border:1px solid var(--border);border-radius:9999px}
.rm-seg button{flex:1;background:none;border:none;font:inherit;font-weight:600;font-size:13px;color:var(--text-muted);
  padding:5px 10px;border-radius:9999px;cursor:pointer;transition:.15s}
.rm-seg button:hover{color:var(--text)}
.rm-seg button.active{background:var(--surface-3,var(--surface));color:var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.rm-drop{position:relative;overflow:hidden;cursor:pointer;border-radius:13px;transition:.15s;
  display:flex;align-items:center;justify-content:center;text-align:left}
.rm-drop:hover{border-color:var(--accent)}
.rm-ph{display:flex;align-items:center;gap:11px}
.rm-ico{width:30px;height:30px;border-radius:50%;background:var(--surface-3,var(--surface-2));color:var(--text);flex-shrink:0;
  display:flex;align-items:center;justify-content:center;border:1px solid var(--border)}
.rm-ico svg{width:15px;height:15px}
.rm-drop b{display:block;font-size:13px;font-weight:600;color:var(--text)}
.rm-drop small{display:block;margin-top:1px;font-size:11.5px;color:var(--text-muted)}
.rm-video{height:72px;border:1.5px dashed var(--border-2);background:var(--surface-2);gap:0}
.rm-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.rm-video.filled{border-style:solid;cursor:zoom-in}
.rm-video.filled .rm-ph{display:none}
.rm-change{position:absolute;left:0;right:0;bottom:0;z-index:2;background:rgba(0,0,0,.6);color:#fff;font-size:12px;
  padding:6px;display:none;cursor:pointer}
.rm-video.filled .rm-change{display:block}
.rm-refs{border:1px solid var(--border-2);background:transparent;min-height:56px;padding:8px 10px;cursor:default}
.rm-refs.empty{cursor:pointer}
.rm-refs.empty:hover{border-color:var(--accent)}
.rm-imgs{display:none;flex-wrap:wrap;gap:6px;justify-content:flex-start;width:100%}
.rm-refs.has .rm-imgs{display:flex}
.rm-refs.has .rm-ph{display:none}
.rm-img{width:44px;height:44px;border-radius:8px;overflow:hidden;position:relative;border:1px solid var(--border-2)}
.rm-img img{width:100%;height:100%;object-fit:cover;display:block}
.rm-x{position:absolute;top:2px;right:2px;width:17px;height:17px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;
  font-size:12px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.rm-add{width:44px;height:44px;border-radius:8px;border:1.5px dashed var(--border-2);background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--text-faint);cursor:pointer}
.rm-add:hover{border-color:var(--accent);color:var(--accent)}
.rm-note{font-size:11.5px;line-height:1.35;color:var(--text-muted);padding:0 3px}
.rm-note:empty{display:none}
.rm-promptrow{border:1px solid var(--border-2);border-radius:12px;padding:0 12px}
.rm-promptrow .rm-ptop{display:flex;align-items:center;justify-content:space-between;height:34px;cursor:pointer;
  font-size:13px;font-weight:500;color:var(--text)}
.rm-switch{width:32px;height:19px;border-radius:9999px;background:var(--surface-3,var(--border-2));position:relative;transition:.15s;
  border:1px solid var(--border-2);flex-shrink:0}
.rm-switch::after{content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.35);transition:.15s}
.rm-promptrow.on .rm-switch{background:var(--accent);border-color:var(--accent)}
.rm-promptrow.on .rm-switch::after{left:15px}
#stRemixView .rm-promptrow .rm-prompt{display:none;width:100%;min-height:84px;margin:0 0 10px;padding:0;resize:none;
  font-size:13.5px;line-height:1.45;background:transparent;border:none;outline:none;box-shadow:none;color:var(--text)}
#stRemixView .rm-promptrow.on .rm-prompt{display:block}
.rm-picks{display:flex;gap:8px}
.rm-pick{position:relative;border:1px solid var(--border-2);border-radius:12px;background:transparent;transition:.15s;cursor:pointer}
.rm-pick:hover{border-color:var(--accent)}
.rm-pick select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.rm-pick-model{flex:1;min-width:0;padding:5px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.rm-pick-model small{display:block;font-size:10.5px;line-height:1.2;color:var(--text-muted)}
.rm-pick-model .rm-val{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--text);min-width:0}
.rm-pick-model .rm-val span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rm-pick-model .rm-val svg{color:var(--accent);flex-shrink:0;width:15px;height:15px}
.rm-pick-model .rm-chev{color:var(--text-faint);flex-shrink:0}
.rm-pick-res{padding:0 12px;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--text)}
.rm-pick-res svg{flex-shrink:0}
#stRemixView .studio-err{margin:0}
#stRemixView .rm-gen{width:100%;height:38px;border-radius:9999px;justify-content:center;font-size:14px;font-weight:600;margin:0}
#stRemixView .rm-gen:disabled{background:var(--surface-3,var(--surface-2));color:var(--text-faint);box-shadow:none;opacity:1}
.rm-sound{display:flex;justify-content:flex-start}
.rm-est{font-size:12px;color:var(--text-muted);text-align:center;min-height:14px;margin:2px 0 -1px}
.rm-grid{display:grid;grid-template-columns:minmax(290px,1fr) minmax(0,4fr);gap:16px;align-items:start}
.rm-grid>.rm-card{max-width:none!important;margin:0!important;position:sticky;top:calc(var(--tb-h,60px) + 16px);z-index:6;border-color:var(--border-2);border-radius:24px;padding:12px;background:var(--bg)}
.rm-right{border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:14px 18px 20px;min-height:calc(100vh - 150px)}
.rm-right .st-rtabs{display:inline-flex;gap:2px;padding:3px;margin-bottom:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}
.rm-grid[data-tab="history"] .st-rtabs [data-t="history"],.rm-grid[data-tab="how"] .st-rtabs [data-t="how"]{background:var(--accent-soft);color:var(--accent)}
.rm-grid .rm-how{display:none}
.rm-grid[data-tab="how"] .rm-how{display:block}
.rm-grid[data-tab="how"] .rm-hist{display:none}
html[data-st-grp="remix"] #stVTabs{display:none}
@media(max-width:980px){.rm-grid{grid-template-columns:1fr}.rm-grid>.rm-card{position:static}}
.fsw-layout{display:grid;grid-template-columns:140px 1fr 300px;gap:20px;max-width:1160px;margin:0 auto 30px;
  align-items:start}
.fsw-video-list{display:flex;flex-direction:column;gap:10px;max-height:70vh;overflow-y:auto}
.fsw-video-list-item{position:relative;width:100%;aspect-ratio:9/16;border-radius:var(--radius);
  overflow:hidden;cursor:pointer;border:1.5px solid var(--border-2);background:var(--surface-2);
  transition:.15s;flex-shrink:0}
.fsw-video-list-item:hover{border-color:var(--accent)}
.fsw-video-list-item.active{border-color:var(--accent)}
.fsw-video-list-item video{width:100%;height:100%;object-fit:cover;pointer-events:none}
.fsw-video-list-item .lbl{position:absolute;left:0;right:0;bottom:0;padding:14px 8px 6px;font-size:11px;
  font-weight:700;color:#fff;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0));
  text-shadow:0 1px 3px rgba(0,0,0,.5)}
.fsw-video-list-upload{width:100%;aspect-ratio:1/1;border-radius:var(--radius);border:1.5px dashed var(--border-2);
  display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;
  color:var(--text-muted);font-size:13px;gap:6px;flex-shrink:0}
.fsw-video-list-upload:hover{border-color:var(--accent)}
.fsw-video-drop{width:100%;aspect-ratio:9/16;max-height:70vh;border-radius:var(--radius);
  border:1.5px dashed var(--border-2);display:flex;align-items:center;justify-content:center;cursor:pointer;
  overflow:hidden;background:var(--surface-2)}
.fsw-video-drop:hover{border-color:var(--accent)}
.fsw-video-drop .ph{color:var(--text-faint);font-size:13px;text-align:center;padding:20px}
.fsw-video-drop video{width:100%;height:100%;object-fit:contain}
.fsw-panel{position:sticky;top:18px;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface);padding:18px}
.fsw-panel h3{margin:0 0 14px;font-size:15px}
.fsw-face-row{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.fsw-face-pick{position:relative;width:76px;height:76px;border-radius:50%;border:1.5px dashed var(--border-2);
  display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;
  overflow:visible;background:var(--surface-2);flex-shrink:0;color:var(--text-faint);font-size:11px;
  gap:4px;text-align:center}
.fsw-face-pick:hover{border-color:var(--accent)}
.fsw-face-pick img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.fsw-face-badge{position:absolute;right:-4px;bottom:-4px;width:26px;height:26px;border-radius:50%;
  background:var(--accent);color:#fff;display:none;align-items:center;justify-content:center;
  font-size:16px;font-weight:700;line-height:1;border:2px solid var(--surface);pointer-events:none}
.fsw-face-examples-lbl{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;
  letter-spacing:.03em;margin:0 0 8px}
.fsw-face-examples{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.fsw-face-example{width:48px;height:48px;border-radius:50%;overflow:hidden;cursor:pointer;
  border:1.5px solid var(--border-2);flex-shrink:0;transition:.15s}
.fsw-face-example:hover{border-color:var(--accent)}
.fsw-face-example.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft, var(--surface-2))}
.fsw-face-example img{width:100%;height:100%;object-fit:cover;display:block}
.fsw-consent{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;color:var(--text-muted);
  line-height:1.5;margin-bottom:16px;cursor:pointer}
.fsw-consent input{margin-top:2px;flex-shrink:0}
.fsw-panel .studio-gen{width:100%;justify-content:center}
@media (max-width:900px){.fsw-layout{grid-template-columns:1fr;max-width:520px}.fsw-video-list{
  flex-direction:row;overflow-x:auto;overflow-y:visible;max-height:none}
  .fsw-video-list-item,.fsw-video-list-upload{width:110px;flex-shrink:0}}
.st-vtile{position:relative;width:88px;height:88px;overflow:hidden}
.st-vtile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.st-vtile.filled{border-style:solid;border-color:var(--border-2);cursor:zoom-in}
.st-vtile-play{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;
  background:rgba(0,0,0,.6);color:#fff;font-size:12px;display:none;align-items:center;justify-content:center;padding-left:2px;
  pointer-events:none}
.st-vtile.filled .st-vtile-play{display:flex}
.st-vtile.filled:hover video{filter:brightness(.8)}
.st-vtile .st-vtile-lbl{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);color:#fff;font-size:10px;
  line-height:1.3;padding:3px 4px;text-align:center;display:none;cursor:pointer}
.st-vtile .st-vtile-lbl:hover{background:var(--accent)}
.st-vtile.filled .st-vtile-lbl{display:block}
.st-vtile-ph{font-size:32px;font-weight:300;color:var(--text-faint);line-height:1}
#stEditVideoView .studio-card .studio-prompt,#stExtendVideoView .studio-card textarea.studio-prompt{margin-top:10px}
.ev-photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.ev-photos:empty{display:none}
.ev-photo,.ev-photo-add{position:relative;width:62px;height:62px;border-radius:12px;overflow:hidden;border:1px solid var(--border-2)}
.ev-photo img,.ev-photo video{width:100%;height:100%;object-fit:cover;display:block}
.ev-x{position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;
  font-size:12px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.ev-photo-add{display:flex;align-items:center;justify-content:center;border-style:dashed;background:transparent;cursor:pointer;
  font-size:11px;line-height:1.25;text-align:center;color:var(--text-muted);padding:4px}
.ev-photo-add:hover{border-color:var(--accent);color:var(--accent)}
/* the upload cards: icon over title over hint; the two reference cards share a row */
#stEditVideoView .tl-card .st-vtile{min-height:108px!important;border-radius:16px}
#stEditVideoView .tl-card .st-vtile-ph{flex-direction:column!important;gap:3px!important;padding:12px}
#stEditVideoView .tl-card .tl-upico{width:36px;height:36px}
#stEditVideoView .tl-card .tl-upico svg{width:18px;height:18px}
#stEditVideoView .tl-card .st-vtile-ph b{font-size:14px;margin-top:5px;color:var(--text)}
#stEditVideoView .tl-card .st-vtile-ph small{display:block;font-size:12px;line-height:1.3}
.ev-photo-add.empty{flex:1 1 0;min-width:0;width:auto;height:auto;min-height:108px;flex-direction:column;gap:3px;padding:12px 6px;border-style:solid;border-radius:16px}
.ev-photo-add.empty b{font-size:14px;font-weight:600;line-height:1.3;color:var(--text);margin-top:5px}
.ev-photo-add.empty small{font-size:12px;line-height:1.3;color:var(--text-muted)}
.ev-photo-add.off,.ev-photo-add.off:hover{cursor:default;opacity:.55;border-color:var(--border-2)}
.ev-photos{row-gap:4px}
.ev-br{flex-basis:100%;height:0}
.ev-note{margin-top:6px;font-size:12px;color:var(--text-muted)}
.ev-note:empty{display:none}
.tl-left{gap:6px;padding:10px;border-radius:18px}
.tl-left .st-vtabs{margin:0 2px 0!important}
.tl-left .st-vtabs button{padding:5px 0 7px!important}
.tl-hero{padding:7px 10px 8px!important;min-height:0!important;border-radius:12px}
.tl-hero .tl-ml{font-size:11.5px;min-height:0;padding-right:92px;line-height:1.3}
.tl-hero .st-mname{margin-top:4px;font-size:18px;line-height:1.15}
.tl-hero[data-big] .st-mname{margin-top:22px}
.tl-hero .st-msub{margin-top:1px;font-size:11.5px}
.tl-hero .st-change{right:7px;top:7px;padding:4px 10px;font-size:12px;border-radius:8px}
.tl-card{gap:6px!important}
.tl-card .st-vtile{min-height:54px!important;border-radius:12px}
.tl-card .st-vtile-ph{flex-direction:row!important;gap:10px!important}
.tl-card .tl-upico{width:30px;height:30px}
.tl-card .tl-upico svg{width:16px;height:16px}
.tl-card .st-vtile-ph b{font-size:13.5px;margin:0}
.tl-card .st-vtile-ph small{display:none}
.tl-card .st-promptbox{padding:7px 11px 2px!important;border-radius:12px!important}
.tl-card .st-promptbox::before{font-size:12px;margin-bottom:0}
.tl-card .st-promptbox .studio-prompt{min-height:52px!important;font-size:13.5px;line-height:1.4}
.tl-card .st-promptbox .st-chips{padding:3px 0 5px}
.tl-card .st-chip,.tl-card .st-chips .studio-audio{height:26px;font-size:12.5px;padding:0 10px}
.tl-card .studio-row{gap:6px!important}
.tl-card .studio-row>.st-tile{padding:5px 11px 4px!important;border-radius:12px!important}
.tl-card .st-tile .st-tl{font-size:11.5px}
.tl-card .st-tile select,.tl-card .st-tile .st-mini .studio-pickbtn{font-size:14px!important;line-height:1.3}
.tl-card .studio-row>.studio-gen{height:40px!important;font-size:14.5px!important}
.tl-card .studio-row>.studio-est-price{font-size:11.5px;margin:0 4px;line-height:1.2}
.tl-hubitem{padding:8px 10px}
.tl-grid{display:grid;grid-template-columns:minmax(290px,1fr) minmax(0,4fr);gap:16px;align-items:start}
.tl-left{display:flex;flex-direction:column;gap:10px;position:sticky;top:76px;z-index:6;padding:14px;border:1px solid var(--border-2);border-radius:24px;background:var(--bg)}
.tl-left .st-vtabs{order:-9;gap:14px;margin:0 2px 2px}
.tl-left .st-vtabs button{font-size:13px;white-space:nowrap}
.tl-hero{display:block!important;position:relative}
.tl-hero .tl-ml{font-size:12.5px;color:var(--text-muted);min-height:16px}
.tl-hero .st-mname{margin-top:26px}
.tl-left .tl-card{display:flex;flex-direction:column;gap:10px;max-width:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.tl-card .studio-refs{margin:0;padding:0;display:block}
.tl-card .st-vtile{width:100%;height:auto;min-height:118px;border:1px dashed var(--border-2);border-radius:16px;background:transparent;display:flex;
  flex-direction:column;align-items:center;justify-content:center;gap:6px;position:relative;overflow:hidden}
.tl-card .st-vtile video{position:static;max-height:170px;width:100%;object-fit:contain}
.tl-card .st-vtile .st-vtile-ph{font-size:26px;color:var(--text-muted)}
.tl-card .studio-prompt{min-height:130px;border:1px solid var(--border-2);border-radius:16px;padding:12px 14px;font-size:15px;background:transparent}
.tl-card .st-promptbox .studio-prompt{border:0;padding:0;min-height:120px}
.tl-card .st-promptbox{border:1px solid var(--border-2);border-radius:16px;padding:12px 14px 6px}
.tl-card .st-promptbox::before{content:attr(data-label);display:block;font-size:13.5px;color:var(--text-muted);margin-bottom:4px}
.tl-card .st-promptbox .st-chips{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
.tl-card .st-vtile-ph{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:inherit;color:var(--text)}
.tl-card .st-vtile-ph b{font-size:15px;font-weight:600;margin-top:6px}
.tl-card .st-vtile-ph small{font-size:13px;color:var(--text-muted)}
.tl-upico{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface-3);color:var(--text-muted)}
.tl-card .studio-row>.st-tile:has(>select[style*="none"]):not(:has(.st-mini)){display:none}
html[data-st-kind="video"] .tl-card .studio-row>.st-tile:has(.st-mini){display:block}
html[data-st-kind="video"] .tl-card .studio-refs{order:1}
html[data-st-kind="video"] .tl-card .st-promptbox{order:2}
html[data-st-kind="video"] .tl-card .studio-row{order:3}
.tl-hero[data-big] .st-mname{margin-top:46px}
.tl-card .st-tile .st-mini{display:block;margin-top:3px}
.tl-card .st-tile .st-mini .studio-pickbtn{width:100%;height:auto;min-width:0;padding:0 26px 0 0;border:0;background:transparent;font-size:16px;font-weight:500;color:var(--text);justify-content:flex-start}
.tl-card .st-tile .st-mini .studio-pickbtn::after{position:absolute;right:0;top:50%;margin-top:-6px}
.tl-card .st-tile:has(.st-mini){cursor:pointer}
.tl-card .studio-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;border:0}
.tl-card .studio-row>*{grid-column:1/-1}
.tl-card .studio-row>.st-tile{grid-column:span 1;display:block;position:relative;border:1px solid var(--border-2);border-radius:16px;padding:10px 14px 8px}
.tl-card .studio-row>.st-tile.wide{grid-column:1/-1}
.tl-card .st-tile .st-tl{display:block;font-size:13px;color:var(--text-muted);line-height:1.2}
.tl-card .st-tile select{display:block;width:100%!important;height:auto;margin-top:3px;padding:0 24px 0 0;border:0;background-color:transparent;font-size:16px;font-weight:500;color:var(--text);box-shadow:none}
.tl-card .studio-row>.studio-est-price{order:8;text-align:right;font-size:12.5px;color:var(--text-muted);margin:0 4px}
.tl-card .studio-row>.studio-gen{order:9;width:100%;height:50px;border-radius:999px;justify-content:center;font-size:16px;font-weight:600;gap:8px}
.tl-card .studio-gen svg{display:none}
.tl-card .studio-gen::after{content:attr(title)}
.tl-card .studio-row>.studio-audio{justify-self:start}
.tl-right{border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:14px 18px 20px;min-height:calc(100vh - 150px)}
.tl-right .st-rtabs{display:inline-flex;gap:2px;padding:3px;margin-bottom:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}
.tl-grid[data-tab="history"] .st-rtabs [data-t="history"],.tl-grid[data-tab="how"] .st-rtabs [data-t="how"]{background:var(--accent-soft);color:var(--accent)}
.tl-grid .tl-how{display:none}
.tl-grid[data-tab="how"] .tl-how{display:block}
.tl-grid[data-tab="how"] .tl-hist{display:none}
.tl-grid .studio-gallery{grid-template-columns:repeat(4,1fr)}
html[data-st-grp="hub"] #stEditVideoView,html[data-st-grp="hub"] #stExtendVideoView,html[data-st-grp="hub"] #stVideoEnhanceView{display:none!important}
@media(max-width:980px){.tl-grid{grid-template-columns:1fr}.tl-left{position:static}}
.tl-left .st-mini .studio-dd{width:300px;border-radius:18px}
.tl-left .st-mini .studio-dd-list{padding:6px}
.tl-left .st-mini .studio-dd-item{padding:6px 10px 6px 6px;border-radius:12px;gap:10px}
.tl-left .st-mini .studio-dd-ico{width:38px;height:38px;border-radius:10px;font-size:16px;font-weight:700;background:var(--surface-3)!important;color:var(--text-muted)!important}
.tl-left .st-mini .studio-dd-item.sel .studio-dd-ico{background:var(--accent-soft)!important;color:var(--accent)!important}
.tl-left .st-mini .studio-dd-name{font-size:14px;font-weight:500}
.tl-left .st-mini .studio-dd-chips{flex-wrap:wrap;gap:4px;margin-top:3px;overflow:visible}
.tl-left .st-mini .studio-dd-chip{display:inline-flex;padding:1px 6px;border-radius:6px;background:var(--surface-3);color:var(--text-muted);font-size:11.5px;font-weight:500}
.tl-left .st-mini .studio-dd-chip+.studio-dd-chip::before{content:none}
.st-tile.pretty{cursor:pointer}
.st-tile.pretty select{pointer-events:none;text-overflow:ellipsis}
.st-tile.pretty::after{content:"";position:absolute;right:14px;top:50%;width:12px;height:12px;margin-top:-6px;background:#8a8f98;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
#tlDD{position:fixed;z-index:100;width:300px;max-height:calc(100vh - 90px);display:none;flex-direction:column;overflow:hidden;background:var(--surface);
  border:1px solid var(--border-2);border-radius:18px;box-shadow:var(--shadow-lg)}
#tlDD.open{display:flex}
#tlDD .studio-dd-list{overflow-y:auto;padding:6px}
#tlDD .studio-dd-item{padding:6px 10px 6px 6px;border-radius:12px;gap:10px;cursor:pointer;display:flex;align-items:center}
#tlDD .studio-dd-item:hover{background:var(--surface-2)}
#tlDD .studio-dd-item.sel{background:var(--surface-3)}
#tlDD .studio-dd-ico{width:38px;height:38px;border-radius:10px;font-size:16px;font-weight:700;display:grid;place-items:center;flex-shrink:0;background:var(--surface-3);color:var(--text-muted)}
#tlDD .studio-dd-item.sel .studio-dd-ico{background:var(--accent-soft);color:var(--accent)}
#tlDD .studio-dd-main{flex:1;min-width:0}
#tlDD .studio-dd-name{font-size:14px;font-weight:500;color:var(--text)}
#tlDD .studio-dd-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
#tlDD .studio-dd-chip::before{content:none!important}
#tlDD .studio-dd-chip{padding:1px 6px;border-radius:6px;background:var(--surface-3);color:var(--text-muted);font-size:11.5px;font-weight:500}
#tlDD .studio-dd-check{flex-shrink:0;color:var(--accent);display:none;width:18px;height:18px}
#tlDD .studio-dd-item.sel .studio-dd-check{display:block}
