:root{
  /* Apple-grade 中性化（2026-06-15，Ken 批准全站铺开）*/
  --bg:#fbfbfd;--ink:#1d1d1f;--muted:#86868b;--line:#d8d8de;--card:#ffffff;
  --soft:#f5f5f7;--good:#1d7a3f;--warn:#b7791f;--accent:#1d1d1f;--goldln:#d2d2d7;
  --shadow:0 1px 3px rgba(0,0,0,.04),0 12px 40px rgba(0,0,0,.06);--radius:20px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}

/* ---------- layout ---------- */
.shell{min-height:100vh;display:grid;grid-template-columns:264px 1fr}
.rail{border-right:1px solid var(--line);padding:22px;background:#f0eadf;display:flex;flex-direction:column;gap:14px;position:sticky;top:0;height:100vh}
.rail-top{display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:800;font-size:23px;letter-spacing:-.01em}
.rail-toggle{display:block;border:1px solid var(--line);background:#fff;border-radius:10px;width:38px;height:38px;font-size:18px;cursor:pointer}
/* collapsible step rail (desktop) */
body.rail-collapsed .shell{grid-template-columns:74px 1fr}
body.rail-collapsed .rail{padding:22px 12px}
body.rail-collapsed .brand,body.rail-collapsed .rail .mode,body.rail-collapsed .rail .rail-foot,body.rail-collapsed .steps li span{display:none}
body.rail-collapsed .steps li{justify-content:center;padding:12px 6px}
.mode{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted)}
.steps{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:7px}
.steps li{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;color:var(--muted);background:rgba(255,255,255,.5);font-size:14px;transition:.18s}
.steps li b{font-size:11px;opacity:.7;font-weight:700}
.steps li.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.steps li.active b{opacity:.85}
.rail-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:14px}
.lang-switch{display:flex;gap:6px}
.lang-switch button{flex:1;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 4px;font-size:13px;font-weight:600;color:var(--muted)}
.lang-switch button.active{background:var(--ink);color:#fff;border-color:var(--ink)}

.stage{padding:26px 34px 56px;min-width:0}
.topbar{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px;gap:20px}
.eyebrow{margin:0 0 6px;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.14em}
.topbar h1{margin:0;font-size:clamp(26px,4vw,34px);letter-spacing:-.01em;line-height:1.05}
.progress{min-width:170px;text-align:right;color:var(--muted);font-size:13px}
.progress .track{height:7px;background:var(--soft);border-radius:999px;overflow:hidden;margin-top:8px}
.progress b{display:block;height:100%;width:16.6%;background:var(--ink);border-radius:999px;transition:width .3s ease}

.screen{display:none;animation:fade .35s ease}
.screen.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.panel{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:26px}
.wide{max-width:1060px}
.tag{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:6px 11px;font-size:12px;color:var(--muted);background:#fff;font-weight:600}
h2{font-size:clamp(28px,4vw,42px);line-height:1.04;letter-spacing:-.01em;margin:14px 0}
.panel p{color:var(--muted)}
.sub{margin-top:-4px;margin-bottom:0}
.lead{font-size:18px;color:var(--ink);opacity:.85}

/* ---------- buttons ---------- */
.primary,.ghost,.mock-cta{border:0;border-radius:13px;padding:13px 18px;font-weight:700;transition:.15s}
.primary{background:var(--ink);color:#fff}
.primary:hover{transform:translateY(-1px)}
.ghost{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.mock-cta{background:#fff;color:var(--ink);border:1px solid var(--line)}
.mock-cta.solid,.mock-cta:hover{background:#2b241a;color:#fff;border-color:#2b241a}
.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}
/* ---------- demo badge ---------- */
.demo-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid #d2d2d7;background:#f5f5f7;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700;color:#6e6e73;white-space:nowrap;flex-shrink:0}

/* ---------- step 0 : hero ---------- */
.hero-grid{display:block}
.s0-intro{margin:0 0 14px;font-size:13.5px;line-height:1.5;color:var(--muted);max-width:760px}
.hero-copy h2{font-size:clamp(18px,1.6vw,22px) !important;line-height:1.5}
.hero-copy h2{font-size:clamp(30px,5vw,52px)}
.hero-copy p{font-size:17px;max-width:560px;color:var(--ink);opacity:.7}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 0}
.chips span{background:var(--soft);border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600}
/* step 01: 左列上传图片 · 右列文字表单 · 按钮横跨两列 */
.upload-demo{display:grid;grid-template-columns:1fr 2fr;gap:22px;align-items:stretch}
.ud-col{display:flex;flex-direction:column;min-width:0}
.ud-col-photo .photo-slot.main{flex:1}
.ud-col-form .input-brief{margin-top:0;border-top:0;padding-top:0;height:100%}
.upload-demo .upload-actions{grid-column:1 / -1}
@media(max-width:920px){.upload-demo{grid-template-columns:1fr}}
.upload-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.upload-head h3{margin:0;font-size:16px}
.upload-hint{font-size:12px;color:var(--muted)}
.photo-slot{position:relative;display:grid;place-items:center;text-align:center;border:1.5px dashed var(--line);border-radius:16px;background:linear-gradient(135deg,#f7efe1,#fffdfa);color:var(--muted);cursor:pointer;transition:.2s;overflow:hidden;padding:14px}
.photo-slot:hover,.photo-slot.drag{border-color:#b8a988;background:linear-gradient(135deg,#f3e8d4,#fffdfa)}
.photo-slot.main{min-height:218px}
.photo-slot.main strong{display:block;color:var(--ink);font-size:17px;margin-top:12px}
.photo-slot.main small{font-size:13px}
.photo-slot .slot-tag{position:absolute;top:9px;left:9px;font-style:normal;font-size:11px;font-weight:700;background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px 9px;color:var(--muted);z-index:1}
.slot-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.slot-row .photo-slot{min-height:104px;padding:44px 8px 14px}
.slot-row .slot-preview{font-size:24px;color:#b8a988;font-weight:400}
.photo-slot .slot-preview{background-size:cover;background-position:center}
.photo-slot.has-img{border-style:solid}
.photo-slot.has-img .slot-preview{position:absolute;inset:0;width:100%;height:100%;border-radius:0;color:transparent;box-shadow:none}
.photo-slot.has-img strong,.photo-slot.has-img small{display:none}
.upload-actions{margin-top:14px;display:grid}
.input-brief{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.input-brief-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.input-brief-head p{margin:0;font-size:13px;line-height:1.55;max-width:520px}
.input-grid.compact{margin-top:0;gap:12px}
.input-grid.compact textarea{min-height:68px}
.lamp-visual{width:128px;height:128px;border-radius:24px;display:grid;place-items:center;font-weight:800;letter-spacing:.05em;color:#fff;background:radial-gradient(circle at 50% 32%,#ffe7a8,#d69b3c 46%,#2a241d 80%);box-shadow:0 22px 56px rgba(214,155,60,.32)}

/* ---------- step 1 : form ---------- */
.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0 0}
.input-grid label{display:grid;gap:7px;font-weight:600;font-size:13px;color:#2b251d}
.input-grid label.full{grid-column:1/-1}
.input-grid input,.input-grid select,.input-grid textarea{border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff;font-weight:400}
.input-grid textarea{min-height:84px;resize:vertical}
.input-grid input:focus,.input-grid select:focus,.input-grid textarea:focus{outline:2px solid #c9b78c;border-color:#c9b78c}

/* ---------- product kit deck framing (steps 3–6) ---------- */
.deck-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:12px 18px;border:1px solid #e6e6eb;background:linear-gradient(135deg,#fbf4e3,#fffdfa);border-radius:16px;box-shadow:var(--shadow)}
.deck-id{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.deck-kit{font-weight:800;font-size:14px;letter-spacing:-.01em;white-space:nowrap}
.deck-state{font-size:12px;font-weight:700;color:#5d4a1e;background:#fff;border:1px solid #e6e6eb;border-radius:999px;padding:4px 11px;white-space:nowrap}
.deck-spine{list-style:none;display:flex;gap:4px;margin:0;padding:0;flex-wrap:wrap}
.deck-spine li{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--muted);padding:5px 11px;border-radius:999px;transition:.18s;border:1px solid transparent}
.deck-spine li.done{color:#8a806d;background:rgba(255,255,255,.45)}
.deck-spine li.active{background:#fff;color:#2b241a;border-color:#e6e6eb;box-shadow:0 4px 14px rgba(31,26,19,.05)}
.deck .panel{border-top:3px solid #e3cf9d}

/* ---------- step 2 : product kit core slide ---------- */
.kit-slogan small,.kit-row small{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:700}
.kit-row:last-child{border-bottom:0}


/* ---------- step 3 : visual workbench + adjustment loop ---------- */
.preview-layout{display:grid;grid-template-columns:1.5fr .9fr;gap:18px;align-items:start}
/* desktop workbench 3.0: three-pane editor — left asset/progress rail / center
   canvas / persistent right inspector. Tabs live at the top of the inspector; one
   panel shows at a time. Mobile keeps the bottom-sheet pattern untouched. */
.adjust-layout{grid-template-columns:236px minmax(0,1fr) 360px;gap:18px;align-items:start}
.workbench-layout .preview-pane{order:1;min-width:0}
.workbench-layout .wb-rail{order:0;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto;display:grid;gap:12px;align-content:start}
.workbench-layout .adjust-pane{order:2;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}
.workbench-layout .adjust-pane .mobile-panel{display:none}
.workbench-layout .adjust-pane .mobile-panel.active{display:grid}
.wb-tools{display:flex;gap:4px;width:100%;margin:0;background:#f1ebdf;border:1px solid var(--line);border-radius:14px;padding:4px}
.wb-tools button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;background:transparent;border:0;color:var(--muted);font-size:12.5px;font-weight:700;padding:8px 4px;border-radius:10px;cursor:pointer}
.wb-tools button i{font-style:normal;font-size:13px;line-height:1}
.wb-tools button:hover{color:var(--ink)}
.wb-tools button.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(31,26,19,.1)}
.preview-pane-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.preview-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--good)}
.preview-live::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--good);animation:pulse 1.6s ease infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.page-preview{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
/* canvas previews at the TRUE selected platform ratio, centered — not a full-width banner */
.pp-stage{position:relative;display:grid;place-items:center;overflow:hidden;transition:background .4s ease;aspect-ratio:3/4;height:auto;width:auto;max-width:100%;max-height:480px;margin:0 auto;border-radius:14px}
.pp-stage.fmt-xhsLong{aspect-ratio:3/2}
.pp-stage.fmt-tiktokCover{aspect-ratio:9/16}
.pp-stage.fmt-shopifyHero{aspect-ratio:16/7;max-height:340px}
.pp-stage.fmt-commerceSquare{aspect-ratio:1/1}
.pp-product{width:118px;height:156px;border-radius:20px;background:radial-gradient(circle at 48% 30%,#ffe6a3,#c98a2f 50%,#231b12);box-shadow:0 0 64px rgba(255,200,110,.55);background-size:cover;background-position:center;transition:box-shadow .4s ease}
.pp-glow{position:absolute;inset:auto 0 -40% 0;height:80%;background:radial-gradient(ellipse at 50% 0,rgba(255,196,96,.35),transparent 70%);transition:.4s ease}
.result-src{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:8px;background:rgba(24,20,14,.55);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:5px 12px 5px 6px;color:#e8ddc8;backdrop-filter:blur(4px)}
.result-src-thumb{width:26px;height:26px;border-radius:50%;flex-shrink:0;font-style:normal;background:radial-gradient(circle at 48% 30%,#ffe6a3,#c98a2f 52%,#231b12);background-size:cover;background-position:center}
.result-src small{font-size:11px;font-weight:600}
.pp-copy{display:grid;gap:8px;padding:18px 20px 20px}
.pp-copy strong{font-size:18px;letter-spacing:-.01em;line-height:1.32}
.pp-copy p{margin:0;font-size:14px;color:var(--muted);line-height:1.55}
.pp-story{font-size:13px;color:var(--muted);font-style:italic;line-height:1.55}
.pp-cta{justify-self:start;background:var(--ink);color:#fff;border-radius:11px;padding:10px 16px;font-size:13px;font-weight:700;margin-top:4px}
.pp-visual{margin:14px 0 0;font-size:13px;color:var(--muted);background:#f7f3eb;border:1px solid var(--line);border-radius:12px;padding:11px 14px}
.template-intro{margin:0 0 10px!important;font-size:12.5px!important;line-height:1.55;color:var(--muted)}
/* set strip: fixed height, cards keep their TRUE publish ratio, scroll if wide */
.template-board{margin-top:14px;display:flex;gap:12px;height:340px;overflow-x:auto;overflow-y:hidden;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.template-board .template-card{height:100%;flex:0 0 auto;min-height:0}
.template-card{position:relative;min-height:150px;border:1px solid var(--line);border-radius:16px;padding:28px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;background:#fff;box-shadow:0 12px 28px rgba(31,26,19,.06)}
/* —— designed text compositions per card role (text = layers, laid out, not footers) —— */
.template-card.hero-card{justify-content:center;align-items:center;text-align:center;padding:26px 22px}
.template-card.hero-card small{order:-1;margin-bottom:10px;letter-spacing:.12em}
.template-card.hero-card strong{font-size:clamp(20px,2vw,27px);line-height:1.3;max-width:14em}
.template-card.hero-card span{margin-top:10px;opacity:.9}
.template-card.hero-card span::before{content:"";display:block;width:34px;height:1px;background:rgba(255,255,255,.6);margin:0 auto 8px}
.template-card.secondary-card{justify-content:flex-start;padding-top:24px}
.template-card.secondary-card small{margin-bottom:12px}
.template-card.secondary-card strong{font-size:19px;padding-top:10px;border-top:2px solid rgba(255,255,255,.45);width:max-content;max-width:100%}
.template-card.secondary-card span{margin-top:6px}
.template-card.tertiary-card small{background:rgba(0,0,0,.28);border-radius:999px;padding:4px 9px;width:max-content;margin-bottom:6px}
/* —— AI layout candidates: four fenced compositions for the text layers —— */
.template-board.layout-band .template-card,.template-board.layout-band .template-card.hero-card{justify-content:flex-end;align-items:flex-start;text-align:left;padding:26px}
.template-board.layout-band .template-card small{order:0;margin:0 0 4px;letter-spacing:.1em}
.template-board.layout-band .template-card strong,.template-board.layout-band .template-card.hero-card strong{font-size:18px;max-width:100%;border:0;border-left:3px solid rgba(255,255,255,.7);padding:2px 0 2px 10px}
.template-board.layout-band .template-card span{margin:4px 0 0}
.template-board.layout-band .hero-card span::before{display:none}
.template-board.layout-band .template-card::before{background:linear-gradient(180deg,transparent 38%,rgba(8,6,4,.82))}
.template-board.layout-split .template-card,.template-board.layout-split .template-card.hero-card{justify-content:space-between;align-items:flex-start;text-align:left;padding:26px}
.template-board.layout-split .template-card small{order:0;margin:0}
.template-board.layout-split .template-card strong,.template-board.layout-split .template-card.hero-card strong{font-size:19px;border:0;padding:0;max-width:88%}
.template-board.layout-split .template-card span{align-self:flex-end;text-align:right;max-width:70%;margin:0}
.template-board.layout-split .hero-card span::before{display:none}
.template-board.layout-split .template-card::before{background:linear-gradient(200deg,rgba(8,6,4,.6) 8%,transparent 45%,rgba(8,6,4,.62) 92%)}
.template-board.layout-editorial .template-card,.template-board.layout-editorial .template-card.hero-card{justify-content:center;align-items:flex-start;text-align:left;padding:26px 26px 26px 32px}
.template-board.layout-editorial .template-card small{order:0;letter-spacing:.12em;margin:0 0 8px}
.template-board.layout-editorial .template-card small::before{content:"";display:inline-block;width:20px;height:1px;background:currentColor;margin-right:8px;vertical-align:middle}
.template-board.layout-editorial .template-card strong,.template-board.layout-editorial .template-card.hero-card strong{font-size:16px;letter-spacing:.06em;line-height:1.6;border:0;padding:0;max-width:92%}
.template-board.layout-editorial .template-card span{margin-top:8px;opacity:.85}
.template-board.layout-editorial .hero-card span::before{display:none}
.template-board.layout-editorial .template-card::before{background:linear-gradient(90deg,rgba(8,6,4,.66),transparent 70%)}
.template-board.style-minimal .secondary-card strong,.template-board.style-calm .secondary-card strong{border-top-color:rgba(35,28,18,.35)}
.template-board.style-minimal .hero-card span::before,.template-board.style-calm .hero-card span::before{background:rgba(35,28,18,.4)}
.template-board.style-minimal .tertiary-card small,.template-board.style-calm .tertiary-card small{background:rgba(255,255,255,.55);color:#231c12}
.template-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 48% 34%,rgba(255,222,150,.82),rgba(201,138,47,.28) 38%,transparent 64%);opacity:.92;z-index:0}
.template-card::after{content:none}
.template-card small,.template-card strong,.template-card span{position:relative;z-index:1}
.template-card small{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.82)}
.template-card strong{font-size:16px;line-height:1.18;letter-spacing:-.02em;color:#fff;text-shadow:0 1px 16px rgba(0,0,0,.3)}
.template-card span{font-size:12px;line-height:1.35;color:rgba(255,255,255,.84)}
.template-card.hero-card{min-height:190px}
.template-card.hero-card strong{font-size:20px}
.template-card.secondary-card{min-height:170px}
.template-card.tertiary-card{min-height:145px}
.template-board.style-premium .template-card{background:linear-gradient(145deg,#17110b,#4c3520)}
.template-board.style-lifestyle .template-card{background:linear-gradient(145deg,#b68d5e,#f2dcc0)}
.template-board.style-commerce .template-card{background:linear-gradient(145deg,#454a54,#f2f2f3)}
.template-board.style-social .template-card{background:linear-gradient(145deg,#9a4d48,#f2ad9c)}
.template-board.style-minimal .template-card{background:linear-gradient(145deg,#fff8ed,#d8c7ad)}
.template-board.style-tech .template-card{background:linear-gradient(145deg,#071019,#14344a)}
.template-board.style-bold .template-card{background:linear-gradient(145deg,#ffcf33,#ff6b35 56%,#181612)}
.template-board.style-calm .template-card{background:linear-gradient(145deg,#d8c7ad,#f8efe2)}
/* 缩略图：按「单页换图」的 per-page 风格上底色（整板全局风格只是默认，单页覆盖要赢）*/
.template-card.thumb-card.style-premium{background:linear-gradient(145deg,#17110b,#4c3520)}
.template-card.thumb-card.style-lifestyle{background:linear-gradient(145deg,#b68d5e,#f2dcc0)}
.template-card.thumb-card.style-commerce{background:linear-gradient(145deg,#454a54,#f2f2f3)}
.template-card.thumb-card.style-social{background:linear-gradient(145deg,#9a4d48,#f2ad9c)}
.template-card.thumb-card.style-minimal{background:linear-gradient(145deg,#fff8ed,#d8c7ad)}
.template-card.thumb-card.style-tech{background:linear-gradient(145deg,#071019,#14344a)}
.template-card.thumb-card.style-bold{background:linear-gradient(145deg,#ffcf33,#ff6b35 56%,#181612)}
.template-card.thumb-card.style-calm{background:linear-gradient(145deg,#d8c7ad,#f8efe2)}
.template-card.thumb-card.style-minimal small,.template-card.thumb-card.style-minimal span,.template-card.thumb-card.style-calm small,.template-card.thumb-card.style-calm span{color:rgba(35,28,18,.68)}
.template-card.thumb-card.style-minimal strong,.template-card.thumb-card.style-calm strong{color:#231c12;text-shadow:none}
.template-board.style-minimal .template-card small,.template-board.style-minimal .template-card span,.template-board.style-calm .template-card small,.template-board.style-calm .template-card span{color:rgba(35,28,18,.68)}
.template-board.style-minimal .template-card strong,.template-board.style-calm .template-card strong{color:#231c12;text-shadow:none}
.template-board.template-storySet .template-card::before{background:radial-gradient(circle at 22% 24%,rgba(255,235,194,.78),transparent 36%),linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.2))}
.template-board.template-commerceSet .template-card::before{background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.18) 48%,transparent 48%),radial-gradient(circle at 70% 32%,rgba(255,210,120,.72),transparent 36%)}
.template-board.template-commerceSet .template-card small,.template-board.template-commerceSet .template-card span{color:rgba(35,28,18,.68)}
.template-board.template-commerceSet .template-card strong{color:#231c12;text-shadow:none}
.template-board.format-xhsCover .template-card{aspect-ratio:3/4}
.template-board.format-xhsLong .template-card{aspect-ratio:3/2}
.template-board.format-tiktokCover .template-card{aspect-ratio:9/16}
.template-board.format-shopifyHero .template-card{aspect-ratio:16/7}
.template-board.format-commerceSquare .template-card{aspect-ratio:1/1}

/* visual style states — shared by preview stage and showcase hero */
.pp-stage.style-premium,.sc-hero-visual.style-premium{background:radial-gradient(circle at 50% 120%,#3a3024,#15110c)}
.pp-stage.style-lifestyle,.sc-hero-visual.style-lifestyle{background:radial-gradient(circle at 50% 115%,#d9c4a3,#f1e6d2)}
.pp-stage.style-lifestyle .pp-glow{background:radial-gradient(ellipse at 50% 0,rgba(255,222,160,.55),transparent 70%)}
.pp-stage.style-lifestyle .pp-product{box-shadow:0 20px 46px rgba(120,90,40,.35)}
.pp-stage.style-lifestyle .result-src{background:rgba(90,72,46,.55)}
.pp-stage.style-commerce,.sc-hero-visual.style-commerce{background:linear-gradient(180deg,#f6f6f8,#e6e6ec)}
.pp-stage.style-commerce .pp-glow{background:none}
.pp-stage.style-commerce .pp-product{box-shadow:0 26px 44px rgba(40,40,60,.24)}
.pp-stage.style-commerce .result-src{background:rgba(70,70,86,.55)}
.pp-stage.style-social,.sc-hero-visual.style-social{background:radial-gradient(circle at 50% 115%,#e8a08f,#f8e0d6)}
.pp-stage.style-social .pp-glow{background:radial-gradient(ellipse at 50% 0,rgba(255,170,150,.5),transparent 70%)}
.pp-stage.style-social .pp-product{box-shadow:0 0 64px rgba(255,150,120,.55)}
.pp-stage.style-social .result-src{background:rgba(140,70,55,.55)}
.pp-stage.style-minimal,.sc-hero-visual.style-minimal{background:linear-gradient(145deg,#fff8ed,#eadfcf)}
.pp-stage.style-minimal .pp-product{box-shadow:0 22px 42px rgba(150,120,80,.22)}
.pp-stage.style-minimal .result-src{background:rgba(95,80,62,.45)}
.pp-stage.style-tech,.sc-hero-visual.style-tech{background:radial-gradient(circle at 50% 105%,#0f2230,#07090d)}
.pp-stage.style-tech .pp-glow{background:radial-gradient(ellipse at 50% 0,rgba(80,190,255,.28),transparent 70%)}
.pp-stage.style-tech .pp-product{box-shadow:0 0 72px rgba(80,190,255,.38)}
.pp-stage.style-tech .result-src{background:rgba(6,18,28,.65)}
.pp-stage.style-bold,.sc-hero-visual.style-bold{background:linear-gradient(135deg,#ffcf33,#ff6b35 48%,#181612 48%)}
.pp-stage.style-bold .pp-product{box-shadow:0 20px 42px rgba(255,107,53,.42)}
.pp-stage.style-bold .result-src{background:rgba(24,22,18,.7)}
.pp-stage.style-calm,.sc-hero-visual.style-calm{background:radial-gradient(circle at 50% 115%,#d8c7ad,#f8efe2)}
.pp-stage.style-calm .pp-product{box-shadow:0 20px 48px rgba(150,116,70,.26)}
.pp-stage.style-calm .result-src{background:rgba(110,88,62,.48)}

/* adjustment pane */
.adjust-pane{display:grid;gap:14px;align-content:start}
.adjust-pane .tag{width:max-content}
.adjust-pane h2{font-size:clamp(24px,3vw,32px);margin:0}
.adjust-pane .sub{margin:0}
.copy-edit-block,.filter-switcher{border:1px solid var(--line);background:#ffffff;border-radius:16px;padding:13px;display:grid;gap:10px}
.adjust-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.adjust-group-head small,.adjust-group-head .mini-more{margin:0}
.mini-more{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;color:var(--muted)}
.mini-more:hover{border-color:#c9b78c;background:#fbf4e3;color:var(--ink)}
.adjust-field{display:grid;gap:7px;font-weight:600;font-size:13px;color:#2b251d}
.adjust-field input,.adjust-field textarea{border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff;font-weight:400;width:100%}
.adjust-field textarea{min-height:72px;resize:vertical}
.adjust-field input:focus,.adjust-field textarea:focus{outline:2px solid #c9b78c;border-color:#c9b78c}
.adjust-group small{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px;margin-bottom:9px;font-weight:700}
.chip-row{display:flex;gap:6px;flex-wrap:wrap}
.chip-hidden{display:none !important}
.chip-more{border-style:dashed !important;color:var(--muted) !important;background:transparent !important}
.chip-more:hover{border-color:#c9b78c !important;color:var(--ink) !important}
.chip-row button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;color:var(--muted);transition:.15s}
.chip-row button:hover{border-color:#c9b78c}
.chip-row button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.adjust-note{margin:0;font-size:13px;line-height:1.6;background:#fbf4e3;border:1px solid #e6e6eb;border-radius:12px;padding:11px 14px;color:#5d4a1e}
/* mobile-only bottom toolbar; sheet head shows on both (grip is mobile-only) */
.wb-toolbar{display:none}
.wb-sheet-head{display:grid;gap:7px;position:sticky;top:0;z-index:2;background:#ffffff;padding:10px 0 9px;border-bottom:1px solid var(--line);margin-bottom:2px}
.wb-sheet-grip{display:none;width:44px;height:4px;border-radius:999px;background:#d9d2c4;margin:0 auto}
.wb-sheet-title-row{display:flex;justify-content:space-between;align-items:center}
.wb-sheet-title-row strong{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.wb-sheet-close{border:1px solid var(--line);background:#fff;border-radius:999px;width:30px;height:30px;font-size:12px;color:var(--muted);display:grid;place-items:center;cursor:pointer}
/* layout candidate chips with mini composition previews */
.layout-hint{margin:0 0 9px;font-size:12px;color:var(--muted);line-height:1.5}
.layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.layout-options button{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px 10px;font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer;text-align:left}
.layout-options button.active{border-color:#6e6e73;background:#fff8ea;color:var(--ink);box-shadow:0 0 0 3px rgba(219,164,75,.2)}
.lo{position:relative;flex:0 0 30px;height:40px;border:1px solid #cbbf9f;border-radius:6px;background:linear-gradient(160deg,#f1e7d2,#e4d6b8)}
.lo::before,.lo::after{content:"";position:absolute;background:#6e6e73;border-radius:2px}
.lo-classic::before{left:20%;right:20%;top:42%;height:3px}
.lo-classic::after{left:32%;right:32%;top:58%;height:2px;opacity:.6}
.lo-band::before{left:12%;right:30%;bottom:18%;height:3px}
.lo-band::after{left:12%;right:50%;bottom:8%;height:2px;opacity:.6}
.lo-split::before{left:12%;right:40%;top:12%;height:3px}
.lo-split::after{right:12%;left:55%;bottom:12%;height:2px;opacity:.6}
.lo-editorial::before{left:14%;top:30%;bottom:30%;width:2px}
.lo-editorial::after{left:28%;right:28%;top:46%;height:2px;opacity:.75}

/* ---------- step 4 : showcase + readiness ---------- */
.preview-main h2{font-size:clamp(28px,4vw,40px)}
.page-focus{font-size:14px;line-height:1.6;background:#fbf4e3;border:1px solid #e6e6eb;border-radius:12px;padding:10px 14px;color:#5d4a1e;margin:14px 0 18px}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:24px}
.benefits div{background:#f7f3eb;border:1px solid var(--line);padding:15px;border-radius:14px}
.benefits b{display:block;font-size:14px}
.benefits span{display:block;color:var(--muted);font-size:13px;margin-top:5px}
.score-card{background:linear-gradient(180deg,#fffaf0,#fffdfa)}
.score-ring{display:flex;align-items:baseline;gap:4px;margin:14px 0 4px}
.score-num{font-size:58px;font-weight:800;letter-spacing:-.01em;line-height:1}
.score-den{font-size:18px;color:var(--muted)}
.score-verdict{display:block;font-size:18px;margin-bottom:18px}
.bars{display:grid;gap:11px}
.bars div{display:grid;grid-template-columns:96px 1fr 28px;gap:10px;align-items:center;font-size:13px}
.bars span{color:var(--muted)}
.bars i{height:9px;background:var(--soft);border-radius:999px;position:relative;overflow:hidden}
.bars i::after{content:"";position:absolute;inset:0;width:var(--v);background:var(--good);border-radius:999px}
.bars em{font-style:normal;text-align:right;font-weight:700}
.why{font-size:13px;margin:16px 0 0;line-height:1.6}
.score-notes{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px}
.score-notes li{font-size:13px;line-height:1.55;padding:10px 12px;border-radius:12px;border:1px solid var(--line)}
.score-notes .adv{background:#eef6f0;border-color:#bcdcc8;color:#235c41}
.score-notes .gap{background:#fdf3e6;border-color:#ecd6b3;color:#6e6e73}
.score-notes .next{background:#f0f2f8;border-color:#c3cbe2;color:#33415e}
.score-notes .style-note{background:#fbf4e3;border-color:#e6e6eb;color:#5d4a1e}
.fit{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.fit small{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px;margin-bottom:10px}
.fit-tabs{display:flex;gap:6px;flex-wrap:wrap}
.fit-tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;color:var(--muted)}
.fit-tabs button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.fit-note{font-size:13px;margin:12px 0 0;line-height:1.6}

/* ---------- step 5 : action center ---------- */
.kit-version{display:inline-block;margin:14px 0 0;font-size:13px;font-weight:700;background:#fbf4e3;border:1px solid #e6e6eb;border-radius:999px;padding:7px 14px;color:#5d4a1e}
.export-manifest{margin-top:18px;border:1px solid #e6e6eb;background:linear-gradient(135deg,#fff8ea,#fffdfa);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.export-head{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}
.export-head strong{font-size:15px;line-height:1.35;letter-spacing:-.01em;color:#1d1d1f}
.export-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.export-grid article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;display:grid;gap:5px}
.export-grid small{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:800}
.export-grid b{font-size:15px;line-height:1.25}
.export-grid span{font-size:12.5px;color:var(--muted);line-height:1.45}
.action-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:22px}
.action-cards article{border:1px solid var(--line);background:#fff;border-radius:16px;padding:18px;display:flex;flex-direction:column}
.action-cards article.featured{background:#fbf4e3;border-color:#e6e6eb}
.action-cards small{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px;margin-bottom:8px}
.action-cards strong{display:block;font-size:16px;line-height:1.3}
.action-cards p{font-size:13px;margin:8px 0 16px;flex:1}
.action-cards .mock-cta{width:100%}
/* ---------- confidence check ---------- */
.confidence-check{border:1px solid #c9b78c!important;background:#fbf8ee!important}
.confidence-check p{font-size:13px;margin:8px 0 16px;flex:1}
.next-loop{margin-top:18px;background:#f7f3eb;box-shadow:none}
.next-loop h3{margin:0 0 8px;font-size:18px}
.next-loop p{font-size:14px}

/* ---------- modal (shareable link) ---------- */
.modal-back{position:fixed;inset:0;background:rgba(24,22,18,.5);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px;z-index:60;animation:fade .2s ease}
.modal-back[hidden]{display:none}
.modal{position:relative;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:28px;max-width:480px;width:100%;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.modal h2{font-size:26px;margin:12px 0 18px}
.modal-x{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:20px;line-height:1}
.link-row{display:flex;gap:8px;margin-bottom:16px}
.link-row input{flex:1;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#f7f3eb;font-weight:600}
.share-card{display:flex;gap:14px;border:1px solid var(--line);border-radius:16px;padding:14px;cursor:pointer;transition:.15s;align-items:center}
.share-card:hover{border-color:#c9b78c;box-shadow:var(--shadow)}
.share-thumb{width:78px;height:78px;border-radius:12px;flex-shrink:0;background:radial-gradient(circle at 48% 30%,#ffe6a3,#c98a2f 52%,#231b12)}
.share-meta{display:flex;flex-direction:column;gap:4px;min-width:0}
.share-meta b{font-size:15px}
.share-meta span{font-size:13px;color:var(--muted)}
.share-meta small{font-size:12px;color:#a99}
.link-hint{font-size:13px;color:var(--muted);margin:16px 0 0}

/* ---------- showcase page ---------- */
.showcase{position:fixed;inset:0;background:#fbf9f4;z-index:70;overflow-y:auto;animation:fade .25s ease}
.showcase[hidden]{display:none}
.sc-bar{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:rgba(251,249,244,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);z-index:2}
.sc-url{font-size:13px;color:var(--muted);font-weight:600}
.sc-close{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:600}
.sc-body{max-width:980px;margin:0 auto;padding:30px 20px 70px}
.sc-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center;padding:30px 0}
.sc-pill{display:inline-block;background:#231b12;color:#ffe6a3;font-size:12px;font-weight:700;padding:6px 12px;border-radius:999px}
.sc-hero-copy h1{font-size:clamp(32px,5vw,52px);letter-spacing:-.01em;line-height:1.02;margin:16px 0}
.sc-hero-copy p{font-size:17px;color:var(--muted);max-width:440px}
.sc-cta-row{display:flex;align-items:center;gap:18px;margin-top:24px;flex-wrap:wrap}
.sc-cta{background:var(--ink);color:#fff;border:0;border-radius:14px;padding:15px 26px;font-weight:700;font-size:16px}
.sc-price{display:flex;flex-direction:column;line-height:1.2}
.sc-price b{font-size:20px}
.sc-price i{font-style:normal;font-size:12px;color:var(--muted)}
.sc-hero-visual{aspect-ratio:1;border-radius:26px;background:radial-gradient(circle at 50% 115%,#3a3024,#15110c);display:grid;place-items:center;overflow:hidden}
.sc-product{width:130px;height:170px;border-radius:22px;background:radial-gradient(circle at 48% 28%,#ffe6a3,#c98a2f 50%,#231b12);box-shadow:0 0 70px rgba(255,200,110,.6)}
.sc-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}
.sc-benefits article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}
.sc-ic{width:42px;height:42px;border-radius:12px;background:#f1e7d4;display:grid;place-items:center;font-size:20px;margin-bottom:12px}
.sc-benefits b{display:block;font-size:16px;margin-bottom:6px}
.sc-benefits span{font-size:14px;color:var(--muted)}
.sc-gallery{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:12px;height:340px;margin:20px 0}
.sc-shot{border-radius:18px}
.sc-shot.a{grid-row:1/3;background:radial-gradient(circle at 40% 120%,#4a3c2a,#191309)}
.sc-shot.b{background:linear-gradient(135deg,#efe2cb,#d6c3a0)}
.sc-shot.c{background:radial-gradient(circle at 60% 40%,#ffd98c,#a06c2a 55%,#1c1610)}
.sc-fit{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin:20px 0}
.sc-fit-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.sc-fit-head b{font-size:20px;letter-spacing:-.02em}
.sc-ready{font-size:13px;color:var(--good);font-weight:600;background:#e8f5ee;border:1px solid #b9dec9;padding:6px 12px;border-radius:999px}
.sc-fit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;text-align:center}
.sc-fit-grid div{background:#f7f3eb;border-radius:14px;padding:16px}
.sc-fit-grid em{display:block;font-style:normal;font-size:30px;font-weight:800;letter-spacing:-.01em}
.sc-fit-grid span{font-size:12px;color:var(--muted)}
.sc-foot{text-align:center;padding:46px 0 10px}
.sc-foot h2{font-size:clamp(26px,4vw,38px);margin-bottom:22px}
.sc-by{display:block;margin-top:18px;font-size:12px;color:var(--muted)}

/* ---------- toast ---------- */
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:#231f19;color:#fff;padding:14px 22px;border-radius:14px;font-size:14px;font-weight:600;box-shadow:0 16px 40px rgba(0,0,0,.3);z-index:90;opacity:0;transition:.25s;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast[hidden]{display:none}
.more-search{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px;margin:8px 0 12px;background:#fff}
.more-list{display:grid;gap:8px}
.more-list button{border:1px solid var(--line);background:#fff;border-radius:13px;padding:12px 14px;text-align:left;font-weight:700;color:var(--ink)}
.more-list button:hover{border-color:#c9b78c;background:#fbf4e3}
.more-list button.active{background:var(--ink);border-color:var(--ink);color:#fff}
.more-empty{margin:10px 0 0;color:var(--muted);font-size:13px}

/* ---------- workbench entry reveal (replaces old standalone Kit step) ---------- */
.wb-reveal{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 32%,#fff8ea,#f6f4ef 64%);animation:fade .3s ease}
.wb-reveal[hidden]{display:none}
.wb-reveal.closing{opacity:0;transition:opacity .4s ease}
.wb-reveal-card{max-width:460px;width:100%;display:grid;gap:16px;text-align:left}
.wb-reveal-card .tag{width:max-content}
.wb-reveal-card h3{margin:0;font-size:clamp(22px,4vw,30px);letter-spacing:-.02em}
.wb-reveal-lines{margin:0;padding:0;list-style:none;display:grid;gap:9px}
.wb-reveal-lines li{opacity:.25;display:flex;gap:9px;align-items:center;font-size:14px;color:var(--muted);transition:opacity .3s ease}
.wb-reveal-lines li::before{content:"○";color:#cbbf9f;font-size:12px}
.wb-reveal-lines li.done{opacity:1;color:var(--ink)}
.wb-reveal-lines li.done::before{content:"✓";color:#6e6e73;font-weight:800}
.wb-reveal-done{opacity:0;transform:translateY(6px);transition:opacity .4s ease,transform .4s ease;display:grid;gap:8px}
.wb-reveal.finished .wb-reveal-done{opacity:1;transform:none}
.wb-reveal-done strong{font-size:17px;color:#6e6e73}
.wb-reveal-done p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}

/* ---------- text-layer editor (fenced controls) ---------- */
.layer-badge{position:absolute;top:10px;right:10px;z-index:2;font-style:normal;font-size:10px;font-weight:800;letter-spacing:.04em;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:3px 8px;opacity:.92}
.template-card[data-layer]{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.template-card[data-layer]:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(31,26,19,.18)}
.layer-modal{display:grid;gap:14px;max-width:420px}
.layer-modal .tag{width:max-content}
.layer-field{display:grid;gap:7px}
.layer-field>span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.layer-field input{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;box-sizing:border-box}
.layer-field input:focus{outline:none;border-color:#d2d2d7;box-shadow:0 0 0 3px rgba(0,113,227,.16)}
.layer-swatches{display:flex;gap:8px}
.layer-swatches button{width:34px;height:34px;border-radius:999px;border:2px solid var(--line);cursor:pointer;padding:0}
.layer-swatches button.active{border-color:#6e6e73;box-shadow:0 0 0 3px rgba(219,164,75,.3)}
.layer-sizes{display:flex;gap:8px}
.layer-sizes button{flex:1;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 6px;font-size:13px;font-weight:700;color:var(--muted);cursor:pointer}
.layer-sizes button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.layer-note{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.cs-why{margin:0;color:var(--muted);font-size:12px;line-height:1.55;border-top:1px solid var(--line);padding-top:10px}
.cs-peek-live{display:none}

/* ---------- launch deck (L4 card-based final delivery) ---------- */
.launch-deck{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin:18px 0}
.ld-card{border:1px solid #e6e6eb;border-radius:18px;background:linear-gradient(165deg,#fffdfa,#fbf6ea);padding:18px;display:grid;gap:12px;align-content:start;box-shadow:var(--shadow)}
.ld-eyebrow{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:4px 10px;width:max-content}
.ld-row{display:grid;gap:4px}
.ld-row small{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#86868b}
.ld-row strong{font-size:15px;line-height:1.45;letter-spacing:-.01em}
.ld-row p{margin:0;font-size:13px;line-height:1.55;color:var(--muted)}
.ld-score{display:flex;align-items:center;gap:12px}
.ld-score>b{font-size:38px;line-height:1;color:#6e6e73;letter-spacing:-.01em}
.ld-score strong{display:block;font-size:14px}
.ld-score small{color:var(--muted);font-size:11px}
.ld-card .mock-cta{justify-self:start}
.ld-card.pitch{background:linear-gradient(170deg,#211c14,#322a1d);border-color:#1c1812;color:#f4ecd9}
.ld-card.pitch .ld-row small{color:#cdb87f}
.ld-card.pitch .ld-row p{color:#d9cfb8}
.ld-card.pitch .ld-url{color:#ffe6a3;font-size:15px}
.ld-pitch-text{white-space:pre-line;border:1px solid rgba(255,230,163,.25);border-radius:12px;padding:11px 13px;background:rgba(0,0,0,.18)}
.ld-actions{display:flex;flex-wrap:wrap;gap:8px}
.ld-card.pitch .mock-cta{border-color:rgba(255,230,163,.4);color:#ffe6a3;background:transparent}
.ld-card.pitch .mock-cta.solid{background:#f5f5f7;color:#6e6e73;border-color:#d2d2d7}

/* ---------- L2 real visual candidates (FLUX via server endpoint) ---------- */
.visual-gen{margin-top:14px;border:1px solid #e6e6eb;border-radius:16px;background:linear-gradient(160deg,#fff8ea,#fffdfa);padding:14px;display:grid;gap:11px}
.vg-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.vg-head small{font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6e6e73}
.vg-cta{white-space:nowrap}
.vg-cta:disabled{opacity:.6;cursor:wait}
.vg-note{margin:0;font-size:12.5px;color:var(--muted);line-height:1.5}
.vg-note.err{color:#a23b2e}
.vg-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.vg-directions{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.vg-dir{position:relative;border:2px solid var(--line);border-radius:14px;overflow:hidden;cursor:pointer;padding:0;background:#fff;aspect-ratio:3/4;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.vg-dir img{width:100%;height:100%;object-fit:cover;display:block}
.vg-dir span{position:absolute;left:8px;bottom:8px;font-size:10.5px;font-weight:800;color:#fff;background:rgba(24,22,18,.66);border-radius:999px;padding:3px 9px;letter-spacing:.04em}
.vg-dir:hover{border-color:#d2d2d7;transform:translateY(-2px)}
.vg-dir.selected{border-color:#6e6e73;box-shadow:0 0 0 3px rgba(219,164,75,.35)}
.vg-dir.selected::after{content:"✓ 基础答案";position:absolute;top:8px;right:8px;font-size:10px;font-weight:800;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:3px 8px}
.vg-complete{width:max-content}
.pp-stage.has-real{background-size:cover;background-position:center}
.pp-stage.has-real .pp-product,.pp-stage.has-real .pp-glow{display:none}
/* real-photo set cards: darker editorial scrim so the text layers read like designed covers */
.template-card.has-real::before{background:linear-gradient(180deg,rgba(8,6,4,.12) 38%,rgba(8,6,4,.78))}
.template-card.has-real::after{border-color:rgba(255,255,255,.32)}
.template-card.has-real small,.template-card.has-real span{color:rgba(255,255,255,.88)}
.template-card.has-real strong{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.55)}
.template-card.hero-card.has-real::before{background:radial-gradient(circle at 50% 38%,transparent 22%,rgba(8,6,4,.62) 78%)}
.tpl-main{position:absolute;top:10px;left:10px;z-index:3;border:1px solid rgba(255,255,255,.5);background:rgba(24,22,18,.6);color:#ffe6a3;border-radius:999px;padding:4px 10px;font-size:10.5px;font-weight:800;cursor:pointer;backdrop-filter:blur(4px)}
.tpl-main:hover{background:rgba(24,22,18,.85)}
.tpl-main.active{background:#f5f5f7;color:#6e6e73;border-color:#d2d2d7}
.steps li.locked{opacity:.45;cursor:not-allowed}

/* ---------- launch deck share page (partner / distributor view) ---------- */
.deck-share{position:fixed;inset:0;background:#fbf9f4;z-index:118;overflow-y:auto;animation:fade .25s ease}
.deck-share[hidden]{display:none}
.ds-bar{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:rgba(33,28,20,.96);backdrop-filter:blur(8px);z-index:2}
.ds-url{color:#ffe6a3;font-size:13px;font-weight:700;letter-spacing:.02em}
.ds-bar .sc-close{background:transparent;border-color:rgba(255,230,163,.4);color:#ffe6a3}
.ds-body{max-width:1060px;margin:0 auto;padding:34px 20px 60px;display:grid;gap:22px}
.ds-hero{display:grid;gap:10px;justify-items:center;text-align:center;padding:26px 16px 8px}
.ds-pill{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:5px 12px}
.ds-hero h1{margin:4px 0 0;font-size:clamp(24px,3.6vw,40px);letter-spacing:-.01em;line-height:1.25;max-width:21em}
.ds-def{margin:0;color:var(--muted);font-size:15px}
.ds-status{font-size:12px;font-weight:700;color:#5d6b54;background:#eef0e7;border:1px solid #d8ddcb;border-radius:999px;padding:5px 12px}
.ds-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}
.ds-card{border:1px solid #e6e6eb;border-radius:18px;background:linear-gradient(165deg,#fffdfa,#fbf6ea);padding:18px;display:grid;gap:12px;align-content:start;box-shadow:var(--shadow)}
.ds-card>small{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:4px 10px;width:max-content}
.ds-row{display:grid;gap:3px}
.ds-row b{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#86868b}
.ds-row strong{font-size:14.5px;line-height:1.45}
.ds-row p{margin:0;font-size:13px;line-height:1.55;color:var(--muted)}
.ds-score{display:flex;align-items:center;gap:12px}
.ds-score>b{font-size:36px;line-height:1;color:#6e6e73;letter-spacing:-.01em}
.ds-score strong{display:block;font-size:14px}
.ds-score span{color:var(--muted);font-size:11px}
.ds-cta{border-radius:18px;background:linear-gradient(170deg,#211c14,#322a1d);color:#f4ecd9;padding:20px;display:grid;gap:12px}
.ds-cta>small{font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#cdb87f}
.ds-pitch-text{margin:0;white-space:pre-line;font-size:13.5px;line-height:1.6;color:#e9dfc6;border:1px solid rgba(255,230,163,.25);border-radius:12px;padding:12px 14px;background:rgba(0,0,0,.18)}
.ds-actions{display:flex;flex-wrap:wrap;gap:8px}
.ds-cta .mock-cta{border-color:rgba(255,230,163,.4);color:#ffe6a3;background:transparent}
.ds-cta .mock-cta.solid{background:#f5f5f7;color:#6e6e73;border-color:#d2d2d7}

/* ---------- copy studio (full copy-asset workspace) ---------- */
.copy-studio-back{place-items:start center;overflow:auto;padding:4vh 18px;z-index:100;backdrop-filter:none}
.copy-studio{position:relative;background:var(--bg);border:1px solid #e6e6eb;border-radius:24px;max-width:960px;width:100%;box-shadow:0 30px 80px rgba(0,0,0,.35);padding:24px;display:grid;gap:18px}
.cs-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding-right:40px}
.cs-head .tag{width:max-content}
.cs-head p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.cs-body{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}
.cs-fields{display:grid;gap:12px}
.cs-field{display:grid;grid-template-columns:32px 1fr;gap:11px;border:1px solid var(--line);background:#ffffff;border-radius:16px;padding:14px;cursor:text}
.cs-num{font-size:11px;font-weight:800;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;width:30px;height:30px;display:grid;place-items:center}
.cs-field b{display:block;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:7px}
.cs-field input,.cs-field textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;line-height:1.5;background:#fff;box-sizing:border-box}
.cs-field textarea{min-height:62px;resize:vertical}
.cs-field input:focus,.cs-field textarea:focus{outline:none;border-color:#d2d2d7;box-shadow:0 0 0 3px rgba(0,113,227,.16)}
.cs-field p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.cs-alt-btn{margin-top:9px;width:max-content;border:1px solid #d2d2d7;background:#f5f5f7;color:#6e6e73;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800;cursor:pointer}
.cs-alt-btn:disabled{opacity:.65;cursor:wait}
.cs-alts{margin-top:9px;display:grid;gap:7px;animation:fade .25s ease}
.cs-section-head{display:grid;gap:6px;padding:4px 2px 0;position:relative}
.cs-section-head strong{font-size:14px;letter-spacing:.02em}
.cs-section-head p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.55}
.cs-section-head.strategy{margin-top:10px;border-top:2px solid #e6e6eb;padding-top:16px}
.cs-ai-badge{position:absolute;top:14px;right:0;font-size:10px;font-weight:800;letter-spacing:.05em;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:3px 9px}
.cs-sub-l{display:block;margin-top:10px;margin-bottom:6px;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#86868b}
.cs-label-row{display:flex;align-items:center;gap:8px;margin-top:10px}
.cs-label-row:first-child,.cs-field>div>.cs-label-row:first-of-type{margin-top:0}
.cs-label-row b,.cs-label-row .cs-sub-l{margin:0;line-height:1.2}
.cs-label-row .score-chip{align-self:center}
.score-chip{font-size:10.5px;font-weight:800;border-radius:999px;padding:3px 9px;letter-spacing:.03em;white-space:nowrap}
.score-chip:empty{display:none}
.score-chip.tier-great{color:#1d5c34;background:#e2f2e5;border:1px solid #9ecaa8}
.score-chip.tier-good{color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7}
.score-chip.tier-weak{color:#8c2f23;background:#fbe9e5;border:1px solid #e0a79c}
.score-chip.mini{font-size:10px;padding:2px 8px;width:max-content}
.score-why{display:block;margin:4px 0 6px;font-size:11.5px;font-style:normal;color:var(--muted)}
.score-why:empty{display:none}
/* delivery checkpoint */
.dc-grid{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1fr) minmax(0,1.1fr);gap:16px;margin-top:16px;align-items:stretch}
.dc-total{display:flex;flex-direction:column;justify-content:center;gap:4px;border:1px solid #d2d2d7;background:linear-gradient(160deg,#ffffff,#fffdfa);border-radius:18px;padding:24px 22px}
.dc-total-l{font-size:12.5px;font-weight:800;letter-spacing:.06em;color:#6e6e73;text-transform:uppercase}
.dc-total-num{font-size:clamp(64px,7vw,92px);line-height:.86;font-weight:800;color:#6e6e73;letter-spacing:-.01em;margin:6px 0 2px}
.dc-total-why{margin:0;font-size:13px;color:var(--muted);line-height:1.5}
.dc-row-buyer{flex-direction:column;align-items:stretch}
.dc-row-buyer .dc-row-main{width:100%}
.dc-row-buyer .dc-row-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dc-buyer-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px;padding:12px 16px;border:1px solid #d2d2d7;border-radius:11px;background:#f5f5f7;color:#6e6e73;font-size:14px;font-weight:800;cursor:pointer;transition:.15s}
.dc-buyer-cta:hover{background:linear-gradient(135deg,#fdeec6,#f8dca6);border-color:#c9942f}
.dc-visual{position:relative;min-height:300px;border-radius:18px;border:1px solid #e6e6eb;background:radial-gradient(circle at 48% 30%,#ffe6a3,#c98a2f 52%,#231b12);background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:flex-end;padding:20px;overflow:hidden}
.dc-visual::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(8,6,4,.78))}
.dc-visual strong{position:relative;color:#fff;font-size:19px;line-height:1.4;text-shadow:0 2px 16px rgba(0,0,0,.5)}
.dc-visual em{position:relative;color:rgba(255,255,255,.85);font-size:13px;margin-top:6px}
.dc-list{display:grid;gap:10px;align-content:start}
.dc-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);background:#ffffff;border-radius:14px;padding:13px 15px}
.dc-row b{display:block;font-size:13.5px;margin-bottom:3px}
.dc-row p{margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.dc-row .mock-cta{white-space:nowrap}
.dc-row.dc-pack{border-color:#d2d2d7;background:linear-gradient(135deg,#fff8ea,#fffdfa)}
.dc-pack-score{font-size:34px;font-weight:800;color:#6e6e73;letter-spacing:-.01em}
@media(max-width:920px){.dc-grid{grid-template-columns:1fr}.dc-visual{min-height:220px}.dc-total{flex-direction:row;align-items:baseline;gap:12px}.dc-total-num{font-size:64px;margin:0}}
/* buyer landing: why-we-built-it narrative */
.sc-story{max-width:680px;margin:34px auto 0;padding:0 20px;display:grid;gap:10px;text-align:center}
.sc-story small{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#86868b}
.sc-story p{margin:0;font-size:15px;line-height:1.8;color:var(--ink)}
.sc-story em{font-size:12.5px;color:var(--muted)}
.cs-angle-row{display:grid;gap:6px;margin-top:12px;margin-bottom:8px}
.cs-angle-row small{color:var(--muted);font-size:11px;font-weight:700}
.cs-angles{display:flex;gap:6px;flex-wrap:wrap}
.cs-angles button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;color:var(--muted);cursor:pointer}
.cs-angles button.active{background:var(--ink);color:#ffe6a3;border-color:var(--ink)}
.cs-body-text{min-height:118px !important}
.cs-pillars{display:grid;gap:8px}
.cs-pillar{display:grid;gap:5px;border:1px solid var(--line);border-radius:12px;padding:9px;background:#fff}
.cs-pillar input{border:0 !important;padding:2px 4px !important;box-shadow:none !important;font-weight:800}
.cs-pillar input.cs-pillar-d{font-weight:400;font-size:12.5px !important;color:var(--muted)}
.cs-strat{background:linear-gradient(160deg,#fbf6ea,#fffdfa);border-color:#e6e6eb}
.cs-num.strat{background:var(--ink);color:#ffe6a3;border-color:var(--ink)}
.cs-strat-line{display:grid;grid-template-columns:64px 1fr;gap:8px;margin:8px 0 0 !important;font-size:13px !important;color:var(--ink) !important;line-height:1.55 !important}
.cs-strat-line i{font-style:normal;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#86868b;padding-top:2px}
.cs-strat-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px;margin-top:8px}
.cs-strat-card strong{display:block;font-size:13px;margin-bottom:3px}
.cs-strat-card p{margin:0 !important;font-size:12.5px !important;color:var(--muted) !important;line-height:1.55 !important}
.cs-strat-note{margin-top:10px !important;font-size:11.5px !important;color:#86868b !important}
.cs-alt-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cs-alt-head small{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.cs-alt-close{border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:700;cursor:pointer;text-decoration:underline;padding:2px 4px}
.cs-alt-option{text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;font:inherit;font-size:13px;line-height:1.5;color:var(--ink);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.cs-alt-option:hover{border-color:#d2d2d7;box-shadow:0 0 0 3px rgba(219,164,75,.14)}
.cs-alt-option.active{border-color:#6e6e73;background:#fff8ea;box-shadow:0 0 0 3px rgba(219,164,75,.22)}
.cs-preview{position:sticky;top:90px;display:grid;gap:10px;max-height:calc(100vh - 106px);overflow:auto}
.cs-preview>small{color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:800}
.cs-preview-card{border:1px solid #e6e6eb;border-radius:16px;background:linear-gradient(160deg,#fff8ea,#fffdfa);padding:16px;display:grid;gap:8px}
.cs-preview-card strong{font-size:17px;line-height:1.45;letter-spacing:-.01em}
.cs-preview-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.cs-preview-card em{color:var(--muted);font-size:12.5px;line-height:1.55}
.cs-pv-core{margin-top:4px;padding-top:10px;border-top:1px dashed #e6e6eb;display:grid;gap:5px}
.cs-pv-core .cs-pv-l{font-size:10.5px;letter-spacing:.08em;color:#86868b;text-transform:uppercase}
.cs-pv-core>b{font-size:13.5px;line-height:1.45;color:#3a2f1a}
.cs-pv-pillars{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:5px}
.cs-pv-pillars li{display:grid;gap:1px}
.cs-pv-pillars li b{font-size:12px;color:#5a4a2a}
.cs-pv-pillars li span{font-size:11.5px;line-height:1.45;color:var(--muted)}
.cs-sync-note{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.cs-gen-status{margin:9px 0 0;width:max-content;max-width:100%;font-size:12px;font-weight:700;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:5px 12px}
.cs-gen-status.done{background:#fffdfa}
/* demo "generating" intro: cards rise in staggered, values type out, gold lock-in */
.cs-generating .cs-field{opacity:0;transform:translateY(10px);animation:csIn .5s cubic-bezier(.22,.9,.3,1) forwards}
@keyframes csIn{to{opacity:1;transform:none}}
.cs-field.typing input,.cs-field.typing textarea{border-color:#d2d2d7;box-shadow:0 0 0 3px rgba(219,164,75,.16)}
.cs-field.typing .cs-num{animation:csPulse 1s ease infinite}
@keyframes csPulse{50%{box-shadow:0 0 0 6px rgba(219,164,75,.25)}}
.cs-field.locked{animation:csLockFlash .55s ease}
@keyframes csLockFlash{0%{background:#f5f5f7}100%{background:#ffffff}}
@media(prefers-reduced-motion:reduce){.cs-generating .cs-field{animation:none;opacity:1;transform:none}.cs-field.typing .cs-num{animation:none}}
.cs-done{width:100%}
.copy-studio-card{border:1px solid #e6e6eb;background:linear-gradient(160deg,#fff8ea,#fffdfa);border-radius:16px;padding:14px;display:grid;gap:8px}
.copy-studio-card>small{color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:800}
.copy-studio-card strong{font-size:14px;line-height:1.45}
.copy-studio-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.cs-open-btn{justify-self:start}
[data-cs-field]{cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease}
[data-cs-field]:hover{border-color:#d2d2d7;box-shadow:0 0 0 3px rgba(219,164,75,.14)}

/* ---------- responsive ---------- */
@media(max-width:920px){
  .shell{grid-template-columns:1fr}
  .rail{position:sticky;top:0;height:auto;z-index:50;padding:14px 18px;gap:10px}
  .rail .mode,.rail .rail-foot{display:none}
  .rail.open .mode,.rail.open .rail-foot,.rail.open .steps{display:block}
  .rail.open .lang-switch{display:flex}
  .rail-toggle{display:block}
  .steps{display:none}
  .rail.open .steps{display:grid}
  .rail-foot{margin-top:12px;padding-top:12px}
  .hero-grid,.preview-layout,.adjust-layout{grid-template-columns:1fr}
  .input-brief-head{display:grid}
  .input-grid.compact{grid-template-columns:1fr}
  /* —— workbench: preview is the canvas, controls live in a bottom sheet —— */
  .workbench-layout .preview-pane{order:1}
  .wb-tools{display:none}
  .workbench-layout .adjust-pane{order:2;position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;z-index:80;margin:0;max-width:100%;max-height:52vh;overflow:auto;padding:0 16px calc(88px + env(safe-area-inset-bottom));gap:10px;border-radius:22px 22px 0 0;border:1px solid #e6e6eb;border-bottom:0;background:#ffffff;box-shadow:0 -18px 48px rgba(24,22,18,.22);transform:translateY(105%);transition:transform .34s cubic-bezier(.32,.72,.27,1)}
  .wb-sheet-grip{display:block}
  .wb-sheet-open .adjust-pane{transform:translateY(0)}
  .workbench-layout .adjust-pane .tag,.workbench-layout .adjust-pane h2,.workbench-layout .adjust-pane .sub,.workbench-layout .adjust-note,.workbench-layout .template-intro,.workbench-layout .filter-switcher{display:none}
  .wb-sheet-head{display:grid;gap:7px;position:sticky;top:0;z-index:2;background:#ffffff;padding:10px 0 9px;border-bottom:1px solid var(--line);margin-bottom:2px}
  .wb-sheet-grip{width:44px;height:4px;border-radius:999px;background:#d9d2c4;margin:0 auto}
  .wb-sheet-title-row{display:flex;justify-content:space-between;align-items:center}
  .wb-sheet-title-row strong{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
  .wb-sheet-close{border:1px solid var(--line);background:#fff;border-radius:999px;width:30px;height:30px;font-size:12px;color:var(--muted);display:grid;place-items:center}
  .workbench-layout .copy-studio-card{display:none}
  .copy-studio-back{padding:0}
  .copy-studio{border-radius:0;border:0;min-height:100vh;padding:18px 16px calc(28px + env(safe-area-inset-bottom));gap:14px}
  .cs-body{grid-template-columns:1fr;gap:14px}
  /* simple version (Ken): no in-studio preview on mobile. Text copy has no layout
     to preview — the edit field + score chip IS the feedback. The composed result
     is seen in the workbench canvas / bundle, not here. 完成 floats at the bottom. */
  .cs-preview{display:contents}
  .cs-preview>small,.cs-peek-live,.cs-preview-card,.cs-preview .cs-sync-note,.cs-preview .cs-why{display:none}
  .cs-done{position:fixed;left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;z-index:60;box-shadow:0 14px 34px rgba(24,22,18,.34)}
  .cs-fields{padding-bottom:64px}
  .cs-field{padding:12px;grid-template-columns:28px 1fr;gap:9px}
  /* mobile: trim explanatory chrome — drop the header sub + section paragraphs so the
     fields start near the top. Keep the section titles as dividers and the gen status. */
  .cs-head p:not(.cs-gen-status){display:none}
  .cs-section-head p{display:none}
  .cs-head{padding-right:36px}
  .cs-num{width:26px;height:26px;font-size:10px}
  .workbench-layout .mobile-panel{display:none}
  .workbench-layout .mobile-panel.active{display:grid}
  .workbench-layout .adjust-group{padding-top:8px;border-top:1px solid var(--line)}
  .workbench-layout .adjust-group:first-of-type{border-top:0;padding-top:0}
  .workbench-layout .chip-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
  .workbench-layout .chip-row button{white-space:nowrap;flex-shrink:0;padding:10px 14px}
  .wb-toolbar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:90;align-items:stretch;gap:4px;background:rgba(24,22,18,.96);border-radius:999px;padding:6px;box-shadow:0 14px 34px rgba(24,22,18,.38);backdrop-filter:blur(10px)}
  .wb-toolbar button{flex:1;display:grid;justify-items:center;align-content:center;gap:2px;background:transparent;border:0;color:#cfc8bb;font-size:11px;font-weight:700;padding:6px 2px;border-radius:999px;cursor:pointer}
  .wb-toolbar button i{font-style:normal;font-size:15px;line-height:1}
  .wb-toolbar button.active{background:#37322a;color:#ffe6a3}
  .wb-toolbar .wb-proceed{flex:1.5;display:flex;align-items:center;justify-content:center;gap:4px;background:#f5f5f7;color:#6e6e73;border:1px solid #d2d2d7;font-size:13px;font-weight:800}
  [data-screen="3"] .actions{margin-bottom:78px}
  .template-board{display:grid;grid-template-columns:1fr;height:auto;overflow:visible}
  .template-board .template-card{height:auto}
  .template-card,.template-card.hero-card,.template-card.secondary-card,.template-card.tertiary-card{min-height:140px}
  .pp-stage{max-height:420px}
  .benefits,.action-cards,.sc-benefits,.sc-fit-grid,.export-grid{grid-template-columns:1fr}
  .sc-fit-grid{grid-template-columns:repeat(2,1fr)}
  .deck-bar{padding:8px 12px;gap:8px;position:sticky;top:76px;z-index:8}
  .deck-id{width:100%;gap:6px}
  .deck-kit{font-size:12px}
  .deck-state{font-size:11px;white-space:normal;line-height:1.35;padding:4px 9px}
  .deck-spine{display:none}
  .before-after{grid-template-columns:1fr;gap:8px}
  .ba-arrow{transform:rotate(90deg)}
  .input-grid{grid-template-columns:1fr}
  .stage{padding:20px 18px 48px}
  .topbar{flex-direction:column;align-items:stretch;gap:12px}
  .progress{text-align:left;min-width:0}
  .actions{justify-content:stretch;flex-wrap:wrap}
  .actions button{flex:1;white-space:nowrap}
  .actions .primary{flex:1 1 100%}
  .sc-hero{grid-template-columns:1fr}
  .sc-gallery{grid-template-columns:1fr 1fr;height:260px}
}
@media(max-width:560px){
  .sc-gallery{height:auto;grid-template-columns:1fr;grid-template-rows:none}
  .sc-shot{height:150px}
  .sc-shot.a{grid-row:auto}
}
/* direction preview cards (pre-generation): each style is its own world */
.vg-dir-preview{display:grid;place-items:center}
.vg-dir-preview.dirbg-premium,.sc-prev.dirbg-premium{background:radial-gradient(circle at 50% 30%,#8a5a20,#17110b 70%)}
.vg-dir-preview.dirbg-lifestyle,.sc-prev.dirbg-lifestyle{background:linear-gradient(150deg,#f6e3c4,#b68d5e)}
.vg-dir-preview.dirbg-minimal,.sc-prev.dirbg-minimal{background:linear-gradient(160deg,#fff8ed,#e2d4ba)}
.vg-dir-preview.dirbg-tech,.sc-prev.dirbg-tech{background:linear-gradient(155deg,#0a1622,#1d4259)}
.vg-dir-preview.dirbg-social,.sc-prev.dirbg-social{background:linear-gradient(145deg,#ff9a8b,#f25d9c 60%,#c44569)}
.vg-dir-preview.dirbg-calm,.sc-prev.dirbg-calm{background:linear-gradient(150deg,#e8e2d2,#b8c0a8)}
.vg-dir-preview span{position:static;margin:0}
#dirPanelGallery{grid-template-columns:repeat(2,minmax(0,1fr))}
#dirPanelGallery .vg-dir{aspect-ratio:4/3}

.ds-hero-visual{width:min(520px,90%);aspect-ratio:16/9;border-radius:18px;background-size:cover;background-position:center;border:1px solid #e6e6eb;box-shadow:0 18px 44px rgba(24,22,18,.22);margin:6px auto 2px}

/* ---------- left-rail step state + workbench progress guide ---------- */
.steps li.done{color:var(--ink);background:#fff}
.steps li.done span::after{content:" ✓";color:var(--good);font-weight:800}
.wb-checklist{border:1px solid var(--line);background:rgba(255,255,255,.6);border-radius:13px;padding:12px;display:grid;gap:9px}
.wb-checklist>small{color:var(--muted);text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800}
.wb-checklist ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.wb-checklist li{display:flex;gap:8px;align-items:flex-start;color:var(--muted)}
.wb-checklist li i{font-style:normal;width:16px;height:16px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:10px;flex-shrink:0;margin-top:1px;background:#fff;color:transparent}
.wb-checklist li i::before{content:"✓"}
.wb-checklist li.done{color:var(--ink)}
.wb-checklist li.done i{background:var(--good);border-color:var(--good);color:#fff}
.wb-checklist li b{font-weight:700;font-size:12px;display:block;line-height:1.35}
.wb-checklist li span{font-size:10.5px;color:var(--muted);line-height:1.4;display:block}
.wb-checklist>p{margin:0;font-size:11px;color:var(--muted);line-height:1.5;border-top:1px solid var(--line);padding-top:8px}
body.rail-collapsed .wb-checklist{display:none}
@media(max-width:920px){.wb-checklist{display:none !important}}

/* ---------- set-card pending state: mock layout, not a broken image ---------- */
.tpl-pending{position:absolute;left:10px;top:10px;z-index:2;font-style:normal;font-size:9.5px;font-weight:700;color:rgba(255,255,255,.92);background:rgba(24,22,18,.5);border:1px dashed rgba(255,255,255,.45);border-radius:999px;padding:3px 8px;letter-spacing:.02em;backdrop-filter:blur(3px)}
.template-card.has-real .tpl-pending{display:none}

/* ---------- desktop-only inspector refinements ---------- */
@media(min-width:921px){
  /* desktop: the wb-bar owns back/submit — the legacy bottom actions row retires */
  body.wb-space [data-screen="3"] .actions{display:none}
  /* canvas owns the AI direction gallery; the inspector's copy is mobile-only */
  .adjust-pane .dir-group{display:none !important}
  .wb-sheet-close{display:none}
  /* AI in-context actions go gold — black is reserved for the single global CTA */
  .vg-cta,.vg-complete{background:#f5f5f7;color:#6e6e73;border:1px solid #d2d2d7}
}

/* ---------- workbench standalone space (editor chrome takes over wizard chrome) ---------- */
body.wb-space{background:#f1ede4}
body.wb-space .shell{grid-template-columns:1fr}
body.wb-space .rail{display:none}
body.wb-space .topbar{display:none}
body.wb-space .stage{padding-top:18px}
.wb-bar{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:10px 14px;border:1px solid var(--line);background:#fffdfa;border-radius:16px;box-shadow:var(--shadow)}
.wb-back{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 13px;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;transition:.15s}
.wb-back i{font-style:normal;font-size:14px;line-height:1}
.wb-back:hover{color:var(--ink);border-color:#c9b78c}
.wb-bar-id{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.wb-bar-id strong{font-size:14px;letter-spacing:-.01em;white-space:nowrap}
.wb-bar-state{font-size:12px;font-weight:600;color:#5d4a1e;background:#fbf4e3;border:1px solid #e6e6eb;border-radius:999px;padding:3px 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-saved{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--good);white-space:nowrap}
.wb-saved::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--good);animation:pulse 1.6s ease infinite}
.wb-submit{white-space:nowrap}

/* ---------- workbench asset rail ---------- */
.wb-assets{border:1px solid var(--line);background:rgba(255,255,255,.6);border-radius:13px;padding:12px;display:grid;gap:7px}
.wb-assets>small{color:var(--muted);text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800;margin-top:6px}
.wb-assets>small:first-child{margin-top:0}
.wb-assets button{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px;font-size:12px;text-align:left;cursor:pointer;transition:.15s}
.wb-assets button:hover{border-color:#c9b78c;box-shadow:0 2px 8px rgba(31,26,19,.08)}
.wb-assets button b{font-weight:700;font-size:12px;color:var(--ink);line-height:1.3}
.wb-assets button span{font-size:10.5px;color:var(--muted);white-space:nowrap;flex-shrink:0}
.wb-assets button span.ok{color:var(--good);font-weight:700}

@media(max-width:920px){
  .workbench-layout .wb-rail{display:none}
  .wb-bar{margin-bottom:12px;padding:8px 10px;gap:8px}
  .wb-bar-state,.wb-saved,.wb-submit{display:none}
  .wb-bar-id strong{font-size:13px}
  .wb-back{padding:8px 10px;font-size:12px}
}

/* ---------- kit delivery bundle preview (step 5) ---------- */
.kit-bundle{margin-top:18px;border:1px solid #e6e6eb;background:linear-gradient(135deg,#fff8ea,#fffdfa);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.kb-head{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.kb-head .tag{width:max-content}
.kb-head strong{font-size:14.5px;line-height:1.5;letter-spacing:-.01em;color:#1d1d1f}
.kb-grid{display:grid;grid-template-columns:1.25fr 1fr .9fr;gap:14px;align-items:start}
.kb-col{background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px}
.kb-pdf{border-top:3px solid var(--goldln,#d2d2d7)}
.kb-assets{border-top:3px solid #5d8a6a}
.kb-guide{border-top:3px solid #3a6ea5}
.kb-col-h{display:flex;align-items:center;gap:9px;margin-bottom:4px}
.kb-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:15px;flex-shrink:0;background:#f7f3eb}
.kb-pdf .kb-ic{background:#fbf4e3}
.kb-assets .kb-ic{background:#e9f2ec}
.kb-guide .kb-ic{background:#e8eff6}
.kb-col-h b{font-size:14.5px;letter-spacing:-.01em}
.kb-col-h em{font-style:normal;font-size:11px;color:var(--muted);display:block;margin-top:1px;line-height:1.35}
.kb-sec-l{display:block;text-transform:uppercase;letter-spacing:.07em;font-size:10px;font-weight:800;color:#86868b;margin:13px 0 6px}
.kb-sec-intl{color:#9a5c5c;display:flex;align-items:center;gap:7px}
.kb-intl-badge{font-style:normal;font-size:9px;color:#9a5c5c;background:#fbeeee;border:1px solid #e0b3b3;border-radius:999px;padding:1px 7px;letter-spacing:.02em}
.kb-pages{list-style:none;margin:0;padding:0;display:grid;gap:1px}
.kb-pages li{display:flex;gap:9px;align-items:baseline;font-size:12.5px;padding:5px 0;border-bottom:1px dashed #eee4d2}
.kb-pages li:last-child{border-bottom:0}
.kb-pages li i{font-style:normal;font-size:10px;font-weight:800;color:#6e6e73;background:#fbf4e3;border:1px solid #e6e6eb;border-radius:6px;padding:1px 6px;flex-shrink:0;min-width:28px;text-align:center}
.kb-intl-pages li i{color:#9a5c5c;background:#fbeeee;border-color:#e0b3b3}
.kb-pages li b{font-weight:700}
.kb-pages li span{color:var(--muted);display:block;font-size:11.5px;margin-top:1px}
.kb-folder{font-size:12.5px;padding:6px 0;border-bottom:1px dashed #eee4d2}
.kb-folder b{font-weight:700}
.kb-files{display:block;color:var(--muted);font-size:11px;margin-top:2px;padding-left:16px;line-height:1.5}
.kb-note{margin:11px 0 0;font-size:11.5px;line-height:1.55;color:#5d8a6a;background:#eef5f0;border:1px solid #cfe2d6;border-radius:10px;padding:9px 11px}
.kb-guide-list{list-style:none;margin:0;padding:0}
.kb-guide-list li{position:relative;padding:6px 0 6px 17px;font-size:12.5px;line-height:1.45;border-bottom:1px dashed #eee4d2}
.kb-guide-list li:last-child{border-bottom:0}
.kb-guide-list li::before{content:"›";position:absolute;left:2px;color:#3a6ea5;font-weight:800}
.kb-foot{margin:16px 0 0;font-size:12px;line-height:1.55;color:#5d4a1e;background:#fbf4e3;border:1px solid #e6e6eb;border-radius:12px;padding:11px 14px}
.kb-foot #exportVisualMeta{font-weight:700}
@media(max-width:920px){.kb-grid{grid-template-columns:1fr}}

/* ---------- step-5 bundle action row ---------- */
.kb-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.kb-actions .primary,.kb-actions .mock-cta{white-space:nowrap}

/* ---------- delivery bundle full-screen view (PDF slides + assets + guide) ---------- */
.bundle-view{position:fixed;inset:0;background:#fbf9f4;z-index:119;overflow-y:auto;animation:fade .25s ease}
.bundle-view[hidden]{display:none}
.bv-bar{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;background:rgba(33,28,20,.96);backdrop-filter:blur(8px);z-index:2}
.bv-url{color:#ffe6a3;font-size:13px;font-weight:700;letter-spacing:.02em}
.bv-bar-actions{display:flex;gap:8px}
.bv-bar .sc-close{background:transparent;border-color:rgba(255,230,163,.4);color:#ffe6a3}
.bv-body{max-width:1080px;margin:0 auto;padding:30px 20px 70px;display:grid;gap:26px}
.bv-hero{text-align:center;display:grid;gap:8px;justify-items:center;padding:8px 0 2px}
.bv-pill{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:999px;padding:5px 12px}
.bv-hero h1{font-size:clamp(24px,3.4vw,34px);letter-spacing:-.01em;margin:2px 0 0}
.bv-sub{color:var(--muted);font-size:14px;max-width:46em}
.bv-sec{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 18px 20px;box-shadow:var(--shadow)}
.bv-sec-h{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.bv-sec-h .kb-ic{width:34px;height:34px;font-size:17px}
.bv-sec-h b{font-size:16px;letter-spacing:-.01em}
.bv-sec-h em{font-style:normal;font-size:12px;color:var(--muted);display:block;margin-top:1px}
/* slide deck */
.bv-slides{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.bv-slide{position:relative;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-height:200px;box-shadow:0 8px 22px rgba(31,26,19,.06)}
.bv-pg{position:absolute;top:8px;left:8px;z-index:3;font-size:10px;font-weight:800;color:#6e6e73;background:#f5f5f7;border:1px solid #d2d2d7;border-radius:6px;padding:1px 7px}
.bv-intl-ribbon{position:absolute;top:8px;right:8px;z-index:3;font-size:9px;font-weight:800;color:#9a5c5c;background:#fbeeee;border:1px solid #e0b3b3;border-radius:999px;padding:2px 8px}
.bv-slide-visual{height:118px;background:radial-gradient(circle at 50% 120%,#3a3024,#15110c);background-size:cover;background-position:center}
.bv-slide-copy{padding:11px 13px 14px;display:grid;gap:5px;flex:1}
.bv-slide-copy small{font-size:9.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#86868b}
.bv-slide-copy strong{font-size:13.5px;line-height:1.35;letter-spacing:-.01em}
.bv-slide-copy p{margin:0;font-size:11.5px;color:var(--muted);line-height:1.5}
.bv-slide.bv-internal{background:linear-gradient(165deg,#fbf6f6,#fffdfd);border-color:#e7cccc}
.bv-slide.bv-internal .bv-slide-copy strong{color:#7a3b3b}
/* asset folders */
.bv-folders{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.bv-folders button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:9px 14px;font-size:13px;font-weight:700;color:var(--muted)}
.bv-folders button.active{background:#eef5f0;border-color:#7fae90;color:#2f6a48}
.bv-assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.bv-asset{display:grid;gap:6px}
.bv-asset-img{border-radius:12px;background:radial-gradient(circle at 50% 120%,#3a3024,#15110c);border:1px solid var(--line);aspect-ratio:3/4}
.bv-asset.fmt-xhsLong .bv-asset-img{aspect-ratio:3/2}
.bv-asset.fmt-tiktokCover .bv-asset-img{aspect-ratio:9/16}
.bv-asset.fmt-shopifyHero .bv-asset-img{aspect-ratio:16/7}
.bv-asset.fmt-commerceSquare .bv-asset-img{aspect-ratio:1/1}
.bv-asset small{font-size:11.5px;color:var(--muted);font-weight:600}
/* guide */
.bv-guide{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.bv-guide li{position:relative;padding:9px 0 9px 20px;font-size:13.5px;line-height:1.5;border-bottom:1px dashed #eee4d2}
.bv-guide li:last-child{border-bottom:0}
.bv-guide li::before{content:"›";position:absolute;left:3px;color:#3a6ea5;font-weight:800}
@media(max-width:920px){
  .bv-slides{grid-template-columns:repeat(2,1fr)}
  .bv-bar-actions .mock-cta{font-size:12px;padding:9px 12px}
}
@media(max-width:560px){.bv-slides{grid-template-columns:1fr}}

/* ============ STEP 3 · 图文工作台 四区布局 (Canva/Shopify 式) ============ */
/* master floating toolbar + dropdown panel (floats over the canvas, never displaces it) */
.wb-master-wrap{position:sticky;top:8px;z-index:40;margin-bottom:12px}
.wb-master{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:8px 12px;box-shadow:0 6px 18px rgba(31,26,19,.08)}
.wb-master-tag{font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);flex-shrink:0}
.wb-master-tabs{display:flex;gap:4px}
.wbm-tab{background:transparent;border:0;color:var(--muted);font-size:13px;font-weight:700;padding:8px 15px;border-radius:9px;cursor:pointer}
.wbm-tab:hover{color:var(--ink)}
.wbm-tab.active{background:var(--soft);color:var(--ink)}
.wbm-copy{margin-left:auto;display:inline-flex;align-items:center;gap:6px;background:#f7f3eb;border:1px solid var(--line);color:var(--ink);font-size:12px;font-weight:700;padding:7px 12px;border-radius:9px;cursor:pointer;flex-shrink:0}
.wbm-copy i{font-style:normal}
.wbm-copy:hover{background:var(--soft);border-color:#c9b78c}
.wb-master-panel{position:absolute;left:0;right:0;top:calc(100% + 7px);border:1px solid #e6e6eb;background:linear-gradient(160deg,#fff8ea,#fffdfa);border-radius:14px;padding:14px;max-height:64vh;overflow:auto;box-shadow:0 24px 64px rgba(24,22,18,.3);display:none}
.wb-master-panel.open{display:block;animation:fade .18s ease}
.wbm-pane{display:none}
.wbm-pane.active{display:block;animation:fade .2s ease}
.wbm-pane .visual-gen{margin:0;border:0;background:transparent;padding:0}
.wbm-swatches{display:flex;gap:9px;flex-wrap:wrap}
.wbm-swatches i{width:32px;height:32px;border-radius:9px;border:1px solid var(--line);display:block}
/* four-zone grid */
.wb4{display:grid;grid-template-columns:196px minmax(0,1fr) 268px;gap:14px;align-items:start}
.wb-modules{display:grid;gap:6px;align-content:start;position:sticky;top:64px}
.wb-modules>small{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.wb-mod-list{display:grid;gap:6px;max-height:calc(100vh - 230px);overflow:auto}
.wb-mod-list .wbmod{min-width:0;max-width:100%}
.wbmod b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wbmod .wbmod-tail{flex:0 0 auto;white-space:nowrap}
.wbmod{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:11px;padding:11px 12px;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer;text-align:left;transition:.15s}
.wbmod .d{width:7px;height:7px;border-radius:50%;background:#cbbf9f;flex:0 0 auto}
.wbmod .wbmod-ico{flex:0 0 auto;width:20px;text-align:center;font-size:15px;line-height:1}
.wbmod b{font-weight:700}
.wbmod i{margin-left:auto;font-style:normal;font-size:10px;font-weight:800;color:#86868b}
.wbmod .wbmod-tail{margin-left:auto}
.wbmod .wbmod-edit{margin-left:6px;font-size:12px;font-weight:400;color:var(--muted);opacity:0;transition:.15s;cursor:pointer;flex:0 0 auto}
.wbmod:hover .wbmod-edit,.wbmod.active .wbmod-edit{opacity:.65}
.wbmod .wbmod-edit:hover{opacity:1;color:var(--ink)}
.wbmod.renaming{gap:8px}
.wbmod-rename{flex:1;min-width:0;border:1px solid var(--goldln);border-radius:7px;padding:6px 8px;font-size:13px;font-weight:700;color:var(--ink);background:#fff;outline:none}
.wbmod:hover{border-color:#c9b78c}
.wbmod.active{border-color:var(--ink);box-shadow:0 0 0 2px rgba(24,22,18,.08)}
.wbmod.base{border-color:var(--goldln);background:var(--soft)}
.wbmod.base .d{background:var(--goldln)}
.wbmod.base i{color:var(--gold)}
.wbmod.track.on .d{background:#2f6a48}
.wbmod.track.on i{color:#2f6a48}
.wbmod.add{border-style:dashed;color:var(--gold);justify-content:center;background:transparent}
.wbmod-hint{font-size:10.5px;color:var(--muted);line-height:1.45;margin-top:4px}
/* center stage */
.wb-stage{min-width:0;display:flex;flex-direction:column;gap:0}
.wb-stage-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.wb-stage-head .tag{width:max-content}
.wb-film-wrap{margin-top:16px;border-top:1px solid var(--line);padding-top:13px}
.wb-film-l{display:block;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#86868b;margin-bottom:9px}
.wb-film{height:230px}
/* right inspector */
.wb-inspector{display:grid;gap:14px;align-content:start;position:sticky;top:64px;border:1px solid var(--line);background:#ffffff;border-radius:16px;padding:15px}
.wb-insp-l{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9a5c5c;background:#fbeeee;border:1px solid #e0b3b3;border-radius:999px;padding:3px 10px;width:max-content}
.wb-inspector .adjust-group{display:grid;gap:0}
.wb-inspector .adjust-group small{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px;margin-bottom:9px;font-weight:700}
/* mobile: stack everything (desktop-first; full mobile derivation is a follow-up) */
@media(max-width:920px){
  .wb-master{position:static;flex-wrap:wrap;gap:8px}
  .wb-master-tabs{flex:1;overflow-x:auto}
  .wbm-copy{margin-left:0}
  .wb4{grid-template-columns:1fr;gap:12px}
  .wb-modules{position:static;grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;gap:7px;-webkit-overflow-scrolling:touch}
  .wb-modules>small,.wbmod-hint{display:none}
  .wb-inspector{position:static}
  .wb-film{height:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;overflow:visible}
  .wb-film .template-card{height:auto;min-height:150px}
}

/* center canvas = active page slide (not a buyer page) */
.wb-canvas{display:grid;place-items:center;gap:9px;min-height:160px;overflow:hidden}
.wb-canvas-board{display:block;height:auto;overflow:visible;padding:0;margin:0;width:100%}
.wb-canvas-card{margin:0;cursor:pointer;flex:none;will-change:transform}
.wb-canvas-card:hover{box-shadow:0 20px 46px rgba(31,26,19,.26)}
.wb-canvas-hint{margin:0;font-size:11.5px;color:var(--muted)}
.template-card.film-sel{outline:2px solid var(--goldln);outline-offset:2px}
.wb-insp-text{text-align:left;cursor:pointer;border:1px solid var(--line);background:#fffdfa;border-radius:10px;padding:10px 12px;width:100%}
.wb-insp-text:hover{border-color:#c9b78c;background:#fbf4e3}
.wb-insp-text small{margin-bottom:4px}
.wb-insp-text .layout-hint{margin:0}

/* ---------- Canva-language pass: slide contextual toolbar + bottom dock + status ---------- */
.wb-ctx{display:flex;align-items:center;gap:3px;width:max-content;margin:0 auto 10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:4px;box-shadow:0 8px 22px rgba(31,26,19,.14)}
.wb-ctx button{display:inline-flex;align-items:center;gap:5px;background:transparent;border:0;border-radius:8px;padding:7px 11px;font-size:12.5px;font-weight:700;color:var(--ink);cursor:pointer}
.wb-ctx button i{font-style:normal;font-size:13px;line-height:1}
.wb-ctx button:hover{background:var(--soft)}
.wb-ctx-sep{width:1px;height:18px;background:var(--line);margin:0 2px}
.insp-pulse{animation:inspPulse .9s ease}
@keyframes inspPulse{0%,100%{box-shadow:none}40%{box-shadow:0 0 0 3px rgba(219,164,75,.35)}}
/* bottom dock */
.wb-dock{position:sticky;bottom:0;z-index:6;margin-top:16px;background:#fff;border-top:1px solid var(--line);padding:11px 0 6px;box-shadow:0 -10px 22px rgba(31,26,19,.06)}
.wb-dock .wb-film{height:128px;gap:10px}
.wb-dock .wb-film .template-card{height:100%;cursor:pointer;flex:0 0 auto}
.wb-film-n{position:absolute;top:7px;left:7px;z-index:4;font-style:normal;font-size:10px;font-weight:800;color:#fff;background:rgba(24,22,18,.62);border-radius:6px;width:18px;height:18px;display:grid;place-items:center;backdrop-filter:blur(3px)}
.template-card.film-sel .wb-film-n{background:var(--ink)}
.wb-status{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12px;color:var(--muted)}
.wb-status-zoom{background:#f7f3eb;border:1px solid var(--line);border-radius:8px;padding:5px 11px;font-weight:600}
.wb-status-page b{color:var(--ink);font-weight:800}
@media(max-width:920px){
  .wb-dock .wb-film{display:flex;height:104px;overflow-x:auto}
  .wb-dock .wb-film .template-card{width:78px}
}

/* ---------- 文案管理 as a wizard step (was a modal) ---------- */
.cs-screen .copy-studio{margin:0 auto;max-width:980px}
@media(max-width:920px){
  .cs-screen .copy-studio{border-radius:18px;border:1px solid #e6e6eb;min-height:0;padding:16px}
  .cs-screen .cs-fields{padding-bottom:0}
}

/* ---------- merged single top bar + balance fixes ---------- */
.wb-master .wb-back{flex-shrink:0;display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--muted);cursor:pointer}
.wb-master .wb-back i{font-size:15px;line-height:1}
.wb-master .wb-back:hover{color:var(--ink);border-color:#c9b78c}
.wb-master .wb-back span{display:none}
.wb-kit{flex-shrink:0;font-size:14px;font-weight:800;letter-spacing:-.01em;white-space:nowrap}
.wb-saved-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--good);animation:pulse 1.6s ease infinite}
.wb-master .wb-submit{flex-shrink:0;white-space:nowrap}
/* fix ②: bigger canvas, centered filmstrip, drop the explanatory note block */
.wb-canvas-card{max-width:none}
.wb-dock .wb-film{justify-content:flex-start;overflow-x:auto}
.wb-inspector .adjust-note{display:none}
@media(max-width:920px){
  .wb-master{flex-wrap:wrap}
  .wb-kit{font-size:13px}
  .wb-master .wb-submit{order:9}
}

/* ---------- three-zone modules with color hierarchy (center pops) ---------- */
body.wb-space{background:#e9e6de}                 /* workspace desk — darkest */
.wb4 .wb-modules{background:#f3f0e9;border:1px solid var(--line);border-radius:14px;padding:13px}  /* side panel — mid */
.wb4 .wb-inspector{background:#f3f0e9}             /* side panel — mid */
.wb4 .wb-stage{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 16px 14px;box-shadow:0 14px 34px rgba(31,26,19,.08)}  /* center — lightest, emphasized */
.wb4 .wb-stage .wb-dock{border-top-color:#ece7dd}

/* ---------- image library (换图 picker) ---------- */
.img-lib{max-width:560px;display:grid;gap:0;padding:0;overflow:hidden}
.img-lib-head{display:flex;align-items:flex-start;gap:10px;padding:18px 20px 12px;position:relative}
.img-lib-head .tag{width:max-content}
.img-lib-head h2{font-size:20px;margin:8px 0 0}
.img-lib-head .modal-x{position:static;margin-left:auto}
.lib-filters{display:flex;gap:7px;padding:0 20px 12px;flex-wrap:wrap}
.lib-filters button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 13px;font-size:12.5px;font-weight:700;color:var(--muted)}
.lib-filters button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.lib-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:max-content;gap:11px;padding:0 20px 20px;max-height:56vh;overflow:auto}
.lib-item{position:relative;border:2px solid var(--line);border-radius:14px;overflow:hidden;cursor:pointer;padding:0;background:#fff;aspect-ratio:4/3}
.lib-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lib-item>span{position:absolute;left:0;right:0;bottom:0;z-index:1;font-size:11.5px;font-weight:800;color:#fff;background:linear-gradient(transparent,rgba(24,22,18,.62));padding:14px 10px 8px;text-shadow:0 1px 6px rgba(0,0,0,.4)}
.lib-item:hover{border-color:#c9b78c;transform:translateY(-2px)}
.lib-item.selected{border-color:var(--ink);box-shadow:0 0 0 3px rgba(24,22,18,.14)}
.lib-item.selected::after{content:"✓";position:absolute;top:7px;right:7px;z-index:2;width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800}
.lib-empty{padding:0 20px 24px;color:var(--muted);font-size:13px;line-height:1.5}
/* per-page 换图 style override on filmstrip cards (higher specificity wins over board) */
.template-board .template-card.cs-style-premium{background:linear-gradient(145deg,#17110b,#4c3520)}
.template-board .template-card.cs-style-lifestyle{background:linear-gradient(145deg,#b68d5e,#f2dcc0)}
.template-board .template-card.cs-style-minimal{background:linear-gradient(145deg,#fff8ed,#d8c7ad)}
.template-board .template-card.cs-style-tech{background:linear-gradient(145deg,#071019,#14344a)}
.template-board .template-card.cs-style-social{background:linear-gradient(145deg,#9a4d48,#f2ad9c)}
.template-board .template-card.cs-style-calm{background:linear-gradient(145deg,#d8c7ad,#f8efe2)}
.template-board .template-card.cs-style-minimal small,.template-board .template-card.cs-style-minimal span,.template-board .template-card.cs-style-calm small,.template-board .template-card.cs-style-calm span{color:rgba(35,28,18,.7)}
.template-board .template-card.cs-style-minimal strong,.template-board .template-card.cs-style-calm strong{color:#231c12;text-shadow:none}
/* mobile: image library becomes a bottom sheet */
@media(max-width:920px){
  .img-lib-back{place-items:end stretch;padding:0}
  .img-lib{max-width:100%;width:100%;border-radius:22px 22px 0 0;max-height:86vh}
  .img-lib-head{padding-top:8px;flex-wrap:wrap;justify-content:center}
  .img-lib .wb-sheet-grip{display:block;width:44px;height:4px;border-radius:999px;background:#d9d2c4;margin:2px auto 6px;flex-basis:100%}
  .img-lib-head>div{flex:1}
  .lib-grid{max-height:60vh}
}

/* image-library gradient thumbnails (AI direction variants) */
.lib-item.dirbg-premium{background:radial-gradient(circle at 50% 30%,#8a5a20,#17110b 70%)}
.lib-item.dirbg-lifestyle{background:linear-gradient(150deg,#f6e3c4,#b68d5e)}
.lib-item.dirbg-minimal{background:linear-gradient(160deg,#fff8ed,#e2d4ba)}
.lib-item.dirbg-tech{background:linear-gradient(155deg,#0a1622,#1d4259)}
.lib-item.dirbg-social{background:linear-gradient(145deg,#ff9a8b,#f25d9c 60%,#c44569)}
.lib-item.dirbg-calm{background:linear-gradient(150deg,#e8e2d2,#b8c0a8)}

/* ---------- master 样式 panel sub-sections + 规格 Canva-style resize ---------- */
.wbm-sub{margin-top:14px;padding-top:12px;border-top:1px solid #ece7dd}
.wbm-sub>small,.wbm-sub-l{display:block;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#86868b;margin-bottom:9px}
/* 规格 presets (Canva-style list) */
.fmt-presets{display:grid;gap:7px;margin-bottom:14px}
.fmt-presets button{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px 13px;cursor:pointer;text-align:left}
.fmt-presets button b{font-weight:700;font-size:13px}
.fmt-presets button span{font-size:11.5px;color:var(--muted)}
.fmt-presets button:hover{border-color:#c9b78c}
.fmt-presets button.active{border-color:var(--ink);box-shadow:0 0 0 2px rgba(24,22,18,.08);background:var(--soft)}
.fmt-custom{border-top:1px solid #ece7dd;padding-top:12px}
.fmt-custom-row{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.fmt-custom-row label{display:grid;gap:4px;font-size:11px;font-weight:700;color:var(--muted)}
.fmt-custom-row input,.fmt-custom-row select{border:1px solid var(--line);border-radius:9px;padding:0 10px;font:inherit;font-size:13px;width:84px;height:38px;box-sizing:border-box;background:#fff}
.fmt-custom-row select{width:74px}
.fmt-custom-row .fmt-apply{align-self:flex-end;height:38px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.fmt-hint{margin:10px 0 0;font-size:11px;color:var(--muted);line-height:1.5}
.wb-insp-note{font-size:11px;color:var(--muted);line-height:1.5;background:#f7f3eb;border:1px solid var(--line);border-radius:10px;padding:9px 11px;margin:0}

/* + 加页面 (add page) at the end of the filmstrip */
.wb-film-add{flex:0 0 auto;width:84px;height:84px;display:grid;place-items:center;gap:3px;align-content:center;border:1.5px dashed var(--goldln);background:#fffdf8;border-radius:12px;color:var(--gold);cursor:pointer;font-weight:700}
.wb-film-add i{font-style:normal;font-size:22px;line-height:1}
.wb-film-add small{font-size:11.5px}
.wb-film-add:hover{background:var(--soft);border-color:#c9942f}
@media(max-width:920px){.wb-film-add{width:72px;height:72px}}

/* ---------- workbench as a fixed-height editor so the canvas always fits (no crop) ---------- */
@media(min-width:921px){
  body.wb-space .stage{height:100vh;overflow:hidden;padding-top:14px;padding-bottom:14px}
  body.wb-space .screen[data-screen="3"]{height:100%;display:flex;flex-direction:column;min-height:0}
  body.wb-space .wb-master-wrap{flex:0 0 auto}
  body.wb-space .wb4{flex:1;min-height:0;align-items:stretch}
  body.wb-space .wb-modules,body.wb-space .wb-inspector{position:static;max-height:100%;overflow:auto}
  body.wb-space .wb-stage{display:flex;flex-direction:column;min-height:0;overflow:hidden}
  body.wb-space .wb-stage-head,body.wb-space .wb-ctx,body.wb-space .pp-visual,body.wb-space .wb-dock{flex:0 0 auto}
  body.wb-space .wb-canvas{flex:1;min-height:0;height:auto}
}
@media(max-width:920px){
  /* 手机端工作台：整页可滚动；胶囊工具条固定顶部，画布吸顶；底部=满宽缩略条+两按钮 */
  body.wb-space .stage{height:auto;overflow:visible;padding-bottom:0}
  body.wb-space .screen[data-screen="3"]{height:auto;display:block;min-height:0;overflow:visible}
  body.wb-space .wb4{display:block;overflow:visible;padding:60px 0 172px} /* 顶部留顶栏；底部留 缩略条+按钮+滚动行程 */
  body.wb-space .wb-stage{display:contents} /* 摊平，让画布在 wb4 内 sticky 有滚动行程 */
  body.wb-space .wb-stage-head{padding:0 2px 6px}
  body.wb-space .wb-modules,body.wb-space .wb-inspector{position:static;max-height:none;overflow:visible}
  /* 顶栏固定 + 随下滑隐藏、上滑出现（Channel 在顶栏下方正常滚走，不固定）*/
  body.wb-space .wb-master-wrap{position:fixed;top:0;left:0;right:0;z-index:60;padding:8px 14px 0;transition:transform .26s ease}
  body.wb-space.wb-bar-hidden .wb-master-wrap{transform:translateY(-118%)}
  /* 胶囊默认隐藏；滑过 Channel、画布到达主区时才浮现并吸顶 */
  body.wb-space .wb-inspector .wb-insp-tabs{
    position:fixed;top:6px;left:50%;transform:translate(-50%,-14px);z-index:55;
    width:max-content;max-width:calc(100% - 24px);margin:0;
    background:#fff;border:1px solid var(--line);border-radius:999px;
    padding:4px;gap:2px;box-shadow:0 6px 18px rgba(24,22,18,.16);
    opacity:0;pointer-events:none;transition:opacity .22s ease, transform .22s ease}
  body.wb-space.wb-cap-shown .wb-inspector .wb-insp-tabs,
  body.wb-space .wb-inspector.sheet-open .wb-insp-tabs{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
  body.wb-space .wb-inspector .wb-insp-tabs .wb-it{flex:0 0 auto;padding:8px 18px;border-radius:999px;background:transparent}
  body.wb-space .wb-inspector .wb-insp-tabs .wb-it.active{background:var(--ink);color:#fff}
  body.wb-space .wb-inspector .wb-insp-tabs .wb-it.active i,body.wb-space .wb-inspector .wb-insp-tabs .wb-it.active span{color:#fff}
  /* 画布吸顶（滑过 Channel 后固定在顶部主区）；高度够高才有滚动行程把 Channel 滑走 */
  body.wb-space .wb-canvas{position:sticky;top:62px;z-index:5;height:68vh;min-height:300px;background:#e9e6de;padding:6px 0}
  /* 编辑面板默认收起；点胶囊分段从顶部弹出下拉，配置完收回、画布即变 */
  body.wb-space .wb-inspector{padding:0}
  body.wb-space .wb-inspector .wb-insp-l,
  body.wb-space .wb-inspector .wb-insp-panel,
  body.wb-space .wb-inspector .adjust-note{display:none}
  /* 下滑菜单：延伸到最顶、胶囊嵌在它顶部（上方无空隙、无断层）*/
  body.wb-space .wb-inspector.sheet-open{
    position:fixed;top:0;left:0;right:0;z-index:54;
    background:#fff;border-radius:0 0 20px 20px;
    box-shadow:0 20px 44px rgba(24,22,18,.3);padding:58px 16px 16px;
    max-height:62vh;overflow:auto;display:flex;flex-direction:column;gap:12px;
    animation:wbSheetDown .2s ease}
  body.wb-space .wb-inspector.sheet-open .wb-insp-l{display:block}
  body.wb-space .wb-inspector.sheet-open .wb-insp-panel:not([hidden]){display:block}
  @keyframes wbSheetDown{from{transform:translateY(-16px);opacity:.4}to{transform:none;opacity:1}}
  /* 下滑菜单背景蒙层，让弹窗更突出 */
  .wb-sheet-backdrop{position:fixed;inset:0;z-index:53;background:rgba(24,22,18,.42);opacity:0;pointer-events:none;transition:opacity .2s ease}
  .wb-sheet-backdrop.show{opacity:1;pointer-events:auto}
  /* 缩略条：固定底部、左右满宽、一整条；与按钮吸附（无间距）*/
  body.wb-space .wb-dock{position:fixed;left:0;right:0;bottom:69px;top:auto;z-index:54;margin:0;padding:8px 12px 9px;border-radius:0;border-top:1px solid var(--line)}
  /* 两个操作按钮固定底部；去掉顶边线，与缩略条无缝吸附 */
  body.wb-space [data-screen="3"] .actions{
    position:fixed;left:0;right:0;bottom:0;top:auto;z-index:56;margin:0;
    display:flex;flex-wrap:nowrap;gap:10px;padding:9px 14px calc(9px + env(safe-area-inset-bottom,0px));
    background:#fff;border-top:0;box-shadow:0 -6px 20px rgba(24,22,18,.14)}
  body.wb-space [data-screen="3"] .actions .ghost{flex:1 1 0;white-space:nowrap;padding:12px 8px}
  body.wb-space [data-screen="3"] .actions .primary{flex:1.5 1 0;width:auto;justify-content:center;padding:12px 8px}
  body.wb-space .pp-visual{display:none}
  /* 手机端：画布区保持干净——隐藏 stage-head（Press Kit·首页图 + 实时更新），上滑后不残留在胶囊后面（渠道/页码信息在顶栏和底部缩略条已有）*/
  body.wb-space .wb-stage-head{display:none}
  /* 手机端：渠道改成横向左滑卡片行，+平台 在右端（结构同缩略条的 +加页面）*/
  body.wb-space .wb-modules{display:flex;flex-direction:row;align-items:stretch;gap:8px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;position:static;max-height:none;scrollbar-width:none;padding:11px 13px}
  body.wb-space .wb-modules::-webkit-scrollbar{display:none}
  body.wb-space .wb-modules>small,body.wb-space .wb-modules>.wbmod-hint{display:none}
  body.wb-space .wb-mod-list{display:contents}
  body.wb-space .wb-modules .wbmod{flex:0 0 auto;min-width:118px;max-width:172px}
  body.wb-space .wb-modules .wbmod.add{min-width:90px;justify-content:center;border-style:dashed;border-color:var(--goldln);color:var(--muted);background:#fffdf8}
}

/* ---------- right-inspector tabs (was the slide capsule) ---------- */
.wb-insp-tabs{display:flex;gap:4px;background:#f1ebdf;border:1px solid var(--line);border-radius:12px;padding:4px;margin-bottom:12px}
.wb-insp-tabs .wb-it{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;border:0;border-radius:9px;padding:8px 4px;font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer}
.wb-insp-tabs .wb-it i{font-style:normal;font-size:13px}
.wb-insp-tabs .wb-it:hover{color:var(--ink)}
.wb-insp-tabs .wb-it.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(31,26,19,.1)}
/* 规格 button in the bottom status bar + popup */
.wb-fmt-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:6px 11px;font-size:12px;font-weight:700;color:var(--ink);cursor:pointer;margin-right:auto}
.wb-fmt-btn i{font-style:normal}
.wb-fmt-btn:hover{border-color:#c9b78c;background:var(--soft)}
.wb-status{gap:14px}
.fmt-modal{max-width:460px;display:grid;gap:10px}
.fmt-modal h2{font-size:22px;margin:6px 0 4px}
.fmt-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fmt-head h2{margin:0}
.fmt-modal .modal-x{position:static;flex:0 0 auto}
/* 品牌风格 two-level modal (Canva-style style browser) */
.style-modal{max-width:680px;width:680px;display:grid;gap:10px}
.style-modal h2{font-size:22px;margin:6px 0 2px}
.style-modal .wbm-sub-l{display:block;margin-bottom:12px}
.style-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.style-card{display:grid;gap:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff;cursor:pointer;padding:0;text-align:left;transition:.15s}
.style-card:hover{border-color:#c9b78c;transform:translateY(-2px);box-shadow:0 8px 22px rgba(24,22,18,.1)}
.style-card.selected{border-color:var(--ink);box-shadow:0 0 0 2px rgba(24,22,18,.1)}
.style-card .sc-prev{height:92px;position:relative}
.style-card .sc-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 11px 4px}
.style-card .sc-meta b{font-size:13px;font-weight:700;color:var(--ink)}
.style-card .sc-meta em{font-style:normal;font-size:15px;color:#86868b}
.style-card .sc-pal{display:flex;gap:0;padding:0 11px 11px}
.style-card .sc-pal i{flex:1;height:16px;border:1px solid rgba(0,0,0,.05)}
.style-card .sc-pal i:first-child{border-radius:5px 0 0 5px}
.style-card .sc-pal i:last-child{border-radius:0 5px 5px 0}
.style-l2-top{display:flex;align-items:center;gap:10px}
.style-back{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 12px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}
.style-back i{font-style:normal}
.style-back:hover{color:var(--ink);border-color:#c9b78c}
.style-l2-top strong{font-size:16px;flex:1}
.style-apply{flex-shrink:0;margin-left:auto}
.style-tpl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.style-tpl{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}
.style-tpl .st-prev{height:104px;position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:9px}
.style-tpl .st-prev .st-bar{height:7px;width:46%;border-radius:4px;background:rgba(255,255,255,.7)}
.style-tpl .st-prev .st-bar.w2{width:64%;opacity:.6}
.style-tpl .st-dots{display:flex;gap:4px}
.style-tpl .st-dots i{width:9px;height:9px;border-radius:50%;border:1px solid rgba(255,255,255,.5)}
.style-tpl .st-cap{padding:7px 10px;font-size:11.5px;font-weight:600;color:var(--muted)}
@media(max-width:920px){.style-modal{max-width:100%;width:100%}.style-grid,.style-tpl-grid{grid-template-columns:repeat(2,1fr)}.style-apply span{display:inline}}
/* filmstrip thumbnails = zoom-scaled complete slides in a sized wrapper */
.wb-dock .wb-film{height:auto;align-items:flex-end;padding:6px 9px;gap:12px}
.wb-dock-toggle{display:none}
@media(max-width:920px){
  /* 手机端：缩略条默认收起，点开/收起省空间 */
  .wb-dock-toggle{display:flex;align-items:center;gap:6px;width:100%;justify-content:center;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer}
  .wb-dock-toggle i{font-style:normal;font-size:13px;transition:transform .2s}
  .wb-dock:not(.collapsed) .wb-dock-toggle i{transform:rotate(180deg)}
  .wb-dock.collapsed #templateBoard{display:none}
}
.wb-thumb{position:relative;flex:0 0 auto;cursor:grab;border-radius:13px;overflow:hidden;border:1px solid var(--line);background:#fff}
.wb-thumb:active{cursor:grabbing}
.wb-thumb.dragging{opacity:.4}
.wb-thumb.drop-before{box-shadow:inset 4px 0 0 0 var(--goldln,#d2d2d7)}
.wb-thumb.drop-after{box-shadow:inset -4px 0 0 0 var(--goldln,#d2d2d7)}
.wb-thumb .template-card{min-height:0;margin:0;border-radius:0;border:0;box-shadow:none;cursor:pointer}
.wb-thumb .template-card:hover{transform:none;box-shadow:none}
.wb-thumb.sel{outline:3px solid var(--ink);outline-offset:2px;border-color:var(--ink)}
.wb-film-n{position:absolute;top:6px;left:6px;z-index:5;font-style:normal;font-size:10px;font-weight:800;color:#fff;background:rgba(24,22,18,.8);border-radius:6px;width:18px;height:18px;display:grid;place-items:center}
.wb-thumb.sel .wb-film-n{background:var(--ink)}
/* added-page thumbnails (own spec/AR) + canvas placeholder */
.wb-extra-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;padding:6px;background:linear-gradient(160deg,#fffdf8,#f4ecd9);color:var(--muted)}
.wb-extra-card small{font-size:9px;font-weight:700;color:var(--ink);line-height:1.2}
.wb-extra-card b{font-size:8px;font-weight:500;opacity:.7;line-height:1.15}
#wbCanvasCard.wb-extra-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:linear-gradient(160deg,#fffdf8,#efe6d0)!important;border:1.5px dashed #cbb886}
#wbCanvasCard.wb-extra-page::before{content:none}
#wbCanvasCard.wb-extra-page small{font-size:13px;color:#86868b;font-weight:700;background:none;-webkit-text-fill-color:initial}
#wbCanvasCard.wb-extra-page strong{font-size:22px;color:#3a2f1a;background:none;-webkit-text-fill-color:initial}
#wbCanvasCard.wb-extra-page span{font-size:13px;color:var(--muted)}

/* inline text-layer editor panel in the right inspector (was a popup) */
.wb-insp-panel{display:grid;gap:12px}
.wb-insp-panel[hidden]{display:none}
.wb-inspector .layer-field{display:grid;gap:7px}
.wb-inspector .layer-field>span{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.wb-inspector .layer-field input{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;box-sizing:border-box}
.wb-inspector .layer-field input:focus{outline:none;border-color:#d2d2d7;box-shadow:0 0 0 3px rgba(0,113,227,.16)}
.wb-inspector .layer-note{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.wb-openlib{width:100%}

/* ---------- smaller corner radii (Ken) + submit right-aligned ---------- */
.template-card{border-radius:10px}
.wb-thumb{border-radius:7px}
.wb-thumb .template-card{border-radius:0}
.wb-canvas-card,.wb-canvas-board,.page-preview{border-radius:11px}
.wb4 .wb-stage{border-radius:12px}
.wb4 .wb-modules,.wb4 .wb-inspector{border-radius:11px}
.wbmod{border-radius:9px}
.modal{border-radius:15px}
.primary,.ghost,.mock-cta{border-radius:9px}
.wb-master,.wb-master-panel{border-radius:11px}
.wb-master .wb-submit{margin-left:auto}

/* ---------- 文案 step: top action bar (consistent with the workbench) ---------- */
body.cs-step .topbar,body.inner-step .topbar{display:none}
.cs-topbar{display:flex;align-items:center;gap:14px;margin-bottom:14px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);position:sticky;top:8px;z-index:20}
.cs-topbar .wb-back{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 13px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}
.cs-topbar .wb-back i{font-style:normal}
.cs-topbar .wb-back:hover{color:var(--ink);border-color:#c9b78c}
.cs-topbar .wb-submit{margin-left:auto;white-space:nowrap}
@media(max-width:920px){
  /* 手机端：把内页的「返回 / 进下一步」按钮固定在屏幕底部，长内容滑到底也能进下一步 */
  .cs-topbar{position:fixed;left:0;right:0;bottom:0;top:auto;margin:0;border-radius:14px 14px 0 0;border-bottom:0;z-index:60;flex-wrap:nowrap;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 20px rgba(24,22,18,.14)}
  .cs-topbar .wb-kit,.cs-topbar .wb-saved-dot{display:none}
  .cs-topbar .wb-back span{display:none}
  .cs-topbar .wb-back{padding:12px 15px}
  .cs-topbar .wb-submit{display:inline-flex;align-items:center;flex:1;justify-content:center;padding:13px 12px}
  body.inner-step:not(.wb-space) .stage{padding-bottom:88px}
}

/* ===== Apple-grade 样板（D 方向 · scoped opt-in via .apple-sample on .cs-screen）===== */
.cs-screen.apple-sample{background:#fbfbfd}
.cs-screen.apple-sample .copy-studio{background:#fff;border:1px solid #ededef;border-radius:22px;box-shadow:0 1px 3px rgba(0,0,0,.04),0 12px 44px rgba(0,0,0,.06);gap:22px;padding:32px 34px}
.cs-screen.apple-sample h2{color:#1d1d1f;font-weight:700;letter-spacing:-.018em}
.cs-screen.apple-sample .cs-head .tag{background:#f5f5f7;color:#6e6e73;border:1px solid #e8e8ea}
.cs-screen.apple-sample .cs-head p{color:#86868b}
.cs-screen.apple-sample .cs-field{background:#fff;border:1px solid #ededef;border-radius:16px;padding:18px 20px;gap:14px;transition:border-color .15s ease,box-shadow .15s ease}
.cs-screen.apple-sample .cs-field:hover{border-color:#dcdce0;box-shadow:0 4px 18px rgba(0,0,0,.05)}
.cs-screen.apple-sample .cs-num{background:#f5f5f7;color:#86868b;border:none;font-weight:600;font-size:12px}
.cs-screen.apple-sample .cs-field b,.cs-screen.apple-sample .cs-sub-l{color:#86868b;text-transform:none;letter-spacing:0;font-weight:600;font-size:12.5px}
.cs-screen.apple-sample .cs-field p,.cs-screen.apple-sample .score-why{color:#86868b}
.cs-screen.apple-sample .cs-field input,.cs-screen.apple-sample .cs-field textarea{border:1px solid #e3e3e6;border-radius:12px;background:#fff;font-size:14.5px;line-height:1.55}
.cs-screen.apple-sample .cs-field input:focus,.cs-screen.apple-sample .cs-field textarea:focus{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.16)}
.cs-screen.apple-sample .cs-ai-badge{background:#f5f5f7;color:#86868b;border:1px solid #e8e8ea;text-transform:none;letter-spacing:0}
.cs-screen.apple-sample .cs-alt-btn{background:#f5f5f7;color:#1d1d1f;border:1px solid #e3e3e6;text-transform:none;font-weight:600}
.cs-screen.apple-sample .cs-angles button{border:1px solid #e3e3e6;color:#6e6e73;font-weight:600}
.cs-screen.apple-sample .cs-angles button.active{background:#1d1d1f;color:#fff;border-color:#1d1d1f}
.cs-screen.apple-sample .score-chip.tier-good{background:#f5f5f7;color:#6e6e73;border:1px solid #e8e8ea}
.cs-screen.apple-sample .score-chip.tier-great{background:#e8f5ec;color:#1d7a3f;border:1px solid #c3e6cd}
.cs-screen.apple-sample .cs-section-head.strategy{border-top-color:#ededef}
.cs-screen.apple-sample .cs-section-head strong{color:#1d1d1f;letter-spacing:-.01em}

/* ===== 新增 4 种精排版（2026-06-15，排版方案 4→8）===== */
/* 角标式：标题群组锚定左下角、大字 */
.template-board.layout-corner .template-card,.template-board.layout-corner .template-card.hero-card{justify-content:flex-end;align-items:flex-start;text-align:left;padding:28px}
.template-board.layout-corner .template-card small{order:-1;margin:0 0 6px;letter-spacing:.08em}
.template-board.layout-corner .template-card strong,.template-board.layout-corner .template-card.hero-card strong{font-size:21px;font-weight:800;border:0;padding:0;max-width:78%;line-height:1.12}
.template-board.layout-corner .template-card span{margin:7px 0 0;max-width:68%;opacity:.84}
.template-board.layout-corner .hero-card span::before{display:none}
.template-board.layout-corner .template-card::before{background:linear-gradient(45deg,rgba(8,6,4,.8),transparent 58%)}
/* 海报满版：顶部超大标题、副题落底 */
.template-board.layout-poster .template-card,.template-board.layout-poster .template-card.hero-card{justify-content:flex-start;align-items:flex-start;text-align:left;padding:28px}
.template-board.layout-poster .template-card small{order:-1;margin:0 0 8px;opacity:.9}
.template-board.layout-poster .template-card strong,.template-board.layout-poster .template-card.hero-card strong{font-size:27px;font-weight:800;border:0;padding:0;max-width:100%;line-height:1.06;letter-spacing:-.01em}
.template-board.layout-poster .template-card span{margin-top:auto;max-width:88%;opacity:.8}
.template-board.layout-poster .hero-card span::before{display:none}
.template-board.layout-poster .template-card::before{background:linear-gradient(180deg,rgba(8,6,4,.72),transparent 46%,rgba(8,6,4,.5))}
/* 极简留白：居中、小字、克制、大量留白 */
.template-board.layout-minimal .template-card,.template-board.layout-minimal .template-card.hero-card{justify-content:center;align-items:center;text-align:center;padding:26px;gap:9px}
.template-board.layout-minimal .template-card small{order:-1;margin:0;letter-spacing:.2em;opacity:.82}
.template-board.layout-minimal .template-card strong,.template-board.layout-minimal .template-card.hero-card strong{font-size:16px;font-weight:600;border:0;padding:0;max-width:68%;line-height:1.4;letter-spacing:.02em}
.template-board.layout-minimal .template-card span{margin:6px 0 0;max-width:58%;font-size:11px;opacity:.68}
.template-board.layout-minimal .hero-card span::before{display:none}
.template-board.layout-minimal .template-card::before{background:rgba(8,6,4,.26)}
/* 右对齐式：整体右对齐、垂直居中 */
.template-board.layout-right .template-card,.template-board.layout-right .template-card.hero-card{justify-content:center;align-items:flex-end;text-align:right;padding:28px}
.template-board.layout-right .template-card small{order:-1;margin:0 0 6px;letter-spacing:.1em}
.template-board.layout-right .template-card strong,.template-board.layout-right .template-card.hero-card strong{font-size:20px;border:0;padding:0;max-width:82%;line-height:1.18}
.template-board.layout-right .template-card span{margin:7px 0 0;max-width:66%;opacity:.84}
.template-board.layout-right .hero-card span::before{display:none}
.template-board.layout-right .template-card::before{background:linear-gradient(270deg,rgba(8,6,4,.66),transparent 68%)}
/* 新布局迷你预览图标 */
.lo-corner::before{left:12%;right:42%;bottom:22%;height:3px}
.lo-corner::after{left:12%;right:55%;bottom:12%;height:2px;opacity:.6}
.lo-poster::before{left:12%;right:14%;top:16%;height:4px}
.lo-poster::after{left:12%;right:40%;bottom:14%;height:2px;opacity:.6}
.lo-minimal::before{left:32%;right:32%;top:42%;height:2px}
.lo-minimal::after{left:40%;right:40%;top:56%;height:2px;opacity:.55}
.lo-right::before{left:42%;right:12%;top:42%;height:3px}
.lo-right::after{left:55%;right:12%;top:58%;height:2px;opacity:.6}

/* classic 布局：受 max-width 限宽的标题块也居中（与眉标/副题对齐），auto margin 在 flex/block 都生效；靠左的布局有各自规则不受影响 */
.template-board.layout-classic .template-card strong,.template-board.layout-classic .template-card.hero-card strong{margin-left:auto;margin-right:auto}
