/* Compact, closed-by-default tools. The open drawer shares space with the camera. */
#workspace-frame.suite-tools-open{display:grid;grid-template-columns:minmax(0,1fr)350px;grid-template-rows:auto minmax(220px,1fr) auto auto auto auto;align-items:stretch}
#workspace-frame.suite-tools-open>.viewer-toolbar{grid-column:1;grid-row:1;grid-template-columns:minmax(0,1fr);gap:6px}
#workspace-frame.suite-tools-open>.viewer-toolbar .viewer-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%}
#workspace-frame.suite-tools-open>.viewer-shell{grid-column:1;grid-row:2;min-width:0}
#workspace-frame.suite-tools-open>.viewer-options{grid-column:1;grid-row:3}
#workspace-frame.suite-tools-open>.canvas-tools{grid-column:1;grid-row:4}
#workspace-frame.suite-tools-open>.viewer-status{grid-column:1;grid-row:5}
#workspace-frame.suite-tools-open>.inspection-details{grid-column:1;grid-row:6}
#suite-panel.suite-panel{grid-column:2;grid-row:1 / 7;width:350px;min-width:0;max-width:100%;display:flex;flex-direction:column;background:#0b2331;border-left:1px solid #355365;color:#d8e8ee;overflow:hidden;min-height:0;max-height:calc(730px + 185px)}
#suite-panel[hidden],#suite-panel [hidden]{display:none!important}
.suite-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px 8px}
.suite-heading h2{margin:2px 0 0;font-size:20px;line-height:1.2;color:#eef8fb}
.suite-eyebrow{font-size:9px;font-weight:750;letter-spacing:.15em;color:#85bed0}
.suite-heading-actions{display:flex;align-items:center;gap:7px}
#suite-panel .suite-close{font-size:24px;line-height:1;padding:0;width:44px;min-height:44px;color:#b9d1dc;background:transparent;border-color:transparent}
.suite-context{margin:0;padding:0 15px 12px;font-size:11px;line-height:1.5;color:#9fbcc9;overflow-wrap:anywhere}
.suite-tabs{display:flex;gap:2px;padding:0 8px 8px;border-bottom:1px solid #2a4757;flex-shrink:0}
#suite-panel .suite-tabs button{flex:1;min-width:0;padding:9px 3px;min-height:44px;font-size:11px;border-radius:7px;background:transparent;border:1px solid transparent;color:#9fbcc9}
#suite-panel .suite-tabs button[aria-selected=true]{background:#1c475b;border-color:#477187;color:#f0fbff}
.suite-body{overflow:auto;overscroll-behavior:contain;padding:0 15px 15px;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#426173 transparent}
.suite-body section{padding-top:14px}
.suite-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 8px}
.suite-body section>.suite-section-title:first-child{margin-top:0}
.suite-section-title h3{margin:0;font-size:12px;font-weight:700;color:#e5f1f7;line-height:1.4}
#suite-panel .suite-info{flex:0 0 44px;width:44px;min-height:44px;height:44px;font-family:Georgia,serif;font-size:13px;border:1px solid #466374;border-radius:50%;padding:0;background:#132e3e;color:#b8d7e4}
#suite-panel button:not(.suite-info){border:1px solid #3a596b;border-radius:7px;background:#173848;color:#d9edf5;font-family:inherit;font-size:11px;font-weight:600;line-height:1.35;min-height:44px;padding:9px 11px;cursor:pointer;touch-action:manipulation}
#suite-panel button:hover:not(:disabled){background:#234e64;border-color:#729bad;color:#fff}
#suite-panel button:disabled,#suite-panel input:disabled,#suite-panel select:disabled,#suite-panel textarea:disabled{opacity:.4;cursor:not-allowed}
#suite-panel button:focus-visible,#suite-panel input:focus-visible,#suite-panel select:focus-visible,#suite-panel textarea:focus-visible{outline:2px solid #81dcff;outline-offset:3px}
#suite-panel button[aria-pressed=true]{background:#194e62;border-color:#88cfe7;color:#fff}
.suite-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.suite-view-presets{grid-template-columns:repeat(4,minmax(0,1fr))}
.suite-view-presets button:last-child{grid-column:1 / -1}
.suite-button-row{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:8px 0}
.suite-label{display:block;font-size:11px;color:#b6cbd6;margin:10px 0 5px}
.suite-range-label{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#b6cbd6;margin:12px 0 2px}
.suite-range-label output{color:#edf8ff;font-variant-numeric:tabular-nums}
#suite-panel select,#suite-panel input[type=text],#suite-panel textarea{width:100%;min-width:0;box-sizing:border-box;background:#071c29;color:#e3f0f7;border:1px solid #3b596b;border-radius:7px;padding:10px;font-family:inherit;font-size:16px;min-height:44px}
#suite-panel textarea{resize:vertical;max-height:140px;line-height:1.5}
#suite-panel input[type=range]{display:block;width:100%;height:44px;padding:0;margin:0;accent-color:#72bdce;touch-action:pan-y;cursor:pointer}
.suite-check{display:flex;align-items:center;gap:9px;min-height:44px;font-size:11px;color:#c6dce6;cursor:pointer}
.suite-check input{width:17px;height:17px;accent-color:#79cbdb}
.suite-hint{font-size:10px;line-height:1.6;color:#9bb7c4;margin:9px 0;overflow-wrap:anywhere}
.suite-scope,.suite-empty{font-size:10px;line-height:1.6;color:#b0c4ce;border:1px solid #39505d;border-radius:8px;background:#112a38;padding:10px;margin:12px 0;overflow-wrap:anywhere}
.suite-empty{border-color:#655839;background:#2c2a21;color:#e6d4a6}
.suite-input-row{display:flex;align-items:stretch;gap:7px}
.suite-input-row input{flex:1}
.suite-item-list{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}
.suite-item-list li{display:flex;align-items:center;gap:7px;padding:7px 0;border-bottom:1px solid #263f4d}
.suite-item-list li>span,.suite-item-list li>button:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.suite-item-list li>span{font-size:11px;line-height:1.5;white-space:pre-wrap}
#suite-panel .suite-item-list button{font-size:10px;padding:7px;min-height:44px}
.suite-coordinates{font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#c8e3f0;margin:12px 0}
.suite-measure{padding:12px;background:#082f3e;border:1px solid #335e70;border-radius:9px;display:flex;flex-direction:column;gap:4px}
.suite-measure>span{font-size:10px;color:#a9c7d3}
.suite-measure strong{font-size:20px;font-weight:650;overflow-wrap:anywhere}
.suite-stats{margin:4px 0}
.suite-stats>div{padding:9px 0;border-bottom:1px solid #2a414f}
.suite-stats dt{font-size:10px;color:#9fb9c8;margin-bottom:3px}
.suite-stats dd{margin:0;color:#e5f0f6;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.suite-model-presets{display:grid;gap:8px;margin:12px 0}
#suite-panel .suite-model-presets button{text-align:left;padding:12px}
.suite-footer{flex-shrink:0;padding:10px 15px;background:#0d2938;border-top:1px solid #355060}
#suite-panel .suite-footer>button{width:100%}
#suite-status{font-size:10px;color:#9dbbc9;line-height:1.5;margin:7px 0 0;overflow-wrap:anywhere}
#suite-status.is-error{color:#ffc7aa}
.suite-picking #viewer-3d,.suite-picking #viewer-3d canvas{cursor:crosshair}
#workspace-frame:fullscreen.suite-tools-open{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto auto}
#workspace-frame:fullscreen #suite-panel{height:100%;max-height:100dvh}
@media(min-width:901px){#workspace-frame.suite-tools-open>.viewer-toolbar .viewer-actions{margin-left:0}#workspace-frame.suite-tools-open .scan-picker>select{max-width:230px}#workspace-frame.suite-tools-open>.viewer-shell{height:clamp(380px,58vh,730px)}}
@media(max-width:1050px) and (min-width:741px){#workspace-frame.suite-tools-open{grid-template-columns:minmax(0,1fr)310px}#suite-panel.suite-panel{width:310px}.suite-tabs{padding-left:5px;padding-right:5px}.suite-body{padding-left:12px;padding-right:12px}#suite-panel .suite-tabs button{font-size:10px}}
@media(max-width:740px){#workspace-frame.suite-tools-open{display:flex;flex-direction:column}#suite-panel.suite-panel{width:100%;max-width:100%;height:45dvh;max-height:45dvh;min-height:200px;border-left:0;border-top:1px solid #436475;order:5}#workspace-frame.suite-tools-open>.viewer-shell{height:clamp(260px,43dvh,450px);min-height:220px;flex:none}.suite-heading{padding:8px 12px 3px}.suite-heading h2{font-size:16px}.suite-eyebrow{font-size:8px}.suite-context{padding:0 12px 6px;font-size:10px}.suite-tabs{padding:0 8px 5px}.suite-body{padding:0 12px 10px}.suite-body section{padding-top:10px}.suite-footer{padding:6px 12px;display:flex;gap:9px;align-items:center}#suite-panel .suite-footer>button{width:auto;flex:0 0 115px;font-size:10px}#suite-status{margin:0;font-size:9px}#suite-panel button:not(.suite-info),#suite-panel .suite-tabs button,#suite-panel .suite-item-list button{min-height:44px}.suite-check{min-height:44px}#suite-panel .suite-info{min-height:44px;width:44px;flex-basis:44px}.suite-heading-actions{gap:3px}#workspace-frame:fullscreen.suite-tools-open{display:flex}#workspace-frame:fullscreen.suite-tools-open>.viewer-shell{flex:1;height:auto;min-height:160px}#workspace-frame:fullscreen #suite-panel{height:42dvh;max-height:42dvh;flex-shrink:0;min-height:160px}}
@media(max-height:520px) and (max-width:740px){#suite-panel.suite-panel{min-height:0}.suite-context{display:none}.suite-heading{padding-top:4px}.suite-heading h2{font-size:14px}.suite-eyebrow{display:none}.suite-footer{padding-top:3px;padding-bottom:3px}.suite-body{min-height:45px}}
@media(prefers-reduced-motion:reduce){#suite-panel *{scroll-behavior:auto!important}}

#workspace-frame.workspace-expanded.suite-tools-open{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto auto}
#workspace-frame.workspace-expanded #suite-panel{height:100%;max-height:var(--workspace-height,100vh)}
@media(max-width:740px){#workspace-frame.workspace-expanded.suite-tools-open{display:flex}#workspace-frame.workspace-expanded.suite-tools-open>.viewer-shell{flex:1;height:auto;min-height:100px}#workspace-frame.workspace-expanded #suite-panel{height:42vh;height:42dvh;max-height:42vh;max-height:42dvh;flex-shrink:0;min-height:180px}}
@media(max-height:520px) and (orientation:landscape){#workspace-frame.workspace-expanded.suite-tools-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,38%);grid-template-rows:auto minmax(0,1fr) auto auto auto auto}#workspace-frame.workspace-expanded #suite-panel{width:100%;height:100%;min-height:0;max-height:100%;grid-column:2;grid-row:1/7}#workspace-frame.workspace-expanded.suite-tools-open>.viewer-shell{min-height:60px;height:auto;grid-column:1;grid-row:2}#workspace-frame.workspace-expanded.suite-tools-open>.viewer-toolbar{display:flex;flex-wrap:wrap}#workspace-frame.workspace-expanded.suite-tools-open .scan-picker{max-width:none}#workspace-frame.workspace-expanded.suite-tools-open .viewer-actions{width:100%}}
@media(max-height:520px) and (orientation:landscape){#workspace-frame:fullscreen.suite-tools-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,38%);grid-template-rows:auto minmax(0,1fr) auto auto auto auto}#workspace-frame:fullscreen #suite-panel{width:100%;height:100%;min-height:0;max-height:100%;grid-column:2;grid-row:1/7}#workspace-frame:fullscreen.suite-tools-open>.viewer-shell{min-height:60px;height:auto;grid-column:1;grid-row:2}#workspace-frame:fullscreen.suite-tools-open>.viewer-toolbar{display:flex;flex-wrap:wrap}#workspace-frame:fullscreen.suite-tools-open .scan-picker{max-width:none}#workspace-frame:fullscreen.suite-tools-open .viewer-actions{width:100%}}

@media(max-width:740px){#workspace-frame.workspace-expanded.suite-tools-open>.viewer-options,#workspace-frame.workspace-expanded.suite-tools-open>.canvas-tools,#workspace-frame.workspace-expanded.suite-tools-open>.viewer-status,#workspace-frame.workspace-expanded.suite-tools-open>.inspection-details{display:none}#workspace-frame:fullscreen.suite-tools-open>.viewer-options,#workspace-frame:fullscreen.suite-tools-open>.canvas-tools,#workspace-frame:fullscreen.suite-tools-open>.viewer-status,#workspace-frame:fullscreen.suite-tools-open>.inspection-details{display:none}}

@media(max-width:740px){#workspace-frame.suite-tools-open>.viewer-toolbar{order:0}#workspace-frame.suite-tools-open>.viewer-shell{order:1}#workspace-frame.suite-tools-open>#suite-panel{order:2}#workspace-frame.suite-tools-open>.viewer-options{order:3}#workspace-frame.suite-tools-open>.canvas-tools{order:4}#workspace-frame.suite-tools-open>.viewer-status{order:5}#workspace-frame.suite-tools-open>.inspection-details{order:6}}
