/* Shared Prio workspace. Only the embedded customer tools opt into this layout. */
html.workshop-desk,html.workshop-desk body,html.workshop-desk #host {height:100dvh!important;min-height:0;overflow:hidden;margin:0}
.workshop-desk body.compact-mode main,.workshop-desk main>.layout,.workshop-desk main .layout,.workshop-desk #form-section {height:100%;min-height:0;max-width:none;padding:0!important;margin:0;border:0!important;border-radius:0!important;box-shadow:none!important}
.workshop-desk #host>gravuru-configurator {display:block;height:100%!important}
.workshop-desk #notice:not(.error) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.workshop-desk .compact-mode #template-form,:host .workspace {
 box-sizing:border-box;display:grid!important;height:100dvh!important;min-height:0!important;
 grid-template-columns:minmax(0,1.4fr) minmax(310px,.85fr)!important;grid-template-rows:minmax(0,1fr);align-items:stretch!important;gap:0!important;
 padding:0!important;margin:0!important;background:#fff;
}
.workshop-desk .compact-mode .construction-preview,:host .workspace .stage-wrap {
 box-sizing:border-box;grid-area:1/1!important;height:100%!important;max-height:none;overflow:auto!important;min-height:0!important;
 margin:0;padding:clamp(12px,2.5vw,34px)!important;border:0!important;border-radius:0!important;background:#f3f4f1!important;scrollbar-width:thin
}
.workshop-desk .compact-mode .construction-fields,:host .workspace .customer-tools {
 box-sizing:border-box;grid-area:1/2!important;min-height:0!important;height:100%!important;overflow:auto!important;
 padding:clamp(16px,2.5vw,32px)!important;border:0!important;border-left:1px solid #d9dbd5!important;background:#fff;scrollbar-width:thin;overscroll-behavior:contain;
}
.workshop-desk .compact-mode .option-heading {font-size:clamp(18px,1.4vw,23px);line-height:1.25;margin:0 0 13px}
.workshop-desk .option-switcher {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:#eeefec;padding:3px;border-radius:12px;margin:0 0 18px}
.workshop-desk #template-form #workshop-inputs .option-switcher button:not(.primary) {display:grid;place-items:center;text-align:center;min-height:42px;min-width:0;padding:6px 1px;font-size:14px;line-height:1.15;color:#434742!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none}
.workshop-desk #template-form #workshop-inputs .option-switcher button[aria-pressed=true] {color:#111!important;background:#fff!important;box-shadow:0 1px 4px #0002}
.workshop-desk .construction-fields>.customer-section {border:0!important;box-shadow:none!important;border-radius:0!important;margin:0}
.workshop-desk .construction-fields>.customer-section>summary {display:none}
.workshop-desk .construction-fields>.customer-section>.customer-section-body {padding:0;gap:14px;background:transparent}
.workshop-desk .compact-mode .customer-product-choices {margin:0}
.workshop-desk .compact-mode .construction-fields label {display:grid;gap:5px}
.workshop-desk .compact-mode .construction-fields label.check {display:flex;align-items:center}
.workshop-desk .compact-mode #customer-extras .customer-section-body {display:grid;grid-template-columns:1fr}
.workshop-desk .compact-mode .construction-preview .layer-selection {position:relative;z-index:5;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;width:100%;margin:0 0 4px}
.workshop-desk .compact-mode .layer-selection button,.workshop-desk .compact-mode .part-menu>summary,.workshop-desk .compact-mode #toggle-guides {
 box-sizing:border-box;display:inline-grid;place-items:center;text-align:center;min-height:42px;line-height:1.2;font-size:13px;min-width:0;padding:6px 13px;margin:0;cursor:pointer;color:#252a26!important;background:#fff!important;border:1px solid #c7cbc5!important;border-radius:9px!important;font-weight:650;
}
.workshop-desk .compact-mode .layer-selection #select-steel {padding-inline:13px}
.workshop-desk .part-menu {position:relative;margin:0!important;font-size:14px}
.workshop-desk .compact-mode .part-menu>summary {list-style:none;background:#202620!important;color:#fff!important;border-color:#202620!important}
.workshop-desk .part-menu>summary::-webkit-details-marker {display:none}
.workshop-desk .part-choices {position:absolute;top:calc(100% + 4px);left:0;z-index:9;display:grid;gap:3px;min-width:180px;max-width:calc(100vw - 26px);padding:4px;border:1px solid #cfd2cb;border-radius:10px;background:#fff;box-shadow:0 6px 20px #0002}
.workshop-desk .compact-mode .part-choices button {width:100%;min-height:44px;border:0!important;background:#fff!important;color:#171b17!important}
.workshop-desk .compact-mode .layer-selection .part-choices button:hover {background:#eeefec!important}
.workshop-desk .compact-mode #toggle-guides {margin-left:auto}
.workshop-desk .compact-mode #toggle-guides[aria-pressed=true] {background:#e3e7de!important;border-color:#a4aca0!important;color:#20251e!important}
.workshop-desk .compact-mode :is(#preview-shell,#preview) {position:relative;background:transparent!important;margin:0;padding:0}
.workshop-desk .compact-mode #preview svg {display:block;width:100%;height:clamp(190px,65dvh,720px)!important;min-height:0!important;max-height:none!important;margin:0 auto}
.workshop-desk .compact-mode .construction-preview [hidden],.workshop-desk .compact-mode .construction-fields [hidden] {display:none!important}
.workshop-desk .compact-mode :is(#geometry-note:not(:has(button)),#symmetry-note):not(.error):not(.warning) {font-size:12px;margin:5px 0}
.workshop-desk .compact-mode .object-dimensions,:host .object-dimensions {padding:4px 8px;margin:4px 0;border:0;border-radius:10px;background:#ffffffb8}
.workshop-desk .compact-mode .object-dimensions button,:host .object-dimensions button {display:inline-grid;place-items:center;text-align:center;line-height:1.2}
.workshop-desk .compact-mode #status:not(.error) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.workshop-desk .compact-mode #status.error {position:absolute;bottom:0;left:4px;font-size:12px;z-index:2;background:#fff}
.workshop-desk [data-workspace-artwork] [data-object] {cursor:pointer;touch-action:pan-y}
:host .workspace .stage {flex:1;min-height:80px!important;padding:12px 2% 35px!important;display:flex;align-items:center;justify-content:center}
:host .workspace .stage:not([data-magnified]) .plate-holder {width:min(100%,calc(51dvh * var(--plate-ratio,1.5)))!important;max-width:100%!important}
:host .workspace .stage-wrap {display:flex!important;flex-direction:column;gap:2px}
:host .workspace .stage-top,:host .workspace .stage-bottom {flex:none;min-height:40px;padding:2px 0!important}
:host .workspace .customer-panels {border:0!important;border-radius:0}
:host .workspace .customer-panels .sidebar,:host .workspace .customer-panels .inspector {padding:0!important}
:host .workspace .customer-panels .inspector {padding-top:12px!important}
:host .workspace .customer-tools>button.mobile-edit-jump,:host .workspace .mobile-edit-jump,:host .workspace .back-to-preview {display:none!important}
:host .workspace .customer-tools button:not(.motif),:host .workspace .stage-top button,:host .workspace .stage-bottom button {text-align:center;line-height:1.2;align-items:center;justify-content:center}
:host .workspace .customer-tools :is(.wide,.icon-button,.action-row button,.customer-size-stepper button),:host .workspace .stage-top button {display:inline-flex}
:host .workspace .customer-tools .wide {width:100%}
@media(max-width:700px) {
 .workshop-desk .compact-mode #template-form,:host .workspace {
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(110px,min(calc(74vw + 123px),calc(100% - 138px))) minmax(0,1fr)!important;display:grid!important
 }
 .workshop-desk .compact-mode .construction-preview,:host .workspace .stage-wrap {grid-area:1/1!important;min-width:0;padding:5px 8px!important;scrollbar-width:thin}
 .workshop-desk .compact-mode .construction-fields,:host .workspace .customer-tools {grid-area:2/1!important;min-width:0;border:0!important;border-top:1px solid #d5d8d1!important;padding:12px!important}
 .workshop-desk .compact-mode .option-heading {font-size:17px;margin:0 0 8px}
 .workshop-desk .option-switcher {position:sticky;top:-1px;z-index:3;margin:0 0 12px}
 .workshop-desk .compact-mode .layer-selection button,.workshop-desk .compact-mode .part-menu>summary,.workshop-desk .compact-mode #toggle-guides {min-height:42px;padding:5px 9px;font-size:12px}
 .workshop-desk .compact-mode #preview svg {height:clamp(100px,min(74vw,49dvh),450px)!important}
 .workshop-desk .compact-mode .part-choices {left:50%;transform:translateX(-50%)}
 :host .workspace .stage {flex:1 0 auto;padding:4px 1% 21px!important;min-height:80px!important}
 :host .workspace .stage:not([data-magnified]) .plate-holder {width:min(100%,calc(38dvh * var(--plate-ratio,1.5)))!important}
 :host .workspace .stage-top,:host .workspace .stage-bottom {min-height:40px;padding:0!important}
 :host .workspace .customer-tools {margin:0;position:static!important;max-height:none!important}
}
@media(prefers-reduced-motion:reduce){.workshop-desk *,:host .workspace *{scroll-behavior:auto!important}}

/* Keep both millimetre inputs together at the edge of the object. */
.workshop-desk .compact-mode #template-form .construction-fields>label.wide {display:none}
.workshop-desk #preview-shell .object-dimension-row,:host .workspace .object-dimension-row {
 display:grid!important;grid-template-columns:minmax(84px,1fr) minmax(56px,100px) minmax(56px,100px)!important;align-items:center;gap:6px;padding:3px 0;
}
.workshop-desk #preview-shell .object-dimension-row>button,:host .workspace .object-dimension-row>:is(strong,button) {
 grid-column:auto;min-height:36px;line-height:1.15;justify-self:start;font-size:12px;padding:5px 8px;text-align:center
}
.workshop-desk #preview-shell .object-dimension-row label,:host .workspace .object-dimension-row label {font-size:11px;line-height:1.2;margin:0}
.workshop-desk #preview-shell .object-dimension-row input:not([type=checkbox]),:host .workspace .object-dimension-row input {min-height:36px!important;height:36px;padding:3px 6px;width:100%;font-size:16px}
.workshop-desk #preview-shell .object-dimensions>p,:host .workspace .object-dimensions>p {display:none}
.workshop-desk #preview-shell .object-dimension-row[hidden],:host .workspace .object-dimension-row[hidden] {display:none!important}
.workshop-desk .compact-mode #template-form .construction-preview #geometry-note:empty {display:none}
@media(max-width:700px) {
 .workshop-desk .compact-mode .layer-selection {flex-wrap:nowrap!important}
 :host .workspace .stage:not([data-magnified]) {flex:0 0 auto;display:flex;justify-content:center;padding-bottom:28px!important}
 :host .workspace .stage-bottom {display:flex!important;align-items:center;justify-content:space-between!important}
 :host .workspace .stage-bottom .customer-view-hint {display:none}
}

.workshop-desk .material-samples {min-width:0;padding:0;margin:0 0 18px;border:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.workshop-desk .material-samples legend {float:none;padding:0 0 8px;font-size:14px;font-weight:700}
.workshop-desk #template-form #workshop-inputs .material-samples button {position:relative;display:grid;grid-template-rows:clamp(40px,7dvh,72px) auto;place-items:stretch;padding:3px;width:100%;min-width:0;margin:0;overflow:hidden;background:#fff!important;color:#151815!important;border:1px solid #d2d5cd!important;border-radius:10px!important}
.workshop-desk #template-form #workshop-inputs .material-samples button[aria-pressed=true] {padding:2px;border:2px solid #242b24!important}
.workshop-desk .material-samples img {width:100%;height:100%;object-fit:cover;border-radius:6px}
.workshop-desk .material-samples span {display:grid;place-items:center;text-align:center;min-height:32px;font-size:14px;line-height:1.2}

:host .workspace .stage-top .drawing-add-part {display:inline-grid;place-items:center;text-align:center;min-height:42px;padding:7px 13px;border-radius:9px;background:#202620;color:#fff;border:1px solid #202620;font-size:13px;line-height:1.15}
:host .workspace .stage-top:has(.drawing-add-part) .stage-caption {display:none}

.workshop-desk #template-form #workshop-inputs .construction-switch {display:grid;place-items:center;width:100%;min-height:44px;padding:6px 14px;border:1px solid #d2d5cd!important;border-radius:9px!important;background:#fff!important;color:#252a26!important;text-align:center;font:650 14px/1.25 var(--g-sans)}

@media(max-width:700px){
 .workshop-desk .compact-mode .construction-preview,:host .workspace .stage-wrap {container-type:size}
 .workshop-desk .compact-mode #preview svg {height:max(82px,min(74vw,calc(100cqh - 124px)))!important}
 .workshop-desk #template-form:has(#acrylic-enabled:checked),:host .workspace:has(.object-dimension-row:nth-child(2):not([hidden])) {grid-template-rows:minmax(130px,min(calc(74vw + 184px),calc(100% - 138px))) minmax(0,1fr)!important}
 .workshop-desk #template-form:has(#acrylic-enabled:checked) #preview svg {height:max(64px,min(74vw,calc(100cqh - 186px)))!important}
 :host .workspace .stage-bottom>span:not(.check-guide){display:none!important}
 :host .workspace .stage-bottom {flex-flow:row nowrap!important;gap:4px!important;min-height:38px}
 :host .workspace .stage-bottom .customer-view-scale {min-height:36px;gap:3px;font-size:12px}
 :host .workspace .stage-bottom .customer-view-scale input {width:clamp(50px,15vw,75px)}
 :host .workspace .stage:not([data-magnified]) .plate-holder {width:min(100%,calc(max(65px,100cqh - 182px) * var(--plate-ratio,1.5)))!important}
 :host .workspace:has(.object-dimension-row:nth-child(2):not([hidden])) .stage:not([data-magnified]) .plate-holder {width:min(100%,calc(max(60px,100cqh - 235px) * var(--plate-ratio,1.5)))!important}
}
