:root{--paper:#f6f3eb;--ink:#243c36;--muted:#7d847a;--green:#245c4b;--gold:#b89456;--line:#dddcd0;--white:#fffdf8}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,label,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #beaa74;outline-offset:3px}button{background:none;border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.test-banner{background:#e9e3d2;text-align:center;font-size:11px;padding:6px;color:#786a4c;letter-spacing:.5px}header{max-width:1400px;margin:auto;padding:24px 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:23px;font-weight:650;letter-spacing:3px;white-space:nowrap}.brand-mark{color:var(--gold)}.brand small{font-size:9px;letter-spacing:2px;margin-left:10px;font-weight:500}nav{display:flex;align-items:center;gap:19px}nav button,nav a.nav-link{font-size:12px}.pill{border:1px solid var(--line);border-radius:30px;padding:9px 17px}#bagCount{font-size:10px;background:#e6e6da;border-radius:50%;padding:1px 5px}main{max-width:1320px;margin:auto;padding:0 4%}.hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding:62px 0 76px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--gold);font-weight:650}h1{font-size:48px;line-height:1.35;font-weight:500;letter-spacing:1px;margin:17px 0}h2{font-size:25px;font-weight:500;margin:8px 0}h3{font-weight:550}.hero p{color:var(--muted);font-size:15px;line-height:1.9;margin:22px 0 31px}.primary,.secondary,.upload-button{display:inline-flex;justify-content:center;align-items:center;gap:12px;border-radius:8px;padding:12px 20px;font-size:13px;font-weight:550;border:1px solid transparent}.primary{background:var(--green);color:#fff}.primary:hover{background:#194c3d}.secondary{border-color:var(--line);background:#eeece3}.upload-button{width:100%;border:1px dashed #a6b0a2;background:#f5f6ef;cursor:pointer}.text-link{display:inline-block;margin-left:20px;font-size:12px;color:var(--muted)}.hero-art{height:425px;background:radial-gradient(ellipse at 50% 50%,#4c4b28 0%,#1b2b24 55%,#10221d 100%);border-radius:45% 45% 12px 12px;position:relative;display:grid;place-items:center;overflow:hidden}.orbit{position:absolute;border:3px solid #e9b665;border-radius:50%;box-shadow:0 0 19px #f7b232, inset 0 0 16px #f7b232;opacity:.6;width:220px;height:330px;transform:rotate(35deg)}.orbit-two{transform:rotate(-35deg)}.demo-frame{z-index:1;background:linear-gradient(120deg,#c0c09b,#45694b);height:197px;width:145px;border:9px solid #493e29;box-shadow:0 9px 20px #08100ccc,inset 0 0 0 1px #b49a54;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff5cc}.demo-frame span{font-size:48px;line-height:1}.demo-frame p{font-family:Georgia,serif;font-size:15px;line-height:1.6;color:#fff5cc;margin:15px 0}.demo-frame i{font-size:7px;font-style:normal;opacity:.75}.hero-note{position:absolute;bottom:22px;color:#d6d4b9;font-size:10px;letter-spacing:3px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:24px 0}.section-heading p{color:var(--muted);font-size:12px}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.product-card,.work-card{background:var(--white);border-radius:15px;border:1px solid var(--line);overflow:hidden}.product-image,.work-image{aspect-ratio:1/1.08;background:#142820;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-image img,.work-image img{width:100%;height:100%;object-fit:contain}.card-body{padding:18px}.card-body h3{margin:0 0 5px;font-size:17px}.card-body p{font-size:12px;color:var(--muted);margin:5px 0 16px}.card-actions{display:flex;gap:8px}.card-actions button{flex:1;padding:8px 10px}.badge{font-size:10px;border-radius:20px;background:#ece6d5;color:#847047;padding:3px 9px}.empty{padding:35px;color:var(--muted);text-align:center;grid-column:1/-1}.studio-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 22px}.studio-heading h1,#worksView h1{font-size:29px;margin:7px 0}.save-meta{display:flex;align-items:center;gap:15px;font-size:11px;color:var(--muted)}.studio-layout{display:grid;grid-template-columns:340px 1fr;gap:25px;align-items:start}.editor-panel,.preview-card{background:var(--white);border:1px solid var(--line);border-radius:19px;padding:23px}.field{display:block;font-size:12px;margin:13px 0}.field input,.field select,textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:7px;background:#fffefb;padding:10px;color:var(--ink)}fieldset{padding:21px 0;border:0;border-bottom:1px solid var(--line);margin:0}fieldset:last-child{border:0}legend{float:left;width:100%;font-size:14px;font-weight:600;margin-bottom:13px}legend+*{clear:both}.step{font-size:10px;border:1px solid #a9b7a7;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;margin-right:6px}.segmented{display:flex;background:#eeeDE4;padding:4px;border-radius:8px;gap:3px}.segmented button{flex:1;padding:8px 7px;border-radius:6px;font-size:11px;white-space:nowrap}.segmented button.selected{background:var(--white);box-shadow:0 1px 5px #253d3515;color:var(--green);font-weight:650}.help{font-size:11px;color:var(--muted);line-height:1.65;margin:9px 0}.text-button{font-size:11px;text-decoration:underline;color:var(--green);padding:4px 0}.full{width:100%}.parameter{display:grid;grid-template-columns:63px 1fr 53px;gap:9px;align-items:center;margin:15px 0;font-size:11px}.parameter output{text-align:right;font-size:10px}.parameter input{width:100%;accent-color:var(--green)}.brush-heading{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.brush-heading strong{font-size:12px}.brush-heading p{max-width:200px}.switch input{position:absolute;opacity:0}.switch span{display:block;background:#cccfc4;width:37px;height:22px;border-radius:20px;padding:3px;cursor:pointer}.switch span:after{content:'';display:block;background:white;width:16px;height:16px;border-radius:50%;transition:transform .2s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:after{transform:translateX(15px)}.button-row{display:flex;gap:9px}.button-row>*{flex:1}.preview-column{position:sticky;top:20px}.preview-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.preview-top h2{font-size:18px;margin:5px 0}.compact button{font-size:10px}.canvas-wrap{position:relative;background:#102018;border-radius:12px;overflow:hidden;aspect-ratio:9/11}canvas{display:block;width:100%;height:100%;touch-action:none}#canvasEmpty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#d9d8c1;font-size:17px;pointer-events:none}#canvasEmpty small{font-size:11px;opacity:.6;margin-top:10px}.preview-disclaimer{text-align:center;font-size:10px;color:#918e7e;margin:14px 0 0}.studio-bottom{display:flex;align-items:center;justify-content:space-between;padding:20px 2px;gap:16px}.studio-bottom strong{font-size:14px}.studio-bottom p{font-size:11px;color:var(--muted);margin:4px 0}.studio-bottom button{white-space:nowrap}footer{max-width:1320px;margin:70px auto 0;padding:30px 4%;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}footer small{font-size:10px}dialog{border:1px solid var(--line);border-radius:18px;background:var(--white);padding:33px;max-width:470px;width:calc(100% - 32px);color:var(--ink);max-height:90vh;overflow:auto}dialog::backdrop{background:#10281b80;backdrop-filter:blur(4px)}.close{position:absolute;right:14px;top:10px;font-size:25px;color:var(--muted)}dialog h2{margin:8px 0 16px}dialog .segmented{margin:20px 0}.error{color:#ad4a34;font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#213c32;color:white;box-shadow:0 4px 30px #0002;padding:14px 22px;border-radius:10px;max-width:90vw;z-index:100;font-size:12px}.cart-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:14px 0}.cart-row strong{flex:1;font-size:12px}.cart-row input{width:55px;padding:5px;border:1px solid var(--line)}.cart-row button{font-size:12px}.credits{display:flex;justify-content:space-between;background:#e9eee3;padding:15px;border-radius:10px}.credits strong{font-size:25px}.work-check{display:flex;align-items:center;gap:7px;font-size:12px;margin-bottom:9px}hr{border:0;border-top:1px solid var(--line);margin:25px 0}
@media(min-width:1400px){.hero{gap:100px}.hero-art{height:450px}}@media(max-width:900px){.brand small{display:none}.hero h1{font-size:38px}.hero-art{height:340px}.studio-layout{grid-template-columns:290px 1fr;gap:15px}.editor-panel,.preview-card{padding:17px}.preview-top{flex-direction:column;align-items:start;gap:8px}.studio-bottom{flex-direction:column;align-items:stretch}.gallery-grid{gap:14px}nav{gap:8px}}@media(max-width:650px){header{padding:16px 5%;flex-wrap:wrap;gap:13px}.brand{font-size:20px}nav{width:100%;justify-content:space-between}nav button{font-size:11px;padding:6px}.hero{grid-template-columns:1fr;padding:38px 0;gap:26px}.hero h1{font-size:36px}.hero-art{height:310px}.hero p{font-size:13px}.gallery-grid{grid-template-columns:1fr 1fr;gap:10px}.card-body{padding:12px}.card-body h3{font-size:14px}.card-actions{flex-direction:column}.section-heading{align-items:start;gap:15px}.section-heading h2{font-size:22px}.section-heading p{max-width:110px;font-size:10px}.studio-layout{display:flex;flex-direction:column}.editor-panel{width:100%;order:2}.preview-column{position:static;width:100%;order:1}.canvas-wrap{aspect-ratio:9/11;width:100%}.preview-top{flex-direction:row;align-items:center}.preview-top h2{font-size:16px}.studio-heading{align-items:start}.save-meta{flex-direction:column;gap:5px}.preview-card{padding:13px}.studio-bottom{padding:14px 0}.studio-bottom p{margin-bottom:6px}footer{gap:15px;flex-wrap:wrap}#worksView .section-heading{flex-direction:column}.parameter{grid-template-columns:70px 1fr 55px}.test-banner{font-size:9px}dialog{padding:26px}}


.conflict-panel{margin:12px 0;padding:16px;border:1px solid var(--gold);border-radius:10px;background:var(--white)}.conflict-panel textarea{font-size:12px}.conflict-panel .button-row{flex-wrap:wrap}.upload-button{flex-wrap:wrap}.upload-button input[type=file]{width:100%;max-width:100%;font-size:12px}.switch:focus-within span{outline:3px solid var(--gold);outline-offset:3px}
/* ===== 批次3：F05 首页骨架（黑底/亮粉基调，#homeView 作用域；既有视图样式不动）===== */
#homeView{--mfj-bg:#0b0b0d;--mfj-panel:#161619;--mfj-field:#1d1d22;--mfj-text:#f5f5f7;--mfj-muted:#9b9ba7;--mfj-line:#2c2c34;--mfj-pink:#ff4d8d;--mfj-pink-soft:#ff4d8d26;background:var(--mfj-bg);color:var(--mfj-text);margin:0 -4%;padding:8px 4% 36px;min-height:72vh}
#homeView .eyebrow{color:var(--mfj-pink)}
#homeView h1{color:var(--mfj-text);font-size:40px}
#homeView h2,#homeView h3{color:var(--mfj-text)}
#homeView .mfj-help{color:var(--mfj-muted);font-size:12px;line-height:1.8}
.mfj-hero{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:start;padding:22px 0 10px}
.mfj-entries{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0 12px}
.mfj-entry{border:1px solid var(--mfj-pink);color:var(--mfj-pink);background:transparent;border-radius:10px;padding:15px 26px;font-size:15px;font-weight:650;letter-spacing:1px}
.mfj-entry:hover{background:var(--mfj-pink-soft)}
.mfj-entry.selected{background:var(--mfj-pink);color:#fff}
.mfj-entry:focus-visible,#homeView button:focus-visible,#homeView input:focus-visible,#homeView select:focus-visible,#homeView textarea:focus-visible{outline:3px solid var(--mfj-pink);outline-offset:3px}
.mfj-primary{background:var(--mfj-pink);color:#fff;border-radius:9px;padding:12px 20px;font-weight:650}
.mfj-secondary{border:1px solid var(--mfj-line);background:var(--mfj-panel);color:var(--mfj-text);border-radius:9px;padding:11px 18px}
.mfj-stage{background:var(--mfj-panel);border:1px solid var(--mfj-line);border-radius:16px;padding:18px}
.mfj-placeholder{background:linear-gradient(150deg,#232329,#101014);border:1px dashed var(--mfj-line);border-radius:12px;min-height:330px;display:grid;place-items:center;text-align:center}
.mfj-placeholder-frame{width:150px;height:200px;border:8px solid #2e2e36;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--mfj-muted);box-shadow:0 10px 30px #0007}
.mfj-placeholder-frame span{font-size:34px}
.mfj-placeholder-frame p{font-family:Georgia,serif;letter-spacing:2px;font-size:11px}
.mfj-placeholder-note{color:var(--mfj-muted);font-size:11px;letter-spacing:1px;margin:14px 0 0}
.mfj-degraded{margin-top:16px;border:1px solid var(--mfj-line);border-left:4px solid var(--mfj-pink);border-radius:10px;padding:16px}
.mfj-degraded strong{font-size:16px}
.mfj-degraded p{color:var(--mfj-muted);font-size:12px}
.mfj-side{position:sticky;top:16px;float:right;width:min(360px,100%);margin:0 0 18px 18px;background:var(--mfj-panel);border:1px solid var(--mfj-line);border-radius:16px;padding:18px}
.mfj-side-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mfj-side-head h2{font-size:18px;margin:0}
.mfj-side .field{display:block;font-size:12px;color:var(--mfj-muted);margin:13px 0}
.mfj-side .field input,.mfj-side .field select,.mfj-side .field textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--mfj-line);border-radius:8px;background:var(--mfj-field);color:var(--mfj-text);padding:10px}
.mfj-side-foot{border-top:1px solid var(--mfj-line);margin-top:16px;padding-top:14px}
.mfj-side-foot .mfj-primary{width:100%}
.mfj-status{clear:both;margin-top:26px;border-top:1px solid var(--mfj-line);padding-top:18px}
.mfj-status-head h2{font-size:19px;margin:0 0 6px}
.mfj-status ul{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.mfj-status li{background:var(--mfj-panel);border:1px solid var(--mfj-line);border-radius:10px;padding:12px 14px;display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:baseline}
.mfj-status li strong{font-size:13px}
.mfj-status-detail{grid-column:1/-1;color:var(--mfj-muted);font-size:11px;line-height:1.7}
.mfj-status-tag{font-size:11px;font-weight:650;color:var(--mfj-pink);border:1px solid var(--mfj-pink);border-radius:20px;padding:2px 10px;white-space:nowrap}
.mfj-status li[data-service-state="not-connected"] .mfj-status-tag{background:var(--mfj-pink-soft)}
/* ===== 批次4 P2-1：保存绑定说明（可保存=作品字段；占位=明示不可保存）===== */
.mfj-bind{margin:-6px 0 12px;font-size:11px;line-height:1.7;color:var(--mfj-muted);border-left:2px solid var(--mfj-line);padding-left:8px}
.mfj-bind.mfj-bind-savable{color:var(--mfj-pink);border-left-color:var(--mfj-pink)}
.mfj-bind.mfj-bind-placeholder{color:var(--mfj-muted);border-left-color:var(--mfj-muted)}
@media(max-width:820px){.mfj-hero{grid-template-columns:1fr}.mfj-side{float:none;width:100%;margin:18px 0 0;position:static}.mfj-status ul{grid-template-columns:1fr}#homeView h1{font-size:31px}}

/* ===== 批次4 P2-3：大预览区为主＋点击后右栏；开发状态区折叠到内部调试 ===== */
.mfj-hero{grid-template-columns:minmax(0,1fr) auto;gap:26px;align-items:end;padding:14px 0 16px}
#homeView h1{font-size:32px}
.mfj-hero-side{max-width:300px;text-align:right}
.mfj-hero-side .mfj-help{margin:4px 0}
.mfj-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.mfj-layout:has(#sidePanel:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(300px,380px)}
.mfj-stage{display:flex;flex-direction:column;gap:14px;min-height:52vh;height:calc(100vh - 132px);padding:18px 22px}
.mfj-stage-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.mfj-entries{margin:0}
.mfj-stage-body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,0.75fr);align-items:center;gap:20px;flex:1;min-height:0}
.mfj-placeholder{margin:0}
.mfj-placeholder-frame{width:min(240px,60%);height:320px}
.mfj-side{position:sticky;top:16px;float:none;width:100%;margin:0}
.mfj-dev{clear:both;margin-top:26px;border-top:1px solid var(--mfj-line);padding-top:14px}
.mfj-dev summary{cursor:pointer;color:var(--mfj-muted);font-size:12px;letter-spacing:1px}
.mfj-dev .mfj-help{color:var(--mfj-muted);font-size:11px;line-height:1.8}
@media(max-width:820px){.mfj-hero{grid-template-columns:1fr}.mfj-hero-side{text-align:left;max-width:none}.mfj-layout:has(#sidePanel:not([hidden])){grid-template-columns:minmax(0,1fr)}.mfj-stage{height:auto;min-height:44vh}#homeView h1{font-size:26px}.mfj-placeholder-frame{height:240px}}

/* ===== 批次5 MFJ-SUP-007/010：舞台紧接导航并占主要首屏；右栏与舞台同 top；消费者区只留短提示；面板＝固定头＋内部滚动表单＋真实布局底栏 ===== */
.mfj-hint{margin:-4px 0 8px;font-size:11px;line-height:1.6;color:var(--mfj-pink)}
.mfj-hint.mfj-hint-placeholder{color:var(--mfj-muted)}
.mfj-dev-bindings{margin-top:18px;border-top:1px solid var(--mfj-line);padding-top:14px}
.mfj-side .field{margin:9px 0}
.mfj-side{display:flex;flex-direction:column;max-height:calc(100vh - 150px)}
.mfj-side-head{flex:0 0 auto}
#photoPanel,#shadowPanel{flex:1 1 auto;min-height:0;overflow-y:auto}
#sourceInfo{flex:0 0 auto}
.mfj-side-foot{flex:0 0 auto;margin-top:10px;padding-top:10px;background:var(--mfj-panel)}
@media(max-width:820px){.mfj-stage{padding:12px 14px;gap:10px}.mfj-stage-body{grid-template-columns:1fr;gap:12px;align-items:start}.mfj-entry{padding:11px 16px;font-size:13px}.mfj-placeholder{min-height:0;padding:12px}.mfj-placeholder-frame{height:150px;width:min(150px,50%)}.mfj-degraded{margin-top:0;padding:12px}.mfj-side{max-height:none}.mfj-side-foot{padding-bottom:8px}}
@media(max-width:820px){.mfj-layout:has(#sidePanel:not([hidden])) .mfj-side{position:fixed;left:6px;right:6px;bottom:0;top:auto;width:auto;margin:0;max-height:46vh;z-index:30;border-radius:16px 16px 0 0;box-shadow:0 -10px 40px #000a}.mfj-layout:has(#sidePanel:not([hidden])) .mfj-placeholder-frame{height:110px}.mfj-side-foot .mfj-help{font-size:10px;line-height:1.5;margin:5px 0 0}}
/* 批次6：F12 站外分享与链接管理 / F15 商城配件外链（受控列表） */
.share-card{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:16px;margin:10px 0}
.share-card h3{margin:0 0 6px;font-size:15px}
.share-link{font-size:11px;color:var(--muted);word-break:break-all;margin:6px 0}
.shop-links{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:15px;background:var(--white)}
.shop-links h3{margin:0 0 6px}
.shop-links a{display:inline-block;margin-top:6px}
/* 批次7：F13 积分中心（五奖励/邀请/WA绑定）＋ F14 三档充值、支付返回、明细和退款 */
.credits-sec{margin:16px 0;padding:14px 0;border-top:1px solid var(--line)}
.credits-sec h3{margin:0 0 8px}
.reward-row,.topup-row{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:14px 16px;margin:10px 0}
.reward-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.reward-amount{color:var(--mfj-pink,#c2185b);font-weight:700}
.reward-status{font-weight:600}
.credits-entry{border-bottom:1px dashed var(--line);padding:6px 0}
.credits-entry p{margin:2px 0}
.credits-legacy{color:#8a6d3b}
.pay-state{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:10px 0}
.pay-state strong{display:block;margin-bottom:4px}

/* 批次8 MFJ-SUP-019 P2-4：积分弹层并入已确认黑粉消费者风格（#homeView 同一套变量；逻辑优先，样式最后） */
#creditsDialog{--mfj-bg:#0b0b0d;--mfj-panel:#161619;--mfj-field:#1d1d22;--mfj-text:#f5f5f7;--mfj-muted:#9b9ba7;--mfj-line:#2c2c34;--mfj-pink:#ff4d8d;--mfj-pink-soft:#ff4d8d26;background:var(--mfj-panel);color:var(--mfj-text);border-color:var(--mfj-line)}
#creditsDialog h2,#creditsDialog h3,#creditsDialog h4,#creditsDialog strong,#creditsDialog summary{color:var(--mfj-text)}
#creditsDialog .help{color:var(--mfj-muted)}
#creditsDialog .eyebrow,#creditsDialog .reward-amount,#creditsDialog summary{color:var(--mfj-pink)}
#creditsDialog .credits{background:var(--mfj-field);color:var(--mfj-text)}
#creditsDialog .credits strong{color:var(--mfj-pink)}
#creditsDialog .reward-row,#creditsDialog .topup-row,#creditsDialog .pay-state,#creditsDialog .credits-rule{background:var(--mfj-field);border-color:var(--mfj-line)}
#creditsDialog .credits-entry{border-bottom-color:var(--mfj-line)}
#creditsDialog .credits-legacy{color:#e8b56b}
#creditsDialog button.secondary{background:var(--mfj-field);border-color:var(--mfj-line);color:var(--mfj-text)}
#creditsDialog button.secondary:hover{background:var(--mfj-pink-soft)}
#creditsDialog button:focus-visible,#creditsDialog summary:focus-visible{outline:3px solid var(--mfj-pink);outline-offset:3px}
#creditsDialog details{border:1px solid var(--mfj-line);border-radius:12px;padding:10px 14px;margin:10px 0}
#creditsDialog details summary{cursor:pointer;font-size:12px}
#creditsDialog .credits-rule{padding:10px 14px;margin:8px 0;border-radius:10px}
#creditsDialog .credits-rule strong{font-size:12px}

/* ---------- 批次9（F08/F16＋MFJ-SUP-021/022）：候选切换行、下一步块、同页编辑区、键盘焦点与 390×844 防溢出 ---------- */
.mfj-candidate-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:1px solid var(--mfj-line);border-radius:12px;padding:8px 12px;margin:8px 0;background:var(--mfj-panel)}
.mfj-candidate-row[data-candidate-status="current"]{border-color:var(--mfj-pink);background:var(--mfj-pink-soft)}
.mfj-candidate-row .mfj-candidate-label{flex:1 1 160px;min-width:0;font-size:12px;overflow-wrap:anywhere}
.mfj-candidate-row .mfj-status-tag{flex:0 0 auto}
.mfj-candidate-row button{flex:0 0 auto;padding:6px 12px}
.mfj-next-step{border:1px solid var(--mfj-pink);border-radius:12px;padding:10px 14px;margin:10px 0;background:var(--mfj-pink-soft)}
.mfj-next-step strong{display:block;font-size:12px;margin-bottom:3px}
.mfj-next-step p{margin:2px 0 8px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.mfj-next-step button{margin:0 8px 4px 0;padding:7px 14px}
.mfj-edit-area{border:1px dashed var(--mfj-line);border-radius:14px;padding:12px;margin:12px 0}
.mfj-edit-area .mfj-help{margin:0 0 10px}
#homeEditSlot{width:100%}
#homeEditSlot #studioCanvasSlot{position:relative;background:#102018;border-radius:12px;overflow:hidden;aspect-ratio:9/11;width:100%}
#homeEditSlot #studioCanvasSlot canvas{display:block;width:100%;height:100%;touch-action:none}
#studioCanvasWrap #studioCanvasSlot{width:100%;height:100%}
/* 键盘可达（F16）：所有可聚焦元素统一可见焦点环（含 textarea/summary/checkbox 与新增按钮） */
#homeView textarea:focus-visible,#homeView summary:focus-visible,#homeView [type="checkbox"]:focus-visible,dialog textarea:focus-visible,dialog [type="checkbox"]:focus-visible,dialog button:focus-visible{outline:3px solid #beaa74;outline-offset:3px}
/* 390×844 无溢出：图片/画布/长文案不撑破横向视口 */
img{max-width:100%}
.mfj-next-step p,.mfj-candidate-row .mfj-candidate-label,.mfj-help{overflow-wrap:anywhere}
@media(max-width:420px){.mfj-stage-body{grid-template-columns:minmax(0,1fr)}.mfj-stage{padding:10px 12px}#homeView h1{font-size:24px}.mfj-hero h1{font-size:26px}.mfj-candidate-row{padding:6px 10px}.mfj-next-step{padding:8px 10px}.mfj-entry{padding:10px 12px;font-size:12px}nav{gap:6px;flex-wrap:wrap}header{padding:12px 4%}}
/* B/C-7b：导航「消息」未读角标（0 条时 hidden，不占位、不显示数字 0）。 */
.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:-9px;border-radius:20px;background:#b45309;color:#fffdf8;font-size:10px;font-weight:650;line-height:1;vertical-align:middle}
.nav-badge[hidden]{display:none!important}
.account-messages{display:flex;align-items:center;gap:8px;margin:12px 0}
.account-messages .nav-badge{margin-left:0}
.account-messages .text-link{margin-left:0}
