/* 创作台主题：沿用参考 HTML 的自然绿、留白和对话式卡片布局。 */
:root {
  --ink: #1e2b24;
  --ink-soft: #5c6b61;
  --muted: #748178;
  --line: #e3e8e1;
  --line-strong: #cbd8cd;
  --paper: #f3f5f0;
  --sage-50: #eef3ec;
  --sage-100: #e4ecdf;
  --sage-300: #b9d3c0;
  --sage-500: #3f7d62;
  --sage-700: #235842;
  --forest: #143528;
  --studio-gradient: linear-gradient(100deg, #2e6b52, #57a67f);
  --shadow-sm: 0 1px 2px rgba(20, 53, 40, .04), 0 8px 24px rgba(20, 53, 40, .05);
  --radius: 14px;
}

html, body { min-width: 0; }
body {
  background: radial-gradient(1100px 420px at 50% -160px, rgba(63, 125, 98, .14), transparent 65%), var(--paper);
}
:is(button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: 3px;
}
button { transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.primary-button {
  border-color: transparent;
  border-radius: 10px;
  background: var(--studio-gradient);
  box-shadow: 0 5px 14px rgba(46, 107, 82, .2);
}
.primary-button:hover:not(:disabled) { background: var(--studio-gradient); transform: translateY(-1px); }
.primary-button:disabled { box-shadow: none; }

/* 品牌保持居中；导航和账号分别占据两侧，避免绝对定位互相覆盖。 */
.app-shell .topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  height: 78px;
  padding: 16px 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.topbar-navigation { display: flex; align-items: center; gap: 10px; }
.app-shell .brand-lockup { gap: 10px; }
.app-shell .brand-lockup strong { color: var(--forest); font-size: 20px; letter-spacing: .4px; white-space: nowrap; }
.app-shell .brand-mark { width: 38px; height: 38px; background: var(--studio-gradient); box-shadow: 0 4px 10px rgba(35, 88, 66, .2); }
.app-shell .brand-mark::before { background: #b9d6ae; }
.app-shell .brand-mark::after { background: #86b694; }
.brand-badge { padding: 3px 7px; border-radius: 6px; color: #fff; background: #c58b29; font-size: 10px; letter-spacing: .6px; box-shadow: 0 2px 6px rgba(197, 139, 41, .2); }
.app-shell .topbar-tool { padding: 8px 14px; border-color: var(--line); border-radius: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.topbar-tool > span { margin-right: 3px; font-size: 15px; }
.app-shell .topbar-actions { justify-self: end; gap: 8px; }
.user-session button { font-size: 12px; }

.app-shell .studio-layout { width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px 28px 40px 212px; }
.app-shell .workspace-panels { min-width: 0; margin-top: 0; }
.app-shell .workspace-panel { padding-top: 26px; }
.app-shell .workspace-tabs {
  position: fixed;
  inset: 120px auto auto 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 160px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
/* 连线仅绘制在步骤之间，避免进度卡片撑高导航后被竖线穿过。 */
.app-shell .workspace-tab + .workspace-tab::before { content: ""; position: absolute; top: -11px; left: 24px; width: 2px; height: 10px; background: #dce6da; pointer-events: none; }
.app-shell .workspace-tab {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.app-shell .workspace-tab:hover { border-color: var(--sage-300); background: #f9fbf7; }
.app-shell .workspace-tab.is-active { border-color: #dce6da; color: var(--forest); background: var(--sage-100); }
.app-shell .workspace-tab > span:first-child { display: grid; flex: none; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 11px; box-shadow: none; }
.app-shell .workspace-tab.is-active > span:first-child { border-color: var(--sage-700); color: #fff; background: var(--sage-700); }
.app-shell .workspace-tab b { font-size: 12px; font-weight: 650; }
.app-shell .workspace-tab :is(small, em, .tab-badges) { display: none; }
.app-shell .workspace-live-strip {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy copy" "track percent" "elapsed elapsed" "eta eta" "action action";
  gap: 10px 8px;
  margin-top: 8px;
  padding: 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.app-shell .workspace-live-pulse { position: absolute; top: 19px; left: 12px; }
.app-shell .workspace-live-copy { grid-area: copy; width: 100%; }
.app-shell .workspace-live-copy strong { padding-left: 16px; font-size: 12px; line-height: 1.6; white-space: normal; }
.app-shell .workspace-live-copy span { margin-top: 5px; font-size: 11px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.app-shell .workspace-live-track { grid-area: track; }
.app-shell .workspace-live-percent { grid-area: percent; min-width: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.workspace-live-track span, .live-progress-track span { background: var(--studio-gradient); }
.app-shell .workspace-live-time { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; margin-left: 0; font-size: 10px; line-height: 1.6; }
.app-shell .workspace-live-time.is-elapsed { grid-area: elapsed; }
.app-shell .workspace-live-time.is-eta { grid-area: eta; }
.app-shell .workspace-live-time b { min-width: 0; font-weight: 600; text-align: right; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.app-shell .workspace-live-button { grid-area: action; min-height: 32px; margin-top: 2px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--sage-700); background: var(--sage-50); font-size: 11px; font-weight: 600; }
.app-shell .workspace-live-button:hover { border-color: var(--sage-300); background: var(--sage-100); }

/* 主题输入与生成操作集中在主卡片，其余内容按需补充。 */
.create-heading { margin: 0 0 26px; text-align: center; }
.create-heading h1 { color: var(--forest); font-size: 32px; font-weight: 800; line-height: 1.3; letter-spacing: .4px; }
.create-heading p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.create-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px 24px 0;
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.create-composer .topic-field { display: contents; }
.create-composer .topic-field > span { grid-row: 1; margin-bottom: 14px; }
.create-composer .topic-field > span b { color: var(--sage-700); font-size: 13px; font-weight: 600; }
.create-composer .topic-field textarea {
  grid-row: 3;
  width: 100%;
  min-height: 104px;
  max-height: 280px;
  margin: 13px 0 0;
  padding: 8px 16px;
  resize: vertical;
  border: 0;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
}
.topic-field textarea::placeholder { color: #89958c; }
.create-composer .creation-scenario { grid-row: 2; margin: 0; }
.creation-scenario > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid #dde8de;
  border-radius: 9px;
  color: var(--sage-700);
  background: var(--sage-50);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.creation-scenario > summary::-webkit-details-marker { display: none; }
.creation-scenario[open] .scenario-chevron { transform: rotate(180deg); }
.creation-scenario > .setting-label { margin: 15px 0 9px; }
.create-composer .scenario-grid { padding: 0 0 7px; }
.create-composer .scenario-card { border-radius: 9px; font-size: 12px; }
.creation-basics { gap: 12px; margin: 12px 0 18px; grid-template-columns: 70px minmax(0, 1.15fr) minmax(0, 1fr); }
.creation-basics .setting-label { color: var(--muted); font-size: 11px; font-weight: 500; }
.creation-basics :is(input, select), .create-composer .style-choice-button { height: 38px; min-height: 38px; border-color: var(--line); border-radius: 8px; background: #fafbf8; }
.create-composer .style-choice-button em { color: var(--sage-500); }
.creation-actions { position: static; gap: 12px; margin: 0 -24px; padding: 15px 24px; border-color: var(--line); border-radius: 0 0 14px 14px; box-shadow: none; }
.creation-actions .primary-button { min-width: 145px; min-height: 42px; border-radius: 10px; }
.creation-actions .ghost-button { color: var(--muted); }
.creation-action-copy p { color: var(--muted); }

/* 示例入口使用轻量卡片呈现，创作步骤保持普通表单式交互。 */
.studio-assistant { display: flex; align-items: flex-start; gap: 14px; margin-top: 26px; }
.studio-mascot { position: relative; flex: 0 0 52px; height: 52px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 34% 28%, #78bd95, #2e6b52 72%); box-shadow: 0 6px 14px rgba(46, 107, 82, .22); }
.studio-mascot { display: none; }
.studio-mascot::before, .studio-mascot::after { content: ""; position: absolute; top: 16px; width: 14px; height: 16px; border-radius: 50%; background: #fff; }
.studio-mascot::before { left: 10px; }
.studio-mascot::after { right: 10px; }
.studio-mascot i { position: absolute; z-index: 1; top: 21px; width: 6px; height: 7px; border-radius: 50%; background: var(--forest); }
.studio-mascot i:first-child { left: 15px; }
.studio-mascot i:last-child { right: 14px; }
.assistant-card { flex: 1; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.assistant-card h2 { margin: 0; color: var(--forest); font-size: 14px; font-weight: 700; }
.assistant-card h2 span { color: var(--sage-500); }
.assistant-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.assistant-card .prompt-starters { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; }
.assistant-card .prompt-starters > span { display: none; }
.assistant-card .prompt-starters button { padding: 8px 12px; border: 1px solid #dde8de; border-radius: 9px; color: var(--sage-700); background: #f1f5ee; font-size: 12px; line-height: 1.5; text-align: left; }
.assistant-card .prompt-starters button:hover { border-color: var(--sage-300); background: var(--sage-100); }
.studio-materials { margin-top: 24px; }
.studio-materials-hint { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); background: #f1f5ee; font-size: 12px; line-height: 1.6; }
.studio-materials .material-upload-block { margin: 0; padding: 0; border: 0; background: transparent; }
.studio-materials .material-dropzone { min-height: 82px; padding: 16px 18px; border: 1.5px dashed #8bb29a; border-radius: 13px; background: #fff; }
.studio-materials .material-dropzone:hover { background: var(--sage-50); }
.studio-materials .material-upload-icon { border-radius: 11px; background: #1c4736; box-shadow: 0 4px 10px rgba(28, 71, 54, .15); }
.studio-materials .material-upload-status { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f1f5ee; }
.studio-materials .material-file-list:empty { display: none; }
.creation-settings { margin-top: 22px; padding: 0 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.creation-settings .creation-disclosure:first-child { border-top: 0; }
.creation-settings .creation-disclosure > summary { min-height: 53px; }
.creation-settings .scenario-context-panel { margin: 0; padding: 14px; background: #f8faf6; }
.creation-settings .goal-heading { margin-top: 20px; }
.creation-settings .ai-content-grid .goal-input { min-height: 140px; font-size: 13px; }
.creation-settings .ai-content-field > span { min-height: 40px; }
.creation-settings #reviewModelSetting { display: block; margin: 18px 0 0; }
.studio-footer-note { margin: 28px 0 0; color: var(--muted); font-size: 11px; text-align: center; letter-spacing: 1px; }

/* 大纲、预览、交付和弹窗共用同一套配色，保留各自真实任务状态。 */
.panel-heading h3 { color: var(--forest); }
.outline-empty, .visual-empty { border-color: var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.task-context, .outline-summary-card, .user-delivery-card { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.workspace-dialog, .style-library-dialog { border-color: var(--line); border-radius: 18px; }
.workspace-dialog[open], .style-library-dialog[open] { display: flex; flex-direction: column; max-height: 92dvh; }
.workspace-dialog-head, .style-library-head { flex: none; background: #f8faf6; }
.workspace-dialog-head button, .style-library-head button { flex: none; white-space: nowrap; }
.task-library-toolbar, .task-library-summary, .workspace-dialog-footer { flex: none; }
.task-library-list { flex: 1; min-height: 80px; height: auto; }
.style-library-grid { min-height: 0; max-height: none; }
.is-visual-workspace .app-shell .studio-layout { max-width: none; padding: 14px 28px 20px 212px; }
.is-visual-workspace .app-shell .workspace-panels { margin-top: 0; }
.is-visual-workspace .app-shell .workspace-tabs { flex: none; }
.is-visual-workspace .app-shell .workspace-panel { padding-top: 0; }
.visual-generation-progress { flex: none; margin-bottom: 12px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.85); }
.visual-generation-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; }
.visual-generation-heading strong { color: var(--forest); font-weight: 650; }
.visual-generation-heading span { color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.visual-generation-track { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: var(--sage-100); }
.visual-generation-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--studio-gradient); transition: width .5s ease; }
.visual-generation-progress p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.visual-generation-progress.is-error { border-color: var(--pink-100); }
.visual-generation-progress.is-error .visual-generation-track span { background: var(--danger); }
@media (prefers-reduced-motion: reduce) { .visual-generation-track span { transition: none; } }

/* 在固定页位内逐步填充预览，等待、生成与失败各有明确状态。 */
.outline-media-summary { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--sage-700); background: var(--sage-50); font-size: 13px; line-height: 1.7; }
.outline-media-summary.is-empty { color: #836324; border-color: #e6d9bb; background: #fffaf0; }
.visual-gate.is-building .visual-layout { grid-template-columns: 156px minmax(0, 1fr); }
.visual-gate.is-building .visual-review-panel { display: none; }
.visual-generation-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.visual-generation-footer p { margin: 0; }
.visual-generation-footer button { flex: none; min-height: 34px; padding: 7px 12px; font-size: 12px; }
.visual-generation-progress.is-running .visual-generation-track { position: relative; }
.visual-generation-progress.is-running .visual-generation-track::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, #ffffffa6 50%, transparent 75%); animation: visual-shimmer 1.8s linear infinite; }
.visual-preview-card > .visual-thumbnail { position: relative; display: block; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #f2f5f1; }
.visual-thumbnail img { position: absolute; inset: 0; height: 100%; animation: visual-preview-reveal .35s ease-out; }
.visual-page-skeleton { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 7px; padding: 14px 12px; }
.visual-page-skeleton i { display: block; width: 70%; height: 5px; border-radius: 3px; background: #dbe4dc; }
.visual-page-skeleton i:nth-child(2) { width: 45%; }
.visual-page-skeleton i:nth-child(3) { width: 100%; flex: 1; min-height: 10px; margin-top: 2px; background: #e5ebe4; }
.visual-thumbnail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, #ffffffbf 50%, transparent 80%); animation: visual-shimmer 1.8s linear infinite; }
.visual-preview-card.has-preview .visual-thumbnail::after, .visual-preview-card.has-preview .visual-page-skeleton { display: none; }
.visual-page-status { overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.visual-preview-card[data-status="active"] { border-color: var(--sage-500); }
.visual-preview-card[data-status="active"] .visual-page-status { color: var(--sage-700); font-weight: 700; }
.visual-preview-card[data-status="ready"] .visual-page-status { color: var(--sage-700); }
.visual-preview-card[data-status="error"] .visual-page-status { color: var(--danger); }
.visual-preview-card[data-status="error"] .visual-thumbnail { background: var(--pink-50); }
.visual-preview-card:is([data-status="error"], [data-status="paused"]) .visual-thumbnail::after { display: none; }
.visual-loading-spinner { display: block; width: 30px; height: 30px; border: 3px solid #d9e7dd; border-top-color: var(--sage-700); border-radius: 50%; animation: visual-spin .85s linear infinite; }
.visual-page-skeleton .visual-loading-spinner { display: none; position: absolute; width: 20px; height: 20px; left: calc(50% - 10px); top: calc(50% - 10px); border-width: 2px; background: #f2f5f1; }
.visual-preview-card[data-status="active"] .visual-loading-spinner { display: block; }
.visual-main-frame[aria-disabled="true"] { cursor: default; }
.visual-main-frame { position: relative; }
.visual-main-frame > img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); max-width: none; max-height: none; aspect-ratio: auto; object-fit: contain; background: transparent; }
.visual-slide-placeholder { position: relative; width: 100%; max-height: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.visual-skeleton-layout { position: absolute; inset: 10%; display: flex; flex-direction: column; gap: 15px; opacity: .7; }
.visual-skeleton-layout > i { width: 48%; height: 18px; border-radius: 6px; background: #e7eee7; }
.visual-skeleton-layout > i:nth-child(2) { width: 30%; height: 9px; }
.visual-skeleton-layout > div { display: grid; flex: 1; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 12px; }
.visual-skeleton-layout > div i { border-radius: 12px; background: #f0f4ef; }
.visual-slide-placeholder::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 25%, #ffffffa6 50%, transparent 75%); animation: visual-shimmer 2.2s linear infinite; }
.visual-placeholder-copy { position: relative; z-index: 1; display: grid; justify-items: center; max-width: 85%; padding: 20px 24px; border: 1px solid #e1e9e1; border-radius: 14px; background: #ffffffed; box-shadow: 0 6px 24px #23453209; }
.visual-placeholder-copy strong { margin-top: 12px; font-size: 17px; }
.visual-placeholder-copy small { max-width: 390px; margin-top: 8px; line-height: 1.7; }
.visual-main-frame:is([data-status="error"], [data-status="paused"]) .visual-slide-placeholder::after { display: none; }
.visual-main-frame:is([data-status="error"], [data-status="paused"]) .visual-loading-spinner { animation: none; border-color: var(--line-strong); }
.visual-main-frame[data-status="error"] .visual-placeholder-copy strong { color: var(--danger); }
.visual-main-frame[data-status="error"] .visual-loading-spinner { border-color: var(--pink-100); border-top-color: var(--danger); }
.visual-main-frame[data-status="error"] .visual-loading-spinner::after { content: "!"; display: block; color: var(--danger); font-weight: 700; line-height: 24px; }
@keyframes visual-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes visual-spin { to { transform: rotate(360deg); } }
@keyframes visual-preview-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1100px) { .visual-gate.is-building .visual-layout { grid-template-columns: 136px minmax(0, 1fr); } }
@media (max-width: 600px) {
  .visual-gate.is-building .visual-layout { grid-template-columns: 90px minmax(0, 1fr); }
  .visual-generation-footer { flex-wrap: wrap; }
  .visual-generation-footer button { width: 100%; }
  .visual-page-meta { flex-wrap: wrap; }
  .visual-page-skeleton { padding: 8px; gap: 4px; }
  .visual-slide-placeholder { min-height: 230px; }
  .visual-main-frame > img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  .visual-placeholder-copy { max-width: 94%; padding: 14px 9px; }
  .visual-placeholder-copy strong { font-size: 13px; }
  .visual-skeleton-layout { gap: 8px; }
  .visual-skeleton-layout > div { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-thumbnail::after, .visual-slide-placeholder::after, .visual-loading-spinner,
  .visual-generation-progress.is-running .visual-generation-track::after, .visual-thumbnail img { animation: none; }
}
.auth-screen { background: radial-gradient(900px 440px at 50% 0, #e3ebdf, transparent), var(--paper); }
.auth-shell { border-color: var(--line); border-radius: 20px; box-shadow: 0 18px 60px rgba(20, 53, 40, .1); }
.auth-intro { background: linear-gradient(145deg, #143528, #2e6b52); }

@media (max-width: 1100px) {
  .app-shell .workspace-tabs { left: 16px; width: 146px; }
  .app-shell .studio-layout { padding-left: 188px; padding-right: 24px; }
  .is-visual-workspace .app-shell .studio-layout { padding-left: 188px; padding-right: 20px; }
  .app-shell .topbar { padding: 16px 24px; gap: 12px; }
  .brand-badge { display: none; }
}

@media (max-width: 1100px) {
  .task-library-columns { display: none; }
  .task-library-row { grid-template-columns: minmax(0, 1fr) 272px; grid-template-areas: "main state" "models actions"; gap: 16px 24px; margin-bottom: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
  .task-library-columns + .task-library-row { border-top: 1px solid var(--line); }
  .task-library-main { grid-area: main; }
  .task-library-meta { grid-area: models; }
  .task-library-state { grid-area: state; }
  .task-row-actions { grid-area: actions; }
  .task-library-meta { max-width: 360px; }
  .task-library-state { width: 140px; justify-self: end; }
}

@media (max-width: 880px) {
  .app-shell .topbar { height: auto; min-height: 72px; grid-template-columns: 1fr auto; row-gap: 16px; }
  .app-shell .brand-lockup { grid-row: 1; grid-column: 1; }
  .app-shell .topbar-actions { grid-row: 1; grid-column: 2; }
  .topbar-navigation { grid-row: 2; grid-column: 1 / -1; }
  .app-shell .studio-layout, .is-visual-workspace .app-shell .studio-layout { padding: 10px 24px 32px; }
  .app-shell .workspace-tabs { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: auto; }
  .app-shell .workspace-tab + .workspace-tab::before { display: none; }
  .app-shell .workspace-tab { justify-content: center; gap: 7px; padding: 9px 7px; }
  .app-shell .workspace-live-strip { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy percent" "track track" "elapsed eta" "action action"; column-gap: 20px; margin-top: 4px; }
  .is-visual-workspace .app-shell .workspace-panels { margin-top: 16px; }
  .create-heading { margin-bottom: 22px; }
  .create-heading h1 { font-size: 29px; }
  .outline-meta-grid { grid-template-columns: minmax(0, 1fr); }
  .task-header { align-items: stretch; flex-direction: column; gap: 14px; }
  .task-header-side { flex-wrap: wrap; justify-content: flex-start; }
  .live-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-library-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-library-toolbar > label:first-child { grid-column: 1 / -1; }
  .task-library-toolbar > label { min-width: 0; }
  .task-library-row { grid-template-columns: minmax(0, 1fr) 140px; grid-template-areas: "main main" "models state" "actions actions"; }
  .task-row-actions { padding-top: 12px; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .app-shell .topbar { padding: 15px 16px 8px; column-gap: 8px; row-gap: 12px; }
  .app-shell .brand-lockup { gap: 8px; }
  .app-shell .brand-lockup strong { font-size: 17px; }
  .app-shell .brand-mark { width: 34px; height: 34px; }
  .app-shell .user-session span { display: none; }
  .app-shell .topbar-tool { min-height: 36px; padding: 8px 12px; }
  .app-shell .studio-layout, .is-visual-workspace .app-shell .studio-layout { padding: 10px 14px 26px; }
  .app-shell .workspace-tabs { gap: 6px; }
  .app-shell .workspace-tab { flex-direction: column; gap: 6px; min-height: 67px; padding: 10px 2px; border-radius: 10px; }
  .app-shell .workspace-tab b { font-size: 11px; }
  .app-shell .workspace-tab > span:first-child { display: grid; width: 21px; height: 21px; }
  .app-shell .workspace-panel { padding-top: 25px; }
  .create-heading h1 { font-size: 27px; }
  .create-heading p { max-width: 26em; margin: 9px auto 0; font-size: 12px; }
  .create-composer { padding: 18px 16px 0; }
  .create-composer .topic-field textarea { min-height: 114px; font-size: 14px; }
  .creation-basics { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
  .creation-basics > label:last-child { grid-column: 1 / -1; }
  .creation-actions { flex-wrap: wrap; margin: 0 -16px; padding: 14px 16px; }
  .creation-action-copy { flex-basis: 100%; }
  .creation-actions .primary-button { flex: 1; }
  .studio-assistant { gap: 9px; margin-top: 22px; }
  .studio-mascot { flex-basis: 38px; height: 40px; }
  .studio-mascot::before, .studio-mascot::after { top: 12px; width: 11px; height: 13px; }
  .studio-mascot::before { left: 6px; }
  .studio-mascot::after { right: 6px; }
  .studio-mascot i { top: 16px; width: 5px; height: 6px; }
  .studio-mascot i:first-child { left: 10px; }
  .studio-mascot i:last-child { right: 9px; }
  .assistant-card { padding: 16px 14px; }
  .assistant-card h2 { font-size: 13px; line-height: 1.6; }
  .assistant-card .prompt-starters { gap: 7px; }
  .assistant-card .prompt-starters button { width: 100%; padding: 8px 10px; }
  .studio-materials .material-dropzone { gap: 12px; padding: 15px 12px; }
  .creation-settings { padding: 0 15px; }
  .creation-settings .scenario-context-panel, .creation-settings .ai-content-grid, .creation-models { grid-template-columns: minmax(0, 1fr); }
  .creation-settings .creation-disclosure > summary { flex-wrap: wrap; gap: 7px; }
  .creation-settings .goal-heading { flex-wrap: wrap; gap: 12px; }
  .creation-settings .ai-content-field > span { min-height: 0; }
  .material-file-chip { max-width: 100%; overflow-wrap: anywhere; }
  .task-context { padding: 16px; }
  .live-generation-card { padding: 14px; }
  .live-generation-head { align-items: flex-start; gap: 12px; }
  .live-generation-copy strong { font-size: 14px; }
  .live-generation-copy p { font-size: 11px; }
  .live-metric-grid, .live-metric-grid.has-delivery, .stage-list { grid-template-columns: minmax(0, 1fr); }
  .stage-board summary { grid-template-columns: 1fr auto; }
  .stage-board summary strong { display: none; }
  .live-page-rail { display: flex; flex-wrap: wrap; }
  .live-preview-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-visual-workspace .app-shell .workspace-tabs { gap: 5px; }
  .is-visual-workspace .app-shell .workspace-tab { min-height: 38px; flex-direction: row; }
  .is-visual-workspace .app-shell .workspace-tab > span:first-child { display: none; }
  .auth-shell { border-radius: 14px; }
  .workspace-dialog-head, .style-library-head { gap: 12px; padding: 18px 16px; }
  .workspace-dialog-head p, .style-library-head p { line-height: 1.6; }
  .workspace-dialog-head strong, .style-library-head strong { font-size: 18px; }
  .task-library-toolbar { padding: 14px 16px; }
  .task-library-toolbar :is(input, select, button) { min-width: 0; font-size: 12px; }
  .task-library-summary { gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
  .task-library-list { padding: 0 16px 16px; }
  .task-library-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "models" "state" "actions"; gap: 16px; padding: 16px; }
  .task-library-state { width: 100%; }
  .task-library-status { justify-content: flex-start; }
  .task-library-status > :last-child { margin-left: auto; }
  .task-row-actions { justify-content: flex-start; }
  .workspace-dialog-footer { gap: 12px; padding: 12px 16px; }
  .workspace-dialog-footer button { font-size: 12px; }
  .style-library-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .style-library-card { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  .primary-button:hover:not(:disabled) { transform: none; }
}

/* 前期以对话卡片逐步收集主题、视觉风格和内容要求。 */
.guide-start-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-start-actions > span { flex: 1; color: var(--muted); font-size: 12px; }
.create-composer:has(.guide-start-actions) { padding-bottom: 24px; }
.creation-guide, .outline-conversation { display: grid; gap: 18px; min-width: 0; }
.creation-guide > .creation-transcript, .creation-guide > .guide-user-message { display: none; }
.guide-user-message { display: flex; justify-self: end; align-items: flex-end; gap: 12px; max-width: 88%; margin: 10px 0; }
.guide-user-message p { margin: 0; padding: 17px 22px; border-radius: 18px 18px 4px 18px; color: #fff; background: var(--forest); font-size: 16px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.guide-user-message > div > span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; text-align: right; }
.guide-user-message > button { flex: none; margin-bottom: 5px; font-size: 12px; }
.guide-assistant-card { min-width: 0; padding: 28px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 28px; }
.guide-assistant-label { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; color: var(--sage-700); font-size: 12px; font-weight: 700; }
.guide-assistant-label > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sage-100); font-size: 12px; }
.guide-assistant-label small { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.guide-assistant-card h2, .guide-assistant-card h3 { margin: 0; color: var(--forest); font-size: 22px; line-height: 1.5; }
.guide-description { margin: 8px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.guide-status { margin: 18px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.guide-thinking-wave, .guide-thinking-title, .guide-thinking-track { display: none; }
.guide-status.is-loading { position: relative; display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 16px 18px 22px; border: 1px solid #bfd7c8; border-radius: 12px; background: linear-gradient(110deg, #edf6ef, #f8fbf7); }
.guide-status.is-loading .guide-status-copy { display: grid; min-width: 0; gap: 3px; }
.guide-status.is-loading .guide-thinking-title { display: block; color: var(--forest); font-size: 15px; font-weight: 700; }
.guide-status.is-loading .guide-thinking-wave { display: flex; flex: none; align-items: center; justify-content: center; gap: 4px; width: 42px; height: 36px; }
.guide-thinking-wave i { width: 4px; height: 28px; border-radius: 4px; background: var(--sage-500); transform: scaleY(.3); animation: guide-thinking-wave 1s ease-in-out infinite; }
.guide-thinking-wave i:nth-child(2) { animation-delay: -.8s; }
.guide-thinking-wave i:nth-child(3) { animation-delay: -.6s; background: var(--sage-700); }
.guide-thinking-wave i:nth-child(4) { animation-delay: -.4s; }
.guide-thinking-wave i:nth-child(5) { animation-delay: -.2s; }
.guide-status.is-loading .guide-thinking-track { display: block; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 3px; overflow: hidden; border-radius: 3px; background: #dceadf; }
.guide-thinking-track i { display: block; width: 35%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #4b9871, #245f44, transparent); animation: guide-thinking-sweep 2s ease-in-out infinite; }
@keyframes guide-thinking-wave { 0%, 100% { transform: scaleY(.3); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes guide-thinking-sweep { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
.guide-topic-options { display: grid; gap: 12px; }
.guide-topic-modes { display: inline-flex; gap: 4px; max-width: 100%; margin-top: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--sage-50); }
.guide-topic-modes + .guide-custom-topic { margin-top: 14px; }
.guide-topic-modes button { min-height: 40px; padding: 9px 20px; border: 1px solid transparent; border-radius: 9px; color: var(--ink-soft); background: transparent; font-size: 13px; }
.guide-topic-modes button.is-selected { border-color: var(--line-strong); color: var(--sage-700); background: #fff; box-shadow: var(--shadow-sm); font-weight: 650; }
.guide-topic-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-custom-topic small { color: var(--muted); font-size: 11px; line-height: 1.6; }
#confirmGuideTopicButton { margin-left: auto; }
.guide-topic-card { display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; color: var(--ink); text-align: left; }
.guide-topic-card:hover, .guide-density-card:hover { border-color: var(--sage-300); }
.guide-topic-card.is-selected, .guide-density-card.is-selected { border-color: var(--sage-300); background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--sage-300); }
.guide-option-check { display: grid; flex: none; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 50%; color: #fff; font-size: 13px; }
.is-selected > .guide-option-check { border-color: var(--sage-700); background: var(--sage-700); }
.guide-topic-card strong { display: block; font-size: 16px; line-height: 1.6; }
.guide-topic-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.guide-custom-topic { display: grid; gap: 9px; margin-top: 22px; color: var(--ink-soft); font-size: 12px; }
.guide-custom-topic input { width: 100%; padding: 13px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; }
.guide-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; }
.guide-card-actions > span { color: var(--muted); font-size: 12px; }
.guide-style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-style-options .style-library-card { min-width: 0; padding: 10px; }
.guide-style-options .style-card-copy strong { font-size: 13px; }
.guide-style-options .style-card-copy p { font-size: 11px; }
.guide-style-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.guide-style-settings label { min-width: 0; }
.guide-style-settings select { width: 100%; height: 46px; margin-top: 8px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.guide-density-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-density-card, .guide-density-custom { display: grid; gap: 10px; align-content: center; min-width: 0; min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; text-align: left; }
.guide-density-card b, .guide-density-custom label { color: var(--ink); font-size: 15px; font-weight: 700; }
.guide-density-card span, .guide-density-custom small { color: var(--muted); font-size: 12px; }
.guide-density-custom input { width: 80px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 15px; }
.guide-assistant-card .studio-materials { margin-top: 24px; }
.guide-assistant-card .creation-settings { padding: 0; border: 0; }
.guide-assistant-card .creation-actions { flex-wrap: wrap; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); background: transparent; }
.guide-assistant-card .creation-actions .creation-action-copy { flex: 1; min-width: 200px; }
.outline-progress-details { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.outline-progress-details > summary { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; color: var(--sage-700); font-size: 14px; cursor: pointer; }
.outline-progress-details > summary small { flex: none; color: var(--muted); font-size: 11px; }
.outline-progress-details .task-context { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: none; }
.outline-stream-output { overflow: hidden; overflow-anchor: none; border-radius: 12px; background: #f6f8f4; }
.outline-stream-content { margin: 0; padding: 20px; color: var(--ink-soft); font-family: inherit; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.outline-stream-content:empty { display: none; }
.outline-thinking { display: flex; align-items: center; gap: 8px; padding: 20px; color: var(--muted); font-size: 12px; line-height: 20px; }
.outline-stream-content:not(:empty) + .outline-thinking { padding-top: 0; }
.outline-thinking-dots { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 20px; }
.outline-thinking-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--sage-500); opacity: .4; }
.is-thinking .outline-thinking-dots i { animation: outline-thinking-pulse 1.5s ease-in-out infinite; }
.is-thinking .outline-thinking-dots i:nth-child(2) { animation-delay: .2s; }
.is-thinking .outline-thinking-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes outline-thinking-pulse { 0%, 70%, 100% { transform: translateY(0); opacity: .3; } 35% { transform: translateY(-2px); opacity: .85; } }
.outline-conversation:not(.is-hidden) + .panel-heading { margin-top: 28px; }
@media (max-width: 660px) {
  .guide-assistant-card { padding: 20px 16px; }
  .guide-assistant-card h2, .guide-assistant-card h3 { font-size: 19px; }
  .guide-user-message { max-width: 100%; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .guide-user-message p { padding: 14px 17px; font-size: 14px; }
  .guide-style-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-style-settings { grid-template-columns: minmax(0, 1fr); }
  .guide-density-card, .guide-density-custom { padding: 15px 12px; }
  .guide-topic-card { padding: 16px; gap: 12px; }
  .guide-card-actions { align-items: stretch; flex-wrap: wrap; }
  .guide-card-actions .primary-button { margin-left: auto; }
  .guide-start-actions > span { flex-basis: 100%; }
  .guide-assistant-card .creation-actions .primary-button { width: 100%; }
  .outline-thinking, .outline-stream-content { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-thinking-wave i, .guide-thinking-track i,
  .is-thinking .outline-thinking-dots i { animation: none; }
  .guide-thinking-wave i:nth-child(2n) { transform: scaleY(.6); }
  .guide-thinking-wave i:nth-child(3) { transform: scaleY(1); }
}
.guide-style-options .style-library-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; }
.guide-style-options .style-swatch { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.guide-style-options .style-card-copy p { min-height: 2.8em; }

.image-model-hint { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* 对话收集需求，独立工作区确认大纲并按页制作。 */
.app-shell .legacy-workspace-tabs { display: none !important; }
.app-shell .studio-layout { max-width: 1080px; padding: 12px 32px 40px; }
.is-visual-workspace .app-shell .studio-layout { max-width: none; padding: 12px 24px 20px; }
.is-create-workspace .create-heading { margin-bottom: 22px; }
.creation-transcript { display: flex; flex-direction: column; gap: 22px; margin: 0 0 24px; }
.conversation-message { max-width: 86%; align-self: flex-start; }
.conversation-message > span { display: block; color: var(--muted); font-size: 11px; margin: 0 0 7px 2px; }
.conversation-message p { margin: 0; padding: 16px 20px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.8; border: 1px solid var(--line); }
.conversation-message.is-user { align-self: flex-end; }
.conversation-message.is-user > span { text-align: right; }
.conversation-message.is-user p { background: #e9f1e9; border-color: #d9e5db; border-radius: 16px 16px 4px 16px; }
.creation-guide .guide-assistant-card { border-radius: 16px; box-shadow: 0 4px 16px #183e2c06; }
.conversation-dialog { width: min(760px, calc(100vw - 32px)); max-height: 82dvh; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #f7f9f5; }
.conversation-dialog::backdrop { background: #14281e66; }
.conversation-dialog header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
#savedConversationContent { display: flex; flex-direction: column; gap: 18px; }
.visual-layout, .visual-gate.is-building .visual-layout { grid-template-columns: 132px minmax(0, 1fr) 370px; }
.visual-gate.is-building .visual-review-panel[open] { display: flex; }
.visual-outline-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 12px 16px 0; }
.visual-outline-panel .outline-conversation { max-width: none; margin: 0 0 8px; }
.visual-outline-panel .outline-conversation > .guide-user-message { display: none; }
.visual-outline-panel .outline-progress-details { margin: 0; border: 0; }
.visual-outline-panel .outline-progress-details > summary { padding: 0; font-size: 11px; }
.visual-outline-panel #outlineEditorHeading { display: none; }
.visual-outline-panel .outline-editor { gap: 8px; }
.visual-outline-panel .outline-summary-card { padding: 12px; border-radius: 10px; margin-bottom: 12px; background: #f8faf7; box-shadow: none; }
.outline-summary-card > summary { color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.visual-outline-panel .outline-meta-grid, .visual-outline-panel .slide-card-grid { grid-template-columns: 1fr; }
.visual-outline-panel .outline-meta-grid { margin-top: 12px; }
.visual-outline-panel .slide-toolbar { padding: 4px 0; gap: 8px; }
.visual-outline-panel .slide-toolbar span { font-size: 11px; }
.visual-outline-panel .outline-media-summary { font-size: 11px; line-height: 1.7; padding: 10px; margin: 6px 0 12px; }
.visual-outline-panel .slide-list { gap: 8px; }
.visual-outline-panel .slide-card { border-radius: 10px; box-shadow: none; padding: 0; overflow: hidden; }
.visual-outline-panel .slide-card-head { display: flex; width: 100%; gap: 10px; align-items: center; margin: 0; border: 0; border-radius: 0; padding: 10px 12px; background: #fff; text-align: left; color: var(--ink); }
.visual-outline-panel .slide-card-head strong { flex: 1; font-size: 12px; line-height: 1.6; }
.visual-outline-panel .slide-number { color: var(--forest); font-size: 12px; flex: none; }
.visual-outline-panel .outline-page-indicator { color: var(--muted); }
.visual-outline-panel .slide-card.is-current { border-color: #719480; }
.visual-outline-panel .slide-card.is-current .slide-card-head { background: #edf4ed; }
.visual-outline-panel .slide-card-grid { display: none; padding: 12px; gap: 12px; }
.visual-outline-panel .slide-card.is-current .slide-card-grid { display: grid; }
.visual-outline-panel .slide-card label, .visual-outline-panel .outline-summary-card label { display: flex; flex-direction: column; align-items: stretch; font-size: 11px; gap: 6px; }
.visual-outline-panel .slide-card .slide-card-grid { margin: 0; }
.visual-outline-panel .outline-summary-card { min-height: 0; }
.visual-outline-panel .outline-summary-card, .visual-outline-panel .outline-media-summary { display: none; }
.visual-main-frame.awaiting-outline .visual-loading-spinner { animation: none; border: 0; border-radius: 8px; background: #eaf2eb; color: var(--forest); }
.visual-main-frame.awaiting-outline .visual-loading-spinner::after { content: '✎'; font-size: 22px; line-height: 30px; }
.visual-main-frame.awaiting-outline .visual-slide-placeholder::after { animation: none; }
#closeVisualToolsButton { white-space: nowrap; }
.visual-outline-panel input, .visual-outline-panel textarea, .visual-outline-panel select { width: 100%; min-width: 0; font-size: 12px; line-height: 1.65; }
.visual-outline-panel textarea { min-height: 68px; max-height: 250px; overflow-y: auto; }
.visual-outline-panel .slide-card input:disabled, .visual-outline-panel .slide-card textarea:disabled { color: #526258; background: #f8faf7; opacity: 1; }
.outline-generation-actions { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px -16px 0; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 18px #183e2c05; }
.outline-generation-actions > p, .outline-confirm-actions, #downloadCurrentPageButton { grid-column: 1 / -1; }
.outline-generation-actions > p { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 0; }
.outline-generation-actions button { min-width: 0; padding: 10px 8px; font-size: 12px; white-space: normal; }
.outline-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.visual-outline-panel .outline-stream-content { padding: 14px 10px; font-size: 12px; line-height: 1.9; }
.visual-outline-panel .guide-assistant-card { padding: 12px; border: 0; box-shadow: none; }
.visual-outline-panel .task-context { display: block; }
/* 当前页大纲以树状内容为主，制作细节按需展开。 */
.visual-outline-panel .outline-tree { border: 0; border-radius: 0; overflow: visible; background: transparent; }
.visual-outline-panel .outline-tree.is-current .outline-tree-root { padding: 6px 0 10px; background: transparent; }
.outline-tree-root small { color: var(--muted); font-size: 10px; font-weight: 400; }
.visual-outline-panel .outline-tree .outline-tree-branches { position: relative; margin: 0 0 0 10px; padding: 4px 0 8px 18px; border-left: 1px solid #c5e4e8; gap: 20px; }
.outline-tree .outline-branch { position: relative; min-width: 0; }
.outline-tree .outline-branch::before { content: ''; position: absolute; top: 10px; left: -19px; width: 13px; height: 1px; background: #c5e4e8; }
.outline-tree .outline-branch::after { content: ''; position: absolute; top: 6px; left: -23px; width: 7px; height: 7px; border: 1px solid #edc5b5; border-radius: 50%; background: #fff; }
.outline-tree .outline-branch-title::after { border-color: #acd7e1; }
.visual-outline-panel .outline-tree label.outline-branch { gap: 3px; }
.outline-tree .outline-branch > span { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 20px; }
.visual-outline-panel .outline-tree .outline-branch > textarea { display: block; min-height: 24px; max-height: none; margin: 0; padding: 2px 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.8; box-shadow: none; overflow: hidden; opacity: 1; }
.visual-outline-panel .outline-tree .outline-branch-title > textarea { font-size: 17px; font-weight: 700; line-height: 1.55; }
.visual-outline-panel .outline-tree textarea.outline-content-box { display: block; width: 100%; min-width: 0; min-height: 112px; max-height: none; margin: 6px 0 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #f8faf7; color: var(--ink); font-size: 13px; font-weight: 400; line-height: 1.85; box-shadow: none; overflow: hidden; opacity: 1; }
.visual-outline-panel .outline-tree .outline-content-box:focus { border-color: var(--sage-500); background: #fff; outline: 2px solid var(--sage-50); outline-offset: 1px; }
.visual-outline-panel .outline-tree .outline-branch > textarea:not(:disabled):hover { background: #f5f8f4; }
.visual-outline-panel .outline-tree .outline-branch > textarea:focus { background: #f5f8f4; outline: 1px solid #b6cec2; outline-offset: 4px; }
.outline-tree .outline-extra > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 12px; line-height: 20px; font-weight: 500; cursor: pointer; list-style: none; }
.outline-tree .outline-extra > summary::-webkit-details-marker { display: none; }
.outline-tree .outline-extra > summary::after { content: '展开'; color: var(--muted); font-size: 11px; flex: none; }
.outline-tree .outline-extra[open] > summary::after { content: '收起'; }
.outline-extra-fields { display: grid; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 8px; background: #f7f9f6; }
.visual-outline-panel .outline-extra-fields textarea, .visual-outline-panel .outline-extra-fields select { padding: 8px 10px; background: #fff; }
.visual-tool-tabs { width: 100%; }
.visual-tool-tabs button { flex: 1; white-space: nowrap; font-size: 12px; }
@media (max-width: 1250px) and (min-width: 1101px) { .visual-layout, .visual-gate.is-building .visual-layout { grid-template-columns: 112px minmax(0, 1fr) 330px; gap: 10px; } }
@media (max-width: 1100px) { .visual-layout, .visual-gate.is-building .visual-layout { grid-template-columns: 112px minmax(0, 1fr); } .visual-review-panel { width: min(420px, 94vw); } }
@media (max-width: 680px) { .app-shell .studio-layout, .is-visual-workspace .app-shell .studio-layout { padding: 10px 12px 20px; } .visual-layout, .visual-gate.is-building .visual-layout { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; } .conversation-message { max-width: 94%; } .visual-workspace-actions { gap: 6px; flex-wrap: wrap; } .visual-workspace-actions button { font-size: 11px; padding: 8px; } }
