:root{--ink:#173f73;--muted:#6f778b;--pink:#d679a2;--light:#fbe4ed;--paper:#fffaf0;--line:#e7e1d5;--white:#fffdf8;color:var(--ink);background:var(--paper);font-family:'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:inherit;font-size:13px;cursor:pointer}button:hover{background:#fdf0f5;border-color:#eab9cc}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d679a2;outline-offset:3px}button.selected,button[aria-pressed=true]{background:var(--light);border-color:#e8adc7;color:#943e69}button.primary{background:var(--ink);border-color:var(--ink);color:white}[hidden]{display:none!important}h2,h3,p{margin-top:0}.help{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 0}.text-button{background:transparent;border-color:transparent;color:#925477}.full{width:100%}
html body .zl-editor[data-editor=jewelry-box]{--zl-accent:#fbe4ed;--zl-paper:#fffaf0;--zl-border:#e7e1d5}html body [data-editor=jewelry-box] .zl-tool[aria-selected=true]{background:var(--light)!important}html body [data-editor=jewelry-box] .ze-add-content{background:var(--light)!important}html body [data-editor=jewelry-box] .zl-stage{overflow:auto;background:var(--paper);container-type:inline-size}html body [data-editor=jewelry-box] .zl-panel-close{min-height:44px;width:44px}.product-icon{width:37px;height:37px;object-fit:contain}
.source-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white;margin:16px 0 6px}.source-card>img{width:100%;height:130px;object-fit:contain;padding:15px}.source-card>div{padding:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;font-size:13px}.source-card span{font-size:11px;color:var(--muted)}.scope-note{font-size:11px;line-height:1.7;color:var(--muted)}.field{margin:14px 0 20px}.field>label{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:8px}.field output{font-size:12px;background:#f2eaf0;border-radius:5px;padding:4px 8px;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:32px;accent-color:#d679a2;cursor:pointer}.segmented{display:flex;gap:4px;border-radius:10px;padding:3px;background:#f2edef}.segmented>button{flex:1;border-color:transparent;background:transparent;padding:7px 6px;font-size:12px;white-space:nowrap}.segmented>button.selected{background:var(--white);color:#943e69;box-shadow:0 1px 4px #39304712}#connection-title{font-size:13px;margin:4px 0 10px}#product-description{margin:0 0 4px}.color-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}.color-pair>label{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px;font-size:13px}.color-pair input{width:100%;height:44px;padding:0;border:0;background:none;cursor:pointer}.color-pair input::-webkit-color-swatch-wrapper{padding:0}.color-pair input::-webkit-color-swatch{border:0;border-radius:7px}.color-pair span{font-size:12px;color:var(--muted)}.presets{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0 14px}.presets button{display:flex;align-items:center;gap:6px;font-size:12px;padding:7px}.preset-dot{width:25px;height:25px;flex-shrink:0;border:1px solid #173f7333;border-radius:50%}#palette-panel{padding-bottom:18px}
.workspace{padding:18px 24px;max-width:1600px;margin:auto;width:100%;min-width:0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}html body [data-editor=jewelry-box] .ze-view-modes{margin:0}.canvas-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}.object-card,.try-card{position:relative;min-width:0;background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;font-size:13px}.card-head>span+span{font-size:11px;color:var(--muted)}.card-head .live-label{color:#925477;background:#fbeaf1;padding:4px 8px;border-radius:7px}.object-stage,.wear-stage{height:clamp(260px,36vh,390px);position:relative;overflow:hidden;touch-action:none}.object-stage{margin:0 12px;border-radius:10px;background-color:#fffdf9;background-image:conic-gradient(#efede9 25%,transparent 0 50%,#efede9 0 75%,transparent 0);background-size:14px 14px}#flat,#solid{position:absolute;inset:0;width:100%;height:100%}#solid{cursor:grab;touch-action:none}#solid:active{cursor:grabbing}#solid canvas,#wear-webgl canvas{display:block;width:100%;height:100%}.hole-handle,.rotation-handle,.mount-handle{cursor:grab;touch-action:none}.hole-handle:focus,.rotation-handle:focus,.mount-handle:focus{outline:none}.hole-handle:focus circle,.rotation-handle:focus circle{stroke:#d679a2;stroke-width:.5}.canvas-footer{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 12px 0}.canvas-footer p{font-size:11px;color:var(--muted);text-align:center;margin:0}html body [data-editor=jewelry-box] .ze-history{position:static!important;inset:auto!important}html body [data-editor=jewelry-box] .ze-history button{min-height:44px;height:44px}.geometry-message{min-height:17px;padding:0 12px;font-size:11px;line-height:1.5;color:#925477;text-align:center;margin:10px 0 12px}.wear-stage{background:radial-gradient(ellipse at 50% 55%,#f9e8e9 0,transparent 68%)}#person{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}#wear-webgl{position:absolute;inset:0;cursor:move}.try-tools{padding:10px 16px}.wear-size{display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin:10px 0 0}.wear-size strong{color:var(--ink)}.try-tools>.text-button{display:block;margin:0 auto;font-size:12px}.try-tools .help{font-size:11px;text-align:center;margin:0}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:20px 0 10px}.collection-heading h3,.check-heading h3{font-size:14px;margin:0}.collection-heading>span,.check-heading>span{font-size:11px;color:var(--muted)}.collection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.collection button{display:flex;align-items:center;gap:8px;text-align:left;min-width:0;padding:8px}.collection svg{width:55px;height:45px;flex-shrink:0}.collection strong{font-size:12px;display:block}.collection small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.footnote{font-size:11px;line-height:1.6;color:var(--muted);text-align:center;margin:16px 0 0}
.print-check{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--white);margin-top:18px}.check-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.nozzle-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nozzle-card{display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px;border:1px solid #dedfdc;border-radius:9px;background:#f7f8f5;font-size:12px;line-height:1.5}.nozzle-card strong{font-size:13px}.nozzle-card span{color:#416850}.nozzle-card.has-warning{border-color:#e7cda4;background:#fff6e9}.nozzle-card.has-warning span{color:#986020}.nozzle-card small{font-size:11px;color:var(--muted)}#print-check-status{font-size:11px;color:var(--muted);line-height:1.7;margin:10px 0 0}#retry-print-check{margin-top:8px}.download-nozzle-item{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px;margin-top:10px}.download-nozzle-item>strong{font-size:12px}.compact .nozzle-card{padding:8px 10px;gap:2px}.compact .nozzle-card strong{font-size:12px}.compact .nozzle-card span{font-size:11px}
.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#fffdf9ed;font-size:13px;padding:20px}.loading span{border:2px solid #eed4df;border-top-color:#bc6f92;border-radius:50%;width:20px;height:20px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#startup{padding:24px;text-align:center}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:30;background:var(--ink);color:white;box-shadow:0 8px 30px #183e7330;padding:13px 22px;border-radius:12px;font-size:13px;max-width:85vw}.error{color:#a23546!important}
dialog{border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--ink);width:calc(100% - 28px);max-width:660px;max-height:92dvh;padding:24px;box-shadow:0 18px 100px #173f7333}dialog::backdrop{background:#29304755;backdrop-filter:blur(3px)}.download-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.download-head h2{font:26px ZaobaLayout,sans-serif;margin:0}.download-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0}.download-option{border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px;cursor:pointer;font-size:13px}.download-option:has(input[type="checkbox"]:checked){background:var(--light);border-color:#df9cb7}.download-options input[type="checkbox"]{accent-color:var(--pink);width:16px;height:16px}.download-options img{width:30px;height:30px;object-fit:contain}.download-options small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.plate-size{display:flex;gap:12px;align-items:center;font-size:12px}.plate-size select{min-height:44px;padding:7px;border:1px solid var(--line);border-radius:8px;color:inherit;background:white}.plate-preview{height:180px;margin:14px auto 0;text-align:center}.plate-preview svg{height:100%;max-width:100%;border-radius:10px;background:var(--white)}#plate-status{font-size:12px;text-align:center;line-height:1.7;margin:10px 0}#download-print-check{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 0 8px}#download-print-check>summary{padding:12px 0;font-size:13px;cursor:pointer;min-height:44px}.download-actions{display:flex;justify-content:space-between;gap:10px;position:sticky;bottom:-24px;background:var(--white);padding:12px 0;margin-top:8px;border-top:1px solid var(--line)}.download-actions button{font-size:12px}
@container(max-width:700px){.workspace{padding:14px}.workspace-heading{flex-wrap:wrap}.workspace-heading>div:first-child{flex:1}.card-head{padding:12px 10px}.card-head .live-label{display:none}.object-stage,.wear-stage{height:270px}.canvas-grid{gap:10px}.collection button{flex-direction:column;gap:3px;text-align:center}.collection svg{width:52px}.try-tools{padding:10px}.canvas-footer p,.geometry-message,.try-tools .help{font-size:10px}.card-head>span+span{font-size:10px}}
@media(max-width:760px){html body .zl-editor[data-editor=jewelry-box]{grid-template-columns:minmax(0,1fr)}.product-icon{width:27px;height:27px}.workspace{padding:12px}.canvas-grid{grid-template-columns:1fr}.object-stage,.wear-stage{height:275px}.workspace-heading{gap:10px}html body [data-editor=jewelry-box] .ze-canvas-title{font-size:20px}html body [data-editor=jewelry-box] .ze-view-modes{width:100%;margin:0}html body [data-editor=jewelry-box] .ze-view-modes button{flex:1;font-size:12px;padding:8px}.card-head .live-label{display:block}.collection{gap:6px}.collection button{padding:6px 3px}.collection-heading>span{font-size:10px}.print-check{padding:12px}.nozzle-card{padding:9px}.nozzle-results{gap:7px}.nozzle-card small{font-size:10px}dialog{padding:16px}.download-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.download-option{flex-wrap:nowrap;padding:8px}.plate-preview{height:130px}.download-actions{bottom:-16px}.download-actions button{font-size:11px;padding:8px}.compact .nozzle-card{padding:7px}.download-nozzle-item{grid-template-columns:28px minmax(0,1fr)}#toast{bottom:80px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.loading span{animation:none}}

.nozzle-card.is-pending span{color:var(--muted)}

#startup{position:fixed;inset:0;z-index:10000;background:#fffaf1;display:grid;place-items:center;padding:24px;text-align:center}#startup[hidden]{display:none!important}#startup .startup-card{max-width:340px}#startup h1{font:600 18px/1.6 'Yuanti SC','STYuanti','PingFang SC',sans-serif;margin:0;color:#173f73}#startup p{font:13px/1.7 'Yuanti SC','STYuanti','PingFang SC',sans-serif;color:#6b7d90;margin:9px 0 0}#startup-retry{min-height:44px;margin-top:20px}

#color-regions-panel{padding:12px 0}#color-regions-panel h2{font-size:14px;color:var(--ink);margin:0 0 10px}.color-region-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #e5d9d7}.color-region-row label{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px}.color-region-row input,.backing-color input{width:38px;height:38px;padding:2px;border:1px solid #d8c6d0;border-radius:8px;background:#fffdf8}.color-region-row select{min-height:44px;min-width:0;max-width:160px;border:1px solid #ddcdd6;border-radius:8px;background:#fffdf8;color:#173f73;padding:6px;font:12px 'Yuanti SC','PingFang SC',sans-serif}.backing-color{display:flex;align-items:center;gap:12px;font-size:12px;margin:16px 0 8px}#apply-color-layers{display:block;margin-left:auto;font-size:12px}#many-colors-dialog{width:min(360px,calc(100vw - 48px));border:1px solid #dbccd3;border-radius:20px;padding:24px;color:#173f73;background:#fffaf1}#many-colors-dialog h2{font-size:18px}#many-colors-dialog p{line-height:1.7;font-size:14px}#many-colors-dialog button{min-height:44px;margin:8px 4px 0 0;padding:8px 12px}

#hairclip-style-panel{padding:10px 0 18px}#hairclip-style-panel h2{font-size:14px;margin:0 0 12px}.spring-grid{display:grid;gap:8px}.spring-grid label{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:8px}.spring-grid input{width:80px;min-height:40px;border:1px solid #dccbd3;border-radius:7px;padding:5px 8px;font:inherit;color:inherit;background:#fffdf8}#spring-fit-status{color:#92621e}#spring-coupon-size{font-size:12px}

/* Per-style quantities share the export selection; numeric fields do not toggle the checkbox. */
.download-option{display:grid;gap:10px;align-content:start;cursor:default}.download-choice{display:flex;align-items:center;gap:7px;cursor:pointer;min-height:36px}.export-quantity{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.export-quantity input{width:54px;min-width:0;min-height:44px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:#fffdf9;color:var(--ink);padding:6px;font:inherit}.export-quantity input:focus-visible{outline:2px solid var(--pink);outline-offset:2px}.export-quantity input[aria-invalid="true"]{border-color:#b74757}.export-quantity input:disabled{opacity:.5}.download-option:has(input[type="checkbox"]:checked) .export-quantity input{border-color:#df9cb7}
