@charset "UTF-8";
:root{--paper:#f7f4ee;--ink:#292b25;--muted:#655f57;--red:#a43f32;--border:#deddd3;--green:var(--red);--font:"Microsoft YaHei","PingFang SC",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.header{height:104px;margin:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:24px}.brand{display:flex;gap:12px;align-items:center;font-size:25px;font-weight:700;letter-spacing:3px}.brand small{display:block;font-size:14px;font-weight:500;letter-spacing:3.1px;margin-top:4px}.seal{background:var(--red);color:#fff6e6;font-family:"STKaiti","KaiTi",serif;letter-spacing:0;font-size:36px;width:52px;height:55px;display:grid;place-items:center;border-radius:5px 2px 5px 2px;transform:rotate(-3deg)}nav{display:flex;gap:32px;height:100%;align-items:center}.nav{border:0;background:none;color:var(--muted);height:100%;position:relative;padding:0 3px}.nav.active{color:var(--ink);font-weight:700}.nav.active:after{content:"";position:absolute;bottom:-1px;height:3px;background:var(--red);left:0;right:0}.nav span{font-size:14px;background:#e8e7df;border-radius:20px;padding:2px 7px;margin-left:5px}.edition{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:9px}.edition i{width:6px;height:6px;background:#6c8068;border-radius:50%}.edition b{border-left:1px solid var(--border);padding-left:12px;font-weight:400;font-family:Georgia,serif;font-size:17px}main{max-width:1440px;margin:auto;padding:0 5%}.intro{padding:43px 0 31px;display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:14px;letter-spacing:2px;color:var(--muted);margin:0 0 14px}h1{font-family:"Noto Serif SC","Songti SC","SimSun",serif;font-size:35px;letter-spacing:1px;font-weight:500;margin:0;line-height:1.4}h1 em{font-style:normal;color:var(--red)}.intro-note{font-size:14px;line-height:1.9;color:var(--muted);margin:0;padding-left:25px;border-left:1px solid var(--border)}.studio{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(340px,1fr);border:1px solid var(--border);background:var(--surface);min-height:640px}.preview-panel{position:relative;background-color:#eae9df;background-image:radial-gradient(#b5b7a777 .65px,transparent .65px);background-size:18px 18px;min-width:0;display:flex;flex-direction:column;overflow:hidden}.preview-top,.preview-bottom{padding:26px;display:flex;justify-content:space-between;gap:10px;position:absolute;left:0;right:0;z-index:2;pointer-events:none}.preview-top{top:0}.preview-bottom{bottom:0;border-top:1px solid var(--border);font-size:14px;letter-spacing:.5px;background:#eae9dfb8}.tag{border:1px solid var(--border);border-radius:2px;padding:7px 10px;font-size:14px;letter-spacing:1px}.model-label{font-size:14px;color:var(--muted);align-self:center}.model-label:before{content:"";display:inline-block;width:5px;height:5px;background:#7b8972;border-radius:50%;margin-right:6px}#viewer{position:absolute;inset:0;touch-action:none}#viewer canvas{width:100%;height:100%;display:block}.empty-view{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.outline-mark{font-family:"KaiTi",serif;font-size:100px;color:#9b9d8d55;border:1px solid #a7ac9866;padding:8px 32px;transform:rotate(-7deg);margin-bottom:20px}.empty-view p{font-family:"SimSun",serif;font-size:21px;letter-spacing:3px;color:var(--muted)}.empty-view small{color:#8a8f80;font-size:14px}.view-controls{position:absolute;bottom:90px;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:5px;border-radius:30px;border:1px solid var(--border);background:#fbfaf5e8;z-index:3;box-shadow:0 5px 20px #31332209}.view-controls button{border:0;background:none;font-size:14px;white-space:nowrap;padding:8px 14px;border-radius:20px;color:var(--muted)}.view-controls .selected{background:var(--ink);color:white}.editor{padding:29px 32px 22px;border-left:1px solid var(--border)}.step-title{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--border);font-size:18px}.step-title small{font-size:14px;letter-spacing:2px;color:#9c9d91}fieldset{margin:23px 0 0;padding:0;border:0;min-width:0}legend{padding:0;margin-bottom:12px;font-size:14px;width:100%}legend>span{font:italic 14px Georgia,serif;color:#a2a393;margin-right:9px}legend>b{font-size:14px;float:right;font-weight:400;color:var(--muted);line-height:22px}.product-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product input{position:absolute;opacity:0;width:1px;height:1px}.product>span{display:block;border:1px solid var(--border);padding:12px 15px;position:relative;cursor:pointer;transition:border-color .2s,background .2s}.product input:checked+span{border-color:var(--red);background:var(--selection)}.product input:checked+span:after{content:"✓";position:absolute;top:9px;right:11px;color:var(--red);font-size:14px}.product input:focus-visible+span{outline:3px solid var(--red);outline-offset:2px}.product svg{width:30px;height:30px;stroke:var(--red);stroke-width:1.5;display:block;margin-bottom:7px}.product b{display:block;font-size:14px;font-weight:500}.product small{display:block;font-size:14px;color:var(--muted);margin-top:4px}.name-input{position:relative}.name-input input{width:100%;height:50px;border:1px solid var(--border);background:var(--surface);padding:10px 65px 10px 15px;font-size:20px;letter-spacing:2px;color:var(--ink);border-radius:0}.name-input span{position:absolute;right:13px;top:20px;font-size:14px;color:#96998c}.field-help{font-size:14px;color:#999a8f;margin:7px 0 0;line-height:1.5}.palettes{display:flex;gap:13px}.swatch{border:1px solid transparent;border-radius:50%;padding:4px;background:none;width:45px;height:45px;position:relative}.swatch.selected{border-color:var(--ink)}.swatch span{width:33px;height:33px;display:block;border-radius:50%;border:1px solid #2222220a;transform:rotate(-35deg)}.swatch.selected:after{content:"";position:absolute;right:-1px;bottom:0;background:var(--ink);border:2px solid var(--surface);border-radius:50%;width:9px;height:9px}.details-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:14px;margin-top:22px}.details-grid label{font-size:14px;color:var(--muted)}.details-grid select,.details-grid input{display:block;margin-top:8px;width:100%;height:37px;border:1px solid var(--border);background:var(--surface);color:var(--ink);padding:0 10px;font-size:14px;border-radius:0}.size-note{display:flex;gap:16px;align-items:center;margin:18px 0}.size-note span{font-size:14px;border:1px solid var(--border);padding:6px 8px}.size-note p{font-size:14px;color:var(--muted);line-height:1.6;margin:0}.primary{border:1px solid var(--red);background:var(--red);color:#fff9ef;padding:14px 19px;width:100%;display:flex;justify-content:space-between;align-items:center;font-size:14px;transition:background .2s}.primary:hover{background:#921b11}.form-footnote{text-align:center;font-size:14px;letter-spacing:.6px;color:#95978b;margin:10px 0 0}.how-it-works{display:grid;grid-template-columns:repeat(3,1fr);padding:33px 0 35px;gap:30px}.how-it-works article{display:flex;gap:16px;align-items:flex-start}.how-it-works article>span{font:italic 28px Georgia,serif;color:#b9b9aa}.how-it-works h3{font-size:14px;margin:3px 0 8px;font-weight:500}.how-it-works p{font-size:14px;color:var(--muted);margin:0}footer{border-top:1px solid var(--border);margin:0 5%;padding:24px 0 28px;display:flex;justify-content:space-between;color:#929587;font-size:14px;gap:15px}footer i{font-style:normal;margin:0 8px}.busy{position:absolute;inset:0;background:#eae9dfe8;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center}.busy b{font-size:16px;font-weight:500;margin-top:22px}.busy p{font-size:14px;color:var(--muted)}.spinner{width:35px;height:35px;border:2px solid #c3c6b5;border-top-color:var(--red);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.result-strip{border:1px solid var(--border);border-top:0;background:var(--surface);padding:23px 28px;display:grid;grid-template-columns:1fr auto;gap:12px}.result-strip h2{font-size:19px;font-weight:500;margin:0 0 8px}.result-strip .eyebrow{margin-bottom:7px}.result-strip p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}.result-actions{display:flex;gap:10px;align-items:center}.compact{width:auto;gap:20px}.secondary{padding:13px 17px;border:1px solid var(--border);background:var(--surface);font-size:14px;color:var(--ink);cursor:pointer}.secondary:hover{border-color:#909580}.text-link{font-size:14px;color:var(--muted);padding:10px}.result-note,details{grid-column:1/-1}details{font-size:14px;border-top:1px solid var(--border);padding-top:12px;color:var(--muted)}summary{cursor:pointer}#checks-content{line-height:1.8;margin-top:12px}#checks-content ul{padding-left:18px}.workspace-note{font-size:14px;line-height:1.8;background:#eee9dc;border-left:3px solid #b29365;padding:15px 20px;margin-bottom:24px}.device-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.device{border:1px solid var(--border);background:var(--surface);padding:24px}.device small{color:var(--muted);font-size:14px;letter-spacing:1px}.device h2{font-family:Georgia,var(--font);font-size:26px;font-weight:400;margin:10px 0 8px}.device p{font-size:14px;color:var(--muted);margin:0}.device-status{margin-top:22px;padding-top:15px;border-top:1px solid var(--border);display:flex;justify-content:space-between;font-size:14px;color:#94713f}.list-heading{display:flex;justify-content:space-between;align-items:center;margin:34px 0 15px}.list-heading h2{font-size:20px;font-weight:500}.list-heading span{font-size:14px;color:var(--muted)}.history{margin-bottom:40px}.history-empty{text-align:center;padding:60px 20px;background:#edece3;color:var(--muted);font-size:14px}.history-row{display:grid;grid-template-columns:72px 1fr 1fr auto;gap:20px;align-items:center;border-bottom:1px solid var(--border);padding:17px 0}.history-thumb{width:72px;height:55px;object-fit:cover;background:#eae9df;display:grid;place-items:center;font-family:Georgia,serif;color:#9a9e8e}.history-row h3{font-size:14px;margin:0 0 5px;font-weight:500}.history-row p{font-size:14px;color:var(--muted);margin:4px 0;line-height:1.6}.status{font-size:14px;color:var(--green)}.status.failed{color:var(--red)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;z-index:10;padding:14px 22px;font-size:14px;max-width:min(92vw,600px);box-shadow:0 5px 20px #0002;line-height:1.6}#image-fallback{position:absolute;inset:15% 0;width:100%;height:65%;object-fit:contain}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.studio{min-height:690px}.editor{padding:35px 40px}fieldset{margin-top:28px}}
@media(max-width:1000px){.header{margin:0 4%}.edition{display:none}main{padding:0 4%}.intro-note{display:none}.studio{grid-template-columns:minmax(0,1.1fr) minmax(310px,1fr)}.editor{padding:25px 22px}.preview-top,.preview-bottom{padding:20px}.result-strip{grid-template-columns:1fr}.result-actions{flex-wrap:wrap}.how-it-works{gap:15px}.how-it-works article{gap:10px}#viewer-hint{max-width:95px;text-align:right}.brand{font-size:23px}}
@media(max-width:700px){.header{height:83px;gap:12px}.brand{font-size:21px;gap:8px;letter-spacing:2px}.brand small{font-size:14px;letter-spacing:2px}.seal{width:40px;height:44px;font-size:30px}nav{gap:17px}.nav{font-size:14px}.nav span{display:none}.intro{padding:27px 0 23px}h1{font-size:26px;letter-spacing:0}.eyebrow{font-size:14px;margin-bottom:10px;letter-spacing:1px}.studio{grid-template-columns:1fr}.preview-panel{height:370px}.preview-top{padding:18px}.preview-bottom{padding:17px}.editor{border-left:0;border-top:1px solid var(--border);padding:25px 23px}.view-controls{bottom:72px}.empty-view .outline-mark{font-size:65px;padding:2px 24px;margin-bottom:0}.empty-view p{font-size:17px}.empty-view small{font-size:14px}.how-it-works{grid-template-columns:1fr;padding:28px 10px;gap:22px}.how-it-works article>span{font-size:23px}.how-it-works h3{margin:1px 0 6px}.how-it-works article{gap:20px}.result-strip{padding:20px}.result-actions{gap:8px}.result-actions .primary,.result-actions .secondary{font-size:14px}.text-link{padding-left:0}.device-grid{grid-template-columns:1fr}.device{padding:20px}.history-row{grid-template-columns:55px 1fr auto;gap:12px}.history-thumb{width:55px;height:50px}.history-state{grid-column:2;grid-row:2}.history-row button{grid-column:3;grid-row:1/3;padding:9px}.history-row{padding:16px 0;row-gap:0}footer{flex-direction:column;padding:22px 0;gap:10px}.step-title{font-size:17px}.list-heading span{font-size:14px}.workspace-note{font-size:14px}.intro>.secondary{font-size:14px;padding:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.slice-panel{border:1px solid var(--border);margin-top:24px;background:var(--surface);padding:28px}.slice-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.slice-heading h2{font-family:"SimSun",serif;font-size:24px;font-weight:500;margin:0 0 12px}.slice-heading p,.slice-note,.slice-empty,.slice-controls p,.slice-result p{color:var(--muted);font-size:14px;line-height:1.8}.slice-heading .eyebrow{margin-bottom:12px}.trial-badge{white-space:nowrap;font-size:14px;color:#916b36;background:#f0e9d9;padding:8px 11px}.slice-controls{display:flex;align-items:flex-end;gap:18px;margin:22px 0}.slice-controls label{font-size:14px;min-width:230px;color:var(--muted)}.slice-controls select{display:block;width:100%;margin-top:9px;padding:12px;background:var(--surface);border:1px solid var(--border);color:var(--ink);font-size:14px}.slice-controls p{margin:0;max-width:300px}.slice-empty{border-top:1px solid var(--border);padding-top:18px}.slice-result{border-top:1px solid var(--border);padding:20px 0;display:flex;justify-content:space-between;gap:20px}.slice-result h3{font:24px Georgia,serif;margin:0 0 8px}.slice-result h3 span{font:14px var(--font);margin-left:14px;color:var(--green)}.slice-result p{margin:0}.slice-result details{margin-top:12px;border:0;padding:0}.slice-result ul{padding-left:18px;line-height:1.8}.slice-links{display:flex;align-items:center;gap:5px;flex-shrink:0}.slice-note{border-top:1px solid var(--border);padding-top:16px;margin-bottom:0;max-width:850px}
@media(max-width:700px){.slice-panel{padding:20px}.slice-heading h2{font-size:21px;line-height:1.5}.slice-heading{display:block}.trial-badge{display:inline-block;margin-top:4px}.slice-controls{align-items:stretch;flex-direction:column;gap:12px}.slice-controls .primary{justify-content:center}.slice-result{flex-direction:column;gap:14px}.slice-result h3 span{display:block;margin:8px 0}.slice-links{flex-wrap:wrap}.slice-controls p{max-width:none}}
.plugin-heading{display:flex;align-items:center;justify-content:space-between;margin:27px 0 14px;padding-top:23px;border-top:1px solid var(--border)}.plugin-heading b{font-size:16px;font-weight:500}.plugin-heading span{font-size:14px;color:var(--muted)}.option-group{border:1px solid var(--border);background:var(--surface);margin:0 0 9px;padding:0;color:var(--ink)}.option-group>summary{padding:14px;font-size:14px;list-style:none;display:flex;gap:12px;align-items:center}.option-group>summary:after{content:'＋';margin-left:auto;color:var(--muted)}.option-group[open]>summary:after{content:'−'}.option-group>summary>span{font:italic 14px Georgia;color:#9b9d90}.option-fields{padding:4px 14px 15px;display:flex;flex-direction:column;gap:12px}.option-field{display:flex;flex-direction:column;gap:7px;font-size:14px;color:var(--muted)}.option-field input,.option-field select{width:100%;min-height:35px;border:1px solid var(--border);background:var(--surface);border-radius:0;padding:7px 9px;color:var(--ink);font-size:14px}.option-field input[type=color]{padding:3px;height:35px}.option-check{flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:9px}.option-check input{width:14px;min-height:14px;accent-color:var(--red)}.option-buttons{display:flex;gap:7px;flex-wrap:wrap}.option-fields button{border:1px solid var(--border);background:#f2eee5;padding:9px 12px;color:var(--ink);font-size:14px}.option-note{font-size:14px;color:var(--muted);line-height:1.8;margin:0}.studio{align-items:start}.preview-panel{position:sticky;top:24px;height:690px;min-height:0}.editor{width:100%}#font-search{margin-top:7px;height:30px;font-size:14px}.result-actions{flex-wrap:wrap;max-width:600px}.editor .size-note{display:none}[data-mode=operator] .edition{color:var(--red)}
@media(max-width:700px){.preview-panel{position:relative;top:0;height:370px}.option-fields{gap:14px}.option-field{font-size:14px}.option-field input,.option-field select{min-height:40px;font-size:14px}.option-check input{min-height:16px;width:16px}.result-actions{max-width:none}}
@media(min-width:701px){.studio{min-height:780px;height:780px}.preview-panel{position:relative;top:0;height:778px}.editor{height:778px;display:flex;flex-direction:column;min-height:0;padding-bottom:16px}.editor .step-title{flex-shrink:0}.editor form{overflow-y:auto;min-height:0;flex:1;padding-right:8px;scrollbar-width:thin;scrollbar-color:#c7c7b7 transparent}.editor>#generate{flex-shrink:0;margin-top:15px}.editor>.form-footnote{margin-bottom:0;flex-shrink:0}.option-group:last-child{margin-bottom:15px}}
.font-compatible{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);margin-top:15px}.font-compatible input{accent-color:var(--red)}#font-status{margin:5px 0 12px}
.customer-style-note{display:flex;flex-direction:column;gap:7px;padding:15px 0;margin-top:18px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.customer-style-note b{color:var(--red);font-size:14px;font-weight:500}.customer-style-note span{font-size:14px;color:var(--muted);line-height:1.7}.legacy-design-note{margin-top:16px;font-size:14px;line-height:1.8;color:var(--muted)}.legacy-design-note .secondary{font-size:14px;padding:10px}.customer-text-row{display:flex;align-items:flex-end;gap:10px;margin-top:13px}.customer-text-row label{display:flex;flex-direction:column;flex:1;min-width:0;gap:6px;font-size:14px;color:var(--muted)}.customer-text-row input{padding:11px;width:100%;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-size:14px}.add-line,.remove-line{border:0;background:none;color:var(--red);font-size:14px;padding:10px 0}.remove-line{padding:12px 4px}.add-line{margin-top:4px}[data-mode=customer] .product>span{padding:12px}[data-mode=customer] .product svg{width:22px;height:22px;float:left;margin:1px 10px 0 0}[data-mode=customer] .product small{font-size:14px}[data-mode=customer] .form-footnote{font-size:14px}
.slot-dots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:22px 0}.slot-dots>span{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap;font:14px Georgia,serif}.slot-dots i,.trial-mappings i{display:inline-block;width:20px;height:20px;border:1px solid #aaa99e;border-radius:50%;background:repeating-linear-gradient(45deg,#e3dfd5 0 2px,#f6f3ed 2px 6px);flex-shrink:0}.slot-dots small{font:14px var(--font);color:var(--muted);width:100%;overflow-wrap:anywhere}.equipment-open{margin-top:20px;font-size:14px}.production-panel{background:var(--surface);border:1px solid var(--border);padding:30px;margin:24px 0;scroll-margin-top:20px}.production-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.production-heading h2{font:27px "SimSun",serif;margin:0 0 12px;line-height:1.5}.production-heading>.secondary{flex-shrink:0}.production-muted{color:var(--muted);font-size:14px;line-height:1.9}.equipment-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.equipment-fields>label,.filament-fields>label,.production-notes,.trial-mappings>label,.trial-history form>label{font-size:14px;display:flex;flex-direction:column;gap:8px;color:var(--muted);min-width:0}.production-panel input:not([type=checkbox]),#trial-dialog input:not([type=checkbox]),#trial-dialog select{width:100%;min-width:0;border:1px solid var(--border);background:#fffefb;color:var(--ink);padding:12px;font-size:14px;min-height:42px}.production-panel input:disabled{background:#eeece6;color:#8b8b80}.production-check{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-size:14px;line-height:1.8;cursor:pointer}.production-check input{width:16px;height:16px;accent-color:var(--red);flex-shrink:0}.fixed-process{padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:14px;line-height:2}.fixed-process span{padding:0 10px;color:#aaa99e}.loading-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.loading-slot{border:1px solid var(--border);padding:18px;margin:0;background:#f7f4ee}.loading-slot legend{width:auto;margin:0;font-size:14px;padding:0 6px}.loading-slot legend>span{font:italic 18px Georgia,serif;color:var(--red)}.filament-fields{display:grid;gap:13px;margin-top:18px}.production-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}.inline-feedback{color:var(--red);font-size:14px;line-height:1.8;margin:15px 0;overflow-wrap:anywhere}.inline-feedback:empty{display:none}.production-actions .text-link{background:none;border:0;cursor:pointer}.slice-links{flex-wrap:wrap;justify-content:flex-end;max-width:390px}.slice-result>div:first-child{min-width:0}.slice-links .secondary{font-size:14px}#trial-dialog{width:min(820px,94vw);max-height:90vh;border:1px solid var(--border);padding:32px;background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #25272030;overflow:auto}#trial-dialog::backdrop{background:#25272080;backdrop-filter:blur(3px)}#trial-dialog h3{font-size:16px;font-weight:500;margin:25px 0 16px}#trial-dialog form+form{margin-top:28px;border-top:1px solid var(--border);padding-top:6px}.readiness-summary{padding:14px 20px;background:#f0e8da;border-left:3px solid #a58147;font-size:14px;line-height:1.9}.readiness-summary.valid{background:var(--selection);border-color:var(--green)}.readiness-summary ul{padding-left:16px;margin:0}.readiness-summary p{margin:6px 0 0;color:var(--muted)}.trial-mappings{display:grid;gap:15px;margin-bottom:18px}.trial-mappings>label{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:14px}.trial-mappings label>span{display:flex;align-items:center;gap:8px}.trial-mappings code{font-size:14px}.trial-checks{display:grid;gap:12px}.physical-confirm{margin:20px 0}.trial-history{margin-top:25px;border-top:1px solid var(--border)}.trial-history article{border-top:1px solid var(--border);padding:18px 0}.trial-history article>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:14px}.trial-history article span,.trial-history article small{color:var(--muted)}.trial-history article p{font-size:14px;color:var(--muted);line-height:1.9;overflow-wrap:anywhere}.trial-history form{display:flex;align-items:flex-end;gap:12px}.trial-history form>label{flex:1}.trial-history form>.secondary{font-size:14px;flex-shrink:0}.production-panel label:focus-within,#trial-dialog label:focus-within{color:var(--ink)}
@media(max-width:1000px){.loading-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.production-panel{padding:20px}.production-heading h2{font-size:22px}.equipment-fields{grid-template-columns:1fr}.loading-slots{grid-template-columns:1fr}.filament-fields{grid-template-columns:1fr 1fr}.production-actions{align-items:stretch}.production-actions .primary{justify-content:center}.fixed-process span{padding:0 3px}#trial-dialog{padding:20px}.trial-mappings>label{grid-template-columns:1fr;gap:9px}.trial-history form{flex-direction:column;align-items:stretch}.slice-links{justify-content:flex-start;max-width:none}.production-check{font-size:14px}.slot-dots{gap:5px}}
.measurement-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:hidden}.measure-line{stroke:var(--red);stroke-width:1.5;fill:none}.measure-extension{stroke:var(--red);stroke-width:1;opacity:.65;fill:none}.measure-label rect{fill:#f7f4eef2;stroke:#b41f1266;stroke-width:.6}.measure-label text{fill:var(--red);font:14px var(--font)}.reference-origin{stroke:var(--red);stroke-width:1.4;fill:none}.reference-target{stroke:var(--red);stroke-width:2;fill:none}.reference-movement{stroke:var(--red);stroke-width:1.8;stroke-dasharray:5 4;fill:none}.reference-box{stroke:var(--red);stroke-width:1;stroke-dasharray:4 4;fill:#b41f1208}.reference-label rect{fill:#fff8edf2;stroke:var(--red);stroke-width:.6}.reference-label text{fill:var(--red);font:14px var(--font)}.reference-tools{position:absolute;top:75px;left:26px;right:26px;z-index:4;display:flex;align-items:center;gap:12px;pointer-events:none;font-size:14px;color:var(--muted)}.reference-tools label{display:flex;align-items:center;gap:6px;background:#f7f4eedb;padding:7px 9px;pointer-events:auto;border:1px solid var(--border);cursor:pointer}.reference-tools input{accent-color:var(--red);margin:0}.reference-tools>span{background:#eae9dfc7;padding:4px 6px}#position-controls{margin-top:22px}#position-details{border:1px solid var(--border);padding:0;background:#faf7f1}#position-details>summary{padding:13px 12px;font-size:14px;cursor:pointer;line-height:1.5}#position-details>summary span{float:right;font-size:14px;color:var(--muted)}.position-content{padding:0 14px 16px}.position-note,#position-dimensions{font-size:14px;line-height:1.8;color:var(--muted)}#position-dimensions{color:var(--red)}.position-content h4{font-size:14px;font-weight:500;margin:18px 0 12px}.position-select{display:flex;gap:8px;flex-direction:column;font-size:14px;color:var(--muted)}.position-select select{width:100%;padding:9px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-size:14px}.position-slider{display:grid;grid-template-columns:minmax(0,1fr) 65px 20px;align-items:center;gap:8px;margin-top:13px}.position-slider label{grid-column:1/-1;font-size:14px;color:var(--muted)}.position-slider input[type=number]{width:100%;padding:7px 3px 7px 8px;min-width:0;border:1px solid var(--border);font-size:14px;background:var(--surface)}.position-slider input[type=range]{width:100%;min-width:0;accent-color:var(--red);padding:0}.position-slider>span{font-size:14px;color:var(--muted)}.position-slider input:disabled{opacity:.45}.position-front{margin-top:16px;border:1px solid var(--border);padding:9px;background:#f2eee5;color:var(--ink);font-size:14px}#position-feedback{color:var(--red)}.text-position-controls{border-top:1px solid var(--border);margin-top:18px}
@media(max-width:700px){.reference-tools{left:15px;right:15px;top:68px;gap:5px;font-size:14px}.reference-tools label{padding:6px}.reference-tools>span{max-width:160px}.position-slider input[type=number]{min-height:36px}.position-select select{min-height:38px}}
@media(max-width:700px){.preview-panel{height:520px}}
#customer-advanced{margin-top:24px}.customer-option-group>summary{font-size:14px;font-weight:500}.customer-option-group .option-fields{gap:14px}.customer-option-group .option-field{font-size:14px}.customer-option-group .option-field input,.customer-option-group .option-field select{min-height:38px;font-size:14px}.customer-option-group .option-check input{min-height:16px;width:16px}.customer-option-group .hole-controls>h4{display:none}.customer-option-group .hole-controls .position-select{margin-top:5px}.customer-option-group .option-group{margin-top:5px}.customer-option-group .option-note{line-height:1.8}.customer-option-group select:disabled{opacity:.6}
#busy-percent{font-size:36px;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--ink)}
#busy-progress{appearance:none;min-width:0;width:min(180px,55%);height:5px;margin-top:12px;border:0;border-radius:4px;overflow:hidden;background:#d1d4c8;color:var(--red);accent-color:var(--red)}
#busy-progress::-webkit-progress-bar{background:#d1d4c8}
#busy-progress::-webkit-progress-value{background:var(--red)}
#busy-progress::-moz-progress-bar{background:var(--red)}
.part-colors{display:grid;gap:9px;font-size:14px}.part-colors label{display:grid;grid-template-columns:minmax(7em,1fr) 18px minmax(110px,1.2fr);align-items:center;gap:8px}.part-colors i{width:16px;height:16px;border-radius:50%;border:1px solid #0003}.part-colors select,.shop-color-row input[type=text]{width:100%;min-width:0;padding:8px;border:1px solid var(--border);background:var(--surface);color:var(--ink)}
.shop-color-editor{border:1px solid var(--border);padding:16px;margin:18px 0}.shop-color-editor summary{cursor:pointer}.shop-color-editor small{margin-left:12px;color:var(--muted)}.shop-color-editor p{font-size:14px;color:var(--muted)}.shop-color-row{max-width:560px;display:grid;grid-template-columns:68px minmax(100px,1fr) 72px;gap:12px;align-items:end;margin:12px 0}.shop-color-row label{font-size:14px}.shop-color-row input[type=color]{width:100%;height:34px}.shop-color-row input:disabled{opacity:.4}
.part-buttons, .color-card-grid { display:grid; gap:6px; grid-template-columns:repeat(auto-fill,minmax(94px,1fr)); }
.part-buttons { margin-bottom:5px; grid-template-columns:repeat(auto-fit,minmax(94px,1fr)); }
.part-colors button,.shop-color-editor .color-card-grid label { display:flex; gap:6px; align-items:center; min-width:0; padding:6px; border:1px solid var(--border); background:var(--surface); color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.part-buttons button { display:grid; grid-template-columns:18px 1fr; font-size:14px; }
.part-buttons button b { grid-column:1/-1; font-weight:600; }
.part-buttons button b::after { content:'▾';float:right;color:var(--muted); }
.part-buttons button[aria-expanded=true] b::after { content:'▴'; }
.part-buttons button i { grid-column:1; }
.part-colors button[aria-pressed=true],.part-buttons button[aria-expanded=true],.shop-color-editor label:has(:checked) { border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.part-colors button:disabled { opacity:.4;cursor:default; }
.color-card-grid i,.part-buttons i { display:block;flex:0 0 15px;width:15px;height:15px;border:1px solid #0003;border-radius:50%; }
.color-card-grid small,.part-buttons small { display:block;font:14px/1.4 monospace;color:var(--muted); }
#part-color-panel>strong { display:block;margin-bottom:8px;font-size:14px; }
.shop-color-editor .color-card-grid { margin-bottom:12px;grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); }
.history-actions { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.history-actions [data-remove] { color:var(--red);background:none;border:0;padding:8px 3px;cursor:pointer; }
#delete-design-dialog { max-width:min(380px,90vw);padding:24px;border:1px solid var(--border);color:var(--ink);background:var(--surface); }
#delete-design-dialog::backdrop { background:#29282166; }
#delete-design-dialog h2 { margin:0;font-size:20px; }
#delete-design-dialog p { margin:14px 0 22px; }
.slice-result .studio-palette { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; margin-top:6px; }
.studio-color { display:inline-flex; align-items:center; gap:4px; font-variant-numeric:tabular-nums; }
.studio-color i { width:12px; height:12px; border-radius:50%; border:1px solid #0003; }
.slice-result .slice-links { flex-wrap:wrap; flex-shrink:1; }
#order-dialog { width:min(390px,90vw); padding:24px; border:1px solid var(--border); color:var(--ink); background:var(--surface); }
#order-dialog::backdrop { background:#29282166; }
#order-dialog h2 { margin:0; font-size:22px; }
#order-dialog label { display:grid; gap:4px; margin:14px 0; font-size:14px; }
#order-dialog input, #order-dialog select { width:100%; padding:10px; border:1px solid var(--border); background:white; font:inherit; }
#order-feedback { color:#923626; }
#result-order:empty { display:none; }

/* The customer moves from composing text to reviewing geometry to placing an order. */
.flow-head { margin:30px 0 22px; }
.flow-head ol { display:flex; gap:24px; padding:0; margin:0; list-style:decimal inside; color:var(--muted); font-size:14px; }
.flow-head [aria-current] { color:var(--green); font-weight:700; border-bottom:2px solid; }
.flow-head h1 { font:normal clamp(28px,4vw,48px)/1.15 Georgia,serif; margin:.5em 0; }
[data-stage="checkout"] .studio,[data-stage="checkout"] #result-strip { display:none; }
#design-page[data-stage="design"] .studio {
  height:auto; min-height:0; align-items:start;
}
#design-page[data-stage="design"] .preview-panel {
  display:flex; position:sticky; top:8px; z-index:4; height:clamp(200px,calc(100dvh - 220px),780px);
}
#design-page[data-stage="design"] .editor {
  display:block; height:auto; min-height:0;
}
#design-page[data-stage="design"] #design-form {
  max-height:none; overflow:visible;
}
@media(max-width:700px){
  #design-page[data-stage="design"] .studio { display:block; }
  #design-page[data-stage="design"] .preview-panel {
    top:0; height:min(38dvh,340px); border-bottom:1px solid var(--border);
  }
  #design-page .editor :is(input,select,summary,button) { scroll-margin-top:min(40dvh,355px); }
  [data-stage="design"] .editor { padding:12px 16px; }
  [data-stage="design"] .preview-bottom { padding:6px 12px; }
  [data-stage="design"] .view-controls { bottom:32px; }
  [data-stage="design"] .preview-top { padding:8px 12px; }
  [data-stage="design"] .reference-tools { top:42px; }
}
[data-stage="design"] .editor { align-self:start; }
.tune-controls h2,#checkout h2 { font-size:21px; margin:0 0 18px; }
#checkout:not([hidden]) { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
.checkout-summary,#checkout-form,#checkout-receipt { padding:24px; background:var(--surface); border:1px solid var(--border); }
.checkout-summary img { display:block; width:100%; max-height:310px; object-fit:contain; margin-bottom:16px; }
#checkout-text { white-space:pre-line; font-size:18px; }
#checkout-colors { display:flex; flex-wrap:wrap; gap:12px; }
#checkout-form label { display:grid; gap:4px; margin:12px 0; }
#checkout-form input,#checkout-form select { width:100%; padding:10px; font:inherit; background:white; border:1px solid var(--border); }
#checkout-count,#checkout-size,#checkout-message { font-size:14px; }
#back-review { justify-self:start; }
@media(max-width:700px){#checkout:not([hidden]) { grid-template-columns:1fr; } .flow-head ol{gap:12px}.flow-head{margin:18px 0}.checkout-summary img{max-height:180px}}


.draft-caption { display:none; }
.draft-preview #viewer,.draft-preview #image-fallback,.draft-preview .view-controls,
.draft-preview .reference-tools,.draft-preview .preview-bottom,.draft-preview .model-label { visibility:hidden; }
.draft-preview .draft-caption { display:block; position:absolute; bottom:12px; left:12px; font-size:14px; color:var(--muted); }
#draft-canvas { position:absolute; left:0; top:44px; width:100%; height:calc(100% - 80px); pointer-events:none; }


/* Keep the preview beside the independently scrollable customer settings. */
#design-page[data-stage="design"] .studio {
  height:clamp(280px,calc(100dvh - 190px),780px);
  grid-template-rows:minmax(0,1fr);
}
#design-page[data-stage="design"] .preview-panel {
  position:relative; top:0; height:100%;
}
#design-page[data-stage="design"] .editor {
  height:100%; min-height:0; overflow-y:scroll; overscroll-behavior-y:contain;
  scrollbar-gutter:stable; scrollbar-width:auto; scrollbar-color:auto;
}
#design-page .editor::-webkit-scrollbar { width:16px; }
#design-page .editor::-webkit-scrollbar-track { background:#edeae2; }
#design-page .editor::-webkit-scrollbar-thumb {
  background:#848a7c; border:3px solid #edeae2; border-radius:10px;
}
@media(max-width:700px){
  #design-page[data-stage="design"] .studio {
    display:grid; height:80dvh; grid-template-rows:minmax(0,.85fr) minmax(0,1.15fr);
  }
  #design-page .editor :is(input,select,summary,button) { scroll-margin-top:8px; }
}

.flow-head li button { padding:0; border:0; background:none; color:var(--green); text-decoration:underline; cursor:pointer; font:inherit; }
.flow-head li button:disabled,.flow-head [aria-current] button { color:inherit; text-decoration:none; cursor:default; }
#type-spacing { padding:14px 0; display:grid; gap:12px; }
#type-spacing .type-slider { display:grid; grid-template-columns:1fr auto; gap:3px 10px; align-items:center; color:var(--ink); font-size:15px; }
#type-spacing .type-slider[hidden] { display:none; }
#type-spacing output { font-size:14px; font-variant-numeric:tabular-nums; }
#type-spacing input { grid-column:1/-1; width:100%; cursor:pointer; }

.hole-quick { border-top:1px solid var(--border); padding-top:10px; }
.hole-quick h4 { font-size:15px; margin:0 0 8px; }
.hole-quick > .option-field { margin-top:10px; }
#front-projection { position:absolute; inset:14% 5% 18%; width:90%; height:68%; z-index:1; overflow:visible; pointer-events:none; }
.preview-panel:has(#front-projection:not([hidden])) :is(#viewer,#image-fallback,.view-controls,.reference-tools) { visibility:hidden; }
/* Customer editor and production desk share the same action and type hierarchy. */
:root { --paper:#f1f5f8; --ink:#211e1a; --muted:#655f57; --border:#d9d3c8; --red:#b41f12; --font:"Microsoft YaHei UI","PingFang SC",sans-serif; }
body { background:var(--paper); color:var(--ink); font-family:var(--font); }
.header { height:76px; border-color:var(--border); }
.seal { background:var(--red); transform:none; border-radius:10px; }
.brand { font-weight:800;letter-spacing:1px; }
h1,.flow-head h1,h1 em,.result-strip h2,.device h2,.intro h1 { font-family:var(--font); font-weight:800; letter-spacing:-.025em; color:var(--ink); }
.flow-head h1,.intro h1 { font-size:clamp(27px,3vw,40px); }
.flow-head ol,.nav { font-size:14px; }
.studio,.result-strip,.history-row,.device,.editor { background:#fff; }
.studio { border-radius:14px 14px 0 0; }
.preview-panel { border-radius:14px 0 0 0; background:#e4ebee; }
.editor { border-radius:0 14px 0 0; }
.editor legend,.editor h4,.editor summary,.list-heading h2,.history-row h3 { color:var(--ink); font-weight:750; font-size:16px; }
.editor label,.option-fields label,.position-select,.field-help,.model-label { color:var(--muted); }
.editor input:not([type=range]),.editor select { border-radius:6px; }
.product>span,.option-group,.secondary { border-radius:8px; }
.product b,.nav.active { font-size:15px; font-weight:750; }
.primary { background:var(--red); border-color:var(--red); border-radius:8px; font-size:15px; font-weight:750; }
.primary:hover { background:#921b11; }
#dimensions { font:700 14px/1.4 var(--font); color:var(--ink); font-variant-numeric:tabular-nums; }
.preview-bottom { background:#f5f8faed; }
.history-row { padding-inline:16px; }
.history-row p,.history-row .status { font-size:14px; }
@media(max-width:700px){.header{height:auto;min-height:64px;flex-wrap:wrap}.editor,.preview-panel{border-radius:0}.history-row{padding-inline:8px}}

/* 挂件印 · 界面配色与字级 */
:root { --paper:#f7f4ed; --ink:#211e1a; --muted:#655f57; --border:#d9d3c8; --red:#b41f12; --green:#473e36; }
body { background:var(--paper); color:var(--ink); }
.header { border-bottom:1px solid #c9c1b4; }
.brand img { display:block; }
.nav.active { color:var(--red); }
.flow-head ol,.flow-head li button { color:var(--muted); }
.flow-head [aria-current],.flow-head [aria-current] button { color:var(--red); }
.flow-head h1,.intro h1 { font-family:"Songti SC","STSong","SimSun",serif; font-weight:800; letter-spacing:.025em; }
.studio,.editor,.result-strip,.history-row,.device { background:#fffdfa; }
.studio { border-radius:8px 8px 0 0; }
.editor { border-top-right-radius:8px; }
.preview-panel { background:#eae9e6; border-top-left-radius:8px; }
.preview-bottom { background:#f5f4f0ed; }
.editor label,.option-fields label,.position-select,.field-help,.model-label { color:var(--muted); }
.primary { background:var(--red); border-color:var(--red); border-radius:5px; }
.primary:hover { background:#921b11; }
.secondary,.product>span,.option-group { border-radius:5px; }
.product input:checked+span { background:var(--selection); border-color:var(--red); }
.view-controls .selected { background:var(--ink); }
.editor input[type=range],.editor input[type=checkbox] { accent-color:var(--red); }
#dimensions { color:var(--ink); }
.history-row h3,.list-heading h2,.editor legend { color:var(--ink); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline-color:var(--red); }

/* Customer adjustment panel: readable labels, measured values and units. */
#design-form :is(.position-select,.position-slider label,.option-field,.option-field>span,.customer-text-row label) {
  font-size:16px; line-height:1.45; font-weight:600; color:var(--ink);
}
#design-form :is(select,input[type=number],.customer-text-row input) {
  font-size:16px; font-weight:500; color:var(--ink); min-height:40px;
}
#design-form .position-slider>span,#position-details>summary span,
#design-form :is(.option-note,.position-note,.field-help),#position-dimensions {
  font-size:14px; line-height:1.55; color:var(--muted);
}
#position-details>summary,#design-form .hole-quick h4 {font-size:17px;font-weight:700;}
#design-form :is(.add-line,.remove-line,.position-front) {font-size:14px;font-weight:600;}
#design-form .type-slider {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;margin:10px 0;font-size:16px;color:var(--ink);}
#design-form .type-slider output {justify-self:end;font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;}
#design-form .type-slider input[type=range] {grid-column:1/-1;width:100%;margin:0;}

#design-form .details-grid label,#design-form legend {font-size:16px;font-weight:700;color:var(--ink);}
.part-buttons,.color-card-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));}
.part-buttons button,.color-card-grid label {overflow-wrap:anywhere;}
.part-buttons strong,.color-card-grid b {font-size:15px;}
.editor .field-help,.editor small,.history-row p {color:var(--muted);}
.part-colors button:disabled {opacity:.75;}
/* Reading hierarchy in the customization editor */
body[data-mode=customer] .flow-head h1 {font-size:clamp(28px,3.4vw,44px);line-height:1.18;margin:10px 0 18px;}
#design-form>fieldset {margin:0 0 26px;}
#design-form>fieldset+fieldset,#design-form>.tune-controls {border-top:1px solid var(--border);padding-top:16px;}
#design-form>fieldset>legend,#design-form>.tune-controls>h2 {font:750 21px/1.35 var(--font);letter-spacing:.015em;color:var(--ink);margin:0 0 14px;}
#design-form>fieldset>legend {float:left;}
#design-form>fieldset>legend+* {clear:both;}
#design-form .details-grid {display:block;margin:0 0 14px;}
#design-form .details-grid label {display:grid;grid-template-columns:4em minmax(0,1fr);align-items:center;}
#design-form .details-grid select {margin:0;width:100%;}
#design-form .line-label {display:block;font-size:16px;font-weight:600;margin-bottom:6px;}
#design-form .name-input input,#design-form .customer-text-row input {font:600 20px/1.35 var(--font);letter-spacing:0;}
#design-form .type-slider output,#design-form input[type=number] {font-variant-numeric:tabular-nums;}
#design-form #palette-label {font:500 14px/1.8 var(--font);color:var(--muted);}
#design-form .product>span {display:flex;align-items:center;gap:9px;min-height:55px;padding:10px;}
#design-form .product svg {width:24px;height:24px;flex:none;margin:0;}
@media(max-width:420px){#design-form .product>span{gap:5px;padding:8px;}#design-form .product b{font-size:15px;}}

:root { --surface:#fffdfa; --selection:#f9eae5; }
input[type=range],input[type=checkbox],input[type=radio] {accent-color:var(--red);}
.part-buttons button[aria-expanded=true],.part-colors button[aria-pressed=true],.shop-color-editor label:has(:checked) {border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red);}
.font-upload {margin:0 0 16px;padding:10px 12px;border:1px solid var(--border);border-radius:5px;}
.font-upload p {font-size:14px;line-height:1.6;}
.font-upload label,.font-upload input[type=file] {display:block;margin:10px 0;font-size:15px;}
.font-specimen {margin:8px 0 16px;padding:12px 15px;border-left:3px solid var(--red);background:#f5f1ea;}
.font-specimen b {font-size:14px;color:var(--muted);}
.font-specimen div {margin-top:5px;font-size:clamp(24px,3vw,36px);line-height:1.35;white-space:pre-line;overflow-wrap:anywhere;font-synthesis:none;}
#design-form .name-input input,#design-form .customer-text-row input {font-family:var(--lettering-font,var(--font));font-weight:400;font-synthesis:none;}
#design-page[data-stage="design"] .studio {grid-template-columns:minmax(0,1.4fr) 58px minmax(310px,1fr);}
.setting-nav {height:100%;display:flex;flex-direction:column;justify-content:center;gap:5px;background:var(--paper);border-left:1px solid var(--border);}
.setting-nav button {border:0;background:none;border-radius:5px;color:var(--muted);font-size:15px;min-height:40px;padding:5px;}
.setting-nav button[aria-current] {color:var(--red);background:var(--selection);font-weight:700;}
@media(max-width:700px){
  #design-page[data-stage="design"] .studio {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,.85fr) auto minmax(0,1.15fr);}
  .setting-nav {flex-direction:row;justify-content:space-evenly;height:auto;gap:0;border:0;border-block:1px solid var(--border);}
}

.layer-color-key{display:inline-flex;gap:2px;margin-right:.5em;vertical-align:-.1em}.layer-color-dot{width:1em;height:1em;border:1px solid #776e65;border-radius:50%}.layer-color-dot[hidden]{display:none}

.thickness-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.option-fields .thickness-presets button{min-height:40px;font:inherit;font-weight:600;cursor:pointer}
.option-fields .thickness-presets button[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:white}

/* A sample on the left and its order details on the right stay readable in the narrow editor. */
.design-templates{display:grid;gap:8px}
.design-templates button{display:grid;grid-template-columns:minmax(96px,39%) 1fr;align-items:stretch;padding:0;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.design-templates button:hover,.design-templates button:focus-visible{border-color:var(--red)}
.template-art{background:#eee6da;display:grid;place-items:center;padding:9px;min-width:0}
[data-design-template=wish] .template-art{background:#f1dfd7}
[data-design-template=magnet] .template-art{background:#e5e8df}
.template-art img{width:100%;height:96px;object-fit:contain;filter:drop-shadow(1px 4px 2px #39281729)}
.template-copy{display:grid;grid-template-columns:1fr auto;align-content:center;align-items:center;gap:5px 4px;padding:10px 12px}
.template-copy b,.template-copy small{grid-column:1/-1}
.template-copy b{font-size:18px;line-height:1.4}.template-copy small{font-size:14px;line-height:1.4}
.template-action{font-size:14px;color:var(--red);font-weight:600;white-space:nowrap}
.template-swatches{display:flex;flex-wrap:wrap;gap:3px}.template-swatches i{width:11px;height:11px;border-radius:50%;border:1px solid #0003}

.preview-panel .preview-bottom{align-items:center;padding:8px 14px;min-height:48px}
.preview-readout{display:grid;gap:2px;min-width:0}
.preview-readout #viewer-hint{max-width:none;text-align:left}
.preview-bottom #generate{width:auto;flex:none;gap:12px;pointer-events:auto;padding:10px 14px}
.preview-bottom #generate[hidden]{display:none}
.draft-preview .preview-bottom{visibility:visible}
.draft-preview .preview-readout{visibility:hidden}
.draft-preview .draft-caption{z-index:3;pointer-events:none;max-width:55%}
@media(max-width:700px){.preview-readout #viewer-hint{display:none}.preview-bottom #generate{padding:8px 10px}}

.magnet-settings{border-top:1px solid var(--border);padding-top:10px}.magnet-settings h4{margin:0;font-size:17px}.magnet-settings>.option-field,.magnet-settings>.option-note{margin-top:10px}

[data-mode=operator] #design-form .details-grid label>*{grid-column:2;min-width:0}

.account-page{min-height:100vh;display:grid;place-items:center;padding:20px}
.account-card{width:min(100%,390px);padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:10px}
.account-card h1{font-size:28px;margin:26px 0 18px}
.account-card label{display:grid;gap:6px;margin:12px 0;font-weight:600}
.account-card input{font:inherit;padding:10px;width:100%;border:1px solid var(--border);border-radius:5px}
.account-card .primary{justify-content:center}.account-card .text-link{margin-top:14px}
.account-card [role=status]{color:var(--red)}.customer-account{display:flex;align-items:center;gap:8px}.customer-account span{max-width:10em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.admin-user-row,.admin-user-designs>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--border)}.admin-user-row strong{overflow-wrap:anywhere}.admin-user-designs{width:100%}
