@font-face{font-family:"DM Sans";src:url("/assets/fonts/dm-sans.ttf") format("truetype");font-weight:100 1000;font-style:normal;font-display:swap}
@font-face{font-family:"DM Sans";src:url("/assets/fonts/dm-sans-italic.ttf") format("truetype");font-weight:100 1000;font-style:italic;font-display:swap}
/* Shared visual tokens; all actions remain connected to the existing application. */
:root{--mfj-bg:#080402;--mfj-panel:#170b05;--mfj-pink:#f3a447;--mfj-pink-soft:#f3a44715;--mfj-text:#fff4e8;--mfj-muted:#c8b5a4;--mfj-line:#ffffff18;--ink:#fff4e8;--muted:#c8b5a4;--paper:#080402;--line:#ffffff18;--gold:#f3a447}
body{background:#080402;color:#fff4e8;font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.test-banner{background:#211107;color:#c8b5a4;font-size:10px;letter-spacing:1px;padding:5px;text-align:center}
header{background:#080402;border-bottom:1px solid #ffffff12;padding:20px 4%;box-shadow:none;position:relative;z-index:10;min-height:76px}
header .brand{color:#fff4e8;font-size:21px;letter-spacing:2px}header .brand small{color:#bca491;font-size:10px;letter-spacing:3px}.brand-mark{color:#f3a447}nav{gap:25px}nav button{color:#e0cbb7;font-size:13px}nav button:hover{color:#fff}nav .pill{border:1px solid #ffffff26;border-radius:30px;padding:10px 18px;background:#1c1009}
main{max-width:none;padding:0}#homeView{padding:0}.mfj-layout{gap:0;min-height:calc(100svh - 104px)}.mfj-stage{position:relative;min-width:0;padding:0;border:0;border-radius:0;overflow:hidden;min-height:calc(100svh - 104px);background:#080402}
#productStageCanvas{position:absolute;inset:0;width:100%;height:100%}#productStageCanvas canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}
.product-intro{position:absolute;left:5%;top:8%;pointer-events:none;z-index:2}.product-eyebrow{font-size:10px;letter-spacing:4px;color:#d7b493}.product-intro h1{font-size:clamp(28px,3vw,48px)!important;font-weight:400;line-height:1.4;letter-spacing:3px;margin:18px 0;color:#fff4e8}.product-intro p{font-size:12px;color:#c8b5a4;letter-spacing:1px}
.mfj-stage-top{position:static;padding:0}.mfj-entries{position:absolute;inset:0;pointer-events:none;z-index:3}.mfj-entry{position:absolute;pointer-events:auto;white-space:nowrap;font-size:12px;padding:13px 18px;border-radius:30px;background:#201209ef;color:#fff4e8;border:1px solid #ffffff30;box-shadow:0 6px 24px #0003;transition:border-color .18s}.mfj-entry::before{content:'＋';color:#f3a447;margin-right:10px}.mfj-entry:hover,.mfj-entry.selected{background:#f3a447;color:#180b00;border-color:#f3a447}.mfj-entry.selected::before,.mfj-entry:hover::before{color:#180b00}#entryPhoto{left:54%;top:55%}#entryShadow{left:67%;top:25%}
#openWorkbench{position:absolute;bottom:70px;left:4%;z-index:3;background:transparent;border:0;padding:8px 0;font-size:11px;color:#bca491}
.scene-tools{position:absolute;right:4%;bottom:64px;display:flex;align-items:center;border:1px solid #ffffff20;border-radius:24px;padding:3px;z-index:4;background:#170b05e8}.scene-tools button{border:0;background:none;color:#e4cdb9;font-size:11px;min-height:38px;padding:8px 14px}.scene-tools button:first-child,.scene-tools button:last-child{font-size:18px}.scene-tools button:hover{color:#f3a447}.scene-caption{position:absolute;bottom:25px;left:4%;right:4%;display:flex;align-items:center;gap:8px;font-size:10px;color:#bca491;z-index:3;pointer-events:none}.scene-dot{width:5px;height:5px;background:#f3a447;border-radius:50%}.scene-gesture{margin-left:auto;letter-spacing:1px}
.mfj-stage-body{display:block;padding:0;background:none;min-height:0}.mfj-stage[data-scene="ready"] .mfj-placeholder,.mfj-stage:not([data-scene="failed"]) .mfj-degraded{display:none}.mfj-stage:not([data-scene="ready"]) .mfj-placeholder{visibility:hidden}.mfj-stage[data-scene="failed"] .mfj-degraded{position:absolute;top:40%;left:25%;width:50%;background:#170b05e8;z-index:2}.mfj-stage:not([data-scene="ready"]) #entryPhoto{left:25%!important;top:24%!important}.mfj-stage:not([data-scene="ready"]) #entryShadow{left:55%!important;top:24%!important}
.mfj-stage[data-scene="ready"]:not(.editing-source) #homeEditArea{display:none}.mfj-stage.editing-source #homeEditArea{position:absolute;inset:90px 12% 100px;z-index:5;background:#120905;border:1px solid #ffffff26;overflow:auto}.mfj-stage.editing-source #productStageCanvas{opacity:.1}.mfj-edit-area #homeEditSlot #studioCanvasSlot{max-height:65vh;aspect-ratio:auto}.mfj-edit-area #homeEditSlot #studioCanvasSlot canvas{height:auto;max-height:60vh;object-fit:contain}
.mfj-layout:has(#sidePanel:not([hidden])){grid-template-columns:minmax(0,1fr) 380px}.mfj-side{background:#170b05;border:0;border-left:1px solid #ffffff14;border-radius:0;max-height:calc(100svh - 104px);padding:0 26px 24px;box-shadow:none;color:#fff4e8}.mfj-side-head{background:#170b05;position:sticky;top:0;padding:24px 0 20px;border-bottom:1px solid #ffffff12;z-index:6}.mfj-side-head h2{font-size:21px;font-weight:500}.mfj-side-head button{background:transparent;color:#c8b5a4;border-color:#ffffff20;font-size:11px;padding:7px 12px}.mfj-side h3{font-size:14px;color:#fff4e8;margin:24px 0 18px}.mfj-side h4{font-size:12px;letter-spacing:.5px;color:#d7b493;margin:26px 0 12px}.field{font-size:12px;color:#c8b5a4;gap:8px;margin:18px 0 8px}input,textarea,select{background:#100805;color:#fff4e8;border:1px solid #ffffff20;border-radius:10px;padding:12px;font:inherit}textarea::placeholder,input::placeholder{color:#bca491}.mfj-help,.mfj-hint{color:#c8b5a4;font-size:11px;line-height:1.65}.mfj-hint{margin:6px 0 16px}.mfj-hint:empty{display:none}.mfj-primary,.primary{background:#f3a447;color:#180b00;border:1px solid #f3a447;border-radius:12px;font-size:13px;padding:13px 18px}.mfj-secondary,.secondary{background:#ffffff05;color:#e4cdb9;border:1px solid #ffffff22;border-radius:10px}.mfj-primary:disabled,.primary:disabled{background:#38281d;color:#c5ad98;border-color:#785538;opacity:1}.mfj-style-card{background:#120905;border:1px solid #ffffff18;border-radius:10px;min-height:84px;padding:12px}.mfj-style-card strong{font-size:12px;font-weight:500}.mfj-style-card .mfj-help{font-size:10px}.mfj-style-card.selected{background:#f3a4470d;border-color:#f3a447}.mfj-adopt-row,.mfj-candidate-row{background:transparent;border-color:#ffffff18;border-radius:10px}.mfj-status-tag{font-size:10px}.mfj-side-footer{background:#170b05;border-top:1px solid #ffffff18}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #f3a447!important;outline-offset:4px}body:has(#homeView:not([hidden]))>footer{display:none}
@media(min-width:1000px){.mfj-layout:has(#sidePanel:not([hidden])) .product-intro h1{font-size:30px!important}.mfj-layout:has(#sidePanel:not([hidden])) .product-intro{top:5%}}
@media(max-width:760px){header{padding:15px 18px;min-height:90px;gap:12px;align-items:flex-start}header .brand{font-size:17px}header .brand small{display:none}nav{gap:6px 12px;justify-content:flex-end}nav button{font-size:11px}nav .pill{padding:6px 10px}.mfj-layout,.mfj-layout:has(#sidePanel:not([hidden])){display:block}.mfj-stage{height:calc(100svh - 125px);min-height:560px}.product-intro{left:24px;top:24px}.product-intro h1{font-size:27px!important;margin:12px 0;line-height:1.4}.product-intro p{font-size:10px}.product-eyebrow{font-size:8px}.mfj-entry{padding:11px 13px;font-size:11px}.scene-caption{font-size:9px;bottom:18px}.scene-gesture{display:none}.scene-tools{bottom:54px}.mfj-side{position:relative!important;inset:auto!important;width:100%;max-height:68svh;border-top:1px solid #ffffff20;border-radius:18px 18px 0 0;padding:0 20px 24px;z-index:7}.mfj-layout:has(#sidePanel:not([hidden])) .mfj-stage{height:45svh;min-height:340px}.mfj-layout:has(#sidePanel:not([hidden])) .product-intro h1{font-size:20px!important}.mfj-layout:has(#sidePanel:not([hidden])) .product-intro p{display:none}.mfj-layout:has(#sidePanel:not([hidden])) #openWorkbench{bottom:52px;font-size:9px}.mfj-stage.editing-source #homeEditArea{inset:60px 10px 65px}.mfj-side-head{padding:18px 0}.mfj-side-head h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#homeView{margin:0;width:100%;max-width:none;--mfj-pink:#f3a447;--mfj-panel:#170b05;--mfj-bg:#080402;--mfj-text:#fff4e8;--mfj-muted:#c8b5a4;--mfj-line:#ffffff18}.mfj-entries{margin:0}header{max-width:none}.mfj-stage{height:calc(100svh - 112px);min-height:calc(100svh - 112px)}
@media(max-width:760px){.mfj-stage{height:calc(100svh - 140px);min-height:520px}.mfj-layout:has(#sidePanel:not([hidden])) .mfj-stage{height:45svh;min-height:340px}}
#homeViewToggle{position:sticky;top:0;z-index:2;background:#120905;padding:10px}#homeViewToggle button{color:#e4cdb9}#homeViewToggle button.selected{color:#180b00;background:#f3a447}
#homeView .mfj-side .field input,#homeView .mfj-side .field select,#homeView .mfj-side textarea{background:#100805;color:#fff4e8;border-color:#ffffff24}input[type=file]::file-selector-button{background:#352010;color:#ffe0ae;border:1px solid #ffffff24;border-radius:6px;padding:7px 10px;margin-right:10px}
@media(max-width:760px){.mfj-layout:has(#sidePanel:not([hidden])) .mfj-side{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%;height:52svh;max-height:52svh;z-index:30;box-shadow:0 -12px 40px #0007}.mfj-side-foot .mfj-help{font-size:10px;line-height:1.4;margin:5px 0}.mfj-side-head{padding:14px 0}.mfj-side{padding-bottom:max(12px,env(safe-area-inset-bottom))}.mfj-layout:has(#sidePanel:not([hidden])) .scene-tools{top:14px;bottom:auto;right:14px}.mfj-layout:has(#sidePanel:not([hidden])) .scene-tools button{padding:6px 10px}.mfj-layout:has(#sidePanel:not([hidden])) .product-intro{top:14px;left:18px}.mfj-layout:has(#sidePanel:not([hidden])) .product-intro h1{font-size:18px!important}.mfj-layout:has(#sidePanel:not([hidden])) .scene-caption{bottom:12px}.mfj-layout:has(#sidePanel:not([hidden])) #openWorkbench{bottom:30px}}
:root{--white:#170b05;--green:#f3a447}.primary:hover,.mfj-primary:hover:not(:disabled){background:#ffe0ae;color:#180b00}dialog{background:#170b05;color:#fff4e8;border:1px solid #ffffff20}dialog .field input,dialog .field select,dialog textarea{background:#100805;color:#fff4e8}dialog .segmented button.selected{background:#f3a447;color:#180b00}.credits{background:#28170c}.toast{background:#301b0d;color:#fff4e8}
/* Compact credit center: amounts first, records and secondary rules on demand. */
#creditsDialog{width:min(600px,calc(100vw - 28px));max-height:88svh;padding:30px;border-radius:24px;background:#170b05;color:#fff4e8;border:1px solid #ffffff1f}#creditsDialog h2{font-size:26px;margin:8px 0 24px}#creditsDialog .eyebrow{color:#d7b493;letter-spacing:3px;font-size:9px}#creditsDialog .credits-sec{padding:20px 0;border-bottom:1px solid #ffffff12;margin:0}#creditsDialog h3{font-size:15px;font-weight:550;margin:0 0 14px}.credit-balance{position:relative;background:linear-gradient(120deg,#38200d,#1c1009);border:1px solid #f3a44724;border-radius:16px;padding:24px}.credit-balance>span{font-size:12px;color:#c8b5a4}.credit-balance>strong{display:block;font-size:46px;font-weight:550;line-height:1.3;letter-spacing:-1px}.credit-balance .button-row{position:absolute;right:20px;top:20px}.credit-balance .help{font-size:12px;margin:5px 0}.credit-balance #creditsLoginNote{display:none}.credits-keyline{display:flex;justify-content:space-between;gap:16px;font-size:11px;padding:16px 0;color:#c8b5a4}.credits-keyline strong{color:#ffe0ae;font-weight:500}#creditsDialog #topUpPackages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#creditsDialog .topup-row{display:flex;flex-direction:column;align-items:center;border:1px solid #ffffff1a;border-radius:14px;padding:16px 12px;margin:0;background:#ffffff03;gap:0}#creditsDialog .topup-name{font-size:11px;color:#c8b5a4}#creditsDialog .topup-total{font-size:30px;line-height:1.5;font-weight:550}#creditsDialog .topup-row .help{font-size:11px;margin:0 0 8px}#creditsDialog .topup-row button{width:100%;margin-top:8px;color:#ffe0ae;border-color:#f3a44738;background:#f3a44708}#creditsDialog .credit-refund-note{font-size:11px;line-height:1.7;color:#c8b5a4;margin:12px 0 0}#creditsDialog .reward-row{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding:13px 0;border:0;border-bottom:1px solid #ffffff0d;border-radius:0;margin:0;background:none}#creditsDialog .reward-head{display:flex;align-items:center;gap:12px;justify-content:flex-start}#creditsDialog .reward-head strong{font-size:12px;font-weight:500}#creditsDialog .reward-amount{font-size:12px;color:#ffe0ae}#creditsDialog .reward-row>.help{grid-column:1;font-size:10px;line-height:1.5;margin:0}#creditsDialog .reward-row>button{grid-column:2;grid-row:1/4;align-self:center;font-size:11px;padding:7px 11px;border-radius:20px;min-height:36px}#creditsDialog .reward-status{color:#978b98!important;font-size:10px}.credit-records{border-bottom:1px solid #ffffff16;padding:16px 0}.credit-records summary{cursor:pointer;font-size:12px;color:#c5b9c5}.credit-records-body{padding-top:14px}.credit-records .button-row{flex-wrap:wrap}.credit-records .button-row button{font-size:11px;padding:8px 10px}.credit-records .credits-rule{margin:12px 0;padding:0;border:0;background:none}.credit-records .credits-rule strong{font-size:12px}.credit-records .help{font-size:11px!important}.credits-keyline+section #payReturnStatus:empty,#inviteStatus:empty,#waBindStatus:empty{display:none}.credit-records h4{font-size:12px}#creditsDialog #topUpStatus{font-size:11px;color:#b8a4b2;margin:12px 0 0}
.google-signin{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;border-radius:12px;background:#f7f5f7;color:#242026;border:1px solid #ddd6de;font-weight:550;margin:20px 0 8px}.google-signin:disabled{background:#332e35;color:#b6aab8;border-color:#ffffff1a;opacity:1}.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#958998;font-size:11px}.auth-divider::before,.auth-divider::after{content:'';height:1px;background:#ffffff1c;flex:1}#googleSignInStatus{font-size:11px;margin:0;text-align:center}#authDialog,#recoveryForm{color:#fff4e8}#authDialog .segmented{background:#100803;border:1px solid #ffffff12;padding:4px;border-radius:10px}#authDialog .segmented button{border-radius:7px;color:#b5a9b8}#authDialog .segmented button.selected{background:#40303b;color:#ffe0ae}
@media(max-width:600px){#creditsDialog{padding:23px 18px;border-radius:20px;max-height:90svh}.credits-keyline{flex-direction:column;gap:4px}.credit-balance{padding:18px}.credit-balance .button-row{right:12px;top:14px}.credit-balance>strong{font-size:38px}#creditsDialog .topup-row{padding:12px 8px}#creditsDialog .topup-total{font-size:25px}#creditsDialog .reward-head{gap:7px;flex-wrap:wrap}#creditsDialog .reward-head strong,#creditsDialog .reward-amount{font-size:11px}}
#creditsDialog{max-width:min(600px,calc(100vw - 28px))}.credit-balance .button-row{width:auto;display:flex;align-items:center;gap:12px}.credit-balance .button-row button{flex:none;white-space:nowrap}.credit-balance .button-row .primary{padding:10px 15px}.credit-balance{min-height:142px}.credit-records summary{color:#c5b9c5!important}dialog::backdrop{background:#09070bba;backdrop-filter:blur(6px)}
#photoStyleCards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}#photoStyleCards .mfj-style-card{min-width:0;padding:4px;border-radius:8px;min-height:0;overflow:hidden;position:relative}#photoStyleCards .mfj-style-card img{display:block;width:100%;height:auto;aspect-ratio:117.3/159;object-fit:cover;border-radius:4px}#photoStyleCards .mfj-style-card strong{display:block;font-size:10px;font-weight:500;line-height:1.5;padding:6px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#photoStyleCards .mfj-style-card .mfj-help{display:none}#photoStyleCards .mfj-style-card.selected::after{content:'✓';position:absolute;top:6px;right:6px;background:#f3a447;color:#180b00;border-radius:50%;width:17px;height:17px;font-size:11px;line-height:17px}.product-card,.work-card,.share-card{background:#170b05;border-color:#ffffff18;border-radius:16px}.card-actions button{border-color:#ffffff20}.section-heading{padding:0 4%}#worksGrid,#galleryGrid{padding:0 4% 40px}.gallery-grid .empty{border:1px dashed #ffffff20;border-radius:16px;margin:20px 0}.work-card .badge{background:#f3a44715;color:#ffe0ae}.share-card .share-link{overflow-wrap:anywhere}
.product-image,.work-image{background:#100803}#worksView>p.help{margin:0 4% 24px;max-width:880px;line-height:1.8}#worksView .section-heading{padding-top:26px}#galleryView>.external-shop{margin:32px 4%;border-color:#ffffff20;background:#170b05}#accountDialog .credits{margin:22px 0}#accountDialog #logoutButton{margin-top:22px}.card-actions{flex-wrap:wrap}.card-actions button{white-space:nowrap}.share-card .button-row{flex-wrap:wrap}#contactText{font-size:13px;line-height:1.7}
#homeView input[type=range]{accent-color:#f3a447;padding:0;border:0;background:transparent;height:24px}#homeView .field input[type=checkbox]{accent-color:#f3a447;width:18px;height:18px;display:inline-block;vertical-align:middle;padding:0;margin:0 0 0 8px}.mfj-side #shadowPanel,.mfj-side #photoPanel{overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#785538 transparent}.mfj-side h3{margin-top:18px}
.mfj-entry{min-height:44px}#creditsDialog .close,#authDialog .close{min-width:44px;min-height:44px}
/* Keep the fixed-height editor inside the viewport: native button focus must not shift it between pointerdown/up. */
@media(min-width:761px){.mfj-layout #sidePanel{position:relative;top:0;height:calc(100svh - 112px);max-height:calc(100svh - 112px);margin:0;align-self:start}}
/* Amber Cinema: stable reading surfaces; warmth comes primarily from the product. */
:root{--amber-bg:#080402;--amber-panel:#170b05;--amber-text:#fff4e8;--amber-muted:#c8b5a4;--amber-edge:#ac7a50;--amber-accent:#f3a447;--amber-highlight:#ffe0ae}
::selection{background:#fff4e8;color:#180b00}
button,input,textarea,select{font-family:"DM Sans","PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font-variant-numeric:tabular-nums}
.primary,.mfj-primary,#homeView .mfj-primary{background:var(--amber-text);color:#180b00;border-color:var(--amber-text)}
.primary:hover:not(:disabled),.mfj-primary:hover:not(:disabled){background:var(--amber-highlight);color:#180b00;border-color:var(--amber-highlight)}
.primary:active:not(:disabled),.mfj-primary:active:not(:disabled){background:var(--amber-accent)}
.primary:disabled,.mfj-primary:disabled{background:#38281d;color:#c5ad98;border-color:#785538}
.mfj-entry:hover,.mfj-entry.selected{background:#402009;color:#ffe0ae;border-color:#f3a447}.mfj-entry:hover::before,.mfj-entry.selected::before{color:#ffe0ae}
.mfj-side,.mfj-side-head,.mfj-side-footer,.mfj-side-foot{background:var(--amber-panel)}
#homeView .field input,#homeView .field select,#homeView textarea,dialog .field input,dialog .field select,dialog textarea,input,textarea,select{border-color:var(--amber-edge)}
#homeView .mfj-side .field input,#homeView .mfj-side .field select,#homeView .mfj-side textarea{border-color:var(--amber-edge)}
input::placeholder,textarea::placeholder{color:#bca491;opacity:1}
#homeView .mfj-help,#homeView .mfj-hint,.help,.mfj-help,.mfj-hint{color:var(--amber-muted)}
#homeViewToggle,.segmented{background:#241309}.segmented button{color:var(--amber-muted)}.segmented button.selected,dialog .segmented button.selected,#homeViewToggle button.selected{background:#402009;color:#ffe0ae;box-shadow:inset 0 0 0 1px #ac7a50}
.product-card,.work-card,.editor-panel,.preview-card{background:var(--amber-panel)}.product-image,.work-image,.canvas-wrap{background:#100803}.badge{background:#352010;color:#ffe0ae}.upload-button{background:#170b05;border-color:#ac7a50;color:#fff4e8}
.error{color:#f1ada1}dialog::backdrop{background:#080402b8;backdrop-filter:blur(5px)}.text-button{color:#ffe0ae}
#creditsDialog .topup-row button{background:#fff4e8;color:#180b00;border-color:#fff4e8}#creditsDialog .topup-row button:hover:not(:disabled){background:#ffe0ae}#creditsDialog .topup-row button:disabled{background:#38281d;color:#c5ad98;border-color:#785538}
#creditsDialog .credit-balance{background:linear-gradient(120deg,#38200d,#170b05);border-color:#ac7a5055}#creditsDialog .credits-keyline strong{color:#fff4e8}
#authDialog .google-signin{background:#211107;color:#fff4e8;border-color:#ac7a50}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#ffe0ae!important}
