@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap");

:root {
  --bg: #06060a;
  --bg-deep: #0a0a10;
  --bg-panel: rgba(16, 16, 24, 0.78);
  --bg-card: #14141c;
  --bg-card-soft: rgba(255, 255, 255, 0.035);
  --bg-input: rgba(0, 0, 0, 0.34);
  --line: rgba(255, 255, 255, 0.075);
  --line-hover: rgba(255, 255, 255, 0.14);
  --line-accent: rgba(167, 139, 250, 0.42);
  --text: #f4f4f8;
  --text-secondary: #a1a1b2;
  --text-muted: #6f6f80;
  --accent: #8b5cf6;
  --accent-2: #6d28d9;
  --accent-soft: rgba(139, 92, 246, 0.16);
  --warn: #fb923c;
  --success: #34d399;
  --white: #ffffff;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-w: 108px;
  --header-h: 68px;
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.12), 0 18px 60px rgba(76, 29, 149, 0.18);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.28);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-num: "Plus Jakarta Sans", var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(148, 163, 184, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(124, 58, 237, 0.38), transparent 58%),
    radial-gradient(ellipse 40% 35% at 88% 75%, rgba(30, 58, 138, 0.22), transparent 55%),
    #05060c;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }

/* thin modern scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.36); }
*::-webkit-scrollbar-corner { background: transparent; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 14px; z-index: 20; background: transparent;
}
.sidebar-rail {
  width: 84px;
  padding: 18px 8px;
  border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(18, 16, 28, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.25);
}
.nav-item {
  width: 64px; min-height: 68px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.nav-icon {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item span { font-size: 13px; letter-spacing: 0.02em; line-height: 1.1; font-weight: 500; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-item.is-active {
  color: #fff;
  background: transparent;
}
.nav-item.is-active .nav-icon {
  background: radial-gradient(circle at 50% 40%, rgba(196, 181, 253, 0.95), rgba(124, 58, 237, 0.88) 72%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45), 0 0 18px rgba(167, 139, 250, 0.35);
  color: #fff;
}
.nav-item.is-active svg { stroke: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--header-h); padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 680; letter-spacing: 0.02em;
  color: #f5fbff;
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.22);
}
.brand-logo {
  width: 34px; height: 33px; object-fit: contain; flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(140deg, #7dd3fc 0%, #38bdf8 40%, #8b5cf6 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px rgba(56, 189, 248, 0.28);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px 9px 9px 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.88); border-radius: 4px; transform: skewX(-10deg);
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary); display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; transition: 0.2s var(--ease);
}
.pill:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); border-color: var(--line-hover); }
.pill-promo {
  color: #f3e0b0; border-color: rgba(243, 224, 176, 0.18);
  background: linear-gradient(180deg, rgba(120, 84, 24, 0.28), rgba(80, 50, 12, 0.18));
}
.pill-credits { color: #ddd6fe; font-family: var(--font-num); font-weight: 600; letter-spacing: 0.01em; }
.pill-action {
  color: #e9d5ff; border-color: rgba(168, 120, 255, 0.28);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.1));
}
.pill-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pill-action.is-pulse {
  animation: batch-pulse 0.55s ease 2;
}
@keyframes batch-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
  50% { box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.4); }
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035); color: var(--text-secondary);
  display: inline-grid; place-items: center; position: relative; transition: 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }
.icon-btn.has-dot::after {
  content: ""; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: #ef4444; border: 1.5px solid #111;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.content { padding: 12px 40px 56px; max-width: 1120px; width: 100%; margin: 0 auto; }
.hero { text-align: center; margin: 28px 0 22px; animation: rise 0.55s var(--ease) both; }
.hero h1 {
  font-size: clamp(30px, 3.2vw, 36px); font-weight: 700; letter-spacing: 0.08em;
  margin-bottom: 10px; color: #ffffff;
  text-shadow: 0 0 48px rgba(196, 181, 253, 0.18);
}
.hero p {
  color: rgba(156, 163, 175, 0.92); font-size: 15px; letter-spacing: 0.14em; font-weight: 400;
}

.upload-card {
  position: relative;
  margin: 0 auto;
  width: min(920px, 100%);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 40px 40px;
  text-align: center;
  overflow: visible;
  z-index: 4;
  border-radius: 22px;
  border: 0;
  background:
    radial-gradient(ellipse 70% 80% at 18% 88%, rgba(109, 40, 217, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 60% at 88% 18%, rgba(56, 189, 248, 0.08), transparent 55%),
    rgba(20, 20, 28, 0.72);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(1.2);
  animation: rise 0.55s var(--ease) 0.04s both;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.upload-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    115deg,
    rgba(168, 85, 247, 0.72) 0%,
    rgba(255, 255, 255, 0.18) 42%,
    rgba(56, 189, 248, 0.55) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.upload-card.is-dragover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.25),
    0 28px 70px rgba(109, 40, 217, 0.28);
}
.upload-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.upload-card.is-ready {
  min-height: 340px;
  padding: 26px 22px 16px;
  justify-content: stretch;
  align-items: stretch;
  text-align: left;
  z-index: 6;
}
.upload-ready {
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upload-ready-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.upload-ready-bar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 7;
}
.upload-ready-bar .btn-create {
  flex: 0 0 auto;
  height: 36px;
}
.upload-ready-fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}
.upload-ready-fields .field,
.upload-ready-fields .style-field,
.upload-ready-fields .field-ratio {
  flex: 0 0 168px;
  width: 168px;
  text-align: left;
}
.upload-ready-bar .select-menu {
  top: auto;
  bottom: calc(100% + 8px);
}
.upload-card .style-library {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  transform: none;
}

.glass-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(18, 18, 24, 0.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(1.15);
}

.doc-stack {
  position: relative;
  width: 112px;
  height: 104px;
  margin-bottom: 10px;
}
.doc-leaf {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(48, 46, 62, 0.95), rgba(28, 27, 38, 0.98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.doc-leaf-l {
  width: 58px; height: 74px; left: 6px; top: 16px;
  transform: rotate(-14deg);
  opacity: 0.78;
}
.doc-leaf-r {
  width: 58px; height: 74px; right: 6px; top: 16px;
  transform: rotate(14deg);
  opacity: 0.78;
}
.doc-leaf-c {
  width: 66px; height: 82px; left: 50%; top: 8px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #353445, #1c1b26);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.doc-file {
  position: relative;
  width: 34px;
  height: 40px;
  border-radius: 5px 7px 5px 5px;
  border: 1.5px solid rgba(226, 232, 240, 0.72);
  display: grid;
  place-items: end center;
  padding-bottom: 7px;
  background: transparent;
}
.doc-file::before {
  content: "";
  position: absolute;
  top: -1.5px;
  right: -1.5px;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(226, 232, 240, 0.72) 50%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.doc-file strong {
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(241, 245, 249, 0.9);
  line-height: 1;
}

.doc-icon {
  width: 66px; height: 80px; border-radius: 13px;
  background: linear-gradient(180deg, #2c2c38, #17171f);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  margin: 0 auto;
}
.doc-icon::before {
  content: ""; position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 14px 14px 0;
  border-color: transparent #3f3f4e transparent transparent;
}
.doc-icon strong {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%);
  font-family: var(--font-num); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; color: #f3f4f6;
}
.doc-icon-lg {
  width: 92px; height: 110px; margin: 0 auto 12px;
}
.doc-icon-lg strong { top: auto; bottom: 20px; transform: translateX(-50%); }

.upload-card h2 {
  font-size: 16px;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: #f3f4f6;
  margin-top: 4px;
}
.file-status-card h2 { font-size: 17px; font-weight: 600; color: #f8fafc; }
.hint { color: #6b7280; font-size: 13px; line-height: 1.65; }
.upload-actions {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-top: 18px;
}

.btn {
  height: 42px; padding: 0 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: #ffffff;
  color: #111118;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { filter: brightness(0.97); }
.btn-ghost {
  background: transparent;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.82); }
.btn-create, .btn-next {
  background: linear-gradient(105deg, #ffffff 0%, #f3efff 55%, #e9e0ff 100%);
  color: #12121a; min-width: 168px; justify-content: center; height: 36px;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.16);
}
.btn-create .spark, .btn-next .spark { color: #7c3aed; font-size: 13px; }
.btn-next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}
.cost { opacity: 0.62; font-family: var(--font-num); font-weight: 600; }

.setup-grid {
  display: grid; grid-template-columns: 0.92fr 1.28fr; gap: 12px;
  max-width: 1080px; margin: 0 auto; animation: rise 0.45s var(--ease) both;
  position: relative; z-index: 3;
}
.glass-card { padding: 22px 22px; min-height: 0; }
.file-status-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; min-height: 320px;
}
.file-visual { position: relative; }
.file-size {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--text-secondary); font-family: var(--font-num); font-size: 12px;
}
.file-remove {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: #2a2a36; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
  line-height: 1; font-size: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: 0.18s var(--ease);
}
.file-remove:hover { background: #3b3b4a; transform: scale(1.05); }
.setup-form-card { position: relative; display: flex; flex-direction: column; gap: 12px; overflow: visible; min-height: 320px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 11px; color: var(--text-secondary); letter-spacing: 0.02em; }
.field-required {
  margin-left: 2px;
  font-style: normal;
  font-size: 12px;
  color: #f87171;
  line-height: 1;
}
.style-field.is-required-hint .style-trigger.is-placeholder {
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12);
}
.field input {
  height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-input); padding: 0 11px; outline: none; font-size: 13px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.field input:hover { border-color: var(--line-hover); }
.field input:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  background: rgba(0, 0, 0, 0.42);
}
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field-row-2 { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.segment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  height: 46px; padding: 4px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-input);
}
.segment-btn {
  border-radius: 9px; font-size: 14px; color: var(--text-secondary);
  transition: 0.18s var(--ease);
}
.segment-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.segment-btn.is-active {
  color: #efe8ff;
  background: rgba(139, 92, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}

/* custom select / dropdown */
.select { position: relative; }
.select.is-open { z-index: 60; }
.field:has(.select.is-open) { z-index: 60; position: relative; }
.select-menu button.is-placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}
.select-menu button.is-placeholder.is-active {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}
.select-trigger {
  width: 100%; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-input); padding: 0 9px 0 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--text); text-align: left; transition: 0.18s var(--ease);
}
.select-trigger:hover { border-color: var(--line-hover); background: rgba(0, 0, 0, 0.4); }
.select.is-open .select-trigger {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.select-trigger-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ratio-glyph {
  flex: 0 0 auto;
  display: block;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  background: transparent;
}
.ratio-glyph[data-ratio="9:16"] {
  width: 8px;
  height: 13px;
  border-radius: 2px;
}
.ratio-glyph[data-ratio="16:9"] {
  width: 14px;
  height: 9px;
  border-radius: 2px;
}
.ratio-glyph[data-ratio="1:1"] {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}
.select-trigger [data-select-label] {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px;
}
.select-trigger [data-select-label].is-placeholder-label {
  color: rgba(255, 255, 255, 0.45);
}
.select-chevron {
  width: 16px; height: 16px; flex: 0 0 auto; color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s var(--ease);
}
.select.is-open .select-chevron, .style-trigger.is-open .select-chevron { transform: rotate(180deg); }
.select-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  padding: 6px; border-radius: 14px;
  background: rgba(20, 20, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  animation: rise 0.18s var(--ease) both;
  max-height: 240px; overflow: auto;
}
.select-menu button {
  width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px;
  color: var(--text-secondary); font-size: 13px; transition: 0.15s ease;
  display: flex; align-items: center; gap: 8px;
}
.select-menu button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.select-menu button.is-active {
  background: rgba(139, 92, 246, 0.16); color: #efe8ff;
}

.setup-footer {
  margin-top: auto; display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding-top: 8px;
}
.match-toggle {
  display: flex; align-items: center; gap: 10px;
  margin-top: 0; padding: 7px 10px; border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.04));
  cursor: pointer; text-align: left;
}
.match-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.match-toggle-ui {
  width: 36px; height: 20px; border-radius: 999px; flex: 0 0 auto; margin-top: 0;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative; transition: 0.2s var(--ease);
}
.match-toggle-ui::after {
  content: ""; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: 0.2s var(--ease);
}
.match-toggle input:checked + .match-toggle-ui {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  border-color: transparent;
}
.match-toggle input:checked + .match-toggle-ui::after { transform: translateX(14px); }
.match-toggle-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.match-toggle-copy strong { font-size: 12px; font-weight: 620; color: #efe8ff; }
.match-toggle-copy em { font-style: normal; font-size: 10px; color: var(--text-secondary); line-height: 1.3; }
.style-cube {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 5px;
  background: linear-gradient(135deg, #c4b5fd, #5b21b6);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 10px rgba(91, 33, 182, 0.35);
}
.style-cube.has-image {
  background-color: #1a1a22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.style-field { position: relative; z-index: 1; }
.style-field.is-open { z-index: 90; }
.style-library {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  width: min(680px, calc(100vw - 160px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 24, 0.98);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
  transform: none;
  max-height: min(520px, 72vh);
  overflow: auto;
}
.style-library[hidden] { display: none !important; }
.style-library-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.style-region-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 168px;
  height: 32px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.style-region-tabs button {
  height: 100%;
  padding: 0 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 650;
  transition: 0.15s ease;
}
.style-region-tabs button:hover {
  color: #fff;
}
.style-region-tabs button.is-active {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(109, 40, 217, 0.32));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}
.style-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.style-tabs button {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 620;
  transition: 0.15s ease;
}
.style-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.style-tabs button.is-active {
  background: #fff;
  color: #111118;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.style-grid-empty {
  grid-column: 1 / -1;
  min-height: 96px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}
.style-card {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid transparent;
  padding: 0;
  text-align: left;
  color: #fff;
  background: #2a2a35;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.style-card:hover { transform: translateY(-1px); }
.style-card.is-active {
  border-color: #a78bfa;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.45), 0 10px 24px rgba(124, 58, 237, 0.25);
}
.style-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.style-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.72) 100%);
}
.style-card-name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  z-index: 1;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.style-card.is-custom {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.35), rgba(91, 33, 182, 0.55));
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.35);
}
.style-card.is-custom .style-card-name {
  position: static;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  -webkit-line-clamp: unset;
}
.style-card.is-custom .style-card-name em {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  font-size: 16px;
}
.style-trigger-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.style-trigger-main [data-style-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.style-trigger.is-open {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.style-trigger.is-open .select-chevron {
  transform: rotate(180deg);
}
.style-field.is-open .style-trigger.is-placeholder .style-cube {
  opacity: 0.35;
}
.style-trigger.is-placeholder [data-style-label] {
  color: rgba(255,255,255,0.45);
}
.style-trigger {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
@media (max-width: 900px) {
  .style-library { width: min(560px, 90vw); }
  .style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .style-library { width: min(360px, 92vw); max-height: min(340px, 60vh); }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row-2 { grid-template-columns: 1fr; }
  .upload-ready-bar { flex-wrap: wrap; }
  .upload-ready-fields { width: 100%; }
  .upload-ready-fields .field { flex: 1; width: auto; }
}

.projects { margin-top: 48px; animation: rise 0.65s var(--ease) 0.08s both; position: relative; z-index: 1; }
.projects-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.projects-head h3 { font-size: 17px; font-weight: 650; letter-spacing: 0.02em; color: #f8fafc; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card {
  border-radius: 16px; overflow: hidden; background: transparent;
  border: 0; transition: 0.25s var(--ease); text-align: left;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-3px); }
.project-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.project-cover.tone-a {
  background:
    radial-gradient(ellipse 80% 70% at 30% 80%, rgba(124, 58, 237, 0.45), transparent 60%),
    #1a1624;
}
.project-cover.tone-b {
  background:
    radial-gradient(ellipse 70% 65% at 70% 70%, rgba(120, 90, 40, 0.4), transparent 58%),
    #1a1712;
}
.project-cover.tone-c {
  background:
    radial-gradient(ellipse 70% 65% at 40% 75%, rgba(30, 64, 120, 0.4), transparent 58%),
    #121820;
}
.project-cover img { display: none; }
.badge {
  position: absolute; top: 12px; left: 12px; height: 24px; padding: 0 10px; border-radius: 999px;
  background: #7c3aed;
  color: #fff; font-size: 12px; display: inline-flex; align-items: center; font-weight: 560;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.35);
}
.project-body { display: none; }

/* Workspace */
.workspace {
  position: fixed; inset: 0; z-index: 40; background: #08080c;
  display: flex; flex-direction: column;
  animation: fade 0.28s var(--ease) both;
}
.ws-topbar {
  position: relative;
  z-index: 80;
  height: 66px; padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 14, 0.96); backdrop-filter: blur(16px);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  overflow: visible;
}
.ws-topbar:has(.style-field.is-open),
.ws-topbar:has(.select.is-open) {
  z-index: 220;
}
.ws-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); font-size: 16px; font-weight: 600; padding: 6px 8px; border-radius: 10px;
  transition: 0.18s var(--ease);
}
.ws-back:hover { background: rgba(255, 255, 255, 0.04); }
.ws-back svg { width: 18px; height: 18px; fill: currentColor; }
.ws-steps { display: inline-flex; align-items: center; gap: 8px; justify-self: center; }
.ws-step {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted);
  padding: 8px 12px; border-radius: 12px; font-size: 14px; transition: 0.2s var(--ease);
}
.ws-step:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.03); }
.ws-step-icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.035); border: 1px solid transparent;
}
.ws-step-icon svg { width: 15px; height: 15px; fill: currentColor; }
.ws-step.is-active { color: #ddd6fe; }
.ws-step.is-active .ws-step-icon {
  background: rgba(139, 92, 246, 0.2); color: #ddd6fe;
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.18);
}
.ws-step-line {
  width: 36px; height: 0; border-top: 1px dashed rgba(255, 255, 255, 0.14);
}
.ws-actions { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }

/* 全局风格 / 比例设定条 */
.global-settings {
  position: relative;
  z-index: 90;
  justify-self: end;
}
.global-settings[hidden] { display: none !important; }
.global-settings-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 4px 0 4px;
  border-radius: 999px;
  background: #2a2a32;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.global-settings-part {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 220px;
}
.global-settings-part:hover {
  background: rgba(255, 255, 255, 0.06);
}
.global-style-field {
  position: relative;
  z-index: 1;
}
.global-style-field.is-open {
  z-index: 230;
}
.global-style-field .style-cube,
.global-settings [data-style-thumb] {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.global-settings-part [data-style-label],
.global-settings-part [data-select-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 148px;
}
.global-settings-part .select-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex: 0 0 auto;
}
.global-settings-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}
.global-ratio-select {
  position: relative;
  z-index: 1;
}
.global-ratio-select.is-open {
  z-index: 230;
}
.global-ratio-select .select-menu {
  left: auto;
  right: 0;
  min-width: 112px;
  bottom: auto;
  top: calc(100% + 8px);
  z-index: 240;
}
.global-style-field .style-library {
  left: 0;
  right: auto;
  top: calc(100% + 10px);
  width: min(680px, calc(100vw - 48px));
  z-index: 240;
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
.ws-topbar .global-settings {
  margin-right: 4px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #bbf7d0, transparent 42%),
    radial-gradient(circle at 50% 55%, #22c55e, #15803d 78%);
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ws-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.parsing-state {
  min-height: calc(100vh - 66px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 20px;
}
.parsing-mascot {
  width: 176px; height: 176px; border-radius: 50%; margin-bottom: 10px;
  object-fit: cover;
  background: #ececef;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.42);
  animation: float 3.4s ease-in-out infinite;
}
.parsing-state.is-assets .parsing-mascot {
  background: #f4f1ff;
  box-shadow:
    0 0 0 10px rgba(196, 181, 253, 0.16),
    0 0 48px rgba(167, 139, 250, 0.28),
    0 24px 60px rgba(0, 0, 0, 0.42);
}
.parsing-state h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 680; letter-spacing: 0.01em; }
.parsing-state p { color: var(--text-secondary); font-size: 14px; max-width: 520px; line-height: 1.7; }
.parse-rings {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.parse-ring {
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.parse-ring-chart {
  position: relative;
  width: 84px;
  height: 84px;
}
.parse-ring-chart svg {
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
}
.parse-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}
.parse-ring-bar {
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 226.195;
  stroke-dashoffset: 226.195;
  filter: drop-shadow(0 0 6px rgba(196, 181, 253, 0.45));
  transition: stroke-dashoffset 0.2s linear;
}
.parse-ring-chart strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.parse-ring span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  white-space: nowrap;
}
.parse-steps {
  list-style: none; display: grid; gap: 10px; width: min(420px, 100%); margin-top: 18px; text-align: left;
}
.parse-steps li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted); font-size: 13px; transition: 0.2s var(--ease);
}
.parse-steps li span {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); font-family: var(--font-num); font-size: 12px; font-weight: 650;
}
.parse-steps li.is-active {
  color: #efe8ff; border-color: rgba(167, 139, 250, 0.35);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.06));
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.16);
}
.parse-steps li.is-active span { background: rgba(139, 92, 246, 0.35); color: #fff; }
.parse-steps li.is-done { color: var(--text-secondary); }
.parse-steps li.is-done span { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.parse-summary {
  margin-top: 8px; width: min(460px, 100%); padding: 14px 16px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(20, 20, 28, 0.5));
  animation: rise 0.28s var(--ease) both;
}
.parse-summary strong { display: block; font-size: 14px; margin-bottom: 6px; color: #efe8ff; }
.parse-summary p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; max-width: none; }

.ws-outline {
  padding: 20px 36px 120px;
  max-width: none;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
.outline-nav {
  position: sticky;
  top: 16px;
  flex: 0 0 168px;
  width: 168px;
  margin-right: 0;
  padding: 14px 12px 18px;
  border-radius: 16px;
  background: rgba(28, 28, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  align-self: flex-start;
}
.outline-nav h3 {
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
  padding: 0 4px;
}
.outline-ep-nav {
  display: grid;
  gap: 8px;
}
.outline-ep-btn {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 560;
  transition: 0.15s ease;
}
.outline-ep-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.outline-ep-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.episode-char-meter {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-family: var(--font-num);
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.4;
}
.episode-char-meter.is-ok {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
}
.episode-char-meter.is-over {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.16);
}
.episode-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.episode-item.is-within-limit {
  border-color: rgba(52, 211, 153, 0.28);
}
.episode-item.is-overlimit {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.05);
}
.episode-item.is-overlimit.is-open {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.07);
}
.episode-item.is-overlimit .episode-toggle strong {
  color: #fecaca;
}
.episode-list.is-editing .episode-item.is-overlimit .episode-body {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}
.outline-nav-handle {
  position: absolute;
  top: 50%;
  right: -11px;
  width: 18px;
  height: 42px;
  margin-top: -21px;
  border-radius: 999px;
  background: rgba(36, 36, 44, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.outline-nav-handle span {
  width: 8px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.ws-outline.is-nav-collapsed .outline-nav {
  flex-basis: 0;
  width: 0;
  padding: 0;
  margin-right: 0;
  overflow: visible;
  background: transparent;
  border-color: transparent;
}
.ws-outline.is-nav-collapsed {
  gap: 0;
}
.ws-outline.is-nav-collapsed .outline-nav h3,
.ws-outline.is-nav-collapsed .outline-ep-nav {
  display: none;
}
.outline-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 980px;
  margin: 0;
}
.outline-setup {
  position: sticky;
  top: 12px;
  z-index: 24;
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  overflow: visible;
}
.outline-setup:has(.style-field.is-open),
.outline-setup:has(.select.is-open) {
  z-index: 80;
}
.outline-parse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(91, 33, 182, 0.16);
  overflow: visible;
}
.outline-parse-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.parse-done-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  color: #052e1c;
  background: linear-gradient(145deg, #6ee7b7, #34d399);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18), 0 6px 14px rgba(16, 185, 129, 0.28);
}
.parse-done-check svg {
  width: 13px;
  height: 13px;
}
.outline-parse.is-done .parse-done-check {
  display: grid;
}
.outline-parse.is-celebrate .parse-done-check {
  animation: parse-check-pop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
.parse-warn-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  color: #451a03;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18), 0 6px 14px rgba(180, 83, 9, 0.28);
}
.parse-warn-mark svg {
  width: 13px;
  height: 13px;
}
.outline-parse.is-warn .parse-warn-mark {
  display: grid;
}
.outline-parse.is-warn .parse-done-check {
  display: none;
}
.outline-parse.is-generating {
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(91, 33, 182, 0.2);
}
.outline-parse.is-generating .parse-done-check,
.outline-parse.is-generating .parse-warn-mark {
  display: none;
}
.outline-parse.is-generating .outline-parse-bar span {
  background: linear-gradient(90deg, #a78bfa, #c4b5fd, #8b5cf6);
  background-size: 200% 100%;
  animation: asset-gen-bar-shine 1.2s linear infinite;
}
@keyframes asset-gen-bar-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.outline-parse.is-warn {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(146, 64, 14, 0.18);
}
.outline-parse.is-warn .outline-parse-copy strong {
  color: #fde68a;
}
.outline-parse.is-warn .outline-parse-bar span {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.outline-parse.is-warn .outline-parse-meter em {
  color: #fcd34d;
}
@keyframes parse-check-pop {
  0% { transform: scale(0.4); opacity: 0; }
  55% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.parse-burst {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}
.parse-burst[hidden] { display: none !important; }
.parse-burst i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(0.4);
  animation: parse-burst-fly 2.8s cubic-bezier(0.14, 0.7, 0.24, 1) forwards;
  animation-delay: var(--delay);
}
@keyframes parse-burst-fly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r)) scale(0.35);
  }
  8% { opacity: 1; }
  70% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(calc(var(--r) + 220deg)) scale(0.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .outline-parse.is-celebrate .parse-done-check,
  .parse-burst i {
    animation-duration: 0.01ms !important;
  }
}
.outline-parse.is-done {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(6, 95, 70, 0.16);
}
.outline-parse.is-pulse {
  animation: batch-pulse 0.55s ease 2;
}
.outline-parse-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #f4f0ff;
  margin-bottom: 0;
  line-height: 1.3;
}
.outline-parse.is-done .outline-parse-copy strong { color: #d1fae5; }
.outline-parse-copy p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}
[data-outline-parse] .outline-parse-copy {
  flex: 0 0 auto;
}
[data-outline-parse] .outline-parse-copy p { display: none; }
.outline-parse-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
[data-outline-parse] .outline-parse-meter {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 14px;
}
.outline-parse-bar {
  width: 168px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
[data-outline-parse] .outline-parse-bar {
  flex: 1 1 auto;
  width: auto;
  min-width: 240px;
  max-width: 520px;
  height: 7px;
}
[data-outline-parse] .outline-parse-meter em {
  flex: 0 0 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-family: var(--font);
}
.outline-parse-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}
.outline-parse.is-done .outline-parse-bar span {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
}
.outline-parse-meter em {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 650;
  color: #ddd6fe;
  min-width: 36px;
  text-align: right;
}
.outline-parse.is-done .outline-parse-meter em { color: #a7f3d0; }
.outline-config {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035) 0%, transparent 52px),
    rgba(18, 18, 26, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: visible;
}
.outline-config:has(.style-field.is-open),
.outline-config:has(.select.is-open) {
  z-index: 60;
}
.outline-config-head {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px 16px 0 0;
}
.outline-config-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}
.outline-config-fields {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px 18px;
  overflow: visible;
}
.outline-config .field { min-width: 0; position: relative; }
.outline-config .style-field.is-open { z-index: 70; }
.outline-config .field:has(.select.is-open) { z-index: 70; }
.outline-config .select-menu {
  top: calc(100% + 8px);
  bottom: auto;
  z-index: 80;
}
.outline-config .style-library {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  width: min(680px, calc(100vw - 220px));
  z-index: 90;
}
.meta-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-bottom: 18px; color: var(--text-muted); font-size: 12px;
}
.meta-row > div {
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.meta-row strong {
  display: block; margin-top: 7px; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.45;
}
.outline-card {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 26, 0.92);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.outline-card h3 { font-size: 15px; font-weight: 650; margin-bottom: 16px; letter-spacing: 0.02em; }
.outline-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.outline-card-head h3 { margin-bottom: 0; }
.outline-edit-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.outline-edit-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  background: rgba(124, 58, 237, 0.1);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.outline-edit-btn:hover,
.outline-edit-btn.is-editing {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.48);
  background: rgba(124, 58, 237, 0.24);
}
.outline-edit-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.outline-edited-badge {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  font-size: 11px;
  white-space: nowrap;
}
.outline-edited-badge[hidden] { display: none !important; }
.outline-pending {
  color: rgba(196, 181, 253, 0.78);
  font-size: 13px;
  line-height: 1.6;
  padding: 4px 0 2px;
}
.summary-list { display: grid; gap: 14px; }
.summary-list > div.is-reveal,
.episode-item.is-reveal {
  animation: outline-reveal 0.38s ease both;
}
@keyframes outline-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.summary-list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
.summary-list dt { color: var(--text-muted); font-size: 13px; padding-top: 2px; }
.summary-list dd { color: #e4e4ec; line-height: 1.75; font-size: 14px; }
.summary-list.is-editing dd,
.episode-list.is-editing .episode-body {
  outline: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.28);
  background: rgba(124, 58, 237, 0.07);
  transition: box-shadow 0.16s ease, background 0.16s ease;
}
.summary-list.is-editing dd {
  min-height: 38px;
  padding: 6px 9px;
}
.summary-list.is-editing dd:focus,
.episode-list.is-editing .episode-body:focus {
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.68), 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: rgba(124, 58, 237, 0.11);
}
.episodes-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.episodes-head p { color: var(--text-muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.link-btn {
  color: #c4b5fd; font-size: 13px; padding: 7px 10px; border-radius: 8px; transition: 0.18s ease;
}
.link-btn:hover { background: var(--accent-soft); }
.episode-item {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; margin-bottom: 10px;
  background: #1a1a22; transition: border-color 0.18s ease, background 0.18s ease;
  scroll-margin-top: 18px;
}
.episode-item:hover { border-color: rgba(255, 255, 255, 0.14); }
.episode-item.is-open {
  background: #1c1c26;
  border-color: rgba(255, 255, 255, 0.12);
}
.episode-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; text-align: left; color: var(--text); gap: 12px;
}
.episode-toggle strong { font-weight: 620; font-size: 14px; }
.episode-toggle .caret {
  width: 18px; height: 18px; color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s var(--ease);
  flex: 0 0 auto;
}
.episode-item.is-open .caret { transform: rotate(180deg); color: rgba(196, 181, 253, 0.85); }
.episode-body {
  border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 14px 16px 16px;
  color: #d8d8e2; line-height: 1.8; font-size: 14px;
  background: rgba(0, 0, 0, 0.14);
}
.episode-list.is-editing .episode-body {
  margin: 0 12px 12px;
  padding: 12px 14px;
  min-height: 92px;
  border-top-color: transparent;
  cursor: text;
}
.episode-body[hidden] { display: none !important; }

.ws-assets {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px 20px 120px 12px;
}
.assets-scheme-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px 8px;
  flex: 0 0 auto;
}
.assets-scheme-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.assets-scheme-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 620;
}
.assets-scheme-btn:hover { color: #fff; }
.assets-scheme-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.assets-scheme-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}
.assets-scheme-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.assets-scheme-panel.is-active {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.assets-scheme-panel[hidden] { display: none !important; }
.assets-scheme-panel[data-assets-scheme-panel="1"].is-active {
  flex-direction: column;
}

/* 方案一：设计稿列表（文字 Tab + 四列横向卡） */
.assets-v1 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 4px 8px 0;
  box-sizing: border-box;
}
.assets-v1-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.assets-v1-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  line-height: 1.2;
}
.assets-v1-tab strong {
  font-weight: inherit;
  font-family: var(--font-num, inherit);
  margin-left: 4px;
}
.assets-v1-tab:hover { color: rgba(255, 255, 255, 0.7); }
.assets-v1-tab.is-active {
  color: #fff;
  font-weight: 600;
}
.assets-v1-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 14px;
  width: 100%;
}
@media (max-width: 1280px) {
  .assets-v1-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .assets-v1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.assets-v1-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 148px;
  padding: 14px;
  border-radius: 16px;
  border: 0;
  background: #1c1c22;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.assets-v1-card:hover { background: #23232b; }
.assets-v1-card.is-scene,
.assets-v1-card.is-prop {
  min-height: 132px;
}
.assets-v1-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 118px;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a32;
  position: relative;
}
.assets-v1-card.is-scene .assets-v1-thumb,
.assets-v1-card.is-prop .assets-v1-thumb {
  flex-basis: 112px;
  width: 112px;
  height: 84px;
}
.assets-v1-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.assets-v1-thumb.is-empty {
  background: #333338;
}
.assets-v1-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 1px;
}
.assets-v1-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.assets-v1-title-row strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.assets-v1-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
}
.assets-v1-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
}
.assets-v1-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.46);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.assets-v1-empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.assets-ep-rail {
  position: sticky;
  top: 72px;
  flex: 0 0 44px;
  width: 44px;
  align-self: flex-start;
  padding: 8px 0;
  overflow: visible;
  z-index: 40;
}
.assets-ep-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: visible;
}
.assets-ep-rail-btn {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition: 0.15s ease;
  z-index: 1;
}
.assets-ep-rail-btn:hover,
.assets-ep-rail-btn.is-active {
  background: rgba(255, 255, 255, 0.06);
}
.assets-ep-rail-btn:hover,
.assets-ep-rail-btn:focus-visible {
  z-index: 2;
}
.assets-ep-rail-bar {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: 0.15s ease;
}
.assets-ep-rail-btn.is-active .assets-ep-rail-bar,
.assets-ep-rail-btn:hover .assets-ep-rail-bar {
  width: 18px;
  background: rgba(255, 255, 255, 0.92);
}
.assets-ep-rail-tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(28, 28, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: 0.12s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 41;
}
.assets-ep-rail-btn:hover .assets-ep-rail-tip,
.assets-ep-rail-btn:focus-visible .assets-ep-rail-tip {
  opacity: 1;
  visibility: visible;
}
.assets-main {
  flex: 1;
  min-width: 0;
  position: relative;
}
.ws-assets > .assets-setup {
  position: sticky;
  top: 8px;
  z-index: 24;
  margin: 0 8px 10px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  flex: 0 0 auto;
}
.assets-setup .outline-parse-compact {
  width: min(720px, 100%);
  padding: 10px 16px;
  gap: 16px;
  border-radius: 12px;
  pointer-events: auto;
}
.assets-setup .outline-parse-compact .outline-parse-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.assets-setup .outline-parse-compact .outline-parse-copy strong {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 0;
  white-space: nowrap;
  line-height: 1.3;
}
.assets-setup .outline-parse-compact .outline-parse-copy p {
  display: none;
}
.assets-setup .outline-parse-compact .outline-parse-meter {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 12px;
}
.assets-setup .outline-parse-compact .outline-parse-bar {
  flex: 1 1 auto;
  width: auto;
  min-width: 180px;
  max-width: 420px;
  height: 6px;
}
.assets-setup .outline-parse-compact .outline-parse-meter em {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  font-family: var(--font);
  letter-spacing: 0.01em;
}
.asset-card.is-reveal,
.asset-tile.is-reveal {
  animation: outline-reveal 0.38s ease both;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.assets-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 25;
}
.assets-type-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.asset-type-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  transition: 0.15s ease;
}
.asset-type-chip strong {
  font-family: var(--font-num);
  font-weight: 650;
  margin-left: 4px;
}
.asset-type-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.asset-type-chip.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}
.assets-toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.assets-toolbar-right {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto;
}
.assets-toolbar-right .pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.filter-chip {
  min-width: 148px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; transition: 0.18s ease;
}
.filter-chip:hover { border-color: var(--line-hover); color: var(--text); }
.episode-filter-wrap { position: relative; }
.episode-filter-trigger {
  min-width: 168px;
  max-width: min(320px, 42vw);
  height: 34px;
  padding: 0 12px 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  gap: 10px;
}
.episode-filter-trigger:hover {
  border-color: rgba(255, 255, 255, 0.78);
  color: #fff;
}
.episode-filter-trigger.is-active {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
.episode-filter-trigger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.9);
}
.episode-filter-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.episode-filter-value.is-placeholder {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 400;
}
.episode-filter-search {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.85;
}
.episode-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  width: max(168px, 100%);
  max-height: min(280px, 46vh);
  overflow: auto;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2a2a2e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.episode-filter-list { display: grid; gap: 1px; }
.episode-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.episode-filter-option:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.episode-filter-option.is-active { color: #fff; background: transparent; }
.episode-filter-option.is-active:hover { background: rgba(255, 255, 255, 0.08); }
.episode-filter-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
  position: relative;
  box-sizing: border-box;
}
.episode-filter-option.is-active .episode-filter-check {
  border-color: rgba(255, 255, 255, 0.92);
  background: transparent;
}
.episode-filter-option.is-active .episode-filter-check::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.select-gen-ep-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(640px, 100%);
}
.select-gen-ep-bar[hidden] { display: none !important; }
.select-gen-ep-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.select-gen-ep-bar .episode-filter-wrap { flex: 0 1 220px; min-width: 168px; }

.gen-all-scope-note {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(124, 58, 237, 0.1);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(237, 233, 254, 0.88);
}
.gen-all-scope-note[hidden] { display: none !important; }

.asset-tile-slot {
  position: relative;
  z-index: 1;
}
.asset-tile-slot:hover,
.asset-tile-slot:focus-within {
  z-index: 6;
}
.asset-insert-gap {
  position: absolute;
  top: 31%;
  right: -15px;
  z-index: 7;
  width: 30px;
  height: 64px;
  transform: translateX(50%) translateY(-50%);
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.asset-insert-gap:hover,
.asset-insert-gap:focus-visible {
  opacity: 1;
}
.asset-insert-gap span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: #111118;
  background: linear-gradient(160deg, #ffffff 0%, #f3efff 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.18);
  transform: scale(0.86);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.asset-insert-gap:hover span,
.asset-insert-gap:focus-visible span {
  transform: scale(1);
  filter: brightness(1.04);
}
.asset-grid-tile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.asset-tile {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #14141a;
  overflow: hidden;
  cursor: pointer;
  transition: 0.18s var(--ease);
  text-align: left;
}
.asset-tile:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.asset-tile.is-selected {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.24);
}
.asset-tile.is-locate-flash {
  animation: asset-locate-flash 1.2s ease;
}
.assets-v1-card.is-locate-flash {
  animation: asset-locate-flash 1.2s ease;
}
@keyframes asset-locate-flash {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.24);
  }
  20%, 55% {
    border-color: rgba(196, 181, 253, 0.95);
    box-shadow:
      0 0 0 3px rgba(139, 92, 246, 0.45),
      0 12px 28px rgba(91, 33, 182, 0.28);
  }
}
.asset-tile.is-picked {
  border-color: rgba(167, 139, 250, 0.8);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3);
}
.asset-tile.is-pick-locked {
  opacity: 0.46;
  cursor: default;
}
.asset-tile.is-pick-locked:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
}
.asset-check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(12, 12, 18, 0.62);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.asset-check.is-on {
  background: #7c3aed;
  border-color: #c4b5fd;
}
.asset-check.is-on::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.asset-tile-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #2c2c35;
  overflow: hidden;
}
.asset-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.asset-tile-cover.is-empty {
  background: linear-gradient(145deg, #2a2a34 0%, #1f1f28 100%);
}
.asset-tile-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.22);
}
.asset-tile-placeholder svg { width: 36px; height: 36px; }
.asset-tile-cover.is-generating .asset-tile-placeholder {
  opacity: 0.28;
  filter: saturate(0.6);
}
.asset-tile-cover.is-generating::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(167, 139, 250, 0.28) 46%,
    rgba(124, 58, 237, 0) 100%
  );
  background-size: 100% 220%;
  animation: asset-gen-scan 1.35s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.asset-tile-cover.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(237, 233, 254, 0.16) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: asset-gen-shimmer 1.6s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.asset-gen-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(12, 12, 18, 0.42);
  color: #ede9fe;
  pointer-events: none;
}
.asset-gen-overlay em {
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.asset-gen-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(196, 181, 253, 0.22);
  border-top-color: #c4b5fd;
  animation: asset-gen-spin 0.75s linear infinite;
}
@keyframes asset-gen-scan {
  0% { background-position: 0 -80%; }
  100% { background-position: 0 180%; }
}
@keyframes asset-gen-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@keyframes asset-gen-spin {
  to { transform: rotate(360deg); }
}
@keyframes asset-gen-tag {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}
.asset-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.42);
}
.asset-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.asset-tile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.asset-tile-name strong {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-look-rel {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: rgba(196, 181, 253, 0.92);
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.28);
  transition: 0.15s ease;
}
.asset-look-rel svg {
  width: 12px;
  height: 12px;
}
.asset-look-rel:hover,
.asset-look-rel.is-open {
  color: #fff;
  background: rgba(124, 58, 237, 0.32);
  border-color: rgba(196, 181, 253, 0.55);
  transform: scale(1.06);
}
.asset-tile-name .asset-tag {
  flex: 0 0 auto;
  font-size: 10px;
  padding: 2px 6px;
}
.asset-tile-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}
.asset-status-tag {
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.02em;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}
.asset-status-tag.is-pending {
  background: rgba(180, 83, 9, 0.22);
  color: #fdba74;
}
.asset-status-tag.is-generating {
  background: rgba(91, 33, 182, 0.28);
  color: #ddd6fe;
  animation: asset-gen-tag 1.1s ease-in-out infinite;
}
.asset-status-tag.is-ready {
  background: rgba(6, 95, 70, 0.24);
  color: #6ee7b7;
}
.asset-status-tag.is-failed {
  background: rgba(185, 28, 28, 0.22);
  color: #fca5a5;
}
.asset-tile-foot-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.asset-tile-look-title {
  min-width: 0;
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-tile-look-title > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-tile-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.asset-tile-stack {
  overflow: visible;
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.asset-tile-stack:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.asset-tile-stack.is-selected,
.asset-tile-stack.is-picked {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.24);
}
.asset-tile-stack .asset-tile-foot {
  position: relative;
  z-index: 2;
  border-radius: 0 0 12px 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.asset-stack {
  position: relative;
  z-index: 1;
  margin: 10px 12px 0 8px;
  overflow: visible;
}
.asset-stack-layer {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #2a2a34;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translate(calc(var(--i) * 6px), calc(var(--i) * -5px));
  transform-origin: center center;
  z-index: 0;
  opacity: calc(0.88 - var(--i) * 0.14);
  pointer-events: none;
}
.asset-stack .asset-tile-cover {
  position: relative;
  z-index: 2;
  border-radius: 10px;
  border: 0;
  overflow: hidden;
  box-shadow: none;
}
.asset-tile-stack.has-stack .asset-tile-cover::after {
  display: none;
}
.asset-stack-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  min-width: 32px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(12, 12, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.asset-tile-slot:has(.asset-tile-stack) {
  overflow: visible;
  padding-top: 6px;
  padding-right: 4px;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-group(*) {
  animation-duration: 0.48s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.asset-grid-tile.is-char-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.asset-grid-tile.is-char-mixed .asset-char-group,
.asset-grid-tile.is-char-mixed .asset-char-card {
  grid-column: span 2;
}
.asset-char-group,
.asset-char-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a22;
  text-align: left;
  transition: 0.18s var(--ease);
  cursor: pointer;
}
.asset-char-group:hover,
.asset-char-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.asset-char-group.is-selected,
.asset-char-card.is-selected {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22);
}
.asset-char-group {
  padding: 14px 14px 12px;
}
.asset-char-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
}
.asset-char-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #2c2c35;
}
.asset-char-thumb .asset-tile-placeholder svg {
  width: 28px;
  height: 28px;
}
.asset-char-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.asset-char-head {
  min-width: 0;
}
.asset-char-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.asset-char-title-row strong {
  font-size: 15px;
  font-weight: 650;
  color: #fff;
}
.asset-char-meta,
.asset-char-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  margin-left: auto;
}
.asset-char-sub {
  margin-left: 0;
  color: rgba(251, 191, 36, 0.88);
}
.asset-char-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.asset-char-group .asset-char-desc {
  margin-top: 8px;
  -webkit-line-clamp: 3;
}
.asset-look-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.asset-look-mini {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.asset-look-mini-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #2a2a34 0%, #1f1f28 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease;
}
.asset-look-mini:hover .asset-look-mini-cover {
  border-color: rgba(255, 255, 255, 0.16);
}
.asset-look-mini-cover .asset-tile-placeholder svg {
  width: 24px;
  height: 24px;
}
.asset-look-mini-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.asset-look-mini .asset-status-tag {
  align-self: flex-start;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.asset-card {
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a22;
  padding: 10px; text-align: left; transition: 0.18s var(--ease);
  min-height: 0; height: 118px; display: flex; flex-direction: row; align-items: stretch; gap: 10px;
  box-shadow: none; overflow: hidden; cursor: pointer;
}
.asset-card-col { height: 118px; }
.asset-card:hover {
  border-color: rgba(255, 255, 255, 0.16); transform: none;
  box-shadow: none;
}
.asset-card.is-selected {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22);
}
.asset-card.is-match { border-color: rgba(52, 211, 153, 0.22); }
.asset-card.is-adopted { border-color: rgba(52, 211, 153, 0.38); }
.asset-card.is-generate { border-color: rgba(255,255,255,0.08); box-shadow: none; }
.asset-thumb {
  position: relative; width: 72px; flex: 0 0 72px; height: 96px; align-self: center;
  display: grid; place-items: center; overflow: hidden; background: #2c2c35; border-radius: 8px;
}
.asset-thumb-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block;
  background: #2c2c35;
}
.asset-thumb-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: #2c2c35 !important; color: rgba(255,255,255,0.28);
}
.asset-thumb-icon { width: 28px; height: 28px; }
.asset-thumb-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #fff7ed;
  background: rgba(180, 83, 9, 0.92);
}
.asset-thumb-badge.is-generating {
  color: #ede9fe;
  background: rgba(91, 33, 182, 0.9);
}
.asset-thumb-badge.is-ready {
  color: #d1fae5;
  background: rgba(6, 95, 70, 0.86);
}
.asset-copy {
  min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 2px 2px 0 0; justify-content: flex-start;
}
.asset-recos,
.asset-actions { display: none !important; }
.asset-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.asset-name-row strong {
  font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asset-meta-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.asset-tag {
  height: 18px; padding: 0 7px; border-radius: 4px; font-size: 11px; flex: 0 0 auto;
  background: rgba(99, 102, 241, 0.28); color: #c7d2fe; display: inline-flex; align-items: center;
  border: none;
}
.asset-mode-tag,
.asset-adopted-tag { display: none !important; }
.asset-card:has(.asset-official-tag:hover),
.asset-card:has(.asset-official-tag:focus-visible) {
  overflow: visible;
  z-index: 8;
}
.asset-official-tag {
  position: relative;
  height: 18px; padding: 0 7px; border-radius: 4px; font-size: 11px; flex: 0 0 auto;
  display: inline-flex; align-items: center; white-space: nowrap;
  background: rgba(16, 185, 129, 0.16); color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.28);
  cursor: help;
  z-index: 2;
}
.asset-official-tag[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  width: max-content;
  max-width: min(240px, 56vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
.asset-official-tag[data-tip]::before {
  content: "";
  position: absolute;
  left: 14px;
  top: calc(100% + 2px);
  transform: translateY(-4px);
  border: 6px solid transparent;
  border-bottom-color: rgba(18, 20, 28, 0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 31;
}
.asset-official-tag[data-tip]:hover::after,
.asset-official-tag[data-tip]:focus-visible::after,
.asset-official-tag[data-tip]:hover::before,
.asset-official-tag[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}
.asset-looks { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.asset-status {
  font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.4;
}
.asset-status em {
  font-style: normal; color: #f59e0b;
}
.asset-status em.is-generating {
  color: #c4b5fd;
}
.asset-status em.is-confirm-warn {
  color: #f87171;
}
.asset-status.is-match-pending,
.asset-status.is-generating {
  color: rgba(255,255,255,0.55);
}
.asset-status.is-adopted {
  color: #6ee7b7;
}
.asset-status.is-adopted em {
  color: #6ee7b7;
}
.asset-thumb.is-generating {
  animation: asset-gen-pulse 1.1s ease-in-out infinite;
}
@keyframes asset-gen-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.16); }
  50% { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.55); background: #353545; }
}
.asset-reco-faces {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.asset-reco-face {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 0;
  border: 1.5px solid #16161e;
  overflow: hidden;
  background: #1a1a22;
  margin-left: -6px;
  cursor: pointer;
  transition: 0.15s ease;
}
.asset-reco-face:first-child { margin-left: 0; }
.asset-reco-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.asset-reco-face:hover,
.asset-reco-face.is-active {
  border-color: #a78bfa;
  transform: translateY(-1px);
  z-index: 8 !important;
}
.asset-reco-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.asset-reco-label .asset-save {
  display: inline-flex;
  vertical-align: middle;
}
.asset-save {
  height: 16px; padding: 0 6px; border-radius: 999px; font-size: 10px;
  background: rgba(139, 92, 246, 0.16); color: #ddd6fe; display: inline-flex; align-items: center;
}
.asset-reason { display: none; }
.asset-desc {
  color: rgba(255,255,255,0.48); font-size: 12px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.asset-mini-btn {
  height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03); transition: 0.15s ease;
}
.asset-mini-btn:hover { color: #fff; border-color: rgba(167, 139, 250, 0.45); background: rgba(139, 92, 246, 0.14); }
.asset-empty {
  grid-column: 1 / -1; padding: 56px 20px; text-align: center; color: var(--text-muted);
  border: 1px dashed var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
}

.look-sheet-solid {
  width: 100%; aspect-ratio: 16 / 9; display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr 0.85fr; gap: 8px; padding: 14px;
  background: #ececf0; box-sizing: border-box;
}
.look-sheet-solid .look-panel { display: block; border-radius: 10px; min-height: 100%; }
.look-sheet-solid.tone-a .look-panel:nth-child(1) { background: #5b4b8a; }
.look-sheet-solid.tone-a .look-panel:nth-child(2) { background: #4a3c70; }
.look-sheet-solid.tone-a .look-panel:nth-child(3) { background: #3f3463; }
.look-sheet-solid.tone-a .look-panel:nth-child(4) { background: #32294f; }
.look-sheet-solid.tone-b .look-panel:nth-child(1) { background: #3d5a80; }
.look-sheet-solid.tone-b .look-panel:nth-child(2) { background: #334d6d; }
.look-sheet-solid.tone-b .look-panel:nth-child(3) { background: #293241; }
.look-sheet-solid.tone-b .look-panel:nth-child(4) { background: #1f2833; }
.look-sheet-solid.tone-c .look-panel:nth-child(1) { background: #8a5a44; }
.look-sheet-solid.tone-c .look-panel:nth-child(2) { background: #744a39; }
.look-sheet-solid.tone-c .look-panel:nth-child(3) { background: #5c3b2e; }
.look-sheet-solid.tone-c .look-panel:nth-child(4) { background: #46312a; }
.look-sheet-solid.tone-d .look-panel:nth-child(1) { background: #2f6f68; }
.look-sheet-solid.tone-d .look-panel:nth-child(2) { background: #275c56; }
.look-sheet-solid.tone-d .look-panel:nth-child(3) { background: #1f4a45; }
.look-sheet-solid.tone-d .look-panel:nth-child(4) { background: #173833; }
.look-sheet-solid.tone-e .look-panel:nth-child(1) { background: #6b4f4f; }
.look-sheet-solid.tone-e .look-panel:nth-child(2) { background: #584141; }
.look-sheet-solid.tone-e .look-panel:nth-child(3) { background: #463434; }
.look-sheet-solid.tone-e .look-panel:nth-child(4) { background: #352828; }
.edit-preview-solid { min-height: 280px; aspect-ratio: auto; height: 100%; }

/* 官方资产选图弹窗 */
.modal.match-pick-modal {
  z-index: 80;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}
.modal.match-gen-confirm { z-index: 90; }
.match-pick-panel {
  width: min(1120px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: rise 0.28s var(--ease) both;
}
.match-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 18px 12px;
}
.match-pick-head h3,
.match-pick-head [data-match-pick-title] {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-pick-progress,
.match-badge { display: none !important; }
.match-pick-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.match-pick-side-nav { display: none !important; }
.match-pick-detail-card {
  flex: 1 1 auto;
  min-height: 420px;
  display: grid;
  grid-template-columns: 58px 300px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #222228;
  border: 1px solid rgba(255,255,255,0.05);
  align-items: stretch;
}
.match-pick-views {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-pick-view {
  width: 58px;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background: #111114;
  padding: 0;
  cursor: pointer;
}
.match-pick-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  background: #f3f3f5;
}
.match-pick-view span { display: none; }
.match-pick-view.is-active {
  border-color: #6d5cff;
}
.match-pick-hero {
  width: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 400px;
  height: 100%;
}
.match-pick-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  background: #f3f3f5;
}
.match-pick-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 8px 8px 18px;
  min-width: 0;
  overflow: auto;
}
.match-pick-cat { display: none !important; }
.match-pick-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.25;
}
.match-pick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.match-pick-tags span {
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 6px;
  color: #b8b8c2;
  background: #2f2f38;
  border: none;
}
.match-pick-tags span.is-cat {
  color: #d8d8e0;
  background: #3a3a44;
}
.match-pick-desc-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  padding-left: 22px;
}
.match-pick-reason {
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  max-height: none;
}
.match-pick-req { display: none !important; }
.match-pick-preview-label {
  position: absolute;
  left: 0;
  top: 28%;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  line-height: 1;
}
.match-pick-reco-card {
  flex: 0 0 auto;
  padding: 12px 14px 10px;
  border-radius: 12px;
  background: #222228;
  border: 1px solid rgba(255,255,255,0.05);
}
.match-pick-reco-card h4,
.match-pick-more h4 {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin: 0 0 10px;
}
.match-pick-rail {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.match-pick-rail-item {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 128px;
  margin-left: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background: #111114;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
}
.match-pick-rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  background: #f3f3f5;
}
.match-pick-rail-item em {
  position: absolute;
  left: 5px;
  top: 5px;
  font-style: normal;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  color: #fff;
  background: rgba(17, 17, 24, 0.78);
}
.match-pick-rail-item em.is-preferred { background: rgba(109, 40, 217, 0.9); }
.match-pick-rail-item em.is-selected { background: rgba(79, 70, 229, 0.92); }
.match-pick-rail-item.is-active {
  border-color: #6d5cff;
}
.match-pick-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #17171c;
}
.match-pick-selected {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.match-pick-selected em { font-style: normal; }
.match-pick-selected img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 15%;
  background: #2a2a33;
  border: 1px solid rgba(255,255,255,0.1);
}
.match-pick-hint {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  max-width: 260px;
}
.match-pick-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.match-pick-actions .btn {
  height: 36px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
}
.match-pick-actions .btn-primary {
  background: #fff;
  color: #111;
  border-color: transparent;
  min-width: 84px;
  font-weight: 600;
}
.match-pick-actions .btn-primary:hover {
  background: #f2f2f4;
  color: #111;
  filter: none;
}
.match-pick-actions .btn-ghost {
  min-width: 72px;
  border-color: rgba(255,255,255,0.16);
  color: #fff;
  background: transparent;
}
@media (max-width: 900px) {
  .match-pick-panel { height: auto; max-height: calc(100vh - 24px); }
  .match-pick-detail-card {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .match-pick-hero {
    width: 100%;
    min-height: 280px;
    grid-column: 2;
  }
  .match-pick-meta {
    grid-column: 1 / -1;
  }
}

/* 角色资产画布 */
.char-canvas {
  position: absolute;
  inset: 0;
  z-index: 35;
  padding: 0;
  background: #121214;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.char-canvas-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 18, 20, 0.96);
}
.char-back, .char-close {
  width: 34px; height: 34px; border-radius: 10px; color: var(--text-secondary);
  display: grid; place-items: center; flex: 0 0 auto; transition: 0.15s ease;
}
.char-back:hover, .char-close:hover { background: rgba(255,255,255,0.06); color: #fff; }
.char-back svg { width: 18px; height: 18px; fill: currentColor; }
.char-close { font-size: 22px; margin-left: auto; }
.char-pills {
  display: flex; align-items: center; gap: 8px; overflow-x: auto;
  padding: 2px 4px; scrollbar-width: none; min-width: 0; flex: 1;
}
.char-pills::-webkit-scrollbar { display: none; }
.char-pill {
  height: 34px; padding: 0 14px; border-radius: 999px; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78); font-size: 13px; white-space: nowrap; transition: 0.15s ease;
}
.char-pill:hover { color: #fff; border-color: rgba(255,255,255,0.16); }
.char-pill.is-active {
  background: #7c3aed; color: #fff; border-color: transparent; font-weight: 600;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.char-canvas-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 28px 4px;
}
.char-canvas-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-add-look {
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  background: transparent;
}
.look-layout-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  gap: 2px;
}
.look-layout-switch button {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.look-layout-switch button.is-active {
  background: rgba(124, 58, 237, 0.28);
  color: #ede9fe;
}
.look-layout-switch button:hover:not(.is-active) {
  color: rgba(255,255,255,0.88);
}
.char-canvas-copy h2 { font-size: 30px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.02em; }
.char-canvas-copy p {
  max-width: 760px; color: #9ca3af; font-size: 14px; line-height: 1.7;
}
.char-stage {
  position: relative; flex: 1; min-height: 0;
  display: grid; place-items: center; padding: 12px 28px 96px;
  overflow: auto;
}
.look-tree {
  width: min(860px, 100%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
.look-card {
  position: relative;
  border-radius: 16px; overflow: hidden;
  background: #1c1c22; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  cursor: pointer; transition: border-color 0.18s ease;
}
.look-card:hover { border-color: rgba(255,255,255,0.18); }
.look-root-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: min(720px, 100%);
  position: relative;
  z-index: 1;
  min-height: 120px;
  padding-bottom: 8px;
}
.look-card-root {
  width: min(280px, 86%);
  flex: 0 0 auto;
  background: #1c1c22;
  border-color: rgba(255,255,255,0.1);
  overflow: visible;
  position: relative;
  z-index: 2;
  transition: width 0.18s ease, border-color 0.18s ease;
}
.look-card-root.has-official {
  width: min(480px, 96%);
  border-color: rgba(52, 211, 153, 0.28);
  background:
    linear-gradient(90deg, #1c1c22 0 66.666%, rgba(16, 185, 129, 0.08) 66.666%, rgba(16, 185, 129, 0.03) 100%);
}

/* 竖图样式案例：上下堆叠 + 竖向候选预览 */
.look-card-root.is-portrait {
  width: min(300px, 92%);
}
.look-card-root.is-portrait.has-official {
  width: min(300px, 92%);
  background:
    linear-gradient(180deg, #1c1c22 0 54%, rgba(16, 185, 129, 0.08) 54%, rgba(16, 185, 129, 0.03) 100%);
}
.look-card-root.is-portrait .look-root-main {
  flex-direction: column;
  min-height: 0;
}
.look-card-root.is-portrait .look-root-body,
.look-card-root.is-portrait.has-official .look-root-body {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 96px;
  padding: 14px 14px 12px;
}
.look-card-root.is-portrait .look-child-thumb {
  width: 58px;
  flex: 0 0 58px;
  height: 78px;
  border-radius: 10px;
  align-self: flex-start;
}
.look-card-root.is-portrait .look-official-entry {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  border-left: 0;
  border-top: 1px solid rgba(52, 211, 153, 0.22);
}
.look-card-root.is-portrait .look-official-entry:hover {
  border-color: rgba(52, 211, 153, 0.22);
}
.look-card-root.is-portrait .look-official-faces {
  height: 56px;
  flex: 0 0 auto;
  gap: 0;
}
.look-card-root.is-portrait .look-official-face {
  width: 32px;
  height: 42px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  margin-left: -14px;
}
.look-card-root.is-portrait .look-official-face:first-child {
  width: 42px;
  height: 56px;
  border-radius: 10px;
  margin-left: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.38);
}
.look-card-root.is-portrait .look-official-matching-dot {
  width: 36px;
  height: 48px;
  border-radius: 8px;
}
.look-card-root.is-portrait .look-official-copy {
  flex: 1 1 auto;
  gap: 8px;
}
.look-card-root.is-portrait .look-official-copy strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.look-root-main {
  display: flex;
  align-items: stretch;
  min-height: 120px;
}
.look-official-entry {
  flex: 0 0 33.333%;
  width: 33.333%;
  max-width: 33.333%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 12px 12px 12px 14px;
  border: 0;
  border-left: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: #fff;
  transition: background 0.18s ease;
  box-sizing: border-box;
  height: auto;
  min-height: 120px;
  overflow: hidden;
  box-shadow: none;
  z-index: 1;
  cursor: pointer;
  user-select: none;
}
.look-official-entry:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(52, 211, 153, 0.22);
  transform: none;
}
.look-official-entry:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.58);
  outline-offset: -2px;
}
.look-official-entry.is-adopted,
.look-official-entry.is-replace {
  border-left-color: rgba(52, 211, 153, 0.34);
}
.look-official-entry.is-matching {
  cursor: default;
  opacity: 0.96;
}
.look-official-matching-dot {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px dashed rgba(52, 211, 153, 0.45);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.04));
  position: relative;
  flex: 0 0 auto;
}
.look-official-matching-dot::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid rgba(167, 243, 208, 0.35);
  border-top-color: #6ee7b7;
  animation: look-match-spin 0.9s linear infinite;
}
@keyframes look-match-spin {
  to { transform: rotate(360deg); }
}
.look-official-faces {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  height: 44px;
  max-width: 100%;
}
.look-official-face {
  position: relative;
  width: 48px;
  height: 30px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(12, 16, 14, 0.92);
  background: #2c2c35;
  margin-left: -18px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.36);
  flex: 0 0 auto;
  pointer-events: none;
}
.look-official-face:first-child {
  margin-left: 0;
  width: 70px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.42);
}
.look-official-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.look-official-copy {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  overflow: hidden;
}
.look-official-title-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  max-width: 100%;
}
.look-official-copy strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 680;
  color: #a7f3d0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.look-official-arrow {
  flex: 0 0 auto;
  color: rgba(167, 243, 208, 0.75);
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}
.look-official-entry:not(.is-matching):hover .look-official-title-row strong {
  color: #d1fae5;
}
.look-official-entry:not(.is-matching):hover .look-official-arrow {
  color: #a7f3d0;
  transform: translateX(1px);
}
.look-official-hint {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 11px;
  font-weight: 450;
  font-style: normal;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
}
.look-official-desc,
.look-official-copy em {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  line-height: 1.3;
  min-width: 0;
  max-width: 100%;
}
.look-official-desc [data-look-official-progress] {
  white-space: nowrap;
}
.look-official-desc [data-look-official-progress]:not([hidden]) + [data-look-official-state]::before {
  content: "|";
  margin-right: 6px;
  color: rgba(255,255,255,0.28);
  font-weight: 500;
}
.look-official-copy .is-confirm-warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 650;
}
.look-official-entry:not(.is-matching):not(.is-adopted):not(.is-replace) [data-look-official-state].is-confirm-warn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.28);
}
.look-official-entry.is-matching .is-confirm-warn {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fca5a5;
}
.look-official-copy .is-adopted {
  color: #6ee7b7;
  font-weight: 600;
}
.look-official-copy .is-pending-fill {
  color: #f59e0b;
  font-weight: 600;
}
.look-root-body {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px; min-height: 96px;
  height: 96px;
  box-sizing: content-box;
  flex: 1 1 66.666%;
  width: auto;
  min-width: 0;
}
.look-card-root.has-official .look-root-body {
  flex: 1 1 66.666%;
  width: auto;
}
.look-card-root .look-child-thumb {
  width: 72px; flex: 0 0 72px; height: 72px; align-self: center;
}
.look-card-root .look-child-copy strong {
  font-size: 14px;
}
.look-card-root .look-child-copy p {
  -webkit-line-clamp: 2;
  color: rgba(255,255,255,0.55);
}
.look-sheet-wrap { display: none; }
.look-sheet { display: none; }
.look-meta { display: none; }
.look-add {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: #7c3aed; color: #fff; font-size: 20px; line-height: 1;
  box-shadow: 0 10px 24px rgba(124,58,237,0.45);
  z-index: 2;
}
.look-links {
  width: min(560px, 92%);
  height: 72px;
  margin-top: 20px;
  display: block;
}
.look-children {
  width: min(560px, 92%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: -4px;
}
.look-child {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px; min-height: 108px;
  background: #1c1c22;
}
.look-child-thumb {
  width: 84px; flex: 0 0 84px; border-radius: 10px;
  background: #2c2c35; display: grid; place-items: center;
  color: rgba(255,255,255,0.28);
}
.look-child-thumb svg { width: 28px; height: 28px; }
.look-child-thumb.is-filled {
  padding: 0;
  overflow: hidden;
  background: #1a1a22;
}
.look-child-thumb.is-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.look-child-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.look-child-copy strong {
  font-size: 14px; font-weight: 650; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.look-child-copy p {
  color: rgba(255,255,255,0.48); font-size: 12px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.char-float-tools {
  position: absolute; right: 24px; top: 24px;
  display: grid; gap: 8px; padding: 8px; border-radius: 16px;
  background: rgba(24,24,32,0.92); border: 1px solid rgba(255,255,255,0.08);
}
.char-float-tools button {
  width: 36px; height: 36px; border-radius: 10px; color: #fff;
  background: #7c3aed; font-size: 13px;
}
.char-float-tools button:last-child { background: rgba(255,255,255,0.06); color: #a1a1b2; }
.char-nav { position: absolute; left: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 2; }
.char-minimap {
  width: 148px; height: 88px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); background: #16161e; position: relative; overflow: hidden;
}
.char-minimap span {
  position: absolute; left: 28%; top: 18%; width: 42%; height: 52%;
  border: 1px solid rgba(96,165,250,0.9); border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(0,0,0,0.28);
}
.char-zoom {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px;
  background: rgba(24,24,32,0.92); border: 1px solid rgba(255,255,255,0.08);
}
.char-zoom button {
  width: 30px; height: 28px; border-radius: 8px; color: #a1a1b2; font-size: 13px;
}
.char-zoom button.is-active, .char-zoom button:hover {
  background: rgba(124,58,237,0.22); color: #ddd6fe;
}
@media (max-width: 860px) {
  .look-children { grid-template-columns: 1fr; width: min(560px, 92%); }
  .look-links { display: none; }
  .look-root-row {
    width: min(560px, 92%);
    min-height: 0;
    padding-bottom: 24px;
  }
  .look-card-root,
  .look-card-root.has-official,
  .look-card-root.is-portrait,
  .look-card-root.is-portrait.has-official { width: 100%; }
  .look-root-main { flex-direction: column; }
  .look-root-body,
  .look-card-root.has-official .look-root-body {
    width: 100%;
    height: auto;
    min-height: 84px;
  }
  .look-official-entry {
    width: 100%;
    min-height: 96px;
    border-left: 0;
    border-top: 1px solid rgba(52, 211, 153, 0.22);
  }
  .look-card-root.is-portrait .look-official-entry {
    min-height: 0;
  }
}



/* 分集视频页 */
.ws-episodes {
  padding: 20px 32px 48px;
  overflow: auto;
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(124, 58, 237, 0.08), transparent 60%),
    #0a0a0e;
}
.epv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.epv-toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.epv-count {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.epv-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  width: min(220px, 28vw);
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.45);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.epv-search:focus-within {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(255, 255, 255, 0.045);
}
.epv-search svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0.8; }
.epv-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}
.epv-search input::placeholder { color: rgba(255, 255, 255, 0.28); }
.epv-toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.epv-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.epv-toolbar-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}
.epv-toolbar-parse {
  padding-left: 2px;
}
.epv-field.footer-field > span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}
.epv-toolbar-parse .footer-field .select {
  width: 128px;
}
.epv-toolbar-parse .select-trigger {
  height: 34px;
}
.epv-toolbar-parse .select-menu {
  top: calc(100% + 6px);
  bottom: auto;
  z-index: 40;
}
.epv-batch-parse {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(105deg, #ffffff 0%, #f3efff 55%, #e9e0ff 100%);
  color: #12121a;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 148px;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.2);
  transition: 0.15s ease;
}
.epv-batch-parse .spark { color: #7c3aed; }
.epv-batch-parse:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.26);
}
.epv-batch-parse:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.epv-batch-parse[hidden] { display: none !important; }
.epv-batch-produce {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.38);
  background: linear-gradient(105deg, rgba(124, 58, 237, 0.28), rgba(91, 33, 182, 0.18));
  color: #ede9fe;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(91, 33, 182, 0.18);
  transition: 0.15s ease;
}
.epv-batch-produce svg { width: 14px; height: 14px; }
.epv-batch-produce:hover {
  filter: brightness(1.06);
  color: #fff;
  border-color: rgba(196, 181, 253, 0.5);
}
.epv-batch-export {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.15s ease;
}
.epv-batch-export svg { width: 14px; height: 14px; }
.epv-batch-export:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.epv-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.68);
  display: grid;
  place-items: center;
  transition: 0.15s ease;
}
.epv-icon-btn svg { width: 15px; height: 15px; }
.epv-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.epv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.epv-card {
  position: relative;
  display: grid;
  grid-template-columns: 14px 26px 81px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 152px;
  padding: 14px 16px 14px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #1b1b22 0%, #16161c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.epv-card.is-pending .epv-main { justify-content: space-between; }
.epv-card.is-pending .epv-actions { margin-top: 8px; }
.epv-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #1e1e26 0%, #18181f 100%);
}
.epv-handle {
  align-self: stretch;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  cursor: grab;
}
.epv-handle:hover { color: rgba(255, 255, 255, 0.35); }
.epv-handle svg { width: 10px; height: 16px; }
.epv-index {
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-num);
  line-height: 1;
  letter-spacing: -0.02em;
}
.epv-thumb {
  position: relative;
  width: 81px;
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #121218;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
  align-self: center;
}
.epv-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.epv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.epv-play svg {
  width: 12px;
  height: 12px;
  margin-left: 1px;
}
.epv-thumb.is-empty {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.04), transparent 50%),
    #23232b;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.epv-thumb.is-empty svg { width: 26px; height: 26px; opacity: 0.9; }
.epv-duration {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 3;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 560;
  font-family: var(--font-num);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}
.epv-main {
  min-width: 0;
  min-height: 144px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 2px 0 0;
}
.epv-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: #f7f7f8;
  letter-spacing: 0.01em;
}
.epv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1;
}
.epv-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.epv-meta svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}
.epv-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.epv-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.epv-progress-track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c6cff 45%, #60a5fa 100%);
}
.epv-progress em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-num);
  min-width: 34px;
  text-align: right;
  font-weight: 560;
}
.epv-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.epv-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 520;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.15s ease;
}
.epv-btn svg { width: 12px; height: 12px; opacity: 0.85; }
.epv-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.epv-btn-primary {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(105deg, #ffffff 0%, #f4f0ff 55%, #ebe4ff 100%);
  color: #121218;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.22), 0 1px 0 rgba(255,255,255,0.65) inset;
  transition: 0.15s ease;
  cursor: pointer;
}
.epv-btn-primary svg { width: 15px; height: 15px; color: #7c3aed; }
.epv-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28), 0 1px 0 rgba(255,255,255,0.7) inset;
}
.epv-btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.epv-empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
@media (max-width: 1100px) {
  .epv-list { grid-template-columns: 1fr; }
  .ws-episodes { padding: 16px 18px 40px; }
}

/* 编辑形象弹窗 — 形象条在弹窗内文档流，保证完整露出 */
.edit-modal {
  align-items: stretch;
  justify-content: center;
  padding: 18px 12px 12px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.62);
}
.edit-modal-shell {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: min(1680px, calc(100vw - 24px));
  max-width: 100%;
  height: calc(100vh - 30px);
  max-height: calc(100vh - 30px);
}
.edit-panel-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow: visible;
}
.edit-side-nav {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 62px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 22, 0.88);
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: 0.18s var(--ease);
}
.edit-side-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.edit-side-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.edit-side-nav[hidden] { display: none !important; }
.edit-panel {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  border-radius: 14px;
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px 0 18px;
  flex: 0 0 auto;
  gap: 12px;
}
.edit-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.edit-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f3f3f5;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edit-look-rel {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.edit-look-rel[hidden] { display: none !important; }
.edit-head .modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 18px;
}
.edit-head .modal-close:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.edit-look-rail {
  position: relative;
  top: auto;
  left: auto;
  z-index: 3;
  transform: none;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(720px, 100%);
  max-width: 100%;
  flex: 0 0 auto;
  pointer-events: auto;
}
.edit-look-rail[hidden] { display: none !important; }
.edit-look-rail-nav {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 22, 0.92);
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: 0.15s ease;
}
.edit-look-rail-nav:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}
.edit-look-rail-nav:disabled {
  opacity: 0.28;
  cursor: default;
}
.edit-look-rail-nav[hidden] { display: none !important; }
.edit-look-strip {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  padding: 2px 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  cursor: grab;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.edit-look-strip.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}
.edit-look-strip.is-dragging .edit-look-chip {
  pointer-events: none;
}
.edit-look-strip::-webkit-scrollbar { display: none; }
.edit-look-chip {
  flex: 0 0 auto;
  width: 86px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(18, 18, 22, 0.92);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
  transition: 0.18s var(--ease);
  scroll-snap-align: start;
}
.edit-look-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}
.edit-look-chip.is-active {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.28);
  background: rgba(124, 58, 237, 0.12);
  color: #fff;
}
.edit-look-chip.is-pending .edit-look-chip-thumb {
  opacity: 0.72;
}
.edit-look-chip-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #121216;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.edit-look-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.edit-look-empty {
  color: rgba(255, 255, 255, 0.28);
  display: inline-flex;
}
.edit-look-empty svg { width: 14px; height: 14px; }
.edit-look-chip-label {
  padding: 0 5px 5px;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edit-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 0 18px 12px;
  overflow: hidden;
}
.edit-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}
.edit-label {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.52);
}
.edit-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.edit-col-left .select-trigger {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}
.edit-field-voice {
  flex: 1 1 auto;
  min-height: 0;
}
.edit-field-voice textarea {
  flex: 1;
  min-height: 140px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121216;
  color: rgba(255, 255, 255, 0.86);
  padding: 11px 12px;
  line-height: 1.65;
  font-size: 13px;
  resize: none;
}
.edit-audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.edit-audio-upload {
  height: 38px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121216;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}
.edit-audio-upload svg { width: 15px; height: 15px; opacity: 0.85; }
.edit-audio-upload:hover {
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  transition: 0.18s ease;
  cursor: pointer;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.switch input:checked + span {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}
.switch input:checked + span::after { transform: translateX(16px); }

.edit-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}
.edit-prompt-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  flex: 0 0 auto;
}
.edit-prompt-head .edit-icon-btn {
  flex: 0 0 auto;
}
.edit-prompt-tabs button {
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
}
.edit-prompt-tabs button.is-active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
}
.edit-prompt-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #121216;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.edit-col-mid {
  overflow: hidden;
}
.edit-col-right {
  overflow: hidden;
}
.edit-prompt-card textarea {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: rgba(255,255,255,0.9);
  padding: 14px 14px 36px;
  font-size: 13px;
  line-height: 1.6;
}
.edit-prompt-card textarea::placeholder {
  color: rgba(255,255,255,0.28);
}
.edit-prompt-count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  font-family: var(--font-num);
  pointer-events: none;
}
.edit-mid-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 40px;
  overflow: visible;
}
.edit-mid-left {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.edit-mid-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.edit-plus-wrap {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.edit-plus-menu {
  display: none;
  position: static;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.edit-plus-menu::after { display: none; }
.edit-plus-wrap:hover .edit-plus-menu,
.edit-plus-wrap:focus-within .edit-plus-menu,
.edit-plus-wrap.is-open .edit-plus-menu {
  display: inline-flex;
}
.edit-plus-menu button {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(28, 28, 34, 0.96);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}
.edit-plus-menu button:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.edit-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.edit-icon-btn svg { width: 15px; height: 15px; }
.edit-icon-btn:hover,
.edit-plus-wrap:hover > .edit-icon-btn,
.edit-plus-wrap.is-open > .edit-icon-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.edit-model-text {
  height: 30px;
  padding: 0 2px 0 4px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edit-model-text svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}
.edit-model-text:hover { color: rgba(255,255,255,0.88); }
.edit-btn-match {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.28);
}
.edit-btn-match svg { width: 14px; height: 14px; color: #fff; flex-shrink: 0; }
.edit-btn-match:hover { filter: brightness(1.06); }
.edit-btn-generate {
  height: 34px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #121218;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}
.edit-btn-generate .spark {
  color: #7c3aed;
  font-size: 12px;
  line-height: 1;
}
.edit-btn-generate em {
  font-style: normal;
  font-family: var(--font-num);
  font-weight: 650;
  opacity: 0.72;
}
.edit-btn-generate:hover { filter: brightness(0.97); }

.edit-preview {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #121216;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.edit-match-strip {
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.06));
  border-bottom: 1px solid rgba(52, 211, 153, 0.22);
}
.edit-match-strip-bar {
  width: 100%;
  min-height: 42px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1fae5;
  text-align: left;
}
.edit-match-strip-text {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.edit-match-strip-thumbs {
  display: inline-flex;
  align-items: center;
}
.edit-match-strip-thumbs img,
.edit-match-mini-ph {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(6, 40, 30, 0.9);
  margin-left: -6px;
  background: #234;
  display: inline-block;
  flex: 0 0 auto;
}
.edit-match-mini-ph {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    #1f3b32;
  border-color: rgba(52, 211, 153, 0.28);
}
.edit-match-strip-thumbs img:first-child,
.edit-match-mini-ph:first-child { margin-left: 0; }
.edit-match-strip-action {
  margin-left: auto;
  font-size: 12px;
  color: rgba(167, 243, 208, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.edit-match-strip-action i { font-style: normal; }
.edit-official-body {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.edit-official-body[hidden] { display: none !important; }
.edit-official-faces {
  display: inline-flex;
  gap: 8px;
}
.edit-official-face {
  width: 64px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(18, 24, 22, 0.95);
  background: #2c2c35;
  padding: 0;
  cursor: pointer;
}
.edit-official-face img,
.edit-official-face-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edit-official-face-ph {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    #2a2a33;
  position: relative;
}
.edit-official-face-ph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.18);
  transform: translate(-50%, -50%);
  opacity: 0.7;
}
.edit-official-face.is-active { border-color: #6ee7b7; }
.edit-official-hint {
  margin: 0;
  color: #a7f3d0;
  font-size: 12px;
  text-align: center;
}
.edit-official-matching-dot {
  width: 64px;
  height: 84px;
  border-radius: 8px;
  border: 1px dashed rgba(52, 211, 153, 0.45);
  position: relative;
}
.edit-official-matching-dot::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 2px solid rgba(167, 243, 208, 0.3);
  border-top-color: #6ee7b7;
  animation: look-match-spin 0.9s linear infinite;
}
.edit-preview-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #0f0f13;
}
.edit-preview.is-filled .edit-preview-empty { display: none; }
.edit-preview.is-filled .edit-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f3f3f4;
}
.edit-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
}
.edit-empty-stack { position: relative; width: 108px; height: 78px; }
.edit-empty-card {
  position: absolute;
  width: 54px;
  height: 68px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
.edit-empty-card svg { width: 18px; height: 18px; }
.edit-empty-card.is-a { left: 0; top: 10px; transform: rotate(-14deg); background: #3b3426; color: #e8c36a; }
.edit-empty-card.is-b { left: 27px; top: 0; background: #2a3544; color: #9ec0e6; z-index: 1; }
.edit-empty-card.is-c { left: 54px; top: 12px; transform: rotate(12deg); background: #243830; color: #9ad7b8; }
.edit-preview-upload { display: inline-flex; gap: 8px; }
.edit-preview-upload button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(18,18,24,0.72);
  color: #e5e7eb;
  font-size: 12px;
}
.edit-preview-upload button:hover {
  background: rgba(28,28,36,0.9);
  color: #fff;
}
.edit-preview-actions {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}
.edit-preview-actions[hidden] { display: none; }
.edit-preview-actions button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(18, 18, 24, 0.78);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}
.edit-preview-actions button svg { width: 13px; height: 13px; }
.edit-preview-actions button:hover { background: rgba(28, 28, 36, 0.92); }

.edit-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 20px;
  flex: 0 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.edit-btn-cancel,
.edit-btn-save {
  min-width: 88px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.edit-btn-cancel {
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: rgba(255,255,255,0.88);
}
.edit-btn-cancel:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}
.edit-btn-save {
  border: 0;
  background: #fff;
  color: #121218;
}
.edit-btn-save:hover { filter: brightness(0.97); }

@media (max-width: 1100px) {
  .edit-modal { padding: 12px 8px 8px; }
  .edit-modal-shell {
    width: calc(100vw - 16px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
  .edit-side-nav { margin-top: 58px; }
  .edit-panel { height: 100%; max-height: none; }
  .edit-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .char-canvas-head { flex-direction: column; }
}

.ws-footer {
  position: sticky; bottom: 0; z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  padding: 12px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 14, 0.94);
  backdrop-filter: blur(18px);
  overflow: visible;
}
.ws-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.ws-footer-left .btn-ghost {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  white-space: nowrap;
}
.ws-footer-asset-hint {
  flex: 1 1 220px;
  min-width: 0;
  max-width: min(560px, 100%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}
.ws-footer-asset-hint[hidden] { display: none !important; }
.ws-footer-status {
  display: inline-flex; align-items: center; gap: 9px; color: var(--text-secondary);
  font-size: 13px; max-width: min(420px, 36vw); line-height: 1.5;
}
.ws-footer-status[hidden] { display: none !important; }
.ws-footer-settings {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 0;
}
.ws-footer-settings[hidden] { display: none !important; }
.footer-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.footer-field > span {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.footer-field .select {
  width: 136px;
}
.ws-footer .footer-style-field {
  position: relative;
  z-index: 1;
}
.ws-footer .footer-style-field.is-open {
  z-index: 90;
}
.ws-footer .footer-style-field .style-trigger {
  width: auto;
  min-width: 196px;
  max-width: 240px;
  height: 32px;
  padding: 0 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ws-footer .footer-style-field .style-trigger-main {
  min-width: 0;
  flex: 1 1 auto;
}
.ws-footer .footer-style-field .style-cube {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.ws-footer .style-library {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
  width: min(680px, calc(100vw - 80px));
  max-height: min(480px, 68vh);
  z-index: 95;
}
.ws-footer .select-menu {
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 40;
}
.ws-footer-parse-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.ws-footer-parse-wrap[hidden] { display: none !important; }
.ws-footer-parse-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  z-index: 45;
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  animation: rise 0.22s var(--ease) both;
}
.ws-footer-parse-popover[hidden] { display: none !important; }
.ws-footer-parse-popover .assets-parse-scope {
  margin: 0;
  background: linear-gradient(180deg, #1d1d27, #16161e);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-footer-parse-popover .assets-parse-ep-list {
  max-height: min(180px, 28vh);
}
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-self: end;
  min-width: 0;
}
.ws-footer-actions .btn,
.ws-footer-actions .btn-gen-all,
.ws-footer-actions .btn-next,
.ws-footer-actions .btn-ghost {
  white-space: nowrap;
  flex-shrink: 0;
}
.ws-footer-actions .btn-ghost:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
}
.ws-footer-actions .btn-ghost:disabled:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}
.ws-footer-actions .ws-footer-settings,
.ws-footer-actions .footer-field {
  flex-shrink: 0;
}
.btn-gen-all {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: linear-gradient(105deg, rgba(124, 58, 237, 0.22), rgba(91, 33, 182, 0.14));
  color: #ede9fe;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-gen-all .spark { color: #c4b5fd; }
.btn-gen-all .cost {
  opacity: 0.75;
  font-family: var(--font-num);
  font-weight: 600;
}
.btn-gen-all:hover {
  filter: brightness(1.06);
  border-color: rgba(196, 181, 253, 0.5);
  color: #fff;
}
.btn-gen-all[hidden] { display: none !important; }
/* 资产库：有待生成时全量生成为主 CTA，进入分镜拆解降为次按钮 */
.ws-footer-actions .btn-gen-all:not([hidden]).is-debt-cta {
  min-width: 168px;
  justify-content: center;
  border: none;
  background: linear-gradient(105deg, #ffffff 0%, #f3efff 55%, #e9e0ff 100%);
  color: #12121a;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
}
.ws-footer-actions .btn-gen-all:not([hidden]).is-debt-cta .spark { color: #7c3aed; }
.ws-footer-actions .btn-gen-all:not([hidden]).is-debt-cta .cost {
  opacity: 0.62;
  color: #12121a;
}
.ws-footer-actions .btn-gen-all:not([hidden]).is-debt-cta:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.26);
}
.ws-footer-actions .btn-gen-all.is-scope-pulse {
  animation: footer-gen-scope-pulse 1.05s ease;
}
.ws-footer-asset-hint.is-scope-pulse {
  animation: footer-hint-scope-pulse 1.05s ease;
}
@keyframes footer-gen-scope-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
  28% {
    transform: scale(1.045);
    box-shadow: 0 0 0 8px rgba(167, 139, 250, 0.22);
    filter: brightness(1.08);
  }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}
@keyframes footer-hint-scope-pulse {
  0% { color: rgba(255, 255, 255, 0.46); }
  35% { color: #fff; }
  100% { color: rgba(196, 181, 253, 0.9); }
}
.ws-footer-actions .btn-next.is-select-gen-primary {
  min-width: 168px;
  justify-content: center;
  border: none;
  background: linear-gradient(105deg, #ffffff 0%, #f3efff 55%, #e9e0ff 100%);
  color: #12121a;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
}
.ws-footer-actions .btn-next.is-select-gen-primary .spark { color: #7c3aed; }
.ws-footer-actions .btn-next.is-select-gen-primary .cost {
  opacity: 0.62;
  color: #12121a;
}
.ws-footer-actions .btn-next.is-select-gen-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.26);
}
.ws-footer-actions .btn-next.is-scope-pulse {
  animation: footer-gen-scope-pulse 1.05s ease;
}
.ws-footer-actions .btn-gen-all:not([hidden]).is-debt-cta ~ .btn-next {
  min-width: auto;
  height: 36px;
  background: transparent;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}
.ws-footer-actions .btn-gen-all:not([hidden]).is-debt-cta ~ .btn-next:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.72);
}
.bot-icon { color: #a78bfa; }

/* Modal / Toast */
.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.58);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px); animation: fade 0.2s ease both;
}
.modal-panel {
  width: min(520px, 100%); border-radius: 18px;
  background: linear-gradient(180deg, #1d1d27, #16161e);
  border: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 22px 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55); animation: rise 0.28s var(--ease) both;
}
.assets-parse-modal .modal-panel {
  width: min(560px, 100%);
}
.assets-parse-scope {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.assets-parse-scope-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.assets-parse-scope-head strong {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
}
.assets-parse-scope-head span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
}
.assets-parse-scope-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.assets-parse-chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  cursor: pointer;
}
.assets-parse-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.assets-parse-chip.is-active {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(124, 58, 237, 0.16);
  color: #ede9fe;
}
.assets-parse-ep-list {
  display: grid;
  gap: 6px;
  max-height: min(220px, 32vh);
  overflow: auto;
  padding-right: 2px;
}
.assets-parse-ep {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
}
.assets-parse-ep:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.assets-parse-ep.is-active {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.12);
}
.assets-parse-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  flex: 0 0 auto;
  position: relative;
  box-sizing: border-box;
}
.assets-parse-ep.is-active .assets-parse-check {
  border-color: rgba(255, 255, 255, 0.92);
}
.assets-parse-ep.is-active .assets-parse-check::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.assets-parse-ep-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.assets-parse-ep-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.assets-parse-ep-copy em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.assets-parse-scope-note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

/* 上传资产弹窗 */
.upload-asset-modal {
  padding: 24px 16px;
  align-items: center;
}
.upload-asset-panel {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border-radius: 18px;
  background: linear-gradient(180deg, #1d1d27, #16161e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rise 0.28s var(--ease) both;
}
.upload-asset-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 8px;
}
.upload-asset-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.upload-asset-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.upload-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px;
}
.upload-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.upload-label i {
  color: #f87171;
  font-style: normal;
}
.upload-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  width: fit-content;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.upload-mode-btn {
  height: 34px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s ease;
}
.upload-mode-btn:hover {
  color: #fff;
}
.upload-mode-btn.is-active {
  background: rgba(124, 58, 237, 0.92);
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}
.upload-asset-panel .select-trigger {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}
.upload-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.upload-input-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 64px 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121216;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.upload-input-wrap input:focus {
  border-color: rgba(167, 139, 250, 0.55);
}
.upload-input-wrap em {
  position: absolute;
  right: 12px;
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-num);
  pointer-events: none;
}
.upload-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.upload-cat {
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  transition: 0.15s ease;
}
.upload-cat-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}
.upload-cat-icon svg {
  width: 13px;
  height: 13px;
}
.upload-cat:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.upload-cat.is-active {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.72);
  background: rgba(124, 58, 237, 0.16);
}
.upload-cat.is-active .upload-cat-icon {
  background: rgba(124, 58, 237, 0.35);
  color: #ede9fe;
}
.upload-dropzone {
  width: 100%;
  min-height: 220px;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: 0.15s ease;
}
.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(124, 58, 237, 0.08);
}
.upload-dropzone.is-filled {
  border-style: solid;
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(124, 58, 237, 0.1);
}
.upload-drop-icon {
  width: 56px;
  height: 44px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
}
.upload-drop-icon svg {
  width: 44px;
  height: 40px;
}
.upload-dropzone strong {
  font-size: 15px;
  font-weight: 650;
  color: #fff;
}
.upload-dropzone p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.upload-dropzone em {
  margin-top: 8px;
  max-width: 720px;
  font-style: normal;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.34);
}
.upload-file-chip {
  margin-top: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
  font-size: 12px;
}
.upload-file-chip[hidden] { display: none !important; }
.upload-asset-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.upload-asset-note {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}
.upload-asset-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.upload-asset-actions .btn {
  min-width: 88px;
  height: 38px;
}
.upload-asset-actions .btn-primary {
  background: #7c3aed;
  border-color: #7c3aed;
}
.upload-asset-actions .btn-primary:hover {
  filter: brightness(1.06);
}
.upload-optional {
  margin-left: 6px;
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}
.upload-guide {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(124, 58, 237, 0.04));
}
.upload-guide[hidden] {
  display: none !important;
}
.upload-guide-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upload-guide-copy strong {
  font-size: 13px;
  color: #ede9fe;
}
.upload-guide-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
}
.upload-guide-copy code {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #ddd6fe;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-all;
}
.upload-guide-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 148px;
}
.upload-guide-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.upload-guide-btn.is-primary {
  border-color: rgba(167, 139, 250, 0.55);
  background: #7c3aed;
  color: #fff;
}
.upload-guide-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  filter: brightness(1.05);
}
.upload-guide-link {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(221, 214, 254, 0.88);
  font-size: 11px;
  font-weight: 550;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.upload-guide-link:hover {
  color: #fff;
}
.upload-match-view {
  gap: 12px;
}
.upload-match-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.upload-match-stat {
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.upload-match-stat strong {
  display: block;
  font-size: 18px;
  font-family: var(--font-num);
  color: #fff;
}
.upload-match-stat span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
}
.upload-match-stat.is-high strong { color: #6ee7b7; }
.upload-match-stat.is-mid strong { color: #fbbf24; }
.upload-match-stat.is-low strong { color: #fca5a5; }
.upload-match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(48vh, 420px);
  overflow: auto;
  padding-right: 2px;
}
.upload-match-row {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "previews main"
    "previews cands"
    "previews actions";
  gap: 10px 14px;
  align-items: start;
}
.upload-match-row.is-mid,
.upload-match-row.is-low {
  grid-template-areas:
    "previews main"
    "cands cands"
    "actions actions";
}
.upload-match-previews {
  grid-area: previews;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.upload-match-arrow {
  color: rgba(255, 255, 255, 0.32);
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}
.upload-match-thumb {
  width: 64px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.upload-match-thumb img,
.upload-match-thumb-empty {
  width: 64px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121216;
  object-fit: cover;
  display: block;
}
.upload-match-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
.upload-match-thumb figcaption {
  max-width: 64px;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-match-row.is-high { border-color: rgba(52, 211, 153, 0.28); }
.upload-match-row.is-mid { border-color: rgba(251, 191, 36, 0.28); }
.upload-match-row.is-low { border-color: rgba(248, 113, 113, 0.22); }
.upload-match-row.is-confirmed { background: rgba(16, 185, 129, 0.08); }
.upload-match-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.upload-match-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.upload-match-status {
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
}
.upload-match-status.is-auto {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}
.upload-match-status.is-done {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}
.upload-match-status.is-warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}
.upload-match-reason {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.38);
}
.upload-match-badge {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 11px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}
.upload-match-row.is-high .upload-match-badge {
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
}
.upload-match-row.is-mid .upload-match-badge {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}
.upload-match-row.is-low .upload-match-badge {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}
.upload-match-copy {
  min-width: 0;
}
.upload-match-copy strong {
  display: block;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-match-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.upload-match-cands {
  grid-area: cands;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.upload-match-cand {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: 0.15s ease;
}
.upload-match-cand:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}
.upload-match-cand.is-active {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.28);
  background: rgba(124, 58, 237, 0.12);
}
.upload-match-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.upload-match-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  white-space: nowrap;
}
.upload-match-btn.is-primary {
  border: 0;
  background: #7c3aed;
  color: #fff;
}
.upload-match-done {
  font-size: 12px;
  color: #6ee7b7;
}
.asset-upload-tag {
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 10px;
  white-space: nowrap;
  margin-left: 4px;
}
.asset-upload-tag.is-pending {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.asset-upload-tag.is-linked {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.asset-upload-tag.is-unmatched {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
@media (max-width: 720px) {
  .upload-field-row { grid-template-columns: 1fr; }
  .upload-asset-foot { flex-direction: column; align-items: stretch; }
  .upload-asset-actions { justify-content: flex-end; }
  .upload-guide { flex-direction: column; }
  .upload-guide-actions { width: 100%; min-width: 0; }
  .upload-match-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-match-row { grid-template-columns: 1fr; }
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-title-row { display: inline-flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 17px; font-weight: 650; }
.info-icon {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.25); color: #c4b5fd; font-size: 12px; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2);
}
.modal-close {
  width: 30px; height: 30px; border-radius: 9px; color: var(--text-secondary); font-size: 20px;
  transition: 0.15s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.modal-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.modal-cost { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; }
.modal-cost strong { color: var(--text); font-family: var(--font-num); font-weight: 700; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.gen-all-modal .modal-panel {
  width: min(460px, 100%);
  padding: 20px 22px 18px;
}
.gen-all-modal .modal-desc {
  margin: 4px 0 28px;
  color: rgba(255, 255, 255, 0.7);
}
.gen-all-modal .btn-ghost {
  min-width: 88px;
  height: 40px;
  padding: 0 22px;
}
.gen-all-confirm {
  min-width: 128px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #2b2b33;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gen-all-confirm .spark { color: #c4b5fd; font-size: 13px; }
.gen-all-confirm em {
  font-style: normal;
  font-family: var(--font-num);
  font-weight: 700;
  opacity: 0.9;
}
.gen-all-confirm:hover { background: #34343e; }
.gen-all-modal.is-overwrite .gen-all-confirm {
  background: #fff;
  color: #12121a;
  min-width: 96px;
}
.gen-all-modal.is-overwrite .gen-all-confirm:hover {
  background: #f3f4f6;
  filter: none;
}
.gen-all-modal.is-overwrite .gen-all-confirm .spark,
.gen-all-modal.is-overwrite .gen-all-confirm em {
  display: none;
}
.modal-panel textarea {
  width: 100%; min-height: 200px; resize: vertical; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28); padding: 14px;
  outline: none; margin-bottom: 14px; line-height: 1.6;
}
.modal-panel textarea:focus {
  border-color: rgba(168, 120, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%) translateY(-12px);
  opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 999px;
  background: rgba(6, 78, 59, 0.55); border: 1px solid rgba(52, 211, 153, 0.35);
  color: #bbf7d0; font-size: 13px; transition: 0.22s var(--ease); z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-neutral {
  background: rgba(24, 24, 32, 0.92); border-color: rgba(255, 255, 255, 0.1);
  color: var(--text); top: auto; bottom: 28px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1200px) {
  .asset-grid-tile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .content, .ws-outline, .ws-assets { padding-left: 24px; padding-right: 24px; }
  .outline-config-fields { grid-template-columns: 1fr 1fr; }
  .outline-parse { flex-wrap: wrap; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-grid { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid-tile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-topbar { grid-template-columns: 1fr; height: auto; padding: 12px 16px; gap: 10px; }
  .ws-steps { justify-self: start; flex-wrap: wrap; }
  .global-settings { justify-self: start; }
  .ws-actions { justify-self: start; flex-wrap: wrap; }
  .ws-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .ws-footer-actions {
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .ws-footer-status { max-width: 100%; }
}
@media (max-width: 860px) {
  .asset-grid-tile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outline-nav { display: none; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto;
    padding: 8px 12px 12px; align-items: stretch;
  }
  .sidebar-rail {
    width: 100%; border-radius: 22px; flex-direction: row; justify-content: space-around;
    padding: 6px 4px; gap: 0;
  }
  .nav-item { width: 56px; min-height: 54px; border-radius: 16px; gap: 4px; }
  .nav-item span { font-size: 11px; }
  .nav-icon { width: 24px; height: 24px; }
  .nav-item svg { width: 18px; height: 18px; }
  .main { padding-bottom: 86px; }
  .topbar { padding: 0 16px; }
  .top-actions .pill:not(.pill-login):not(.pill-credits) { display: none; }
  .content { padding: 4px 16px 36px; }
  .hero { margin: 20px 0 22px; }
  .field-row { grid-template-columns: 1fr; }
  .project-grid, .asset-grid, .asset-grid-tile { grid-template-columns: 1fr; }
  .asset-grid-tile.is-char-layout { grid-template-columns: 1fr; }
  .asset-grid-tile.is-char-mixed .asset-char-group,
  .asset-grid-tile.is-char-mixed .asset-char-card { grid-column: span 1; }
  .assets-ep-rail { display: none; }
  .summary-list > div { grid-template-columns: 1fr; gap: 4px; }
}


/* 选择脚本规划方式 */
.script-plan-modal .script-plan-panel,
.board-plan-modal .script-plan-panel {
  width: min(720px, 100%);
  padding: 22px 24px 20px;
}
.script-plan-modal .modal-head,
.board-plan-modal .modal-head {
  margin-bottom: 8px;
}
.script-plan-modal .modal-head h3,
.board-plan-modal .modal-head h3 {
  font-size: 18px;
  font-weight: 700;
}
.script-plan-lead {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.6;
}
.script-plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.script-plan-option {
  position: relative;
  text-align: left;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  transition: 0.18s ease;
  min-height: 168px;
}
.script-plan-option:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}
.script-plan-option.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.script-plan-radio {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}
.script-plan-option.is-active .script-plan-radio {
  border-color: #fff;
  background: radial-gradient(circle at center, #fff 0 4px, transparent 5px);
}
.script-plan-option strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  padding-right: 28px;
}
.script-plan-option > p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}
.script-plan-option ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.script-plan-option li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.script-plan-option li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 6px;
  border: 1.6px solid #a78bfa;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}
.script-plan-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.script-plan-note .info-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}
.script-plan-cost {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}
.script-plan-cost strong {
  color: #fff;
  font-family: var(--font-num);
  font-weight: 700;
}
.script-plan-modal .modal-actions .btn-next,
.board-plan-modal .modal-actions .btn-next {
  min-width: 148px;
}
@media (max-width: 720px) {
  .script-plan-options { grid-template-columns: 1fr; }
}



/* 分集工作台 */
.episode-studio {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  background: #0b0b0f;
  color: #f2f2f6;
  font-family: var(--font);
  overflow: hidden;
}
.episode-studio > .eps-top { grid-row: 1; }
.episode-studio > .asset-debt-banner { grid-row: 2; }
.episode-studio > .eps-layout { grid-row: 3; min-height: 0; }
.eps-top {
  position: relative;
  z-index: 80;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(16, 16, 22, 0.96);
  backdrop-filter: blur(12px);
  overflow: visible;
}
.eps-top:has(.style-field.is-open),
.eps-top:has(.select.is-open) {
  z-index: 220;
}
.eps-top .global-settings {
  justify-self: center;
}
.eps-top-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}
.eps-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 0 8px 0 4px;
  border-radius: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.eps-back svg { width: 16px; height: 16px; }
.eps-back:hover { background: rgba(255,255,255,0.05); color: #fff; }
.eps-top-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.14);
}
.eps-ep-switch {
  position: relative;
  z-index: 12;
}
.eps-ep-trigger {
  height: 32px;
  min-width: 108px;
  padding: 0 10px 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eps-ep-trigger:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.eps-ep-trigger .select-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}
.eps-ep-menu {
  left: 0;
  right: auto;
  min-width: 220px;
  max-height: 280px;
  overflow: auto;
}
.eps-ep-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}
.eps-ep-menu button.is-active {
  color: #fff;
  background: rgba(124, 58, 237, 0.18);
}
.eps-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}
.eps-top-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.15s ease;
}
.eps-top-btn svg { width: 13px; height: 13px; opacity: 0.85; }
.eps-top-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}
.eps-top-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.episode-studio .pill {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}
.episode-studio .pill-promo {
  color: #f5d0a9;
  border-color: rgba(245, 208, 169, 0.22);
  background: rgba(120, 70, 20, 0.22);
}
.episode-studio .icon-btn {
  width: 30px;
  height: 30px;
}
.episode-studio .avatar {
  width: 28px;
  height: 28px;
}

.eps-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  /* 左资产全高；中提示词；右播放加宽；底部分镜仅打通中+右 */
  grid-template-columns: 228px minmax(0, 1fr) minmax(280px, 320px);
  grid-template-rows: minmax(0, 1fr) 108px;
  gap: 10px;
  padding: 10px 12px 12px;
  background: #0b0b0f;
  overflow: hidden;
  align-items: stretch;
  box-sizing: border-box;
}
.eps-layout > * {
  min-height: 0;
  min-width: 0;
}
.eps-layout > .eps-assets {
  grid-column: 1;
  grid-row: 1 / -1;
  max-height: 100%;
  overflow: hidden;
}
.eps-layout > .eps-center {
  grid-column: 2;
  grid-row: 1;
  max-height: 100%;
  overflow: hidden;
}
.eps-layout > .eps-preview {
  grid-column: 3;
  grid-row: 1;
  max-height: 100%;
  overflow: hidden;
}
.eps-layout > .eps-timeline {
  grid-column: 2 / -1;
  grid-row: 2;
  max-height: 108px;
  min-height: 108px;
  overflow: hidden;
}
.eps-layout.is-landscape {
  grid-template-columns: 228px minmax(0, 1fr) minmax(300px, 360px);
}

/* left assets */
.eps-assets {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: #101016;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.eps-assets-head {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.eps-assets-head strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.eps-assets-tools { display: inline-flex; gap: 2px; }
.eps-assets-tools button {
  width: 26px; height: 26px; border-radius: 7px;
  color: rgba(255,255,255,0.55);
  display: grid; place-items: center; font-size: 15px;
}
.eps-assets-tools button svg { width: 14px; height: 14px; }
.eps-assets-tools button:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.eps-assets-tabs {
  display: flex;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  flex: 0 0 auto;
}
.eps-assets-tabs button {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  position: relative;
}
.eps-assets-tabs button em {
  font-style: normal;
  opacity: 0.65;
  margin-left: 3px;
  font-family: var(--font-num);
  font-size: 11px;
}
.eps-assets-tabs button.is-active {
  color: #fff;
  font-weight: 650;
}
.eps-assets-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #fff;
}
.eps-assets-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 12px 22px;
}
.eps-asset-group + .eps-asset-group { margin-top: 18px; }
.eps-asset-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  font-weight: 600;
}
.eps-asset-group h4 em {
  font-style: normal;
  opacity: 0.65;
  margin-left: 4px;
  font-family: var(--font-num);
}
.eps-asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.eps-asset-card {
  border-radius: 10px;
  overflow: hidden;
  background: #17171f;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: 0.15s ease;
}
.eps-asset-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #1f1f28;
  overflow: hidden;
}
.eps-asset-grid.is-scene .eps-asset-thumb {
  aspect-ratio: 16 / 10;
}
.eps-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #1f1f28;
}
.eps-asset-card.is-empty-thumb .eps-asset-thumb {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    #1f1f28;
  position: relative;
}
.eps-asset-card.is-empty-thumb .eps-asset-thumb::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.18);
  background:
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)) center / 12px 1.5px no-repeat,
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)) center / 1.5px 12px no-repeat;
  opacity: 0.7;
}
.eps-asset-card > span:last-child {
  display: block;
  padding: 7px 8px 8px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eps-asset-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

/* center */
.eps-center {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,255,255,0.025), transparent 60%),
    #0d0d12;
}
.eps-editor {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 12px;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}
.eps-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}
.eps-editor-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eps-editor-head h2 em {
  font-style: normal;
  font-family: var(--font-num);
}
.eps-editor-head p {
  margin: 5px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}
.eps-editor-tools { display: inline-flex; gap: 4px; }
.eps-editor-tools button {
  height: 28px; padding: 0 10px; border-radius: 8px;
  color: rgba(255,255,255,0.58); font-size: 12px;
}
.eps-editor-tools button:hover { color: #fff; background: rgba(255,255,255,0.05); }
.eps-script-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, #15151c 0%, #121218 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.eps-script {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.84);
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.eps-script p + p { margin-top: 14px; }
.eps-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; font-weight: 600; margin: 0 3px 0 0;
  vertical-align: baseline; border: 1px solid transparent;
}
.eps-tag.is-global { background: rgba(99,102,241,0.16); border-color: rgba(129,140,248,0.22); color: #c7d2fe; }
.eps-tag.is-char { background: rgba(245, 158, 11, 0.14); border-color: rgba(251, 191, 36, 0.22); color: #fbbf24; }
.eps-tag.is-scene { background: rgba(56, 189, 248, 0.12); border-color: rgba(125, 211, 252, 0.2); color: #7dd3fc; }
.eps-editor-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  min-height: 52px;
  height: auto;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 10, 14, 0.96);
  position: relative;
  z-index: 2;
  overflow-x: auto;
  scrollbar-width: none;
}
.eps-editor-bar::-webkit-scrollbar { display: none; }
.eps-editor-left, .eps-editor-right {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  flex: 0 0 auto;
}
.eps-editor-right { margin-left: auto; }
.eps-select {
  height: 32px; padding: 0 11px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 12px; display: inline-flex !important; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.eps-select:hover { border-color: rgba(255,255,255,0.2) !important; color: #fff !important; }
.eps-select svg { width: 13px; height: 13px; opacity: 0.75; }
.eps-select i { font-style: normal; opacity: 0.45; font-size: 10px; }
.eps-auto {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
  color: rgba(255,255,255,0.7); cursor: pointer; user-select: none;
  white-space: nowrap; flex-shrink: 0;
}
.eps-auto input {
  appearance: none; width: 32px; height: 18px; border-radius: 999px;
  background: rgba(255,255,255,0.14); position: relative; outline: none; cursor: pointer; transition: 0.18s ease;
}
.eps-auto input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: 0.18s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.eps-auto input:checked { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }
.eps-auto input:checked::after { transform: translateX(14px); }
.eps-btn-ai {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 0 !important;
  background: linear-gradient(100deg, #8b5cf6 0%, #6d28d9 100%) !important;
  color: #fff !important; font-size: 13px; font-weight: 650;
  display: inline-flex !important; align-items: center; gap: 6px;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28);
  white-space: nowrap; flex-shrink: 0;
}
.eps-btn-ai:hover { filter: brightness(1.05); }
.eps-btn-ai span { font-size: 12px; }
.eps-btn-gen {
  height: 34px; padding: 0 18px; border-radius: 999px; border: 0 !important;
  background: #fff !important; color: #121218 !important; font-size: 13px; font-weight: 700;
  display: inline-flex !important; align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  white-space: nowrap; flex-shrink: 0;
}
.eps-btn-gen:hover { filter: brightness(0.97); }
.eps-icon-soft {
  width: 32px; height: 32px; border-radius: 9px; color: rgba(255,255,255,0.55);
  display: grid !important; place-items: center; background: rgba(255,255,255,0.04) !important;
  flex-shrink: 0;
}
.eps-icon-soft svg { width: 15px; height: 15px; }
.eps-icon-soft:hover { background: rgba(255,255,255,0.08) !important; color: #fff; }

/* timeline — 底部分镜横条：向右打通（含播放区下方） */
.eps-timeline {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0e0e14;
  overflow: hidden;
  z-index: 5;
  min-height: 96px;
  box-sizing: border-box;
  border-radius: 14px;
}
.eps-timeline-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-family: var(--font-num);
  font-weight: 560;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.eps-timeline-play button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}
.eps-timeline-play button svg { width: 14px; height: 14px; margin-left: 1px; }
.eps-timeline-play button:hover { color: rgba(255,255,255,0.75); }
.eps-timeline-multi {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  white-space: nowrap;
}
.eps-timeline-multi:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.eps-timeline-multi.is-active {
  background: rgba(124,58,237,0.2);
  border-color: rgba(167,139,250,0.35);
  color: #ddd6fe;
}
.eps-timeline-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.eps-timeline-picked {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  padding: 0 2px;
}
.eps-timeline-picked[hidden] { display: none !important; }
.eps-timeline-batch {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #121218;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: 0.15s ease;
}
.eps-timeline-batch:hover:not(:disabled) { filter: brightness(0.97); }
.eps-timeline-batch.is-ghost {
  background: transparent;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.28);
  font-weight: 650;
}
.eps-timeline-batch.is-ghost:hover:not(:disabled) {
  filter: none;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.42);
  color: #fff;
}
.eps-timeline-batch.is-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}
.eps-timeline-batch.is-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}
.eps-timeline-batch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.eps-timeline-batch[hidden] { display: none !important; }
.eps-timeline-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  scrollbar-width: thin;
}
/* 横版片段卡 — 永远是横向卡片，不是竖长条 */
.eps-clip {
  position: relative;
  flex: 0 0 128px;
  width: 128px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: #1a1a22;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.eps-clip:hover { border-color: rgba(255,255,255,0.22); }
.eps-clip.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}
.eps-clip-frame {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    #22222c;
  position: relative;
}
.eps-clip.is-done .eps-clip-frame {
  background-color: #1c1c24;
}
.eps-clip-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 14px 7px 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-num);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  pointer-events: none;
  line-height: 1.2;
}
.eps-clip-meta .eps-clip-ai {
  font-family: var(--font);
  font-size: 10px;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}
.eps-clip-no {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  z-index: 2;
}
.eps-clip-pending {
  display: none;
}
.eps-clip-status {
  font-family: var(--font);
  font-size: 10px;
  white-space: nowrap;
  color: rgba(255,255,255,0.78);
}
.eps-clip-status.is-pending {
  color: rgba(255,255,255,0.72);
}
.eps-clip-status.is-missing {
  color: #fdba74;
}
.eps-clip-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(12,12,18,0.55);
  display: none;
  z-index: 2;
}
.eps-clip.is-picked {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.28);
}
.eps-timeline.is-multi .eps-clip-check { display: block; }
.eps-timeline.is-multi .eps-clip.is-active {
  border-color: rgba(255,255,255,0.28);
  box-shadow: none;
}
.eps-timeline.is-multi .eps-clip.is-picked.is-active {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.28);
}
.eps-timeline.is-multi .eps-clip-insert { display: none; }
.eps-clip.is-picked .eps-clip-check {
  background: #7c3aed;
  border-color: #c4b5fd;
}
.eps-clip.is-picked .eps-clip-check::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: 0; border-left: 0;
  transform: rotate(45deg);
}
.eps-clip-insert {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  background: transparent;
  opacity: 0.7;
}
.eps-clip-insert:hover {
  opacity: 1;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}

/* preview - portrait player */
.eps-preview {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: #0c0c12;
  padding: 12px 14px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.eps-player {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #121218;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-self: center;
}
.eps-layout.is-landscape .eps-player {
  max-width: 100%;
  width: 100%;
  max-height: min(280px, calc(100% - 8px));
}
.eps-player-stage {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(460px, calc(100vh - 300px));
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    #16161e;
  position: relative;
}
.eps-layout.is-landscape .eps-player-stage {
  aspect-ratio: 16 / 9;
  max-height: min(260px, calc(100vh - 320px));
}
.eps-player-frame {
  display: none;
}
.eps-player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.28);
}
.eps-player-empty::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.14);
  background:
    linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0.16)) center / 18px 1.5px no-repeat,
    linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0.16)) center / 1.5px 18px no-repeat;
  opacity: 0.7;
}
.eps-player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.eps-player-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(0,0,0,0.62);
}
.eps-player-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}
.eps-player-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
}
.eps-player-actions button {
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.48);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.eps-player-actions button svg { width: 13px; height: 13px; }
.eps-player-actions button:hover { background: rgba(0,0,0,0.68); }
.eps-player-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 12px;
  background: #121218;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.eps-toolbar-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.88);
  flex-shrink: 0;
}
.eps-toolbar-btn svg { width: 14px; height: 14px; }
.eps-toolbar-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.eps-toolbar-btn.is-paused svg { margin-left: 1px; }
.eps-segment-rail {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  padding-bottom: 16px;
}
.eps-segment-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: visible;
}
.eps-seg-blocks {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  border-radius: inherit;
  overflow: hidden;
}
.eps-seg-block {
  position: relative;
  flex: var(--seg-w, 1) 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.eps-seg-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.03);
  transition: background 0.16s ease;
}
.eps-seg-block.is-active::before {
  background: rgba(167, 139, 250, 0.22);
}
.eps-seg-block.is-done::before {
  background: rgba(255,255,255,0.06);
}
.eps-seg-block:hover::before {
  background: rgba(255,255,255,0.12);
}
.eps-seg-block.is-active:hover::before {
  background: rgba(167, 139, 250, 0.3);
}
.eps-seg-divider {
  position: absolute;
  right: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(255,255,255,0.16);
  pointer-events: none;
}
.eps-seg-block:last-child .eps-seg-divider { display: none; }
.eps-seg-playhead {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  border-radius: 99px;
  background: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
  pointer-events: none;
  transition: left 0.12s linear;
  z-index: 2;
}
.eps-seg-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35);
}
.eps-segment-time {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1;
  font-family: var(--font-num);
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  pointer-events: none;
  transition: left 0.12s linear;
}
.eps-segment-mode.is-active {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}
.eps-segment-mode.is-active:hover {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
}

@media (max-width: 1440px) {
  .eps-layout { grid-template-columns: 220px minmax(0, 1fr) minmax(260px, 300px); }
  .eps-layout.is-landscape { grid-template-columns: 220px minmax(0, 1fr) minmax(280px, 320px); }
}
@media (max-width: 1280px) {
  .eps-layout { grid-template-columns: 200px minmax(0, 1fr) minmax(240px, 280px); }
  .eps-layout.is-landscape { grid-template-columns: 200px minmax(0, 1fr) minmax(260px, 300px); }
  .eps-clip { flex-basis: 112px; width: 112px; height: 70px; }
}
@media (max-width: 980px) {
  .eps-top { grid-template-columns: 1fr; height: auto; padding: 10px 12px; gap: 8px; }
  .eps-top-actions, .eps-top-right { justify-self: start; }
  .eps-layout,
  .eps-layout.is-landscape {
    grid-template-columns: 1fr;
    grid-template-rows: 220px minmax(280px, 1fr) auto 108px;
    overflow: auto;
  }
  .eps-layout > .eps-assets { grid-column: 1; grid-row: 1; }
  .eps-layout > .eps-center { grid-column: 1; grid-row: 2; }
  .eps-layout > .eps-preview { grid-column: 1; grid-row: 3; }
  .eps-layout > .eps-timeline { grid-column: 1; grid-row: 4; max-height: none; min-height: 108px; }
  .eps-preview { padding: 16px; min-height: 280px; }
  .eps-player { width: min(220px, 70vw); max-height: min(70vh, 100%); height: auto; }
  .eps-layout.is-landscape .eps-player { width: min(100%, 420px); height: auto; }
  .eps-timeline { padding: 10px 12px; gap: 8px; }
  .eps-clip { flex-basis: 108px; width: 108px; height: 68px; }
}


/* 分镜视频：分集卡双模式 */
.epv-board-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.epv-btn-mode {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s var(--ease);
}
.epv-btn-mode:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.epv-btn-mode-director {
  border-color: rgba(167, 139, 250, 0.42);
  background: linear-gradient(105deg, rgba(124, 58, 237, 0.28), rgba(91, 33, 182, 0.16));
  color: #ede9fe;
}
.epv-btn-mode.is-disabled,
.epv-btn-mode:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.35);
  pointer-events: none;
  box-shadow: none;
}
.epv-btn-mode-director.is-disabled,
.epv-btn-mode-director:disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
}
.epv-card.has-asset-debt {
  opacity: 0.92;
}
.epv-list.is-multiselect .epv-card.has-asset-debt.is-pick-locked {
  opacity: 0.55;
}
.ws-footer-actions .btn-gen-all[data-footer-batch-board]:not([hidden]) {
  min-width: 168px;
  justify-content: center;
  border: none;
  background: linear-gradient(105deg, #ffffff 0%, #f3efff 55%, #e9e0ff 100%);
  color: #12121a;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
}
.ws-footer-actions .btn-gen-all[data-footer-batch-board]:not([hidden]) .spark { color: #7c3aed; }
.ws-footer-actions .btn-gen-all[data-footer-batch-board]:not([hidden]):hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.26);
}


.footer-batch-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.footer-batch-mode[hidden] { display: none !important; }
.footer-batch-mode-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.footer-mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.footer-mode-switch button {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
  transition: 0.18s var(--ease);
}
.footer-mode-switch button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.batch-board-pick {
  justify-content: center;
  margin-top: 4px;
}
.script-plan-settings {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.board-plan-panel { width: min(760px, 100%); }
.board-plan-section { margin-bottom: 14px; }
.board-plan-section[hidden] { display: none !important; }
.board-plan-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.72);
}
.board-plan-label i {
  margin-left: 4px;
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
}
.board-plan-prompt {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #f3f4f6;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}
.board-plan-prompt::placeholder {
  color: rgba(255, 255, 255, 0.34);
}
.board-plan-prompt:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}
.board-plan-prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}
.board-plan-prompt-meta em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.5);
}
.board-plan-modes {
  margin-top: 0;
  gap: 10px;
}
.board-plan-modes .epv-btn-mode {
  min-height: 40px;
  min-width: 118px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  filter: none;
}
.board-plan-modes .epv-btn-mode:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  filter: none;
}
.board-plan-modes .epv-btn-mode.is-active {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* 未选中时与自定义分镜同级弱样式，避免紫色看起来像已选 */
.board-plan-modes .epv-btn-mode-director {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
}
.board-plan-modes .epv-btn-mode-director:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.1);
  color: rgba(237, 233, 254, 0.92);
  filter: none;
}
.board-plan-modes .epv-btn-mode-director.is-active {
  border-color: rgba(196, 181, 253, 0.85);
  background: linear-gradient(105deg, rgba(124, 58, 237, 0.42), rgba(91, 33, 182, 0.28));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 8px 18px rgba(91, 33, 182, 0.22);
}
.board-plan-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.board-plan-field {
  margin: 0;
  min-width: 0;
}
.board-plan-field .select {
  width: 100%;
}
.board-plan-field .select-menu {
  z-index: 40;
}
.board-plan-modal .script-plan-options { margin-bottom: 0; }

@media (max-width: 640px) {
  .board-plan-settings-row { grid-template-columns: 1fr; }
}


.epv-list.is-multiselect .epv-card.is-pickable {
  cursor: pointer;
}
.epv-list.is-multiselect .epv-card.is-pick-locked {
  opacity: 0.55;
}
.epv-card.is-picked {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.28);
}
.epv-card .epv-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.epv-list.is-multiselect .epv-card.is-pickable .epv-check {
  display: inline-flex;
}
.epv-card.is-picked .epv-check {
  border-color: #a78bfa;
  background: #7c3aed;
}
.epv-card.is-picked .epv-check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.epv-list.is-multiselect .epv-card.is-pending .epv-board-modes {
  pointer-events: none;
  opacity: 0.35;
}

/* 形象关系图 hover 浮层 */
.look-rel-popover {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.look-rel-popover.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.look-rel-popover[hidden] { display: none !important; }
.look-rel-panel {
  width: min(720px, calc(100vw - 32px));
  padding: 14px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,0.14), transparent 60%),
    rgba(14, 14, 20, 0.98);
  box-shadow: 0 28px 64px rgba(0,0,0,0.55);
  backdrop-filter: blur(18px);
}
.look-rel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.look-rel-head strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.look-rel-head span {
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
}
.look-rel-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.look-rel-root {
  position: relative;
  z-index: 2;
  width: min(280px, 100%);
}
.look-rel-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #1c1c24;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.look-rel-card:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: #22222c;
}
.look-rel-card.is-active,
.look-rel-card:focus-visible {
  border-color: rgba(196, 181, 253, 0.9);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35), 0 12px 28px rgba(0,0,0,0.28);
  outline: none;
}
.look-rel-root .look-rel-card {
  border-color: rgba(167,139,250,0.35);
  box-shadow: 0 14px 32px rgba(91,33,182,0.22);
}
.look-rel-root .look-rel-card.is-active {
  border-color: rgba(196, 181, 253, 0.95);
}
.look-rel-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    #2a2a34;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.28);
}
.look-rel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.look-rel-thumb svg { width: 22px; height: 22px; }
.look-rel-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.look-rel-copy strong {
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.look-rel-copy p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.48);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.look-rel-badge {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 650;
  width: fit-content;
}
.look-rel-badge.is-ready {
  color: #6ee7b7;
  background: rgba(16,185,129,0.14);
}
.look-rel-badge.is-pending {
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}
.look-rel-hub {
  position: absolute;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(124,58,237,0.45);
  z-index: 3;
}
.look-rel-links {
  width: min(640px, 100%);
  height: 48px;
  margin-top: 14px;
  display: block;
}
.look-rel-children {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: -2px;
}
.look-rel-children .look-rel-card {
  padding: 8px;
}
.look-rel-children .look-rel-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 52px;
}
.look-rel-children .look-rel-copy strong { font-size: 11px; }
.look-rel-children .look-rel-copy p {
  -webkit-line-clamp: 2;
  font-size: 10px;
}
@media (max-width: 720px) {
  .look-rel-panel { width: min(96vw, 100%); }
  .look-rel-children { grid-template-columns: 1fr 1fr; }
}

/* 资产欠账提示 + 出片闸门 */
.asset-debt-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.45;
}
.asset-debt-banner[hidden] { display: none !important; }
.asset-debt-banner.is-studio {
  margin: 0 12px;
  border-radius: 10px;
}
.asset-debt-banner button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(0, 0, 0, 0.28);
  color: #fff8e1;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.asset-debt-banner button:hover {
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
}
.epv-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 4px;
}
.epv-title-row .epv-title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.epv-asset-debt {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  font-size: 11px;
  font-weight: 650;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.epv-asset-debt:hover {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}
.video-asset-gate-list {
  margin: 0 0 16px;
  padding: 12px 14px 12px 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  max-height: 180px;
  overflow: auto;
  display: grid;
  gap: 6px;
}
.video-asset-gate-list li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
}
.video-asset-gate-list li.is-more {
  color: rgba(255, 255, 255, 0.45);
  list-style: none;
  margin-left: -18px;
}


/* ========== 角色资产详情工作页 ========== */
.asset-detail {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  color: #f2f2f6;
  font-family: var(--font);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 40% at 18% 0%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 35% at 88% 8%, rgba(59, 130, 246, 0.08), transparent 55%),
    #0a0a0e;
}
.asset-detail[hidden] { display: none !important; }
.ad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(12, 12, 16, 0.82);
  backdrop-filter: blur(14px);
}
.ad-top-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ad-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 10px 0 4px;
  border-radius: 9px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}
.ad-back svg { width: 16px; height: 16px; }
.ad-back:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ad-top-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.14);
}
.ad-top-title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-top-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ad-top-title-wrap .asset-status-tag {
  flex: 0 0 auto;
}
.ad-top-right {
  display: inline-flex;
  gap: 8px;
}
.ad-char-nav {
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.ad-char-nav:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ad-char-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.ad-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  padding: 14px;
  box-sizing: border-box;
}
.ad-left,
.ad-right {
  min-height: 0;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(18, 18, 24, 0.92);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}
.ad-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ad-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.ad-gen-panel .ad-hero {
  flex: 0 0 auto;
}
.ad-gen-panel .ad-hero-stage {
  margin: 0;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
}
.ad-gen-panel .ad-hero-foot {
  padding: 10px 0 2px;
}
.ad-hero-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #16161c;
  border: 1px solid rgba(255,255,255,0.07);
  display: block;
}
.ad-look-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 10px;
  box-sizing: border-box;
}
.ad-look-portrait,
.ad-look-triptych {
  position: relative;
  min-height: 0;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a32;
  border: 1px solid rgba(255,255,255,0.06);
}
.ad-look-portrait {
  display: grid;
  place-items: stretch;
}
.ad-look-triptych {
  background: #222228;
}
.ad-look-slot-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  height: 100%;
  padding: 16px 12px;
  box-sizing: border-box;
}
.ad-look-slot-empty em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
}
.ad-look-slot-ph {
  display: block;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 42%),
    #3a3a42;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.ad-look-slot-ph.is-portrait {
  width: min(68%, 180px);
  aspect-ratio: 3 / 4;
}
.ad-look-slot-ph.is-body {
  width: 72%;
  aspect-ratio: 2 / 5;
  max-height: 78%;
}
.ad-look-triptych-empty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
}
.ad-look-view {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 0;
  border-radius: 10px;
  background: #333338;
  border: 1px solid rgba(255,255,255,0.04);
}
.ad-look-view em {
  font-style: normal;
  font-size: 10px;
  color: rgba(255,255,255,0.24);
  letter-spacing: 0.04em;
}
.ad-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.ad-hero-sheet-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  padding: 8px;
  box-sizing: border-box;
  background: #222228;
}
.ad-hero-stage.is-empty .ad-look-portrait,
.ad-hero-stage.is-empty .ad-look-triptych,
.ad-hero-stage.is-pending .ad-look-portrait,
.ad-hero-stage.is-pending .ad-look-triptych,
.ad-hero-stage.is-pending .ad-look-view {
  background: #333338;
}
.ad-hero-stage.is-generating {
  border-color: rgba(167,139,250,0.22);
}
.ad-hero-stage.is-generating .ad-look-board {
  opacity: 0.55;
}
.ad-hero-stage.is-ready {
  background: #16161c;
}
.ad-hero-gen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background: rgba(18, 14, 28, 0.72);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}
.ad-hero-gen .asset-gen-spinner {
  width: 28px;
  height: 28px;
}
.ad-hero-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(8px);
}
.ad-hero-badge.is-pending {
  background: rgba(180, 83, 9, 0.28);
  color: #fdba74;
  border: 1px solid rgba(251,146,60,0.28);
}
.ad-hero-badge.is-generating {
  background: rgba(91, 33, 182, 0.32);
  color: #ddd6fe;
  border: 1px solid rgba(167,139,250,0.28);
}
.ad-hero-badge.is-ready {
  background: rgba(6, 95, 70, 0.32);
  color: #86efac;
  border: 1px solid rgba(74,222,128,0.28);
}
.ad-hero-badge.is-failed {
  background: rgba(185, 28, 28, 0.28);
  color: #fca5a5;
  border: 1px solid rgba(248,113,113,0.28);
}
.ad-hero-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ad-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 16px;
}
.ad-hero-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ad-hero-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}
.ad-hero-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ad-hero-actions button {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.ad-hero-actions button:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

.ad-rel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%),
    #0e0e13;
}
.ad-rel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 6px;
  flex: 0 0 auto;
}
.ad-rel-head strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.ad-rel-head p {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.45;
  max-width: 36em;
}
.ad-rel-head span {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-num);
}
.ad-rel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 14px 18px;
}
.asset-detail .look-rel-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}
.asset-detail .look-rel-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(320px, 100%);
}
.asset-detail .look-rel-hub {
  margin: 8px 0 2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
  color: rgba(196, 181, 253, 0.9);
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.asset-detail .look-rel-links {
  width: min(100%, 560px);
  height: 36px;
  margin: 0 auto;
  display: block;
}
.asset-detail .look-rel-children {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}
.asset-detail .look-rel-card {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.asset-detail .look-rel-card:hover {
  transform: translateY(-1px);
}
.asset-detail .look-rel-card.is-active {
  border-color: rgba(196, 181, 253, 0.75);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.28), 0 12px 28px rgba(0,0,0,0.28);
}
.asset-detail .look-rel-children .look-rel-thumb {
  flex-basis: 72px;
  width: 72px;
  height: 54px;
}

.ad-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(20, 20, 27, 0.96);
}
.ad-gen-panel {
  flex: 1 1 58%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 58%),
    rgba(20, 20, 27, 0.96);
}
.ad-control-panel {
  flex: 1 1 42%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 12px;
  overflow: auto;
}
.ad-look-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}
.ad-look-kicker {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.ad-look-head strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.ad-look-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ad-pending-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  background: rgba(180, 83, 9, 0.12);
}
.ad-pending-banner[hidden] { display: none !important; }
.ad-pending-banner strong {
  font-size: 12px;
  color: #fdba74;
}
.ad-pending-banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.58);
}
.ad-rewrite {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(124, 58, 237, 0.12);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 600;
}
.ad-rewrite:hover {
  background: rgba(124, 58, 237, 0.2);
  color: #fff;
}
.ad-prompt-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ad-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}
.ad-control-panel .ad-prompt-card {
  min-height: 112px;
  flex: 0 0 auto;
}
.ad-control-panel .ad-prompt-card textarea {
  min-height: 96px;
  resize: none;
}
.ad-prompt-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a22;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.ad-prompt-card textarea {
  flex: 1 1 auto;
  min-height: 180px;
  width: 100%;
  border: 0;
  resize: vertical;
  padding: 14px 14px 30px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.7;
  outline: none;
}
.ad-prompt-card .edit-prompt-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-num);
}
.ad-control-panel .ad-mid-bar {
  flex: 0 0 auto;
  padding-top: 2px;
}
.ad-control-panel .ad-more {
  flex: 0 0 auto;
}
.ad-mid-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ad-mid-left,
.ad-mid-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.asset-detail .edit-plus-wrap {
  position: relative;
  z-index: 3;
}
.ad-gen-panel .ad-candidates {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ad-gen-panel .ad-cand-head {
  flex: 0 0 auto;
}
.ad-gen-panel .ad-cand-grid {
  flex: 1 1 auto;
  min-height: 0;
  align-content: stretch;
}
.ad-gen-panel .ad-cand-empty {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ad-candidates {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  padding: 12px;
}
.ad-cand-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ad-cand-head strong { font-size: 13px; }
.ad-cand-head span { font-size: 11px; color: rgba(255,255,255,0.38); }
.ad-cand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ad-cand-empty {
  grid-column: 1 / -1;
  padding: 30px 12px;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.12);
}
.ad-gen-panel .ad-cand-card {
  min-height: 0;
  height: 100%;
}
.ad-cand-card {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a22;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ad-cand-card.is-picked {
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.28);
}
.ad-gen-panel .ad-cand-thumb {
  flex: 1 1 auto;
  min-height: 160px;
  aspect-ratio: auto;
}
.ad-cand-thumb {
  aspect-ratio: 3 / 4;
  background: #2a2a32;
  background-size: cover;
  background-position: center top;
}
.ad-cand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
}
.ad-cand-foot span {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.ad-cand-foot button {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #121218;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.ad-cand-foot button:hover { filter: brightness(0.96); }

.ad-more {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  padding: 0 12px;
}
.ad-more summary {
  list-style: none;
  cursor: pointer;
  height: 42px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}
.ad-more summary::-webkit-details-marker { display: none; }
.ad-more[open] summary { color: rgba(255,255,255,0.82); }
.ad-more-body {
  display: grid;
  gap: 12px;
  padding: 0 0 14px;
}
.ad-more .edit-field { display: grid; gap: 6px; }
.ad-more .edit-label { font-size: 12px; color: rgba(255,255,255,0.45); }
.ad-more textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a22;
  color: rgba(255,255,255,0.85);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}
.ad-more .select-trigger {
  width: 100%;
  justify-content: space-between;
}

.ad-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(14,14,20,0.94);
}
.asset-detail .edit-btn-cancel {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}
.asset-detail .edit-btn-cancel:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.asset-detail .edit-btn-save {
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #121218;
  font-size: 13px;
  font-weight: 700;
}
.asset-detail .edit-btn-save:hover { filter: brightness(0.97); }
.asset-detail .edit-btn-match,
.asset-detail .edit-btn-generate {
  height: 34px;
}
@media (max-width: 1100px) {
  .ad-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(460px, auto) minmax(0, 1fr);
    overflow: auto;
  }
  .ad-left { grid-template-rows: 300px minmax(260px, auto); }
  .ad-cand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ad-top { padding: 0 12px; }
  .ad-char-nav { padding: 0 8px; font-size: 11px; }
  .ad-layout { padding: 10px; gap: 10px; }
  .ad-look-head strong { font-size: 16px; }
  .ad-cand-grid { grid-template-columns: 1fr; }
}

