@import url("https://static.zaozuoba.cn/public-static/e074159203f24fa11688d7a985831be8bbbb7fbd46086e490ca64ab8dc122356/shared/ui-text-fonts-v1.css");:root{--paper:#fbf6ea;--ink:#173f73;--pink:#e76598;--line:#173f7326;--muted:#62748a;--white:#fffcf5;--font:'Yuanti SC','STYuanti','Avenir Next','PingFang SC',sans-serif;color:var(--ink);background:var(--paper);font:14px/1.6 var(--font);color-scheme:light}*{box-sizing:border-box}body{margin:0}h1,h2,p{margin:0}button,input,select{font:inherit;color:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;min-height:44px;padding:9px 14px;background:var(--white);display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover{background:#f7e7ed;border-color:#cf98ae}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #427dca;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.primary{background:var(--ink);color:var(--white);border-color:var(--ink);font-weight:700}.primary:hover{background:#245389}.quiet{background:none;border-color:transparent;font-size:13px}.brand-header{max-width:1416px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:17px 48px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;font:34px/1.2 ZaobaPF,cursive}.brand img{width:58px;height:58px;object-fit:contain}.brand small{font:12px/1.5 var(--font);display:block;letter-spacing:.12em;margin-top:5px}.back-link{padding:12px;font-size:14px}main{max-width:1300px;margin:auto;padding:0 30px 30px}.intro{padding:20px 0 23px;display:flex;align-items:end;justify-content:space-between;gap:16px}.intro p{font-size:12px;color:var(--muted)}h1{font:clamp(30px,3.2vw,44px)/1.35 ZaobaPF,cursive;margin-top:4px}h1 span{color:var(--pink)}.intro-note{padding-bottom:8px}.workbench{border:1px solid var(--line);border-radius:22px;background:var(--white);overflow:hidden;box-shadow:0 8px 30px #173f7305}.workbench-toolbar{display:flex;align-items:center;gap:18px;padding:12px 20px;border-bottom:1px solid var(--line)}label{display:grid;gap:7px;font-size:12px;color:var(--muted)}select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--white);padding:8px 26px 8px 12px;color:var(--ink);cursor:pointer}.workbench-toolbar label{display:flex;align-items:center;gap:8px;white-space:nowrap}.workbench-toolbar select{width:170px}.workbench-toolbar #editFrame{margin-left:auto}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:620px}.stage{position:relative;min-height:620px;background:#f8f1e7;border-right:1px solid var(--line)}.canvas-toolbar{position:absolute;top:16px;left:18px;right:18px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px}.viewbar{display:flex;padding:4px;border:1px solid var(--line);border-radius:14px;background:#fffcf5ed;gap:4px}.viewbar button{border:0;background:transparent;min-height:40px;padding:8px 18px}.viewbar button[aria-pressed=true]{background:var(--ink);color:var(--white)}#viewer{position:absolute;inset:65px 0 38px}#viewer canvas{display:block;width:100%;height:100%}.gesture{position:absolute;bottom:30px;left:14px;right:14px;text-align:center;font-size:11px;color:var(--muted);pointer-events:none}.metrics{position:absolute;bottom:10px;left:14px;right:14px;text-align:center;font-size:10px;color:var(--muted)}aside{padding:0 22px;background:var(--white)}.panel{padding:22px 0;border-bottom:1px solid var(--line)}.sectionhead{display:flex;gap:9px;align-items:center;margin-bottom:16px}.step{border:1px solid #d4b4c1;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;background:#f7e3eb;font-size:12px;flex-shrink:0}h2{font-size:17px;font-weight:700}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.appearance{margin-top:18px}.appearance summary,.detail summary{cursor:pointer;color:var(--muted);font-size:12px;min-height:36px;line-height:36px}.color-row{display:flex;gap:14px;margin:8px 0 14px}.color-row label{display:flex;align-items:center;gap:6px;font-size:11px}.color-row input{width:28px;height:28px;border:0;padding:0;background:none;cursor:pointer}.count-label{margin-left:auto;min-width:66px}.count-label select{min-height:38px;padding:4px 17px 4px 8px}.helper{font-size:11px;line-height:1.65;color:var(--muted)}.slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.slots:empty:after{content:'只放相框，也很好看。';grid-column:1/-1;font-size:12px;padding:12px;color:var(--muted)}.slot{padding:18px 5px 7px;position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}.slot svg{width:100%;height:58px;display:block}.slot .num{position:absolute;left:7px;top:4px;color:var(--muted);font-size:10px}.slot span:last-child{font-size:10px;display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot[aria-pressed=true]{border:2px solid var(--ink);padding:17px 4px 6px;background:#f0f3f7}.slot:hover{background:#f7e7ed}.selected-tools>span{font-size:11px;color:var(--muted);display:block;margin-bottom:7px}.selected-tools>div{display:flex;align-items:center;gap:5px}.selected-tools button{font-size:12px;padding:8px;min-width:38px}.selected-tools output{flex:1;text-align:center;font-size:11px;white-space:nowrap}.detail{padding:12px 0 18px;font-size:11px;color:var(--muted);line-height:1.7}.detail p{margin-top:8px}.motif-status{margin-top:12px;font-size:11px;line-height:1.6;color:#567765}.motif-status:empty{display:none}.error{color:#a53848!important}.motif-status.error{padding:9px;background:#fff0ea;border-radius:9px}#retryArrange{font-size:12px;margin-top:8px}.workbench-bottom{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);background:var(--white)}#status{font-size:11px;color:var(--muted);max-width:680px}#saveNote{font-size:10px;color:#8b8792;margin-top:3px}#saveScene{min-width:156px;flex-shrink:0}.workbench-bottom.saved #saveScene{background:#426957}
#slotEditor{position:absolute;inset:78px 16px 45px;display:flex;flex-direction:column;z-index:2}.plan-title{text-align:center;line-height:1.6;pointer-events:none}.plan-title strong{display:block;font-size:14px}.plan-title span{font-size:11px;color:var(--muted)}#slotMap{width:100%;flex:1;min-height:170px;touch-action:none;overflow:visible;user-select:none;-webkit-user-select:none}#slotHint{font-size:11px;text-align:center;color:var(--muted);min-height:34px;margin-top:6px}.plan-actions{display:flex;justify-content:center;gap:8px}.plan-actions button{font-size:12px;min-width:110px}.slot-map-outline{fill:#efc3cf;stroke:#ab617a;stroke-width:.55}.slot-back-label{fill:var(--ink);font-size:3.1px}.slot-handle{cursor:grab;outline:none}.slot-handle:active{cursor:grabbing}.slot-card{fill:#fffcf5;stroke:#728ca8;stroke-width:.45;filter:drop-shadow(0 1px 1px #21426718)}.slot-handle[aria-selected=true] .slot-card,.slot-handle:focus .slot-card{stroke:#173f73;stroke-width:1;fill:#f4f7fb}.slot-ink{fill:#aa4966;pointer-events:none}.slot-handle text{font-size:3px;font-weight:700;fill:var(--ink);pointer-events:none}.slot-cut{fill:#173f73}.slot-ghost{fill:none;stroke:#ab617a;stroke-dasharray:2 1;stroke-width:.4}.slot-invalid .slot-card{stroke:#c83853;fill:#ffe7e9}.slot-handle circle{fill:#173f73}.slot-handle .slot-number{fill:#fffdf7;font-size:2.6px}.stage.arranging #viewer,.stage.arranging .gesture{visibility:hidden}.stage.arranging #resetView{visibility:hidden}
dialog{border:1px solid var(--line);background:var(--paper);border-radius:20px;color:var(--ink);width:min(700px,calc(100vw - 24px));max-height:85dvh;padding:24px}dialog::backdrop{background:#173f7360;backdrop-filter:blur(3px)}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dialoghead>button{flex-shrink:0}#closeLibrary{font-size:22px;width:44px;padding:0}.upload-button{width:100%;background:#f4e0e8;border:1px solid #e2bccd;margin-bottom:8px}.dialoghead h2{font:26px/1.4 ZaobaPF,cursive}#categories{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 12px}#categories button{font-size:12px;min-height:38px;padding:6px 10px}#categories button.active{background:var(--ink);color:var(--white)}#library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#library button{display:block;min-width:0;font-size:11px}#library svg{width:100%;height:76px;display:block}#editorDialog{width:min(1440px,98vw);max-height:97dvh;padding:12px}#editorDialog .dialoghead{margin:0 5px 10px}#frameEditor{border:0;width:100%;height:80dvh;border-radius:12px}
@media(max-width:900px){.editor-layout{grid-template-columns:minmax(0,1fr) 295px}aside{padding:0 16px}.workbench-toolbar{gap:8px;padding:12px}.workbench-toolbar label{font-size:11px}.workbench-toolbar select{width:145px}.intro-note{display:none}}
@media(max-width:760px){.brand-header{padding:10px 16px}.brand{font-size:27px;gap:9px}.brand img{width:42px;height:42px}.brand small{font-size:10px}.back-link{font-size:11px;padding:10px 0}main{padding:0 10px 16px}.intro{padding:14px 6px}.intro p{font-size:10px}h1{font-size:30px}.workbench{border-radius:16px;overflow:visible}.workbench-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px;border-radius:16px 16px 0 0}.workbench-toolbar label{display:block;font-size:10px}.workbench-toolbar select{width:100%;margin-top:4px;font-size:12px}.workbench-toolbar #editFrame{grid-column:1/-1;margin:0;padding:4px;min-height:34px;font-size:12px;justify-self:end}.editor-layout{display:flex;flex-direction:column}.stage{min-height:430px;height:57dvh;max-height:620px;border-right:0;border-bottom:1px solid var(--line)}.canvas-toolbar{top:10px;left:10px;right:10px}.viewbar button{min-height:38px;padding:7px 15px;font-size:12px}.canvas-toolbar>.quiet{padding:7px;font-size:11px}.gesture{font-size:10px}.metrics{font-size:9px}#viewer{inset:60px 0 38px}#slotEditor{inset:70px 10px 36px}.plan-title strong{font-size:12px}.plan-title span{font-size:10px}#slotHint{min-height:30px;font-size:10px;margin:0}.plan-actions button{font-size:11px;min-height:42px}.panel{padding:18px 0}.sectionhead{margin-bottom:12px}.slots{grid-template-columns:repeat(auto-fit,minmax(85px,1fr))}.slot svg{height:65px}.selected-tools>div{justify-content:flex-start}.selected-tools output{flex:0 0 84px}.selected-tools button{min-width:44px}.workbench-bottom{position:sticky;bottom:0;z-index:5;padding:10px 12px max(10px,env(safe-area-inset-bottom));border-radius:0 0 16px 16px;box-shadow:0 -3px 12px #173f7308}#status{font-size:10px;max-width:190px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}#saveNote{font-size:9px}#saveScene{min-width:125px;padding:9px;font-size:12px}dialog{padding:18px}#library{grid-template-columns:repeat(3,minmax(0,1fr))}.dialoghead h2{font-size:23px}#editorDialog .dialoghead h2{font-size:14px}#useFrame{font-size:12px}}

@media(max-width:760px){.workbench-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-toolbar label{white-space:normal;min-width:0}.workbench-toolbar select{display:block}}

.footer-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}#saveScene{min-width:90px;font-size:12px}#downloadScene{min-width:200px}.footer-actions button{white-space:nowrap}@media(max-width:760px){.workbench-bottom{display:block}.workbench-bottom>div:first-child{margin-bottom:7px}#status{max-width:none;-webkit-line-clamp:2}#saveNote{display:none}.footer-actions{display:grid;grid-template-columns:80px 1fr;gap:8px}#saveScene{min-width:0;padding:8px 4px;font-size:11px}#downloadScene{min-width:0;font-size:12px}}

/* Explicit preview: choices stay responsive until the user asks to build. */
.preview-notice{position:absolute;inset:70px 12px 48px;display:grid;place-items:center;z-index:2;background:#f8f1e7db;border-radius:16px;text-align:center}.preview-card{max-width:330px;padding:26px 22px}.preview-card strong{font:26px/1.5 ZaobaPF,cursive;display:block}.preview-card p{font-size:12px;color:var(--muted);margin-top:10px}.preview-card button{margin-top:16px;min-width:104px}.preview-spinner{display:block;width:34px;height:34px;margin:0 auto 18px;border:3px solid #edbfd1;border-top-color:var(--ink);border-radius:50%}.is-loading .preview-spinner{animation:preview-spin 1s linear infinite}.preview-notice:not(.is-loading) .preview-spinner{border-color:#d195ac;border-radius:9px;transform:rotate(-8deg);width:44px;height:38px;box-shadow:4px 4px 0 #f2d6df}.preview-state{position:absolute;top:76px;left:50%;transform:translateX(-50%);z-index:3;font-size:11px;color:#874355;background:#fff8f0ed;border:1px solid #e5c4cf;padding:6px 12px;border-radius:20px;white-space:nowrap;pointer-events:none}.stage.arranging .preview-notice,.stage.arranging .preview-state{display:none}#previewScene{min-width:130px;font-weight:700}.footer-actions{flex-wrap:wrap}#downloadScene{min-width:180px}#previewElapsed{font-variant-numeric:tabular-nums}@keyframes preview-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.is-loading .preview-spinner{animation:none}}@media(max-width:760px){.footer-actions{display:flex;flex-wrap:nowrap;gap:6px}.footer-actions #saveScene{flex:0 0 70px}.footer-actions #previewScene{flex:1;min-width:90px;font-size:12px;padding:8px}.footer-actions #downloadScene{flex:1.5;min-width:0;font-size:11px;padding:8px 5px}.preview-card strong{font-size:23px}.preview-state{font-size:10px;top:64px}.preview-notice{inset:65px 8px 32px}}

.draft-preview{position:absolute;inset:76px 22px 28px;margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;z-index:1;pointer-events:none}.draft-preview figcaption{font-size:12px;color:var(--muted);border:1px solid #dec3ca;border-radius:20px;padding:5px 13px;background:#fffaf1}.draft-preview svg{display:block;width:100%;flex:1;min-height:0;max-width:440px}.draft-preview p{font-size:11px;color:var(--muted);text-align:center}.stage.showing-reference #viewer{visibility:hidden}.stage.arranging .draft-preview{display:none}.draft-preview.compact{position:static;inset:auto;padding:16px 12px 10px;gap:8px;border:1px solid var(--line);border-radius:14px;background:#f8f1e7;pointer-events:auto}.draft-preview.compact svg{height:170px;flex:none}.draft-preview.compact p{display:none}.draft-preview.compact figcaption{border:0;padding:0;background:none}#referenceDock{padding-top:18px}.showing-reference .preview-notice.is-loading{background:#f8f1e7cc;z-index:2}@media(max-width:760px){.draft-preview{inset:66px 18px 20px;gap:10px}.draft-preview figcaption{font-size:11px}.draft-preview p{font-size:10px}.draft-preview.compact{flex-direction:row;padding:10px 14px;justify-content:space-between}.draft-preview.compact svg{width:110px;height:120px}.draft-preview.compact figcaption{font-size:12px}}

.base-shape-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.base-shape-card{position:relative;display:flex;flex-direction:column;padding:0 0 10px;gap:3px;overflow:hidden;border-radius:13px;min-width:0;background:#fbf6ea}.base-shape-card img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}.base-shape-card>span:not(.choice-check){font-size:12px}.base-shape-card .choice-check{display:none;position:absolute;top:7px;right:7px;border-radius:50%;width:21px;height:21px;background:var(--ink);color:#fff;align-items:center;justify-content:center;font-size:12px}.base-shape-card[aria-pressed=true]{border:2px solid var(--ink);box-shadow:0 0 0 2px #173f7310}.base-shape-card[aria-pressed=true] .choice-check{display:flex}.shape-note{margin:10px 0 14px}.thickness-choice{display:flex;align-items:center;justify-content:space-between;gap:12px}.thickness-choice select{width:160px}.slot-count-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:12px}.slot-count-options button{min-width:0;min-height:40px;padding:6px 2px;font-size:12px}.slot-count-options button[aria-pressed=true]{background:var(--ink);color:var(--white);border-color:var(--ink)}.no-figures-message{border:1px solid #e7c6d2;border-radius:12px;background:#faedf2;padding:14px}.no-figures-message strong,.no-figures-message span{display:block}.no-figures-message strong{font-size:13px;margin-bottom:5px}.no-figures-message span{font-size:11px;color:var(--muted)}.slots:empty{display:none}@media(max-width:760px){.base-shape-card img{aspect-ratio:1.7}.base-shape-options{gap:12px}.base-shape-card>span:not(.choice-check){font-size:13px}.slot-count-options button{min-height:44px;font-size:13px}}

/* Keep the full base silhouette visible in every option. */
.base-shape-card img{object-fit:contain;background:#fbf6ea}

.editor-dialog-actions{display:flex;align-items:center;gap:8px}.editor-dialog-actions button{min-height:44px}@media(max-width:760px){#saveNote{display:block}.editor-dialog-actions{gap:4px}.editor-dialog-actions button{font-size:12px;padding:7px 10px}}

#figureMinHint{margin-top:8px;color:#865267}

.studio-boot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:14px 18px;border:1px solid #e7c6d2;border-radius:14px;background:#faedf2;color:#173f73}.studio-boot span{font-size:12px;color:var(--muted);flex:1;min-width:180px}.studio-boot button{font-size:12px;min-height:40px}.workbench[aria-busy="true"]{opacity:.65;pointer-events:none}

.appearance input[type=number]{min-height:44px;max-width:130px;border:1px solid #d8d8d0;border-radius:10px;background:#fffdf8;color:#173f73;padding:8px 12px;font:inherit}
