@import url("./surface-color-editor.css");
html body .workshop-editor{--theme:var(--feature-theme);--zl-accent:color-mix(in srgb,var(--feature-theme) 28%,#fbf6ea);--zl-border:color-mix(in srgb,var(--feature-theme) 24%,#ded8c9)}
html body .workshop-editor .zl-tool[aria-selected=true]{background:color-mix(in srgb,var(--feature-theme) 30%,#fbf6ea)!important;border-color:var(--feature-theme)!important}
html body .workshop-editor .zl-tool:hover{background:color-mix(in srgb,var(--feature-theme) 15%,#fbf6ea)!important}.workshop-editor .field input[type=range]{accent-color:var(--feature-ink)}.workshop-editor .eyebrow{color:var(--feature-ink)}.workshop-editor .primary{background:var(--feature-theme);border-color:var(--feature-ink)}.workshop-editor button:focus-visible,.workshop-editor input:focus-visible,.workshop-editor select:focus-visible{outline:2px solid var(--feature-ink);outline-offset:3px}
.module-row{display:flex;align-items:center;gap:4px;border:1px solid #ded8c9;background:#fffaf2;padding:8px;border-radius:10px;margin:8px 0}.module-row strong{font-size:13px;flex:1}.module-row button{padding:4px;min-width:28px;font-size:11px}.module-number{font-size:12px;color:var(--feature-ink);width:19px}.palette-options{display:flex;gap:9px;flex-wrap:wrap;margin-top:25px}.palette-options button{width:32px;height:32px;min-height:32px;border-radius:50%;background:var(--swatch);border:3px solid #fff7e6;box-shadow:0 0 0 1px #b2aa98;padding:0}.workshop-editor input[type=color]{height:48px;padding:5px}.upload-button{display:flex;justify-content:center;align-items:center;min-height:44px;background:color-mix(in srgb,var(--feature-theme) 25%,#fbf6ea);border:1px solid var(--feature-theme);border-radius:9px;font-size:13px;margin:15px 0;cursor:pointer}.upload-button input{position:absolute;opacity:0;width:1px;height:1px}#upload-status{font-size:12px;line-height:1.7}#template-preview{text-align:center;margin:15px 0}#template-preview img{width:130px;height:130px;object-fit:contain;border-radius:10px;mix-blend-mode:multiply}#motif-preview img,.plate-motif-preview img{width:80px;height:80px;object-fit:contain;margin:15px auto;display:block}#manufacturing-note{margin:8px 0 0;font-size:11px;line-height:1.6;color:#6e746c;max-width:840px}#download-status{font-size:11px;color:var(--feature-ink);margin:4px 0}.workshop-editor .model-caption{margin-top:4px}.flag-row{display:flex;gap:5px;margin:6px 0}.flag-row button{font-size:12px;padding:5px 8px}.flag-row button:first-child{flex:1}.flag-row button[aria-pressed=true]{background:color-mix(in srgb,var(--feature-theme) 30%,#fbf6ea)}
.workshop-editor #viewport{bottom:120px}.workshop-editor .stage-footer{margin-top:auto}.workshop-editor .stage-header h2{font-size:29px}.workshop-editor .zl-stage{display:flex;flex-direction:column}.workshop-editor .stage-header{flex-shrink:0}.workshop-editor #preview-error{bottom:140px}.workshop-editor .view-switch{top:96px}
@media(max-width:760px){.workshop-editor #viewport{bottom:98px!important;top:70px!important}.workshop-editor .stage-header h2{font-size:20px}.workshop-editor .view-switch{top:41px;right:10px;left:auto;transform:none}.workshop-editor #manufacturing-note{font-size:9px;max-height:30px;overflow:auto}.workshop-editor .model-caption{font-size:9px;min-height:16px}.workshop-editor #download-status{display:none}.workshop-editor .zl-panel-title{font-size:20px!important}.workshop-editor #preview-error{bottom:100px}.workshop-editor #template-preview img{height:95px;width:95px}}

.workshop-editor .view-switch button[aria-pressed=true]{background:color-mix(in srgb,var(--feature-theme) 35%,#fbf6ea)!important}.workshop-editor #loading{border-color:var(--feature-theme)}



#tripo-connection-dialog{width:min(460px,calc(100vw - 32px));box-sizing:border-box;padding:26px;border:2px solid var(--feature-ink,#33466b);border-radius:20px;background:#fffaf0;color:#263954}#tripo-connection-dialog::backdrop{background:rgba(24,34,52,.35)}#tripo-connection-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}#tripo-connection-dialog h2{font-size:20px;margin:0}#tripo-connection-dialog .dialog-heading button{flex:0 0 32px;padding:5px;border:0;background:transparent}#tripo-connection-dialog input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #c5bba6;border-radius:10px;background:#fff}#tripo-connection-status{font-size:13px;line-height:1.6;overflow-wrap:anywhere}#api-status{margin:6px 0 16px}#refresh-models{margin:8px 0 14px}.model-source-heading{gap:10px;flex-wrap:wrap}

.plate-view-actions{display:flex;gap:8px;margin:16px 0}.plate-view-actions button{flex:1;font-size:12px;padding:10px 6px}

/* Ornament placement: view navigation stays beside the 3D viewport. */
.ornament-views{display:flex;gap:5px;width:100%;justify-content:flex-end}
.ornament-views button{min-width:38px;min-height:38px;padding:5px 10px}
.ornament-ring-turn{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 20px}
.ornament-ring-turn span{font-size:13px;color:var(--ink)}
.ornament-ring-turn button{padding:10px 14px;min-height:42px}


/* Ornament canvas: flat placement first, orbit only in preview. */
body[data-feature=ornament] .ornament-canvas-modes{position:absolute;top:24px;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:4px;background:#f4eddf;border-radius:16px;z-index:5;white-space:nowrap}
body[data-feature=ornament] .ornament-canvas-modes button,body[data-feature=ornament] .ornament-canvas-faces button{border:0;background:transparent;font-size:14px;padding:12px 16px;border-radius:12px;min-height:44px;color:var(--feature-ink)}
body[data-feature=ornament] .ornament-canvas-modes [aria-pressed=true],body[data-feature=ornament] .ornament-canvas-faces [aria-pressed=true]{background:#dae7f0}
body[data-feature=ornament] .ornament-canvas-faces{position:absolute;top:102px;left:34px;display:flex;flex-direction:column;gap:4px;padding:4px;background:#fffaf0;border:1px solid #d5dfe3;border-radius:16px;z-index:5}
body[data-feature=ornament] .ornament-canvas-faces[hidden]{display:none}
body[data-feature=ornament] .stage-header{visibility:hidden;pointer-events:none}
html body[data-feature=ornament] .zl-stage>.history.ze-history{position:absolute!important;inset:auto 28px 182px auto!important;width:auto!important;z-index:5;display:flex;gap:8px;padding:5px;border-radius:16px;background:#fffaf0}
html body[data-feature=ornament] .zl-stage>.history.ze-history button{width:44px!important;height:44px;min-width:44px!important;padding:8px!important;border-radius:12px}
html body[data-feature=ornament] .zl-stage>.history.ze-history .zb-ui-symbol{display:inline-block!important;width:27px!important;height:27px!important;margin:0!important}
@media(max-width:760px){body[data-feature=ornament] .ornament-canvas-modes{top:10px}body[data-feature=ornament] .ornament-canvas-modes button,body[data-feature=ornament] .ornament-canvas-faces button{font-size:12px;padding:9px 12px}body[data-feature=ornament] .ornament-canvas-faces{top:66px;left:10px}html body[data-feature=ornament] .zl-stage>.history.ze-history{inset:auto 12px 142px auto!important}}

/* Ornament: compact progress belongs to download, not the canvas footer. */
body[data-feature=ornament] #ring-placement-note,body[data-feature=ornament] #ring-drag-status,body[data-feature=ornament] #panel-style>p.hint:last-child,body[data-feature=ornament] .model-caption,body[data-feature=ornament] #manufacturing-note{display:none}
body[data-feature=ornament] .honor-completion[hidden],body[data-feature=ornament] .ornament-canvas-faces button[hidden]{display:none!important}
body[data-feature=ornament] .honor-download-badge{display:inline-flex;align-items:center;gap:5px;margin-left:9px;padding-left:10px;border-left:1px solid #ffffff55;line-height:1}
body[data-feature=ornament] .honor-download-piece{display:inline-flex;position:relative;width:27px;height:27px}
body[data-feature=ornament] .honor-download-piece svg{width:100%;height:100%}
body[data-feature=ornament] .honor-download-badge[data-collected=false] .honor-download-piece{opacity:.45}
body[data-feature=ornament] .honor-download-count{font-size:12px;white-space:nowrap}
body[data-feature=ornament] .stage-footer{padding-bottom:8px}
body[data-feature=ornament] #viewport{bottom:76px}
html body[data-feature=ornament] .zl-stage>.history.ze-history{inset:auto 28px 70px auto!important}
@media(max-width:760px){html body[data-feature=ornament] .zl-stage>.history.ze-history{inset:auto 12px 74px auto!important}body[data-feature=ornament] .honor-download-badge{margin-left:5px;padding-left:6px}body[data-feature=ornament] .honor-download-piece{width:22px;height:22px}}

/* Ornament color panel: only controls, no persistent explanatory copy. */
body[data-feature=ornament] #ornament-color-note,
body[data-feature=ornament] #ornament-edit-hint,
body[data-feature=ornament] #ornament-edit-status:not([data-error="true"]),
body[data-feature=ornament] #panel-color .ornament-chip-copy small {display:none}
body[data-feature=ornament] #ornament-edit-status[data-error="true"] {color:#b64233}
