@charset "UTF-8";
:root{--bg:#f4f4f0;--white:#fff;--ink:#252a29;--muted:#92958f;--line:#e5e6df;--accent:#e36442;--accent-light:#fff1e9;--paper:#ead8b3;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:var(--sans);color:var(--ink);background:var(--bg);font-size:13px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,[data-face]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{border:0;background:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.app-header{height:76px;display:flex;align-items:center;gap:24px;padding:0 30px;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:23px;font-weight:750;letter-spacing:-1px}.brand-mark{display:grid;place-items:center;width:36px;height:40px;color:var(--accent)}.brand-mark svg{width:34px;height:34px;stroke-width:1.5}.brand-divider{margin:0 15px;color:#c5c6bf;font-size:23px;font-weight:300}.brand-cn{font-size:15px;letter-spacing:1px;font-weight:600}.header-note{margin-left:30px;font-size:11px;color:#858982;display:flex;align-items:center;gap:7px}.status-dot{width:5px;height:5px;border-radius:50%;background:#7f9988;display:inline-block;flex-shrink:0}.header-actions{margin-left:auto;display:flex;gap:10px}.button{height:37px;padding:0 16px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:550;transition:background .15s,transform .15s}.button svg{width:16px;height:16px}.primary{background:var(--accent);color:#fff;box-shadow:0 3px 7px #bd52351b}.primary:hover{background:#d55837}.secondary{border:1px solid var(--line);background:white}.secondary:hover{background:#f5f5f1}.button:active{transform:translateY(1px)}.app-layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;max-width:1920px;margin:auto;min-height:calc(100vh - 76px)}.workspace{padding:27px 27px 0;min-width:0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.eyebrow{font-size:9px;font-weight:600;color:#91958b;letter-spacing:1.7px;line-height:16px}.eyebrow>span{color:var(--accent);border-left:1px solid #cccfc7;margin-left:9px;padding-left:11px}h1{font-size:27px;font-weight:650;letter-spacing:1px;margin:7px 0}.heading-period{color:var(--accent);padding-left:4px}.workspace-heading p{font-size:11px;margin:0;color:#92968c;letter-spacing:.3px}.project-badge{display:flex;align-items:center;gap:10px;border:1px solid #e2e3da;background:#fbfbf7;border-radius:7px;padding:12px 13px;font-size:11px}.project-badge>svg{color:#838c7c;width:23px;height:23px}.project-badge small{display:block;font-size:9px;color:#9a9e93;letter-spacing:.5px;margin-top:4px}.tiny-pill{font-size:9px;padding:4px 6px;background:#e9ece3;color:#6e7c63;border-radius:4px;margin-left:5px}.preview-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:16px}.preview-card{background:var(--white);border:1px solid #dedfd7;border-radius:9px;overflow:hidden;box-shadow:0 2px 4px #2d322708;min-width:0}.card-heading{height:51px;border-bottom:1px solid #eff0e9;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#fff}.card-heading h2{font-size:12px;font-weight:600;display:flex;align-items:center;gap:8px;margin:0}.panel-index{font-size:9px;color:#b0b3a9;font-weight:450;font-family:monospace;letter-spacing:.3px}.live-label{font-size:8px;color:#7e8c7e;letter-spacing:1px;display:flex;align-items:center;gap:5px}.live-label i{width:4px;height:4px;background:#8c9f86;border-radius:50%}.three-stage{height:350px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 52% 32%,#fafbf7,#f0f1e9);isolation:isolate}.stage-grid{position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#bec5b52e .7px,transparent .7px);background-size:16px 16px;mask-image:linear-gradient(transparent,#000)}.ground-shadow{position:absolute;width:54%;height:23px;background:#5f5636;filter:blur(17px);opacity:.14;bottom:13%;left:24%;border-radius:50%;z-index:-1}#boxCanvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#boxCanvas:active{cursor:grabbing}.stage-tag{position:absolute;top:15px;left:15px;display:flex;gap:6px;align-items:center;font-size:9px;color:#8b9284;pointer-events:none}.stage-tag .status-dot{background:#d5ae7d}.view-switch{position:absolute;top:11px;right:12px;display:flex;gap:0;border:1px solid #e0e2d7;background:#f9faf4d9;border-radius:5px;padding:3px}.view-switch button{font-size:9px;padding:4px 7px;border-radius:3px;color:#91968a}.view-switch button:hover{color:#343b2e}.view-switch .active{color:#4d5746;background:#fff;box-shadow:0 1px 3px #35402013}.stage-tools{position:absolute;right:12px;bottom:16px;display:flex;flex-direction:column;border:1px solid #dee1d6;border-radius:5px;background:#fcfdf8e6;padding:3px}.stage-tools>span{height:1px;background:#e3e5db;margin:3px 4px}.icon-button{width:29px;height:29px;padding:6px;border-radius:4px;display:grid;place-items:center;color:#868c80}.icon-button svg{width:16px;height:16px}.icon-button:hover{background:#eeefe7;color:#333c2d}.stage-hint{position:absolute;bottom:17px;left:15px;font-size:9px;color:#9ba08f;display:flex;gap:5px;align-items:center;pointer-events:none}.stage-hint svg{width:12px;height:12px}.stage-hint b{font-weight:400;color:#b6baae;padding:0 2px}.card-footer{height:36px;display:flex;align-items:center;gap:11px;padding:0 14px;color:#9a9d93;font-size:8px;border-top:1px solid #eceee4}.card-footer>span{display:flex;align-items:center;gap:5px}.card-footer>span:last-child{margin-left:auto}.legend-dot{display:inline-block;width:4px;height:4px;border-radius:50%}.orange{background:var(--accent)}.small-text-button{font-size:9px;color:#8c9286;display:flex;align-items:center;gap:5px;padding:5px 0 5px 6px}.small-text-button:hover{color:var(--accent)}.small-text-button svg{width:11px;height:11px}.dieline-stage{height:350px;position:relative;padding:12px;background-color:#fdfdfb;background-image:linear-gradient(#e8ebe140 1px,transparent 1px),linear-gradient(90deg,#e8ebe140 1px,transparent 1px);background-size:20px 20px;overflow:hidden}#dielineMount{width:100%;height:100%;display:flex;align-items:center;justify-content:center;transition:transform .2s;touch-action:pan-y}#dielineMount>svg{display:block;width:100%;height:100%;overflow:visible;stroke:none}#dielineMount [data-face]{cursor:pointer}#dielineMount [data-face]:hover{filter:brightness(1.025)}.dieline-scale{position:absolute;bottom:10px;right:13px;background:#fdfdfbdc;font-size:8px;color:#a2a797;font-family:monospace;padding:2px 4px}.dieline-footer{gap:13px}.dieline-footer>span:last-of-type{margin-left:0}.legend-line{display:inline-block;width:15px;height:1px;background:#777e6f}.legend-line.dashed{background:repeating-linear-gradient(90deg,#d97b5d 0 4px,transparent 4px 6px)}.toggle-label{margin-left:auto;font-size:9px;display:flex;align-items:center;gap:4px;cursor:pointer}.toggle-label input{accent-color:var(--accent);width:11px;height:11px;margin:0}.fold-control{margin-top:14px;border:1px solid #e1e3d9;border-radius:8px;background:#fdfefa;display:flex;align-items:center;padding:15px 18px;gap:18px}.play-button{display:grid;place-items:center;color:var(--accent);background:var(--accent-light);border:1px solid #f2d3c4;width:34px;height:34px;border-radius:50%;flex-shrink:0}.play-button svg{width:14px;height:14px;fill:var(--accent);stroke-width:0;margin-left:-2px}.play-button.playing svg{animation:pulse 1s infinite}.fold-main{flex:1;min-width:100px}.fold-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.fold-title{font-size:10px;color:#858c7c}#foldValue{font-family:monospace;font-size:15px;font-weight:600;color:#6e7763}#foldValue span{font-size:9px;margin-left:2px;color:#9ca38f}input[type=range]{width:100%;height:16px;display:block;cursor:pointer;accent-color:var(--accent);margin:0;appearance:none;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:5px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--range,100%),#e6e8de var(--range,100%),#e6e8de 100%)}input[type=range]::-webkit-slider-thumb{appearance:none;background:#fff;border:3px solid var(--accent);height:11px;width:11px;border-radius:50%;margin-top:-4px;box-shadow:0 1px 3px #704c341a}input[type=range]::-moz-range-track{height:3px;background:#e6e8de}input[type=range]::-moz-range-progress{height:3px;background:var(--accent)}input[type=range]::-moz-range-thumb{background:#fff;border:3px solid var(--accent);height:6px;width:6px;border-radius:50%}.range-markers{display:flex;justify-content:space-between;font-size:8px;color:#a4aa99;margin-top:3px}.fold-presets{display:flex;gap:3px;margin-left:7px;border:1px solid #e5e7dd;border-radius:5px;background:#f3f5ed;padding:3px}.fold-presets button{font-size:10px;color:#969d8b;padding:8px 13px;border-radius:3px}.fold-presets button:hover{color:#5f6a52}.fold-presets .active{background:#fff;color:var(--accent);box-shadow:0 1px 4px #39412d0a;font-weight:600}.faces-section{margin-top:23px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-title h2{font-size:12px;font-weight:550;margin:0}.section-title h2>span{font-size:8px;letter-spacing:1px;color:#a6ab9c;font-weight:450;padding-left:9px}.section-caption{font-size:9px;color:#a0a793}.face-library{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.face-card{background:#fafbf6;border:1px solid #e1e4d8;border-radius:7px;padding:8px 8px 7px;text-align:left;min-width:0;position:relative;transition:border-color .15s,background .15s}.face-card:hover{border-color:#cbbfa5;background:#fff}.face-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px #e3644214;background:#fff9f4}.face-thumb{height:71px;display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(#f0f1e9 0% 25%,#f6f6ef 0% 50%) 50%/10px 10px;border-radius:3px;overflow:hidden}.face-thumb img{max-height:100%;max-width:100%;width:100%;height:100%;object-fit:contain}.face-thumb svg{color:#c8ccbe;width:23px;height:23px}.face-name-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.face-name-row strong{font-size:10px;font-weight:550}.face-name-row span{font-size:8px;color:#a3aa97;font-family:monospace}.face-card.selected .face-name-row strong{color:var(--accent)}.face-card .art-status{width:5px;height:5px;background:#b7c1a7;border-radius:50%;position:absolute;top:13px;right:13px;border:1px solid #fff}.face-card.selected:after{content:'✓';position:absolute;bottom:7px;right:8px;font-size:10px;color:var(--accent);background:#fff9f4;padding-left:6px}.workspace-footer{height:47px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#a6ac9a;font-size:8px}.workspace-footer span{display:flex;align-items:center;gap:5px}.workspace-footer svg{width:12px;height:12px}.workspace-footer span:last-child{letter-spacing:1px;font-size:7px}.inspector{border-left:1px solid var(--line);background:#fff;min-width:0;display:flex;flex-direction:column}.inspector-section{padding:24px 21px;border-bottom:1px solid #eeeFE8}.inspector-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.inspector-title h2{font-size:12px;font-weight:600;margin:0;display:flex;align-items:center;gap:7px}.inspector-title h2 svg{width:15px;height:15px;color:#949e87}.unit-label{font-family:monospace;font-size:9px;color:#929b83;border:1px solid #e7ebde;border-radius:3px;padding:3px 5px}.dimension-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.dimension-fields label{font-size:9px;color:#919a84}.number-wrap{position:relative;margin-top:7px}.number-wrap input{display:block;background:#f9faf6;border:1px solid #e4e7dc;width:100%;height:33px;border-radius:4px;font-family:monospace;font-size:12px;color:#525e44;padding:0 19px 0 8px;appearance:textfield;-moz-appearance:textfield}.number-wrap input::-webkit-inner-spin-button{appearance:none}.number-wrap span{position:absolute;right:6px;top:12px;font-size:7px;color:#acb29f;pointer-events:none}.dimension-summary{display:flex;align-items:center;gap:7px;padding:12px 0 0;font-size:10px;color:#919c80;font-family:monospace}.dimension-summary svg{width:14px;height:14px;color:#a3ad93}.field-hint{font-size:9px;color:#a4ac97;line-height:1.7;margin:7px 0 0}.selected-pill{background:#fef0e7;color:var(--accent);font-size:9px;padding:4px 7px;border-radius:4px}.selected-face-heading{display:flex;align-items:center;gap:11px;margin-top:-2px;margin-bottom:17px}.selected-face-heading>span{font-size:30px;letter-spacing:-1px;color:#dfe3d6;font-weight:350}.selected-face-heading h3{font-size:15px;font-weight:550;margin:0 0 4px}.selected-face-heading p{font-size:7px;margin:0;letter-spacing:1.3px;color:#b2b8a6}.selected-face-heading>svg{width:25px;height:25px;color:#d9decf;margin-left:auto}.upload-area{position:relative;border:1px dashed #dce1d1;border-radius:6px;background:#fafbf7;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:118px;padding:15px 7px;gap:8px;transition:background .15s,border-color .15s;cursor:pointer}.upload-area:hover,.upload-area.dragover{border-color:var(--accent);background:#fff6ee}.upload-area input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.upload-area:focus-within{outline:2px solid var(--accent);outline-offset:2px}.upload-area>svg{width:22px;height:22px;color:#aab59a;margin-bottom:2px}.upload-area strong{font-size:10px;color:#818e6f;font-weight:450}.upload-area>span{font-size:7px;color:#a9b298}.file-info{display:flex;align-items:center;gap:8px;margin:12px 0 20px;min-height:31px}.file-icon{display:grid;place-items:center;width:29px;height:29px;background:#f4f6ed;border-radius:4px;color:#a4af94}.file-icon svg{width:14px;height:14px}.file-info>span:nth-child(2){min-width:0;flex:1}.file-info b{display:block;font-size:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#89967a;font-weight:450;max-width:160px}.file-info small{display:block;font-size:7px;color:#b3bba6;margin-top:4px}.file-info>.icon-button{width:22px;height:22px;padding:4px;color:#b1baa3}.setting-label{font-size:10px;color:#77866a;margin-bottom:9px}.fit-options{display:flex;gap:7px}.fit-options button{font-size:9px;display:flex;align-items:center;justify-content:center;gap:5px;padding:10px 4px;border:1px solid #e4e9da;flex:1;border-radius:5px;color:#9ca68f}.fit-options svg{width:13px;height:13px;stroke-width:1.4}.fit-options .active{border-color:#edb89e;background:#fff6ef;color:var(--accent)}.opacity-heading{display:flex;justify-content:space-between;margin-top:22px;margin-bottom:8px;font-size:10px;color:#7e8d70}.opacity-heading output{font-family:monospace;font-size:10px;color:#a4af96}.opacity-markers{display:flex;justify-content:space-between;margin-top:3px;font-size:8px;color:#b2baa6}.structure-note{margin:21px;padding:12px 10px;border:1px solid #e8ebdf;background:#f8faf3;border-radius:6px;display:flex;align-items:flex-start;gap:8px}.structure-note>svg{width:13px;height:13px;color:#a4b090;margin-top:1px}.structure-note strong{font-size:9px;font-weight:500;color:#8a987a}.structure-note p{font-size:9px;line-height:1.8;color:#a5af98;margin:5px 0 0}.inspector-bottom{margin-top:auto;padding:18px 21px;display:flex;align-items:center;gap:6px;font-size:8px;letter-spacing:.3px;color:#a7b09a}.render-error{position:absolute;inset:60px 15px auto;background:#fff8ef;border:1px solid #ecd1b4;border-radius:5px;padding:15px;color:#a57844;font-size:12px;line-height:1.8}.render-error[hidden]{display:none}dialog{border:1px solid #d8dccf;border-radius:12px;padding:0;width:min(900px,92vw);max-height:90vh;box-shadow:0 20px 100px #26301d40;color:var(--ink)}dialog::backdrop{background:#20281b66;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;padding:22px 25px 18px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:20px;margin:5px 0 0;font-weight:550}.dialog-header .icon-button{width:32px;height:32px;background:#f3f5ee}.reference-content{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;padding:24px;overflow:auto;max-height:calc(90vh - 96px)}.reference-image{background:#fafbf5;border:1px solid #e5e8dc;border-radius:6px;overflow:auto;max-height:65vh}.reference-image img{display:block;width:100%;height:auto}.reference-description h3{font-size:13px;font-weight:550;margin:0 0 8px}.reference-description p{font-size:11px;line-height:1.9;color:#929e83;margin:0 0 22px}.reference-caveat{font-size:10px;line-height:1.9;padding:12px;background:#faf5e9;border-radius:4px;color:#a59167}.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,15px);padding:12px 21px;background:#343c2e;color:#f7faef;border-radius:7px;font-size:12px;box-shadow:0 5px 25px #14200f25;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:10}.toast.visible{opacity:1;transform:translate(-50%,0)}@keyframes pulse{50%{opacity:.3}}
@media(min-width:1500px){.workspace{padding:34px 38px 0}.app-layout{grid-template-columns:minmax(0,1fr) 316px}.inspector-section{padding:28px 26px}.three-stage,.dieline-stage{height:410px}.face-thumb{height:91px}.workspace-heading{margin-bottom:30px}.faces-section{margin-top:27px}.face-card{padding:10px}.fold-control{padding:17px 22px}}
@media(min-width:1800px){.three-stage,.dieline-stage{height:460px}.workspace{padding-left:45px;padding-right:45px}}
@media(max-width:1250px){.app-layout{grid-template-columns:minmax(0,1fr) 260px}.workspace{padding:23px 19px 0}.preview-grid{gap:12px;grid-template-columns:1.05fr 1fr}.three-stage,.dieline-stage{height:310px}.inspector-section{padding:22px 17px}.structure-note{margin:18px 17px}.header-note{margin-left:0}.workspace-heading{margin-bottom:22px}.project-badge{padding:9px}.card-heading{padding:0 12px}.card-heading h2{font-size:11px}.card-footer{padding:0 9px;font-size:7px;gap:6px}.card-footer>span:last-child{max-width:62%;white-space:nowrap}.fold-control{padding:13px;gap:12px}.fold-presets{margin-left:2px}.fold-presets button{padding:8px 9px}.face-thumb{height:62px}.face-library{gap:7px}.face-card{padding:6px}.stage-hint{font-size:8px}.view-switch{top:35px;left:11px;right:auto}.face-name-row strong{font-size:9px}.face-name-row span{font-size:7px}.workspace-footer span:nth-child(2){display:none}}
@media(max-width:1000px){.app-header{padding:0 20px;height:67px}.header-note{display:none}.app-layout{grid-template-columns:minmax(0,1fr) 245px;min-height:calc(100vh - 67px)}.workspace{padding:22px 15px 0}h1{font-size:23px}.workspace-heading{align-items:flex-start}.project-badge{display:none}.preview-grid{grid-template-columns:1fr}.three-stage{height:330px}.dieline-stage{height:280px}.dieline-card .card-heading{height:42px}.fold-control{flex-wrap:wrap;gap:12px}.fold-main{flex-basis:70%}.fold-presets{margin-left:auto}.face-library{grid-template-columns:repeat(3,minmax(0,1fr))}.face-thumb{height:72px}.section-caption{display:none}.face-card .art-status{top:10px;right:10px}.workspace-footer span:last-child{margin-left:auto}.inspector-section{padding:21px 15px}}
@media(max-width:680px){.app-header{padding:0 14px;height:64px;gap:8px}.brand{gap:6px;font-size:21px}.brand-mark svg{width:29px}.brand-cn{font-size:12px}.brand-divider{margin:0 8px;font-size:18px}.header-actions{gap:6px}.header-actions .button{padding:0 9px;font-size:10px;height:33px;gap:5px}.header-actions .button svg{width:13px}.header-actions .secondary{width:31px;padding:7px;font-size:0;gap:0}.app-layout{display:flex;flex-direction:column}.workspace{padding:22px 13px 0}.workspace-heading{margin-bottom:20px}.preview-grid{grid-template-columns:1fr}.three-stage{height:345px}.dieline-stage{height:290px}.view-switch{top:11px;right:12px;left:auto}.card-heading h2{font-size:12px}.card-footer{font-size:8px}.fold-control{flex-wrap:nowrap;gap:10px;padding:13px}.fold-main{flex-basis:auto}.fold-presets{gap:0;margin-left:0}.fold-presets button{padding:8px}.face-thumb{height:95px}.faces-section{margin-top:22px}.section-title h2>span{font-size:7px}.face-library{gap:9px}.workspace-footer{font-size:7px}.inspector{border-top:1px solid var(--line);border-left:0;display:grid;grid-template-columns:1fr 1fr;margin-top:0}.inspector-section{padding:20px}.artwork-section{grid-column:1/-1;grid-row:2}.structure-note{margin:20px 15px 20px 0;height:max-content}.dimensions-section{border:0;padding-right:15px}.dimension-fields{grid-template-columns:1fr}.dimension-fields label{display:flex;gap:8px;align-items:center}.number-wrap{margin:0;flex:1}.number-wrap input{height:29px}.number-wrap span{top:10px}.dimensions-section .inspector-title{margin-bottom:12px}.dimension-summary{font-size:9px}.artwork-section .selected-face-heading{display:none}.upload-area{min-height:110px}.file-info b{max-width:240px}.inspector-bottom{grid-column:1/-1;justify-content:center}.reference-content{grid-template-columns:1fr}.reference-image{max-height:45vh}.reference-content{padding:18px}.reference-description p{margin-bottom:15px}.structure-note strong,.structure-note p{font-size:8px}.structure-note{padding:10px}.structure-note>svg{width:11px}.field-hint{font-size:8px}.dimension-summary svg{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Whole-sheet artwork and editable face mapping. */
.dimensions-section{padding-top:20px;padding-bottom:18px}.dimensions-section .inspector-title{margin-bottom:16px}.artwork-section{padding-top:20px;padding-bottom:22px}.artwork-section .inspector-title{margin-bottom:16px}.artwork-section .upload-area{min-height:105px;padding:12px 6px;gap:7px}.artwork-section .upload-area>span{font-size:7px;letter-spacing:-.15px}.artwork-section .file-info{margin:11px 0}.file-info[hidden],.sheet-thumbnail[hidden]{display:none}.sheet-thumbnail{display:block;width:100%;padding:7px 8px 0;border:1px solid #e4e7dc;border-radius:6px;background:#fafbf7;overflow:hidden;text-align:left;transition:border-color .15s,background .15s}.sheet-thumbnail:hover{border-color:#dbb39d;background:#fff9f2}.sheet-thumbnail img{display:block;width:100%;height:85px;object-fit:contain;max-height:95px;background:#fff;border-radius:3px}.sheet-thumbnail>span{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#909b81;padding:8px 1px}.sheet-thumbnail svg{width:12px;height:12px;color:#9aa68d}.sheet-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.sheet-actions .button{height:31px;padding:0 9px;font-size:9px;gap:5px}.sheet-actions .button svg{width:12px;height:12px}.sheet-actions .small-text-button{font-size:9px;white-space:nowrap;padding:5px 0}.sheet-order{margin:13px 0 17px;padding:10px 8px;border-top:1px solid #eef0e6;border-bottom:1px solid #eef0e6;color:#82916f;font-size:9px;line-height:1.4;text-align:center;white-space:nowrap}.sheet-order b{font-weight:400;color:#b6bda9;margin:0 3px}.sheet-order small{display:block;font-size:8px;color:#a6af98;margin-top:6px}.artwork-section .opacity-heading{margin-top:17px}.artwork-section .fit-options button{padding-top:9px;padding-bottom:9px}.artwork-section .setting-label{margin-bottom:8px}.structure-note{margin-top:18px;margin-bottom:18px}.dialog-subtitle{font-size:11px;line-height:1.7;color:#929b85;margin:9px 0 0}.sheet-dialog-content{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:22px;align-items:start;padding:22px 24px}.sheet-map-panel{min-width:0;background:#f8faf4;border:1px solid #e3e7d9;border-radius:7px;overflow:hidden}.sheet-map-panel #sheetMapCanvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair;background:#fff}.sheet-map-hint{font-size:9px;line-height:1.8;color:#929e82;margin:0;padding:10px 12px;border-top:1px solid #e6eadf;display:flex;gap:7px;align-items:baseline}.sheet-map-hint .legend-line{flex-shrink:0;background:#dc684b;position:relative;top:-2px}.calibration-settings{min-width:0}.recognition-status{padding:11px 12px;background:#f8f9ef;border:1px solid #e4e8d7;border-radius:5px;font-size:10px;line-height:1.8;color:#899874;margin-bottom:16px}#sheetDialog{width:min(1080px,94vw);max-height:92vh;overflow:auto}#sheetDialog .dialog-header{padding:20px 24px 17px;gap:14px}#sheetDialog .dialog-header .icon-button{flex-shrink:0}#calibrationFields{display:grid;gap:15px}#calibrationFields fieldset{border:0;margin:0;padding:0;min-width:0}#calibrationFields legend{font-size:11px;color:#79876b;font-weight:550;padding:0 0 10px;width:100%;display:flex;align-items:center;justify-content:space-between}#calibrationFields legend small{font-family:monospace;font-weight:400;font-size:9px;color:#a7b196}#calibrationFields label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#949e87;margin-bottom:7px}#calibrationFields input{width:78px;min-width:0;height:29px;border:1px solid #e0e5d7;background:#fafbf7;border-radius:4px;color:#637453;font-family:monospace;font-size:11px;padding:4px 8px;text-align:right}#calibrationFields input[aria-invalid=true]{border-color:#d9785d;background:#fff4ed}.calibration-help{font-size:9px;line-height:1.9;color:#a2ad93;margin:15px 0 0;border-top:1px solid #e9ecdf;padding-top:11px}.sheet-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:16px 24px;background:#fdfefa;position:sticky;bottom:0;z-index:1}.sheet-dialog-footer>div{display:flex;gap:8px}.sheet-dialog-footer .button{font-size:11px;height:35px;padding:0 13px}.sheet-dialog-footer .button svg{width:14px;height:14px}
@media(min-width:1500px){.dimensions-section{padding-top:24px;padding-bottom:22px}.artwork-section{padding-top:24px;padding-bottom:24px}.sheet-thumbnail img{height:95px}}
@media(max-width:1000px){.sheet-dialog-content{grid-template-columns:minmax(0,1fr) 220px;gap:17px;padding:18px}.sheet-dialog-footer{padding:14px 18px}.sheet-actions{gap:4px}.sheet-actions .button{padding:0 7px}.sheet-order{font-size:8px}.sheet-order b{margin:0 2px}}
@media(max-width:680px){.artwork-section{padding:20px}.artwork-section .upload-area{min-height:105px}.artwork-section .upload-area>span{font-size:8px}.sheet-thumbnail img{height:95px}.sheet-actions .button{padding:0 11px;font-size:10px}.sheet-actions .small-text-button{font-size:10px}.sheet-order{font-size:10px;margin-bottom:19px}.sheet-order small{font-size:9px}.sheet-dialog-content{display:flex;flex-direction:column;gap:18px;padding:15px}.sheet-map-panel,.calibration-settings{width:100%}.sheet-map-hint{font-size:8px}#sheetDialog .dialog-header{padding:16px 15px 15px}#sheetDialog .dialog-header h2{font-size:18px}.dialog-subtitle{font-size:10px;max-width:270px}#calibrationFields{grid-template-columns:1fr 1fr;gap:15px}#calibrationFields legend{font-size:10px}#calibrationFields label{font-size:9px;gap:5px}#calibrationFields input{width:60px;padding:4px 6px;font-size:10px}.recognition-status{margin-bottom:14px}.sheet-dialog-footer{padding:12px;gap:7px}.sheet-dialog-footer .button{font-size:10px;height:34px;padding:0 9px;gap:4px}.sheet-dialog-footer .button svg{width:12px;height:12px}.sheet-dialog-footer>div{gap:6px}}
@media(max-width:380px){#calibrationFields{grid-template-columns:1fr}#calibrationFields input{width:90px}.sheet-dialog-footer .button{font-size:9px;padding:0 7px}.sheet-dialog-footer #reDetectSheet svg{display:none}}

/* Explicit face regions and a fold-connection graph. */
select{font:inherit;color:inherit}select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.sample-actions{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:10px}.sample-actions>span{font-size:8px;color:#a2ab96}.sample-actions .small-text-button{font-size:9px;padding:5px 0;white-space:nowrap}.sheet-actions .button{width:100%;font-size:10px}.sheet-order{white-space:normal;line-height:1.8}.sheet-dialog-content{grid-template-columns:minmax(0,1fr) 285px;align-items:start}.sheet-map-panel{position:sticky;top:15px}.recognition-status{margin-bottom:12px}.recognition-status[data-state=warning]{background:#fff7e6;border-color:#ead6ac;color:#9d7b3a}.recognition-status[data-state=error]{background:#fff1e9;border-color:#efc3ac;color:#ac6647}.recognition-warnings{font-size:10px;color:#ab8a49;background:#fffaf0;border-left:2px solid #dfbd78;padding:8px 10px;line-height:1.7;margin:0 0 14px}.panel-control{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:10px;color:#849274}.panel-control>label{font-weight:550}.panel-control select,.net-root-label select,.hinge-row select{height:31px;border:1px solid #dfe5d5;border-radius:4px;background:#fafbf7;padding:3px 7px;min-width:0;color:#627354;font-size:10px;width:100%;text-overflow:ellipsis}.panel-control small{font-size:8px;line-height:1.6;color:#a2ad94}.panel-rotation{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0 15px;margin-bottom:12px;border-bottom:1px solid #e9ecdf;color:#879676;font-size:10px}.panel-rotation output{font-family:monospace;padding-left:7px;color:#657454}.panel-rotation .button{height:29px;padding:0 8px;font-size:9px;gap:5px}.panel-rotation .button svg{width:12px;height:12px}#calibrationFields{display:block}#calibrationFields fieldset{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}#calibrationFields legend{display:flex;grid-column:1/-1;margin-bottom:2px}#calibrationFields label{gap:5px}#calibrationFields input{width:81px;font-size:10px}#calibrationFields legend small{font-size:8px}.calibration-errors{font-size:10px;line-height:1.8;padding:9px 10px;border-radius:4px;background:#fff2eb;border:1px solid #f0cbb7;color:#ae694a;margin:12px 0}.hinge-details{border-top:1px solid #e6eade;border-bottom:1px solid #e6eade;margin-top:14px;color:#859474}.hinge-details summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 0;cursor:pointer;list-style:none;font-size:10px;font-weight:550}.hinge-details summary::-webkit-details-marker{display:none}.hinge-details summary:before{content:'›';color:#a2af92;font-size:17px;line-height:12px;transform:rotate(0deg);transition:transform .15s}.hinge-details[open] summary:before{transform:rotate(90deg)}.hinge-details summary>span{font-size:8px;font-weight:400;color:#a6b296;margin-left:auto}.hinge-details>p{font-size:9px;line-height:1.8;margin:0 0 13px;color:#9aa88c}.net-root-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:9px;color:#899979;margin-bottom:12px}.net-root-label select{width:145px}.hinge-list{display:grid;gap:12px;padding-bottom:13px}.hinge-row{border:1px solid #e1e7d7;background:#f9fbf5;border-radius:5px;margin:0;padding:8px;min-width:0}.hinge-row legend{padding:0 5px;font-size:9px;color:#9aa98b}.hinge-row>div{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-bottom:8px}.hinge-row label{display:flex;align-items:center;gap:6px;font-size:8px;color:#95a187;min-width:0}.hinge-row select{height:27px;font-size:9px;padding:2px 4px;flex:1}.hinge-row .hinge-angle{justify-content:space-between}.hinge-row .hinge-angle select{max-width:92px}.calibration-help{margin-top:14px}.recognition-warnings[hidden],.calibration-errors[hidden]{display:none}.calibration-settings{padding-bottom:2px}.sheet-map-panel #sheetMapCanvas{min-height:100px}.sheet-map-hint{line-height:1.9}.sheet-dialog-footer{z-index:2}#sheetDialog[aria-busy=true] .sheet-map-panel{opacity:.7}.face-card.uncertain{border-style:dashed;border-color:#d49e48}.face-card.uncertain .face-name-row strong:after{content:' ?';color:#bd8f42}
@media(max-width:1000px){.sheet-dialog-content{grid-template-columns:minmax(0,1fr) 265px;gap:15px;padding:18px}.sheet-map-hint{font-size:8px;padding:9px}.project-badge #modelType{max-width:130px}.sample-actions{flex-wrap:wrap;column-gap:10px}.sample-actions>span{width:100%}.sample-actions .small-text-button{font-size:8px}#calibrationFields input{width:75px}}
@media(max-width:680px){.sheet-dialog-content{display:flex;gap:16px;padding:15px}.sheet-map-panel{position:static}.calibration-settings{width:100%}.panel-control select{height:35px;font-size:12px}.panel-control{font-size:11px}.panel-control small{font-size:9px}.panel-rotation{font-size:11px}.panel-rotation .button{height:33px;font-size:10px}.sample-actions{flex-wrap:nowrap}.sample-actions>span{width:auto;font-size:10px}.sample-actions .small-text-button{font-size:10px}.hinge-details summary{font-size:11px}.hinge-details summary>span{font-size:9px}.hinge-list{grid-template-columns:1fr 1fr;gap:10px}.hinge-row>div{gap:5px}.hinge-row label{gap:3px}.hinge-row select{font-size:8px;padding:2px}#calibrationFields fieldset{gap:0 20px}#calibrationFields label{font-size:11px}#calibrationFields input{width:92px;height:33px;font-size:11px}.net-root-label select{width:60%;height:32px;font-size:11px}.recognition-status{font-size:11px}}
@media(max-width:400px){.hinge-list{grid-template-columns:1fr}.hinge-row select{font-size:10px}.hinge-row label{font-size:9px}#calibrationFields fieldset{gap:0 10px}#calibrationFields input{width:78px}.sample-actions .small-text-button{font-size:9px}}
@media(min-width:681px){.sheet-map-panel #sheetMapCanvas{width:auto;height:auto;max-width:100%;max-height:calc(92vh - 240px);margin:0 auto}.sheet-map-panel{background:#fff}.sheet-map-hint{font-size:8px}}
