:root {
  --bg: #0b0d12;
  --panel: rgba(18, 22, 30, 0.86);
  --line: rgba(232, 214, 176, 0.16);
  --text: #efe8d8;
  --muted: #9a9280;
  --accent: #d49a48;
  --accent-2: #7ea2c4;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--text); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
body { background: var(--bg); }
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(212, 154, 72, 0.18), transparent 55%),
    radial-gradient(700px 400px at 90% 0%, rgba(126, 162, 196, 0.12), transparent 50%),
    linear-gradient(180deg, #10141c, #07080b);
}

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 700;
}
.brand em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }

.layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1600px; margin: 0 auto; padding: 32px 24px 64px;
}
.panel {
  background: var(--panel); border: 1px solid var(--line);
  padding: 24px; backdrop-filter: blur(10px);
}
.badge {
  display: inline-block; margin: 0 0 12px;
  padding: 4px 8px; border: 1px solid var(--line);
  color: var(--accent); font-size: 12px; letter-spacing: 0.04em;
}
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 10px; }
.lead, .hint, figcaption, label { color: var(--muted); }
label { display: block; margin: 16px 0 8px; font-size: 13px; }
textarea, input, select, button {
  width: 100%; color: var(--text); background: #0d1016;
  border: 1px solid var(--line); padding: 12px 14px; font: inherit;
}
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.auth-password-row { display: flex; gap: 12px; align-items: stretch; }
.auth-password-row input { flex: 1; width: auto; min-width: 0; }
.auth-password-row button { width: auto; min-width: 0; white-space: nowrap; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
button {
  width: auto; min-width: 120px; cursor: pointer;
  background: var(--accent); color: #1a1208; border-color: var(--accent); font-weight: 600;
}
button.ghost { background: transparent; color: var(--text); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.progress {
  padding: 10px 12px; margin-bottom: 14px;
  border: 1px solid var(--line); color: var(--accent-2); font-size: 14px;
}
.progress.done { color: #b7d7a8; }
.progress.error { color: #e0a0a0; }
.question {
  margin-bottom: 14px; padding: 14px; border: 1px solid var(--accent);
}
.question button { margin: 8px 8px 0 0; }
/* !important：这是唯一一处用它——.hidden 要能盖掉任何组件自己的 display:flex/grid
   （比如 .asset-grid/.create-confirm/.view-options），普通类选择器同优先级时谁在
   文件里写得晚谁赢，新组件的 display 声明几乎总是写在 .hidden 后面，不加
   !important 会出现"加了 hidden 类但元素还在显示"的 bug（真的测出过一次）。 */
.hidden { display: none !important; }
.frame {
  margin: 0; min-height: 360px; background: #07080b;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.frame img { max-width: 100%; max-height: 640px; display: block; }
details { margin-top: 18px; }
pre {
  white-space: pre-wrap; color: #d8d0be; background: #0a0c10;
  padding: 12px; overflow: auto; font-size: 12px;
}

.auth-wrap { max-width: 480px; margin: 48px auto; padding: 0 24px 64px; }
.auth h1 { font-size: 28px; }
.top .ghost { min-width: auto; padding: 8px 14px; }

a.brand { text-decoration: none; color: inherit; }
a.brand strong { color: var(--text); }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-link:hover { color: var(--text); }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

.campaign-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 32px; border-bottom: 1px solid var(--line);
  background: rgba(212, 154, 72, 0.12); color: var(--text); font-size: 14px;
}
.campaign-banner p { margin: 0; }
.campaign-banner a { color: var(--accent); font-weight: 600; }

.top.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(12px);
}
.site-nav {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center;
  color: var(--muted); font-size: 14px;
}
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a[hidden] { display: none !important; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  padding: 8px 14px; min-width: auto;
  background: var(--accent); color: #1a1208; border: 1px solid var(--accent); font-weight: 600;
}
.site-nav .nav-cta:hover { color: #1a1208; }

.home .wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.home .hero { padding: 72px 24px 36px; }
.home .hero h1 { font-size: clamp(32px, 5vw, 48px); max-width: 16ch; }
.hero-bound { max-width: 62ch; color: var(--muted); line-height: 1.6; }
.hero-actions { flex-wrap: wrap; }
.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 120px; padding: 12px 16px;
  background: var(--accent); color: #1a1208; border: 1px solid var(--accent);
  text-decoration: none; font-weight: 600; cursor: pointer;
}
a.btn.ghost, .btn.ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}

.section { padding: 56px 24px 8px; }
.section-kicker {
  margin: 0 0 8px; color: var(--accent); letter-spacing: 0.08em;
  font-size: 12px; text-transform: uppercase;
}
.home h2 { font-size: 28px; line-height: 1.3; margin: 0 0 12px; }
.home h3 { margin: 0 0 10px; font-size: 18px; }
.home .lead { max-width: 68ch; line-height: 1.65; }
.cards { display: grid; gap: 16px; margin: 24px 0 0; }
.cards.three, .sample-grid { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.plain { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.sample { margin: 24px 0 0; }
.sample-frame {
  min-height: 280px; display: grid; place-items: center;
  border: 1px dashed var(--line); background: #07080b; color: var(--muted);
}
.sample-frame.wide { min-height: 180px; }
.sample-frame.square { min-height: 220px; }
.price-name { margin: 0; color: var(--accent); font-size: 13px; }
.price-tag { margin: 8px 0 16px; font-size: 22px; }
.muted-card { opacity: 0.88; }
.price .btn { margin-top: 18px; }
.rule-box { margin-top: 16px; }
.faq details {
  margin-top: 0; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); line-height: 1.65; }
.steps {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: grid; gap: 14px;
}
.steps li {
  display: grid; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--line); background: var(--panel);
}
.steps strong { font-size: 16px; }
.steps span { color: var(--muted); line-height: 1.6; }
.closer { padding-bottom: 24px; }
.closer-panel { padding: 32px; }
.site-footer {
  padding: 32px 24px 48px; color: var(--muted); font-size: 13px;
}
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .layout, .row { grid-template-columns: 1fr; }
  .top { padding: 16px; }
  .campaign-banner { padding: 10px 16px; flex-direction: column; align-items: flex-start; }
  .cards.three, .sample-grid, .split { grid-template-columns: 1fr; }
  .home .hero { padding-top: 40px; }
  .site-nav { justify-content: flex-end; }
}

/* ---- 场景资产工作台（Scene Asset workbench） ------------------------- */
.workbench { display: flex; min-height: 100vh; }

/* 默认收起成图标窄条；鼠标掠过或者点了图钉按钮（.pinned）才展开显示文字标签。
   收起/展开只是宽度变化，会让右边内容跟着轻微重新排版——这是简化实现，没有做
   "悬浮盖在内容上、不挤压布局"那种更复杂的版本。 */
.wb-sidebar {
  width: 60px; flex-shrink: 0; box-sizing: border-box; position: relative;
  border-right: 1px solid var(--line); transition: width 0.15s ease; overflow: hidden;
  display: flex; flex-direction: column; padding: 24px 12px; gap: 32px;
}
.wb-sidebar:hover, .wb-sidebar.pinned { width: 240px; }
.nav-label { display: none; white-space: nowrap; }
.wb-sidebar:hover .nav-label, .wb-sidebar.pinned .nav-label { display: inline; }
.sidebar-pin {
  position: absolute; top: 20px; right: 10px; width: 24px; min-width: 0; height: 24px; padding: 0;
  display: none; align-items: center; justify-content: center; background: transparent;
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted); cursor: pointer;
}
.wb-sidebar:hover .sidebar-pin, .wb-sidebar.pinned .sidebar-pin { display: flex; }
.sidebar-pin.active { color: var(--accent); border-color: var(--accent); }
.wb-brand { display: flex; align-items: center; gap: 10px; }
.wb-brand .mark { width: 34px; height: 34px; font-size: 13px; flex-shrink: 0; }
.wb-brand small { display: block; color: var(--muted); font-size: 11px; }
.wb-nav { display: flex; flex-direction: column; gap: 4px; }
.wb-nav button {
  width: 100%; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; background: transparent; border: none;
  color: var(--muted); font-size: 14px; font-weight: 400; cursor: pointer; text-align: left;
}
.wb-nav button.active { background: rgba(212, 154, 72, 0.12); color: var(--accent); }
.wb-nav svg { flex-shrink: 0; }
.wb-spacer { flex-grow: 1; }
.wb-user-card {
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border: 1px solid var(--line); border-radius: 8px;
}
.wb-user-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px;
  border-radius: 6px; color: var(--muted); font-size: 13px; white-space: nowrap;
}
.wb-user-value { margin-left: auto; color: var(--text); }
.wb-user-identity { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.wb-user-avatar {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 154, 72, 0.16); color: var(--accent); font-size: 12px; font-weight: 600;
}
.wb-user-name { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.wb-user-action {
  width: 100%; background: transparent; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.wb-user-action:hover { background: rgba(212, 154, 72, 0.12); color: var(--accent); }
.wb-user-action svg { flex-shrink: 0; }
.recycle-bin-count {
  margin-left: auto; min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--accent); color: #1a1712; font-size: 10px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; padding: 0 4px;
}
.recycle-bin-count.hidden { display: none; }

/* 场景资产列表栏：只在工作区里显示编辑中的场景，方便切换而不用回场景资产库。 */
.wb-scene-rail {
  width: 150px; flex-shrink: 0; box-sizing: border-box;
  border-right: 1px solid var(--line); padding: 20px 12px; overflow-y: auto;
}
.wb-scene-rail-title { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.scene-rail-item {
  padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: var(--muted);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scene-rail-item.active { background: rgba(212, 154, 72, 0.12); color: var(--accent); }

.wb-main { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.wb-topbar {
  height: 64px; flex-shrink: 0; box-sizing: border-box; display: flex;
  align-items: center; justify-content: space-between; padding: 0 32px;
  border-bottom: 1px solid var(--line);
}
.wb-topbar-title { font-size: 16px; font-weight: 600; }
.wb-topbar-sub { font-size: 11px; color: var(--muted); }
.wb-topbar-actions { display: flex; gap: 10px; }
.wb-topbar-actions button { width: auto; min-width: 0; padding: 8px 14px; font-size: 13px; }
.wb-content { flex-grow: 1; overflow-y: auto; padding: 32px 36px 40px; display: flex; flex-direction: column; gap: 28px; }

.create-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: #1a1208; font-size: 14px; font-weight: 600; cursor: pointer;
}
.create-toggle:hover { background: #e2ab5c; border-color: #e2ab5c; }
.create-hint { font-size: 12px; color: var(--muted); }

.scene-name-input {
  font-size: 16px; font-weight: 600; background: transparent; border: none;
  border-bottom: 1px dashed var(--line); padding: 4px 0; width: 320px;
}
.scene-name-input:focus { outline: none; border-bottom-color: var(--accent); }

/* flex-shrink: 0 —— #viewScene 是 flex column（topbar / workspace-body flex:1 /
   这一条），这一条要保持自己的高度，把剩下的空间全部让给 workspace-body 去滚动，
   这样它就一直贴在视口最下方，不用 position:fixed。 */
.workspace-prompt-bar {
  /* column，不是 row——加了 #promptError 之后如果还是 row，错误提示会跟输入框
     并排挤在同一行右侧，而不是显示在输入框下方（真的这样跑过一次，文字挤到
     视口外面去了）。 */
  display: flex; flex-direction: column; padding: 16px 24px; flex-shrink: 0;
  border-top: 1px solid var(--line); background: var(--panel);
}
/* 风格/比例挪进右侧参数面板了（#newScenePlaceholder），这里就是纯输入框，
   拉满宽度；发送按钮浮在输入框内部右下角，不再占单独一列。 */
.prompt-input-wrap { position: relative; flex-grow: 1; }
.prompt-input-wrap textarea {
  width: 100%; min-height: 300px; max-height: 600px; resize: none;
  padding-right: 100px; padding-bottom: 52px; box-sizing: border-box;
}
.prompt-send-inline { position: absolute; right: 10px; bottom: 10px; min-width: 80px; }
.prompt-attach-btn {
  position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.prompt-attach-btn:hover, .prompt-attach-btn.active { color: var(--accent); border-color: var(--accent); }
.prompt-attach-btn.hidden { display: none; }
.prompt-reference-chip {
  position: absolute; left: 52px; bottom: 10px; display: flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 4px; border-radius: 8px; background: rgba(212, 154, 72, 0.12);
  font-size: 12px; color: var(--accent); max-width: 180px;
}
.prompt-reference-chip img { width: 26px; height: 26px; object-fit: cover; border-radius: 5px; }
.prompt-reference-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-reference-chip button {
  border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px;
}
.prompt-reference-chip button:hover { color: var(--accent); }

/* 反打（reverse）必须先问用户背后有什么——用底部这个输入框收集答案，不用原生
   prompt() 弹窗。needs-input 是"必须填、还没填"的持续状态：粗虚线框常驻提醒；
   蒙版盖在输入框上方，文字闪烁，点一下蒙版就消失、把输入框露出来给用户打字。
   两者都清掉才算解除高亮（清空逻辑见 workbench.js 的 clearReverseHintPending()）。 */
.prompt-input-wrap.needs-input textarea {
  border: 3px dashed #e0785a; border-radius: 8px;
}
.prompt-hint-overlay {
  position: absolute; left: 1px; right: 1px; top: 1px; bottom: 52px; border-radius: 6px;
  background: rgba(224, 120, 90, 0.14); display: flex; align-items: center; justify-content: center;
  cursor: text; z-index: 2;
}
.prompt-hint-overlay.hidden { display: none; }
.prompt-hint-overlay span {
  color: #e0785a; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  animation: hint-blink 1s ease-in-out infinite;
}
@keyframes hint-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.prompt-error { color: #e0785a; font-size: 12px; margin-top: 6px; }
.prompt-error.hidden { display: none; }

.canvas-frame img.canvas-image { width: 100%; height: 100%; object-fit: contain; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: auto; }

/* 提示词输入框上方的运行状态区——折叠时只显示当前一行状态，点了才展开看完整
   时间线。不是调试控制台的替代品（没有模型调用原文/JSON diff 这些细节），只是
   让"这次生成跑到哪一步了/有没有出错"不用跳出工作台就能看到。 */
.status-panel { margin: 0 24px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; flex-shrink: 0; }
.status-panel-header {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: transparent; border: none; color: var(--text); cursor: pointer; text-align: left; font-size: 12px;
}
.status-panel-header:hover { background: rgba(212, 154, 72, 0.06); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.status-dot.running { background: var(--accent); animation: status-pulse 1.4s ease-in-out infinite; }
.status-dot.done { background: #5ec48a; }
.status-dot.error { background: #e0785a; }
.status-dot.waiting { background: #e0a85a; }
@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.status-panel-current { flex-grow: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-panel-header svg { transition: transform 0.15s ease; color: var(--muted); flex-shrink: 0; }
.status-panel.expanded .status-panel-header svg { transform: rotate(180deg); }
.status-panel-body { border-top: 1px solid var(--line); }
.status-panel-body.hidden { display: none; }
.status-log { max-height: 220px; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.status-log-row { display: flex; gap: 10px; font-size: 12px; align-items: baseline; }
.status-log-time { color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.status-log-row.error .status-log-label { color: #e0785a; }
.status-log-row.done .status-log-label { color: #5ec48a; }
.status-log-row.waiting .status-log-label { color: #e0a85a; }
.status-log-empty { color: var(--muted); font-size: 12px; padding: 4px 0; }

/* 流水线停下来问的选择题。跟底部“描述场景”输入框不是一回事：这里只能点选项，
   不能打自由文本。藏起来时靠全局 .hidden。 */
.clarify-panel {
  margin: 0 24px 12px; padding: 14px 16px; border: 1px solid #e0a85a; border-radius: 8px;
  background: rgba(224, 168, 90, 0.08); flex-shrink: 0;
}
.clarify-kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.04em; color: #e0a85a; font-weight: 600; }
.clarify-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.clarify-options { display: flex; flex-wrap: wrap; gap: 8px; }
.clarify-options button { margin: 0; }
.clarify-error { margin: 10px 0 0; color: #e0785a; font-size: 12px; }

/* 悬浮回收站——固定在视口右下角，跟当前是库页面还是场景工作区无关，随时点得到。 */
.recycle-bin-panel {
  position: fixed; right: 24px; bottom: 84px; z-index: 41; width: 320px; max-height: 420px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column;
}
.recycle-bin-panel.hidden { display: none; }
.recycle-bin-header {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.recycle-bin-header button { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.recycle-bin-header button:hover { color: var(--accent); }
.recycle-bin-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.recycle-bin-empty { color: var(--muted); font-size: 12px; padding: 16px; text-align: center; }
.recycle-bin-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px;
}
.recycle-bin-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recycle-bin-item-meta { color: var(--muted); font-size: 10px; margin-top: 2px; }
.recycle-bin-item button { flex-shrink: 0; min-width: auto; padding: 4px 10px; font-size: 11px; }

.asset-trash-btn {
  position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 6px;
  background: rgba(11, 13, 18, 0.75); border: 1px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0;
  transition: opacity 0.15s ease;
}
.asset-card:hover .asset-trash-btn { opacity: 1; }
.asset-trash-btn:hover { color: #e0785a; border-color: #e0785a; }

.wb-count { font-size: 13px; color: var(--muted); }
.wb-section { display: flex; flex-direction: column; gap: 14px; }
.wb-section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wb-section-title { font-size: 14px; font-weight: 600; }
.wb-section-sub { font-size: 12px; color: var(--muted); }
.empty-hint {
  border: 1px dashed rgba(212, 154, 72, 0.35); border-radius: 12px; padding: 40px 28px; text-align: center;
  color: var(--muted); font-size: 13px; background: rgba(212, 154, 72, 0.06); min-height: 600px;
  display: flex; align-items: center; justify-content: center;
}

/* 占位期只有 3 张示例卡，桌面宽度下本来就是一排；这个上限是给以后加更多
   示例卡片留的安全线——最多撑到两排完整高度，不会把卡片从中间切掉。 */
.example-grid {
  max-height: 520px; overflow: hidden;
}

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.asset-card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; padding: 0; }
.asset-card:hover { border-color: var(--accent); }
.asset-thumb { height: 168px; background: #0d1016; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; color: #544d3e; }
.asset-thumb .ratio-tag { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(11, 13, 18, 0.7); color: var(--muted); font-size: 10px; }
.asset-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.asset-name { font-size: 14px; font-weight: 600; }
.asset-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; }
.tag.project { border: 1px solid rgba(126, 162, 196, 0.4); color: var(--accent-2); }
.tag.state { background: rgba(212, 154, 72, 0.12); color: var(--accent); }
.asset-meta { font-size: 11px; color: var(--muted); }
.asset-card.new-card {
  border-style: dashed; align-items: center; justify-content: center; color: var(--muted);
  min-height: 236px; gap: 8px; background: transparent;
}


/* #viewScene 本身要撑满 .wb-main 的高度、自己也是 flex column，workspace-body
   才能靠 flex-grow:1 吃掉除 topbar/底部提示词栏之外的所有空间并在内部滚动。 */
#viewScene { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.workspace-body { flex-grow: 1; display: flex; min-height: 0; overflow-y: auto; }
.workspace-canvas-col { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 28px 24px; gap: 18px; box-sizing: border-box; }
.shot-board {
  width: 100%;
  display: grid;
  grid-template-columns: 148px minmax(220px, 1fr) 148px;
  grid-template-areas:
    ". high ."
    "left stage right"
    ". low ."
    ". reverse ."
    "steps steps steps";
  gap: 12px;
  align-items: center;
}
.shot-board.is-new { display: flex; justify-content: center; }
.shot-board.is-new .shot-card,
.shot-board.is-new .shot-master,
.shot-board.is-new .shot-steps { display: none; }
#shotCardHigh { grid-area: high; justify-self: center; width: 148px; }
#shotCardLeft { grid-area: left; }
#shotCardRight { grid-area: right; }
#shotCardLow { grid-area: low; justify-self: center; width: 148px; }
#shotCardReverse { grid-area: reverse; justify-self: center; width: 148px; }
.shot-stage { grid-area: stage; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.shot-master, .shot-card {
  border: 1px solid var(--line); background: #0d1016; color: var(--text);
  cursor: pointer; text-align: left; padding: 8px;
}
.shot-master { width: auto; font-size: 12px; color: var(--muted); }
.shot-master.selected, .shot-card.selected { border-color: var(--accent); color: var(--accent); }
.shot-card { width: 100%; min-height: 112px; display: flex; flex-direction: column; gap: 4px; }
.shot-card img { width: 100%; height: 72px; object-fit: cover; background: #0d1016; }
.shot-card-label { font-size: 13px; font-weight: 600; }
.shot-card-path, .shot-card-status { font-size: 11px; color: var(--muted); }
.shot-steps { grid-area: steps; border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; }
.shot-steps h3 { margin: 0 0 8px; font-size: 13px; }
.shot-step-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.shot-step-list li { font-size: 12.5px; }
.shot-reverse-ask { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.shot-reverse-ask textarea { min-height: 72px; width: 100%; box-sizing: border-box; }
.shot-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 12px; }
.canvas-frame {
  background: #0d1016; border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; position: relative; color: #544d3e;
}
.canvas-frame .ratio-tag { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 5px; background: rgba(11, 13, 18, 0.7); color: var(--muted); font-size: 11px; }
.view-strip-label { font-size: 12px; color: var(--muted); }
.view-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.view-thumb {
  width: 96px; height: 96px; border-radius: 8px; background: #0d1016; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; color: #544d3e; font-size: 10px;
}
.view-thumb span { color: var(--muted); }
.view-thumb.current { border-color: var(--accent); border-width: 2px; }
.view-thumb.current span { color: var(--accent); }
.view-thumb.new-view { border-style: dashed; color: var(--muted); }

.wb-side-panel { width: 400px; flex-shrink: 0; border-left: 1px solid var(--line); overflow-y: auto; box-sizing: border-box; padding: 24px 22px; display: flex; flex-direction: column; gap: 26px; }
.panel-title { font-size: 13px; font-weight: 600; }
.panel-sub { font-size: 12px; color: var(--muted); line-height: 1.6; margin: -6px 0 0; }
.dna-list { display: flex; flex-direction: column; gap: 8px; }
.dna-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; background: var(--panel); border: 1px solid var(--line); }
.dna-row-label { font-size: 11px; color: var(--muted); }
.dna-row-value { font-size: 12.5px; }
.lock-tag {
  display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px;
  border: 1px solid rgba(232, 214, 176, 0.2); color: var(--muted); font-size: 10px; white-space: nowrap; flex-shrink: 0;
}
.lock-tag.editable { border: none; background: rgba(212, 154, 72, 0.12); color: var(--accent); }

.chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--panel);
  border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; width: auto; min-width: 0;
  color: var(--text); font-weight: 400;
}
.chip:hover { border-color: var(--accent); }
.chip.wide { grid-column: 1 / -1; justify-content: space-between; }
.view-options { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 4px; }
.view-options button { width: auto; min-width: 0; padding: 5px 10px; font-size: 11px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.view-options button:hover { color: var(--accent); border-color: var(--accent); }

.history-list { display: flex; flex-direction: column; }
.history-item { display: flex; gap: 10px; }
.history-dot-col { display: flex; flex-direction: column; align-items: center; }
.history-dot { width: 7px; height: 7px; border-radius: 50%; background: #544d3e; margin-top: 5px; flex-shrink: 0; }
.history-dot.current { width: 8px; height: 8px; background: var(--accent); margin-top: 4px; }
.history-line { width: 1px; flex-grow: 1; background: var(--line); }
.history-body { padding-bottom: 16px; }
.history-body.current-body .history-label { color: var(--accent); }
.history-label { font-size: 12.5px; }
.history-time { font-size: 11px; color: var(--muted); }

@media (max-width: 1080px) {
  .workspace-body { flex-direction: column; }
  .wb-side-panel { width: auto; border-left: none; border-top: 1px solid var(--line); }
  .shot-board {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "stage stage"
      "left right"
      "high low"
      "reverse reverse"
      "steps steps";
  }
  #shotCardReverse { width: 100%; }
}

.account-wrap { max-width: 880px; margin: 32px auto; padding: 0 24px 64px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.account-nav { display: flex; flex-direction: column; gap: 8px; }
.account-nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.account-nav a[aria-current="page"] { color: var(--accent); }
.account-note { color: var(--muted); }
@media (max-width: 720px) {
  .account-wrap { grid-template-columns: 1fr; }
}
