/* Keep the selected Counter Tile controls in the PM3D blue accent. */
.pm3d-studio[data-kind="qr_stand"]{--theme-action:#315cf0}
.pm3d-studio[data-kind="qr_stand"] .qr-workspace{display:grid;grid-template-columns:minmax(0,1fr) 360px;min-height:calc(100dvh - 100px);background:var(--theme-surface-muted)}
.pm3d-studio[data-kind="qr_stand"] .qr-preview{min-width:0;display:flex;flex-direction:column}
.pm3d-studio[data-kind="qr_stand"] .qr-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:32px 32px 12px}
.pm3d-studio[data-kind="qr_stand"] .qr-heading h1{font:700 clamp(26px,3vw,42px)/1.15 var(--head);letter-spacing:-1px;margin:0 0 12px;color:var(--theme-text)}
.pm3d-studio[data-kind="qr_stand"] .qr-heading p{font-size:16px;line-height:1.5;color:var(--theme-text-muted);margin:0}
.pm3d-studio[data-kind="qr_stand"] .qr-modes{display:flex;flex:none;border:1px solid var(--theme-border);border-radius:10px;padding:4px;background:var(--theme-surface)}
.pm3d-studio[data-kind="qr_stand"] .qr-modes button{min-height:48px;padding:10px 26px;border:0;border-radius:7px;background:transparent;color:var(--theme-text-muted);font-size:15px;white-space:nowrap}
.pm3d-studio[data-kind="qr_stand"] .qr-modes .selected{background:var(--theme-action);color:var(--theme-action-text)}
.pm3d-studio[data-kind="qr_stand"] .stage{flex:1;min-height:580px;height:auto;overflow:hidden;background:var(--theme-surface-muted)}
.pm3d-studio[data-kind="qr_stand"] #viewport{position:absolute;inset:26px 0 66px}
.pm3d-studio[data-kind="qr_stand"] .model-badge{top:6px;left:32px;font-size:11px}
.pm3d-studio[data-kind="qr_stand"] .view-tools{position:absolute;display:flex;flex-direction:row;top:auto;right:auto;bottom:8px;left:50%;transform:translateX(-50%);padding:5px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface)}
.pm3d-studio[data-kind="qr_stand"] .view-tools button{width:auto;min-width:64px;min-height:44px;font-size:15px;border-radius:6px;padding:10px 16px}
.pm3d-studio[data-kind="qr_stand"] .view-tools button[hidden]{display:none}
.pm3d-studio[data-kind="qr_stand"] .view-tools .active{background:var(--theme-action);color:var(--theme-action-text)}
.pm3d-studio[data-kind="qr_stand"] .qr-layout-help{padding:4px 32px 18px;margin:0;color:var(--theme-text-muted);font-size:13px}
.pm3d-studio[data-kind="qr_stand"] .qr-editor{padding:30px 28px;border-left:1px solid var(--theme-border);max-height:none;overflow:visible;background:var(--theme-surface)}
.pm3d-studio[data-kind="qr_stand"] #open-export{min-height:44px;font-size:13px}
.pm3d-studio[data-kind="qr_stand"] .qr-save-link{display:block;margin:22px auto 32px;background:transparent;border:0;color:var(--theme-link);text-decoration:underline;font-size:15px}
.pm3d-studio[data-kind="qr_stand"] .design-save-bar{display:grid;gap:8px;padding:0;background:transparent;border:0;margin:0 0 30px;font-size:15px}
.pm3d-studio[data-kind="qr_stand"] .design-save-bar input{min-width:0;max-width:none;width:100%;padding:13px;border-radius:6px;font-size:15px}
.pm3d-studio[data-kind="qr_stand"] #design-save-status:empty{display:none}
.pm3d-studio[data-kind="qr_stand"] .studio-controls{gap:30px;margin-bottom:0}
.pm3d-studio[data-kind="qr_stand"] .studio-control label{font-size:15px;font-weight:400;color:var(--theme-text-muted)}
.pm3d-studio[data-kind="qr_stand"] .studio-control input:not([type=range]),.pm3d-studio[data-kind="qr_stand"] .studio-control select{min-height:48px;padding:12px;border-radius:6px;font-size:15px}
.pm3d-studio[data-kind="qr_stand"] .studio-control-row output{font-size:12px}
.pm3d-studio[data-kind="qr_stand"] input[type=range]{height:5px;margin:15px 0}
.pm3d-studio[data-kind="qr_stand"] input[type=range]::-webkit-slider-thumb{width:20px;height:20px;background:var(--theme-text);border:0;box-shadow:none}
.pm3d-studio[data-kind="qr_stand"] input[type=range]::-moz-range-thumb{width:20px;height:20px;background:var(--theme-text);border:0;box-shadow:none}
.pm3d-studio[data-kind="qr_stand"] .qr-print-settings{border-block:1px solid var(--theme-border);padding:20px 0}
.pm3d-studio[data-kind="qr_stand"] summary{cursor:pointer;font-size:15px;color:var(--theme-text);min-height:28px}
.pm3d-studio[data-kind="qr_stand"] .qr-settings-body{display:grid;gap:22px;padding-top:20px}
.pm3d-studio[data-kind="qr_stand"] .qr-print-note{padding:28px 0 10px}
.pm3d-studio[data-kind="qr_stand"] .qr-print-note p:first-child{font-size:18px;color:var(--theme-text);margin:0 0 12px}
.pm3d-studio[data-kind="qr_stand"] .qr-print-note p:last-child{font-size:14px;line-height:1.7;color:var(--theme-text-muted);margin:0 0 12px}
.pm3d-studio[data-kind="qr_stand"] .qr-details{border-top:1px solid var(--theme-border);padding:14px 0}
.pm3d-studio[data-kind="qr_stand"] .measurements{position:static;display:grid;grid-template-columns:1fr 1fr;padding-top:20px;gap:18px}
.pm3d-studio[data-kind="qr_stand"] .measurements strong{font-size:16px}
.pm3d-studio[data-kind="qr_stand"] .qr-history,.pm3d-studio[data-kind="qr_stand"] .qr-save-options{display:flex;gap:18px;align-items:center;padding:18px 0 4px}
.pm3d-studio[data-kind="qr_stand"] .qr-history button,.pm3d-studio[data-kind="qr_stand"] .qr-save-options button{background:transparent;border:0;color:var(--theme-link);text-decoration:underline;font-size:14px}
.pm3d-studio[data-kind="qr_stand"] .qr-quote .request-panel{border:0;padding-top:12px;margin-top:0}
.pm3d-studio[data-kind="qr_stand"] button:focus-visible,.pm3d-studio[data-kind="qr_stand"] summary:focus-visible{outline:2px solid var(--theme-focus);outline-offset:4px}
@media(min-width:1200px){.pm3d-studio[data-kind="qr_stand"] .qr-workspace{grid-template-columns:minmax(0,1fr) 390px}.pm3d-studio[data-kind="qr_stand"] .qr-heading{padding-top:38px}.pm3d-studio[data-kind="qr_stand"] .stage{min-height:650px}}
@media(max-width:1150px){.pm3d-studio[data-kind="qr_stand"] .qr-heading{flex-direction:column;gap:18px}.pm3d-studio[data-kind="qr_stand"] .qr-modes{align-self:stretch}.pm3d-studio[data-kind="qr_stand"] .qr-modes button{flex:1}.pm3d-studio[data-kind="qr_stand"] .qr-workspace{grid-template-columns:minmax(0,1fr) 310px}.pm3d-studio[data-kind="qr_stand"] .qr-editor{padding:24px}}
@media(max-width:750px){.pm3d-studio[data-kind="qr_stand"] .qr-workspace{display:flex;flex-direction:column}.pm3d-studio[data-kind="qr_stand"] .qr-heading{padding:24px 20px 12px}.pm3d-studio[data-kind="qr_stand"] .qr-heading h1{font-size:30px}.pm3d-studio[data-kind="qr_stand"] .qr-heading p{font-size:14px}.pm3d-studio[data-kind="qr_stand"] .qr-modes button{padding:10px 12px}.pm3d-studio[data-kind="qr_stand"] .stage{height:460px;min-height:460px;flex:none}.pm3d-studio[data-kind="qr_stand"] .qr-editor{border-left:0;border-top:1px solid var(--theme-border);min-height:0}.pm3d-studio[data-kind="qr_stand"] .qr-layout-help{padding:4px 20px 16px}.pm3d-studio[data-kind="qr_stand"] .model-badge{left:20px}}

/* Keep camera tools on screen while advanced sidebar sections scroll. */
@media(min-width:751px){
  .pm3d-studio[data-kind="qr_stand"] .qr-workspace{height:calc(100dvh - 61px);min-height:720px}
  .pm3d-studio[data-kind="qr_stand"] .qr-preview{min-height:0}
  .pm3d-studio[data-kind="qr_stand"] .stage{min-height:0}
  .pm3d-studio[data-kind="qr_stand"] .qr-editor{max-height:100%;overflow-y:auto;min-height:0}
}
