/* Guided workspace; actions belong to the source, page, image or delivery. */
.image-mode-choice { display:flex; flex-wrap:nowrap; gap:4px; margin-left:auto; padding:4px; border:1px solid #dce5f2; border-radius:12px; background:#f5f8fc; }
.image-mode-option { display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 14px; border-radius:8px; color:#53627a; cursor:pointer; white-space:nowrap; font-size:14px; font-weight:600; }
.image-mode-option:has(input:checked) { color:#155ad8; background:#fff; box-shadow:0 1px 5px #263b5812; }
.image-mode-option input { margin:0; accent-color:#1769ff; }
.image-mode-option:focus-within { outline:2px solid #7ca9ff; outline-offset:1px; }
@media (max-width:600px) {
  .image-generation-actions .image-mode-choice { width:100%; margin-left:0; }
  .image-mode-option { flex:1; min-width:0; padding:8px 10px; }
}
.simple-page-heading, .simple-page-footer { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 8px; }
.simple-page-heading strong { flex-basis:100%; }
.simple-page-footer { border-top:1px solid #e1e8f2; font-size:12px; color:#607087; }
.simple-image-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:12px; }
.simple-job-progress { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px; background:#edf4ff; color:#315682; font-size:13px; line-height:1.6; border-radius:10px; margin-bottom:12px; }
.simple-job-progress:empty { display:none; }
.simple-delivery-status { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); gap:16px; margin:20px 0; }
.simple-delivery-status > div { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:20px; border:1px solid #e1e8f2; border-radius:12px; }
.simple-delivery .hint ul { margin:0; padding-left:20px; }
.simple-delivery .hint li { margin:8px 0; }
.simple-workspace .page-list .btn { padding:6px 9px; }
.simple-workspace {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  --simple-ink: #24334a;
  --simple-muted: #607087;
}
.simple-workspace .sidebar { padding: 12px; box-shadow: none; }
.simple-workspace .side-title { padding: 12px 10px 18px; margin-bottom: 12px; }
.simple-workspace .side-title strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; margin-bottom: 8px; }
.simple-progress { display: grid; gap: 8px; }
.simple-workspace .form-grid > .simple-advanced { grid-column: 1 / -1; }
.simple-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  color: var(--simple-muted, #607087);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.simple-step:hover { background: #f4f7fc; }
.simple-step.active, .simple-step.is-active, .simple-step[aria-current="step"] {
  border-color: #c4d8ff;
  background: #edf4ff;
  color: #155ad8;
}
.simple-step.done:not(.active), .simple-step.is-complete:not(.is-active) { color: #27754c; }
.simple-step > b, .simple-step > i, .simple-step > .simple-step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e1e8f2;
  font-style: normal;
}
.simple-step > span { min-width: 0; }
.simple-step strong { display: block; font-size: 14px; }
.simple-step small { display: block; font-size: 11px; font-weight: 400; line-height: 1.6; margin-top: 3px; color: #607087; }
.simple-mode-toggle { white-space: normal; line-height: 1.5; }
.sidebar > .simple-mode-toggle { width: 100%; margin-top: 18px; font-size: 12px; }
.simple-workspace .workspace-main { min-width: 0; }
.simple-workspace .panel { box-shadow: none; padding: 24px; }
.simple-workspace .panel h2 { font-size: 22px; line-height: 1.45; }
.simple-workspace .help { color: var(--simple-muted); line-height: 1.75; }
.simple-workspace .panel-head { gap: 16px; }
.simple-workspace .panel-head > div { min-width: 0; }
.simple-workspace .panel-head-actions, .simple-workspace .form-actions { flex-wrap: wrap; }
.simple-workspace .btn { white-space: normal; line-height: 1.5; }
.simple-workspace .btn.primary { min-height: 42px; }
.simple-workspace .btn:focus-visible, .simple-mode-toggle:focus-visible, .simple-step:focus-visible,
.simple-advanced > summary:focus-visible { outline: 3px solid #7ca9ff; outline-offset: 3px; }
.simple-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 3px solid #1769ff; }
.simple-stage-head > div { min-width: 0; }
.simple-stage-head > .form-actions { margin-top: 0; flex-shrink: 0; }
.simple-stage-head > .panel-head:last-child { margin-bottom: 0; }
.simple-stage-head h2 { margin-bottom: 8px; }
.simple-stage-head p { line-height: 1.7; }
.simple-section { min-width: 0; }
.simple-section > h3 { margin-bottom: 12px; }
.simple-workspace .photo-base-choice { margin: 0 0 16px; background: #f8faff; }
.simple-workspace .hint { overflow-wrap: anywhere; }
.simple-workspace .source-files { margin-top: 22px; }
.simple-workspace .form-grid > *, .simple-workspace .field { min-width: 0; }
.simple-workspace .field > span { color: #354258; line-height: 1.5; }
.simple-workspace .field-help { color: var(--simple-muted); line-height: 1.65; }
.simple-workspace .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simple-workspace .outline-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.simple-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 24px;
  margin: 18px 0;
  border: 1px solid #cbdcff;
  border-radius: 16px;
  background: #f1f6ff;
}
.simple-next p { margin: 0; color: #4f6079; font-size: 13px; line-height: 1.7; }
.simple-next > div { min-width: 0; }
.simple-next > .btn { margin-left: auto; }
.simple-review { min-width: 0; margin-bottom: 20px; }
.simple-review .editor-layout { grid-template-columns: 160px minmax(260px, 1fr) 310px; gap: 14px; }
.simple-review .page-list { display: block; padding: 7px; top: 92px; }
.simple-review .page-item { align-items: center; gap: 8px; padding: 8px 6px; min-width: 0; }
.simple-review .page-item > div:last-child { min-width: 0; }
.simple-review .page-item b { line-height: 1.5; overflow-wrap: anywhere; }
.simple-review .page-item span { max-width: 100%; }
.simple-review .thumb { width: 40px; height: 54px; }
.simple-review .preview-panel { min-width: 0; min-height: 520px; padding: 16px; background: #e9edf3; border: 1px solid #dce3ed; }
.simple-review .preview-stage { min-width: 0; }
.simple-review .image-frame { max-width: 440px; border-radius: 10px; box-shadow: 0 8px 25px #263b581c; }
.simple-review .image-empty { padding: 22px; line-height: 1.7; font-size: 13px; }
.simple-review .image-empty strong { font-size: 17px; }
.simple-review .preview-panel .form-actions { justify-content: center; gap: 8px; }
.simple-review .preview-panel .hint { color: #4d5d73; background: #fff; }
.simple-review .edit-panel { padding: 18px; top: 92px; }
.simple-review .edit-panel .field { margin-bottom: 14px; }
.simple-review .edit-panel .form-actions { margin-top: 12px; }
.simple-review .edit-panel .form-actions .btn { flex: 1 1 auto; }
.simple-review .versions { padding-bottom: 3px; }
.simple-review .tabs { flex-wrap: wrap; }
.simple-review .tabs > .tab { min-height: 40px; }
.simple-review .tabs > .simple-advanced { margin: 0; flex: 1; border: 0; background: transparent; }
.simple-review .tabs > .simple-advanced > summary { padding: 8px; text-align: center; }
.simple-advanced { min-width: 0; border: 1px solid #e1e7ef; border-radius: 12px; background: #fafbfd; margin: 16px 0; }
.simple-advanced > summary {
  padding: 14px 16px;
  color: #4f6077;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.simple-advanced > summary:hover { color: #155ad8; }
.simple-advanced[open] > summary { border-bottom: 1px solid #e1e7ef; margin-bottom: 14px; }
.simple-advanced > :not(summary) { margin-left: 16px; margin-right: 16px; }
.simple-advanced > :last-child:not(summary) { margin-bottom: 16px; }
.simple-advanced .workflow-toolbar { margin-top: 0; }
.simple-advanced .form-grid { gap: 12px; }
.simple-advanced .versions { margin-top: 0; padding-top: 0; }
.simple-advanced .panel { padding: 16px; margin-bottom: 12px; }
.simple-workspace .check-row { line-height: 1.6; }
.simple-workspace .check-row > span { flex: 0 0 22px; }

@media (max-width: 1280px) {
  .simple-workspace { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; }
  .simple-review .editor-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .simple-review .edit-panel { grid-column: 1 / -1; position: static; max-height: none; }
  .simple-review .preview-panel { min-height: 500px; }
}
@media (max-width: 960px) {
  .simple-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .simple-workspace .sidebar { position: static; display: block; overflow: visible; }
  .simple-workspace .side-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 12px; }
  .simple-workspace .side-title strong { margin: 0; }
  .simple-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .simple-step { min-height: 60px; padding: 10px; }
  .simple-workspace .sidebar > .simple-mode-toggle { width: auto; margin: 12px 0 0; padding: 7px 10px; }
  .simple-review .page-list { position: static; max-height: 660px; }
}
@media (max-width: 600px) {
  .simple-workspace { gap: 14px; }
  .simple-workspace .sidebar { padding: 10px; border-radius: 14px; }
  .simple-workspace .side-title { align-items: flex-start; }
  .simple-workspace .side-title strong { font-size: 13px; }
  .simple-workspace .side-title > span { flex-shrink: 0; }
  .simple-progress { gap: 5px; }
  .simple-step { min-height: 72px; padding: 9px 4px; gap: 5px; flex-direction: column; text-align: center; font-size: 12px; }
  .simple-step strong { font-size: 12px; }
  .simple-step small { display: none; }
  .simple-step > b, .simple-step > i, .simple-step > .simple-step-number { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
  .simple-workspace .panel { padding: 18px 16px; border-radius: 14px; }
  .simple-workspace .panel h2 { font-size: 20px; }
  .simple-workspace .simple-stage-head { align-items: stretch; flex-direction: column; }
  .simple-stage-head > .form-actions { justify-content: flex-start; }
  .simple-workspace .panel-head { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
  .simple-workspace .panel-head-actions { width: 100%; }
  .simple-workspace .panel-head-actions .btn { flex: 1 1 auto; }
  .simple-workspace .form-actions > .btn { flex: 1 1 auto; }
  .simple-workspace .analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .simple-review .editor-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .simple-review .page-list { display: block; max-width: 100%; max-height: none; overflow: visible; padding: 8px; }
  .simple-review .simple-page-items { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 10px; }
  .simple-review .simple-page-heading { padding: 6px 0 10px; }
  .simple-review .simple-page-heading strong { flex-basis: auto; margin-right: auto; }
  .simple-review .simple-page-footer { justify-content: space-between; padding: 8px 0 0; }
  .simple-review .page-item { min-width: 146px; flex: 0 0 146px; margin: 0; }
  .simple-review .page-item span { max-width: 80px; }
  .simple-review .preview-panel { min-height: 390px; padding: 12px; border-radius: 14px; }
  .simple-review .edit-panel { padding: 16px; }
  .simple-review .preview-panel .form-actions > .btn { flex: 1 1 auto; }
  .simple-advanced > summary { padding: 12px; }
  .simple-advanced > :not(summary) { margin-left: 12px; margin-right: 12px; }
  .simple-next { padding: 16px; margin: 14px 0; gap: 12px; }
  .simple-next > .btn { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   精简模式 V2（对齐 v4.0 效果图）
   顶栏步骤条 + 页面卡 / 画布 / 编辑器 三栏
   所有规则限定在 #stepBar 与 .simple-workspace 内，避免影响经典 5 步
   ══════════════════════════════════════════════════════════════════════ */
#stepBar { position: sticky; top: 82px; z-index: 19; margin-bottom: 16px; }
#stepBar .stepbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 9px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(28,50,88,.05); }
#stepBar .step-topic { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 320px; }
#stepBar .step-topic strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stepBar .step-topic .status { flex: 0 0 auto; }
#stepBar .step-nav { display: flex; align-items: center; gap: 8px; }
#stepBar .s { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #7b8698; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 9px; }
#stepBar .s:hover { background: #f5f8fc; }
#stepBar .s i { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 1px solid #dde3ec; background: #f6f8fb; color: #8b96a8; font-style: normal; font-size: 11px; font-weight: 700; }
#stepBar .s.active { color: #155ad8; }
#stepBar .s.active i { background: var(--primary); border-color: var(--primary); color: #fff; }
#stepBar .s.done { color: #2b7a52; }
#stepBar .s.done i { background: #e9f8f0; border-color: #bfe8d2; color: #1f9d61; }
#stepBar .s-line { width: 24px; height: 1px; background: #e3e8f0; flex: 0 0 24px; }
#stepBar .step-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#stepBar .pending { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff7e8; border: 1px solid #f3ddb4; color: #8a5a06; font-size: 12px; font-weight: 600; }
#stepBar .pending i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex: 0 0 6px; }
#stepBar .autosave { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #f5f8fc; border: 1px solid var(--line); color: #76839a; font-size: 11.5px; white-space: nowrap; }
#stepBar .autosave i { width: 13px; height: 13px; border-radius: 50%; background: #dff0e6; color: #1f9d61; font-size: 9px; font-style: normal; display: grid; place-items: center; font-weight: 700; }
#stepBar .autosave b { color: #4f6079; font-weight: 600; }
#stepBar .link-btn { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; }
#stepBar .link-btn:hover { color: var(--primary); text-decoration: underline; }

.simple-workspace { display: block; }
.simple-workspace .workspace-main { min-width: 0; }
.simple-workspace .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }

/* 工具行 */
.simple-workspace .review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 0 2px 12px; }
.simple-workspace .review-hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.simple-workspace .review-tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* 三栏 */
.simple-workspace .review-layout { display: grid; grid-template-columns: 248px minmax(0,1fr) 400px; gap: 14px; align-items: start; }

/* 左栏：页面卡 */
.simple-workspace .pages { position: sticky; top: 150px; max-height: calc(100vh - 172px); overflow: auto; padding: 12px; }
.simple-workspace .pages-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 10px; }
.simple-workspace .pages-head strong { font-size: 13.5px; font-weight: 600; }
.simple-workspace .pages-list { display: grid; gap: 12px; }
.simple-workspace .page-card { position: relative; display: block; width: 100%; text-align: left; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: .15s; }
.simple-workspace .page-card:hover { border-color: #c8d8f7; }
.simple-workspace .page-card.active { border-color: var(--primary); background: #f7faff; }
.simple-workspace .pnum { position: absolute; top: -8px; left: -8px; z-index: 2; width: 20px; height: 20px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(23,105,255,.35); }
.simple-workspace .pv-wrap { position: relative; }
.simple-workspace .pv-wrap .st-ok, .simple-workspace .pv-wrap .st-warn { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff; }
.simple-workspace .st-ok { background: var(--success); }
.simple-workspace .st-warn { background: var(--warn); }
.simple-workspace .pmeta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding: 0 2px; }
.simple-workspace .pmeta span { font-size: 12px; color: #5c6879; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simple-workspace .pmeta em { font-style: normal; color: #aeb7c4; font-size: 14px; line-height: 1; flex: 0 0 auto; }
.simple-workspace .pages-foot { display: flex; gap: 7px; flex-wrap: wrap; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.simple-workspace .pages-foot .btn { flex: 1 1 auto; }

/* 内容缩略块：没出图也能看到这页长什么样 */
.simple-workspace .pv { aspect-ratio: 3 / 4; border-radius: 8px; background: #f6f8fb; border: 1px solid #eef1f6; overflow: hidden; }
.simple-workspace .pv-img { background: #f2f5f9; }
.simple-workspace .pv-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.simple-workspace .pv-cover { display: flex; flex-direction: column; background: #fffdf7; padding: 7px; }
.simple-workspace .pv-cover em { display: block; font-style: normal; font-size: 8px; font-weight: 700; letter-spacing: .06em; color: #b45309; }
.simple-workspace .pv-cover b { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: #231a12; overflow-wrap: anywhere; }
.simple-workspace .pv-cover .pv-photo { position: relative; flex: 1 1 auto; min-height: 22px; margin-top: 5px; border-radius: 5px; background: #fbe6cd; overflow: hidden; }
.simple-workspace .pv-cover .pv-photo::before { content: ''; position: absolute; left: 10%; bottom: 0; width: 52%; height: 70%; background: #f7c489; border-radius: 60% 60% 0 0; }
.simple-workspace .pv-cover .pv-photo::after { content: ''; position: absolute; right: 14%; top: 18%; width: 14px; height: 14px; border-radius: 50%; background: #f59e0b; }
.simple-workspace .pv-dates { display: grid; align-content: center; background: #fff; padding: 8px; }
.simple-workspace .pv-dates em { display: block; font-style: normal; font-size: 9.5px; font-weight: 700; color: #3f4b5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simple-workspace .pv-days { display: flex; gap: 3px; margin-top: 6px; }
.simple-workspace .pv-days span { flex: 1 1 0; min-width: 0; padding: 4px 0; border-radius: 5px; background: #ffe8d6; color: #c2410c; font-size: 10px; font-weight: 700; text-align: center; }
.simple-workspace .pv-list { display: grid; gap: 4px; align-content: center; padding: 7px 10px; background: #fff; }
.simple-workspace .pv-li { position: relative; padding-left: 11px; font-size: 10px; line-height: 1.25; color: #4f5b6d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simple-workspace .pv-li::before { content: ''; position: absolute; left: 0; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: #85b7eb; }
.simple-workspace .pv-list .pv-li:first-child { color: #2c3a4e; font-weight: 600; }
.simple-workspace .pv-list .pv-li:first-child::before { background: var(--primary); }

/* 中栏：画布 */
.simple-workspace .canvas-col { display: grid; gap: 12px; min-width: 0; }
.simple-workspace .canvas-card { padding: 12px; }
.simple-workspace .canvas-top { position: relative; display: flex; align-items: center; justify-content: center; min-height: 30px; margin-bottom: 10px; }
.simple-workspace .pager { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: #5c6879; }
.simple-workspace .pager button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: #7b8698; font-size: 13px; display: grid; place-items: center; }
.simple-workspace .pager button:hover:not(:disabled) { border-color: #c8d8f7; color: var(--primary); }
.simple-workspace .pager button:disabled { opacity: .4; cursor: not-allowed; }
.simple-workspace .pager span { padding: 0 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.simple-workspace .zoom { position: absolute; right: 0; display: flex; align-items: center; gap: 8px; }
.simple-workspace .zoom .zlabel { font-size: 11.5px; color: #9aa4b2; }
.simple-workspace .zoom button { height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: #7b8698; font-size: 12px; }
.simple-workspace .zoom button:hover { border-color: #c8d8f7; color: var(--primary); }
.simple-workspace .stage { background: #f1f3f6; border-radius: 12px; padding: 20px; display: grid; place-items: center; min-height: 320px; }
.simple-workspace .image-frame { width: min(100%,392px); max-width: 100%; aspect-ratio: 3/4; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(38,59,88,.16); overflow: hidden; }
.simple-workspace .image-frame img { width: 100%; height: 100%; object-fit: contain; }
.simple-workspace .image-empty { display: grid; align-content: center; justify-items: center; height: 100%; padding: 0 32px; text-align: center; }
.simple-workspace .image-empty strong { display: block; font-size: 14px; font-weight: 600; color: #445065; }
.simple-workspace .image-empty span { display: block; margin-top: 8px; font-size: 12.5px; color: #93a0b1; line-height: 1.6; }
.simple-workspace .canvas-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.simple-workspace .canvas-foot .confirm { border: 1px solid #bfe8d2; background: #f2fbf6; color: #1f8a5b; font-size: 12.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; }
.simple-workspace .canvas-foot .confirm:hover { background: #e9f8f0; }
.simple-workspace .canvas-foot .pause { font-size: 12.5px; color: var(--danger); }
.simple-workspace .canvas-foot .ok-note { font-size: 12.5px; color: #1f8a5b; font-weight: 600; }
.simple-workspace .versions { padding: 14px 2px 2px; }

/* 旧图（图基于旧内容生成）相关 */
.simple-workspace .confirm.accept-stale { border-color: #f3ddb4; background: #fffaf0; color: #8a5a06; }
.simple-workspace .confirm.accept-stale:hover { background: #fff3d9; border-color: #eccf9c; }
.simple-workspace .stale-note { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #f7f9fc; color: #5c6879; font-size: 12.5px; line-height: 1.6; }
.simple-workspace .stale-note.warn { border-color: #f3ddb4; background: #fffaf0; color: #7a5106; }
.simple-workspace .stale-note b { font-weight: 600; }
.simple-workspace .pv-wrap .st-accepted { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff; }
.simple-workspace .st-accepted { background: var(--warn); }
.simple-workspace .pmeta-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.simple-workspace .accepted-tag { font-style: normal; font-size: 10.5px; font-weight: 600; color: #8a5a06; background: #fff7e8; border: 1px solid #f3ddb4; border-radius: 999px; padding: 1px 6px; }

/* 出图设置：快速/精细 + 实拍底图（必须保留，否则精简模式无法切模型与底图） */
.simple-workspace .gen-settings { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 0 10px; }
.simple-workspace .gen-settings .image-mode-choice { margin-left: 0; padding: 3px; border-radius: 10px; }
.simple-workspace .gen-settings .image-mode-option { min-height: 28px; padding: 4px 11px; font-size: 12.5px; gap: 6px; }
.simple-workspace .gen-settings .image-mode-option input { width: 14px; height: 14px; flex: 0 0 14px; }
.simple-workspace .pb-pick { display: flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12px; color: #5c6879; white-space: nowrap; }
.simple-workspace .pb-pick select { border: 1px solid #e3e9f3; border-radius: 9px; padding: 6px 9px; font-size: 12.5px; color: #4f6079; background: #fff; max-width: 220px; outline: none; }
.simple-workspace .pb-pick select:focus { border-color: #8cb3ff; box-shadow: 0 0 0 3px rgba(23,105,255,.07); }

/* 中栏：自然语言改稿条 */
.simple-workspace .promptbar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px; }
.simple-workspace .prompt-input { display: flex; align-items: center; gap: 10px; border: 1.5px solid #e3e9f3; border-radius: 11px; padding: 8px 8px 8px 14px; transition: .15s; }
.simple-workspace .prompt-input:focus-within { border-color: #8cb3ff; box-shadow: 0 0 0 3px rgba(23,105,255,.07); }
.simple-workspace .prompt-input .spark { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg,#7ca9ff,#1769ff); flex: 0 0 20px; display: grid; place-items: center; color: #fff; font-size: 11px; }
.simple-workspace .prompt-input textarea { flex: 1 1 auto; min-width: 0; height: 24px; max-height: 120px; border: 0; outline: none; resize: none; background: transparent; font-size: 13px; line-height: 24px; color: var(--text); overflow: hidden; }
.simple-workspace .prompt-input textarea::placeholder { color: #a8b1c0; }
.simple-workspace .prompt-input .send { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 13px; display: grid; place-items: center; }
.simple-workspace .prompt-input .send:hover:not(:disabled) { background: var(--primary-2); }
.simple-workspace .prompt-input .send:disabled { background: #d6dde8; cursor: not-allowed; }
.simple-workspace .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; padding-left: 2px; }
.simple-workspace .chip-btn { border: 1px solid #e8ecf2; background: #fff; color: #5c6879; font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.simple-workspace .chip-btn:hover { border-color: #c8d8f7; color: var(--primary); background: #fafcff; }

/* 一次性「参考图」 */
.simple-workspace .ref-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 9px; border: 1px solid #cbdcff; border-radius: 10px; background: #f1f6ff; }
.simple-workspace .ref-bar img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 7px; object-fit: cover; border: 1px solid #dce5f2; background: #fff; }
.simple-workspace .ref-bar > span { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.5; color: #315682; overflow-wrap: anywhere; }
.simple-workspace .ref-bar b { margin-right: 4px; }
.simple-workspace .ref-bar strong { font-weight: 600; }
.simple-workspace .attach-chip { position: relative; cursor: pointer; }
.simple-workspace .attach-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; padding: 0; border: 0; }
.simple-workspace .attach-chip:hover { border-color: #c8d8f7; color: var(--primary); background: #fafcff; }

/* 右栏：编辑器（不能设 overflow:hidden —— 否则底部 .editor-foot 的 position:sticky 会被降级成 static） */
.simple-workspace .editor { display: flex; flex-direction: column; }
.simple-workspace .tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 6px; }
.simple-workspace .tab { flex: 1 1 0; min-width: 0; border: 0; background: none; padding: 13px 0 11px; font-size: 13.5px; font-weight: 600; color: #8b96a8; position: relative; }
.simple-workspace .tab:hover { color: #3f4b5e; }
.simple-workspace .tab.active { color: #155ad8; }
.simple-workspace .tab.active::after { content: ''; position: absolute; left: 16%; right: 16%; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.simple-workspace .panes { padding: 16px 18px; }
.simple-workspace .panes form { display: block; }
.simple-workspace .pane { display: none; }
.simple-workspace .pane.active { display: grid; gap: 14px; }
.simple-workspace .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.simple-workspace .field { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 8px; }
.simple-workspace .field > * { grid-column: 1 / -1; }
.simple-workspace .field > span:first-child { grid-column: 1; display: block; font-size: 12.5px; font-weight: 600; color: #3c4a60; margin: 0 0 6px; }
.simple-workspace .field > .count { grid-column: 2; text-align: right; font-size: 11.5px; color: #a8b1c0; font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.simple-workspace .field > .count.over { color: var(--warn); font-weight: 600; }
.simple-workspace .field input, .simple-workspace .field textarea, .simple-workspace .field select { width: 100%; border: 1px solid #e3e9f3; border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--text); font-size: 13.5px; line-height: 1.6; outline: none; }
.simple-workspace .field textarea { min-height: 104px; resize: vertical; }
.simple-workspace .field input:focus, .simple-workspace .field textarea:focus, .simple-workspace .field select:focus { border-color: #8cb3ff; box-shadow: 0 0 0 3px rgba(23,105,255,.07); }
.simple-workspace .field .field-help { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.simple-workspace .field .lock-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: #5c6879; }
.simple-workspace .field .lock-row input { width: 15px; height: 15px; flex: 0 0 15px; padding: 0; border: 0; }

/* 右栏：发布页签（扁平结构——锁定做成标签行里的胶囊，不再单独占一行） */
.simple-workspace .field > .lab { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.simple-workspace .field > .lab > span:first-child { font-size: 12.5px; font-weight: 600; color: #3c4a60; }
.simple-workspace .lab-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.simple-workspace .lab-right .count { font-size: 11.5px; color: #a8b1c0; font-variant-numeric: tabular-nums; }
.simple-workspace .lab-right .count.over { color: var(--warn); font-weight: 600; }
.simple-workspace .lock-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #e8ecf2; border-radius: 999px; background: #fff; font-size: 11.5px; color: #77839a; cursor: pointer; white-space: nowrap; }
.simple-workspace .lock-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; padding: 0; border: 0; }
.simple-workspace .lock-chip i { width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid #cfd8e4; flex: 0 0 9px; }
.simple-workspace .lock-chip:hover { border-color: #c8d8f7; }
.simple-workspace .lock-chip:has(input:checked) { border-color: #bfe8d2; background: #f2fbf6; color: #1f8a5b; }
.simple-workspace .lock-chip:has(input:checked) i { background: #1f8a5b; border-color: #1f8a5b; }
.simple-workspace .lock-chip:has(input:focus-visible) { outline: 2px solid #7ca9ff; outline-offset: 1px; }
.simple-workspace .copy-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.simple-workspace .copy-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.simple-workspace .wf-checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: #5c6879; }
.simple-workspace .wf-checkbox input { width: 15px; height: 15px; flex: 0 0 15px; margin: 1px 0 0; padding: 0; border: 0; }
.simple-workspace .field > .btn { grid-column: 1 / -1; justify-self: end; width: auto; }

/* 下载成品步的「编辑发布文案」 */
.simple-workspace .simple-copy-panel .panel-head { margin-bottom: 14px; }
.simple-workspace .simple-copy-panel h3 { font-size: 15px; margin: 0 0 4px; }
.simple-workspace .copy-save { display: flex; justify-content: flex-end; padding-top: 6px; }
.simple-workspace .copy-save .btn { min-width: 200px; }

.simple-workspace .sec { border-top: 1px solid var(--line); padding-top: 14px; }
.simple-workspace .sec-title { font-size: 12.5px; font-weight: 600; color: #3c4a60; margin: 0 0 6px; }
.simple-workspace .el { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; }
.simple-workspace .el + .el { border-top: 1px solid #f2f5f9; }
.simple-workspace .el .thumb { width: 42px; height: 34px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafd; display: grid; place-items: center; overflow: hidden; }
.simple-workspace .el .thumb .mini { position: relative; width: 100%; height: 100%; background: #fffdf7; }
.simple-workspace .el .thumb .mini::before { content: ''; position: absolute; inset: 5px 6px; border-radius: 4px; background: #fbe6cd; }
.simple-workspace .el .thumb .mini::after { content: ''; position: absolute; left: 6px; top: 6px; width: 14px; height: 3px; border-radius: 2px; background: #f59e0b; }
.simple-workspace .el .thumb .sw { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; width: 24px; height: 18px; }
.simple-workspace .el .thumb .sw i:nth-child(1) { background: #ffe8d6; }
.simple-workspace .el .thumb .sw i:nth-child(2) { background: #f7c489; }
.simple-workspace .el .thumb .sw i:nth-child(3) { background: #a8c9a0; }
.simple-workspace .el .thumb .sw i:nth-child(4) { background: #9ccbe8; }
.simple-workspace .el .txt { flex: 1 1 auto; min-width: 0; }
.simple-workspace .el .txt b { display: block; font-size: 13px; font-weight: 600; color: #2c3a4e; }
.simple-workspace .el .txt small { display: block; margin-top: 2px; font-size: 11.5px; color: #93a0b1; overflow-wrap: anywhere; }
.simple-workspace .el .swap { width: 100%; margin-top: 7px; border: 1px solid #e3e9f3; border-radius: 9px; padding: 6px 9px; background: #fff; font-size: 12.5px; color: #4f6079; outline: none; }
.simple-workspace .el .swap:focus { border-color: #8cb3ff; box-shadow: 0 0 0 3px rgba(23,105,255,.07); }

.simple-workspace .pane > .panel, .simple-workspace .adv .panel { border: 0; background: transparent; box-shadow: none; border-radius: 0; padding: 0; margin: 0; }
.simple-workspace .pane > .panel .panel-head { margin-bottom: 14px; display: block; }
.simple-workspace .pane > .panel h3, .simple-workspace .adv .panel h3 { font-size: 13.5px; }
.simple-workspace .pane > .panel .help { font-size: 12.5px; }

/* 高级折叠：只剩「完整图片提示词」。限高内滚，展开后不再把右栏撑长 */
.simple-workspace .adv { border-top: 1px solid var(--line); flex: 0 0 auto; }
.simple-workspace .adv > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; font-size: 12.5px; font-weight: 600; color: #5c6879; cursor: pointer; list-style: none; }
.simple-workspace .adv > summary::-webkit-details-marker { display: none; }
.simple-workspace .adv > summary:hover { color: var(--primary); }
.simple-workspace .adv > summary::after { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.simple-workspace .adv[open] > summary { border-bottom: 1px solid var(--line); }
.simple-workspace .adv[open] > summary::after { transform: rotate(225deg); }
.simple-workspace .adv .adv-body { display: grid; gap: 14px; padding: 16px 18px; max-height: min(52vh, 460px); overflow: auto; }
.simple-workspace .adv .adv-lead { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.simple-workspace .adv .prompt-box { min-height: 200px !important; max-height: 280px; }

/* 品牌素材（铁律）只读提示：让用户看得见「为什么这张图长这样」，但它不在下方编辑框里 */
.simple-workspace .adv .adv-locked { border: 1px solid #ecdcb6; background: #fffbf1; border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.7; color: #6d5c2f; }
.simple-workspace .adv .adv-locked p { margin: 0; }
.simple-workspace .adv .adv-locked .locked-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.simple-workspace .adv .adv-locked .locked-asset { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.simple-workspace .adv .adv-locked .locked-asset img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.simple-workspace .adv .adv-locked .locked-rules { margin-top: 10px; }
.simple-workspace .adv .adv-locked .locked-rules > summary { cursor: pointer; font-size: 12px; color: var(--primary); }
.simple-workspace .adv .adv-locked .locked-rules pre { margin: 8px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: #4f6079; }

/* 「视觉」页签说明文字 */
.simple-workspace .sec-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

/* 统一图片上传入口（弹窗挂在 #modalRoot 下，不在 .simple-workspace 里，作用域用 .workflow-modal） */
.workflow-modal .upload-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.workflow-modal .upload-choice { display: grid; gap: 7px; padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #2c3a4e; cursor: pointer; }
.workflow-modal .upload-choice:hover:not(:disabled) { border-color: var(--primary); box-shadow: 0 3px 12px rgba(23,105,255,.1); }
.workflow-modal .upload-choice:disabled { opacity: .55; cursor: not-allowed; }
.workflow-modal .upload-choice b { font-size: 14px; }
.workflow-modal .upload-choice span { font-size: 12px; line-height: 1.65; color: var(--muted); }
@media (max-width:560px) { .workflow-modal .upload-choice-grid { grid-template-columns: minmax(0,1fr); } }

.simple-workspace .editor-foot { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fcfdff; margin-top: auto; position: sticky; bottom: 0; z-index: 3; border-radius: 0 0 15px 15px; }
.simple-workspace .editor-foot .btn { flex: 1 1 0; min-width: 0; text-align: center; padding: 10px 12px; font-size: 13px; }

@media (max-width:1360px) {
  .simple-workspace .review-layout { grid-template-columns: 220px minmax(0,1fr) 360px; }
}
@media (max-width:1180px) {
  .simple-workspace .review-layout { grid-template-columns: minmax(0,1fr); }
  .simple-workspace .pages-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .simple-workspace .stage { min-height: 0; }
  .simple-workspace .image-frame { width: min(100%,330px); }
}
@media (max-width:900px) {
  #stepBar { top: 78px; }
  #stepBar .step-topic { max-width: none; flex-basis: 100%; }
  #stepBar .step-right { margin-left: 0; flex-basis: 100%; }
}
@media (max-width:760px) {
  #stepBar .stepbar { gap: 8px; padding: 8px 10px; }
  #stepBar .s { font-size: 12px; padding: 4px 6px; }
  #stepBar .s-line { width: 12px; flex-basis: 12px; }
  #stepBar .link-btn { display: none; }
  .simple-workspace .pages-list { grid-template-columns: minmax(0,1fr); }
  .simple-workspace .row2 { grid-template-columns: minmax(0,1fr); }
  .simple-workspace .canvas-foot .btn, .simple-workspace .canvas-foot .confirm { flex: 1 1 auto; }
  .simple-workspace .editor-foot { flex-direction: column; }
}

/* 「看哪里不同」提示词对比弹窗 */
.wf-stale-diff { max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.wf-stale-diff .dl { font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; padding: 0 6px; border-radius: 5px; color: #5c6879; }
.wf-stale-diff .dl-same { color: #9aa4b2; }
.wf-stale-diff .dl-del { background: #fdecec; color: #9b3434; }
.wf-stale-diff .dl-add { background: #eaf7ef; color: #1f7a4c; }
.wf-stale-diff .dl-mark { display: inline-block; width: 12px; margin-right: 4px; font-weight: 700; }

.consultant-list { display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.consultant-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
@media (max-width: 760px) { .consultant-row { grid-template-columns: 1fr; } }
