.creator-home,.creator-editor,.creator-review{display:grid;gap:22px;color:var(--text)}
.creator-home button,.creator-editor button,.creator-review button{font:inherit;cursor:pointer}
.creator-home-head,.creator-editor-head,.creator-review>header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.creator-home-head h2,.creator-editor-head h2,.creator-review h2{margin:5px 0 4px;font-size:clamp(27px,3vw,38px);letter-spacing:-.04em}
.creator-home-head p,.creator-review header p{margin-top:5px;color:var(--muted);font-size:13px}
.creator-kicker{display:block;color:var(--accent);font-size:11px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.creator-home-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.creator-primary,.creator-secondary,.creator-test,.creator-back{border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:var(--surface-2);color:var(--text);font-weight:750}
.creator-primary{border-color:transparent;background:var(--accent);color:#211b17;box-shadow:0 8px 24px rgba(243,198,106,.15)}
.creator-secondary:hover,.creator-test:hover,.creator-back:hover{border-color:var(--accent);color:var(--accent)}
.creator-primary:disabled,.creator-secondary:disabled,.creator-test:disabled{opacity:.5;cursor:wait}
.creator-home-actions b{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:4px;border-radius:999px;background:rgba(243,198,106,.16);color:var(--accent);font-size:10px}
.creator-start-panel{display:grid;gap:20px;padding:25px;border:1px solid rgba(243,198,106,.28);border-radius:16px;background:linear-gradient(130deg,rgba(243,198,106,.1),rgba(200,155,255,.07)),var(--surface)}
.creator-start-panel h3{margin-top:6px;font-size:21px;letter-spacing:-.025em}.creator-start-panel p{margin-top:6px;color:var(--muted);font-size:13px}
.creator-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.creator-type-card{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;padding:15px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);transition:transform .15s,border-color .15s,background .15s}
.creator-type-card:hover{transform:translateY(-2px);border-color:var(--accent);background:var(--surface-3)}
.creator-type-card>span{grid-row:span 2;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(140deg,var(--accent),var(--accent-2));color:#251d18;font-size:20px;font-weight:900}.creator-type-card strong{font-size:14px}.creator-type-card small{color:var(--muted);font-size:11px;line-height:1.4}
.creator-draft-section{display:grid;gap:13px}.creator-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.creator-section-title h3{margin-top:4px;font-size:21px}.creator-section-title>small,.creator-section-title small{color:var(--muted);font-size:11px}
.creator-drafts{display:grid;gap:8px}.creator-draft-row{display:flex;align-items:center;gap:12px;width:100%;padding:14px 15px;text-align:left;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);transition:border-color .15s,background .15s}.creator-draft-row:hover{border-color:var(--accent);background:var(--surface-2)}
.creator-draft-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:rgba(243,198,106,.13);color:var(--accent);font-size:18px}.creator-draft-main{display:grid;gap:3px;min-width:0}.creator-draft-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creator-draft-main small{color:var(--muted);font-size:11px}.creator-draft-arrow{margin-left:auto;color:var(--muted);font-size:18px}
.creator-empty{display:grid;gap:5px;padding:22px;border:1px dashed var(--line);border-radius:11px;color:var(--muted)}.creator-empty strong{color:var(--text);font-size:14px}.creator-empty .creator-primary{width:max-content;margin-top:8px}
.creator-flow-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--muted);font-size:11px}.creator-flow-step{display:inline-flex;align-items:center;gap:6px}.creator-flow-step b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--surface-3);font-size:10px}.creator-flow-step.is-current{color:var(--accent)}.creator-flow-step.is-current b{background:rgba(243,198,106,.2);color:var(--accent)}.creator-flow-note i{width:25px;height:1px;background:var(--line)}.creator-flow-note p{flex:1 1 100%;margin:3px 0 0;color:var(--muted)}
.creator-editor{gap:18px}.creator-editor-head{align-items:center}.creator-editor-head>div{min-width:0}.creator-editor-head>div>span:last-child{display:block;color:var(--muted);font-size:12px}.creator-back{white-space:nowrap}.creator-stepbar{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;color:var(--muted)}.creator-stepbar>span{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);font-size:13px;color:var(--muted);cursor:pointer;white-space:nowrap}.creator-stepbar>span:hover{border-color:var(--accent);color:var(--text)}.creator-stepbar b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:rgba(127,127,127,.22);font-size:11px;font-weight:700;color:var(--text)}.creator-stepbar .is-current{color:var(--accent);border-color:var(--accent);background:rgba(243,198,106,.1);box-shadow:0 0 0 3px rgba(243,198,106,.08)}.creator-stepbar .is-current b{background:var(--accent);color:#241c0b}.creator-stepbar i{display:none}.creator-stepbar>span.wizard-count{padding:0 4px;font-size:12px;color:var(--muted);border:0;background:none;box-shadow:none;cursor:default;align-self:center}
.creator-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;gap:20px}.creator-form{display:grid;gap:14px}.creator-form-section{display:grid;gap:12px;padding:19px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.creator-section-title{align-items:start}.creator-section-title strong{font-size:15px}.creator-section-title small{display:block;margin-top:3px}.creator-field{display:grid;gap:6px;color:var(--muted);font-size:12px}.creator-field input,.creator-field textarea{width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);outline:none;resize:vertical}.creator-field input:focus,.creator-field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(243,198,106,.1)}.creator-field textarea{min-height:92px;line-height:1.6}.creator-field small{color:var(--muted);font-size:10px}.creator-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.creator-action-note{margin:0 2px;color:var(--muted);font-size:11px}.creator-test{border-style:dashed;color:var(--muted)}
.creator-preview{position:sticky;top:92px;display:grid;gap:11px;padding:20px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,rgba(243,198,106,.1),rgba(200,155,255,.08)),var(--surface)}.creator-preview-head{display:flex;align-items:center;justify-content:space-between}.creator-private-badge{padding:4px 7px;border-radius:999px;background:rgba(243,198,106,.13);color:var(--accent);font-size:10px}.creator-preview-cover{display:grid;place-items:center;aspect-ratio:16/9;margin:2px 0 3px;border-radius:10px;background:linear-gradient(140deg,#322719,#805e38 52%,#242a49);color:#f3c66a;font-size:42px}.creator-preview h3{font-size:21px;line-height:1.2}.creator-preview>p{color:var(--muted);font-size:13px;line-height:1.65}.creator-preview-meta{display:grid;gap:8px;margin:3px 0 0}.creator-preview-meta div{display:flex;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid var(--line);font-size:12px}.creator-preview-meta dt{color:var(--muted)}.creator-preview-meta dd{max-width:70%;margin:0;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creator-preview-setting{color:var(--text)}.creator-preview-tip{display:grid;gap:4px;margin-top:7px;padding:11px 12px;border-radius:9px;background:var(--surface-2);font-size:11px}.creator-preview-tip strong{color:var(--accent)}.creator-preview-tip span{color:var(--muted);line-height:1.5}
.creator-review{gap:15px}.creator-review>header{align-items:center}.creator-review>header p{margin-top:5px}.creator-listing{display:grid;gap:8px;padding:17px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.creator-listing h3{font-size:16px}.creator-listing>span{width:max-content;padding:4px 8px;border-radius:999px;background:var(--surface-2);color:var(--accent);font-size:11px}.creator-listing button{width:max-content;padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--text)}.creator-listing button:hover{border-color:var(--accent);color:var(--accent)}.creator-reason{padding:9px 11px;border-radius:8px;background:rgba(255,146,157,.08);color:var(--danger);font-size:12px}
@media(max-width:850px){.creator-editor-grid{grid-template-columns:1fr}.creator-preview{position:static;order:-1}.creator-type-grid{grid-template-columns:1fr}.creator-type-card{min-height:65px}.creator-home-head,.creator-editor-head,.creator-review>header{align-items:flex-start;flex-direction:column}.creator-home-actions{justify-content:flex-start}.creator-back{align-self:flex-start}.creator-stepbar{flex-wrap:wrap;row-gap:8px;overflow:auto;padding-bottom:2px}.creator-stepbar>span{padding:8px 10px}.creator-flow-note i{width:14px}}
@media(max-width:520px){.creator-start-panel,.creator-form-section,.creator-preview{padding:15px}.creator-actions>*{flex:1 1 auto;text-align:center}.creator-home-head h2,.creator-editor-head h2,.creator-review h2{font-size:28px}.creator-draft-row{padding:12px}.creator-flow-note{gap:7px}}

.creator-lore-summary{display:flex;gap:12px;align-items:center;justify-content:space-between;color:var(--muted)}.creator-lore-summary strong{color:var(--text);font-size:24px}

.creator-preview-cover{overflow:hidden}.creator-preview-cover img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;display:block}.creator-cover-actions{display:flex;flex-wrap:wrap;gap:10px}

/* ===== T5a 创作向导 ===== */
.wizard-count{flex:none;padding:3px 10px;border:1px solid rgba(243,198,106,.4);border-radius:999px;background:rgba(243,198,106,.1);color:var(--accent);font-weight:700;white-space:nowrap}
.creator-stepbar .is-locked{opacity:.55}
.creator-stepbar .is-locked b{background:rgba(127,127,127,.18)}
.creator-step-title{margin:0 0 6px}
.creator-step-title h3{margin:0;font-size:17px}
.creator-step-title small{color:var(--muted)}
.wizard-locked p{margin:8px 0 0;color:var(--muted);line-height:1.7}
.wizard-note p{margin:8px 0 0;color:var(--muted);line-height:1.7}
.creator-type-card.is-active{border-color:var(--accent);background:rgba(243,198,106,.08)}
.creator-type-card.is-active:hover{background:rgba(243,198,106,.08)}
.creator-type-card small{grid-column:2;color:var(--muted);font-size:11px}
.creator-done-check{display:grid;gap:8px;margin:0}
.creator-done-check div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}
.creator-done-check div:last-child{border-bottom:0}
.creator-done-check dt{color:var(--muted);flex:none}
.creator-done-check dd{margin:0;text-align:right;color:var(--text);overflow-wrap:anywhere}

/* ===== T5a 反馈：手机端紧凑化（20261001） ===== */
@media(max-width:700px){
  /* 实时预览在手机上隐藏：内容与完成页检查清单重复，且占满一整屏 */
  .creator-editor-grid .creator-preview{display:none}
  /* 头部操作按钮统一为 2×2 等宽，不再长短不一 */
  .creator-editor-head-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .creator-editor-head-actions .creator-secondary{white-space:nowrap;text-align:center;padding:10px 6px}
  /* 分区留白收紧，降低滑动压力 */
  .creator-form-section{padding:13px;gap:9px}
  .creator-form-section textarea{min-height:88px}
  .creator-step-title{margin:0 0 2px}
}

/* ===== T5b：开局时间栅格 ===== */
.wizard-time-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wizard-time-hint{color:var(--muted);font-size:11px;line-height:1.6}
.world-npc-actions{margin-top:6px}
@media(max-width:700px){.wizard-time-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}

/* ===== T5c：系统设定（步骤6） ===== */
.wizard-faction-row{display:grid;gap:9px;margin-bottom:10px}
.wizard-economy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.wizard-economy-extras{display:grid;gap:9px;margin-bottom:10px}
.wizard-economy-extra{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}
.wizard-plugin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.wizard-plugin-toggle{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);cursor:pointer}
.wizard-plugin-toggle input{width:16px;height:16px;flex:none}
.wizard-plugin-toggle span{display:grid;font-size:13px;color:var(--text)}
.wizard-plugin-toggle small{color:var(--muted);font-size:10.5px}
@media(max-width:700px){.wizard-economy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard-plugin-grid{grid-template-columns:1fr}}

/* ===== T5d：阅读外观 ===== */
.wizard-appear-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wizard-appear-grid input[type=color]{width:100%;height:38px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);cursor:pointer}
.wizard-appear-grid input[type=range]{width:100%;accent-color:var(--accent)}
@media(max-width:700px){.wizard-appear-grid{grid-template-columns:1fr 1fr}}

/* Full-width appearance workspace: the preview belongs beside the editor. */
.creator-editor-grid.is-appearance{grid-template-columns:minmax(0,1fr)}
.creator-editor-grid.is-appearance>.creator-preview{display:none}
.creator-editor-grid,.creator-form,.creator-form-section{min-width:0}
.creator-theme-workbench{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:20px;align-items:start;min-width:0}
.creator-theme-editorcol,.creator-theme-preview-card{display:grid;gap:16px;min-width:0;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.creator-theme-editorcol{background:linear-gradient(145deg,rgba(243,198,106,.045),transparent 45%),var(--surface)}
.creator-theme-head,.creator-theme-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0}
.creator-theme-head h3{font-size:19px;margin:5px 0}.creator-theme-head p{font-size:12px;color:var(--muted);margin:0}
.creator-theme-switch{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;cursor:pointer;color:var(--text)}.creator-theme-switch input{accent-color:var(--accent);width:17px;height:17px}
.creator-theme-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.creator-theme-tab{display:grid;gap:4px;min-height:66px;padding:12px 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);text-align:center;transition:background .15s,border-color .15s}
.creator-theme-tab strong{font-size:14px}.creator-theme-tab small{font-size:11px;font-weight:400}
.creator-theme-tab.is-active{border-color:var(--accent);color:var(--text);background:rgba(243,198,106,.1)}
.creator-theme-tab:hover,.creator-theme-tab:focus-visible{border-color:var(--accent)}
.creator-theme-template-strip{display:flex;flex-wrap:wrap;gap:8px}.creator-theme-template-strip button{font-size:12px;padding:9px 12px}
.creator-theme-code{gap:9px}.creator-theme-code>span{display:flex;justify-content:space-between;gap:10px;color:var(--text);font-size:12px}.creator-theme-code>span small{font-variant-numeric:tabular-nums;color:var(--muted)}
.creator-theme-code textarea{min-height:360px;padding:14px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.65;tab-size:2;border-radius:10px;white-space:pre;overflow-wrap:normal}
.creator-theme-code>small{font-size:11px;line-height:1.5}.creator-theme-actions{display:flex;flex-wrap:wrap;gap:8px}.creator-theme-actions button{padding:9px 12px;font-size:12px}.creator-theme-save-note{margin:0;font-size:11px;line-height:1.7;color:var(--muted)}
.creator-theme-preview-disclosure{min-width:0;position:sticky;top:20px}.creator-theme-preview-disclosure>summary{display:none}
.creator-theme-preview-card{padding:18px;background:var(--surface-2)}.creator-theme-preview-head strong{display:block;font-size:14px}.creator-theme-preview-head small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.creator-theme-device{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.creator-theme-device button{border:0;border-radius:6px;padding:7px 10px;color:var(--muted);background:transparent;font-size:12px;white-space:nowrap}.creator-theme-device button.is-active{color:var(--text);background:var(--surface-3)}
.ctpv-shell{width:min(100%,391px);justify-self:center;border:8px solid #252b36;border-radius:28px;overflow:hidden;background:#101722;box-shadow:0 15px 36px rgba(0,0,0,.18)}
.ctpv-shell.is-desktop{width:100%;border-radius:13px;border-width:6px}
.ctpv-viewport{position:relative;width:100%;height:570px;overflow:hidden}.ctpv-viewport iframe{display:block;border:0;position:absolute;left:0;top:0;transform-origin:top left;width:100%;height:100%}
.creator-theme-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);line-height:1.5}.creator-theme-preview-footer button{white-space:nowrap;font-size:11px;padding:7px 9px}
.creator-visibility-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.creator-visibility-card p{margin:0;line-height:1.7}
.creator-modal-overlay{position:fixed;inset:0;z-index:1600;display:grid;place-items:center;padding:20px;background:rgba(5,9,16,.68);backdrop-filter:blur(5px);overflow-y:auto}
.creator-modal-card{display:grid;gap:16px;width:min(100%,620px);max-height:calc(100dvh - 40px);overflow-y:auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 25px 80px rgba(0,0,0,.35)}
.creator-modal-card h3,.creator-modal-card p{margin:0}.creator-modal-card p{font-size:12px;color:var(--muted)}.creator-instruction-text{width:100%;min-height:300px;padding:14px;color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;resize:vertical}
.creator-modal-card .creator-visibility-grid{grid-template-columns:1fr}.creator-modal-card .creator-cover-actions{justify-content:flex-end}
@media(max-width:1100px){.creator-theme-workbench{gap:14px}.creator-theme-editorcol{padding:16px}.creator-theme-preview-card{padding:14px}.creator-theme-head{align-items:flex-start;flex-direction:column}}
@media(max-width:800px){.creator-theme-workbench{grid-template-columns:minmax(0,1fr)}.creator-theme-preview-disclosure{position:static;border:1px solid var(--line);border-radius:14px;overflow:hidden}.creator-theme-preview-disclosure>summary{display:flex;justify-content:space-between;padding:15px;background:var(--surface);font-size:13px;font-weight:700;cursor:pointer}.creator-theme-preview-disclosure>summary span{font-size:11px;color:var(--muted);font-weight:400}.creator-theme-preview-card{border:0;border-radius:0}.creator-theme-code textarea{min-height:260px}.creator-visibility-grid{grid-template-columns:1fr}}
@media(max-width:520px){.creator-theme-editorcol{padding:14px;gap:13px}.creator-theme-tab{min-height:58px}.creator-theme-tab small{font-size:10px}.creator-theme-template-strip button{flex:1}.creator-theme-actions{display:grid;grid-template-columns:1fr 1fr}.creator-theme-actions .creator-primary{grid-column:1/-1}.creator-theme-preview-head{gap:8px}.creator-theme-preview-footer{align-items:flex-start}.creator-modal-overlay{padding:12px}.creator-modal-card{padding:17px;max-height:calc(100dvh - 24px)}}
