:root {
  --bg: #090a0b;
  --sidebar: #0d0f10;
  --surface: #121516;
  --surface-raised: #171a1b;
  --surface-soft: #1b1f20;
  --line: #232729;
  --line-strong: #364043;
  --text: #f1f3f2;
  --text-soft: #cbd1ce;
  --muted: #7f8986;
  --muted-strong: #a5aeaa;
  --accent: #c9f27a;
  --accent-dim: #9fbd68;
  --accent-ink: #10140e;
  --amber: #d3a96a;
  --amber-bg: #282319;
  --blue: #98b6c9;
  --blue-bg: #172329;
  --danger: #e88979;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, textarea, input { font: inherit; }

button { border: 0; background: none; color: inherit; cursor: pointer; }

button:disabled { cursor: wait; opacity: .62; }

button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

svg { flex: 0 0 auto; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex: 0 0 248px;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  padding: 22px 15px 15px;
  overflow: hidden;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  transition: width .22s ease, transform .22s ease;
}

.brand-row { display: flex; align-items: center; gap: 10px; min-height: 35px; padding: 0 8px 22px; }

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  background: #172018;
  border: 1px solid #4a603c;
  border-radius: 8px;
}

.brand-mark svg { width: 16px; height: 16px; stroke-width: 2.4; }

.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }

.brand-copy strong { color: var(--text); font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }

.brand-copy strong span { color: var(--accent); font-weight: 700; }

.brand-copy small, .eyebrow, .nav-label, .mono-tag, .step-number, .project-table-head {
  font-family: "DM Mono", "Microsoft YaHei", monospace;
}

.brand-copy small { color: #66736b; font-size: 8px; letter-spacing: .12em; }

.sidebar-collapse {
  display: grid;
  width: 26px;
  height: 26px;
  margin-left: auto;
  place-items: center;
  color: #657169;
  border-radius: 5px;
}

.sidebar-collapse:hover { color: var(--text); background: var(--surface-soft); }

.sidebar-collapse svg { width: 15px; height: 15px; }

.new-project {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  margin: 0 0 25px;
  padding: 0 12px;
  color: var(--text-soft);
  background: #171c1a;
  border: 1px solid #35413a;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  transition: background .16s ease, transform .16s ease;
}

.new-project:hover { color: var(--accent); background: #1d251e; border-color: #60784a; transform: translateY(-1px); }

.new-project svg { width: 15px; height: 15px; color: var(--accent); stroke-width: 2.2; }

.new-project kbd, .command-btn kbd, .command-input kbd {
  margin-left: auto;
  padding: 2px 5px;
  color: #738078;
  background: #202823;
  border: 1px solid #303a34;
  border-radius: 3px;
  font: 10px "DM Mono", monospace;
}

.main-nav { min-height: 0; overflow: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }

.nav-label { padding: 0 10px 7px; color: #5e6b63; font-size: 9px; letter-spacing: .08em; }

.nav-label-spaced { margin-top: 22px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 37px;
  margin: 1px 0;
  padding: 0 10px;
  color: #89938f;
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
  transition: color .15s ease, background .15s ease;
}

.nav-item::before { position: absolute; left: -12px; width: 2px; height: 18px; background: transparent; content: ""; }

.nav-item svg { width: 16px; height: 16px; color: #6f7c74; stroke-width: 1.8; }

.nav-item:hover { color: var(--text-soft); background: #171c1d; }
.nav-item:hover svg { color: var(--muted-strong); }
.nav-item.active { color: var(--text); background: #171d1b; font-weight: 700; }
.nav-item.active::before { background: var(--accent); }
.nav-item.active svg { color: var(--accent); }

.nav-count, .nav-pill { margin-left: auto; color: #68756d; font: 10px "DM Mono", monospace; }

.nav-pill { padding: 2px 4px; color: var(--accent); border: 1px solid #3c5630; border-radius: 3px; font-size: 8px; }

.sidebar-footer { margin-top: auto; padding: 14px 7px 0; border-top: 1px solid var(--line); }

.compute-line { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.compute-line span { display: inline-flex; align-items: center; gap: 5px; }
.compute-line svg { width: 13px; height: 13px; color: var(--accent); }
.compute-line strong { color: var(--text-soft); font: 11px "DM Mono", monospace; }
.compute-line small { color: #66736b; font-size: 9px; }

.compute-track { height: 3px; margin: 9px 0 8px; overflow: hidden; background: #212923; border-radius: 99px; }
.compute-track span { display: block; width: 68%; height: 100%; background: var(--accent); border-radius: inherit; }

.plan-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; color: var(--accent-dim); font-size: 10px; }
.plan-link:hover { color: var(--accent); }
.plan-link svg { width: 12px; height: 12px; }

.profile-row { display: flex; align-items: center; gap: 8px; width: calc(100% + 4px); margin: 14px -2px 0; padding: 10px 4px 0; border-top: 1px solid var(--line); text-align: left; }
.profile-row:hover .profile-meta strong { color: var(--accent); }
.profile-avatar { display: grid; width: 27px; height: 27px; place-items: center; flex: 0 0 auto; color: #d8e4d3; background: #354539; border: 1px solid #4a5f4b; border-radius: 50%; font-size: 11px; font-weight: 700; }
.profile-meta { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.profile-meta strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta small { color: #66736b; font-size: 9px; }
.profile-chevron { width: 14px; height: 14px; margin-left: auto; color: #66736b; }

.main-content { min-width: 0; flex: 1; background: var(--bg); }

.topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(9, 10, 11, .94); }
.topbar-left, .top-actions, .crumbs, .help-btn, .command-btn { display: flex; align-items: center; }
.topbar-left { min-width: 0; }
.crumbs { gap: 8px; color: #657169; font-size: 11px; }
.crumbs strong { color: var(--text-soft); font-weight: 600; }
.crumbs svg { width: 13px; height: 13px; color: #4e5b53; }
.top-actions { gap: 12px; }

.command-btn { gap: 8px; width: 205px; height: 31px; padding: 0 8px; color: #66736c; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; text-align: left; }
.command-btn:hover { color: var(--text-soft); border-color: var(--line-strong); background: var(--surface); }
.command-btn svg { width: 14px; height: 14px; }
.command-btn span { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.command-btn kbd { margin-left: 0; background: transparent; border-color: #303833; }

.icon-btn { display: grid; width: 29px; height: 29px; place-items: center; color: #7a8780; border-radius: 5px; }
.icon-btn:hover { color: var(--text); background: var(--surface-soft); }
.icon-btn svg { width: 16px; height: 16px; }
.notification { position: relative; }
.notification span { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; background: var(--accent); border: 1px solid var(--bg); border-radius: 50%; }
.help-btn { gap: 6px; padding: 0; color: #7a8780; font-size: 11px; }
.help-btn:hover { color: var(--text); }
.help-btn svg { width: 15px; height: 15px; }
.mobile-menu { display: none; width: 30px; height: 30px; margin-right: 8px; color: var(--muted-strong); border-radius: 5px; }
.mobile-menu:hover { color: var(--text); background: var(--surface-soft); }
.mobile-menu svg { width: 18px; height: 18px; }

.page-wrap { width: min(1410px, 100%); margin: 0 auto; padding: 38px 42px 25px; }

.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.eyebrow { color: #65736b; font-size: 9px; letter-spacing: .11em; }
.workspace-heading h1 { margin: 10px 0 8px; color: var(--text); font-size: clamp(25px, 3vw, 33px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.workspace-heading p { max-width: 595px; margin: 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 14px; padding-bottom: 2px; }
.status-live { display: inline-flex; align-items: center; gap: 7px; color: #87958c; font-size: 10px; white-space: nowrap; }
.status-live i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(184, 242, 107, .08); }
.outline-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 10px; color: var(--text-soft); border: 1px solid var(--line-strong); border-radius: 5px; font-size: 10px; }
.outline-btn:hover { color: var(--accent); border-color: #5e7a4d; }
.outline-btn svg { width: 14px; height: 14px; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(280px, .72fr); grid-auto-rows: max-content; align-items: flex-start; gap: 18px; margin-top: 24px; }
.composer-panel, .preview-panel, .projects-panel, .metrics-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018); }
.composer-panel { position: relative; align-self: flex-start; min-height: 0; height: auto; padding: 23px 24px 21px; overflow: hidden; }
.composer-panel::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: var(--accent); content: ""; opacity: .5; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted-strong); font: 10px "DM Mono", monospace; }
.panel-topline > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.signal-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.mono-tag { color: #637068; font-size: 8px; letter-spacing: .08em; }
.composer-copy { margin: 33px 0 18px; }
.composer-copy h2 { margin: 0 0 6px; color: var(--text); font-size: 22px; letter-spacing: -.03em; }
.composer-copy p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; }
.composer-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 12px; padding: 4px; background: #0d1010; border: 1px solid #252d2a; border-radius: 7px; }
.composer-mode { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 31px; padding: 0 8px; color: #77847c; border: 1px solid transparent; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.composer-mode:hover { color: var(--text-soft); background: #151b18; }
.composer-mode[aria-selected="true"], .composer-mode.active { color: var(--text); background: #19221b; border-color: #42563b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.composer-mode svg { width: 13px; height: 13px; color: #718078; stroke-width: 1.9; }
.composer-mode[aria-selected="true"] svg, .composer-mode.active svg { color: var(--accent); }
.prompt-box { padding: 13px 14px 11px; background: #0e1112; border: 1px solid #30373a; border-radius: 7px; transition: border-color .16s ease, box-shadow .16s ease; }
.prompt-box:focus-within { border-color: #6b8e52; box-shadow: 0 0 0 3px rgba(184, 242, 107, .06); }
.prompt-box textarea { display: block; width: 100%; height: 60px; padding: 0; resize: none; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; line-height: 1.6; }
.prompt-box textarea::placeholder { color: #5c6961; }
.prompt-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.prompt-tools { display: flex; align-items: center; gap: 5px; min-width: 0; color: #66736b; font-size: 9px; }
.prompt-tools button { display: grid; width: 24px; height: 24px; place-items: center; color: #849189; border: 1px solid transparent; border-radius: 4px; }
.prompt-tools button:hover { color: var(--accent); background: #182019; border-color: #354632; }
.prompt-tools button svg { width: 14px; height: 14px; }
.prompt-tools span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.generate-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 12px; color: var(--accent-ink); background: var(--accent); border-radius: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; transition: background .16s ease, transform .16s ease; }
.generate-btn:hover { background: #d7ff8e; transform: translateY(-1px); }
.generate-btn svg { width: 14px; height: 14px; }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; color: #647169; font-size: 10px; }
.suggestions button { padding: 0; color: #9eae9f; border-bottom: 1px solid #465747; font-size: 10px; }
.suggestions button:hover { color: var(--accent); border-color: var(--accent); }

.preview-panel { padding: 16px; }
.preview-heading { display: flex; align-items: flex-start; justify-content: space-between; min-height: 37px; }
.preview-heading h2 { margin: 4px 0 0; font-size: 14px; letter-spacing: -.03em; }
.video-frame { position: relative; aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; background: #171d1a; border-radius: 7px; }
.video-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: #6d7b72; font-size: 10px; }
.video-fallback svg { width: 24px; height: 24px; }
.video-frame img:not([src]), .video-frame img[src=""] { display: none; }
.video-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 9, 7, 0) 32%, rgba(5, 9, 7, .86) 100%); pointer-events: none; }
.video-overlay { position: absolute; right: 14px; bottom: 13px; left: 14px; z-index: 1; display: flex; flex-direction: column; gap: 5px; color: #fff; }
.overlay-tag { color: #c1e999; font: 9px "DM Mono", monospace; }
.video-overlay strong { font-size: 16px; letter-spacing: -.04em; line-height: 1.2; }
.overlay-meta { color: #bdc9c2; font-size: 9px; }
.play-btn { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; width: 39px; height: 39px; place-items: center; color: #0d120d; background: rgba(241, 246, 239, .93); border-radius: 50%; transform: translate(-50%, -50%); transition: transform .16s ease, background .16s ease; }
.play-btn:hover { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.play-btn svg { width: 15px; height: 15px; fill: currentColor; }
.preview-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; }
.preview-meta > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.preview-meta span { color: #68756d; font-size: 9px; }
.preview-meta strong { color: var(--text-soft); font-size: 11px; }
.output-state { display: inline-flex; align-items: center; gap: 6px; color: #9fbf85; font-size: 9px; }
.output-state i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.section-block { margin-top: 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.section-heading h2 { margin: 5px 0 0; color: var(--text); font-size: 16px; letter-spacing: -.04em; }
.text-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: #9ebc87; font-size: 10px; white-space: nowrap; }
.text-btn:hover { color: var(--accent); }
.text-btn svg { width: 13px; height: 13px; }

.workflow-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); border-radius: 9px; overflow: hidden; }
.workflow-step { position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; min-width: 0; min-height: 78px; padding: 15px 16px; border-right: 1px solid var(--line); text-align: left; }
.workflow-step:last-child { border-right: 0; }
.workflow-step::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: transparent; content: ""; }
.workflow-step:hover, .workflow-step.active { background: #151a18; }
.workflow-step.active::after { background: var(--accent); }
.step-number { align-self: start; color: #5f6c64; font-size: 9px; }
.step-icon { display: grid; width: 27px; height: 27px; place-items: center; color: #9bbd7d; background: #1d2a1e; border: 1px solid #354a30; border-radius: 5px; }
.step-icon svg { width: 14px; height: 14px; }
.step-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.step-copy strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.step-copy small { overflow: hidden; color: #68756d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.step-arrow { width: 13px; height: 13px; color: #536158; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .78fr); gap: 16px; }
.projects-panel, .metrics-panel { min-width: 0; padding: 18px 18px 15px; }
.project-table { border-top: 1px solid var(--line); }
.project-table-head, .project-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) .7fr .85fr .65fr 17px; align-items: center; gap: 12px; }
.project-table-head { min-height: 29px; color: #59665e; font-size: 8px; letter-spacing: .06em; }
.project-row { width: 100%; min-height: 56px; padding: 7px 0; color: #7e8a82; border-top: 1px solid var(--line); text-align: left; font-size: 10px; }
.project-row:hover { color: var(--text-soft); }
.project-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.project-title strong { overflow: hidden; color: var(--text-soft); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-row:hover .project-title strong { color: var(--accent); }
.project-thumb { position: relative; display: grid; width: 48px; height: 32px; place-items: center; flex: 0 0 auto; overflow: hidden; color: #dce8dc; background: #26362b; border: 1px solid #3c5140; border-radius: 4px; }
.project-thumb::after { position: absolute; inset: 0; background: rgba(7, 11, 8, .28); content: ""; }
.project-thumb svg { position: relative; z-index: 1; width: 12px; height: 12px; fill: currentColor; }
.thumb-one { background: #59634c; }
.thumb-two { background: #6b5544; }
.thumb-three { background: #3b4c4c; }
.status { justify-self: start; padding: 3px 6px; border-radius: 3px; font-size: 9px; white-space: nowrap; }
.status.ready { color: var(--accent); background: #1d3020; }
.status.draft { color: var(--amber); background: var(--amber-bg); }
.status.review { color: var(--blue); background: var(--blue-bg); }
.row-arrow { width: 13px; height: 13px; color: #58655d; }
.project-row:hover .row-arrow { color: var(--accent); }

.metrics-panel { min-height: 218px; }
.metric-main { display: flex; align-items: flex-end; gap: 10px; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.metric-main > span { margin-right: auto; color: #7c8981; font-size: 10px; }
.metric-main strong { color: var(--text); font-size: 26px; letter-spacing: -.06em; line-height: 1; }
.metric-main em, .metric-split em { display: inline-flex; align-items: center; gap: 3px; color: #a3c884; font-size: 9px; font-style: normal; }
.metric-main em svg { width: 11px; height: 11px; }
.sparkline { display: flex; align-items: flex-end; gap: 5px; height: 48px; padding: 11px 1px 0; border-bottom: 1px solid var(--line); }
.sparkline span { display: block; width: 100%; min-width: 3px; max-width: 9px; background: #445a43; border-radius: 2px 2px 0 0; }
.sparkline span:nth-last-child(-n+3) { background: #8bbd59; }
.metric-split { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 13px; }
.metric-split div { display: flex; flex-direction: column; gap: 3px; }
.metric-split span { color: #7c8981; font-size: 9px; }
.metric-split strong { color: var(--text-soft); font-size: 16px; letter-spacing: -.04em; }

.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 46px; padding-top: 14px; color: #59665e; border-top: 1px solid var(--line); font-size: 9px; }

.dynamic-view { animation: view-in .2s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.view-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.view-hero h1 { margin: 9px 0 7px; color: var(--text); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.06em; line-height: 1.1; }
.view-hero p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; }
.view-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.secondary-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; font-size: 10px; }
.secondary-btn:hover { color: var(--accent); border-color: #5b774a; background: var(--surface-raised); }
.secondary-btn svg { width: 13px; height: 13px; }
.view-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 22px; }
.view-stat { min-height: 74px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.view-stat span { display: block; margin-bottom: 6px; color: #6e7b73; font-size: 9px; }
.view-stat strong { color: var(--text); font-size: 18px; letter-spacing: -.04em; }
.view-stat em { margin-left: 7px; color: #9abb7f; font-size: 9px; font-style: normal; }
.visual-rail { margin-top: 22px; padding: 16px; background: #0e1211; border: 1px solid var(--line); border-radius: 8px; }
.visual-rail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.visual-rail-heading h2 { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; letter-spacing: -.02em; }
.visual-rail-status { display: inline-flex; align-items: center; gap: 6px; color: #82917f; font-size: 9px; white-space: nowrap; }
.visual-rail-status i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(201, 242, 122, .07); }
.visual-rail-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.visual-tile { position: relative; display: block; min-width: 0; aspect-ratio: 1.32 / 1; overflow: hidden; background: #18201c; border: 1px solid #29332d; border-radius: 5px; text-align: left; transition: border-color .16s ease, transform .16s ease; }
.visual-tile:hover, .visual-tile.selected { border-color: #6a8655; transform: translateY(-1px); }
.visual-tile img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.98); transition: transform .24s ease, filter .24s ease; }
.visual-tile:hover img, .visual-tile.selected img { filter: saturate(1); transform: scale(1.035); }
.visual-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 10, 9, 0) 24%, rgba(7, 10, 9, .86) 100%); }
.visual-tile-copy { position: absolute; right: 9px; bottom: 8px; left: 9px; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.visual-tile-copy strong, .visual-tile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visual-tile-copy strong { color: #f1f4f0; font-size: 10px; }
.visual-tile-copy small { color: #c2ccc5; font-size: 8px; }
.visual-tile-play { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; width: 23px; height: 23px; place-items: center; color: #e8eee4; background: rgba(8, 11, 9, .54); border: 1px solid rgba(230, 240, 225, .2); border-radius: 50%; opacity: .78; }
.visual-tile-play svg { width: 11px; height: 11px; fill: currentColor; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.tool-card { display: flex; min-width: 0; min-height: 256px; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.tool-card:hover { background: var(--surface-raised); border-color: #495a4b; transform: translateY(-2px); }
.tool-media { position: relative; aspect-ratio: 1.58 / 1; margin: 0; overflow: hidden; background: #18201c; border-radius: 5px; }
.tool-media::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 11, 10, 0) 36%, rgba(8, 11, 10, .7) 100%); content: ""; }
.tool-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: filter .2s ease, transform .25s ease; }
.tool-card:hover .tool-media img { filter: saturate(1); transform: scale(1.04); }
.tool-media span { position: absolute; right: 8px; bottom: 7px; left: 8px; z-index: 1; overflow: hidden; color: #d8e0d8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin: 11px 7px 0; color: #8eb66c; }
.tool-card-top svg { width: 16px; height: 16px; }
.tool-index { color: #5f6c64; font: 9px "DM Mono", monospace; }
.tool-card h3 { margin: 8px 7px 5px; color: var(--text-soft); font-size: 13px; letter-spacing: -.02em; }
.tool-card p { margin: 0 7px; color: #7d8982; font-size: 10px; line-height: 1.55; }
.tool-action { display: inline-flex; align-items: center; gap: 4px; margin: auto 7px 0; padding: 13px 0 3px; color: #a7ca86; font-size: 10px; text-align: left; }
.tool-action:hover { color: var(--accent); }
.tool-action svg { width: 12px; height: 12px; }
.workflow-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 17px 19px; background: #0e1310; border: 1px solid var(--line); border-radius: 6px; }
.workflow-strip h2 { margin: 5px 0 0; color: var(--text-soft); font-size: 14px; }
.workflow-steps { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; color: #809087; font-size: 9px; }
.workflow-steps svg { width: 12px; height: 12px; color: #4e5c53; }

.creative-workbench, .image-workbench { margin-top: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.creative-workbench { display: grid; grid-template-columns: minmax(255px, .64fr) minmax(0, 1.36fr); }
.workbench-controls { min-width: 0; padding: 18px; background: #101312; border-right: 1px solid var(--line); }
.workbench-panel-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; }
.workbench-panel-heading > div { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.workbench-panel-heading strong { color: var(--text-soft); font-size: 12px; }
.workbench-panel-heading small { color: #748078; font-size: 9px; }
.workbench-step { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 auto; color: #b5d989; background: #1d2b1d; border: 1px solid #3d5735; border-radius: 4px; font: 9px "DM Mono", monospace; }
.workbench-label, .workbench-label-row > span { display: block; margin: 0 0 7px; color: #95a39a; font-size: 10px; font-weight: 700; }
.workbench-textarea { display: block; width: 100%; min-height: 96px; padding: 10px 11px; resize: vertical; color: var(--text); background: #0b0e0d; border: 1px solid #2d3731; border-radius: 5px; outline: none; font-size: 11px; line-height: 1.55; transition: border-color .16s ease, box-shadow .16s ease; }
.workbench-textarea:focus { border-color: #678051; box-shadow: 0 0 0 3px rgba(201, 242, 122, .055); }
.workbench-textarea::placeholder { color: #607067; }
.workbench-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.workbench-label-row small { color: #647068; font-size: 8px; }
.copy-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.copy-example-grid button { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 33px; padding: 0 8px; color: #9daaa1; background: #151a17; border: 1px solid #29342d; border-radius: 4px; font-size: 9px; text-align: left; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.copy-example-grid button:hover, .copy-example-grid button.active { color: var(--text-soft); background: #18201a; border-color: #60754d; }
.copy-example-grid button svg { width: 13px; height: 13px; flex: 0 0 auto; color: #9ec878; }
.copy-example-grid button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbench-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin-top: 17px; }
.workbench-fields label, .image-control-row label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #8f9d94; font-size: 9px; }
.workbench-fields select, .image-control-row select { width: 100%; min-height: 31px; padding: 0 24px 0 8px; overflow: hidden; color: #c6d0c8; background: #121713; border: 1px solid #2d3731; border-radius: 4px; outline: none; font-size: 9px; text-overflow: ellipsis; }
.workbench-fields select:focus, .image-control-row select:focus { border-color: #688153; }
.workbench-primary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 36px; margin-top: 17px; color: #11170f; background: var(--accent); border-radius: 5px; font-size: 10px; font-weight: 800; transition: transform .16s ease, background .16s ease; }
.workbench-primary:hover { background: #d8fb97; transform: translateY(-1px); }
.workbench-primary:disabled { transform: none; }
.workbench-primary svg { width: 14px; height: 14px; }
.workbench-allowance { display: flex; align-items: center; gap: 5px; margin: 10px 0 0; color: #68766c; font-size: 8px; }
.workbench-allowance svg { width: 12px; height: 12px; color: #91b970; }
.copy-result-panel { min-width: 0; padding: 18px; background: #121516; }
.result-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.result-panel-heading h2 { margin: 4px 0 0; color: var(--text); font-size: 15px; letter-spacing: -.03em; }
.result-ready { display: inline-flex; align-items: center; gap: 6px; padding-top: 3px; color: #91ad7b; font-size: 9px; white-space: nowrap; }
.result-ready i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.copy-result-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(188px, .62fr); gap: 11px; }
.copy-script-sheet, .storyboard-panel { min-width: 0; background: #0d1010; border: 1px solid #29322d; border-radius: 6px; }
.copy-script-sheet { padding: 14px; }
.script-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid #273029; }
.script-head > span, .hook-block > span { color: #7f8d84; font-size: 9px; white-space: nowrap; }
.script-head strong { overflow: hidden; color: #e3e8e3; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; }
.script-head button { display: grid; width: 21px; height: 21px; place-items: center; color: #849188; border-radius: 4px; }
.script-head button:hover { color: var(--accent); background: #1c251e; }
.script-head button svg { width: 13px; height: 13px; }
.hook-block { margin: 13px 0; padding: 10px; background: #152017; border-left: 2px solid #a2c874; border-radius: 3px; }
.hook-block p { margin: 5px 0 0; color: #cbd4cc; font-size: 11px; line-height: 1.55; }
.script-line { display: grid; grid-template-columns: 69px minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-top: 1px solid #222a25; }
.script-line > span { padding-top: 1px; color: #75837a; font: 8px "DM Mono", monospace; }
.script-line div { min-width: 0; }
.script-line strong { color: #dfe6df; font-size: 10px; }
.script-line p { margin: 3px 0 0; color: #7f8b83; font-size: 9px; line-height: 1.5; }
.script-line em { align-self: start; padding: 3px 5px; color: #a5c987; background: #1d2b1e; border-radius: 3px; font-size: 8px; font-style: normal; white-space: nowrap; }
.script-tags { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 10px; border-top: 1px solid #222a25; }
.script-tags span { padding: 3px 5px; color: #aeb9b0; background: #171d19; border: 1px solid #2e3931; border-radius: 3px; font-size: 8px; }
.storyboard-panel { padding: 9px; }
.storyboard-heading { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 9px; color: #a8b2aa; font-size: 10px; }
.storyboard-heading small { color: #69766d; font-size: 8px; }
.story-frame { position: relative; display: block; width: 100%; aspect-ratio: 1.48 / 1; margin-top: 7px; overflow: hidden; background: #172019; border: 1px solid transparent; border-radius: 4px; text-align: left; }
.story-frame:first-of-type { margin-top: 0; }
.story-frame:hover, .story-frame.active { border-color: #6a8853; }
.story-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.78) saturate(.75); }
.story-frame::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 7, 0) 36%, rgba(6, 8, 7, .76) 100%); content: ""; }
.story-frame span { position: absolute; right: 8px; bottom: 7px; left: 8px; z-index: 1; display: flex; align-items: center; gap: 6px; }
.story-frame strong { display: grid; width: 18px; height: 18px; place-items: center; color: #ebf2e8; background: rgba(12, 19, 12, .72); border: 1px solid rgba(239, 247, 232, .18); border-radius: 3px; font: 8px "DM Mono", monospace; }
.story-frame small { overflow: hidden; color: #f2f5f1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.story-frame > svg { position: absolute; top: 8px; right: 8px; z-index: 1; width: 15px; height: 15px; color: #eef5eb; fill: currentColor; }
.result-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 11px 1px 0; color: #7c8b80; border-top: 1px solid #253029; font-size: 9px; }
.result-footer span, .result-footer button { display: inline-flex; align-items: center; gap: 5px; }
.result-footer span svg, .result-footer button svg { width: 12px; height: 12px; }
.result-footer span svg { color: #a7c986; }
.result-footer button { color: #b4d492; white-space: nowrap; }
.result-footer button:hover { color: var(--accent); }

.image-workbench { display: grid; grid-template-columns: minmax(235px, .68fr) minmax(0, 1.34fr) minmax(205px, .54fr); }
.image-input-panel { min-width: 0; padding: 17px; background: #101312; border-right: 1px solid var(--line); }
.image-input-block { margin: 0 0 14px; }
.image-input-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #97a49a; font-size: 10px; font-weight: 700; }
.image-input-label button { display: inline-flex; align-items: center; gap: 4px; color: #a5c983; font-size: 8px; }
.image-input-label button:hover { color: var(--accent); }
.image-input-label button svg { width: 11px; height: 11px; }
.product-source-card { position: relative; display: block; width: 100%; aspect-ratio: 1.95 / 1; overflow: hidden; background: #162019; border: 1px solid #344239; border-radius: 5px; text-align: left; }
.product-source-card:hover { border-color: #668151; }
.product-source-card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); }
.product-source-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 8, .8) 100%); content: ""; }
.product-source-card span { position: absolute; bottom: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; color: #edf3eb; font-size: 9px; }
.product-source-card span svg { width: 12px; height: 12px; color: var(--accent); }
.reference-image-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.reference-image { position: relative; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #182019; border: 1px solid transparent; border-radius: 4px; }
.reference-image:hover, .reference-image.active { border-color: #7b9a60; }
.reference-image.active::after { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 2px rgba(6, 9, 7, .62); content: ""; }
.reference-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); }
.reference-image span { position: absolute; right: 4px; bottom: 4px; left: 4px; overflow: hidden; color: #e8efe5; font-size: 7px; text-align: left; text-overflow: ellipsis; text-shadow: 0 1px 6px #000; white-space: nowrap; }
.image-prompt { min-height: 82px; }
.image-control-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8px; margin-top: 14px; }
.image-generate-btn { margin-top: 15px; }
.image-result-stage { min-width: 0; padding: 18px; background: #121516; }
.image-result-stage.is-generated .generated-image.active { border-color: #b6db82; box-shadow: 0 0 0 2px rgba(201, 242, 122, .11); }
.image-style-summary { display: flex; gap: 8px; margin: -2px 0 13px; padding: 9px 10px; color: #abb8ad; background: #141b16; border: 1px solid #2b382e; border-radius: 5px; }
.image-style-summary > svg { width: 14px; height: 14px; flex: 0 0 auto; color: #a9cf7d; }
.image-style-summary p { margin: 0; font-size: 9px; line-height: 1.55; }
.image-style-summary strong { color: #d8e1d8; }
.generated-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.generated-image { position: relative; display: block; min-width: 0; aspect-ratio: .9 / 1; overflow: hidden; background: #17201a; border: 1px solid #2a352e; border-radius: 5px; text-align: left; transition: border-color .16s ease, transform .16s ease; }
.generated-image:hover, .generated-image.active { border-color: #79985e; transform: translateY(-1px); }
.generated-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); transition: filter .2s ease, transform .24s ease; }
.generated-image:hover img, .generated-image.active img { filter: saturate(1); transform: scale(1.025); }
.generated-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 6, .8) 100%); content: ""; }
.generated-image > span { position: absolute; right: 8px; bottom: 7px; left: 8px; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.generated-image strong { overflow: hidden; color: #f1f5ef; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.generated-image small { color: #c7d0c5; font-size: 8px; }
.generated-image > svg { position: absolute; top: 7px; right: 7px; z-index: 1; display: none; width: 16px; height: 16px; padding: 2px; color: #10200d; background: var(--accent); border-radius: 50%; stroke-width: 3; }
.generated-image.active > svg { display: block; }
.image-result-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 11px; color: #75837a; border-top: 1px solid #273128; font-size: 9px; }
.image-result-footer > div { display: flex; align-items: center; gap: 8px; }
.image-result-footer button { display: inline-flex; align-items: center; gap: 4px; color: #a9cd87; font-size: 9px; white-space: nowrap; }
.image-result-footer button:hover { color: var(--accent); }
.image-result-footer button:last-child { padding: 6px 7px; color: #d7e3d0; background: #1a251c; border: 1px solid #354735; border-radius: 4px; }
.image-result-footer button svg { width: 12px; height: 12px; }
.image-task-panel { min-width: 0; padding: 17px 14px; background: #0f1211; border-left: 1px solid var(--line); }
.image-task-panel header { display: flex; flex-direction: column; gap: 4px; padding: 1px 2px 13px; border-bottom: 1px solid #263029; }
.image-task-panel header strong { color: var(--text-soft); font-size: 12px; }
.image-task-list { padding: 6px 0; }
.image-task { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 7px; align-items: center; min-height: 43px; padding: 7px 2px; color: #78867c; border-bottom: 1px solid #202922; }
.image-task > svg { width: 14px; height: 14px; color: #627065; }
.image-task.is-done > svg { padding: 2px; color: #162113; background: #a9cf7d; border-radius: 50%; stroke-width: 3; }
.image-task.is-processing > svg { color: #c7eb8e; animation: task-pulse 1.1s ease-in-out infinite; }
@keyframes task-pulse { 50% { opacity: .35; transform: scale(.9); } }
.image-task span { overflow: hidden; color: #aeb9b0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.image-task.is-done span { color: #d4ddd4; }
.image-task small { grid-column: 2; margin-top: -4px; color: #69766d; font-size: 8px; }
.image-task-note { display: flex; gap: 7px; margin-top: 13px; padding: 9px; color: #77867b; background: #151b17; border: 1px solid #29352c; border-radius: 5px; }
.image-task-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: #a6cc7e; }
.image-task-note p { margin: 0; font-size: 8px; line-height: 1.55; }

.dropzone { display: flex; align-items: center; justify-content: center; min-height: 166px; margin-top: 23px; flex-direction: column; gap: 9px; color: #738178; background: #0e1310; border: 1px dashed #445449; border-radius: 6px; text-align: center; }
.dropzone:hover { color: var(--accent); border-color: #78995f; background: #111812; }
.dropzone svg { width: 24px; height: 24px; color: #91bc70; }
.dropzone strong { color: var(--text-soft); font-size: 12px; }
.dropzone small { color: #647168; font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 13px; margin-top: 22px; }
.list-panel { min-width: 0; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.list-panel h2 { margin: 0 0 12px; color: var(--text-soft); font-size: 14px; }
.list-item { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 8px 0; border-top: 1px solid var(--line); }
.list-item > i, .list-item > svg { width: 15px; height: 15px; color: #8fb56d; }
.list-item-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.list-item-main strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.list-item-main small { color: #69766e; font-size: 9px; }
.list-item button { color: #8fab7c; font-size: 9px; white-space: nowrap; }
.list-item button:hover { color: var(--accent); }
.progress-line { height: 4px; margin-top: 12px; overflow: hidden; background: #273129; border-radius: 99px; }
.progress-line span { display: block; width: 64%; height: 100%; background: var(--accent); border-radius: inherit; }

.command-palette[hidden] { display: none; }
.command-palette { position: fixed; inset: 0; z-index: 80; }
.command-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.command-dialog { position: relative; width: min(520px, calc(100% - 28px)); margin: 15vh auto 0; overflow: hidden; background: #121714; border: 1px solid #3b493f; border-radius: 7px; box-shadow: var(--shadow); }
.command-input { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.command-input > svg { width: 16px; height: 16px; color: #87958c; }
.command-input input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 12px; }
.command-input input::placeholder { color: #68756d; }
.command-input kbd { margin-left: 0; }
.command-list { padding: 7px; }
.command-list button { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 39px; padding: 0 9px; color: var(--text-soft); border-radius: 4px; text-align: left; font-size: 11px; }
.command-list button:hover { color: var(--accent); background: #1a231c; }
.command-list button svg { width: 15px; height: 15px; color: #91b870; }
.command-list small { color: #69776e; font-size: 9px; }

.sidebar-backdrop { display: none; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 100; display: flex; align-items: center; gap: 8px; max-width: min(360px, calc(100% - 32px)); padding: 11px 13px; color: #10150f; background: var(--accent); border-radius: 5px; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 15px; height: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body.sidebar-collapsed .sidebar { flex-basis: 72px; width: 72px; padding-right: 12px; padding-left: 12px; }
body.sidebar-collapsed .brand-row { justify-content: center; padding-right: 0; padding-left: 0; }
body.sidebar-collapsed .brand-copy, body.sidebar-collapsed .sidebar-collapse svg { display: none; }
body.sidebar-collapsed .sidebar-collapse { position: absolute; top: 23px; right: 9px; display: grid; }
body.sidebar-collapsed .new-project { justify-content: center; padding: 0; }
body.sidebar-collapsed .new-project span, body.sidebar-collapsed .new-project kbd, body.sidebar-collapsed .nav-label, body.sidebar-collapsed .nav-item span, body.sidebar-collapsed .sidebar-footer { display: none; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }
body.sidebar-collapsed .nav-item::before { left: -12px; }

@media (max-width: 1100px) {
  .topbar { padding-right: 26px; padding-left: 26px; }
  .page-wrap { padding-right: 26px; padding-left: 26px; }
  .studio-grid, .dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); }
  .workflow-step { padding-right: 11px; padding-left: 11px; }
  .step-arrow { display: none; }
  .project-table-head, .project-row { grid-template-columns: minmax(170px, 1.5fr) .65fr .8fr .65fr 15px; gap: 8px; }
  .image-workbench { grid-template-columns: minmax(235px, .65fr) minmax(0, 1.35fr); }
  .image-task-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .image-task-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .image-task { min-height: 55px; padding: 8px; border: 1px solid #273128; border-radius: 4px; }
  .image-task small { grid-column: 1 / -1; margin: 0; }
  .image-task-note { display: none; }
}

@media (max-width: 880px) {
  .sidebar { flex-basis: 214px; width: 214px; }
  .command-btn { width: 155px; }
  .studio-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .preview-panel { display: grid; grid-template-columns: minmax(160px, 190px) 1fr; grid-template-rows: auto 1fr; column-gap: 15px; }
  .preview-heading { grid-column: 1 / -1; }
  .video-frame { grid-column: 1; grid-row: 2; min-height: 200px; }
  .preview-meta { grid-column: 2; grid-row: 2; align-self: end; padding: 0 0 10px; }
  .workflow-row { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:nth-child(2) { border-right: 0; }
  .workflow-step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .workflow-step:nth-child(2)::after { display: none; }
  .view-stat-row { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creative-workbench { grid-template-columns: 1fr; }
  .workbench-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .copy-result-layout { grid-template-columns: minmax(0, 1.2fr) minmax(190px, .7fr); }
  .image-workbench { grid-template-columns: 1fr; }
  .image-input-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .image-task-panel { grid-column: auto; }
  .image-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(285px, 84vw); transform: translateX(-102%); box-shadow: 16px 0 35px rgba(0, 0, 0, .34); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; display: block; visibility: hidden; background: rgba(0, 0, 0, .58); opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
  body.sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; }
  .mobile-menu { display: grid; place-items: center; }
  .topbar { height: 60px; padding: 0 16px; }
  .top-actions { gap: 7px; }
  .command-btn { width: 30px; padding: 0; justify-content: center; border-color: transparent; }
  .command-btn span, .command-btn kbd, .help-btn span { display: none; }
  .command-btn:hover { border-color: var(--line); }
  .page-wrap { padding: 27px 16px 18px; }
  .workspace-heading, .view-hero { display: block; }
  .workspace-heading { padding-bottom: 23px; }
  .workspace-heading h1 { max-width: 330px; font-size: 27px; }
  .workspace-heading p { font-size: 11px; line-height: 1.65; }
  .heading-actions { justify-content: space-between; margin-top: 17px; padding: 0; }
  .studio-grid { margin-top: 18px; }
  .composer-panel { min-height: 0; padding: 20px 16px 17px; }
  .composer-copy { margin-top: 27px; }
  .composer-copy h2 { font-size: 21px; }
  .composer-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer-mode { justify-content: flex-start; padding: 0 10px; }
  .prompt-box textarea { height: 74px; font-size: 12px; }
  .prompt-tools span { display: none; }
  .preview-panel { display: block; }
  .preview-heading { margin-bottom: 11px; }
  .video-frame { min-height: 0; aspect-ratio: 16 / 10; }
  .video-overlay strong { max-width: 260px; font-size: 15px; }
  .preview-meta { padding-top: 10px; }
  .workflow-row { grid-template-columns: 1fr; }
  .workflow-step { min-height: 66px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-step:last-child { border-bottom: 0; }
  .workflow-step:nth-child(2)::after { display: block; }
  .dashboard-grid { gap: 13px; }
  .projects-panel, .metrics-panel { padding-right: 14px; padding-left: 14px; }
  .project-table-head { display: none; }
  .project-row { grid-template-columns: minmax(0, 1fr) auto 14px; min-height: 58px; gap: 8px; }
  .project-row > span:nth-child(2), .project-row > span:nth-child(3) { display: none; }
  .project-row > .status { grid-column: 2; grid-row: 1; }
  .project-row > .row-arrow { grid-column: 3; grid-row: 1; }
  .project-title strong { font-size: 10px; }
  .view-hero h1 { font-size: 27px; }
  .view-hero p { line-height: 1.6; }
  .view-actions { justify-content: flex-start; margin-top: 17px; }
  .view-stat-row { gap: 7px; }
  .view-stat { padding: 11px; }
  .view-stat strong { font-size: 16px; }
  .visual-rail { padding: 12px; }
  .visual-rail-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .visual-tile { aspect-ratio: 1.45 / 1; }
  .tool-grid { grid-template-columns: 1fr; gap: 8px; }
  .tool-card { min-height: 0; }
  .tool-media { aspect-ratio: 1.85 / 1; }
  .creative-workbench, .image-workbench { margin-top: 16px; border-radius: 7px; }
  .workbench-controls, .copy-result-panel, .image-input-panel, .image-result-stage { padding: 14px; }
  .copy-result-layout { grid-template-columns: 1fr; }
  .storyboard-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .storyboard-heading { grid-column: 1 / -1; padding-bottom: 1px; }
  .story-frame, .story-frame:first-of-type { margin-top: 0; }
  .script-line { grid-template-columns: 61px minmax(0, 1fr); }
  .script-line em { display: none; }
  .workbench-textarea { min-height: 82px; }
  .image-task-list { grid-template-columns: 1fr; }
  .image-task { grid-template-columns: 17px minmax(0, 1fr) auto; min-height: 38px; padding: 7px; }
  .image-task small { grid-column: 3; grid-row: 1; margin: 0; white-space: nowrap; }
  .image-result-footer { align-items: flex-start; flex-direction: column; }
  .image-result-footer > div { width: 100%; justify-content: space-between; }
  .workflow-strip { display: block; }
  .workflow-steps { justify-content: flex-start; margin-top: 13px; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============ 登录 / 注册 / 管理后台 ============ */
.auth-view[hidden], .admin-view[hidden], .app-shell[hidden] { display: none !important; }

.auth-view { position: relative; min-height: 100vh; overflow: hidden; background: #07090a; color: #eef1ee; display: flex; }

/* —— 背景氛围层 —— */
.auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-one { width: 540px; height: 540px; top: -190px; left: -150px; background: radial-gradient(circle, rgba(181, 238, 99, .20), transparent 66%); animation: orbFloat 16s ease-in-out infinite; }
.orb-two { width: 480px; height: 480px; right: -170px; bottom: -180px; background: radial-gradient(circle, rgba(76, 148, 255, .12), transparent 66%); animation: orbFloat 22s ease-in-out infinite reverse; }
.orb-three { width: 320px; height: 320px; left: 38%; bottom: -140px; background: radial-gradient(circle, rgba(181, 238, 99, .10), transparent 66%); animation: orbFloat 26s ease-in-out infinite; }
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at 32% 18%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 32% 18%, #000 0%, transparent 72%); }
@keyframes orbFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(34px, 22px, 0) scale(1.06); } }

.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }

/* —— 左侧品牌区 —— */
.auth-brand { position: relative; display: flex; align-items: center; padding: 56px 60px 56px 8px; }
.auth-brand::after { content: ""; position: absolute; top: 10%; bottom: 10%; right: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(181, 238, 99, .22), rgba(255, 255, 255, .06), transparent); }
.auth-brand-glow { position: absolute; top: -70px; left: -90px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(181, 238, 99, .15), transparent 70%); filter: blur(44px); pointer-events: none; }
.auth-brand-inner { position: relative; max-width: 430px; }
.auth-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 52px; }
.auth-logo .brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, #1d2a18, #0f1410); border-color: #3f5a33; box-shadow: 0 0 26px rgba(181, 238, 99, .14), inset 0 0 14px rgba(181, 238, 99, .05); }
.auth-logo .brand-copy strong { font-size: 19px; color: #f6f8f4; letter-spacing: -.01em; }
.auth-logo .brand-copy strong span { color: #b5ee63; text-shadow: 0 0 20px rgba(181, 238, 99, .38); }
.auth-logo .brand-copy small { font-size: 8px; letter-spacing: .24em; color: #77837b; }
.auth-brand h1 { font-size: 36px; line-height: 1.26; font-weight: 800; letter-spacing: -.025em; color: #f6f8f4; margin: 0 0 18px; }
.auth-brand h1 em { font-style: normal; background: linear-gradient(100deg, #ddffa8 0%, #b5ee63 48%, #79cf55 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand > .auth-brand-inner > p { font-size: 13.5px; line-height: 1.82; color: #98a39b; margin: 0 0 38px; }
.auth-points { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 15px; }
.auth-points li { display: flex; gap: 13px; align-items: center; }
.auth-points li i { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid #2b3826; border-radius: 10px; color: #b5ee63; background: linear-gradient(160deg, #12180f, #0c0f0b); box-shadow: 0 10px 22px rgba(0, 0, 0, .32), 0 0 0 1px rgba(181, 238, 99, .03); }
.auth-points li strong { display: block; font-size: 13.5px; color: #eef1ee; font-weight: 600; }
.auth-points li small { display: block; font-size: 11px; color: #77837b; margin-top: 3px; }
.auth-brand-foot { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #5f6a63; }
.foot-dot { width: 6px; height: 6px; border-radius: 50%; background: #b5ee63; box-shadow: 0 0 10px rgba(181, 238, 99, .75); animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* 悬浮预览卡片（纯装饰） */
.auth-preview { position: absolute; right: 16px; bottom: 92px; width: 212px; padding: 15px 17px 14px; border-radius: 15px; background: rgba(15, 19, 15, .74); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(16px); box-shadow: 0 26px 64px rgba(0, 0, 0, .5), 0 0 44px rgba(181, 238, 99, .05), inset 0 1px 0 rgba(255, 255, 255, .05); transform: rotate(-3deg); animation: cardFloat 8s ease-in-out infinite; }
.auth-preview .preview-head { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #8a968e; margin-bottom: 13px; letter-spacing: .02em; }
.auth-preview .preview-head .preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #b5ee63; box-shadow: 0 0 12px rgba(181, 238, 99, .85); }
.auth-preview .preview-head em { margin-left: auto; font-style: normal; font-family: "DM Mono", "Microsoft YaHei", monospace; font-size: 9px; color: #b5ee63; letter-spacing: .14em; }
.auth-preview .preview-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #98a39b; margin-bottom: 11px; }
.auth-preview .preview-row strong { font-size: 19px; color: #f6f8f4; font-weight: 700; letter-spacing: -.01em; }
.auth-preview .preview-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.auth-preview .preview-bars i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, #c5f57f, #4e7a2e); opacity: .85; }
@keyframes cardFloat { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-9px); } }

/* —— 右侧登录卡片 —— */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-card { position: relative; width: 100%; max-width: 386px; padding: 34px 34px 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(21, 25, 21, .82), rgba(11, 13, 12, .88)); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(22px); box-shadow: 0 32px 84px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .045), 0 0 64px rgba(181, 238, 99, .04); animation: cardIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.auth-card::before { content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px; background: linear-gradient(160deg, rgba(181, 238, 99, .38), rgba(255, 255, 255, .05) 32%, transparent 62%, rgba(181, 238, 99, .14)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 28px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; }
.auth-tab { flex: 1; height: 38px; border: 0; background: transparent; color: #7d8981; font-size: 13px; font-weight: 600; border-radius: 9px; cursor: pointer; transition: color .18s ease; }
.auth-tab:hover { color: #c6cec8; }
.auth-tab.active { color: #f3f5f2; background: linear-gradient(160deg, #1d251c, #141915); box-shadow: inset 0 0 0 1px rgba(181, 238, 99, .24), 0 4px 16px rgba(0, 0, 0, .35), 0 0 20px rgba(181, 238, 99, .07); }
.auth-card h2 { font-size: 26px; font-weight: 800; color: #f6f8f4; margin: 0 0 7px; letter-spacing: -.02em; }
.auth-sub { font-size: 12.5px; color: #8a968e; margin: 0 0 26px; }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field[hidden] { display: none !important; }
.field > span { font-size: 11px; color: #98a39b; font-weight: 500; letter-spacing: .02em; }
.field-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 15px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field-input:focus-within { border-color: rgba(181, 238, 99, .55); background: rgba(181, 238, 99, .03); box-shadow: 0 0 0 3px rgba(181, 238, 99, .08), 0 0 26px rgba(181, 238, 99, .05); }
.field-input i { width: 16px; color: #66736b; flex: 0 0 16px; transition: color .18s ease; }
.field-input:focus-within i { color: #b5ee63; }
.field-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #eef1ee; font-size: 13.5px; }
.field-input input::placeholder { color: #4d5851; }
.field-eye { background: transparent; border: 0; color: #66736b; cursor: pointer; padding: 4px; display: grid; place-items: center; transition: color .18s ease; }
.field-eye:hover { color: #b5ee63; }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: #8a968e; cursor: pointer; }
.check input { accent-color: #b5ee63; }
.link-btn { background: transparent; border: 0; color: #9fc95a; font-size: 12px; cursor: pointer; transition: color .18s ease; }
.link-btn:hover { color: #b5ee63; }
.auth-submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #caf880 0%, #b5ee63 42%, #90db49 100%); color: #0b0d0c; font-size: 14px; font-weight: 800; letter-spacing: .06em; cursor: pointer; margin-top: 6px; transition: transform .16s ease, box-shadow .22s ease, filter .22s ease; box-shadow: 0 10px 26px rgba(181, 238, 99, .22), inset 0 1px 0 rgba(255, 255, 255, .42); }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(181, 238, 99, .32), inset 0 1px 0 rgba(255, 255, 255, .46); filter: brightness(1.05); }
.auth-submit:active { transform: translateY(0); }
.auth-submit i { width: 15px; transition: transform .18s ease; }
.auth-submit:hover i { transform: translateX(3px); }
.auth-demo { font-size: 11px; color: #77837b; text-align: center; margin-top: 18px; }
.auth-demo code { color: #b5ee63; background: rgba(181, 238, 99, .06); border: 1px solid rgba(181, 238, 99, .18); padding: 2px 7px; border-radius: 6px; font-family: "DM Mono", "Microsoft YaHei", monospace; font-size: 11px; }
.auth-alt { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06); }
.auth-alt > span { font-size: 11px; color: #66736b; text-align: center; }
.auth-alt > div { display: flex; gap: 10px; }
.alt-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 11px; color: #c6cec8; font-size: 12.5px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .15s ease; }
.alt-btn:hover { border-color: rgba(181, 238, 99, .35); background: rgba(181, 238, 99, .05); transform: translateY(-1px); }
.alt-btn i { width: 15px; color: #9aa59d; }
.auth-admin-link { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-size: 12px; color: #5f6a63; }
.auth-admin-link button { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; color: #7d8981; font-size: 12px; cursor: pointer; transition: color .18s ease; }
.auth-admin-link button:hover { color: #b5ee63; }
.auth-admin-link button i { width: 14px; }

/* 管理员登录 */
.admin-auth { align-items: center; justify-content: center; }
.admin-login-shell { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 40px 24px; }
.admin-back { display: flex; align-items: center; gap: 8px; position: absolute; top: 26px; left: 24px; background: transparent; border: 0; color: #6b766e; font-size: 12px; cursor: pointer; transition: color .18s ease; }
.admin-back:hover { color: #b5ee63; }
.admin-back i { width: 15px; }
.admin-login-card { background: linear-gradient(160deg, rgba(21, 25, 21, .84), rgba(11, 13, 12, .9)); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 38px 36px 32px; box-shadow: 0 32px 84px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .045); animation: cardIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.admin-login-head { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.admin-login-head .brand-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: linear-gradient(145deg, #1d2a18, #0f1410); border-color: #3f5a33; box-shadow: 0 0 22px rgba(181, 238, 99, .12); }
.admin-login-head strong { display: block; font-size: 15px; color: #f3f5f2; }
.admin-login-head small { font-size: 9px; color: #77837b; letter-spacing: 2px; }
.admin-login-card .eyebrow { font-size: 10px; letter-spacing: 2.5px; color: #b5ee63; margin-bottom: 9px; }
.admin-login-card h2 { font-size: 24px; margin: 0 0 7px; color: #f6f8f4; letter-spacing: -.01em; }
.admin-login-card .auth-sub { margin-bottom: 24px; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 56px 22px; }
  .auth-preview { display: none; }
}
@media (max-height: 760px) {
  .auth-preview { display: none; }
  .auth-brand { padding-top: 40px; padding-bottom: 40px; }
  .auth-brand-inner { max-width: 420px; }
}

/* 管理后台 */
.admin-view { min-height: 100vh; background: #090a0b; color: #eef1ee; display: flex; }
.admin-sidebar { width: 216px; flex: 0 0 216px; display: flex; flex-direction: column; border-right: 1px solid #1b211e; background: #0b0d0c; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px; border-bottom: 1px solid #1b211e; }
.admin-brand .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; }
.admin-brand strong { display: block; font-size: 14px; color: #f3f5f2; }
.admin-brand small { font-size: 9px; color: #7d8981; letter-spacing: 1.5px; }
.admin-nav { flex: 1; padding: 12px 10px; display: grid; gap: 3px; align-content: start; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: transparent; border: 0; border-radius: 8px; color: #8a968e; font-size: 13px; cursor: pointer; text-align: left; }
.admin-nav-item i { width: 16px; }
.admin-nav-item:hover { color: #c6cec8; background: #101412; }
.admin-nav-item.active { color: #b5ee63; background: #131a15; box-shadow: inset 0 0 0 1px #223024; }
.admin-side-foot { padding: 14px 18px; border-top: 1px solid #1b211e; }
.admin-side-foot button { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; color: #8a968e; font-size: 12px; cursor: pointer; padding: 6px 2px; }
.admin-side-foot button:hover { color: #ea6668; }
.admin-side-foot i { width: 15px; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid #1b211e; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 30px; height: 30px; border-radius: 8px; background: #1a201c; border: 1px solid #2a332d; color: #b5ee63; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.admin-user strong { display: block; font-size: 12px; color: #eef1ee; }
.admin-user small { font-size: 10px; color: #7d8981; }
.admin-content { flex: 1; padding: 24px 26px 40px; overflow: auto; max-width: 1180px; }

.admin-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.admin-page-head h2 { font-size: 20px; font-weight: 700; color: #f3f5f2; margin: 0 0 4px; }
.admin-page-head p { font-size: 12px; color: #8a968e; margin: 0; }
.admin-stat-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.admin-stat { flex: 1 1 180px; min-width: 0; background: #0e1110; border: 1px solid #232a26; border-radius: 12px; padding: 15px 16px; }
.admin-stat span { font-size: 11px; color: #8a968e; }
.admin-stat strong { display: block; font-size: 24px; font-weight: 700; color: #f3f5f2; margin-top: 5px; }
.admin-stat em { font-size: 11px; color: #b5ee63; font-style: normal; }
.admin-card { background: #0e1110; border: 1px solid #232a26; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.admin-card-head h3 { font-size: 14px; font-weight: 600; color: #eef1ee; margin: 0; }
.admin-card-head .card-hint { font-size: 11px; color: #7d8981; }
.btn-primary { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; background: #b5ee63; border: 0; border-radius: 8px; color: #0b0d0c; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { background: #c6f57d; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: transparent; border: 1px solid #2a332d; border-radius: 8px; color: #c6cec8; font-size: 12px; cursor: pointer; }
.btn-ghost:hover { border-color: #3d4a40; }
.btn-danger { color: #ea6668; border-color: #3a2224; }
.btn-danger:hover { border-color: #6e3336; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 11px; border-radius: 7px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { text-align: left; font-size: 10px; letter-spacing: 1px; color: #6b766e; font-weight: 500; padding: 0 10px 10px; border-bottom: 1px solid #1b211e; }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid #171c19; color: #c6cec8; }
.admin-table td strong { color: #eef1ee; font-weight: 600; }
.admin-table tr:last-child td { border-bottom: 0; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.tag-green { color: #b5ee63; background: #141b14; border: 1px solid #223024; }
.tag-gray { color: #8a968e; background: #121614; border: 1px solid #232a26; }
.tag-red { color: #ea6668; background: #1d1213; border: 1px solid #3a2224; }
.tag-gold { color: #e0b36a; background: #1d1812; border: 1px solid #3a3326; }

.api-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.api-card { flex: 1 1 300px; min-width: 0; background: #0e1110; border: 1px solid #232a26; border-radius: 12px; padding: 16px; }
.api-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.api-card-head .api-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; background: #131a15; border: 1px solid #223024; color: #b5ee63; }
.api-card-head .api-icon i { width: 16px; }
.api-card h4 { font-size: 13px; font-weight: 600; color: #eef1ee; margin: 0; }
.api-card .api-meta { font-size: 10px; color: #7d8981; margin-top: 2px; }
.api-card .api-key { font-family: 'DM Mono', monospace; font-size: 11px; color: #8a968e; background: #0b0d0c; border: 1px solid #1f2622; border-radius: 7px; padding: 8px 10px; margin: 10px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-card .api-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.api-card .api-actions { display: flex; gap: 6px; }

.skill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-card { flex: 1 1 320px; min-width: 0; background: #0e1110; border: 1px solid #232a26; border-radius: 12px; padding: 16px; }
.skill-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.skill-card-head .skill-idx { font-family: 'DM Mono', monospace; font-size: 10px; color: #b5ee63; background: #131a15; border: 1px solid #223024; border-radius: 6px; padding: 2px 6px; flex: 0 0 auto; }
.skill-card h4 { font-size: 13px; font-weight: 600; color: #eef1ee; margin: 0 0 2px; }
.skill-card .skill-desc { font-size: 11px; color: #8a968e; line-height: 1.55; margin: 0 0 10px; }
.skill-card .skill-trigger { font-size: 11px; color: #6b766e; background: #0b0d0c; border: 1px solid #1f2622; border-radius: 7px; padding: 7px 10px; margin-bottom: 10px; }
.skill-card .skill-trigger b { color: #9aa59d; font-weight: 500; }
.skill-card .skill-prompts { font-size: 11px; color: #7d8981; background: #0b0d0c; border: 1px solid #1f2622; border-radius: 7px; padding: 8px 10px; margin-bottom: 10px; max-height: 74px; overflow: hidden; line-height: 1.6; }
.skill-card .skill-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.skill-card .skill-foot { display: flex; align-items: center; justify-content: space-between; }

.switch { position: relative; width: 38px; height: 21px; flex: 0 0 38px; border: 0; border-radius: 20px; background: #262d29; cursor: pointer; transition: background .15s ease; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #7d8981; transition: transform .15s ease, background .15s ease; }
.switch.on { background: #3c5a2c; }
.switch.on::after { transform: translateX(17px); background: #b5ee63; }

.form-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.form-item { flex: 1 1 240px; min-width: 0; display: grid; gap: 7px; }
.form-item.full { flex-basis: 100%; }
.form-item label { font-size: 11px; color: #9aa59d; font-weight: 500; }
.form-item input, .form-item select, .form-item textarea { width: 100%; box-sizing: border-box; background: #0b0d0c; border: 1px solid #252c28; border-radius: 9px; color: #eef1ee; font-size: 12px; padding: 10px 12px; outline: 0; font-family: inherit; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: #3d4a40; }
.form-item textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.form-item .form-hint { font-size: 10px; color: #6b766e; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }

.empty-state { text-align: center; padding: 46px 20px; color: #6b766e; font-size: 12px; }
.empty-state i { width: 30px; height: 30px; margin-bottom: 10px; color: #3d4a40; }

.review-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #171c19; font-size: 12px; }
.review-row:last-child { border-bottom: 0; }
.review-thumb { width: 46px; height: 46px; border-radius: 8px; background: #131a15; border: 1px solid #223024; display: grid; place-items: center; color: #5f6a63; flex: 0 0 46px; }
.review-thumb i { width: 18px; }
.review-info { flex: 1 1 220px; min-width: 0; }
.review-info strong { display: block; color: #eef1ee; font-weight: 600; font-size: 12px; }
.review-info small { color: #7d8981; font-size: 11px; }
.review-actions { display: flex; gap: 6px; }

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 48px 24px; }
  .admin-sidebar { width: 200px; flex-basis: 200px; }
  .admin-content { padding: 18px 16px 32px; }
}
@media (max-width: 640px) {
  .admin-view { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-basis: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid #1b211e; overflow-x: auto; }
  .admin-brand { border-bottom: 0; padding: 12px 14px; flex: 0 0 auto; }
  .admin-nav { flex-direction: row; padding: 8px 6px; gap: 2px; }
  .admin-nav-item { height: 36px; padding: 0 10px; white-space: nowrap; font-size: 12px; }
  .admin-side-foot { display: none; }
  .admin-topbar { padding: 0 16px; }
  .auth-card { max-width: 100%; }
}

/* ============ 数字人介绍产品 · 前端功能 ============ */
.pi-workbench { display: grid; gap: 22px; padding: 28px 30px; border-radius: 20px; background: linear-gradient(165deg, rgba(16, 20, 16, .62), rgba(10, 12, 10, .74)); border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.pi-workbench .result-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.pi-workbench .result-ready { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #8a968e; }
.pi-workbench .result-ready i { width: 7px; height: 7px; border-radius: 50%; background: #b5ee63; box-shadow: 0 0 10px rgba(181, 238, 99, .8); }
.pi-workbench .demo-uploadzone { background: rgba(255, 255, 255, .02); }
.pi-workbench .demo-primary { max-width: 360px; width: 100%; justify-self: center; }
.pi-workbench .demo-actions { max-width: 460px; width: 100%; justify-self: center; }
.pi-workbench .demo-foot { max-width: 620px; width: 100%; justify-self: center; }

/* —— 体验面板 —— */
.demo-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.demo-overlay[hidden] { display: none !important; }
.demo-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 5, .72); backdrop-filter: blur(8px); animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.demo-panel { position: relative; z-index: 1; width: 100%; max-width: 540px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 28px 30px 26px; border-radius: 22px; background: linear-gradient(165deg, rgba(20, 24, 20, .96), rgba(9, 11, 10, .98)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 70px rgba(181, 238, 99, .05); animation: panelIn .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.demo-close { position: absolute; top: 16px; right: 16px; display: grid; width: 30px; height: 30px; place-items: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; color: #8a968e; cursor: pointer; transition: color .18s ease, border-color .18s ease; }
.demo-close:hover { color: #f3f5f2; border-color: rgba(181, 238, 99, .35); }
.demo-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.demo-head-logo { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 12px; color: #b5ee63; background: linear-gradient(160deg, #1d2a18, #0f1410); border: 1px solid #3f5a33; box-shadow: 0 0 24px rgba(181, 238, 99, .16); }
.demo-head-logo i { width: 20px; height: 20px; }
.demo-head strong { display: block; font-size: 16px; color: #f6f8f4; letter-spacing: -.01em; }
.demo-head small { display: block; font-size: 10px; color: #77837b; letter-spacing: .14em; margin-top: 3px; font-family: "DM Mono", "Microsoft YaHei", monospace; }

.demo-step { display: grid; gap: 16px; }
.demo-step[hidden] { display: none !important; }
.demo-step-title { display: flex; align-items: flex-start; gap: 12px; }
.step-badge { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; color: #0b0d0c; background: linear-gradient(135deg, #caf880, #93dc4a); font-family: "DM Mono", "Microsoft YaHei", monospace; font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px rgba(181, 238, 99, .25); }
.demo-step-title strong { display: block; font-size: 14px; color: #f3f5f2; }
.demo-step-title small { display: block; font-size: 11px; color: #77837b; margin-top: 3px; }

.demo-uploadzone { display: grid; gap: 8px; justify-items: center; padding: 30px 18px 26px; cursor: pointer; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1.5px dashed rgba(181, 238, 99, .32); text-align: center; transition: border-color .2s ease, background .2s ease, transform .15s ease; }
.demo-uploadzone:hover { border-color: rgba(181, 238, 99, .6); background: rgba(181, 238, 99, .045); transform: translateY(-1px); }
.demo-uploadzone input { display: none; }
.uploadzone-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; color: #b5ee63; background: linear-gradient(160deg, #1d2a18, #0f1410); border: 1px solid #33472b; box-shadow: 0 0 26px rgba(181, 238, 99, .14); margin-bottom: 4px; }
.uploadzone-icon i { width: 26px; height: 26px; }
.demo-uploadzone strong { font-size: 14px; color: #f3f5f2; font-weight: 600; }
.demo-uploadzone small { font-size: 11px; color: #77837b; }
.demo-uploadzone em { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 16px; border-radius: 999px; font-style: normal; font-size: 12px; color: #0b0d0c; background: linear-gradient(135deg, #caf880, #93dc4a); font-weight: 700; box-shadow: 0 6px 18px rgba(181, 238, 99, .22); }
.demo-uploadzone em i { width: 13px; }

.demo-picked { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(181, 238, 99, .05); border: 1px solid rgba(181, 238, 99, .22); }
.demo-picked[hidden] { display: none !important; }
.demo-picked-visual { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 11px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); background: #0d110c; display: grid; place-items: center; color: #b5ee63; }
.demo-picked-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-picked-meta { min-width: 0; flex: 1; }
.demo-picked-meta strong { display: block; font-size: 13.5px; color: #f3f5f2; }
.demo-picked-meta small { display: block; font-size: 11px; color: #77837b; margin-top: 3px; }
.demo-picked-ok { width: 18px; height: 18px; color: #b5ee63; }

.demo-primary { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #caf880 0%, #b5ee63 42%, #90db49 100%); color: #0b0d0c; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: transform .16s ease, box-shadow .22s ease, filter .22s ease, opacity .18s ease; box-shadow: 0 10px 26px rgba(181, 238, 99, .2), inset 0 1px 0 rgba(255, 255, 255, .4); }
.demo-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(181, 238, 99, .3); filter: brightness(1.05); }
.demo-primary:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.demo-primary i { width: 15px; }

/* 生成文案 */
.demo-copy-loading { display: grid; justify-items: center; gap: 14px; padding: 30px 0 24px; color: #8a968e; font-size: 12px; }
.demo-copy-loading[hidden] { display: none !important; }
.demo-copy-result[hidden] { display: none !important; }
.loader-rings { display: flex; gap: 7px; height: 26px; align-items: center; }
.loader-rings i { width: 9px; height: 9px; border-radius: 50%; background: #b5ee63; animation: ringBounce 1.1s ease-in-out infinite; box-shadow: 0 0 12px rgba(181, 238, 99, .7); }
.loader-rings i:nth-child(2) { animation-delay: .15s; }
.loader-rings i:nth-child(3) { animation-delay: .3s; }
@keyframes ringBounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-9px); opacity: 1; } }
.demo-copy-result { display: grid; gap: 12px; padding: 18px 18px 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); }
.copy-result-head { display: flex; align-items: center; justify-content: space-between; }
.copy-result-head .mono-tag { font-size: 10px; letter-spacing: .12em; color: #b5ee63; }
.demo-copy-result h3 { margin: 0; font-size: 17px; line-height: 1.45; color: #f6f8f4; letter-spacing: -.01em; }
.demo-copy-result p { margin: 0; font-size: 13px; line-height: 1.85; color: #9aa59d; }
.copy-result-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.copy-result-tags span { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; color: #9fc95a; background: rgba(181, 238, 99, .07); border: 1px solid rgba(181, 238, 99, .18); }

/* 数字人播报 */
.demo-stage { position: relative; display: grid; justify-items: center; gap: 14px; padding: 14px 0 4px; }
.demo-avatar { position: relative; width: 168px; height: 206px; }
.avatar-ring { position: absolute; inset: 4px; border-radius: 50% 50% 44% 44% / 52% 52% 44% 44%; border: 1px solid rgba(181, 238, 99, .22); box-shadow: 0 0 60px rgba(181, 238, 99, .1), inset 0 0 44px rgba(181, 238, 99, .04); animation: ringPulse 3.2s ease-in-out infinite; }
@keyframes ringPulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }
.avatar-halo { position: absolute; left: 50%; top: 8px; width: 150px; height: 150px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(181, 238, 99, .14), transparent 68%); filter: blur(14px); }
.avatar-body { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 126px; height: 178px; border-radius: 50% 50% 40% 40% / 56% 56% 36% 36%; background: linear-gradient(165deg, #2d3d2b 0%, #1a241a 55%, #0f1410 100%); border: 1px solid rgba(181, 238, 99, .2); overflow: hidden; }
.avatar-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(181, 238, 99, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(181, 238, 99, .05) 1px, transparent 1px); background-size: 13px 13px; pointer-events: none; }
.avatar-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #b5ee63, transparent); box-shadow: 0 0 16px rgba(181, 238, 99, .85); animation: scanMove 2.8s linear infinite; }
@keyframes scanMove { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.avatar-face { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: 62px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; row-gap: 16px; justify-items: center; }
.avatar-eye { width: 9px; height: 9px; border-radius: 50%; background: #b5ee63; box-shadow: 0 0 12px rgba(181, 238, 99, .95); }
.avatar-mouth { grid-column: 1 / -1; width: 24px; height: 6px; border-radius: 999px; background: rgba(181, 238, 99, .8); box-shadow: 0 0 12px rgba(181, 238, 99, .5); transition: transform .16s ease; }
.demo-avatar.speaking .avatar-mouth { animation: mouthTalk .42s ease-in-out infinite alternate; }
@keyframes mouthTalk { from { transform: scaleX(.7) scaleY(.8); } to { transform: scaleX(1.15) scaleY(1.25); } }
.demo-wave { display: flex; align-items: center; gap: 4px; height: 26px; }
.demo-wave i { width: 3px; border-radius: 2px; background: #b5ee63; height: 6px; opacity: .45; }
.demo-wave.active i { animation: waveBounce 1s ease-in-out infinite; }
.demo-wave.active i:nth-child(2) { animation-delay: .1s; } .demo-wave.active i:nth-child(3) { animation-delay: .2s; }
.demo-wave.active i:nth-child(4) { animation-delay: .3s; } .demo-wave.active i:nth-child(5) { animation-delay: .4s; }
.demo-wave.active i:nth-child(6) { animation-delay: .5s; } .demo-wave.active i:nth-child(7) { animation-delay: .6s; }
.demo-wave.active i:nth-child(8) { animation-delay: .7s; } .demo-wave.active i:nth-child(9) { animation-delay: .8s; }
@keyframes waveBounce { 0%, 100% { height: 6px; opacity: .4; } 50% { height: 22px; opacity: 1; } }
.avatar-nameplate { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 11.5px; color: #c6cec8; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.plate-dot { width: 6px; height: 6px; border-radius: 50%; background: #b5ee63; box-shadow: 0 0 10px rgba(181, 238, 99, .85); animation: dotPulse 1.6s ease-in-out infinite; }
.avatar-nameplate em { font-style: normal; font-family: "DM Mono", "Microsoft YaHei", monospace; font-size: 10px; color: #b5ee63; letter-spacing: .08em; }
.demo-caption { min-height: 46px; padding: 13px 16px; border-radius: 13px; font-size: 13.5px; line-height: 1.7; color: #eef1ee; background: rgba(181, 238, 99, .05); border: 1px solid rgba(181, 238, 99, .16); }
.demo-caption-progress { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.demo-caption-progress span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #93dc4a, #caf880); transition: width .4s ease; }
.demo-actions { display: flex; gap: 10px; }
.demo-ghost { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 11px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); color: #c6cec8; font-size: 12.5px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .15s ease; }
.demo-ghost:hover { border-color: rgba(181, 238, 99, .35); background: rgba(181, 238, 99, .05); transform: translateY(-1px); }
.demo-ghost i { width: 15px; color: #9aa59d; }

/* 完成与跳转 */
.demo-foot { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06); animation: fadeIn .3s ease both; }
.demo-foot[hidden] { display: none !important; }
.demo-foot-note { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.6; color: #8a968e; }
.demo-foot-note i { width: 15px; height: 15px; flex: 0 0 15px; color: #b5ee63; margin-top: 1px; }
.demo-foot-note strong { color: #b5ee63; font-weight: 600; }
.demo-foot-actions { display: flex; gap: 10px; }
.demo-foot-actions .demo-primary { flex: 1.4; }
.demo-foot-actions .demo-ghost { flex: 1; }
body.demo-open { overflow: hidden; }

@media (max-width: 560px) {
  .demo-panel { padding: 22px 18px; }
  .demo-foot-actions { flex-direction: column; }
}

/* ============ 整体美化 · 品牌焕新 ============ */
body {
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(201, 242, 122, .05), transparent 62%),
    radial-gradient(900px 520px at -12% 108%, rgba(76, 148, 255, .045), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* 侧边栏质感 */
.sidebar { background: linear-gradient(180deg, rgba(14, 16, 17, .96), rgba(10, 12, 13, .98)); }
.brand-copy strong span { text-shadow: 0 0 18px rgba(201, 242, 122, .42); }
.new-project { box-shadow: 0 10px 26px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .05); }
.nav-item { transition: color .16s ease, background .16s ease; }
.nav-item:hover { background: rgba(255, 255, 255, .035); }
.nav-item.active { background: linear-gradient(90deg, rgba(201, 242, 122, .11), rgba(201, 242, 122, .02) 78%); box-shadow: inset 0 0 0 1px rgba(201, 242, 122, .09); }
.nav-item.active::before { box-shadow: 0 0 14px rgba(201, 242, 122, .85); }
.nav-item.active svg { filter: drop-shadow(0 0 7px rgba(201, 242, 122, .55)); }

/* 顶栏 */
.topbar { background: rgba(9, 10, 11, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .03); }

/* 眉标与标题 */
.eyebrow { color: var(--accent-dim); letter-spacing: .15em; }
.composer-copy h2, .page-heading h1 { text-shadow: 0 0 34px rgba(201, 242, 122, .08); }

/* 主按钮光晕 */
.btn-primary { box-shadow: 0 8px 22px rgba(181, 238, 99, .16), inset 0 1px 0 rgba(255, 255, 255, .36); transition: background .18s ease, box-shadow .2s ease, transform .15s ease; }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(181, 238, 99, .28), inset 0 1px 0 rgba(255, 255, 255, .42); transform: translateY(-1px); }

/* 卡片统一质感 */
.composer-panel, .preview-panel, .projects-panel, .metrics-panel { box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.composer-panel::before { box-shadow: 0 0 18px rgba(201, 242, 122, .5); }

/* 深色滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #232a2c; border-radius: 99px; border: 2px solid #0a0c0b; }
::-webkit-scrollbar-thumb:hover { background: #364043; }

/* ============ 工作台布局美化 ============ */
/* Hero */
.workspace-heading h1 {
  background: linear-gradient(92deg, #ffffff 16%, #ecf8d2 58%, #c9f27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.status-live {
  padding: 6px 12px;
  background: rgba(201, 242, 122, .07);
  border: 1px solid rgba(201, 242, 122, .16);
  border-radius: 999px;
  color: #a7c98d;
}
.status-live i { animation: piStatusPulse 2.2s ease-in-out infinite; }
@keyframes piStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184, 242, 107, .14); }
  50% { box-shadow: 0 0 0 7px rgba(184, 242, 107, .02); }
}

/* AI 创作助手卡 */
.composer-modes { border-radius: 10px; }
.composer-mode { border-radius: 8px; transition: color .16s ease, background .16s ease, box-shadow .2s ease; }
.composer-mode[aria-selected="true"], .composer-mode.active { box-shadow: 0 0 14px rgba(201, 242, 122, .12); }
.signal-dot { box-shadow: 0 0 9px rgba(201, 242, 122, .85); animation: piSignalBreath 2.4s ease-in-out infinite; }
@keyframes piSignalBreath {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}
.prompt-box { background: linear-gradient(180deg, #0e1112, #0c0f10); border-radius: 10px; }
.prompt-box:focus-within { border-color: #8fba6a; box-shadow: 0 0 0 3px rgba(184, 242, 107, .1), 0 10px 34px rgba(0, 0, 0, .28); }
.generate-btn { box-shadow: 0 8px 22px rgba(181, 238, 99, .18), inset 0 1px 0 rgba(255, 255, 255, .4); transition: background .18s ease, box-shadow .2s ease, transform .15s ease; }
.generate-btn:hover { box-shadow: 0 12px 30px rgba(181, 238, 99, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.suggestions { color: #7d8c82; }
.suggestions span { margin-right: 2px; color: #a9b6ad; font-weight: 600; }
.suggestions button { padding: 4px 12px; border: 1px solid #2a3330; border-radius: 999px; background: rgba(255, 255, 255, .02); transition: color .16s ease, border-color .16s ease, background .16s ease; }
.suggestions button:hover { color: var(--accent); border-color: #5d7d4a; background: rgba(201, 242, 122, .06); }

/* 灵感预览卡 */
.video-frame img { transition: transform .55s ease; }
.video-frame:hover img { transform: scale(1.045); }

/* WORKFLOW 流程条 */
.workflow-row { box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.workflow-step { transition: background .18s ease; }
.workflow-step:hover, .workflow-step.active { background: linear-gradient(180deg, rgba(201, 242, 122, .07), rgba(201, 242, 122, .015)); }
.workflow-step.active .step-number { color: var(--accent); }
.workflow-step .step-icon { transition: color .18s ease, border-color .18s ease, box-shadow .2s ease; }
.workflow-step:hover .step-icon { color: var(--accent); border-color: #4a6a44; }
.workflow-step.active .step-icon { color: var(--accent); border-color: rgba(201, 242, 122, .5); box-shadow: 0 0 14px rgba(201, 242, 122, .28); }
.workflow-step .step-arrow { color: #4a5a4e; }

/* 最近项目 / 本周表现 */
.project-row { transition: background .16s ease; }
.project-row:hover { background: rgba(201, 242, 122, .045); }
.project-row:hover .row-arrow { color: var(--accent); transform: translate(1px, -1px); }
.row-arrow { transition: color .16s ease, transform .16s ease; }
.metric-main strong {
  background: linear-gradient(120deg, #f4faf0, #c9f27a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sparkline span { background: linear-gradient(180deg, #5d7a55, #3a4d3c); }
.sparkline span:nth-last-child(-n+3) { background: linear-gradient(180deg, #c9f27a, #8bbd59); box-shadow: 0 0 10px rgba(201, 242, 122, .35); }

/* 面板呼吸边框 */
.composer-panel, .preview-panel, .projects-panel, .metrics-panel { transition: border-color .2s ease; }
.composer-panel:hover, .preview-panel:hover, .projects-panel:hover, .metrics-panel:hover { border-color: #2c3533; }

/* ============ 创作档案 · 优化建议面板 ============ */
.review-tips { position: relative; margin-bottom: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.review-tips::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.review-tips .result-panel-heading { margin-bottom: 14px; }
.tip-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tip-item { display: flex; flex-direction: column; gap: 9px; padding: 14px 15px; background: #0e1112; border: 1px solid #23292a; border-radius: 10px; transition: border-color .18s ease, transform .16s ease, box-shadow .2s ease; }
.tip-item:hover { border-color: #3a4d3c; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .24); }
.tip-badge { align-self: flex-start; padding: 2px 9px; color: #c9f27a; background: rgba(201, 242, 122, .08); border: 1px solid rgba(201, 242, 122, .22); border-radius: 999px; font-size: 9px; letter-spacing: .02em; }
.tip-copy strong { display: block; color: var(--text); font-size: 12px; letter-spacing: -.02em; }
.tip-copy p { margin: 5px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.tip-item button { margin-top: auto; align-self: flex-start; padding: 0; color: #9ebc87; font-size: 10px; }
.tip-item button:hover { color: var(--accent); }
@media (max-width: 900px) { .tip-list { grid-template-columns: 1fr; } }

/* ============ AI 文案工作台美化 ============ */
.creative-workbench { border-radius: 12px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.copy-result-panel { position: relative; }
.copy-result-panel::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.workbench-step { box-shadow: 0 0 12px rgba(201, 242, 122, .22); }
.workbench-textarea:focus { border-color: #7fae5c; box-shadow: 0 0 0 3px rgba(201, 242, 122, .09), 0 8px 26px rgba(0, 0, 0, .22); }
.copy-example-grid button { border-radius: 8px; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .15s ease, box-shadow .2s ease; }
.copy-example-grid button:hover, .copy-example-grid button.active { border-color: #4d6a44; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.workbench-fields select:focus, .image-control-row select:focus { border-color: #7fae5c; box-shadow: 0 0 0 3px rgba(201, 242, 122, .07); }
.workbench-primary { box-shadow: 0 8px 22px rgba(181, 238, 99, .18), inset 0 1px 0 rgba(255, 255, 255, .4); transition: background .18s ease, box-shadow .2s ease, transform .15s ease; }
.workbench-primary:hover { box-shadow: 0 12px 30px rgba(181, 238, 99, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.script-line { transition: background .16s ease; }
.script-line:hover { background: rgba(201, 242, 122, .03); }
.script-line:hover > span { color: #a5c987; }
.story-frame { transition: border-color .18s ease, transform .16s ease, box-shadow .2s ease; }
.story-frame:hover, .story-frame.active { border-color: #6a8853; box-shadow: 0 0 16px rgba(201, 242, 122, .18); transform: translateY(-1px); }
.hook-block { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }

/* ============ 长转短工作台重排 ============ */
.ls-workbench { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: 16px; margin-top: 22px; align-items: start; }
.ls-upload-panel, .ls-results { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.ls-upload-panel::before, .ls-results::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.ls-upload-panel .result-panel-heading, .ls-results .result-panel-heading { margin-bottom: 14px; }
.ls-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 168px; padding: 22px; color: var(--text-soft); background: #0d1011; border: 1.5px dashed #33403a; border-radius: 12px; transition: border-color .18s ease, background .18s ease, box-shadow .2s ease, transform .15s ease; }
.ls-dropzone:hover { border-color: #7fae5c; background: #101513; box-shadow: 0 0 24px rgba(201, 242, 122, .08); transform: translateY(-1px); }
.ls-drop-icon { display: grid; width: 46px; height: 46px; place-items: center; color: var(--accent); background: rgba(201, 242, 122, .08); border: 1px solid rgba(201, 242, 122, .22); border-radius: 14px; }
.ls-drop-icon svg { width: 20px; height: 20px; }
.ls-dropzone strong { color: var(--text-soft); font-size: 12.5px; font-weight: 600; }
.ls-dropzone small { color: #68766c; font-size: 10px; }
.ls-progress { margin-top: 16px; padding-top: 14px; border-top: 1px solid #222a25; }
.ls-progress-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #5f6c64; font-size: 9.5px; }
.ls-progress-head svg { width: 11px; height: 11px; color: #4a5a4e; }
.ls-progress-step.is-done { color: #a5c987; }
.ls-progress-step.is-active { color: var(--accent); font-weight: 700; }
.progress-line { height: 3px; background: #1c2420; border-radius: 99px; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: linear-gradient(90deg, #8bbd59, #c9f27a); border-radius: 99px; box-shadow: 0 0 10px rgba(201, 242, 122, .5); transition: width .4s ease; }
.ls-progress-item { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ls-progress-item > i { display: grid; width: 28px; height: 28px; place-items: center; flex: 0 0 auto; color: #9bbd7d; background: #1d2a1e; border: 1px solid #2a3a2c; border-radius: 8px; }
.ls-progress-item svg { width: 13px; height: 13px; }
.ls-progress-item .list-item-main { flex: 1; min-width: 0; }
.ls-progress-item button { padding: 5px 12px; color: #10140e; background: #b5ee63; border-radius: 7px; font-size: 10.5px; font-weight: 600; transition: background .18s ease, box-shadow .2s ease; }
.ls-progress-item button:hover { background: #c6f57d; box-shadow: 0 6px 18px rgba(181, 238, 99, .28); }
.ls-result-grid { display: grid; gap: 10px; }
.ls-result-card { display: flex; align-items: stretch; min-width: 0; background: #0d1011; border: 1px solid #23292a; border-radius: 10px; overflow: hidden; transition: border-color .18s ease, transform .16s ease, box-shadow .2s ease; }
.ls-result-card:hover { border-color: #3a4d3c; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .24); }
.ls-result-thumb { position: relative; width: 104px; aspect-ratio: 16 / 10; flex: 0 0 auto; overflow: hidden; }
.ls-result-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) saturate(.92); transition: transform .5s ease, filter .3s ease; }
.ls-result-card:hover .ls-result-thumb img { transform: scale(1.06); filter: brightness(.92) saturate(1); }
.ls-result-thumb::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 7, 0) 45%, rgba(6, 8, 7, .6)); content: ""; }
.ls-result-thumb > svg { position: absolute; top: 50%; left: 50%; z-index: 1; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); transform: translate(-50%, -50%); }
.ls-duration { position: absolute; right: 6px; bottom: 6px; z-index: 1; padding: 2px 7px; color: #eaf2e6; background: rgba(8, 10, 9, .72); border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; font: 9px "DM Mono", monospace; }
.ls-result-body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 10px 12px; }
.ls-result-body strong { display: -webkit-box; overflow: hidden; color: var(--text-soft); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ls-result-body small { color: #68766c; font-size: 9px; }
.ls-result-body button { align-self: flex-start; margin-top: 2px; padding: 4px 10px; color: #a5c987; background: rgba(201, 242, 122, .06); border: 1px solid rgba(201, 242, 122, .16); border-radius: 999px; font-size: 9.5px; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.ls-result-body button:hover { color: #0f130d; background: #c9f27a; border-color: #c9f27a; }
@media (max-width: 960px) { .ls-workbench { grid-template-columns: 1fr; } }

/* ============ AI 成片工作台 ============ */
.av-workbench { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 22px; align-items: start; }
.av-controls, .av-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.av-stage { position: relative; }
.av-stage::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.av-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; background: #0b0e0d; border: 1px solid #222a26; border-radius: 10px; }
.av-mode { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; color: #7d8a81; border: 1px solid transparent; border-radius: 8px; font-size: 10.5px; transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .2s ease; }
.av-mode.active { color: var(--text); background: #19221b; border-color: #42563b; box-shadow: 0 0 12px rgba(201, 242, 122, .1); }
.av-mode svg { width: 13px; height: 13px; }
.av-mode.active svg { color: var(--accent); }
.av-assets { margin-top: 13px; }
.av-asset-row { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
.av-asset-add { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; color: #8fa198; background: #0d1011; border: 1.5px dashed #33403a; border-radius: 10px; font-size: 10.5px; transition: border-color .18s ease, background .18s ease; }
.av-asset-add:hover { border-color: #7fae5c; background: #101513; }
.av-asset-add svg { width: 14px; height: 14px; color: var(--accent); }
.av-preview { margin-top: 14px; }
.av-preview-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d1011; border: 1px solid #23292a; border-radius: 12px; }
.av-preview-frame::after { position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(201, 242, 122, .05), transparent 65%), radial-gradient(500px 300px at 50% 110%, rgba(76, 148, 255, .05), transparent 65%); content: ""; }
.av-preview-empty { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 200px; color: #68766c; }
.av-preview-empty svg { width: 30px; height: 30px; color: #4a5a4e; }
.av-preview-empty strong { color: #8fa198; font-size: 12px; }
.av-preview-empty small { font-size: 9.5px; }
.av-frames { margin-top: 12px; }
.av-frames > span { display: block; margin-bottom: 8px; color: #68766c; font-size: 9px; letter-spacing: .08em; }
.av-frame-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.av-frame-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; color: #8fa198; background: #0d1011; border: 1px solid #23292a; border-radius: 9px; font-size: 10px; transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .2s ease; }
.av-frame-chip:hover { color: var(--text-soft); border-color: #3a4d3c; }
.av-frame-chip.active { color: var(--accent); border-color: rgba(201, 242, 122, .4); background: rgba(201, 242, 122, .06); box-shadow: 0 0 12px rgba(201, 242, 122, .12); }
.av-frame-chip svg { width: 12px; height: 12px; }
@media (max-width: 960px) { .av-workbench { grid-template-columns: 1fr; } }

/* ============ AI 生图质感升级 ============ */
.image-workbench { gap: 16px; align-items: start; }
.image-input-panel { background: var(--surface); border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.image-result-stage { position: relative; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.image-result-stage::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.image-task-panel { background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.product-source-card, .reference-image, .generated-image { border-radius: 10px; }
.image-style-summary, .image-task-note { border-radius: 8px; }
.image-input-panel { padding: 18px 20px; }
.image-result-stage { padding: 18px 20px; }
.image-task-panel { padding: 18px 16px; }

/* ============ 字幕配音工作台 ============ */
.au-workbench { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 22px; align-items: start; }
.au-controls, .au-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.au-stage { position: relative; }
.au-stage::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.au-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 150px; padding: 22px; color: var(--text-soft); background: #0d1011; border: 1.5px dashed #33403a; border-radius: 12px; transition: border-color .18s ease, background .18s ease, box-shadow .2s ease, transform .15s ease; }
.au-dropzone:hover { border-color: #7fae5c; background: #101513; box-shadow: 0 0 24px rgba(201, 242, 122, .08); transform: translateY(-1px); }
.au-dropzone svg { width: 24px; height: 24px; color: var(--accent); }
.au-dropzone strong { color: var(--text-soft); font-size: 12.5px; font-weight: 600; }
.au-dropzone small { color: #68766c; font-size: 10px; }
.au-wave { display: flex; align-items: center; gap: 10px; height: 58px; margin-top: 14px; padding: 8px 12px; background: #0d1011; border: 1px solid #23292a; border-radius: 10px; }
.au-wave-bars { display: flex; align-items: center; gap: 2px; height: 100%; min-width: 0; flex: 1; }
.au-wave-bars i { min-width: 2px; flex: 1; background: linear-gradient(180deg, #8bbd59, #c9f27a); border-radius: 2px; opacity: .88; }
.au-wave-time { flex: 0 0 auto; color: #68766c; font: 9px "DM Mono", monospace; }
.au-cues { margin-top: 6px; }
.au-cue { display: flex; gap: 12px; padding: 10px 2px; border-top: 1px solid #222a25; }
.au-cue:last-child { border-bottom: 1px solid #222a25; }
.au-cue-time { flex: 0 0 auto; padding-top: 1px; color: #5f6c64; font: 9px "DM Mono", monospace; }
.au-cue p { margin: 0; color: #aeb9b0; font-size: 10.5px; line-height: 1.6; }
.au-cue.is-active p { color: #e8efe5; }
.au-cue.is-active .au-cue-time { color: var(--accent); }
.au-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #222a25; }
.au-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; color: #a5c987; background: rgba(201, 242, 122, .06); border: 1px solid rgba(201, 242, 122, .16); border-radius: 999px; font-size: 10px; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.au-actions button:hover { color: #0f130d; background: #c9f27a; border-color: #c9f27a; }
.au-actions button svg { width: 13px; height: 13px; }
@media (max-width: 960px) { .au-workbench { grid-template-columns: 1fr; } }

/* ============ 数字人工作台 ============ */
.avd-workbench { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 22px; align-items: start; }
.avd-controls, .avd-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.avd-stage { position: relative; }
.avd-stage::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.avd-personas { display: grid; gap: 8px; margin: 6px 0 14px; }
.avd-persona { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; text-align: left; background: #0d1011; border: 1px solid #23292a; border-radius: 10px; transition: border-color .16s ease, background .16s ease, box-shadow .2s ease; }
.avd-persona:hover { border-color: #3a4d3c; background: #101513; }
.avd-persona.active { border-color: rgba(201, 242, 122, .4); background: rgba(201, 242, 122, .06); box-shadow: 0 0 14px rgba(201, 242, 122, .1); }
.avd-persona-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(201, 242, 122, .18); border-radius: 50%; }
.avd-persona-avatar svg { width: 15px; height: 15px; color: var(--accent); }
.avd-persona > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.avd-persona strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.avd-persona small { overflow: hidden; color: #68766c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.avd-stage-box { position: relative; display: flex; min-height: 268px; margin-top: 14px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; background: radial-gradient(420px 220px at 50% 30%, rgba(201, 242, 122, .05), transparent 70%), #0d1011; border: 1px solid #23292a; border-radius: 12px; }
.avd-stage-box::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(201, 242, 122, .02), transparent 40%); content: ""; pointer-events: none; }
.avd-stage-box .demo-avatar { width: 132px; height: 132px; }
.avd-stage-box .demo-wave { width: min(230px, 70%); }
.avd-stage-box .avatar-nameplate { position: relative; z-index: 1; }
.avd-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #222a25; }
.avd-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; color: #a5c987; background: rgba(201, 242, 122, .06); border: 1px solid rgba(201, 242, 122, .16); border-radius: 999px; font-size: 10px; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.avd-actions button:hover { color: #0f130d; background: #c9f27a; border-color: #c9f27a; }
.avd-actions button svg { width: 13px; height: 13px; }
@media (max-width: 960px) { .avd-workbench { grid-template-columns: 1fr; } }

/* ============ 发布管理工作台 ============ */
.pub-workbench { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 22px; align-items: start; }
.pub-controls, .pub-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.pub-stage { position: relative; }
.pub-stage::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.pub-content-card { position: relative; display: block; width: 100%; margin: 6px 0 14px; overflow: hidden; background: #0d1011; border: 1px solid #23292a; border-radius: 10px; text-align: left; transition: border-color .16s ease, box-shadow .2s ease; }
.pub-content-card:hover { border-color: #3a4d3c; box-shadow: 0 8px 22px rgba(0, 0, 0, .24); }
.pub-content-card img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; filter: brightness(.85) saturate(.9); transition: filter .25s ease, transform .3s ease; }
.pub-content-card:hover img { filter: brightness(.95) saturate(1); transform: scale(1.02); }
.pub-content-card > span { position: absolute; bottom: 7px; left: 9px; display: inline-flex; align-items: center; gap: 5px; color: #eaf2e6; font-size: 10px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.pub-content-card > span svg { width: 12px; height: 12px; color: var(--accent); }
.pub-content-card > em { position: absolute; top: 7px; right: 7px; padding: 3px 9px; color: #10200d; background: var(--accent); border-radius: 999px; font-size: 8.5px; font-style: normal; font-weight: 700; }
.pub-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 6px 0 14px; }
.pub-platform { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; color: #7d8a81; background: #0d1011; border: 1px solid #23292a; border-radius: 9px; font-size: 10px; transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .2s ease; }
.pub-platform:hover { color: var(--text-soft); border-color: #3a4d3c; }
.pub-platform.active { color: var(--accent); background: rgba(201, 242, 122, .06); border-color: rgba(201, 242, 122, .4); box-shadow: 0 0 12px rgba(201, 242, 122, .1); }
.pub-platform svg { width: 12px; height: 12px; }
.pub-queue { margin-top: 6px; }
.pub-item { display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 9px 0; border-top: 1px solid #222a25; }
.pub-item:last-child { border-bottom: 1px solid #222a25; }
.pub-item-thumb { width: 74px; aspect-ratio: 16 / 10; flex: 0 0 auto; overflow: hidden; background: #0d1011; border: 1px solid #23292a; border-radius: 8px; }
.pub-item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.pub-item-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.pub-item-main strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pub-item-main small { display: inline-flex; align-items: center; gap: 4px; color: #68766c; font-size: 9px; }
.pub-item-main small svg { width: 11px; height: 11px; }
.pub-item-tags { display: flex; gap: 4px; flex: 0 0 auto; }
.pub-item-tags em { padding: 2px 7px; color: #a5c987; background: rgba(201, 242, 122, .06); border: 1px solid rgba(201, 242, 122, .16); border-radius: 999px; font-size: 8.5px; font-style: normal; }
.pub-item-state { flex: 0 0 auto; padding: 4px 10px; color: #7d8a81; background: #161b18; border: 1px solid #273128; border-radius: 999px; font-size: 9px; white-space: nowrap; }
.pub-item-state.is-waiting { color: #ffd88a; background: rgba(255, 216, 138, .07); border-color: rgba(255, 216, 138, .22); }
.pub-item-state.is-done { color: var(--accent); background: rgba(201, 242, 122, .07); border-color: rgba(201, 242, 122, .22); }
.pub-actions { display: flex; justify-content: flex-end; margin-top: 13px; padding-top: 12px; border-top: 1px solid #222a25; }
.pub-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; color: #a5c987; background: rgba(201, 242, 122, .06); border: 1px solid rgba(201, 242, 122, .16); border-radius: 999px; font-size: 10px; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.pub-actions button:hover { color: #0f130d; background: #c9f27a; border-color: #c9f27a; }
.pub-actions button svg { width: 13px; height: 13px; }
@media (max-width: 960px) { .pub-workbench { grid-template-columns: 1fr; } }

/* ============ 星澜主播 · 我的形象 + 换装 ============ */
.avd-upload { display: flex; align-items: center; gap: 12px; width: 100%; margin: 6px 0 14px; padding: 12px; text-align: left; background: #0d1011; border: 1.5px dashed #33403a; border-radius: 12px; transition: border-color .18s ease, background .18s ease, box-shadow .2s ease; }
.avd-upload:hover { border-color: #7fae5c; background: #101513; box-shadow: 0 0 20px rgba(201, 242, 122, .08); }
.avd-upload-ico { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--accent); background: rgba(201, 242, 122, .08); border: 1px solid rgba(201, 242, 122, .22); border-radius: 12px; }
.avd-upload-ico svg { width: 19px; height: 19px; }
.avd-upload > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.avd-upload strong { color: var(--text-soft); font-size: 11.5px; }
.avd-upload small { color: #68766c; font-size: 9px; }
.avd-upload > em { padding: 5px 12px; color: #10140e; background: #b5ee63; border-radius: 7px; font-size: 10px; font-style: normal; font-weight: 600; transition: background .16s ease, box-shadow .2s ease; }
.avd-upload:hover > em { background: #c6f57d; box-shadow: 0 4px 14px rgba(181, 238, 99, .3); }
.avd-photo { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 9px 11px; background: rgba(201, 242, 122, .05); border: 1px solid rgba(201, 242, 122, .24); border-radius: 10px; }
.avd-photo img { width: 46px; height: 46px; flex: 0 0 auto; object-fit: cover; border: 1px solid rgba(201, 242, 122, .3); border-radius: 10px; }
.avd-photo > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 1; color: #cfe6a8; font-size: 10.5px; font-weight: 600; }
.avd-photo > span svg { width: 13px; height: 13px; color: var(--accent); }
.avd-photo > button { padding: 4px 10px; color: #8fa198; background: #161b18; border: 1px solid #2a342e; border-radius: 7px; font-size: 9px; transition: color .16s ease, border-color .16s ease; }
.avd-photo > button:hover { color: var(--accent); border-color: #4a5d4c; }
.avd-outfit { margin: 13px 0 0; }
.avd-outfit-row { display: flex; gap: 8px; margin-top: 6px; }
.avd-outfit-row input { min-width: 0; flex: 1; }
.avd-outfit-row button { display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; color: #10140e; background: #b5ee63; border-radius: 9px; font-size: 10.5px; font-weight: 600; transition: background .16s ease, box-shadow .2s ease; }
.avd-outfit-row button:hover { background: #c6f57d; box-shadow: 0 6px 18px rgba(181, 238, 99, .28); }
.avd-outfit-row button svg { width: 13px; height: 13px; }
.avd-outfit-tip { display: flex; align-items: center; gap: 5px; margin: 7px 0 0; color: #68766c; font-size: 9px; }
.avd-outfit-tip svg { width: 11px; height: 11px; color: #a5c987; }
.avd-live { position: relative; z-index: 1; width: 150px; height: 150px; object-fit: cover; border: 1px solid rgba(201, 242, 122, .3); border-radius: 50%; box-shadow: 0 0 30px rgba(201, 242, 122, .16); }
.avd-swap { animation: avd-swap-anim .8s ease; }
@keyframes avd-swap-anim { 0% { transform: scale(.96); filter: brightness(1.6) saturate(.4); } 55% { transform: scale(1.03); filter: brightness(1.1) saturate(1.2); } 100% { transform: scale(1); filter: none; } }
.avd-stage-box .avd-placeholder { width: 132px; height: 132px; }

/* ============ 收款项目工作台 ============ */
.pm-workbench { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 22px; align-items: start; }
.pm-controls, .pm-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .02); }
.pm-stage { position: relative; }
.pm-stage::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.pm-flow { margin-top: 6px; }
.pm-item { display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 9px 0; border-top: 1px solid #222a25; }
.pm-item:last-child { border-bottom: 1px solid #222a25; }
.pm-item-ico { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.pm-item-ico.is-in { color: var(--accent); background: rgba(201, 242, 122, .08); border: 1px solid rgba(201, 242, 122, .2); }
.pm-item-ico.is-wait { color: #ffd88a; background: rgba(255, 216, 138, .07); border: 1px solid rgba(255, 216, 138, .2); }
.pm-item-ico svg { width: 15px; height: 15px; }
.pm-item-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.pm-item-main strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pm-item-main small { color: #68766c; font-size: 9px; }
.pm-item-state { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 9px; white-space: nowrap; }
.pm-item-state.is-done { color: var(--accent); background: rgba(201, 242, 122, .07); border: 1px solid rgba(201, 242, 122, .22); }
.pm-item-state.is-waiting { color: #ffd88a; background: rgba(255, 216, 138, .07); border: 1px solid rgba(255, 216, 138, .22); }
.pm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #222a25; }
.pm-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; color: #a5c987; background: rgba(201, 242, 122, .06); border: 1px solid rgba(201, 242, 122, .16); border-radius: 999px; font-size: 10px; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.pm-actions button:hover { color: #0f130d; background: #c9f27a; border-color: #c9f27a; }
.pm-actions button svg { width: 13px; height: 13px; }
@media (max-width: 960px) { .pm-workbench { grid-template-columns: 1fr; } }

/* ============ 模型路由 ============ */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.route-card { padding: 14px; border: 1px solid #222a25; border-radius: 10px; background: rgba(255, 255, 255, .015); }
.route-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.route-model { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.route-model strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.route-model small { color: #68766c; font-size: 9px; }
.route-role { margin-top: 8px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.route-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.route-skills span { padding: 2px 8px; border-radius: 999px; color: #a9b8ad; background: rgba(255, 255, 255, .04); border: 1px solid #262e29; font-size: 8px; }
.route-card p { margin-top: 8px; color: #68766c; font-size: 9px; line-height: 1.5; }

/* ============ 模型接入页 ============ */
.prio-strip { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.prio-step { display: flex; min-width: 96px; flex: 1 1 0; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid #222a25; border-radius: 10px; background: rgba(255, 255, 255, .02); }
.prio-step.is-now { border-color: rgba(201, 242, 122, .35); background: rgba(201, 242, 122, .06); }
.prio-step em { font-size: 10px; font-style: normal; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.prio-step.is-now em { color: var(--accent); }
.prio-step b { font-size: 12px; color: var(--text-soft); }
.prio-step small { font-size: 9px; color: #68766c; }
.prio-arrow { display: flex; align-items: center; color: #3a443e; font-size: 14px; flex: 0 0 auto; }
.route-prio { color: #ffd88a; }
.noai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.noai-tags span { padding: 6px 12px; border: 1px dashed #2a332c; border-radius: 999px; color: #68766c; font-size: 11px; }

/* ============ 我的收款码 ============ */
.pm-qr-tabs { display: flex; gap: 6px; margin: 2px 0 10px; }
.pm-qr-tabs button { flex: 1; padding: 7px 0; color: #68766c; background: rgba(255, 255, 255, .03); border: 1px solid #222a25; border-radius: 8px; font-size: 11px; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.pm-qr-tabs button.on { color: #0f130d; background: #c9f27a; border-color: #c9f27a; font-weight: 600; }
.pm-qr-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px 16px; background: #f5f7f2; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.pm-qr-brand { color: #1a1f1b; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.pm-qr-code { display: flex; flex-direction: column; gap: 3px; padding: 10px; background: #ffffff; border-radius: 8px; }
.pm-qr-row { display: flex; gap: 3px; }
.pm-qr-row i { width: 13px; height: 13px; background: #10130f; border-radius: 1px; }
.pm-qr-row b { width: 13px; height: 13px; background: #ffffff; border-radius: 1px; }
.pm-qr-note { color: #1a1f1b; font-size: 11px; font-weight: 600; }
.workbench-link { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 9px 0; color: #a9b8ad; background: rgba(255, 255, 255, .03); border: 1px solid #262e29; border-radius: 9px; font-size: 11px; cursor: pointer; transition: color .16s ease, border-color .16s ease; }
.workbench-link:hover { color: #e8efe9; border-color: #3a443e; }
.workbench-link svg { width: 13px; height: 13px; }

/* ============ 充值中心 ============ */
.pm-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 10px; }
.pm-amounts button { padding: 8px 0; color: #a9b8ad; background: rgba(255, 255, 255, .03); border: 1px solid #222a25; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.pm-amounts button.on { color: #0f130d; background: #c9f27a; border-color: #c9f27a; }



/* ============ 创作档案页面精修 ============ */

/* 区块间距 */
.stage4-section { margin-bottom: 56px; }
.stage4-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.stage4-section-title { font-size: 20px; font-weight: 700; color: #e8efe9; margin: 0; letter-spacing: -0.01em; }
.stage4-section-desc { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* 项目网格 - 最大3列 */
.stage4-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; max-width: 1200px; }
@media (min-width: 1400px) {
  .stage4-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 项目卡片 */
.stage4-project-card {
  display: flex; flex-direction: column;
  padding: 22px 24px;
  background: linear-gradient(145deg, #161616, #131313);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
}
.stage4-project-card:hover {
  border-color: rgba(163, 230, 53, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.stage4-project-card.active {
  border-color: rgba(163, 230, 53, 0.35);
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.1);
}

/* 卡片头部 */
.stage4-project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.stage4-project-card-header .stage4-card-title {
  font-size: 17px; font-weight: 700; color: #f0f4f0;
  margin: 0; flex: 1; line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ··· 按钮 */
.stage4-kebab-btn {
  background: transparent; border: none; color: #555;
  font-size: 18px; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; line-height: 1; transition: all 0.15s;
}
.stage4-kebab-btn:hover { color: #aaa; background: rgba(255,255,255,0.05); }

/* 标签 */
.stage4-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.stage4-card-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 5px;
  background: rgba(255,255,255,0.04); color: #888;
  font-weight: 500;
}
.stage4-card-badge:first-child {
  background: rgba(163, 230, 53, 0.1); color: #a3e635;
}
.stage4-card-badge.status {
  background: rgba(255,255,255,0.03); color: #666;
}

/* 创作进度 - 流程线 */
.stage4-progress {
  display: flex; align-items: center;
  margin: 4px 0 20px 0;
  gap: 0;
  flex-wrap: nowrap;
}
.stage4-progress-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #555;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.stage4-progress-item::after {
  content: ''; display: inline-block;
  width: 14px; height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 6px;
  flex-shrink: 0;
}
.stage4-progress-item:last-child::after { display: none; }
.stage4-progress-item::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #3a3a3a; flex-shrink: 0;
}
.stage4-progress-item.done { color: #a3e635; }
.stage4-progress-item.done::before {
  background: #a3e635;
  box-shadow: 0 0 6px rgba(163, 230, 53, 0.4);
}
.stage4-progress-item.done::after {
  background: rgba(163, 230, 53, 0.3);
}
.stage4-progress-item.current { color: #c9f27a; font-weight: 600; }
.stage4-progress-item.current::before {
  background: #c9f27a;
  box-shadow: 0 0 8px rgba(201, 242, 122, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(201, 242, 122, 0.4); }
  50% { box-shadow: 0 0 12px rgba(201, 242, 122, 0.8); }
}

/* 更新时间 */
.stage4-card-time {
  font-size: 11px; color: #555;
  margin-top: auto; margin-bottom: 14px;
}

/* 继续创作按钮 - 轻量样式 */
.stage4-card-actions { margin-top: 0; }
.stage4-btn-primary {
  background: rgba(163, 230, 53, 0.06) !important;
  color: #a3e635 !important;
  border: 1px solid rgba(163, 230, 53, 0.2) !important;
  font-weight: 600;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  transition: all 0.2s !important;
}
.stage4-btn-primary:hover {
  background: #a3e635 !important;
  color: #0f130d !important;
  border-color: #a3e635 !important;
}

/* AI创作记录网格 */
.stage4-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* AI创作记录卡片 */
.stage4-archive-card {
  display: flex; flex-direction: column;
  padding: 20px;
  background: #151515;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stage4-archive-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px; background: rgba(163, 230, 53, 0.4);
}
.stage4-archive-card.tag-topic-research::before { background: rgba(96, 165, 250, 0.4); }
.stage4-archive-card.tag-copy::before { background: rgba(251, 191, 36, 0.4); }
.stage4-archive-card.tag-script-storyboard::before { background: rgba(148, 163, 184, 0.4); }
.stage4-archive-card:hover {
  border-color: rgba(163, 230, 53, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* 记录卡片头部 */
.stage4-archive-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.stage4-archive-card-actions { display: flex; align-items: center; gap: 10px; }
.stage4-archive-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 5px;
  font-weight: 600;
  background: rgba(163, 230, 53, 0.1); color: #a3e635;
}
.stage4-archive-tag.tag-topic-research { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }
.stage4-archive-tag.tag-copy { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.stage4-archive-tag.tag-script-storyboard { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }
.stage4-archive-extra { font-size: 11px; color: #666; }

/* 记录标题和预览 */
.stage4-archive-title {
  font-size: 14px; font-weight: 600; color: #e8efe9;
  margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stage4-archive-preview {
  font-size: 12px; color: #777; line-height: 1.6;
  margin-bottom: 14px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: 38px;
}

/* 记录元信息 */
.stage4-archive-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.stage4-archive-project { font-size: 11px; color: #666; }
.stage4-archive-time { font-size: 11px; color: #555; }

/* 继续操作 - 轻量文本 */
.stage4-archive-continue {
  width: auto; align-self: flex-start;
  padding: 0; background: transparent;
  border: none; color: #888;
  font-size: 12px; cursor: pointer;
  transition: all 0.15s;
  text-align: left; font-weight: 500;
}
.stage4-archive-continue:hover {
  color: #a3e635;
  background: transparent;
}

/* 筛选条 - segmented */
.stage4-filter-bar {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: rgba(255,255,255,0.02);
  padding: 4px; border-radius: 10px;
  width: fit-content;
}
.stage4-filter-btn {
  padding: 7px 16px; border: 1px solid transparent;
  background: transparent; color: #777;
  border-radius: 7px; cursor: pointer;
  font-size: 12px; font-weight: 500;
  transition: all 0.15s;
}
.stage4-filter-btn:hover { color: #aaa; }
.stage4-filter-btn.active {
  background: rgba(163, 230, 53, 0.1);
  color: #a3e635;
  border-color: rgba(163, 230, 53, 0.2);
  font-weight: 600;
}

/* 历史数据 - 降低权重 */
.stage4-history-section { opacity: 0.5; margin-bottom: 0; }
.stage4-history-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.stage4-history-toggle-text { font-size: 12px; color: #666; }
.stage4-history-desc { font-size: 12px; color: #555; margin-bottom: 12px; }


/* ============================================================
   账号定位页面 - 结构优化
   ============================================================ */

/* 信息栏：当前项目 + 定位进度 + 已了解信息 */
.ap-info-bar {
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.ap-current-project {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.ap-project-label {
  font-size: 12px;
  color: #888;
}
.ap-project-name {
  font-size: 13px;
  color: #ddd;
  font-weight: 600;
}

/* 已了解信息 */
.ap-known-info {
  border-top: 1px solid #222;
  padding-top: 10px;
}
.ap-known-title {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}
.ap-known-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ap-known-item {
  font-size: 12px;
  color: #aaa;
}
.ap-known-label {
  color: #666;
}

/* 定位完成提示 */
.ap-save-tip {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(163, 230, 53, 0.06);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ap-save-status {
  font-size: 13px;
  color: #a3e635;
  font-weight: 500;
}
.ap-go-topic-btn {
  padding: 8px 18px;
  background: #a3e635;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ap-go-topic-btn:hover {
  background: #b8f04a;
}

/* 结构化定位结果 */
.ap-result-header {
  margin-bottom: 12px;
}
.ap-result-header h3 {
  font-size: 15px;
  color: #ddd;
  font-weight: 600;
  margin: 0;
}

/* 账号定位结果区域标题 */
.ap-section-title {
  margin: 16px 0 8px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ap-section-title:first-of-type {
  margin-top: 12px;
}

/* ============================================================
   写文案（#copy · .ce-*）深色创作工具样式
   ============================================================ */

/* ---------- 布局骨架 ---------- */
.ce-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 32px 60px;
}
.ce-body { width: 100%; }
/* 确保 hidden 属性在 .ce-* 显式 display 规则下仍能真正隐藏 */
.ce-wrap [hidden] { display: none !important; }

/* ---------- 卡片容器 ---------- */
.ce-composer-card,
.ce-editor {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 18px 50px rgba(0, 0, 0, .22);
}
.ce-composer-card { padding: 24px 26px; }
/* 链接提取模式无内层卡片，用模式容器本身做卡片 */
#ceLinkMode {
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 18px 50px rgba(0, 0, 0, .22);
}

/* ---------- 模式 segmented tabs ---------- */
.ce-mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ce-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: background .16s ease, color .16s ease;
}
.ce-mode-tab svg { width: 15px; height: 15px; }
.ce-mode-tab:hover { color: var(--text-soft); }
.ce-mode-tab.active { color: var(--accent); background: rgba(201, 242, 122, .10); }

/* ---------- 当前选题 contextual bar ---------- */
.ce-current-topic {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  margin-bottom: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ce-current-topic svg { width: 14px; height: 14px; color: var(--accent-dim); flex: 0 0 auto; }
.ce-current-topic-label { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
#ceCurrentTopicText { color: var(--text); font-size: 13px; line-height: 1.5; }

/* ---------- 标题 ---------- */
.ce-composer-title { margin-bottom: 16px; }
.ce-composer-title h2 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.ce-composer-title p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---------- 主输入 ---------- */
.ce-main-input {
  width: 100%;
  min-height: 96px;
  padding: 13px 14px;
  margin-bottom: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color .16s ease;
}
.ce-main-input::placeholder { color: var(--muted); }
.ce-main-input:focus { outline: none; border-color: var(--accent-dim); }

/* ---------- 文案类型 chips ---------- */
.ce-type-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.ce-type-chip {
  padding: 7px 15px;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12.5px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ce-type-chip:hover { border-color: var(--line-strong); color: var(--text); }
.ce-type-chip.active {
  color: var(--accent);
  background: rgba(201, 242, 122, .10);
  border-color: rgba(201, 242, 122, .35);
}
.ce-type-more { position: relative; display: inline-flex; }
.ce-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12.5px;
}
.ce-more-btn svg { width: 14px; height: 14px; }
.ce-more-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 156px;
  padding: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.ce-more-dropdown .ce-type-chip { text-align: left; border-radius: 8px; }

/* ---------- 参数行（深色 select） ---------- */
.ce-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 20px;
}
.ce-quick-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 150px;
  min-width: 140px;
}
.ce-quick-item > span { color: var(--muted); font-size: 12px; }
.ce-quick-item select {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237f8986' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease;
}
.ce-quick-item select:hover { border-color: var(--line-strong); }
.ce-quick-item select:focus { outline: none; border-color: var(--accent-dim); }
.ce-quick-item select option { background: var(--surface-raised); color: var(--text); }

/* 高级设置入口 */
.ce-advanced-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  color: var(--muted-strong);
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  font-size: 12.5px;
  white-space: nowrap;
}
.ce-advanced-btn svg { width: 14px; height: 14px; }
.ce-advanced-btn:hover { color: var(--text-soft); border-color: var(--muted); }

/* ---------- 生成行 ---------- */
.ce-generate-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ce-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 26px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  transition: background .16s ease, transform .12s ease;
}
.ce-generate-btn svg { width: 16px; height: 16px; }
.ce-generate-btn:hover { background: #d8fb8c; }
.ce-generate-btn:active { transform: translateY(1px); }
.ce-allowance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.ce-allowance svg { width: 14px; height: 14px; color: var(--accent-dim); }

/* ---------- 链接提取模式 ---------- */
.ce-link-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-bottom: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
}
.ce-link-input:focus { outline: none; border-color: var(--accent-dim); }
.ce-link-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  margin-bottom: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.ce-link-platform svg { width: 15px; height: 15px; color: var(--accent-dim); }
.ce-link-fail {
  text-align: center;
  padding: 26px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ce-fail-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  color: var(--amber);
  background: var(--amber-bg);
  border-radius: 50%;
}
.ce-fail-icon svg { width: 20px; height: 20px; }
.ce-link-fail p { margin: 0 0 16px; color: var(--text-soft); font-size: 13px; }
.ce-fail-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ce-fail-btn {
  padding: 9px 18px;
  color: var(--text-soft);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 13px;
}
.ce-fail-btn svg { width: 14px; height: 14px; }
.ce-fail-btn:hover { color: var(--text); border-color: var(--muted); }

/* ---------- 结果编辑器 ---------- */
.ce-editor { padding: 0; overflow: hidden; }
.ce-editor-main { display: flex; flex-direction: column; }
.ce-editor-head { padding: 22px 26px 0; }
.ce-editor-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ce-editor-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.ce-editor-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.ce-meta-dot { color: var(--line-strong); }
.ce-link-source { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12px; }
.ce-link-source svg { width: 13px; height: 13px; }
.ce-save-status {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
}
.ce-save-status.saved { color: var(--accent); background: rgba(201, 242, 122, .10); }
.ce-save-status.unsaved { color: var(--muted); background: var(--surface-soft); }

/* view tabs */
.ce-view-tabs {
  display: flex;
  gap: 4px;
  padding: 0 26px;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
}
.ce-view-tab {
  position: relative;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.ce-view-tab:hover { color: var(--text-soft); }
.ce-view-tab.active { color: var(--accent); }
.ce-view-tab.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.ce-editor-content { padding: 20px 26px 26px; }

/* 结构字段：小标题 + 可编辑正文，统一深色内容区 + 轻分隔 */
.ce-field-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ce-field-block:first-child { padding-top: 4px; }
.ce-field-block:last-child { border-bottom: none; padding-bottom: 4px; }
.ce-field-block > label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.ce-editable {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  transition: border-color .15s ease;
}
.ce-editable:focus { border-color: var(--accent-dim); }

/* 完整口播（只读）：宽行距、宽度充分 */
.ce-full-text {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
}
.ce-full-text.ce-editable {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.ce-full-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.ce-copy-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  color: var(--accent);
  background: rgba(201, 242, 122, .08);
  border: 1px solid rgba(201, 242, 122, .25);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.ce-copy-full-btn svg { width: 14px; height: 14px; }
.ce-copy-full-btn:hover { background: rgba(201, 242, 122, .14); }

/* 链接原文 meta */
.ce-link-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.ce-link-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
}
.ce-link-meta-item svg { width: 14px; height: 14px; color: var(--accent-dim); }
.ce-link-meta-item strong { color: var(--muted-strong); font-weight: 600; }
.ce-link-meta-item span { color: var(--text); }
.ce-link-meta-item a { color: var(--blue); text-decoration: none; }
.ce-link-meta-item a:hover { text-decoration: underline; }

/* ---------- 底部操作区 ---------- */
.ce-bottom-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ce-bottom-save {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  color: var(--accent);
  background: rgba(201, 242, 122, .08);
  border: 1px solid rgba(201, 242, 122, .25);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.ce-bottom-save svg { width: 15px; height: 15px; }
.ce-bottom-save:hover { background: rgba(201, 242, 122, .14); }
.ce-bottom-continue { position: relative; margin-left: auto; }
.ce-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
}
.ce-continue-btn:hover { background: #d8fb8c; }
.ce-continue-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  padding: 7px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.ce-continue-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--text-soft);
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}
.ce-continue-menu button svg { width: 14px; height: 14px; color: var(--muted); }
.ce-continue-menu button:hover { background: var(--surface-soft); color: var(--text); }
.ce-bottom-next {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
}
.ce-bottom-next svg { width: 15px; height: 15px; }
.ce-bottom-next:hover { color: var(--text); border-color: var(--muted); }

/* ---------- 高级设置 drawer ---------- */
.ce-advanced-drawer { position: fixed; inset: 0; z-index: 1000; }
.ce-drawer-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.ce-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 92vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  animation: ceDrawerIn .25s ease both;
}
@keyframes ceDrawerIn {
  from { transform: translateX(40px); opacity: .4; }
  to { transform: none; opacity: 1; }
}
.ce-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.ce-drawer-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.ce-drawer-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border-radius: 8px;
}
.ce-drawer-close svg { width: 17px; height: 17px; }
.ce-drawer-close:hover { color: var(--text); background: var(--surface-soft); }
.ce-drawer-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ce-drawer-field { display: flex; flex-direction: column; gap: 7px; }
.ce-drawer-field > span { color: var(--muted); font-size: 12px; }
.ce-drawer-field input,
.ce-drawer-field textarea,
.ce-drawer-field select {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
}
.ce-drawer-field textarea { min-height: 72px; resize: vertical; line-height: 1.6; }
.ce-drawer-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237f8986' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.ce-drawer-field input:focus,
.ce-drawer-field textarea:focus,
.ce-drawer-field select:focus { outline: none; border-color: var(--accent-dim); }
.ce-drawer-foot { margin-top: auto; padding: 18px 22px; border-top: 1px solid var(--line); }
.ce-drawer-apply {
  width: 100%;
  height: 44px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.ce-drawer-apply:hover { background: #d8fb8c; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .ce-wrap { padding: 22px 18px 48px; }
  .ce-composer-card,
  #ceLinkMode { padding: 20px 18px; }
  .ce-editor-head { padding: 20px 18px 0; }
  .ce-view-tabs { padding: 0 18px; }
  .ce-editor-content { padding: 18px; }
  .ce-quick-item { flex: 1 1 100%; }
  .ce-generate-btn { width: 100%; justify-content: center; }
  .ce-bottom-continue { margin-left: 0; width: 100%; }
  .ce-continue-btn { width: 100%; justify-content: center; }
}

/* ===== 脚本与分镜结果页 ssv3ui ===== */
.ss-input-summary{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 18px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.ss-input-summary .ss-summary-label{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  flex-shrink:0;
}
.ss-input-summary .ss-summary-items{
  color:var(--text-soft);
  font-size:13px;
  flex:1;
  min-width:200px;
}
.ss-input-summary .ss-expand-link{
  color:var(--accent);
  font-size:13px;
  cursor:pointer;
  flex-shrink:0;
}
.ss-input-summary .ss-expand-link:hover{ text-decoration:underline; }
.ss-has-result > *{ display:none !important; }
.ss-has-result{ padding:0 !important; border:none !important; background:transparent !important; margin:0 !important; box-shadow:none !important; }

.ss-result-area{ margin-top:24px; }
.ss-summary{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 26px;
  margin-bottom:28px;
}
.ss-summary-title{
  font-size:19px;
  font-weight:600;
  color:var(--text);
  margin-bottom:10px;
  line-height:1.4;
}
.ss-summary-meta{
  color:var(--muted);
  font-size:13px;
  margin-bottom:16px;
}
.ss-summary-meta span{ margin-right:18px; }
.ss-summary-hook{
  border-top:1px solid var(--line);
  padding-top:14px;
}
.ss-hook-label{
  color:var(--accent);
  font-size:12px;
  font-weight:600;
  margin-bottom:6px;
  letter-spacing:0.3px;
}
.ss-hook-text{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.7;
}

.ss-section{ margin-bottom:28px; }
.ss-section-title{
  font-size:15px;
  font-weight:600;
  color:var(--text);
  margin-bottom:14px;
}
.ss-fullscript{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px 24px;
}
.ss-script-body{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.85;
}
.ss-time-tag{
  color:var(--accent);
  font-weight:600;
  font-size:12.5px;
  margin-right:4px;
}

.ss-shot-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px 22px;
  margin-bottom:14px;
}
.ss-shot-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}
.ss-shot-num{
  font-size:15px;
  font-weight:700;
  color:var(--accent);
}
.ss-shot-dur{
  font-size:12.5px;
  color:var(--text-soft);
  background:var(--surface-soft);
  padding:3px 10px;
  border-radius:6px;
}
.ss-shot-size{
  font-size:12.5px;
  color:var(--muted);
}
.ss-shot-body{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ss-shot-field{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.ss-shot-label{
  width:72px;
  flex-shrink:0;
  color:var(--muted);
  font-size:12px;
  padding-top:2px;
}
.ss-shot-value{
  flex:1;
  color:var(--text-soft);
  font-size:13.5px;
  line-height:1.65;
  min-width:0;
}
.ss-shot-field.ss-dialogue .ss-shot-value{
  color:var(--text);
  font-weight:500;
}
.ss-shot-field.ss-tip .ss-shot-value{
  color:var(--muted);
  font-size:12.5px;
}

.ss-shotlist, .ss-risks{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px 24px;
}
.ss-risks{ border-color:rgba(211,169,106,0.35); }
.ss-risks .ss-section-title{ color:var(--amber); }
.ss-shotlist ul, .ss-risks ul{
  margin:0;
  padding-left:20px;
}
.ss-shotlist li, .ss-risks li{
  color:var(--text-soft);
  font-size:13.5px;
  line-height:1.75;
  margin-bottom:4px;
}

.ss-result-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:28px 0 8px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.ss-result-btn{
  background:transparent;
  border:1px solid var(--line-strong);
  color:var(--text-soft);
  padding:10px 20px;
  border-radius:12px;
  font-size:13.5px;
  cursor:pointer;
  transition:border-color .18s ease,color .18s ease,background .18s ease;
}
.ss-result-btn:hover{
  border-color:var(--accent);
  color:var(--accent);
}
.ss-result-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--accent-ink,#10140e);
  font-weight:600;
}
.ss-result-primary:hover{
  background:var(--accent);
  filter:brightness(1.06);
  color:var(--accent-ink,#10140e);
}

/* ===== 创作引擎场景总览区 poui ===== */
.platform-overview{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
}
.po-header{ margin-bottom:22px; }
.po-eyebrow{
  color:var(--accent);
  font-size:12px;
  font-weight:600;
  letter-spacing:1.2px;
  text-transform:uppercase;
  margin-bottom:8px;
}
.po-title{
  font-size:23px;
  font-weight:600;
  color:var(--text);
  margin:0 0 6px;
  line-height:1.35;
}
.po-desc{
  color:var(--muted);
  font-size:13.5px;
  margin:0;
  line-height:1.6;
}

/* 流程大面板 */
.po-flow{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:26px 28px;
  margin-bottom:20px;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
}
.po-flow-step{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-width:0;
}
.po-step-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  background:var(--surface-soft);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
  color:var(--accent);
  flex-shrink:0;
}
.po-step-icon svg{ width:19px; height:19px; }
.po-step-title{
  font-size:13.5px;
  font-weight:600;
  color:var(--text);
  margin-bottom:4px;
}
.po-step-desc{
  font-size:11.5px;
  color:var(--muted);
  line-height:1.5;
}
.po-flow-line{
  flex:0 0 20px;
  align-self:center;
  height:1px;
  background:var(--line-strong);
  position:relative;
}
.po-flow-line::after{
  content:'';
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:5px; height:5px;
  border-radius:50%;
  background:var(--line-strong);
}

/* 三张能力卡片 */
.po-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:48px;
}
.po-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, border-color .15s ease;
}
.po-card:hover{
  transform:translateY(-2px);
  border-color:var(--accent-dim);
}
.po-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.po-card-num{
  font-size:13px;
  font-weight:700;
  color:var(--accent);
  font-family:ui-monospace,Menlo,Consolas,monospace;
  letter-spacing:0.5px;
}
.po-card-enter{
  background:none;
  border:none;
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:4px;
  padding:4px 8px;
  border-radius:6px;
  transition:color .15s, background .15s;
}
.po-card-enter:hover{ color:var(--accent); background:var(--surface-soft); }
.po-card-enter svg{ width:14px; height:14px; }
.po-card-title{
  font-size:16px;
  font-weight:600;
  color:var(--text);
  margin:0 0 6px;
}
.po-card-desc{
  font-size:13px;
  color:var(--muted);
  margin:0 0 16px;
  line-height:1.55;
}
.po-card-tags{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:auto;
}
.po-tag{
  background:var(--surface-soft);
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 12px;
  color:var(--text-soft);
  font-size:13px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  width:100%;
  transition:border-color .15s, color .15s, background .15s;
}
.po-tag:hover{
  border-color:var(--accent-dim);
  color:var(--text);
  background:var(--surface-raised);
}
.po-tag svg{ width:15px; height:15px; color:var(--accent); flex-shrink:0; }

/* 下方 AI 创作助手同宽 */
.overview-center{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
}

/* 响应式 */
@media (max-width:960px){
  .po-flow{
    flex-wrap:wrap;
    gap:14px;
    padding:20px;
  }
  .po-flow-step{ flex:1 1 42%; }
  .po-flow-line{ display:none; }
  .po-cards{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .po-flow-step{ flex:1 1 100%; }
  .platform-overview, .overview-center{ padding:0 16px; }
}

/* ===== 左下角账号菜单 ===== */
.profile-wrap{ position:relative; }
.profile-menu{
  position:absolute;
  bottom:calc(100% + 8px);
  left:0;
  right:0;
  background:var(--surface-raised);
  border:1px solid var(--line-strong);
  border-radius:12px;
  padding:6px;
  box-shadow:0 10px 28px rgba(0,0,0,.45);
  z-index:60;
}
.profile-menu[hidden]{ display:none; }
.profile-menu-item{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  background:none;
  border:none;
  color:var(--text-soft);
  font-size:13px;
  padding:9px 10px;
  border-radius:8px;
  cursor:pointer;
  text-align:left;
}
.profile-menu-item:hover{ background:var(--surface-soft); color:var(--text); }
.profile-menu-item svg{ width:15px; height:15px; flex-shrink:0; }
.profile-menu-item.danger{ color:var(--danger); }
.profile-menu-item.danger:hover{ background:rgba(232,137,121,.12); color:var(--danger); }
.profile-menu-divider{ height:1px; background:var(--line); margin:4px 6px; }
