:root {
  --bg: #07080c;
  --bg-soft: #0c0f15;
  --panel: rgba(19, 22, 30, 0.82);
  --panel-solid: #12151c;
  --panel-2: rgba(28, 32, 42, 0.7);
  --line: rgba(214, 168, 99, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gold: #d8a35b;
  --gold-strong: #e8bc7a;
  --teal: #4fb8ae;
  --danger: #d9645c;
  --text: #ece7dd;
  --text-dim: #a7a196;
  --text-mute: #6f6a61;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Han Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(216, 163, 91, 0.28); }

/* ---------- 环境光 ---------- */
#bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.42; }
.g1 { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: radial-gradient(circle, rgba(216, 163, 91, 0.34), transparent 68%); }
.g2 { width: 52vw; height: 52vw; right: -14vw; bottom: -20vw; background: radial-gradient(circle, rgba(79, 184, 174, 0.2), transparent 68%); }

/* ---------- 通用 ---------- */
.hidden { display: none !important; }
[hidden] { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--text-dim); }
.tiny { font-size: 12px; color: var(--text-mute); }
.btn {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.18s ease;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.16); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, #d8a35b, #b6793a);
  border-color: rgba(232, 188, 122, 0.6);
  color: #17120a;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(216, 163, 91, 0.22);
}
.btn.primary:hover { background: linear-gradient(135deg, #e8bc7a, #c2833f); }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn.full { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
.btn.danger { color: var(--danger); border-color: rgba(217, 100, 92, 0.3); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), textarea, select {
  width: 100%;
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  transition: 0.16s;
  color: var(--text);
}
input[type="file"] {
  width: 100%;
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 10px;
  border: 1px dashed rgba(216, 163, 91, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input:focus, textarea:focus, select:focus { border-color: rgba(216, 163, 91, 0.55); box-shadow: 0 0 0 3px rgba(216, 163, 91, 0.1); }
textarea { resize: vertical; line-height: 1.7; font-family: inherit; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--line-soft); color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}
.badge.gold { color: var(--gold-strong); border-color: rgba(216, 163, 91, 0.35); background: rgba(216, 163, 91, 0.1); }
.badge.teal { color: var(--teal); border-color: rgba(79, 184, 174, 0.3); background: rgba(79, 184, 174, 0.1); }
.badge.warn { color: #e2b15c; border-color: rgba(226, 177, 92, 0.34); background: rgba(226, 177, 92, 0.1); }
.badge.danger { color: var(--danger); border-color: rgba(217, 100, 92, 0.34); background: rgba(217, 100, 92, 0.1); }

/* ---------- 登录 ---------- */
.auth-screen { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 1.15fr 0.85fr; }
.auth-visual {
  padding: 54px 60px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(100deg, rgba(7, 8, 12, 0.97) 6%, rgba(7, 8, 12, 0.86) 42%, rgba(7, 8, 12, 0.62) 100%),
    url("./media/hero.jpg") center / cover no-repeat;
  border-right: 1px solid rgba(214, 168, 99, 0.14);
  position: relative;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 90px);
  opacity: 0.5; pointer-events: none;
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px; color: #16120b;
  background: linear-gradient(145deg, #ecc48a, #b87b3c);
  box-shadow: 0 10px 26px rgba(216, 163, 91, 0.28);
}
.brand-mark.small { width: 34px; height: 34px; font-size: 20px; border-radius: 9px; }
.auth-brand b { font-family: var(--serif); font-size: 22px; letter-spacing: 0.14em; display: block; }
.auth-brand small { color: var(--text-mute); letter-spacing: 0.24em; font-size: 11px; }
.auth-visual h1 {
  position: relative; z-index: 2;
  font-family: var(--serif); font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.28; margin: 46px 0 18px; letter-spacing: 0.06em;
  background: linear-gradient(100deg, #f3e5cd 10%, #d8a35b 62%, #a97f45);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-visual > p { position: relative; z-index: 2; color: var(--text-dim); max-width: 520px; line-height: 2; }
.auth-points { position: relative; z-index: 2; list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; max-width: 520px; }
.auth-points li { display: flex; gap: 14px; align-items: baseline; color: #d5cfc2; }
.auth-points span { font-family: var(--serif); color: var(--gold); font-size: 13px; letter-spacing: 0.1em; }
.auth-foot { position: absolute; bottom: 40px; color: var(--text-mute); font-size: 12px; z-index: 2; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px; background: rgba(6, 7, 11, 0.5); }
.auth-card { width: min(380px, 100%); }
.tabs { display: flex; gap: 6px; margin-bottom: 26px; padding: 4px; background: rgba(255, 255, 255, 0.04); border-radius: 12px; }
.tab { flex: 1; border: 0; background: transparent; color: var(--text-dim); padding: 8px; border-radius: 9px; cursor: pointer; transition: 0.2s; }
.tab.active { background: rgba(216, 163, 91, 0.16); color: var(--gold-strong); }
.auth-error { color: var(--danger); font-size: 13px; min-height: 20px; margin: 10px 0 0; }
.auth-tip { color: var(--text-mute); font-size: 12px; line-height: 1.8; margin-top: 22px; }
.demo-hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-mute); }

/* ---------- 主框架 ---------- */
.app { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 232px 1fr; }
.sidebar {
  border-right: 1px solid rgba(214, 168, 99, 0.13);
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.96), rgba(8, 10, 14, 0.9));
  display: flex; flex-direction: column; padding: 18px 14px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line-soft); }
.brand b { display: block; font-family: var(--serif); letter-spacing: 0.18em; font-size: 17px; }
.brand small { color: var(--text-mute); font-size: 10px; letter-spacing: 0.2em; }
.project-switcher { display: grid; gap: 6px; }
.project-switcher select { font-size: 13px; padding: 8px 10px; color: var(--gold-strong); background: rgba(216, 163, 91, 0.1); border-color: rgba(216, 163, 91, 0.32); }
.project-switcher select:hover { border-color: rgba(216, 163, 91, 0.5); }
.project-switcher select option { background: #14171e; color: var(--text); }
.nav { display: grid; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px; color: var(--text-dim);
  cursor: pointer; transition: 0.16s; font-size: 13.5px;
  border: 1px solid transparent;
}
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.85; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-item.active { color: var(--gold-strong); background: rgba(216, 163, 91, 0.1); border-color: rgba(216, 163, 91, 0.24); }
.nav-item.disabled { opacity: 0.4; pointer-events: none; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(145deg, #3b4250, #232833); color: var(--gold-strong); font-family: var(--serif); font-size: 14px; flex: none; }
.user-chip .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .em { font-size: 10.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: 54px; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 11, 16, 0.66); backdrop-filter: blur(12px);
}
.crumb { font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; }
.crumb b { color: var(--text); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.view { flex: 1; min-height: 0; overflow-y: auto; padding: 22px; scrollbar-width: thin; scrollbar-color: rgba(216, 163, 91, 0.3) transparent; }
.view::-webkit-scrollbar { width: 9px; }
.view::-webkit-scrollbar-thumb { background: rgba(216, 163, 91, 0.22); border-radius: 8px; }

/* ---------- 工作台 ---------- */
.page-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-size: 27px; margin: 0; letter-spacing: 0.08em; font-weight: 500; }
.page-head p { margin: 0; color: var(--text-mute); font-size: 13px; padding-bottom: 3px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }

.dash-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 30px 32px; margin-bottom: 26px;
  border: 1px solid rgba(214, 168, 99, 0.22);
  background:
    radial-gradient(ellipse at 12% 20%, rgba(216, 163, 91, 0.16), transparent 55%),
    linear-gradient(120deg, rgba(24, 27, 36, 0.9), rgba(11, 13, 18, 0.75));
}
.dash-hero h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 10px; letter-spacing: 0.06em; font-weight: 500; }
.dash-hero p { margin: 0; color: var(--text-dim); max-width: 640px; }
.hero-stats { display: flex; gap: 34px; margin-top: 22px; }
.hero-stats div b { font-family: var(--serif); font-size: 24px; color: var(--gold-strong); display: block; line-height: 1.2; }
.hero-stats div span { font-size: 11.5px; color: var(--text-mute); letter-spacing: 0.12em; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card {
  padding: 18px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(24, 27, 36, 0.86), rgba(14, 16, 22, 0.9));
  transition: 0.2s; position: relative; overflow: hidden;
}
.project-card:hover { border-color: rgba(216, 163, 91, 0.4); transform: translateY(-2px); }
.project-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 163, 91, 0.14), transparent 70%); }
.project-card h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 6px; font-weight: 500; letter-spacing: 0.04em; }
.project-card .desc { color: var(--text-mute); font-size: 12.5px; height: 38px; overflow: hidden; margin-bottom: 14px; }
.project-card .meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-dim); }
.project-card .meta b { color: var(--gold-strong); font-weight: 500; }
.new-project {
  min-height: 158px; display: grid; place-items: center; border-style: dashed;
  color: var(--text-dim); background: rgba(255, 255, 255, 0.015);
}
.new-project:hover { color: var(--gold-strong); }

/* ---------- 分镜台 ---------- */
.studio { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; height: 100%; min-height: 0; align-items: start; }
.script-panel { position: sticky; top: 0; padding: 16px; display: grid; gap: 10px; align-content: start; }
.script-panel h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; }
.script-panel textarea { min-height: 320px; font-size: 13px; }
.script-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.script-row .field { margin: 0; }
.storyboard-hint { font-size: 12px; color: var(--text-mute); min-height: 34px; line-height: 1.6; }
.script-list { display: flex; gap: 6px; flex-wrap: wrap; max-height: 60px; overflow: auto; }

.shot-area { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.shot-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shot-toolbar .count { color: var(--text-dim); font-size: 13px; }
.asset-insert { position: relative; margin-left: auto; width: 210px; }
.asset-insert input { padding: 6px 10px; font-size: 12.5px; }
.asset-insert .pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 240px; overflow: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; display: none; }
.asset-insert .pop.open { display: block; }
.asset-insert .opt { padding: 6px 9px; border-radius: 7px; cursor: pointer; font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; }
.asset-insert .opt:hover { background: rgba(216, 163, 91, 0.12); }
.asset-insert .opt span { color: var(--text-mute); font-size: 11px; }

.shot {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(23, 26, 34, 0.86), rgba(13, 15, 20, 0.92));
  overflow: hidden; transition: 0.18s;
}
.shot:hover { border-color: rgba(216, 163, 91, 0.28); }
.shot-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.02); }
.shot-no { font-family: var(--serif); font-size: 13px; letter-spacing: 0.06em; color: var(--gold-strong); background: rgba(216, 163, 91, 0.1); border: 1px solid rgba(216, 163, 91, 0.28); padding: 1px 8px; border-radius: 20px; }
.shot-title { font-size: 13px; color: var(--text); font-weight: 500; }
.shot-meta { font-size: 11.5px; color: var(--text-mute); }
.shot-head .spacer { flex: 1; }
.icon-btn { border: 0; background: transparent; color: var(--text-mute); cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: 12px; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); }
.status-dot.generating { background: #e2b15c; animation: pulse 1.4s infinite; }
.status-dot.done { background: var(--teal); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.shot-body { padding: 14px; display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 16px; }
.shot-media { display: grid; gap: 10px; align-content: start; }
.frame-box {
  aspect-ratio: 9 / 16; border-radius: 10px; border: 1px solid var(--line-soft);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 8px, transparent 8px 16px), #0a0c11;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.frame-box img { width: 100%; height: 100%; object-fit: cover; }
.frame-box .ph { color: var(--text-mute); font-size: 11.5px; text-align: center; padding: 10px; }
.video-box { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: #05060a; }
.video-box video { width: 100%; display: block; max-height: 420px; background: #000; }
.video-empty { padding: 18px 12px; text-align: center; color: var(--text-mute); font-size: 11.5px; line-height: 1.7; }
.media-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.shot-editor { display: grid; gap: 9px; min-width: 0; }
.prompt-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.prompt-input { min-height: 172px; font-size: 13px; line-height: 1.75; }
.detect-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; }
.detect-row .lbl { color: var(--text-mute); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: 20px; font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); color: var(--text-dim);
}
.chip.char { border-color: rgba(216, 163, 91, 0.32); color: var(--gold-strong); background: rgba(216, 163, 91, 0.08); }
.chip.prop { border-color: rgba(79, 184, 174, 0.3); color: var(--teal); background: rgba(79, 184, 174, 0.08); }
.chip.scene { border-color: rgba(140, 150, 190, 0.3); color: #a9b4dd; background: rgba(140, 150, 190, 0.08); }
.chip .x { cursor: pointer; opacity: 0.6; }
.chip .x:hover { opacity: 1; }

.refine-row { display: flex; gap: 6px; align-items: center; }
.refine-row input { flex: 1; min-width: 0; font-size: 12.5px; padding: 7px 11px; }
.refine-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ver-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-mute); flex-wrap: wrap; }
.ver-row select { width: auto; font-size: 11.5px; padding: 4px 26px 4px 8px; }

.detail-fields { border-top: 1px dashed rgba(255, 255, 255, 0.08); padding-top: 8px; }
.detail-fields summary { cursor: pointer; font-size: 12px; color: var(--text-dim); list-style: none; }
.detail-fields summary::-webkit-details-marker { display: none; }
.detail-fields summary::before { content: "▸ "; color: var(--gold); }
.detail-fields[open] summary::before { content: "▾ "; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.detail-grid label { display: grid; gap: 4px; font-size: 11px; color: var(--text-mute); }
.detail-grid input, .detail-grid textarea { font-size: 12px; padding: 5px 8px; }
.detail-grid .wide { grid-column: 1 / -1; }

/* ---------- 资产库 ---------- */
.upload-zone {
  border: 1px dashed rgba(216, 163, 91, 0.35); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--text-dim); cursor: pointer;
  background: rgba(216, 163, 91, 0.03); transition: 0.2s; margin-bottom: 18px;
}
.upload-zone:hover, .upload-zone.drag { background: rgba(216, 163, 91, 0.1); border-color: rgba(216, 163, 91, 0.6); }
.upload-zone b { color: var(--gold-strong); display: block; margin-bottom: 4px; font-weight: 500; }
.upload-zone small { font-size: 11.5px; color: var(--text-mute); }
.asset-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.pill-btn { border: 1px solid var(--line-soft); background: transparent; color: var(--text-dim); padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: 0.16s; }
.pill-btn.active { color: var(--gold-strong); border-color: rgba(216, 163, 91, 0.42); background: rgba(216, 163, 91, 0.1); }
.asset-tabs .search { margin-left: auto; width: 220px; }
.asset-tabs .search input { font-size: 12.5px; padding: 7px 11px; }

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.asset-card { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: rgba(18, 21, 28, 0.86); display: flex; flex-direction: column; }
.asset-thumb { aspect-ratio: 4 / 3; background: #0a0c11; position: relative; display: grid; place-items: center; overflow: hidden; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-thumb .initial { font-family: var(--serif); font-size: 38px; color: rgba(216, 163, 91, 0.45); }
.asset-info { padding: 11px 13px; display: grid; gap: 7px; flex: 1; }
.asset-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.asset-name .edit { margin-left: auto; opacity: 0; }
.asset-card:hover .edit { opacity: 1; }
.asset-desc { font-size: 11.5px; color: var(--text-mute); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aliases { display: flex; gap: 5px; flex-wrap: wrap; }
.aliases .chip { font-size: 10.5px; padding: 0 6px; }
.costume-block { border-top: 1px dashed rgba(255, 255, 255, 0.08); padding-top: 8px; display: grid; gap: 7px; }
.costume-head { display: flex; align-items: center; font-size: 11.5px; color: var(--text-dim); }
.costume-list { display: flex; gap: 7px; flex-wrap: wrap; }
.costume-item { position: relative; width: 52px; text-align: center; cursor: pointer; }
.costume-item .th { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(216, 163, 91, 0.3); background: #0a0c11; display: grid; place-items: center; }
.costume-item .th img { width: 100%; height: 100%; object-fit: cover; }
.costume-item .th .c { font-size: 10px; color: var(--text-mute); }
.costume-item .cn { font-size: 10.5px; color: var(--text-mute); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.costume-item:hover .cn { color: var(--gold-strong); }
.add-costume { width: 52px; height: 52px; border-radius: 8px; border: 1px dashed rgba(216, 163, 91, 0.4); background: transparent; color: var(--gold); cursor: pointer; font-size: 18px; }
.add-costume:hover { background: rgba(216, 163, 91, 0.1); }
.asset-actions { display: flex; gap: 6px; padding: 0 13px 12px; }

/* ---------- 智能体 ---------- */
.agent-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; height: 100%; min-height: 0; }
.chat-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-head { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 9px; }
.chat-head b { font-family: var(--serif); font-weight: 500; letter-spacing: 0.06em; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: grid; gap: 14px; align-content: start; }
.msg { display: flex; gap: 10px; max-width: 92%; }
.msg.user { margin-left: auto; flex-direction: row-reverse; }
.bubble { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.msg.assistant .bubble { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); }
.msg.user .bubble { background: linear-gradient(135deg, rgba(216, 163, 91, 0.22), rgba(216, 163, 91, 0.1)); border: 1px solid rgba(216, 163, 91, 0.3); }
.msg .avatar { width: 26px; height: 26px; font-size: 12px; }
.composer { padding: 12px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 140px; font-size: 13px; }
.agent-side { display: grid; gap: 14px; align-content: start; }
.side-card { padding: 15px; display: grid; gap: 10px; }
.side-card h4 { margin: 0; font-size: 13px; font-family: var(--serif); font-weight: 500; letter-spacing: 0.08em; display: flex; align-items: center; gap: 7px; }
.mem-list { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.mem-item { font-size: 12px; color: var(--text-dim); padding: 7px 9px; background: rgba(255, 255, 255, 0.035); border-radius: 8px; border-left: 2px solid rgba(79, 184, 174, 0.5); display: flex; gap: 8px; }
.mem-item .t { flex: 1; line-height: 1.6; }
.mem-item .del { color: var(--text-mute); cursor: pointer; opacity: 0; }
.mem-item:hover .del { opacity: 1; }
.mem-add { display: flex; gap: 6px; }
.mem-add input { font-size: 12px; padding: 6px 9px; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.set-card { padding: 18px; display: grid; gap: 10px; align-content: start; }
.set-card h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.set-card .field { margin-bottom: 8px; }
.set-actions { display: flex; gap: 8px; margin-top: 4px; }
.note-box { font-size: 12px; color: var(--text-mute); line-height: 1.8; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft); }

/* ---------- 弹窗 / Toast ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(4, 5, 8, 0.72); backdrop-filter: blur(6px); padding: 20px; }
.modal { width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 22px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: 0.06em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  padding: 9px 18px; border-radius: 24px; font-size: 13px;
  background: rgba(20, 24, 32, 0.96); border: 1px solid rgba(216, 163, 91, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); animation: toastIn 0.24s ease;
  color: var(--text); max-width: 70vw;
}
.toast.err { border-color: rgba(217, 100, 92, 0.45); color: #f0b6b1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 54px 20px; color: var(--text-mute); }
.empty .ic { font-family: var(--serif); font-size: 34px; color: rgba(216, 163, 91, 0.35); display: block; margin-bottom: 10px; }
.empty p { margin: 0 0 14px; font-size: 13px; }

@media (max-width: 1080px) {
  .app { grid-template-columns: 76px 1fr; }
  .sidebar .brand div:not(.brand-mark), .nav-item span, .user-chip .nm, .user-chip .em, .project-switcher { display: none; }
  .nav-item { justify-content: center; }
  .studio { grid-template-columns: 1fr; }
  .script-panel { position: static; }
  .agent-layout { grid-template-columns: 1fr; }
  .shot-body { grid-template-columns: 1fr; }
  .frame-box { max-width: 180px; }
}

/* ---------- 第三方登录 ---------- */
.oauth-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--text-mute); font-size: 11.5px; }
.oauth-sep::before, .oauth-sep::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.oauth-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.oauth-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer; font-size: 12.5px; transition: 0.16s; text-align: left; }
.oauth-btn:hover { border-color: rgba(216, 163, 91, 0.5); background: rgba(216, 163, 91, 0.1); }
.oauth-btn .oi { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; background: rgba(216, 163, 91, 0.14); color: var(--gold-strong); flex: none; }
.oauth-btn .on { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oauth-btn.off { opacity: 0.55; cursor: not-allowed; }
.oauth-btn .off-tag { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 9.5px; padding: 1px 5px; border-radius: 6px; background: rgba(217, 100, 92, 0.9); color: #fff; }

/* ---------- 第三方登录配置 ---------- */
.oauth-item { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.02); }
.oauth-item summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; font-size: 13px; }
.oauth-item summary::-webkit-details-marker { display: none; }
.oauth-item summary b { font-weight: 500; }
.oauth-item[open] { border-color: rgba(216, 163, 91, 0.28); }

/* ---------- 批量排队 ---------- */
.mini-select { width: auto; font-size: 12px; padding: 5px 26px 5px 9px; max-width: 190px; }
.ep-tag { font-size: 10px; padding: 1px 6px; }
.batch-bar { border: 1px solid rgba(216, 163, 91, 0.3); border-radius: 12px; background: linear-gradient(140deg, rgba(216, 163, 91, 0.08), rgba(13, 15, 20, 0.9)); padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 8px; }
.batch-bar.hidden { display: none; }
.bb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.bb-head b { font-weight: 500; font-family: var(--serif); letter-spacing: 0.05em; }
.bb-head .spacer { margin-left: auto; }
.bb-items { display: grid; gap: 4px; max-height: 210px; overflow: auto; }
.bb-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) 62px auto; gap: 8px; align-items: center; font-size: 12px; padding: 4px 6px; border-radius: 7px; background: rgba(255, 255, 255, 0.02); }
.bb-idx { color: var(--text-mute); font-size: 10.5px; }
.bb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.bb-state { font-size: 10.5px; text-align: center; padding: 1px 4px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); color: var(--text-mute); }
.bb-state.running { color: #f0d3a4; background: rgba(216, 163, 91, 0.18); }
.bb-state.done { color: #8fd9d0; background: rgba(79, 184, 174, 0.16); }
.bb-state.failed { color: #f0b6b1; background: rgba(217, 100, 92, 0.18); }
.bb-note { color: var(--text-mute); white-space: nowrap; }

/* 第三方登录按钮：两列 + 双行文案 */
.oauth-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oauth-btn { padding: 8px 10px; gap: 9px; }
.oauth-txt { display: grid; gap: 1px; min-width: 0; text-align: left; }
.oauth-txt b { font-weight: 400; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oauth-txt i { font-style: normal; font-size: 10px; color: var(--text-mute); letter-spacing: 0.02em; }
.oauth-btn.off .oauth-txt i { color: #e08a83; }
.oauth-btn.off .oi { background: rgba(255, 255, 255, 0.06); color: var(--text-mute); }

/* 第三方登录配置：字段两列，操作按钮靠右 */
.oauth-item .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oauth-item .set-actions { justify-content: flex-end; align-items: center; }

/* ---------- 账户管理 ---------- */
.admin-panel { padding: 0; overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.admin-table th { font-weight: 500; font-size: 12px; letter-spacing: 0.06em; color: var(--text-mute); background: rgba(255, 255, 255, 0.02); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.admin-table .cell-num { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.admin-table .cell-dim { color: var(--text-mute); }

/* ---------- 资产导入 ---------- */
.imp-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.imp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.imp-drop {
  margin-top: 6px; padding: 16px; border: 1px dashed rgba(214, 168, 99, 0.45); border-radius: 12px;
  background: rgba(216, 163, 91, 0.05); text-align: center; cursor: pointer; transition: 0.16s;
}
.imp-drop b { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.imp-drop small { font-size: 12px; color: var(--text-mute); }
.imp-drop.drag { background: rgba(216, 163, 91, 0.12); border-color: var(--gold-strong); }
.imp-list { display: grid; gap: 8px; margin-top: 10px; max-height: 280px; overflow: auto; }
.imp-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.imp-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); flex: none; }
.imp-meta { flex: 1; min-width: 0; display: grid; gap: 3px; }
.imp-meta input { width: 100%; }

/* ---------- 编剧板块 ---------- */
.sp-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.sp-list { padding: 14px; display: grid; gap: 10px; align-content: start; position: sticky; top: 0; }
.sp-list-head { display: flex; align-items: center; gap: 8px; }
.sp-list-head h3 { margin: 0; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; }
.sp-items { display: grid; gap: 8px; max-height: calc(100vh - 280px); overflow: auto; }
.sp-item { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.02); color: var(--text); cursor: pointer; display: grid; gap: 4px; transition: 0.16s; }
.sp-item:hover { border-color: rgba(216, 163, 91, 0.28); }
.sp-item b { font-size: 13.5px; font-weight: 500; }
.sp-item small { color: var(--text-mute); font-size: 11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-item.active { border-color: rgba(216, 163, 91, 0.45); background: rgba(216, 163, 91, 0.08); }
.sp-work { display: grid; gap: 14px; min-width: 0; }
.sp-editor { padding: 14px; }
.sp-editor-head { display: flex; gap: 8px; align-items: center; }
.sp-title-input { flex: 1; font-family: var(--serif); font-size: 17px; padding: 8px 10px; }
.sp-editor .field span { font-size: 11.5px; }
.sp-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.sp-doc { padding: 14px; display: grid; gap: 8px; }
.sp-doc-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sp-doc-head b { font-family: var(--serif); font-weight: 500; letter-spacing: 0.06em; }
.sp-textarea { min-height: 430px; font-size: 13.5px; line-height: 1.95; resize: vertical; }
.sp-doc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-side { display: grid; gap: 14px; min-width: 0; }
.sp-model-row { display: flex; gap: 6px; }
.sp-model-row select { flex: 1; min-width: 0; }
.sp-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-quick .chip { font-size: 11px; }
.sp-go-row { display: flex; gap: 6px; align-items: center; }
.sp-go-row input { flex: 1; min-width: 0; }
.sp-vers { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.sp-ver { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.02); }
.sp-ver.active { border-color: rgba(216, 163, 91, 0.4); background: rgba(216, 163, 91, 0.06); }
.sp-ver .vn { font-family: var(--serif); color: var(--gold-strong); font-size: 12px; flex: none; }
.sp-ver .vt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sp-ver b { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ver small { color: var(--text-mute); font-size: 10.5px; }
.sp-out { white-space: pre-wrap; font-size: 14px; line-height: 2.05; max-height: 62vh; overflow: auto; margin: 0; padding: 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft); font-family: inherit; color: var(--text-dim); }
.sp-empty { padding: 52px 20px; text-align: center; display: grid; gap: 12px; place-items: center; }
.sp-empty .ic { font-family: var(--serif); font-size: 34px; color: rgba(216, 163, 91, 0.45); display: block; margin-bottom: 6px; }

/* ---------- 资产生成 ---------- */
.im-layout { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 18px; align-items: start; }
.im-form { padding: 16px; display: grid; gap: 10px; position: sticky; top: 0; }
.im-tabs { display: flex; gap: 6px; }
.im-form .field { margin-bottom: 0; }
.im-form textarea { min-height: 118px; font-size: 13px; line-height: 1.7; }
.im-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.im-row select { font-size: 12.5px; }
.im-empty .ic { font-family: var(--serif); font-size: 34px; color: rgba(216, 163, 91, 0.45); display: block; margin-bottom: 8px; }
.im-ref-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); padding-top: 2px; }
.im-ref-head .spacer { flex: 1; }
.im-ref-pick { font-size: 12px; padding: 6px 9px; }
.im-refs { display: flex; gap: 8px; flex-wrap: wrap; min-height: 56px; align-items: center; }
.im-ref { position: relative; width: 58px; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-soft); }
.im-ref img { width: 100%; height: 100%; object-fit: cover; }
.im-ref .x { position: absolute; top: 0; right: 0; width: 16px; height: 16px; display: grid; place-items: center; font-size: 11px; cursor: pointer; color: #fff; background: rgba(6, 7, 11, 0.72); }
.im-gallery-wrap { display: grid; gap: 12px; min-width: 0; }
.im-gallery-head { display: flex; align-items: center; gap: 10px; }
.im-gallery-head h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
.im-gallery-head .spacer { flex: 1; }
.im-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
.im-card { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: rgba(18, 21, 28, 0.86); display: flex; flex-direction: column; }
.im-thumb { position: relative; aspect-ratio: 1 / 1; background: #0a0c11; display: grid; place-items: center; overflow: hidden; }
.im-thumb img { width: 100%; height: 100%; object-fit: cover; }
.im-thumb.pending { animation: pulse 1.6s infinite; }
.im-ph { font-size: 12px; color: var(--text-mute); }
.im-meta { padding: 10px 12px; display: grid; gap: 6px; }
.im-prompt { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.im-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.im-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.im-empty { padding: 56px 20px; text-align: center; grid-column: 1 / -1; }
.im-save-preview img { width: 100%; border-radius: 10px; display: block; margin-bottom: 12px; }

.sp-output-panel { padding: 14px; display: grid; gap: 8px; grid-column: 1 / -1; }
.sp-output-panel .sp-out { min-height: 320px; }
.sp-output-panel { border-color: rgba(216, 163, 91, 0.28); box-shadow: inset 3px 0 0 rgba(216, 163, 91, 0.55); }

/* ---------- 语音生成 / 语音包 ---------- */
.vc-layout { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 18px; align-items: start; }
.vc-form { padding: 16px; display: grid; gap: 10px; position: sticky; top: 0; }
.vc-form .field { margin-bottom: 0; }
.vc-form textarea { font-size: 13px; line-height: 1.7; }
.vc-note { border-color: rgba(216, 163, 91, 0.28); color: var(--text-dim); }
.vc-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vc-sliders input[type="range"] { width: 100%; accent-color: var(--gold); }
.vc-preview { display: grid; gap: 6px; padding-top: 4px; }
.vc-preview audio, .vc-card audio, .vc-last audio, .vc-lib-item audio, .vc-test-out audio { width: 100%; height: 34px; }
.vc-gallery-wrap { display: grid; gap: 12px; min-width: 0; }
.vc-gallery-head { display: flex; align-items: center; gap: 10px; }
.vc-gallery-head h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
.vc-gallery-head .spacer { flex: 1; }
.vc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.vc-empty { padding: 56px 20px; text-align: center; grid-column: 1 / -1; }
.vc-empty .ic { font-family: var(--serif); font-size: 34px; color: rgba(216, 163, 91, 0.45); display: block; margin-bottom: 8px; }
.vc-card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(18, 21, 28, 0.86); padding: 13px 14px; display: grid; gap: 8px; }
.vc-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vc-name { font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; color: var(--gold-strong); }
.vc-desc { color: var(--text-mute); line-height: 1.6; }
.vc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.vc-last { display: grid; gap: 4px; padding-top: 6px; border-top: 1px dashed var(--line-soft); }
.vc-say-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.vc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; }
.vc-pick-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 9px; cursor: pointer; font-size: 12.5px; }
.vc-pick-item:hover { border-color: rgba(216, 163, 91, 0.4); }
.vc-pick-item img, .vc-ph { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; display: grid; place-items: center; background: #0a0c11; color: var(--text-mute); font-size: 12px; }
.vc-imp-tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.vc-lib { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.vc-lib-item { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 9px; }
.vc-lib-item b { display: block; font-size: 12.5px; font-weight: 500; }
.vc-test-out { margin-top: 10px; display: grid; gap: 6px; }
.set-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 资产卡片里的语音包 */
.voice-block { border-top: 1px dashed rgba(255, 255, 255, 0.08); padding-top: 8px; display: grid; gap: 7px; }
.vp-block { border-top: 1px dashed rgba(255, 255, 255, 0.08); padding-top: 8px; display: grid; gap: 5px; }
.vp-text { font-size: 11.5px; line-height: 1.62; color: var(--text-dim); }
.vp-text .tiny { color: var(--text-mute); }
.voice-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); }
.mini-link { background: none; border: none; color: var(--gold); font-size: 11.5px; cursor: pointer; padding: 0; font-family: inherit; }
.mini-link:hover { color: var(--gold-strong); }
.voice-empty { color: var(--text-mute); font-size: 11px; line-height: 1.6; }
.voice-list { display: grid; gap: 5px; }
.voice-item { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.028); }
.voice-play { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(216, 163, 91, 0.45); background: transparent; color: var(--gold); font-size: 9px; cursor: pointer; display: grid; place-items: center; flex: none; }
.voice-play:hover { background: rgba(216, 163, 91, 0.16); }
.voice-meta { min-width: 0; flex: 1; }
.voice-meta .vn { font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-meta .vs { font-size: 10px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-x { cursor: pointer; color: var(--text-mute); font-size: 12px; padding: 0 2px; }
.voice-x:hover { color: var(--danger); }
.vc-card-head .badge { white-space: nowrap; }
.vc-card-head > div { min-width: 0; }
