/* Readable defaults: editing labels are content, not decorative microcopy. */
:root{--muted:#b8bbc7;--line:#41444f}
:root[data-theme=light]{--muted:#545b69;--line:#c8cdd6}
body{font:14px/1.5 Arial,Helvetica,sans-serif}
header nav{font-size:14px}
.editor-screen .studio{grid-template-columns:220px minmax(0,1fr) 360px}
.editor-screen .studio>aside{padding:20px}
.editor-screen .studio>aside>.step-label,.editor-screen .studio>aside>.muted{display:none}
.editor-screen .studio>aside>h2{font-size:19px;margin:0 0 18px;letter-spacing:0}
.editor-screen .document-bar{padding:12px 16px;gap:12px}
.document-bar strong{font-size:15px}.document-type{display:none}
.editor-screen .document-actions button{font-size:13px;min-height:40px;padding:8px 12px;gap:7px}
.document-actions .ui-icon{width:18px;height:18px}
.editor-screen .workflow-tabs{gap:0;margin:0 0 20px}
.editor-screen .workflow-tabs button{min-height:44px;padding:10px 4px;font-size:14px;gap:7px}
.workflow-tabs img{width:18px;height:18px}
.editor-screen .field-head{font-size:15px;margin:22px 0 12px;gap:8px;font-weight:600}
.field-head b{display:none}.field-head span{font-size:13px;font-weight:400}
.editor-screen .workflow-panel h3{font-size:18px;line-height:1.4;margin:0 0 10px}
.editor-screen .panel-help,.editor-screen .small-label,.editor-screen .map-caption,.editor-screen .map-legend,.editor-screen .guide-note,.editor-screen .credits-link{font-size:13px;line-height:1.6;color:var(--muted)}
.editor-screen .control-label,.editor-screen .range-label,.editor-screen .number-grid>label,.editor-screen .text-format-row label,.editor-screen .check-label{font-size:14px;line-height:1.5;color:var(--ink)}
.editor-screen input:not([type=range]):not([type=checkbox]):not([type=color]):not([type=file]),.editor-screen select,.editor-screen textarea{font-size:14px;min-height:40px;padding:9px 10px;line-height:1.4}
.editor-screen .asset-search input{font-size:14px!important;padding:10px 0!important}
.editor-screen input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);flex:none}
.editor-screen input[type=range]{height:6px;margin:16px 0 22px}
.editor-screen .secondary,.editor-screen .primary,.editor-screen .file-label,.editor-screen .preset-row button,.editor-screen .map-zoom button,.editor-screen .visual-transform button,.editor-screen .step-navigation button{font-size:14px;min-height:40px;padding:9px 12px;line-height:1.4}
.editor-screen .seg button{font-size:14px;min-height:36px;padding:8px 12px}
.editor-screen .upload{padding:24px 12px;gap:9px}.editor-screen .upload strong{font-size:15px}.editor-screen .upload small{font-size:13px}
.editor-screen .artline{font-size:13px;line-height:1.5;gap:10px}.editor-screen .artline button{width:36px;height:36px;flex:none}
.editor-screen .product-colour label{font-size:13px;line-height:1.4}
.editor-screen .product-hex{font-size:13px!important;width:92px}
.editor-screen .swatch{width:30px;height:30px}
.editor-screen .asset-library h2{font-size:17px;line-height:1.4;margin:0 0 16px;letter-spacing:0}
.library-heading{display:none}
.editor-screen .asset-library{padding:18px 12px}
.editor-screen .product{font-size:13px;line-height:1.3;padding:8px 4px;color:var(--ink)}
.editor-screen .product-thumb{height:70px;margin-bottom:8px}
.editor-screen .products{gap:10px}
.editor-screen .canvas-top{padding:11px 14px;min-height:44px;gap:14px}
.editor-screen .viewport-hint,#modelNote{font-size:12px;line-height:1.5;max-width:none}
.editor-screen .viewport-tools{padding:5px;gap:3px}
.editor-screen .viewport-tool{width:38px;min-width:38px;height:38px}
.editor-screen .viewport-tool .ui-icon{width:21px;height:21px}
.editor-screen .viewport-dock{max-width:calc(100% - 78px)}
.editor-screen .viewport-dock.expanded{width:340px}
.editor-screen .viewport-dock [role=tab]{font-size:14px;min-height:42px;padding:10px 12px;gap:7px}
.editor-screen .viewport-dock [role=tab] svg{width:18px;height:18px}
.editor-screen .viewport-dock [role=tabpanel]{padding:16px;max-height:min(440px,calc(100dvh - 300px))}
.editor-screen .viewport-dock h3,.editor-screen .viewport-dock h4{font-size:16px;letter-spacing:0}
.editor-screen .viewport-dock label,.editor-screen .viewport-dock .check-label{font-size:13px}
.editor-screen .viewport-dock .panel-help{font-size:13px}
.editor-screen .camera-presets button{font-size:13px;min-height:40px;padding:8px}
.editor-screen .viewport-dock .dock-close{min-width:36px;min-height:42px;padding:8px}
.editor-screen .surface-map-editor{padding:12px;margin-top:20px}
.editor-screen .map-heading strong{font-size:14px}
.editor-screen .map-zoom{flex-wrap:wrap;gap:6px}
.editor-screen .map-zoom button{font-size:12px;padding:7px 9px;min-height:36px}
.editor-screen .map-legend{flex-wrap:wrap;gap:8px}
.editor-screen .surface-map-editor .panel-help{font-size:13px}
.editor-screen .visual-transform label,.editor-screen .unbounded-scale span{font-size:13px}
.editor-screen .nudge button{min-width:38px;min-height:38px}
.editor-screen .nudge label,.editor-screen .order-row>label{font-size:13px}
.editor-screen .quantity{height:40px;font-size:14px}.editor-screen .quantity button{min-width:40px}
.editor-screen .total{font-size:14px}.editor-screen .total small,.editor-screen .demo-note{font-size:12px;line-height:1.5}
.editor-screen .step-navigation{margin-top:20px}.editor-screen .step-navigation button{padding:8px 4px}
.editor-screen .scene-foot>span{display:none}.editor-screen .scene-foot button{font-size:13px;min-height:36px;margin-left:auto}
.editor-screen #cameraReadout{font-size:12px}.editor-screen .workspace-status{font-size:11px;padding:8px 12px}
.editor-screen details>summary{font-size:14px;line-height:1.5;padding:12px 0;cursor:pointer;color:var(--ink)}
.editor-screen .advanced-positioning{margin-top:12px;border-top:1px solid var(--line)}
.editor-screen .advanced-positioning .free-transform-controls>h4,.editor-screen .advanced-positioning .free-transform-controls>.panel-help:first-of-type{display:none}
.editor-screen .placement-status{font-size:13px;line-height:1.5}
.editor-tooltip{font-size:13px;line-height:1.6;max-width:min(300px,calc(100vw - 20px));padding:14px 16px}
.editor-tooltip strong{font-size:14px}.editor-tooltip kbd{font-size:12px}
.collection-screen .catalog strong{font-size:15px}.collection-screen .catalog small,.collection-screen .product-colour label{font-size:13px}.collection-screen .product-hex{font-size:13px!important;width:92px}
@media(max-width:1150px){.editor-screen .studio{grid-template-columns:170px minmax(0,1fr) 320px}.editor-screen .asset-library{padding:14px 10px}.editor-screen .product-thumb{height:58px}.editor-screen .document-actions button{padding:8px}.editor-screen .canvas-top{flex-wrap:wrap}.editor-screen #modelNote{display:none}.editor-screen .viewport-dock [role=tab]{font-size:13px;padding:9px 10px}}
@media(max-width:850px){.editor-screen .studio{grid-template-columns:125px minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(190px,36%)}.editor-screen .studio>aside{padding:16px}.editor-screen .workflow-tabs{top:-16px}.editor-screen .viewport-dock [role=tabpanel]{max-height:calc(55dvh - 150px)}.editor-screen .product-thumb{height:60px}.editor-screen .viewport-hint{font-size:12px}}
@media(max-width:540px){body>header{height:52px;flex-basis:52px}.editor-screen .document-bar{padding:10px;gap:8px}.document-bar strong{font-size:14px}.editor-screen .document-actions{display:flex;flex-wrap:wrap;width:100%;gap:6px!important}.editor-screen .document-actions button{font-size:13px;min-height:38px;padding:7px 9px}.editor-screen .document-actions .export-action{margin-left:auto}.editor-screen .studio{grid-template-columns:minmax(0,1fr);grid-template-rows:100px minmax(0,1fr) minmax(180px,34%)}.editor-screen .asset-library{padding:8px}.editor-screen .product{font-size:13px;flex:0 0 82px;padding:5px}.editor-screen .product-thumb{height:48px;margin-bottom:5px}.editor-screen .canvas-top{padding:7px 10px;min-height:34px;flex-wrap:nowrap}.editor-screen .viewport-hint{font-size:12px}.editor-screen .viewport-tools{display:grid;grid-template-columns:repeat(2,32px);gap:2px;padding:4px;left:6px;top:56px}.editor-screen .viewport-tool{width:32px;min-width:32px;height:32px}.editor-screen .viewport-tools .tool-divider{display:none}.editor-screen .viewport-tool .ui-icon{width:20px;height:20px}.editor-screen .viewport-dock{top:8px;right:6px;max-width:calc(100% - 12px)}.editor-screen .viewport-dock [role=tab]{font-size:13px;padding:8px;min-height:38px;gap:5px}.editor-screen .viewport-dock [role=tab] svg{width:16px;height:16px}.editor-screen .viewport-dock.expanded{width:calc(100% - 90px)}.editor-screen .viewport-dock [role=tabpanel]{padding:12px;max-height:calc(50dvh - 170px)}.editor-screen .viewport-dock .dock-close{min-height:38px}.editor-screen .workflow-tabs button{font-size:14px}.editor-screen .studio>aside{padding:14px}.editor-screen .workflow-tabs{top:-14px}.editor-screen input:not([type=range]):not([type=checkbox]):not([type=color]):not([type=file]),.editor-screen select,.editor-screen textarea{font-size:16px}.editor-screen .workspace-status{padding:5px 8px;font-size:11px}.editor-screen .view-controls{min-height:38px;padding:3px 8px}.editor-screen .view-controls .viewport-tool{width:32px;height:32px}.editor-screen .product-hex{font-size:14px!important}}
.editor-screen .workspace-status{font-size:12px;line-height:1.5}
@media(max-width:540px){header nav a{font-size:13px}.editor-screen .viewport-tools{grid-template-columns:repeat(2,36px)}.editor-screen .viewport-tool{width:36px;min-width:36px;height:36px}.editor-screen .workspace-status{font-size:12px}}
header .bag{font-size:13px;min-height:38px}
dialog #modalBody{font-size:14px;line-height:1.6}dialog .primary,dialog .secondary{font-size:14px;min-height:40px}dialog h2{font-size:22px}
.collection-screen .collection-head p,.collection-screen .creator p{font-size:15px;line-height:1.6}.collection-screen .creator button{font-size:14px}.collection-screen footer{font-size:12px;line-height:1.5}
.editor-screen .document-bar>div:first-child{min-width:100px;flex:1}
.editor-screen #projectName{width:100%;max-width:300px;min-width:100px;font-size:15px;font-weight:600;min-height:40px;border:1px solid transparent;background:transparent;padding:8px;color:var(--ink)}
.editor-screen #projectName:hover{border-color:var(--line);background:var(--field)}.editor-screen #projectName:focus{border-color:var(--accent);background:var(--field)}
.editor-screen .document-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1150px){.editor-screen .document-bar{flex-wrap:wrap}.editor-screen .document-bar>div:first-child{flex-basis:100%}.editor-screen #projectName{max-width:none}.editor-screen .document-actions{width:100%}}
@media(max-width:540px){.editor-screen .document-actions button{padding:6px 8px;min-height:36px}.editor-screen #saveProject{margin-right:auto}.editor-screen .studio{grid-template-rows:90px minmax(0,1fr) minmax(160px,31%)}.editor-screen .viewport-tools{top:52px}.editor-screen .viewport-tool{width:32px;min-width:32px;height:32px}.editor-screen .viewport-tools{grid-template-columns:repeat(2,32px)}}
.viewport-shortcuts{margin-top:16px;border-top:1px solid var(--line)}.viewport-shortcuts p{font-size:13px;color:var(--muted)}.viewport-shortcuts dl{margin:12px 0;display:grid;grid-template-columns:1fr;gap:2px;font-size:13px}.viewport-shortcuts dt{font-weight:600;color:var(--ink);margin-top:8px}.viewport-shortcuts dd{margin:0;color:var(--muted);line-height:1.6}
@media(max-width:540px){.editor-screen #projectName{font-size:16px}}
@supports(height:100cqh){.viewport-shell{container-type:size}.editor-screen .viewport-dock [role=tabpanel]{max-height:min(440px,calc(100cqh - 72px))}}
.project-name-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.editor-screen #projectName{width:clamp(140px,var(--project-title-width,18ch),100%);max-width:100%;border-color:transparent;background:transparent;box-shadow:none;outline:none;border-radius:5px}
.editor-screen #projectName:hover{border-color:transparent;background:color-mix(in srgb,var(--ink) 5%,transparent)}
.editor-screen #projectName:focus{border-color:transparent;background:transparent;box-shadow:none}
.editor-screen #projectName:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Inspector rows share label, slider and right-aligned numeric columns. */
.editor-screen .range-control{display:grid;grid-template-columns:96px minmax(24px,1fr) 24px 72px;align-items:center;gap:6px;width:100%;min-width:0;margin:0;padding:5px 0;min-height:38px}
.editor-screen .range-control .range-title{display:block;margin:0;padding:0;min-width:0;font-size:12px;line-height:1.3;font-weight:400;color:var(--ink)}
.editor-screen .range-control>input[type=range]{width:100%;min-width:0;margin:0;align-self:center}
.editor-screen .range-number{display:flex;align-items:center;min-width:0;height:28px;border:1px solid var(--line);border-radius:4px;background:var(--field);overflow:hidden}
.editor-screen .range-number:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent)}
.editor-screen .range-number input[type=number]{width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:3px 2px 3px 5px;border:0;background:transparent;color:var(--ink);font-size:13px;line-height:20px;text-align:center;font-variant-numeric:tabular-nums;box-shadow:none;outline:none;appearance:textfield;-moz-appearance:textfield}
.editor-screen .range-number input::-webkit-inner-spin-button,.editor-screen .range-number input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.editor-screen .range-number span{padding-right:5px;color:var(--muted);font-size:11px}
.editor-screen .range-number span:empty{display:none}
.editor-screen .range-control .range-reset{display:grid;place-items:center;grid-column:auto;width:24px;min-width:24px;height:28px;min-height:28px;margin:0;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted);font-size:17px;line-height:1;cursor:pointer}
.editor-screen .range-reset:hover{color:var(--ink);border-color:var(--line);background:var(--field)}
.editor-screen .range-reset:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.editor-screen .visual-transform{display:flex;flex-direction:column;gap:0}
.editor-screen .visual-transform>.range-control{flex:none}
.editor-screen .visual-transform>#zeroRotation{display:none}
@media(max-width:540px){.editor-screen .range-control{grid-template-columns:88px minmax(24px,1fr) 28px 76px;min-height:42px}.editor-screen .range-number{height:34px}.editor-screen .range-number input[type=number]{font-size:16px}.editor-screen .range-control .range-reset{width:28px;height:34px;min-height:34px}}

.editor-screen .saved-colours{gap:12px;flex-wrap:wrap;padding-top:6px}
.editor-screen .saved-colour{position:relative;display:inline-flex;padding:4px 10px 0 0}
.editor-screen .saved-colour .swatch{margin:0}
.editor-screen .remove-saved-colour{position:absolute;top:-3px;right:0;display:grid;place-items:center;width:22px;height:22px;min-height:22px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--ink);font-size:16px;line-height:1;cursor:pointer}
.editor-screen .remove-saved-colour:hover{background:var(--field);border-color:var(--accent)}
.editor-screen .remove-saved-colour:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.editor-screen .asset-search{align-items:center;min-height:40px;gap:8px}
.editor-screen .asset-search>.ui-icon{display:block;width:18px;height:18px;flex:0 0 18px;color:var(--muted)}
.editor-screen .asset-search input{display:block;height:38px;min-height:0;margin:0!important;padding:0!important;line-height:38px;align-self:center;box-shadow:none}
.editor-screen #autosaveStatus{font-size:11px;line-height:1.4;white-space:normal}

.checkout-dialog{max-width:760px;max-height:90dvh;overflow:auto;background:var(--panel);color:var(--ink)}
.checkout-dialog h2{font-size:24px;line-height:1.3}.checkout-dialog label{display:block;font-size:14px;margin:14px 0 6px}
.checkout-dialog input:not([type=checkbox]),.checkout-dialog textarea,.checkout-dialog select{display:block;width:100%;min-height:42px;padding:10px;margin-top:6px;background:var(--field);color:var(--ink);border:1px solid var(--line);border-radius:6px;font:inherit}
.checkout-dialog .check-label{display:flex;align-items:flex-start;gap:9px;line-height:1.5}.checkout-dialog .check-label input{flex:none;margin-top:4px}
.checkout-dialog button.primary,.checkout-dialog button.secondary{margin-top:12px;min-height:42px;font-size:14px}.checkout-item{display:flex;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.checkout-item img{width:140px;height:140px;object-fit:contain;border-radius:6px;background:var(--field)}.checkout-item p{font-size:14px}.checkout-item small{display:block;color:var(--muted)}.checkout-item button{display:block;margin-top:8px;text-decoration:underline;color:var(--ink)}
.checkout-estimate small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.checkout-quote{border:1px solid var(--line);border-radius:8px;padding:16px;margin:20px 0}.checkout-quote dl{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:14px}.checkout-quote dd{margin:0;text-align:right}.checkout-quote p{font-size:14px;line-height:1.6}.checkout-reference{overflow-wrap:anywhere;font-size:12px;color:var(--muted)}.checkout-status{color:var(--accent);font-size:14px;line-height:1.5}.checkout-terms{white-space:pre-wrap}.fulfilment-events{font-size:14px;line-height:1.8}
@media(max-width:540px){.checkout-dialog{padding:20px}.checkout-item img{width:90px;height:90px}.checkout-dialog input:not([type=checkbox]),.checkout-dialog textarea,.checkout-dialog select{font-size:16px}}
