:root {
  --bg: #0b0c10;
  --bg-soft: #11131a;
  --surface: #161923;
  --surface-2: #1c2030;
  --surface-3: #232838;
  --border: #262b3a;
  --border-strong: #343b4f;
  --text: #f2f3f7;
  --text-2: #a8aebe;
  --text-3: #6f7688;
  --brand: #5b8cff;
  --brand-2: #7aa2ff;
  --brand-soft: rgba(91, 140, 255, 0.14);
  --brand-line: rgba(91, 140, 255, 0.34);
  --success: #2dd4a7;
  --success-soft: rgba(45, 212, 167, 0.14);
  --warn: #f5a623;
  --warn-soft: rgba(245, 166, 35, 0.14);
  --danger: #ff5d6c;
  --danger-soft: rgba(255, 93, 108, 0.14);
  --violet: #a78bfa;
  --violet-2: #c4b5fd;
  --violet-soft: rgba(167, 139, 250, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-soft); color: var(--text); }
.screen { display: none; width: 1440px; min-height: 1000px; position: relative; overflow: hidden; background: var(--bg); margin-left: calc((100vw - 1440px) / 2); }
.screen.active { display: block; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 28px;
  background: rgba(11, 12, 16, 0.92); border-bottom: 1px solid var(--border); position: relative; z-index: 30;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), #9d6bff);
  display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px -2px rgba(91, 140, 255, 0.55);
}
.logo-mark svg { width: 15px; height: 15px; }
.logo .tag { font-size: 11px; color: var(--text-3); font-weight: 500; margin-left: 2px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--text-2); font-size: 13px; font-weight: 500; padding: 6px 4px; }
.nav-link.on { color: var(--text); }
.credits-pill {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600;
}
.credits-pill .c-num { color: var(--warn); }
.credits-pill svg { width: 14px; height: 14px; color: var(--warn); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #3b4a6b, #5b8cff);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  border: 1px solid var(--border-strong);
}

/* ---------- 通用 ---------- */
.page { max-width: 1384px; margin: 0 auto; padding: 0 28px 40px; }

/* 宽屏：1440 固定画布改为流式铺满，内容不再只占半屏。
   高度由 mockups.js 按当前屏内容等比缩放到视口内，避免「有空间还滚动」。 */
@media (min-width: 1440px) {
  .screen { width: 100%; margin-left: 0; min-height: 0 !important; }
  .page { max-width: 1900px; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(91,140,255,.8); }
.btn-violet { background: var(--violet); color: #191127; box-shadow: 0 6px 18px -8px rgba(167,139,250,.8); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-quiet { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-danger { background: var(--danger-soft); border-color: rgba(255,93,108,.3); color: var(--danger); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 7px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { padding: 12px 20px; font-size: 14px; border-radius: 11px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head .t { font-size: 14px; font-weight: 650; }
.card-head .sub { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.card-body { padding: 16px; }
.spacer { flex: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px; letter-spacing: .2px; white-space: nowrap;
}
.badge.req { background: var(--danger-soft); color: var(--danger); }
.badge.opt { background: var(--success-soft); color: var(--success); }
.badge.prompt { background: var(--brand-soft); color: var(--brand-2); border: 1px solid var(--brand-line); }
.badge.skill { background: var(--violet-soft); color: var(--violet-2); border: 1px solid rgba(167,139,250,.35); }
.badge.neutral { background: var(--surface-3); color: var(--text-2); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--success-soft); color: var(--success); }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
.tiny { font-size: 11.5px; }
.label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.label .req-star { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); padding: 9px 11px; font-size: 13px; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { resize: none; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.hint { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.divider { height: 1px; background: var(--border); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }

/* ---------- 图片占位（纯 CSS，零外部依赖） ---------- */
.art { position: relative; overflow: hidden; background: #0e1118; display: grid; place-items: center; }
.art.bottle {
  background: radial-gradient(ellipse at 50% 82%, rgba(120,150,255,.22), transparent 62%), linear-gradient(180deg, #151a28, #080a0f);
}
.art.bottle .bottle {
  height: 62%; aspect-ratio: 1 / 2.1; width: auto; border-radius: 6px 6px 10px 10px;
  background: linear-gradient(100deg, #f5f6fa, #c9cede 45%, #ffffff 60%, #aab2c8);
  box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 0 12px rgba(255,255,255,.6);
  position: relative;
}
.art.bottle .bottle::before {
  content: ''; position: absolute; top: -13%; left: 31%; width: 38%; height: 15%;
  background: linear-gradient(#e3e7f0, #98a1b8); border-radius: 3px 3px 1px 1px;
}
.art.bottle .bottle::after {
  content: ''; position: absolute; inset: 7% 12%; border-radius: 4px;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 72%);
}
.art.scene { background: linear-gradient(180deg, #1b2234 0%, #0c1018 62%, #07090d 100%); }
.art.scene::before {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: 27%; height: 1px;
  background: rgba(120,150,255,.45); box-shadow: 0 0 18px rgba(120,150,255,.7);
}
.art.scene::after {
  content: ''; position: absolute; width: 66%; height: 42%; left: 17%; bottom: 27%;
  background: radial-gradient(ellipse at 50% 100%, rgba(120,150,255,.22), transparent 70%);
}
.art.swatch { background: linear-gradient(135deg, #f4f5f8 0 33%, #d8c7a8 33% 66%, #1b1e27 66% 100%); }
.art.person { background: linear-gradient(180deg, #232a3d, #0b0e14); }
.art.person::before {
  content: ''; width: 30%; height: 30%; border-radius: 50%;
  background: linear-gradient(160deg, #d9b79a, #8a6a55); position: absolute; top: 18%;
}
.art.person::after {
  content: ''; width: 60%; height: 38%; border-radius: 50% 50% 0 0;
  background: linear-gradient(160deg, #3b4a6b, #1c2233); position: absolute; bottom: -6%;
}
.art.logo { background: #0f1219; }
.art.logo::before {
  content: ''; width: 76%; height: 76%;
  background: url(assets/logo.png) center / contain no-repeat;
  filter: invert(1) brightness(1.45); opacity: .94;
}
.art.product { background: radial-gradient(ellipse at 50% 70%, rgba(91,140,255,.22), transparent 60%), #0d1017; }
.art.product::before {
  content: ''; width: 26%; height: 52%; border-radius: 6px;
  background: linear-gradient(100deg, #e8ebf3, #aeb7cc 50%, #f7f8fb);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

/* ---------- 屏幕 1：发布入口 ---------- */
.crumb { display: flex; align-items: center; gap: 8px; padding: 22px 0 14px; color: var(--text-3); font-size: 12.5px; }
.crumb b { color: var(--text-2); font-weight: 500; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 8px; }
.page-head .sub { color: var(--text-2); font-size: 14px; margin: 0; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mode-card {
  position: relative; padding: 26px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); overflow: hidden; min-height: 392px;
}
.mode-card::after {
  content: ''; position: absolute; width: 320px; height: 320px; right: -140px; top: -150px;
  border-radius: 50%; background: radial-gradient(circle, rgba(91,140,255,.16), transparent 70%);
}
.mode-card.skill::after { background: radial-gradient(circle, rgba(167,139,250,.17), transparent 70%); }
.mode-card.picked { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(91,140,255,.08), var(--shadow); }
.mode-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-2); margin-bottom: 18px;
}
.mode-card.skill .mode-icon { background: var(--violet-soft); color: var(--violet-2); }
.mode-icon svg { width: 25px; height: 25px; }
.mode-card h2 { font-size: 21px; margin: 0 0 6px; letter-spacing: -.3px; }
.mode-card .desc { color: var(--text-2); font-size: 13px; margin: 0 0 18px; min-height: 42px; }
.feature-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.feature { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.feature svg { width: 14px; height: 14px; color: var(--success); flex: none; margin-top: 2px; }
.mode-card.skill .feature svg { color: var(--violet-2); }
.mode-foot { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.mode-foot .eta { color: var(--text-3); font-size: 11.5px; }
.mode-foot .btn { margin-left: auto; }
.compare-note {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 16px;
  border-radius: 12px; background: var(--bg-soft); border: 1px dashed var(--border-strong);
  color: var(--text-3); font-size: 12px;
}
.compare-note svg { width: 15px; height: 15px; color: var(--brand-2); flex: none; }
.compare-note b { color: var(--text-2); font-weight: 600; }
.draft-list { margin-top: 26px; }
.draft-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.draft-head .t { font-size: 14px; font-weight: 650; }
.draft-head .count { font-size: 11.5px; color: var(--text-3); }
.draft-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px; margin-bottom: 8px;
}
.draft-row .cover { width: 64px; height: 40px; border-radius: 7px; flex: none; }
.draft-row .name { font-size: 13px; font-weight: 600; }
.draft-row .meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.draft-row .btn { margin-left: auto; }

/* ---------- 屏幕 2/3：作者编辑器 ---------- */
.subhead { display: flex; align-items: center; gap: 12px; padding: 16px 0 14px; }
.subhead .back { display: flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.subhead .back svg { width: 15px; height: 15px; }
.subhead .ttl { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.subhead .status { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); }
.subhead .status svg { width: 13px; height: 13px; color: var(--success); }
.steps { display: flex; align-items: center; gap: 0; margin-left: 10px; }
.step { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 12px; }
.step .n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 10.5px; font-weight: 700; }
.step.done { color: var(--success); }
.step.done .n { background: var(--success-soft); }
.step.on { color: var(--text); }
.step.on .n { background: var(--brand); color: #fff; }
.step-bar { width: 28px; height: 1px; background: var(--border-strong); margin: 0 9px; }
.subhead .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.basic-strip {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
}
.basic-cover { width: 96px; height: 60px; border-radius: 9px; flex: none; position: relative; }
.basic-cover .edit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; opacity: 0; }
.basic-cover:hover .edit { opacity: 1; }
.basic-field { display: flex; flex-direction: column; gap: 3px; }
.basic-field .k { font-size: 10.5px; color: var(--text-3); font-weight: 600; letter-spacing: .2px; }
.basic-field .v { font-size: 13px; font-weight: 600; }
.basic-field .input { padding: 6px 9px; font-size: 12.5px; border-radius: 7px; }
.basic-title { width: 270px; }
.basic-cat { width: 118px; }
.basic-out { display: flex; gap: 6px; }
.pill-check {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--bg-soft); border: 1px solid var(--border);
}
.pill-check.on { color: var(--brand-2); border-color: var(--brand-line); background: var(--brand-soft); }
.pill-check svg { width: 12px; height: 12px; }
.basic-price { width: 90px; }

.editor-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ref-card { display: flex; flex-direction: column; }
.ref-card .card-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-item { position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); height: 82px; }
.ref-item .art { position: absolute; inset: 0; }
.ref-item .name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 9.5px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ref-item .used { position: absolute; top: 5px; left: 5px; font-size: 8.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--brand); color: #fff; }
.ref-upload {
  border: 1px dashed var(--border-strong); border-radius: 9px; height: 82px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--text-3); font-size: 10.5px; background: rgba(255,255,255,.015);
}
.ref-upload svg { width: 17px; height: 17px; }
.ref-tip { display: flex; align-items: flex-start; gap: 7px; font-size: 10.5px; color: var(--text-3); line-height: 1.5; padding: 8px; border-radius: 8px; background: var(--bg-soft); }
.ref-tip svg { width: 13px; height: 13px; color: var(--brand-2); flex: none; margin-top: 1px; }

.prompt-card { position: relative; display: flex; flex-direction: column; }
.prompt-card .card-body { padding: 14px 16px 12px; display: flex; flex-direction: column; flex: 1; }
.prompt-editor {
  position: relative; flex: 1; min-height: 236px; padding: 13px 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px;
  font-size: 13.5px; line-height: 2.15; color: var(--text-2); cursor: text;
}
.prompt-editor .kw { color: var(--brand-2); }
.chip-img {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 2px; margin: 0 2px;
  border-radius: 7px; background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand-2); font-size: 12px; font-weight: 600; vertical-align: middle; line-height: 1.5;
}
.chip-img .thumb { width: 26px; height: 20px; border-radius: 4px; overflow: hidden; position: relative; flex: none; }
.chip-img .thumb .art { position: absolute; inset: 0; }
.chip-img.skill { background: var(--violet-soft); border-color: rgba(167,139,250,.35); color: var(--violet-2); }
.prompt-toolbar { display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.tool-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); background: var(--surface-2); }
.tool-btn svg { width: 13px; height: 13px; }
.tool-btn.on { color: var(--brand-2); border-color: var(--brand-line); background: var(--brand-soft); }
.ai-status { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11px; color: var(--text-3); }
.ai-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.ai-status b { color: var(--text-2); font-weight: 600; }

.at-pop {
  position: absolute; left: 322px; top: 118px; width: 430px; z-index: 12;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.9); overflow: hidden;
}
.at-pop .ph { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }
.at-pop .ph svg { width: 13px; height: 13px; color: var(--brand-2); }
.at-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.at-row.sel { background: var(--brand-soft); }
.at-row .th { width: 46px; height: 32px; border-radius: 6px; overflow: hidden; position: relative; flex: none; border: 1px solid var(--border); }
.at-row .th .art { position: absolute; inset: 0; }
.at-row .nm { font-size: 12.5px; font-weight: 600; }
.at-row .mt { font-size: 10.5px; color: var(--text-3); }
.at-row .key { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.at-foot { padding: 7px 12px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--text-3); display: flex; gap: 12px; }

/* 元素面板 */
.board { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px 70px; position: relative; }
.board-head { display: flex; align-items: center; gap: 10px; }
.board-head .t { font-size: 14px; font-weight: 650; }
.board-head .sub { font-size: 11.5px; color: var(--text-3); }
.board-tools { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.board-tools .tool-btn { font-size: 11px; padding: 5px 8px; }
.zone { border: 1px solid var(--border); border-radius: 11px; padding: 9px 10px; background: var(--bg-soft); }
.zone-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.zone-head .zt { font-size: 11.5px; font-weight: 700; letter-spacing: .2px; }
.zone-head .zc { font-size: 10.5px; color: var(--text-3); }
.zone-head .zn { margin-left: auto; font-size: 10px; color: var(--text-3); }
.zone-un { border-style: dashed; border-color: var(--border-strong); margin-top: 10px; min-height: 96px; }
.zone-req { border-color: rgba(255,93,108,.3); background: rgba(255,93,108,.035); }
.zone-req .zt { color: var(--danger); }
.zone-opt { border-color: rgba(45,212,167,.3); background: rgba(45,212,167,.035); }
.zone-opt .zt { color: var(--success); }
.zone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.el-list { display: flex; flex-wrap: wrap; gap: 8px; }
.el-card {
  width: 232px; min-height: 58px; display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; position: relative;
}
.el-card.drag { border-color: var(--brand-line); box-shadow: 0 0 0 2px var(--brand-soft); }
.el-card.hovered { border-color: var(--border-strong); background: var(--surface-3); }
.el-card .handle { color: var(--text-3); font-size: 13px; letter-spacing: -2px; flex: none; cursor: grab; }
.el-ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; font-size: 9px; font-weight: 800; }
.el-ico.img { background: var(--brand-soft); color: var(--brand-2); }
.el-ico.txt { background: var(--warn-soft); color: var(--warn); }
.el-ico.param { background: var(--surface-3); color: var(--text-3); }
.el-meta { min-width: 0; flex: 1; }
.el-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-sub { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.el-x {
  position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-strong);
  color: var(--text-2); font-size: 12px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.el-x:hover { color: var(--danger); border-color: var(--danger); }
.x-tip {
  position: absolute; top: 50%; right: -78px; transform: translateY(-50%); white-space: nowrap; font-size: 10px;
  padding: 3px 7px; border-radius: 5px; background: var(--text); color: #111; font-weight: 600;
}
.x-tip::after { content: ''; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; background: var(--text); transform: translateY(-50%) rotate(45deg); }
.el-add {
  width: 150px; min-height: 58px; border: 1px dashed var(--border-strong); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--text-3); font-size: 11.5px;
}
.el-add svg { width: 13px; height: 13px; }
.marquee {
  position: absolute; left: 26px; top: 87px; width: 472px; height: 58px;
  border: 1px solid var(--brand); background: rgba(91,140,255,.13);
  border-radius: 4px; z-index: 5; pointer-events: none;
}
.marquee::after { content: '框选中'; position: absolute; right: 4px; top: 4px; font-size: 9px; color: var(--brand-2); background: rgba(11,12,16,.75); padding: 1px 5px; border-radius: 3px; }
.batch-bar {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; padding: 7px 9px 7px 13px;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); z-index: 8; white-space: nowrap;
}
.batch-bar .cnt { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.batch-bar .cnt b { color: var(--brand-2); }
.batch-bar .sep { width: 1px; height: 18px; background: var(--border-strong); }
.batch-bar .btn { padding: 5px 9px; font-size: 11px; border-radius: 6px; }

/* 抽屉 */
.mask { position: absolute; inset: 60px 0 0; background: rgba(0,0,0,.58); z-index: 20; }
.drawer {
  position: absolute; top: 60px; right: 0; bottom: 0; width: 496px; z-index: 21;
  background: var(--surface); border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,.9); display: flex; flex-direction: column;
}
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-head .t { font-size: 16px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px 12px; }
.drawer-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.drawer-foot .btn-primary { margin-left: auto; }
.field { margin-bottom: 12px; }
.type-seg { display: flex; gap: 6px; padding: 3px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; }
.type-seg .seg { flex: 1; text-align: center; padding: 6px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.type-seg .seg.on { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.status-seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.status-opt { padding: 8px 6px; border: 1px solid var(--border); border-radius: 8px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--text-3); background: var(--bg-soft); }
.status-opt.on.req { border-color: rgba(255,93,108,.5); background: var(--danger-soft); color: var(--danger); }
.status-opt.on.opt { border-color: rgba(45,212,167,.5); background: var(--success-soft); color: var(--success); }
.status-opt.on.un { border-color: var(--border-strong); background: var(--surface-3); color: var(--text); }
.example-upload { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--bg-soft); }
.example-upload .th { width: 112px; height: 78px; border-radius: 8px; overflow: hidden; position: relative; flex: none; border: 1px solid var(--border); }
.example-upload .th .art { position: absolute; inset: 0; }
.example-upload .t { font-size: 12px; font-weight: 600; }
.example-upload .s { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.preview-mini { border: 1px solid var(--border); border-radius: 11px; padding: 12px; background: var(--bg-soft); }
.preview-mini .pm-label { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.preview-mini .pm-input { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 9px 10px; font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.preview-mini .pm-input svg { width: 14px; height: 14px; }
.preview-mini .pm-ex { font-size: 10.5px; color: var(--text-3); margin-top: 6px; }

/* ---------- 屏幕 4/5：Skill ---------- */
.step-strip { display: flex; align-items: center; gap: 0; padding: 0 0 18px; }
.step-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); flex: 1; }
.step-card.on { border-color: rgba(167,139,250,.45); background: linear-gradient(180deg, rgba(167,139,250,.09), rgba(167,139,250,.02)); }
.step-card.done { border-color: rgba(45,212,167,.3); }
.step-card .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--surface-3); color: var(--text-2); flex: none; }
.step-card.on .n { background: var(--violet); color: #191127; }
.step-card.done .n { background: var(--success-soft); color: var(--success); }
.step-card .t { font-size: 12.5px; font-weight: 650; }
.step-card .s { font-size: 10.5px; color: var(--text-3); }
.step-arrow { width: 30px; text-align: center; color: var(--text-3); font-size: 13px; }
.skill-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: stretch; }
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: 13px; padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(167,139,250,.025); text-align: center;
}
.dropzone .dz-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-2); margin-bottom: 4px; }
.dropzone .dz-ico svg { width: 23px; height: 23px; }
.dropzone .dz-t { font-size: 14px; font-weight: 650; }
.dropzone .dz-s { font-size: 11.5px; color: var(--text-3); }
.file-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }
.file-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-2); flex: none; }
.file-ico svg { width: 18px; height: 18px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.meta-cell { background: var(--surface); padding: 10px 12px; }
.meta-cell .k { font-size: 10px; color: var(--text-3); margin-bottom: 2px; }
.meta-cell .v { font-size: 12px; font-weight: 600; }
.tree { font-family: var(--mono); font-size: 11.5px; line-height: 1.9; color: var(--text-2); padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; }
.tree .dim { color: var(--text-3); }
.tree .hi { color: var(--violet-2); }
.out-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.out-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; color: var(--text-2); }
.out-chip b { color: var(--text); font-weight: 600; }
.skill-test-card { display: flex; flex-direction: column; }
.skill-test-card .card-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.skill-test-card .test-empty { margin-top: auto; }
.sample-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--bg-soft); }
.sample-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sample-row .th { width: 42px; height: 30px; border-radius: 6px; overflow: hidden; position: relative; border: 1px solid var(--border); flex: none; }
.sample-row .th .art { position: absolute; inset: 0; }
.sample-row .k { font-size: 11px; color: var(--text-3); width: 76px; flex: none; }
.sample-row .v { font-size: 12px; font-weight: 600; }
.checklist { display: flex; flex-direction: column; gap: 7px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.check-item .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.check-item .dot svg { width: 9px; height: 9px; }
.check-item.done { color: var(--text-2); }
.check-item.done .dot { background: var(--success-soft); border-color: rgba(45,212,167,.4); color: var(--success); }
.check-item.run .dot { border-color: var(--violet); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.test-empty { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 18px; text-align: center; color: var(--text-3); font-size: 11.5px; }
.success-banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 14px; border-radius: 11px; background: var(--success-soft); border: 1px solid rgba(45,212,167,.3); }
.success-banner .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(45,212,167,.2); color: var(--success); flex: none; }
.success-banner .ic svg { width: 14px; height: 14px; }
.success-banner .t { font-size: 12.5px; font-weight: 650; color: var(--success); }
.success-banner .s { font-size: 11px; color: var(--text-3); }
.code-block {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.85; color: var(--text-2);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; padding: 12px 13px;
  white-space: pre-wrap; word-break: break-word;
}
.code-block .ph { color: var(--violet-2); background: var(--violet-soft); padding: 1px 4px; border-radius: 4px; }
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; }
.tab { padding: 5px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.tab.on { background: var(--surface-3); color: var(--text); }
.map-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.map-row:last-child { border-bottom: none; }
.map-token { font-family: var(--mono); font-size: 11px; color: var(--violet-2); background: var(--violet-soft); border: 1px solid rgba(167,139,250,.28); padding: 4px 7px; border-radius: 5px; flex: none; }
.map-arrow { color: var(--text-3); flex: none; }
.map-arrow svg { width: 15px; height: 15px; }
.map-img { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.map-img .th { width: 44px; height: 32px; border-radius: 6px; overflow: hidden; position: relative; border: 1px solid var(--border); flex: none; }
.map-img .th .art { position: absolute; inset: 0; }
.map-img .nm { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-img .st { font-size: 10px; color: var(--success); }
.map-text { flex: 1; font-size: 11.5px; color: var(--text-2); }
.import-summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.import-summary .z { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.import-summary .z b { font-size: 14px; }
.import-summary .z.un b { color: var(--text-3); }
.import-summary .z.req b { color: var(--danger); }
.import-summary .z.opt b { color: var(--success); }

/* ---------- 屏幕 6/7/8：使用者详情 ---------- */
.detail-top { display: flex; align-items: center; gap: 12px; padding: 16px 0 14px; }
.detail-top .back { display: flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 12.5px; padding: 6px 9px; border-radius: 8px; }
.detail-top .back svg { width: 15px; height: 15px; }
.detail-top .crumb { padding: 0; font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; }
.preview-panel { position: relative; }
.video-stage { height: min(46vh, 520px); display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; overflow: hidden; }
.video-frame { position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--border-strong); box-shadow: var(--shadow); width: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 16/9; }
.video-frame .art { position: absolute; inset: 0; }
.video-stage.has-original { position: relative; background: #07080d; }
.video-stage.has-original::before { content: ""; position: absolute; inset: -24px; background: url("assets/original-poster.jpg") center / cover no-repeat; filter: blur(26px) brightness(.32) saturate(.9); transform: scale(1.08); }
.video-stage.has-original .video-frame { width: 280px !important; height: auto !important; aspect-ratio: 9 / 16; max-height: 496px; z-index: 1; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.video-stage.has-original .video-frame .art,
.video-stage.has-original .video-frame .bottle-obj,
.video-stage.has-original .video-frame > div[style*="place-items:center"] { display: none !important; }
.video-frame .frame-video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #07080d; }
.video-stage.has-original .res-tag { z-index: 4; font-size: 9px; line-height: 1.45; padding: 4px 8px; max-width: 252px; white-space: normal; }
.video-stage.has-original .big-play { z-index: 5; }
.video-stage.has-original .playing .frame-video { opacity: 1; }
.skill-text-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.skill-text-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2); font: 11px var(--mono); color: var(--text-2); }
.skill-text-chip b { font: 600 10px var(--sans); color: var(--text); }
.md-code { max-height: 150px; overflow: auto; }
.screen[data-screen="5"] .code-block { max-height: 260px; overflow: auto; }
.res-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: rgba(0,0,0,.5); color: #fff; }
.big-play { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; }
.big-play .c { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; }
.big-play svg { width: 22px; height: 22px; margin-left: 3px; }
.controls { display: flex; align-items: center; gap: 10px; padding: 12px 4px 2px; }
.ctl-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); flex: none; background: var(--surface-2); }
.ctl-btn svg { width: 16px; height: 16px; }
.timeline { flex: 1; display: flex; align-items: center; gap: 10px; }
.time { font-family: var(--mono); font-size: 11px; color: var(--text-3); min-width: 36px; text-align: center; }
.range { flex: 1; height: 4px; border-radius: 2px; background: var(--border-strong); position: relative; }
.range i { position: absolute; left: 0; top: 0; bottom: 0; width: 32%; border-radius: 2px; background: var(--brand); }
.range em { position: absolute; left: 32%; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; transform: translate(-50%,-50%); }
.preview-hint { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 11px; padding: 4px 6px 0; }
.preview-hint svg { width: 13px; height: 13px; }
.info-panel { display: flex; flex-direction: column; gap: 16px; }
.info-title { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 8px; }
.author-bar { display: flex; align-items: center; gap: 10px; }
.author-bar .a-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#46557a,#7aa2ff); display: grid; place-items: center; font-size: 14px; color: #fff; font-weight: 700; }
.author-bar .name { font-size: 13px; font-weight: 600; }
.author-bar .fans { font-size: 11px; color: var(--text-3); }
.author-bar .follow { margin-left: auto; padding: 6px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border-strong); }
.stats-row { display: flex; gap: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; }
.stat .v { font-size: 13px; font-weight: 700; }
.stat .k { font-size: 10px; color: var(--text-3); }
.section-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; margin-bottom: 9px; }
.section-title .note { font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.gen-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gen-mode { position: relative; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.gen-mode.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(91,140,255,.08); }
.gen-mode .gm-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); margin-bottom: 7px; }
.gen-mode.on .gm-ico { background: var(--brand); color: #fff; }
.gen-mode .gm-ico svg { width: 16px; height: 16px; }
.gen-mode .t { font-size: 13px; font-weight: 700; }
.gen-mode .s { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.gen-mode .p { font-size: 10.5px; color: var(--warn); font-weight: 700; margin-top: 5px; }
.gen-mode .tick { position: absolute; top: 9px; right: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.gen-mode .tick svg { width: 9px; height: 9px; }
.opt-row { display: flex; gap: 7px; }
.opt-chip { flex: 1; padding: 8px 6px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.opt-chip.on { border-color: var(--brand); color: var(--text); background: var(--brand-soft); }
.opt-chip small { display: block; font-size: 9px; color: var(--text-3); font-weight: 500; }
.field-card { border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; background: var(--surface); margin-bottom: 9px; }
.field-card:last-child { margin-bottom: 0; }
.field-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.field-head .n { font-size: 12.5px; font-weight: 650; }
.field-head .badge { margin-left: 0; }
.field-head .ex { margin-left: auto; font-size: 10px; color: var(--text-3); }
.field-input { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); font-size: 12px; color: var(--text-3); }
.field-input svg { width: 14px; height: 14px; color: var(--text-3); }
.field-input .th { width: 44px; height: 32px; border-radius: 5px; overflow: hidden; position: relative; flex: none; border: 1px solid var(--border); }
.field-input .th .art { position: absolute; inset: 0; }
.field-input .fill { color: var(--text); }
.field-example { display: flex; align-items: flex-start; gap: 5px; margin-top: 6px; font-size: 10.5px; color: var(--text-3); line-height: 1.5; }
.field-example svg { width: 11px; height: 11px; color: var(--brand-2); flex: none; margin-top: 1px; }
.field-example b { color: var(--text-2); font-weight: 500; }
.collapse-row { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px; margin-top: 9px; border: 1px dashed var(--border-strong); border-radius: 8px; font-size: 11px; color: var(--text-3); }
.collapse-row svg { width: 12px; height: 12px; }
.credit-compact { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.credit-compact .k { font-size: 11.5px; color: var(--text-2); }
.credit-compact .v { font-size: 20px; font-weight: 800; color: var(--warn); }
.credit-compact .v small { font-size: 10px; color: var(--text-3); font-weight: 500; margin-left: 2px; }
.credit-compact .bal { font-size: 10px; color: var(--text-3); }
.generate-btn { width: 100%; padding: 13px; border-radius: 11px; font-size: 14.5px; font-weight: 700; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.generate-btn svg { width: 16px; height: 16px; }
.gen-note { text-align: center; font-size: 10.5px; color: var(--text-3); }
.mock-anno { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--violet-2); background: var(--violet-soft); border: 1px solid rgba(167,139,250,.3); padding: 3px 7px; border-radius: 5px; }
.form-head { display: flex; align-items: center; gap: 8px; }
.form-head .t { font-size: 13px; font-weight: 650; }
.form-head .cnt { font-size: 10.5px; color: var(--text-3); }
.skill-tag-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 屏幕底部说明条 */
.caption-bar {
  display: flex; align-items: center; gap: 20px; margin-top: 16px; padding: 10px 14px;
  border-top: 1px solid var(--border); color: var(--text-3); font-size: 10.5px;
}
.caption-bar b { color: var(--text-2); font-weight: 600; }
.caption-bar .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* 屏幕切换器（截图时隐藏） */
.switcher { position: fixed; right: 18px; bottom: 18px; z-index: 999; display: flex; gap: 6px; padding: 7px; border-radius: 10px; background: rgba(22,25,35,.96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.switcher a { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--surface-2); }
.switcher a.on { background: var(--brand); color: #fff; }
body.capture .switcher { display: none; }

/* ---------- 生成结果瓶身 / 操作对象 ---------- */
.bottle-obj { width: 112px; height: 270px; position: relative; filter: drop-shadow(0 36px 46px rgba(0,0,0,.6)); }
.bottle-obj::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 14%; bottom: 0;
  border-radius: 10px 10px 18px 18px / 26px 26px 18px 18px;
  background: linear-gradient(100deg, #f7f8fb, #c9cede 44%, #ffffff 58%, #aab2c8);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 22px rgba(255,255,255,.65);
}
.bottle-obj .cap {
  position: absolute; left: 33%; right: 33%; top: 2%; height: 13%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(#eef1f7, #98a1b8);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.8);
}
.bottle-obj .shine {
  position: absolute; left: 22%; top: 24%; width: 9%; height: 58%;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.05));
  filter: blur(1px);
}
.bottle-obj .reflect {
  position: absolute; left: -8%; right: -8%; bottom: -22px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(140,170,255,.35), transparent 70%);
}
.result-strip { display: flex; gap: 10px; margin-top: 12px; }
.result-card { flex: 1; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--surface); }
.result-card .th { height: 92px; position: relative; overflow: hidden; }
.result-card .th .art { position: absolute; inset: 0; }
.result-card .th .bottle-obj { transform: scale(.33); transform-origin: center bottom; position: absolute; left: 50%; bottom: 0; margin-left: -56px; }
.result-card .cap { padding: 8px 10px; }
.result-card .cap .t { font-size: 11.5px; font-weight: 650; }
.result-card .cap .s { font-size: 10px; color: var(--text-3); }
.preview-caption { display: flex; align-items: center; gap: 6px; padding: 8px 4px 0; font-size: 10.5px; color: var(--text-3); }
.preview-caption svg { width: 12px; height: 12px; }
.field-upload {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--bg-soft);
}
.field-upload .th { width: 58px; height: 42px; border-radius: 6px; overflow: hidden; position: relative; flex: none; border: 1px solid var(--border); }
.field-upload .th .art { position: absolute; inset: 0; }
.field-upload .t { font-size: 12px; font-weight: 600; }
.field-upload .s { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.field-upload .act { margin-left: auto; font-size: 11px; color: var(--brand-2); font-weight: 650; }
.field-upload .act.skill { color: var(--violet-2); }
.ex-line { display: flex; align-items: flex-start; gap: 5px; margin-top: 6px; font-size: 10.5px; color: var(--text-3); line-height: 1.5; }
.ex-line svg { width: 11px; height: 11px; color: var(--brand-2); flex: none; margin-top: 1px; }
.ex-line b { color: var(--text-2); font-weight: 500; }
.token-line { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
.token-code {
  font-family: var(--mono); font-size: 10.5px; color: var(--violet-2);
  background: var(--violet-soft); border: 1px solid rgba(167,139,250,.3);
  padding: 2px 6px; border-radius: 4px; letter-spacing: -.2px;
}
.trust-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--success); background: var(--success-soft); border: 1px solid rgba(45,212,167,.3); padding: 3px 8px; border-radius: 5px; }
.trust-badge svg { width: 11px; height: 11px; }
.form-step { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.form-step b { color: var(--text); font-size: 11.5px; }
.mode-summary { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 7px; background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 11px; font-weight: 600; color: var(--brand-2); }
.mode-summary svg { width: 12px; height: 12px; }
.form-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; margin: 10px 0 4px; }
.form-sub { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.form-fields { display: flex; flex-direction: column; gap: 9px; }
.form-fields .field-card { margin-bottom: 0; }
.field-label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.field-label-row .nm { font-size: 12.5px; font-weight: 650; }
.field-label-row .type { font-size: 9.5px; color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.field-label-row .opt-note { margin-left: auto; font-size: 10px; color: var(--text-3); }
.form-credit { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-top: 4px; }
.form-credit .k { font-size: 11px; color: var(--text-2); }
.form-credit .v { font-size: 18px; font-weight: 800; color: var(--warn); }
.form-credit .v small { font-size: 10px; color: var(--text-3); font-weight: 500; }
.form-credit .bal { font-size: 10px; color: var(--text-3); }
.detail-layout.form-layout { grid-template-columns: 1.12fr .88fr; }
.swap-list { display: flex; flex-direction: column; gap: 9px; }
.swap-item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.swap-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.swap-item.skill .dot { background: var(--violet); }
.swap-item .arrow { color: var(--text-3); }
.swap-item .v { color: var(--text); font-weight: 600; }
.swap-item .st { margin-left: auto; font-size: 10px; color: var(--text-3); }
.steps-row { display: flex; gap: 8px; margin-top: 12px; }
.mini-step { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; background: var(--surface); }
.mini-step .n { width: 19px; height: 19px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); font-size: 10px; font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.mini-step .t { font-size: 11px; font-weight: 650; }
.mini-step .s { font-size: 10px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }
.note-text { font-size: 11.5px; line-height: 1.7; color: var(--text-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag-chip { font-size: 10px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px; }
.field-label-row .human { font-size: 11.5px; color: var(--text-2); font-weight: 600; margin-left: 2px; }

/* ---------- v3：双通道 / 单 md / 描述解析 ---------- */
.channel-bar {
  display: flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 7px 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.channel-bar .cb-label { font-size: 10.5px; color: var(--text-3); margin-right: 1px; }
.channel-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 9px;
  border-radius: 7px; border: 1px solid var(--border); font-size: 11px;
  color: var(--text-2); background: var(--surface-2); white-space: nowrap;
}
.channel-tab b { font-size: 8.5px; letter-spacing: .07em; color: var(--text-3); font-weight: 800; }
.channel-tab.on { border-color: rgba(91,140,255,.5); background: rgba(91,140,255,.12); color: var(--brand-2); }
.channel-tab.on.skill { border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.12); color: var(--violet-2); }
.channel-tab.on b { color: inherit; }
.channel-tab.add { border-style: dashed; color: var(--text-3); }
.channel-tab .ok-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.channel-bar .hint { margin-left: auto; font-size: 10px; color: var(--text-3); white-space: nowrap; }

.dual-note {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px;
  border: 1px dashed var(--border-strong); border-radius: 9px;
  font-size: 11px; color: var(--text-3); line-height: 1.5;
}
.dual-note b { color: var(--text-2); font-weight: 600; }

.md-parse { margin-top: 12px; }
.md-title-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.md-title-row .src { font-size: 9.5px; color: var(--text-3); font-weight: 400; }
.md-code {
  margin-top: 8px; padding: 10px 12px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px;
  font: 10.5px/1.75 var(--mono); color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.ph-img { color: var(--violet-2); background: var(--violet-soft); border: 1px solid rgba(167,139,250,.28); border-radius: 4px; padding: 0 4px; }
.ph-txt { color: var(--text); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 4px; padding: 0 4px; }
.ph-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ph-chip { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 7px; border-radius: 6px; font: 9.5px/1 var(--mono); }
.ph-chip.img { color: var(--violet-2); background: var(--violet-soft); border: 1px solid rgba(167,139,250,.3); }
.ph-chip.txt { color: var(--text); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.ph-chip .t { font-family: -apple-system, "PingFang SC", sans-serif; font-size: 8.5px; letter-spacing: .05em; color: var(--text-3); }

.channel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.channel-card { position: relative; padding: 10px 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.channel-card.on { border-color: rgba(91,140,255,.55); background: rgba(91,140,255,.10); box-shadow: inset 0 0 0 1px rgba(91,140,255,.16); }
.channel-card.on.skill { border-color: rgba(167,139,250,.55); background: rgba(167,139,250,.10); box-shadow: inset 0 0 0 1px rgba(167,139,250,.16); }
.cc-top { display: flex; align-items: center; gap: 6px; }
.cc-name { margin-top: 6px; font-size: 12.5px; font-weight: 700; }
.cc-sub { margin-top: 3px; font-size: 10px; color: var(--text-3); line-height: 1.45; }
.cc-tick { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 9px; }

.need-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.need-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 11px; }
.need-item:last-child { border-bottom: 0; }
.need-ico { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 7.5px; font-weight: 800; flex: none; }
.need-ico.img { background: var(--violet-soft); color: var(--violet-2); }
.need-ico.txt { background: var(--surface-3); color: var(--text-2); border: 1px dashed var(--border-strong); }
.need-type { margin-left: auto; font-size: 9.5px; color: var(--text-3); }

.desc-box { margin-top: 9px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.desc-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; }
.desc-head .opt { font-size: 9.5px; color: var(--text-3); font-weight: 400; }
.desc-input {
  width: 100%; min-height: 58px; margin-top: 7px; padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg);
  color: var(--text); font: 11.5px/1.6 -apple-system, "PingFang SC", sans-serif; resize: none;
}
.desc-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.desc-foot .hint { font-size: 9.5px; color: var(--text-3); }
.btn-parse {
  margin-left: auto; height: 27px; padding: 0 11px; border: 0; border-radius: 7px;
  background: linear-gradient(90deg, #5b8cff, #9d6bff); color: #fff;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.parse-receipt { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.pr-head { display: flex; align-items: center; gap: 7px; padding: 7px 10px; font-size: 10.5px; font-weight: 650; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pr-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 10.5px; }
.pr-row:last-child { border-bottom: 0; }
.pr-row .pr-k { width: 70px; color: var(--text-2); flex: none; }
.pr-row .pr-v { flex: 1; color: var(--text); }
.pr-row .pr-st { font-size: 9.5px; }
.pr-row.ok .pr-st { color: var(--success); }
.pr-row.warn { background: rgba(245,166,35,.06); }
.pr-row.warn .pr-st { color: var(--warn); }
.pr-row.bad .pr-st { color: var(--text-3); }

.prefill-badge {
  display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 4px;
  background: rgba(91,140,255,.14); color: var(--brand-2); font-size: 9px; font-weight: 650;
}
.default-tag { font-size: 8.5px; color: var(--warn); border: 1px solid rgba(245,166,35,.3); border-radius: 4px; padding: 1px 4px; margin-left: 4px; }
.field-upload.empty { border-style: dashed; color: var(--text-3); background: rgba(255,255,255,.012); }
.field-upload.empty .empty-ico {
  width: 34px; height: 34px; border: 1px dashed var(--border-strong); border-radius: 7px;
  display: grid; place-items: center; font-size: 17px; color: var(--text-3); flex: none;
}
.gate-note {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 9px;
  border: 1px solid rgba(255,93,108,.25); background: rgba(255,93,108,.07);
  border-radius: 8px; font-size: 10px; color: #ffb2b9; line-height: 1.4;
}
.generate-btn.short { background: var(--surface-3); color: var(--text-3); box-shadow: none; cursor: not-allowed; }

/* v3.1 作者参考图：所有图片位都展示，但绝不进入生成 */
.ref-strip {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2);
}
.ref-strip .th { width: 38px; height: 28px; border-radius: 4px; overflow: hidden; flex: 0 0 auto; background: var(--surface-3); }
.ref-strip .th .art { width: 100%; height: 100%; }
.ref-strip .lbl { min-width: 0; font-size: 10px; line-height: 1.4; color: var(--text-2); }
.ref-strip .lbl b { color: var(--text); font-weight: 650; }
.ref-strip .tagref {
  margin-left: auto; flex: 0 0 auto; padding: 1px 5px; border: 1px solid var(--border-strong);
  border-radius: 4px; font-size: 8.5px; color: var(--text-3);
}

/* v3.1 skill 单段描述入口 */
.desc-input { min-height: 118px; resize: vertical; }
.desc-input::placeholder { color: var(--text-3); opacity: .75; }
.parse-empty {
  margin-top: 8px; padding: 14px 12px; border: 1px dashed var(--border-strong);
  border-radius: 10px; color: var(--text-3); font-size: 10.5px; text-align: center;
  background: rgba(255,255,255,.012);
}
.skill-fill-note {
  margin-top: 9px; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--surface-2); color: var(--text-3);
  font-size: 10px; line-height: 1.7;
}
.skill-fill-note b { color: var(--text-2); }
.generate-btn.is-disabled {
  background: var(--surface-3) !important; color: var(--text-3) !important;
  box-shadow: none !important; cursor: not-allowed;
}
.generate-btn.is-disabled svg { opacity: .6; }

/* ---------- 自适应 v3.1.1 ----------
   画布是 1440 固定设计稿（内部 40 处绝对定位坐标），不做重排式响应式；
   宽屏居中消除单侧留白，窄屏由 mockups.js 写入 --v31-scale 等比缩放。 */
html { background: var(--bg); overflow-x: hidden; }
body { overflow-x: hidden; }
/* margin-left 用 calc 而非 auto：auto 在窄屏（<1440）归零，缩放后画布会整体偏右半个差值；
   calc 允许负值，缩放中心才与视口中心重合。 */
.screen.active { transform-origin: top center; transform: scale(var(--v31-scale, 1)); }
body.is-embed .switcher { display: none; }


/* 宽屏：画布居中，顶栏横跨视口，和站内其它页面一致 */
@media (min-width: 1440px) {
  body.is-embed .screen { overflow: visible; }
  body.is-embed .topbar { width: 100vw; margin-left: calc(50% - 50vw); }
}


/* ---------- 生成参数：模型 / 画幅 / 分辨率（屏 7/8） ---------- */
.spec-group {
  margin: 0 0 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft);
}
.spec-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px; align-items: center; padding: 6px 0;
}
.spec-row + .spec-row { border-top: 1px solid var(--border); }
.spec-label { font-size: 11.5px; font-weight: 650; color: var(--text-2); }
.spec-label small { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 400; color: var(--text-3); }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip {
  min-height: 30px; padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 11.5px; font-weight: 600;
}
.spec-chip:hover { border-color: var(--border-strong); color: var(--text); }
.spec-chip.on {
  border-color: var(--brand); background: var(--brand-soft);
  color: var(--text); box-shadow: inset 0 0 0 1px var(--brand-line);
}
@media (max-width: 900px) {
  .spec-row { grid-template-columns: 1fr; gap: 5px; }
  .spec-chip { min-height: 40px; }
}


/* 宽屏把「模型/画幅/分辨率」压成一行，避免屏 7 被参数卡撑高后缩小 */
@media (min-width: 1440px) {
  .spec-group {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 12px; align-items: start;
  }
  .spec-row { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 0; }
  .spec-row + .spec-row { border-top: 0; }
  .spec-label small { display: inline; margin-left: 4px; }
  .spec-chips { gap: 5px; }
  .spec-chip { min-height: 28px; padding: 4px 8px; font-size: 11px; }
  .form-fields .field-card { padding: 9px 11px; }
}
