:root{color-scheme:dark;--bg:#101218;--panel:#1a1d25;--line:#303541;--muted:#a5acbc;--text:#e9edf5;--accent:#bca4ff;--green:#87d6bb;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}
#lab{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
button,select{font:inherit;color:inherit;background:#262b36;border:1px solid #444c5c;border-radius:6px;min-height:34px;padding:6px 10px}
button{cursor:pointer}
button:hover{background:#343b4b;border-color:#8c80ac}
button:disabled{opacity:.4;cursor:wait}
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,#viewport:focus-visible,.uv-splitter:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
select{display:block;width:100%;min-width:0;margin-top:6px}
label{display:block;font-size:12px;color:#c8cfdd;font-weight:600}
h1,h2,p{margin:0}
h1{font-size:20px;font-weight:650;letter-spacing:-.3px}
h2{font-size:14px;font-weight:650}
p{color:var(--muted)}
.top{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;border-bottom:1px solid var(--line)}
.brand,.top-actions{display:flex;gap:12px;align-items:center}
.brand-mark{display:grid;place-items:center;background:#bca4ff;color:#1b1233;font-size:23px;font-weight:800;width:38px;height:38px;border-radius:9px}
.brand p{font-size:12px;margin-top:3px}
.top-actions label{display:flex;align-items:center;gap:8px}
.top-actions select{width:180px;margin:0}
.top-actions button{white-space:nowrap}
#capture{font-weight:500}
.review-view-list{display:grid;gap:8px;margin:14px 0}
.review-view-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:3px 10px;text-align:left;align-items:center;overflow:hidden}
.review-view-card img{width:80px;height:48px;object-fit:cover;grid-row:span 2;border-radius:4px}
.review-view-card span,.review-view-card small{overflow-wrap:anywhere}
.review-view-card small{font-size:11px;color:var(--muted)}
.review-view-card[aria-pressed=true]{border-color:var(--accent);background:#393047}
.review-view-details{display:grid;gap:12px;border-top:1px solid var(--line);padding-top:14px}
.review-view-details input,.review-view-details textarea{display:block;width:100%;min-width:0;margin-top:6px;padding:8px;font:inherit;color:var(--text);background:var(--bg);border:1px solid #444c5c;border-radius:6px}
.review-view-details textarea{resize:vertical;min-height:80px;max-height:220px}
.review-view-details textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.review-view-details input:invalid{border-color:#e5a080}
.review-view-details img{width:100%;height:auto}
#review-view-files{overflow-wrap:anywhere}
#detail-cursor{position:absolute;transform:translate(-50%,-50%);z-index:5;pointer-events:none;color:var(--green);font-size:28px;line-height:1;text-shadow:0 0 3px #000}
#review-views-panel .review-task-actions{flex-wrap:wrap}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px;padding:12px 12px 0;min-height:0;min-width:0}
.workspace[data-inspector=false]{grid-template-columns:minmax(0,1fr)}
.review-area{display:grid;grid-template-areas:"models";grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-width:0;min-height:0}
.review-area[data-uv=true][data-uv-dock=below]{grid-template-areas:"models" "splitter" "uv";grid-template-rows:minmax(0,1fr) 12px var(--uv-size)}
.review-area[data-uv=true][data-uv-dock=left]{grid-template-areas:"uv splitter models";grid-template-columns:var(--uv-size) 12px minmax(0,1fr)}
.comparison{grid-area:models;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-width:0;min-height:0}
.model-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:9px 9px 0 0;overflow:hidden}
.asset-heading{display:flex;align-items:center;gap:10px;background:var(--panel);padding:10px 14px;min-width:0}
.asset-heading label{flex:1;min-width:0}
.asset-heading button{white-space:nowrap;margin-top:20px}
.slot,.viewport-label strong{display:grid;place-items:center;width:26px;height:26px;border:1px solid #777085;color:#d8caff;border-radius:5px;font-size:13px;font-weight:700;flex-shrink:0}
.slot{margin-top:17px}
#viewport{position:relative;min-height:0;background:#181c25;overflow:hidden;touch-action:none;cursor:grab}
#viewport:active{cursor:grabbing}
#viewport[data-picking=true],#viewport[data-picking=true]:active{cursor:crosshair}
.navigation-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 12px;border:1px solid var(--line);border-top:0;background:var(--panel);min-width:0}
.comparison-view-control{display:flex;align-items:center;gap:8px;white-space:nowrap}
.comparison-view-control select{width:145px;margin:0}
.single-controls{display:flex;gap:4px}
.view-caption strong{font-weight:500}
.workspace[data-comparison=single] .divider{display:none}
.workspace[data-comparison=single] #viewport .viewport-label{left:16px;max-width:calc(100% - 32px)}
.workspace[data-comparison=single] .pivot-marker{left:calc(50% - 6px)}
.workspace[data-comparison=single][data-active-slot="0"] :is(.label-b,.pivot-b,#stats-b),.workspace[data-comparison=single][data-active-slot="1"] :is(.label-a,.pivot-a,#stats-a){display:none}
.workspace[data-comparison=single] .compare-footer{grid-template-columns:minmax(0,1fr)}
.workspace[data-comparison=single] .compare-footer span{border-left:0}
.navigation-tools button{white-space:nowrap}
.quality-control{display:flex;align-items:center;gap:8px;white-space:nowrap}
.quality-control select{width:177px;margin:0}
.navigation-tools button[aria-pressed=true]{border-color:var(--accent);background:#393047}
.navigation-state{display:flex;gap:18px;justify-content:flex-end;flex:1;min-width:0;font-size:12px;color:var(--muted)}
.navigation-state span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pivot-marker{display:none;position:absolute;top:calc(50% - 6px);width:12px;height:12px;border:2px solid var(--green);border-radius:50%;box-shadow:0 0 0 2px #141921;z-index:3;pointer-events:none}
.pivot-a{left:calc(25% - 6px)}.pivot-b{left:calc(75% - 6px)}
#viewport[data-pivot=true] .pivot-marker{display:block}
#viewport canvas{width:100%;height:100%;display:block;touch-action:none}
.divider{position:absolute;inset:0 auto 0 50%;width:1px;background:#54576b;z-index:2;pointer-events:none}
.viewport-label{position:absolute;top:14px;display:flex;gap:10px;align-items:center;max-width:calc(50% - 32px);z-index:2;pointer-events:none}
.viewport-label span{font-size:12px;color:#ccd2df;text-shadow:0 1px 3px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.label-a{left:16px}.label-b{left:calc(50% + 16px)}
.workspace[data-swapped=true] .label-a{left:calc(50% + 16px)}.workspace[data-swapped=true] .label-b{left:16px}
.workspace[data-swapped=true] .model-bar>:first-child,.workspace[data-swapped=true] .compare-footer>:first-child{order:2}
.workspace[data-swapped=true] .model-bar>:last-child,.workspace[data-swapped=true] .compare-footer>:last-child{order:1}
.view-caption{position:absolute;bottom:12px;left:0;width:100%;text-align:center;color:#e4dafb;font-size:12px;pointer-events:none}
.view-caption span{margin-left:18px;color:#b0b9cb}
.compare-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:0 0 9px 9px;background:var(--panel)}
.compare-footer span{padding:8px 14px;font-size:12px;color:var(--muted)}
.compare-footer span+span{border-left:1px solid var(--line)}
.workspace[data-swapped=true] .compare-footer span:first-child{border-left:1px solid var(--line)}
.workspace[data-swapped=true] .compare-footer span:last-child{border-left:0}
.uv-panel{grid-area:uv;display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--panel);overflow:hidden}
.inspection-pane{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
.inspection-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:6px 10px;flex-shrink:0}
.inspection-tabs button{flex:1;border-color:transparent;background:transparent;font-size:12px}
.inspection-tabs button[aria-pressed=true]{background:#393047;border-color:var(--accent);color:#e3d7ff}
.reference-heading{padding:8px 12px;flex-shrink:0;border-bottom:1px solid var(--line)}
.reference-heading p{font-size:11px;overflow-wrap:anywhere;margin:0}
#reference-identity{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
#reference-info:empty{display:none}
#reference-info{margin-top:6px;color:var(--muted)}
.viewpoint-panel{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden;background:var(--panel)}
.viewpoint-panel[hidden]{display:none}
.viewpoint-panel>.editor-heading,.viewpoint-panel>#viewpoint-context,.viewpoint-footer{flex-shrink:0}
.viewpoint-panel #viewpoint-context{padding:0 12px}
.viewpoint-panel .editor-heading small{display:block;font-size:10px;color:var(--muted);font-weight:400}
.viewpoint-footer{padding:8px 12px;border-top:1px solid var(--line);background:var(--panel)}
.viewpoint-footer .viewpoint-apply{margin-bottom:0}
#viewpoint-open{font-size:11px;padding:5px 6px;white-space:nowrap}
#viewpoint-open .control-icon{display:none}
.alignment-frame h3{font-size:12px;margin:12px 0 6px}
.viewpoint-content{padding:4px 12px 12px;min-height:0;overflow:auto;scrollbar-gutter:stable;flex:1}
#viewpoint-context{font-size:11px;overflow-wrap:anywhere;color:var(--muted);margin:6px 0}
.viewpoint-actions,.viewpoint-apply{display:flex;align-items:end;flex-wrap:wrap;gap:6px;margin:8px 0}
.viewpoint-actions label{flex:1;min-width:110px}
.viewpoint-actions button,.viewpoint-apply button{font-size:11px;padding:6px 8px}
#viewpoint-apply{background:#4e405f;border-color:#8e76af}
#viewpoint-apply:disabled{background:#272c38;border-color:var(--line)}
#viewpoint-status,#viewpoint-limit{font-size:11px;line-height:1.45;color:var(--muted);margin:8px 0}
#viewpoint-limit:empty{display:none}
#viewpoint-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#viewpoint-results button{padding:4px;font-size:10px;line-height:1.3;min-width:0}
#viewpoint-results button[aria-pressed="true"]{background:#493c5b;border-color:#b09ad6}
#viewpoint-results img{display:block;width:100%;aspect-ratio:1;background:#181d28}
.viewpoint-help{font-size:11px;color:var(--muted);margin-top:8px}
.viewpoint-help p{line-height:1.5;margin-top:6px}
.reference-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.reference-actions button{font-size:11px;padding:5px 8px}
.reference-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px 12px;flex-shrink:0}
.reference-tools button{font-size:12px;padding:5px 8px}
#reference-zoom{color:var(--muted);font-size:11px;margin-left:auto}
#reference-viewport{position:relative;flex:1;min-width:0;min-height:120px;margin:0 12px 8px;overflow:hidden;border:1px solid #454b59;border-radius:4px;background:#12151c;touch-action:none;cursor:grab}
#reference-viewport:active{cursor:grabbing}
#reference-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#reference-image{position:absolute;left:50%;top:50%;max-width:none;user-select:none;pointer-events:none}
#foreground-overlay{position:absolute;left:50%;top:50%;pointer-events:none;overflow:hidden;z-index:1}
#reference-viewport[data-foreground=true]{cursor:crosshair}
#foreground-editor{padding:6px 12px;flex-shrink:0;max-height:32%;overflow:auto;scrollbar-gutter:stable}
.foreground-actions,.foreground-entry{display:flex;flex-wrap:wrap;align-items:end;gap:6px}
.foreground-actions button,.foreground-entry button{font-size:11px;padding:5px 8px}
.foreground-actions label{font-size:11px;min-width:100px;max-width:135px}
#foreground-feedback,#foreground-point-count,#foreground-state{font-size:11px;line-height:1.4;color:var(--muted);margin:6px 0}
#foreground-use{background:#4e405f;border-color:#8e76af}
#reference-empty{position:absolute;inset:0;display:grid;place-items:center;padding:18px;text-align:center;font-size:12px}
.uv-splitter{grid-area:splitter;display:grid;place-items:center;touch-action:none;cursor:row-resize;border-radius:4px}
.uv-splitter span{width:44px;height:3px;border-radius:2px;background:#747b8e;pointer-events:none}
.uv-splitter:hover,.uv-splitter:focus-visible,.review-area[data-resizing=true] .uv-splitter{background:#302a40}
.uv-splitter:hover span,.uv-splitter:focus-visible span,.review-area[data-resizing=true] .uv-splitter span{background:var(--accent)}
.review-area[data-uv-dock=left] .uv-splitter{cursor:col-resize}
.review-area[data-uv-dock=left] .uv-splitter span{width:3px;height:44px}
.review-area[data-resizing=true]{user-select:none}
#uv-canvas{width:100%;height:100%;min-height:0;min-width:0;background:#12151c;border:1px solid #454b59;border-radius:4px}
#uv-memory-notice{display:block;color:#efd19a;padding:6px 12px;font-size:11px;flex-shrink:0}
#mesh-info{white-space:pre-line;color:var(--muted);font-size:12px;padding-top:8px}
.inspector{background:var(--panel);border:1px solid var(--line);border-radius:9px;overflow:auto;min-height:0}
.light-direction{margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#171b24}
.light-direction h3{font-size:13px;margin:0 0 6px}
#light-widget{width:100%;touch-action:none;cursor:grab;border-radius:6px;background:#202630;user-select:none}
#light-widget[data-dragging=true]{cursor:grabbing}
#light-widget[aria-disabled=true]{opacity:.5;cursor:default}
#light-widget svg{display:block;width:100%;pointer-events:none}
.light-orbit{fill:#262c39;stroke:#536071}
.light-ground{fill:#515965;fill-opacity:.45;stroke:#778294;stroke-width:.7}
.light-ring{fill:none;stroke:#7c8497;stroke-width:.8}
.light-behind{opacity:.5;stroke-dasharray:3 3}
.light-axis{stroke-width:1.6}
.light-axis-label{font:11px system-ui;text-anchor:middle;stroke:none}
.light-axis-0{stroke:#d18a81;fill:#d18a81}
.light-axis-1{stroke:#9ecfa1;fill:#9ecfa1}
.light-axis-2{stroke:#8aaee3;fill:#8aaee3}
.light-ray{stroke:#ffd77b;stroke-width:1.4;fill:none}
.light-lamp{fill:#ffd77b;stroke:#ffd77b;stroke-width:1.8;stroke-linecap:round}
#light-direction-value{display:block;float:none;margin-top:8px;color:#f2d493;font-size:12px}
.light-angle-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.light-angle-fields input{display:block;box-sizing:border-box;width:100%;margin-top:4px;padding:6px;color:var(--text);background:#262b36;border:1px solid #444c5c;border-radius:5px;min-height:34px;font:inherit}
.inspector section,.inspector details{padding:14px 16px;border-bottom:1px solid var(--line)}
.inspector h2{margin-bottom:14px}
.inspector label+label{margin-top:13px}
.help{font-size:11px;margin-top:12px;line-height:1.6}
.inspector output{float:right;color:#d8c6ff;font-weight:500}
input[type=range]{display:block;width:100%;accent-color:#bba0ff;margin:9px 0 0;cursor:pointer}
.wide{width:100%;margin-top:11px}
summary{cursor:pointer;font-weight:650;font-size:13px}
#metrics{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 ui-monospace,monospace;color:var(--green);margin:12px 0 0}
.scope p{font-size:11px;line-height:1.6}.scope p+p{margin-top:8px}
.status-row{display:flex;align-items:center;min-width:0}#status{flex:1;min-width:0;padding:6px 12px;color:#adb8c9;font-size:12px}.build-identity{flex:none;margin:0;padding:4px 12px;color:#8e97a8;font:11px/1.2 ui-monospace,monospace;white-space:nowrap}
#status[data-error=true]{color:#ffb7aa}#status[data-busy=true]{color:#d4bcff}
@media(max-width:1450px){
  .workspace{grid-template-columns:minmax(0,1fr) 260px}
  .top{padding:8px 12px}.brand-mark{display:none}.top-actions{gap:8px}.top-actions select{width:165px}
  .inspector section,.inspector details{padding:14px}
  .view-caption span{display:block;margin:3px 0 0}
}
:root .check-control { display: flex; align-items: center; gap: 9px; margin: 12px 0; }
:root .check-control input { width: 17px; height: 17px; margin: 0; accent-color: #a68bfa; }
.hdr-actions { display: flex; gap: 8px; }
#hdr-identity { overflow-wrap: anywhere; }
.view-caption { padding: 6px 10px; border-radius: 6px; background: rgba(13, 17, 26, .82); }

#viewport canvas.refinement-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#refinement-progress{position:absolute;bottom:54px;left:16px;padding:5px 9px;background:#171b24dd;border-radius:5px;color:#e9edf5;font-size:12px;pointer-events:none;z-index:3}
#refinement-progress:empty{display:none}
#refinement-settings{padding:12px;border:1px solid var(--line);border-radius:8px}
#refinement-settings label{margin-top:10px}
.view-caption{z-index:2}
/* Keep action labels from reflowing the viewport and invalidating their own render. */
#refine{width:156px;flex:0 0 156px}

/* Stage 1: a compact inspector keeps one tool group open; the model area owns comparison. */
.comparison{grid-template-rows:auto minmax(0,1fr) auto auto}
.navigation-tools{border:1px solid var(--line);border-radius:9px 9px 0 0;padding:8px 10px;gap:7px}
.standard-view-control{display:flex;align-items:center;gap:7px;white-space:nowrap}
.standard-view-control select{width:118px;margin:0}
.view-caption{width:auto;max-width:calc(100% - 24px);left:12px;bottom:10px;display:flex;gap:14px;text-align:left}
.view-caption span{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#navigation-help{position:relative;flex-shrink:0}
#navigation-help summary{font-size:12px;color:var(--muted);font-weight:500}
#navigation-help p{position:absolute;bottom:30px;right:0;z-index:5;width:310px;max-width:70vw;padding:12px;background:#222734;border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 18px #0008;font-size:12px}
.inspector .inspection-group{padding:0;border-bottom:1px solid var(--line)}
.inspection-group>summary{padding:12px 14px;font-size:14px;color:#dce1ed}
.inspection-group[open]>summary{color:#e0d2ff;background:#242333}
.group-content{padding:12px 14px 16px}
.group-content>.help:first-child{margin-top:0}
.inspector .group-content details{padding:0;margin-top:14px;border:0}
.context-help summary{font-size:12px;color:var(--muted);font-weight:500}
.context-help[open]{padding-top:6px!important}
.inspector .asset-heading{padding:8px 0;gap:8px}
.inspector .asset-heading .slot,.inspector .asset-heading button{margin-top:0}
.inspector .asset-heading label{font-size:13px}
.inspector .asset-heading:has(select:not([hidden])){flex-wrap:wrap}
.inspector .asset-heading:has(select:not([hidden])) label{flex-basis:65%}
.geometry-facts{font-size:12px;color:var(--muted);margin-top:14px;white-space:pre-line;overflow-wrap:anywhere}
#lab-tools{padding:14px;border-top:1px dashed #4d586b}
#lab-tools>label{font-size:12px}
.top-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}
.top-actions button{font-size:12px;padding:6px 9px}
.top{gap:12px}
@media(max-width:1450px){.top-actions{max-width:780px}.top h1{font-size:18px}.top .brand p{font-size:11px}.view-caption{font-size:11px;gap:10px}.view-caption span{display:inline;margin:0}.group-content{padding:12px}}
/* Material inspection shares the existing resizable UV surface. */
#isolation-info{font-size:11px;color:var(--muted)}
.uv-panel{container-type:inline-size}

.background-control { display: grid; gap: 8px; }
.background-swatches { display: flex; align-items: center; gap: 8px; }
.background-swatches button { width: 30px; height: 30px; padding: 0; background: var(--swatch); border: 2px solid #657084; border-radius: 5px; }
.background-swatches button[aria-pressed="true"] { outline: 2px solid #a8c8ff; outline-offset: 2px; }
.background-swatches input[type="color"] { width: 38px; height: 32px; padding: 2px; cursor: pointer; }
/* Shared presentation: task groups, recognizable symbols and keyboard-readable help. */
.control-icon{display:inline-flex;width:18px;height:18px;flex:0 0 18px;vertical-align:middle;pointer-events:none}
.control-icon svg{display:block;width:100%;height:100%}
.icon-control{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.label-icon,.icon-summary>.control-icon{margin-right:6px;color:#abb8cd}
.icon-summary>.control-icon{width:16px;height:16px}
.icon-only{width:36px;min-width:36px;padding:7px!important}
.icon-only>.control-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.toolbar-group{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:0}
.toolbar-group+.toolbar-group{border-left:1px solid var(--line);padding-left:10px;margin-left:3px}
.top-actions button[aria-expanded=true]{background:#302b40;border-color:#85729f;color:#eee5ff}
.utility-actions button{color:#bac4d5;background:transparent}
.utility-actions button:hover{color:#fff;background:#303746}
.navigation-tools .label-icon{margin-right:0}
.navigation-tools .quality-control{gap:6px}
.background-swatches button{display:grid;place-items:center}
.background-swatches .control-icon{display:none}
#review-tooltip{position:fixed;z-index:10000;width:280px;max-width:calc(100vw - 16px);padding:11px 13px;background:#111722;color:#e8edf6;border:1px solid #68778e;border-radius:8px;box-shadow:0 5px 22px #0008;font:12px/1.5 system-ui;pointer-events:none;white-space:normal}
#review-tooltip strong{font-size:13px}#review-tooltip p{margin:5px 0 0;color:#c5cfdf}.tooltip-keys{display:block;margin-top:7px;color:#d2baff}.tooltip-unavailable{font-style:italic}
#control-guide{width:min(860px,calc(100vw - 64px));max-height:85vh;padding:24px;background:#1a202c;color:#e8edf6;border:1px solid #627189;border-radius:12px;box-shadow:0 18px 90px #0009;overflow:auto}
#control-guide::backdrop{background:#080b12b8}
.guide-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.guide-heading h2{font-size:21px;margin:0}.guide-heading p{color:#aebbd0;margin:8px 0 20px;font-size:13px}
.guide-search-label{margin-bottom:18px}.guide-search-label input{display:block;width:100%;margin-top:8px;padding:10px;background:#101621;border:1px solid #65728a;border-radius:6px;color:#eef2fa;font:14px system-ui}
#control-guide-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.guide-card{display:flex;gap:12px;padding:13px;background:#222a38;border:1px solid #394558;border-radius:8px;min-width:0}.guide-card>.control-icon{color:#ccb5fa;margin-top:2px;width:22px;height:22px;flex-basis:22px}.guide-card h3{font-size:13px;margin:0 0 5px}.guide-card p{font-size:12px;line-height:1.5;color:#bcc9dc;margin:0}
@media(max-width:1450px){.toolbar-group+.toolbar-group{padding-left:7px;margin-left:0}}
.clay-controls{margin:12px 0;padding:12px;background:#232936;border:1px solid var(--line);border-radius:7px}.clay-controls>.help{margin-bottom:0}.clay-controls label+label{margin-top:10px}
.guide-manual-link{color:#d2baff;text-underline-offset:3px;font-weight:600}.guide-manual-link span{font-weight:400;color:#bbc8da}.guide-manual-link:focus-visible{outline:2px solid #d2baff;outline-offset:4px;border-radius:2px}


/* UV canvas gets the space; occasional controls open over it. */
#uv-pane{position:relative}
.uv-toolbar{padding:8px 10px;flex-shrink:0;border-bottom:1px solid var(--line)}
.uv-row{display:flex;align-items:center;gap:6px;min-width:0}
.uv-row+.uv-row{margin-top:6px}
.uv-row>select{margin:0;flex:1;width:0;font-size:12px}
.uv-row button,.uv-row summary{min-height:32px;font-size:12px}
.uv-candidates{display:flex;gap:2px;flex-shrink:0}
.uv-candidates button{padding:4px 9px}
.uv-candidates button[aria-pressed=true]{border-color:var(--accent);background:#393047;color:#e3d7ff}
#uv-mesh-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--text)}
:root .uv-edges{margin:0;white-space:nowrap;font-size:12px}
.uv-part-step{display:flex;align-items:center;gap:4px;min-width:0}
.uv-part-step label{flex:1;min-width:0;margin:0}
.uv-part-step select{width:100%;min-width:0}
.uv-part-step button{flex:0 0 auto;padding:4px 8px}
.uv-layout-label{margin:0;padding:6px 10px 2px;font-size:12px;font-weight:650;line-height:1.35;color:#f4f0ff}
.uv-layout-label strong,.uv-pair-cell header strong{display:block;overflow:hidden;text-overflow:ellipsis}
.uv-layout-note{display:block;font-weight:450;color:#b7c0d0;font-size:11px;line-height:1.35}
.uv-layout-note:empty{display:none}
.uv-menu{flex-shrink:0}
.uv-menu>summary{cursor:pointer;border:1px solid #444c5c;border-radius:6px;background:#262b36;padding:5px 7px;color:var(--text);font-size:12px}
#uv-options>summary{list-style:none;font-size:20px;line-height:20px;padding:3px 8px}
#uv-options>summary::-webkit-details-marker{display:none}
#uv-options>summary>.control-icon,.uv-edges>.label-icon{display:none}
.uv-menu[open]>summary{border-color:var(--accent)}
.uv-menu-content{position:absolute;z-index:8;top:46px;right:10px;width:258px;max-width:calc(100% - 20px);max-height:calc(100% - 56px);overflow:auto;display:grid;gap:12px;padding:12px;background:#242833;border:1px solid #626a80;border-radius:7px;box-shadow:0 8px 22px #0008}
#uv-isolation .uv-menu-content{top:84px;gap:6px}
.uv-menu-content p{font-size:11px}
#uv-custom-image{margin-top:6px;font-size:11px}
#uv-custom-image select{margin-top:3px;font-size:12px}
#uv-isolation-active{display:flex;gap:6px;align-items:center;margin-top:6px}
#uv-isolation-active span{flex:1}
#show-all-parts{font-size:11px;padding:3px 6px;min-height:28px}
.uv-content{display:flex;flex-direction:column;gap:6px;flex:1;min-height:0;min-width:0;padding:8px 10px;background:#171a22}
#uv-canvas{flex:1;height:0}
.uv-footer{height:22px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;font-size:11px;color:var(--muted)}
#uv-summary{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
#uv-details{flex-shrink:0}
#uv-details summary{cursor:pointer;font-size:11px;color:#c8cfdd}
#uv-details[open]{position:absolute;z-index:7;bottom:8px;left:10px;right:10px;padding:10px;background:#242833;border:1px solid #626a80;border-radius:6px;max-height:45%;overflow:auto}
.material-info{font-size:11px;line-height:1.4;margin-top:8px;overflow-wrap:anywhere}

/* AO diagnostics retain candidate identity and show missing data in the view. */
.ao-compare{display:flex;gap:6px}.ao-compare button{flex:1}.ao-view-status{display:block;font-size:11px;white-space:normal;max-width:260px;color:#b8d4ef}.viewport-label:has(.ao-view-status:not([hidden])){display:grid;grid-template-columns:26px minmax(0,1fr);row-gap:5px}.viewport-label .ao-view-status{grid-column:1 / -1;white-space:normal;font-size:11px;color:#b8d4ef;max-width:100%;overflow-wrap:anywhere}#generated-ao-info p{margin:6px 0;overflow-wrap:anywhere}
/* Lighting disclosure and active in-view direction aid. Shared ReviewLab state owns both. */
.navigation-tools{position:relative;z-index:6;flex-wrap:wrap}.portal-display-control label{margin:0;font-size:11px}.portal-display-control select{width:160px}.lighting-popover{position:static}.lighting-popover>summary{list-style:none;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:#283140;cursor:pointer;font-size:12px}.lighting-popover>summary::after{content:' ▾'}.lighting-popover[open]>summary{background:#3b516b}.lighting-popover>.group-content{position:absolute;right:8px;top:100%;width:330px;max-height:min(720px,70vh);overflow:auto;padding:14px;background:#222a37;border:1px solid #526178;border-radius:8px;box-shadow:0 12px 35px #0008;z-index:20}.lighting-heading{display:flex;align-items:center;justify-content:space-between}.lighting-heading button{padding:3px 8px}.lighting-looks{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0}.lighting-looks button{font-size:10px;padding:7px 3px;display:grid;justify-items:center;gap:5px}.light-look-sample{display:block;width:32px;height:32px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#eee,#8795a7 45%,#263246 90%)}.sample-raking{background:radial-gradient(ellipse at 0 45%,#eee 0%,#a8afb8 15%,#202736 60%)}.sample-interior{background:radial-gradient(circle,#f5f2e3,#b2b7c0 60%,#404757)}.sample-reflections,.sample-strips{background:linear-gradient(80deg,#27303a 20%,#fff 25%,#27303a 33%,#ccd8e7 70%,#27303a 78%)}.sample-daylight{background:linear-gradient(#a9cbec,#e4d9b4 55%,#656b5a)}.sample-wax{background:radial-gradient(circle at 30% 25%,#f9d2b5,#9b3030 40%,#321c26 90%)}.sample-zebra{background:repeating-linear-gradient(100deg,#eee 0 4px,#111 4px 8px)}.sample-silhouette{background:#ececec}.portal-light{position:absolute;right:12px;top:44px;width:160px;padding:8px;background:#202938dd;border:1px solid #566276;border-radius:9px;z-index:5;pointer-events:auto;text-align:center}.portal-light>span{display:block;font-size:11px;color:#d4dce8}.portal-light #light-widget{background:transparent}.portal-light #light-widget svg{width:100%;height:130px}.portal-light #environment-widget{height:130px;touch-action:none;cursor:grab}.portal-light #environment-widget svg{width:100%;height:100%;pointer-events:none}#portal-light-state{font-size:10px;color:#e0c487}.lighting-popover label{display:block;font-size:12px;margin:9px 0}.lighting-popover label.check-control{display:flex}.lighting-popover select{width:100%}#light-sweep-controls{border-top:1px solid var(--line);padding-top:8px}#light-sweep-controls button{width:100%}#surface-analysis-controls,#zebra-controls{border-top:1px solid var(--line);padding-top:8px}#lighting-context{color:#f2d493}.lighting-looks button[aria-pressed=true]{border-color:#b8d6f6;background:#3b516b}
.lighting-popover>.group-content{left:8px;right:auto}.lighting-popover [hidden]{display:none!important}
.portal-display-control label{display:flex;align-items:center;gap:6px;white-space:nowrap}
.portal-display-control select{margin:0}
.portal-display-control .toolbar-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Shared camera orientation and full-frame comparison reveal. */
.workspace[data-comparison^=wipe] .divider,.workspace[data-comparison^=wipe] .pivot-marker{display:none}
#wipe-divider{position:absolute;z-index:3;touch-action:none;outline:none;--wipe:50%}
#wipe-divider[data-direction=vertical]{top:0;bottom:0;left:clamp(0px,calc(var(--wipe) - 12px),calc(100% - 24px));width:24px;cursor:ew-resize}
#wipe-divider[data-direction=horizontal]{left:0;right:0;top:clamp(0px,calc(var(--wipe) - 12px),calc(100% - 24px));height:24px;cursor:ns-resize}
#wipe-divider:before{content:'';position:absolute;background:#d2d9e4;box-shadow:0 0 3px #111}
#wipe-divider[data-direction=vertical]:before{left:11px;top:0;bottom:0;width:2px}
#wipe-divider[data-direction=horizontal]:before{top:11px;left:0;right:0;height:2px}
.wipe-grip{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #d2d9e4;border-radius:8px;background:#202634;color:white;padding:5px;line-height:18px;font-size:18px}
#wipe-divider:focus-visible .wipe-grip{outline:3px solid var(--accent);outline-offset:3px}

/* Desktop layout follows the available model area, including a resized UV/reference panel. */
.comparison{container:review-portal / inline-size}
.navigation-tools{display:flex;align-items:center;gap:8px;padding:8px}
.navigation-tools>.toolbar-group{flex-wrap:nowrap;gap:6px;min-width:0;padding:0;margin:0;border:0}
.navigation-tools>.toolbar-group+.toolbar-group{padding-left:8px;border-left:1px solid var(--line)}
.navigation-tools>.quality-tools{margin-left:auto}
.navigation-tools>.toolbar-group>button,.navigation-tools>.toolbar-group>label>select,.navigation-tools .portal-display-control select,.navigation-tools .single-controls>button,.lighting-popover>summary{height:32px;min-height:32px;font-size:12px}
.navigation-tools select{padding:5px 8px}
.navigation-tools .portal-display-control select{width:160px}
.navigation-tools .comparison-view-control select{width:132px}
.navigation-tools #standard-view{width:148px}
.navigation-tools #camera-projection{width:120px}
.navigation-tools .quality-control select{width:122px}
.navigation-tools label>.label-icon{display:inline-flex}
.navigation-tools .toolbar-field-label,.navigation-tools .direction-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.navigation-tools #orbit-point,.navigation-tools #frame-both{width:34px;padding:6px}
.navigation-tools #orbit-point>.control-label,.navigation-tools #frame-both>.control-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.navigation-tools .lighting-popover>summary{display:flex;align-items:center;white-space:nowrap;padding:5px 9px}
.lighting-popover>.group-content{max-width:calc(100% - 16px);max-height:min(680px,calc(100dvh - 200px));overscroll-behavior:contain}
.lighting-heading{position:sticky;top:-14px;margin:-14px -14px 0;padding:10px 14px;background:#222a37;z-index:2;border-bottom:1px solid var(--line)}
.inspector{container:inspection-rail / size;overscroll-behavior:contain}
.inspector .group-content button{font-size:12px}
.inspector .group-content{padding:12px}
.inspection-group>summary{padding:11px 12px;font-size:13px}
.inspector :is(#surface-analysis-controls,#ao-material-controls,#zebra-controls){margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.inspector .check-control>.label-icon{display:none}
.inspector .background-control{gap:10px}
.inspector .context-help[open]>.help+.help{margin-top:10px}
.inspection-tabs{padding:6px;gap:4px}
.inspection-tabs button{white-space:nowrap;padding:6px;gap:6px}
.compare-footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 12px;font-size:11px}
.view-caption{max-width:calc(100% - 142px);gap:10px;background:#10141dcc;font-size:11px;padding:5px 8px}
.view-caption span{min-width:0}
.workspace:not([data-comparison=single]) #navigation-caption{display:none}
#status{min-height:26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
@container review-portal (max-width:1180px){
 .navigation-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"appearance appearance" "camera compare";gap:7px 12px}
 .navigation-tools>.appearance-tools{grid-area:appearance}
 .navigation-tools>.comparison-tools{grid-area:compare;justify-self:end}
 .navigation-tools>.camera-tools{grid-area:camera}
 .navigation-tools>.quality-tools{grid-area:quality;justify-self:end;margin:0}
 .navigation-tools>.toolbar-group+.toolbar-group{padding:0;border:0}
 .navigation-tools label>.label-icon{display:none}
}
@container review-portal (max-width:630px){
 .navigation-tools{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"appearance appearance" "compare compare" "camera camera";gap:6px}
 .navigation-tools>.toolbar-group{justify-self:stretch;justify-content:flex-start}
 .navigation-tools>.quality-tools{justify-content:flex-end}
 .navigation-tools .portal-display-control{flex:1;min-width:0}
 .navigation-tools .portal-display-control select{width:100%}
 .navigation-tools .comparison-view-control{flex:1}
 .navigation-tools .comparison-view-control select{width:100%}
 .navigation-tools .camera-tools .standard-view-control{flex:1;min-width:0}
 .navigation-tools .camera-tools select{width:100%!important}
 .view-caption{gap:6px}
 #pivot-name{display:none}
}

@container review-portal (min-width:1400px){
 .navigation-tools .toolbar-field-label,.navigation-tools .direction-label,
 .navigation-tools #orbit-point>.control-label,.navigation-tools #frame-both>.control-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
 .navigation-tools #orbit-point,.navigation-tools #frame-both{width:auto}
 .navigation-tools .portal-display-control .toolbar-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}

.lighting-looks button{height:auto;min-height:74px;white-space:normal;line-height:1.25;align-content:start}
.lighting-popover .label-icon{margin-right:6px}

.navigation-tools .quality-control .toolbar-field-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none}

/* Keep the existing shared ground setting directly reachable from the portal. */
.navigation-tools .portal-toggle{position:relative;height:32px;flex:none;margin:0;padding:5px 9px;gap:6px;font-size:12px;white-space:nowrap;border:1px solid var(--line);border-radius:6px;background:#283140;cursor:pointer}
.navigation-tools .portal-toggle input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:inherit}
.navigation-tools .portal-toggle:has(:checked){background:#3b516b;border-color:#b8d6f6;color:#fff}
.navigation-tools .portal-toggle:has(:focus-visible){outline:2px solid #b8d6f6;outline-offset:2px}
.navigation-tools .portal-toggle:has(:disabled){opacity:.5;cursor:default}
.navigation-tools .portal-toggle>.label-icon{display:inline-flex}
.cutaway-options{border-top:1px solid var(--line);margin-top:12px;padding-top:2px}


@container review-portal (min-width:631px) and (max-width:760px){
 .navigation-tools .portal-display-control select{width:128px}
 .navigation-tools .ground-control>.label-icon{display:none}
}

/* Live counterpart of the approved per-portal orientation mockup. */
.camera-axis{position:absolute;top:14px;width:136px;z-index:4;text-align:center;user-select:none}
.axis-plot{position:relative;display:grid;width:100%;aspect-ratio:1;border-radius:50%;touch-action:none;cursor:grab}
.axis-plot[data-dragging=true]{cursor:grabbing}
.axis-plot:focus-visible{outline:2px solid #b9d8fa;outline-offset:2px}
.axis-plot>svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.axis-plot>svg.axis-arm{position:absolute;inset:0}
.axis-plot>svg.axis-arm line{pointer-events:stroke}
.axis-ring{fill:#202938bb;stroke:#43516a;stroke-width:.75}
.axis-plot:hover .axis-ring{fill:#293448ee;stroke:#a4bad4}
.axis-plot [data-axis=X]{--axis-color:#ed8891}.axis-plot [data-axis=Y]{--axis-color:#9bce80}.axis-plot [data-axis=Z]{--axis-color:#85b6f6}
.axis-plot line{stroke:var(--axis-color);stroke-width:1.5}
.axis-plot button{--axis-disc:27px;--axis-scale:1;--axis-fill:1;--axis-ink:1;position:absolute;transform:translate(-50%,-50%);padding:0;width:calc(var(--axis-disc) * var(--axis-scale));height:calc(var(--axis-disc) * var(--axis-scale));min-width:0;min-height:0;max-width:none;max-height:none;border-radius:50%;font-size:calc(10px * var(--axis-scale));font-weight:750;line-height:1;color:color-mix(in srgb,#182335 calc(var(--axis-ink) * 100%),#080a10);border:1px solid color-mix(in srgb,var(--axis-color) calc(var(--axis-fill) * 100%),#202938);background:color-mix(in srgb,var(--axis-color) calc(var(--axis-fill) * 100%),#202938);display:grid;place-items:center}
.axis-plot button:hover,.axis-plot button[aria-pressed=true]{border:2px solid white;box-shadow:0 0 0 3px #ffffff22}
.axis-plot button:focus-visible{outline:2px solid white;outline-offset:2px}
.axis-caption{font-size:10px;color:#f4f7fb;margin-top:6px;background:#141820e6;border-radius:4px;padding:2px 6px;display:inline-block}
.axis-tilt{display:none;stroke:#ffda8b;stroke-width:3}
.camera-axis[data-constraint=horizontal] line[data-axis=Y]{stroke-width:4}.camera-axis[data-constraint=vertical] .axis-tilt{display:block}
.camera-axis output{display:block;font-size:10px;color:#ffda8b;padding:3px 0}
@container review-portal (max-width:1180px){.camera-axis{width:112px}.axis-plot button{--axis-disc:24px;font-size:calc(9px * var(--axis-scale))}}
/* Light manipulation takes the lower corner, leaving camera orientation above it. */
.portal-light{top:auto;bottom:14px}

.axis-plot::after{content:"";position:absolute;left:50%;top:50%;z-index:var(--axis-hub,0);width:6px;height:6px;transform:translate(-50%,-50%);border-radius:50%;background:#becbdc;pointer-events:none}

.axis-plot[aria-disabled=true]{opacity:.5;cursor:default}

/* Candidate facts and material comparison stay in Properties. */
.material-identities{font-size:12px;line-height:1.45;overflow-wrap:anywhere;margin-bottom:12px;color:var(--muted)}
.material-identities p{margin:4px 0}
.material-columns,.material-channel-row>summary{display:grid;grid-template-columns:minmax(95px,1.2fr) minmax(65px,1fr) minmax(65px,1fr);gap:6px;align-items:center}
.material-columns{font-size:11px;color:var(--muted);padding:6px 0}
.inspector .group-content .material-channel-row{margin:0;border-bottom:1px solid var(--line)}
.material-channel-row>summary{padding:9px 0;list-style:none;font-size:12px;line-height:1.3;cursor:pointer}
.material-channel-row>summary::-webkit-details-marker{display:none}
.material-channel-row>summary::after{display:none}
.material-channel-name::before{content:'▸';display:inline-block;width:12px;color:var(--muted)}
.material-channel-row[open] .material-channel-name::before{content:'▾'}
.material-channel-state{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.material-channel-row[open]>summary .material-channel-name{color:#dfd1ff}
.material-channel-body{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.material-channel-body section{padding:8px 0}
.material-channel-body h4{font-size:12px;margin:4px 0 8px;font-weight:600;color:#d5c9ed}
.material-channel-body p{margin:4px 0;color:var(--muted)}
.material-entry{padding:8px 0;border-top:1px solid var(--line)}
.material-entry strong{font-weight:500}
.material-entry button{margin-top:7px}
.material-entry .material-note{color:#e5c98c}
#alignment-badge { font-size: .7rem; font-weight: 400; color: var(--muted); }
.alignment-adjustments { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.alignment-adjustments fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.alignment-adjustments legend { font-size: .8rem; margin-bottom: .4rem; }
.alignment-adjustments input { width: 100%; min-width: 0; }
.alignment-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
#alignment-status { font-size: .8rem; line-height: 1.4; }
/* Compact review chrome: shared commands appear once, native disclosures retain keyboard behavior. */
.workspace-menu{position:relative;margin:0}
.workspace-menu>summary{display:flex;align-items:center;gap:5px;list-style:none;cursor:pointer;padding:6px 9px;border:1px solid var(--line);border-radius:5px;font-size:12px;white-space:nowrap;background:var(--panel)}
.workspace-menu>summary::-webkit-details-marker{display:none}
.workspace-menu>summary::after{content:'▾';font-size:10px;color:var(--muted)}
.workspace-menu[open]>summary{background:#302b40;border-color:#85729f}
.workspace-menu>.menu-content{position:fixed;z-index:60;width:290px;max-width:calc(100vw - 16px);max-height:calc(100vh - 96px);overflow:auto;padding:12px;background:#202632;border:1px solid #59677d;border-radius:7px;box-shadow:0 6px 22px #0008;display:flex;flex-direction:column;gap:10px}
.workspace-menu:not([open])>.menu-content{display:none}
.menu-content>button{width:100%;justify-content:flex-start}
.menu-content label{display:flex!important;flex-direction:column;align-items:stretch!important;gap:5px!important;margin:0}
.menu-content select{width:100%!important;margin:0}
.menu-content h2,.menu-content h3{font-size:12px;color:var(--muted);margin:0;font-weight:600}
.menu-content .toolbar-group{border:0;margin:0;padding:0;display:contents}
.menu-content #navigation-help p{position:static;width:auto;max-width:none;border:0;box-shadow:none;padding:5px 0}
.menu-content #comparison-conditions-list{padding-left:18px;font-size:12px;color:var(--muted);line-height:1.6}
.condition-badge{font-size:11px;color:#bdc5d5;white-space:nowrap}
#comparison-differences{font-size:18px;padding:3px 9px}
.inspection-tabs #inspection-close{flex:0 0 28px;padding:4px;min-width:28px}
/* Reviewer vocabulary: categories are visible; each disclosure retains native state. */
.navigation-tools .toolbar-field-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:block;font-size:10px;color:var(--muted);margin-bottom:3px}
.navigation-tools .portal-display-control label,.navigation-tools .standard-view-control,.navigation-tools .size-control,.navigation-tools .comparison-view-control{display:block}
.navigation-tools #fit{width:152px;margin:0;height:32px;min-height:32px;font-size:12px}
.navigation-tools>.toolbar-group{align-items:flex-end}
.navigation-tools .portal-display-control select{width:172px}
.inspector #ao-material-controls{margin:0;padding:0;border:0}
#ao-material-controls>label:first-child{margin-top:0}
#generated-ao-info{margin:10px 0;font-size:11px;line-height:1.5}
#generated-ao-info p+p{margin-top:6px}
.asset-heading{flex-wrap:wrap}.asset-heading>button{margin-left:auto}
/* A drawn chevron has a stable size and spacing, unlike the tiny font triangle. */
summary.icon-summary:not(.material-channel-row>summary){display:flex;align-items:center;gap:8px;list-style:none}
summary.icon-summary::-webkit-details-marker{display:none}
summary.icon-summary:not(.material-channel-row>summary)::after{content:'';width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;margin-left:auto;transform:rotate(45deg);opacity:.8}
.workspace-menu>summary::after,.lighting-popover>summary::after{margin-left:8px!important}
.inspection-group>summary.icon-summary::after,.context-help>summary.icon-summary::after{transform:rotate(-45deg)}
.inspection-group[open]>summary.icon-summary::after,.context-help[open]>summary.icon-summary::after{transform:rotate(45deg)}
.workspace-menu[open]>summary.icon-summary::after,.lighting-popover[open]>summary.icon-summary::after{transform:rotate(225deg)}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8cfdd' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:30px!important}
.material-channel-name::before{font-size:14px;width:16px}
.navigation-tools .portal-display-control .toolbar-field-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
.navigation-tools label>.label-icon{display:none}
.inspector #surface-analysis-controls{margin-top:0;padding-top:0;border:0}
details.inspection-group:not([open])>summary.icon-summary,details.context-help:not([open])>summary.icon-summary{transform:none}
details.inspection-group:not([open])>summary.icon-summary::after,details.context-help:not([open])>summary.icon-summary::after{transform:rotate(-45deg)}
#surface-analysis-controls>.check-control:first-child{margin-top:0}
/* Inline categories preserve drawable height at short desktop window sizes. */
.navigation-tools .toolbar-field-label,.navigation-tools .portal-display-control .toolbar-field-label{display:inline-block;font-size:11px;line-height:16px;margin:0;white-space:nowrap}
.navigation-tools .portal-display-control label,.navigation-tools .standard-view-control,.navigation-tools .size-control,.navigation-tools .comparison-view-control{display:flex;align-items:center;gap:6px}
.navigation-tools>.toolbar-group{align-items:center}
.navigation-tools .portal-display-control select{width:164px}

/* Shared-header review layout: setup above, immediate viewing below, source facts on demand. */
.top{min-height:44px;height:auto;padding:6px 12px;gap:14px;background:#25272e}
.top h1{font-size:14px;letter-spacing:0}.top .brand p{display:none}
.top .brand-mark{width:26px;height:26px;border-radius:6px;font-size:18px}
.top .brand{gap:9px;flex-shrink:0}.top .top-actions{gap:7px;margin-left:auto}
.top .comparison-tools{display:flex;align-items:center;gap:8px;border:0;padding:0;margin:0;min-width:0}
.top .comparison-view-control select{width:142px;height:30px;min-height:30px;margin:0;font-size:12px}
.top .comparison-view-control .toolbar-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.top .single-controls button{min-height:30px;height:30px;padding:4px 7px;font-size:12px}
.top .utility-actions{padding:0;margin:0;border:0;gap:5px}
.top .icon-only{min-height:30px;height:30px;width:30px;padding:5px}
.workspace{padding:0;gap:1px;background:var(--line)}
.comparison{border-radius:0}.compare-footer{border-radius:0;border:0}
.shared-review-header{z-index:10;display:flex!important;grid-template-areas:none!important;align-items:center;flex-wrap:wrap;gap:6px;padding:5px 9px;border:0;border-bottom:1px solid var(--line);background:#23262e}
.shared-review-header>.toolbar-group{padding:0!important;margin:0!important;border:0!important;gap:3px!important;align-items:center;flex:0 0 auto}
.shared-review-header .primary-shading button{height:30px;min-height:30px;padding:4px 8px;border-color:transparent;background:transparent;border-radius:3px;gap:5px;font-size:12px}
.shared-review-header .primary-shading button[aria-pressed=true]{background:#49405d;border-color:#78688d}
.shared-review-header .primary-shading button:hover{background:#353c48}
.shared-review-header .camera-tools{margin-left:auto!important;gap:6px!important}
.shared-review-header .workspace-menu>summary{height:30px;min-height:30px;padding:5px 8px;background:transparent;border-color:transparent;border-radius:3px}
.shared-review-header .workspace-menu[open]>summary{background:#3a3447;border-color:#85729f}
.shared-review-header .ground-control{height:30px;min-height:30px;padding:4px 8px;border-radius:3px;background:transparent;border-color:transparent}
.shared-review-header .projection-control{display:block}
.shared-review-header .projection-control>.toolbar-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.shared-review-header #camera-projection{margin:0;width:130px;min-height:30px;height:30px;font-size:12px}
.shared-review-header #frame-both{height:30px;min-height:30px;width:30px;padding:5px;background:transparent;border-color:transparent}
.shared-review-header #frame-both>.control-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#inspection-current{max-width:160px;overflow:hidden;text-overflow:ellipsis}
#appearance-menu>.menu-content{width:352px;padding:0;gap:0;scrollbar-gutter:stable;overscroll-behavior:contain}
#inspection-menu>.menu-content{width:316px;overscroll-behavior:contain}
.popover-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#252a34;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2;font-size:12px}
.popover-heading button{height:28px;min-height:28px}
.appearance-content>.inspection-group{padding:0;border:0;border-bottom:1px solid var(--line)}
.appearance-content>.inspection-group>summary{padding:10px 12px;font-size:12px}
.appearance-content>.inspection-group>.group-content{padding:12px}
.appearance-content .group-content>label,.appearance-content .group-content>div>label{margin-bottom:12px}
.appearance-content .group-content .check-control{display:flex!important;flex-direction:row!important;align-items:center!important;margin:10px 0;gap:7px!important}
.appearance-content .check-control>.label-icon{display:none}
.appearance-content .group-content>button{margin-top:8px}
.appearance-content .group-content>.context-help{margin:12px 0 0;padding:0}
.appearance-content #surface-analysis-controls{border:0;margin:0;padding:0}
.appearance-content .lighting-heading{position:static;margin:0;padding:0 0 6px;background:transparent}
.appearance-content .lighting-heading strong{font-size:12px}
.appearance-content .lighting-looks{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:6px}
.appearance-content .lighting-looks button{min-width:0;min-height:66px;font-size:10px;padding:5px 2px}
.appearance-content .background-control{margin:10px 0}
.appearance-content #ao-material-controls{margin:0;border:0;padding:0}
.appearance-content #ssaoRadius-value,.appearance-content #aoStrength-value{float:right}
.appearance-content .background-swatches .control-icon{display:none}
.appearance-content #quality-info{display:none}
.appearance-content .lighting-popover>.group-content{position:static}
#inspection-menu .lighting-heading{position:static;margin:0;padding:6px 0;background:transparent}
.inspector{border-radius:0;border:0}
@container review-portal (max-width:830px){.shared-review-header .camera-tools{margin-left:0!important}.shared-review-header{gap:4px}}
.top .brand-mark{display:grid}

#viewpoint-overlay{position:absolute;left:50%;top:50%;pointer-events:none;overflow:hidden;z-index:1}
#viewpoint-match-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0}
#viewpoint-match-tools label{display:flex;align-items:center;gap:6px;font-size:11px}#viewpoint-match-tools input{width:auto}
#viewpoint-match-tools button{font-size:11px;padding:5px 8px}#viewpoint-outline-info{flex-basis:100%;margin:0;font-size:11px;color:var(--muted);line-height:1.4}

.alignment-frame { margin: 10px 0; padding: 10px; border: 1px solid var(--border, #3c4654); border-radius: 6px; }
.alignment-frame legend { padding: 0 5px; color: var(--muted, #acb8c8); }
.alignment-pick-cursor { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, -50%); color: #79ecdf; font: 28px/1 monospace; text-shadow: 0 1px 3px #000; }

#alignment-base-markers { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.alignment-base-marker { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #79ecdf; color: #14202a; border: 1px solid #14202a; font-weight: 700; }

.structure-candidates { display:flex; align-items:center; gap:6px; }
#structure-source { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:var(--muted); }
.structure-candidates button { min-width:32px; }
.structure-actions { display:flex; flex-wrap:wrap; gap:5px; margin:8px 0; }
.structure-actions button { flex:1 1 100px; }
.structure-row { display:flex; align-items:center; gap:3px; min-height:30px; padding:1px 3px 1px min(calc(var(--level) * 12px),72px); cursor:default; font-size:12px; }
.structure-row[aria-selected=true] { background:#3c3453; color:#e4d8ff; }
.structure-row:focus-visible { outline:1px solid #bca4ff; outline-offset:-1px; }
.structure-row[data-visibility=hidden] .structure-name { opacity:.55; }
.structure-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.structure-row button { flex:none; padding:2px; min-width:24px; min-height:25px; background:transparent; border-color:transparent; }
.structure-row .structure-eye { color:#a7c2cb; font-size:13px; }
#structure-breadcrumb { overflow-wrap:anywhere; font-size:11px; }
#structure-overlay { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; }
#structure-overlay path { stroke:#79ecdf; stroke-width:1.5; fill:none; vector-effect:non-scaling-stroke; }
.material-entry[data-current=true] { border-left:2px solid #79ecdf; padding-left:7px; }
.structure-search { margin-top:10px; }
.structure-search input { display:block; width:100%; min-height:32px; margin-top:5px; padding:5px 8px; border:1px solid #444c5c; border-radius:5px; background:#161b24; color:var(--text); font:inherit; }

/* Independent inspection editors; ReviewLab owns layout, focus and persisted dimensions. */
.workspace{position:relative}
.workspace[data-inspector=true]{grid-template-columns:minmax(0,1fr) 8px var(--editors-width,320px);gap:0}
.workspace[data-inspector=false]{grid-template-columns:minmax(0,1fr);gap:0}
.inspection-editors{display:grid;grid-template-rows:minmax(0,1fr);min-width:0;min-height:0;background:var(--panel);overflow:hidden}
.inspection-editors[data-both=true]{grid-template-rows:var(--structure-height) 8px minmax(0,1fr)}
.structure-editor,.inspection-editors>.inspector{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--panel)}
.editor-heading{display:flex;align-items:center;gap:4px;flex:none;min-height:36px;padding:3px 8px;background:#252a34;border-bottom:1px solid var(--line)}
.editor-heading>strong{flex:1;font-size:12px;font-weight:600}
.editor-heading button{height:28px;min-height:28px;padding:4px}
.editor-heading button .control-icon{width:16px;height:16px}
.editor-heading #structure-badge{color:var(--muted);font-weight:400;margin-left:5px}
.properties-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex:1}
.properties-content>.inspection-group>.group-content{max-height:none;overflow:visible}
.selection-properties{padding:10px 12px;border-bottom:1px solid var(--line)}
.selection-properties>strong{font-size:11px;color:var(--muted);font-weight:500}
.selection-properties .structure-actions{margin-bottom:0}
.structure-toolbar{padding:7px 8px 5px;flex:none;border-bottom:1px solid var(--line)}
.structure-filters{display:flex;align-items:end;gap:6px;margin:6px 0}
.structure-filters>label{font-size:0;min-width:0;margin:0;flex:1}
.structure-filters .label-icon{display:none}
.structure-filters select,.structure-filters input{width:100%;height:30px;min-height:30px;margin:0;font-size:11px;padding:4px 6px}
.structure-tools{display:flex;align-items:center;gap:4px}
.structure-tools>button{font-size:11px;min-height:28px;padding:4px 6px}
.structure-tools>button .control-icon{width:14px;height:14px}
#structure-options{position:relative;margin-left:auto;flex:none;font-size:11px}
#structure-options>summary{padding:5px;cursor:pointer;list-style:none;border-radius:3px}
#structure-options[open]>summary{background:#394451}
#structure-options>div{position:absolute;right:0;top:100%;z-index:20;width:240px;max-height:calc(100vh - 220px);overflow:auto;background:#252d39;box-shadow:0 5px 20px #0008;border:1px solid var(--line);padding:8px;display:flex;flex-direction:column;gap:5px}
#structure-options:not([open])>div{display:none}
#structure-options .check-control{font-size:11px;display:flex;align-items:center}
#structure-options .help{font-size:11px;margin:4px 0}
#structure-tree{flex:1;overflow:auto;max-height:none;min-height:50px;margin:0;border:0;overscroll-behavior:contain;scrollbar-gutter:stable;padding:4px}
#structure-status{font-size:10px;line-height:1.35;margin:0;padding:5px 8px;flex:none;border-top:1px solid var(--line);color:var(--muted)}
.editor-splitter{display:flex;align-items:center;justify-content:center;background:#202731;touch-action:none;user-select:none;z-index:4}
#editors-splitter{cursor:col-resize;border-inline:1px solid #333d4a}
#properties-splitter{cursor:row-resize;border-block:1px solid #333d4a}
.editor-splitter span{background:#68798d;border-radius:3px;pointer-events:none}
#editors-splitter span{width:2px;height:30px}#properties-splitter span{height:2px;width:30px}
.editor-splitter:hover,.editor-splitter:focus-visible{background:#42616a;outline:0}
.workspace[data-editor-resizing=true]{user-select:none}
.workspace[data-maximized=structure] #structure-panel,.workspace[data-maximized=properties] #surface-inspector{position:absolute;inset:0;z-index:12}
.workspace[data-maximized=structure] #structure-options>div{max-height:calc(100vh - 220px)}
.workspace[data-maximized=structure] #structure-tree{font-size:13px}
/* Popovers may cross the editor divider; the tree remains its own scrollport. */
.structure-editor{overflow:visible;position:relative;z-index:5}
#structure-options>div,.workspace[data-maximized=structure] #structure-options>div{max-height:min(360px,calc(100vh - 260px))}

.inspection-editors[data-both=true]>#structure-panel{grid-row:1}
.inspection-editors[data-both=true]>#properties-splitter{grid-row:2}
.inspection-editors[data-both=true]>#surface-inspector{grid-row:3}
.workspace[data-maximized]:not([data-maximized=""]) .editor-splitter{visibility:hidden}

/* Review tasks share the existing resizable right-editor slot and bounded body. */
.alignment-task,.lighting-task{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--panel)}
.alignment-content,.lighting-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px 12px}
.alignment-content>.geometry-facts{font-size:11px;line-height:1.5;margin-bottom:12px;white-space:pre-line;overflow-wrap:anywhere}
.alignment-content .alignment-frame{margin:0 0 14px;padding:0;border:0}
.alignment-frame legend,.alignment-section h2{font-size:12px;font-weight:600;color:var(--text);margin:0 0 8px;padding:0}
.alignment-content .alignment-actions{margin-top:8px}
.alignment-content .help{margin-top:8px;line-height:1.45}
.alignment-content button,.alignment-footer button{font-size:12px;min-height:32px;padding:6px 8px}
.alignment-content select{font-size:12px;margin-top:5px}
.alignment-section{padding:12px 0;border-top:1px solid var(--line)}
.alignment-section .check-control{margin:8px 0}
.alignment-task .check-control>.label-icon{display:none}
.alignment-match-actions{display:grid;gap:6px}
.alignment-content #alignment-draft{border-top:1px solid var(--line);padding:12px 0}
.alignment-adjustments input{display:block;margin-top:5px;font:inherit;color:var(--text);background:#161b24;border:1px solid #444c5c;border-radius:5px;min-height:32px;padding:5px 7px}
.alignment-adjustments label+label{margin-top:8px}
.alignment-content>.context-help{font-size:11px;margin-top:12px}
.alignment-content>.context-help>summary{cursor:pointer;min-height:28px}
.alignment-content>.context-help button{margin-top:8px}
.alignment-footer{flex:none;padding:10px 12px;border-top:1px solid var(--line);background:#20242e}
.alignment-footer #alignment-status{font-size:11px;line-height:1.4;margin-bottom:8px}
.alignment-footer>.alignment-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.alignment-footer>.alignment-actions+ .alignment-actions{margin-top:7px}
.alignment-footer #alignment-cancel-run{width:100%;margin-bottom:7px}
#alignment-apply{background:#4e405f;border-color:#8e76af}
#alignment-badge{margin-left:6px}

/* Source presence is projected by ReviewLab; no second startup/session owner. */
.empty-start:not([hidden]){position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px;background:#181d28;text-align:center;}
.empty-start h2{margin:0;font-size:24px;font-weight:600;}.empty-start p{margin:0;max-width:470px;color:#b7c0ce;line-height:1.5;}.empty-start .empty-actions,.empty-secondary{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;}.empty-actions button{min-height:44px;padding:10px 22px;}.empty-secondary button{min-height:36px;}.empty-start .help{font-size:12px;}
#workspace[data-empty="true"] .camera-axis,#workspace[data-empty="true"] .viewport-label,#workspace[data-empty="true"] .view-caption,#workspace[data-empty="true"] .compare-footer{visibility:hidden;}
#load-missing{white-space:nowrap;}

#workspace[data-empty="true"] .compare-footer{display:none}

/* Lighting shares the task slot; only its body scrolls, never its close/sweep actions. */
.shared-review-header #lighting-summary{height:30px;min-height:30px;padding:5px 8px;background:transparent;border-color:transparent;border-radius:3px;font-size:12px}
.shared-review-header #lighting-summary[aria-expanded=true]{background:#3a3447;border-color:#85729f}
.lighting-scope{flex:none;padding:8px 12px;border-bottom:1px solid var(--line)}
.lighting-scope .help{margin:0;font-size:11px;line-height:1.4}
.lighting-scope #lighting-mode-notice{margin-top:6px;color:var(--text)}
.lighting-content label{display:block;font-size:12px;margin:8px 0}
.lighting-content label.check-control{display:flex;align-items:center;gap:7px}
.lighting-content .check-control>.label-icon{display:none}
.lighting-content select{width:100%;min-height:30px;font-size:12px;margin-top:5px}
.lighting-content output{float:right;font-size:11px;color:var(--muted)}
.lighting-content .help{font-size:11px;line-height:1.4;margin:7px 0}
.lighting-content .context-help{margin:8px 0;padding:0}
.lighting-content .context-help>summary{min-height:26px;font-size:11px;cursor:pointer;min-width:0;max-width:100%;overflow-wrap:anywhere}
.lighting-content .lighting-looks{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;min-width:0}
.lighting-content .lighting-looks button{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:1fr auto;align-items:center;justify-items:start;column-gap:6px;row-gap:3px;padding:6px;font-size:11px;min-width:0;min-height:50px;line-height:1.2;text-align:left;overflow-wrap:anywhere}
.lighting-content .light-look-sample{grid-row:1/3;width:24px;height:24px}
.lighting-content .lighting-looks .light-look-name,.lighting-content .lighting-looks small{grid-column:2;min-width:0;overflow-wrap:anywhere}
.lighting-content .lighting-looks small{color:var(--muted);font-size:10px}
.lighting-more-setups .lighting-looks{margin-top:6px}
.lighting-content .light-direction{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}
.lighting-content .light-direction h3{font-size:12px;margin:0 0 4px}
.lighting-direction-layout{display:grid;grid-template-columns:126px minmax(0,1fr);gap:9px;align-items:center}
.lighting-task{container:lighting-task / inline-size}
@container lighting-task (max-width:290px){.lighting-direction-layout{grid-template-columns:1fr}#lighting-widget-home{width:126px;justify-self:center}}
.lighting-content .lighting-attachment label{margin:0 0 8px}
.lighting-content #light-direction-value{float:none;display:block;line-height:1.5}
#lighting-widget-home .portal-light{position:static;width:100%;padding:0;background:transparent;border:0;border-radius:0}
#lighting-widget-home #portal-light-title{display:none}
#lighting-widget-home #light-widget svg,#lighting-widget-home #environment-widget{height:110px}
#lighting-widget-home #portal-light-state{font-size:10px;line-height:1.35}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.lighting-footer{flex:none;padding:8px 12px;border-top:1px solid var(--line);background:#20242e;display:flex;gap:6px}
.lighting-footer>button,.lighting-footer>#light-sweep-controls{flex:1;min-width:0}
.lighting-footer #light-sweep-controls{padding:0;border:0}
.lighting-footer button{width:100%;min-height:32px;font-size:11px;padding:5px 6px}

/* Evidence stays beside the models; focus choices keep the other editor's state. */
.uv-panel{container:evidence / size}
.inspection-tabs{order:-3;padding:5px;gap:3px}
.inspection-tabs button{padding:5px 6px;min-width:0}
#uv-memory-notice{order:-2}
#reference-pane{order:0}
#uv-pane{order:1}
.evidence-heading{display:flex;align-items:center;gap:5px;flex:none;min-height:32px;padding:4px 10px;border-bottom:1px solid var(--line);background:#20242e;font-size:12px}
.evidence-heading strong{flex:1;min-width:0}
.evidence-heading button{min-height:26px;padding:3px 5px;font-size:11px}
#reference-expand{display:none}
#uv-inspector[data-both=true][data-focus=''] #uv-pane{border-top:6px solid #12151c}
#uv-inspector[data-both=true][data-focus=uv] #reference-pane{flex:0 0 172px}
#uv-inspector[data-both=true][data-focus=uv] #reference-pane .reference-tools,
#uv-inspector[data-both=true][data-focus=uv] #reference-pane .reference-actions,
#uv-inspector[data-both=true][data-focus=uv] #viewpoint-panel,
#uv-inspector[data-both=true][data-focus=uv] #foreground-editor{display:none}
#uv-inspector[data-both=true][data-focus=uv] #reference-viewport{min-height:60px;margin:5px 10px}
#uv-inspector[data-both=true][data-focus=uv] #reference-expand{display:inline-flex}
@container evidence (max-height:650px){
 #uv-inspector[data-both=true]:not([data-focus=reference]) #reference-pane{flex:0 0 172px}
 #uv-inspector[data-both=true]:not([data-focus=reference]) #reference-pane .reference-tools,
 #uv-inspector[data-both=true]:not([data-focus=reference]) #reference-pane .reference-actions,
 #uv-inspector[data-both=true]:not([data-focus=reference]) #viewpoint-panel,
 #uv-inspector[data-both=true]:not([data-focus=reference]) #foreground-editor{display:none}
 #uv-inspector[data-both=true]:not([data-focus=reference]) #reference-viewport{min-height:60px;margin:5px 10px}
 #uv-inspector[data-both=true]:not([data-focus=reference]) #reference-expand{display:inline-flex}
}
#uv-inspector[data-both=false] #uv-pane>.evidence-heading{display:none}
#uv-inspector[data-both=true] #uv-pane .uv-menu-content{top:80px;max-height:calc(100% - 90px)}
#uv-inspector[data-both=true] #uv-pane #uv-isolation .uv-menu-content{top:118px;max-height:calc(100% - 128px)}
@container evidence (max-width:340px){#uv-isolation>summary>.control-icon{display:none}}

/* File commands and immutable source facts have separate homes. */
#files-menu .menu-content{width:300px}
#files-menu .menu-content button{justify-content:flex-start;text-align:left}
.source-facts{font-size:11px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;color:var(--muted)}

/* Sustained inspection tasks share one bounded shell and fixed recovery actions. */
.review-task{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden;background:var(--panel)}
.review-task[hidden]{display:none}
.review-task>.editor-heading,.review-task-context,.review-task-footer{flex:none}
.review-task-context{padding:8px 12px;margin:0;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.review-task-content{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;padding:4px 12px 12px}
.review-task-content label{display:block;font-size:12px;margin:10px 0}
.review-task-content label.check-control{display:flex;align-items:center;gap:7px}
.review-task-content .check-control>.label-icon{display:none}
.review-task-content select{width:100%;min-height:30px;font-size:12px;margin-top:5px}
.review-task-content output{float:right;font-size:11px;color:var(--muted)}
.review-task .help{font-size:11px;line-height:1.45;overflow-wrap:anywhere;margin:7px 0}
.review-task-content .context-help{margin:10px 0;padding:0;border-top:1px solid var(--line)}
.review-task-content .context-help>summary{min-height:30px;padding:8px 0;font-size:12px;cursor:pointer}
.review-task-footer{padding:8px 12px;border-top:1px solid var(--line);background:#20242e}
.review-task-actions{display:flex;gap:6px}
.review-task-actions>button{flex:1;min-width:0}
.review-task-footer>button{width:100%}
.review-task-footer button{min-height:32px;font-size:12px}
.inspection-task-entry{width:100%;justify-content:flex-start;margin-top:8px}
#cutaway-summary[data-active=true]{background:#3b516b;border-color:#b8d6f6;color:#fff}

.preparation-status:has([hidden]){display:none}.preparation-status{min-width:0}#placement-state{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#preparation-cancel{font-size:11px}

/* Workflow shell: existing controls, one fixed compare band, one right inspector. */
.workflow-review .top{display:grid;grid-template-columns:minmax(250px,1fr) auto minmax(290px,1fr);gap:12px;padding:7px 10px;min-height:54px;align-items:center;background:#101218}
.workflow-review .top-zone{display:flex;align-items:center;gap:6px;min-width:0}.workflow-review #session-zone{justify-content:flex-start}.workflow-review #record-zone{justify-content:flex-end}
.workflow-review .brand{gap:6px;flex-shrink:0}.workflow-review .brand-mark{width:26px;height:30px;font-size:20px;border-radius:5px}.workflow-review .brand h1{font-size:11px;line-height:1.2;max-width:82px;white-space:normal;letter-spacing:0}
.workflow-review button,.workflow-review select{min-height:32px}.workflow-review .top button,.workflow-review .top summary{font-size:11px;min-height:32px;padding:5px 6px;gap:4px;white-space:nowrap}.workflow-review .top .control-icon{width:13px;height:13px;flex:0 0 13px}
.workflow-review .top .icon-only .control-label{display:inline}.workflow-review .top .icon-only{width:auto}.workflow-review #compare-zone{gap:6px;width:max-content;max-width:100%;justify-content:center;flex-wrap:wrap}
.workflow-review .segmented{display:flex;align-items:stretch;gap:0;border:1px solid #454b5b;border-radius:6px;padding:2px;background:#151820;min-width:0}
.workflow-review .segmented>button{border:0;border-radius:4px;box-shadow:none;margin:0;background:transparent;min-width:max-content;flex:0 0 auto;justify-content:center}
.workflow-review .segmented>button[aria-pressed=true]{color:#20142f;background:var(--accent);font-weight:650}.workflow-review .segmented>button[aria-pressed=true] .control-icon{color:inherit}
.workflow-review #layout-segments,.workflow-review .primary-shading{width:auto;flex:0 0 auto}.workflow-review #layout-split{flex:0 0 auto}.workflow-review .primary-shading{margin:0}.workflow-review #swap,.workflow-review #frame-both{width:auto;flex:0 0 auto}
.workflow-review #record-zone>button{flex-shrink:0}.workflow-review #record-zone>#capture{background:#262b36;color:inherit;border-color:#444c5c}.workflow-review #record-zone>#capture[aria-busy=true]{background:var(--accent);color:#191222;border-color:var(--accent)}
.workflow-review .preparation-status{display:flex!important;align-items:center;gap:0;white-space:nowrap;flex-shrink:0;background:#203b36;border:1px solid #4f7f70;border-radius:7px;overflow:hidden;min-height:32px}
.workflow-review .preparation-status:not(:has(#placement-state:not([hidden]),#placement-undo:not([hidden]))){display:none!important}
.workflow-review #placement-state{max-width:160px;width:auto;border:0;background:transparent;font-size:10px;padding:4px 8px}.workflow-review #placement-state .control-label{display:inline}.workflow-review #placement-undo{border:0;border-left:1px solid #4f7f70;background:transparent;min-height:26px;font-size:10px;padding:3px 5px}
.workflow-review #placement-undo .control-icon{display:none}.workflow-review #preparation-cancel{font-size:10px;max-width:88px}
.workflow-review .workspace{display:grid;grid-template-columns:minmax(0,1fr) 6px var(--editors-width,380px);grid-template-rows:minmax(0,1fr);min-height:0;position:relative;overflow:hidden}.workflow-review .inspector-scrim{display:none}
.workflow-review .workspace[data-inspector=false]{grid-template-columns:minmax(0,1fr) 0 62px}.workflow-review .workspace[data-inspector=false] #inspection-editors{display:grid!important;width:62px}.workflow-review .workspace[data-inspector=false] #inspector-panels{display:none}.workflow-review .workspace[data-inspector=false] #inspection-editors .inspector-tabs{grid-column:1}
.workflow-review #review-area{grid-column:1;grid-row:1;display:grid;grid-template-areas:none;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0;min-width:0;position:relative;overflow:hidden}
.workflow-review #editors-splitter{grid-column:2;grid-row:1;min-width:6px;width:6px}.workflow-review #inspection-editors{grid-column:3;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 62px;grid-template-rows:minmax(0,1fr);height:100%;width:auto;min-width:0;border-left:1px solid #383d4b;background:#1a1d25;overflow:hidden}
.workflow-review .inspector-panels{grid-column:1;grid-row:1;overflow:auto;min-height:0;scrollbar-gutter:stable}.workflow-review .inspector-tabs{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:4px;border-left:1px solid #303541;background:#13161d;padding:7px 4px;min-height:0}
.workflow-review .inspector-tabs>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;width:100%;font-size:10px;padding:5px 2px;background:transparent;border:0;border-left:3px solid transparent;border-radius:8px;white-space:normal}
.workflow-review .inspector-tabs>button .control-icon{width:20px;height:20px}.workflow-review .inspector-tabs>button[aria-selected=true]{border-left-color:var(--accent);background:#3c304f;color:#f4ebff}.workflow-review #panels-summary{margin-top:auto}
.workflow-review .workflow-panel{min-width:0;padding:0 0 10px}.workflow-review .workflow-title{padding:12px;font-size:15px;position:sticky;top:0;background:#1a1d25;z-index:2;border-bottom:1px solid #303541}
.workflow-review .workflow-section{border:0;border-bottom:1px solid #303541;margin:0;border-radius:0;background:none;padding:0}.workflow-review .workflow-section>summary{display:flex;align-items:center;gap:7px;list-style:none;min-height:42px;padding:9px 10px;font-size:12px;font-weight:600;cursor:pointer}
.workflow-review .workflow-section>summary::-webkit-details-marker{display:none}.workflow-review .workflow-section>summary::after{content:'›';font-size:19px;font-weight:400;line-height:12px;color:#a7adbd}.workflow-review .workflow-section[open]>summary::after{transform:rotate(90deg)}
.workflow-review .section-value{margin-left:auto;max-width:62%;overflow:hidden;text-overflow:clip;white-space:normal;text-align:right;color:#b8bfcd;font-weight:400;font-size:10px;line-height:1.3}
.workflow-review .section-value.is-muted,.condition-badge.is-muted,.availability-note.is-muted{color:#8d95a8}
.availability-note{display:block;margin-left:22px;color:#b8bfcd;font-size:10px;font-weight:400}
.workflow-review .workflow-section>summary>.control-icon{width:14px;height:14px;flex-shrink:0;color:#c9b3fa}
.workflow-review .workflow-section-body{padding:0 10px 12px;min-width:0;overflow:hidden}
.workflow-review .workflow-section-body .inspection-group,.workflow-review .workflow-section-body .group-content,.workflow-review .workflow-section-body .context-help,.workflow-review .workflow-section-body .check-control,.workflow-review .workflow-section-body .background-swatches{min-width:0;max-width:100%}
.workflow-review .workflow-section-body .group-content{padding-left:0;padding-right:0}
.workflow-review .workflow-section-body .check-control,.workflow-review .background-swatches{flex-wrap:wrap}
.workflow-review .background-swatches button{flex:0 0 30px;min-width:30px;max-width:30px}.workflow-review .workflow-section-body>button{margin:4px 0}.workflow-review .workflow-section-body label{margin:8px 0;font-size:11px}.workflow-review .workflow-section-body p{font-size:11px;line-height:1.45;margin:6px 0}
.workflow-review .workflow-section-body .segmented{margin:7px 0;flex-wrap:wrap;max-width:100%;min-width:0}.workflow-review .workflow-section-body .segmented button{font-size:10px;padding:5px 3px;gap:3px}
.workflow-review #reference-display-modes>button{flex:1 1 auto;min-width:min-content;max-width:100%;white-space:normal}
.workflow-review .ao-field-label{margin:2px 0 0;color:var(--muted);font-size:11px}
.workflow-review .ao-source{width:100%;margin:2px 0 8px}
.workflow-review .ao-source>button{flex:1 1 0;min-width:0;white-space:normal;line-height:1.25;text-align:center}
.workflow-review .workflow-section-body .ao-source>button{font-size:11px;padding:6px 4px}
.workflow-review .ao-source>button .control-icon{display:none}
.workflow-review .ao-source>button.is-suggested:not([aria-pressed=true]){box-shadow:inset 0 0 0 1.5px var(--accent);color:#f3eaff}
.workflow-review .ao-source>button[aria-disabled=true]{opacity:.5}
.ao-status-lines{display:flex;flex-direction:column;gap:2px;margin:8px 0 6px}
.ao-status-line{display:flex;align-items:center;gap:8px;min-width:0}
.ao-status-line p{display:flex;align-items:center;gap:8px;flex:1;min-width:0;margin:0}
.ao-status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.ao-status-line #cancel-ao,.ao-status-lines>#cancel-ao{flex:none;margin:0;min-height:28px}
.ao-primary{display:flex;flex-direction:column;gap:4px;margin:2px 0 8px}
.ao-primary>button{width:100%}
.ao-primary .help{margin:0}
#ao-source-ssao{width:100%;margin:6px 0}
.workflow-review .workflow-section-body .help{color:#bcc3d1}.workflow-review .workflow-section-body select{width:100%;margin-top:4px;font-size:11px}.workflow-review .workflow-section-body input[type=range]{width:100%;accent-color:var(--accent)}
.workflow-review .workflow-section-body .label-icon{width:13px;height:13px}.workflow-review .workflow-section-body input[type=checkbox]{accent-color:var(--accent)}
.workflow-review .workflow-section-body .review-task,.workflow-review .workflow-section-body .lighting-task,.workflow-review .workflow-section-body .alignment-task,.workflow-review .workflow-section-body .structure-editor,.workflow-review .workflow-section-body .inspector,.workflow-review .workflow-section-body .viewpoint-panel{display:block;position:static;width:auto;height:auto;max-height:none;min-height:0;border:0;padding:0;overflow:visible;background:transparent;grid-column:auto;grid-row:auto}
/* Size containment lays an auto-height inspector out as empty. The section body then clips Properties to its padding. */
.workflow-review .workflow-section-body .inspector{container:none}
.workflow-review .workflow-section-body .editor-heading{display:none}.workflow-review .workflow-section-body .review-task-context{padding:3px 0;border:0;font-size:10px}.workflow-review .workflow-section-body .review-task-content,.workflow-review .workflow-section-body .lighting-content,.workflow-review .workflow-section-body .alignment-content,.workflow-review .workflow-section-body .viewpoint-content,.workflow-review .workflow-section-body .properties-content{height:auto;overflow:visible;padding:0;max-height:none;flex:none;min-height:auto}
.workflow-review .workflow-section-body .review-task-footer,.workflow-review .workflow-section-body .lighting-footer,.workflow-review .workflow-section-body .alignment-footer{position:static;padding:8px 0 0;border-top:1px solid #303541;background:transparent}
.workflow-review .workflow-section-body button{font-size:11px;padding:6px 8px}.workflow-review .workflow-section-body .context-help{margin:6px 0;border-top:1px solid #303541}.workflow-review .workflow-section-body .context-help>summary{min-height:32px;font-size:11px;padding:6px 6px 6px 0;min-width:0;max-width:100%}
.workflow-review .alignment-footer>.alignment-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.workflow-review .alignment-footer .alignment-actions button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.workflow-review .alignment-footer .alignment-actions button .control-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
.workflow-review .workflow-section-body fieldset{margin:8px 0;padding:8px;border:1px solid #3f4554}.workflow-review .workflow-section-body fieldset legend{font-size:11px}.workflow-review .alignment-adjustments{display:grid;grid-template-columns:1fr}.workflow-review .alignment-adjustments input{width:100%}
.workflow-review .structure-toolbar{display:block;position:static;padding:0;border:0;background:transparent}.workflow-review .structure-filters{display:grid;grid-template-columns:1fr;gap:3px}.workflow-review .structure-search{min-width:0}.workflow-review .structure-search input{width:100%;min-width:0}.workflow-review #structure-tree{max-height:260px;min-height:70px;overflow:auto;padding:0;font-size:11px}.workflow-review .structure-candidates{display:flex;flex-wrap:wrap}.workflow-review .structure-candidates button{min-width:36px}.workflow-review #structure-source{overflow-wrap:anywhere;flex-basis:100%;font-size:10px}
.workflow-review .structure-tools{display:flex;flex-wrap:wrap;gap:4px;min-width:0;max-width:100%}.workflow-review .structure-tools button{min-width:0}.workflow-review .structure-tools details{position:static}
.workflow-review #structure-options{position:static;flex:1 1 100%;margin:4px 0 0;min-width:0;max-width:100%}
.workflow-review #structure-options>summary{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0}
.workflow-review #structure-options:not([open])>summary:not(:focus-visible){background:transparent;box-shadow:none;outline:none}
.workflow-review #structure-options[open]>div{position:static;right:auto;top:auto;width:100%;max-width:100%;min-width:0;max-height:none;overflow:visible;box-shadow:none;border:0;background:transparent;padding:6px 0 0}
.workflow-review #structure-options .icon-control,.workflow-review #structure-options .check-control,.workflow-review #structure-options .help{width:100%;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left;justify-content:flex-start}
.workflow-review #structure-options .control-label{position:static;width:auto;height:auto;min-width:0;overflow:visible;clip-path:none;white-space:normal}
.workflow-review .structure-actions{display:flex;flex-wrap:wrap;gap:4px}.workflow-review .material-columns,.workflow-review .material-channel-row>summary{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);font-size:10px}.workflow-review .material-channel-body{padding:5px 0}.workflow-review .material-channel-body section{min-width:0}.workflow-review .material-entry{overflow-wrap:anywhere}
.workflow-review .disabled-reason{display:block;font-size:10px;font-weight:400;line-height:1.35;padding:5px 6px;margin:3px 0 7px;background:#2b233a;border:1px solid #544269;border-radius:5px;color:#ded1f4;white-space:normal}
.workflow-review #record-zone .disabled-reason{display:none}.workflow-review #record-zone button:disabled{cursor:help}.workflow-review button:disabled{opacity:.58;cursor:help}
.workflow-review .comparison{grid-row:1;grid-column:1;display:flex;flex-direction:column;min-height:0;min-width:0;position:relative;overflow:hidden}.workflow-review #viewport{flex:1;min-height:0;width:100%;height:100%;position:relative}.workflow-review #viewport[data-dragging=true]{outline:2px dashed #bca4ff;outline-offset:-8px}
.workflow-review #uv-inspector{display:contents!important}.workflow-review #uv-splitter{display:none!important}.workflow-review .inspection-tabs{display:none}
.workflow-review #uv-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:#151820;border:1px solid #394050;overflow:hidden}
.workflow-review .evidence-heading{min-height:32px;padding:4px 8px;gap:5px;border-bottom:1px solid #3a4150;background:#1c202a}.workflow-review .evidence-heading strong{font-size:11px}.workflow-review .evidence-heading button{font-size:10px;min-height:28px;padding:3px 5px}.workflow-review .evidence-heading .uv-candidates{margin-left:auto}
.workflow-review #review-area[data-uv-visible=true][data-uv-layout=single]{grid-template-areas:none;grid-template-columns:minmax(0,1fr) minmax(280px,380px);grid-template-rows:minmax(0,1fr)}.workflow-review #review-area[data-uv-visible=true][data-uv-layout=single] #uv-pane{grid-column:2;grid-row:1}.workflow-review #review-area[data-uv-visible=true][data-uv-layout=single] #uv-pane>.evidence-heading{display:flex}.workflow-review #uv-pane>.evidence-heading #uv-heading{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workflow-review #uv-pane .uv-candidates{display:flex;flex:none;gap:2px}.workflow-review #uv-pane .uv-candidates button{min-width:28px}.workflow-review #uv-pane .uv-candidates .control-icon{display:inline-flex}.workflow-review #uv-pane .uv-candidates .control-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}.workflow-review #uv-pane .uv-candidates button[aria-pressed=true]{background:#bca4ff;color:#20142f}
.workflow-review #review-area[data-uv-visible=true][data-uv-layout=beside]{grid-template-areas:none;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(180px,1.15fr) minmax(160px,1fr)}.workflow-review #review-area[data-uv-visible=true][data-uv-layout=beside] #uv-pane{grid-column:1;grid-row:2}.workflow-review #review-area[data-uv-layout=beside] #uv-pane>.evidence-heading{display:none}
.workflow-review .uv-pair{display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0;overflow:hidden}.workflow-review .uv-pair-cell{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.workflow-review .uv-pair-cell+section{border-left:1px solid #485062}.workflow-review .uv-pair-cell header{height:auto;min-height:28px;padding:5px 10px;background:#202530;font-size:11px;font-weight:600;display:flex;flex-direction:column;justify-content:center;gap:1px}.workflow-review .uv-pair-cell header .uv-layout-note{font-size:10px}.workflow-review .uv-pair-cell canvas{display:block;width:100%;height:auto;min-height:0;flex:1}
.workflow-review .uv-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.workflow-review #uv-canvas{flex:1;min-height:0;width:100%;height:100%}.workflow-review #review-area[data-uv-layout=beside] .uv-content{display:none}.workflow-review .uv-footer{height:auto;min-height:26px;flex:none;font-size:10px;padding:4px 7px}.workflow-review #uv-details{margin:3px 0}.workflow-review #uv-details p{font-size:10px}
.workflow-review .uv-toolbar{display:block;padding:0;border:0;background:transparent;overflow:visible}.workflow-review .uv-row{display:block;flex-wrap:wrap;margin:6px 0}.workflow-review .uv-toolbar .uv-menu{position:static}.workflow-review .uv-toolbar .uv-menu-content{position:static;display:block;width:auto;box-shadow:none;background:#20242e;border:1px solid #3d4454;padding:6px}.workflow-review #uv-isolation>summary{min-height:32px;padding:7px 0}
.workflow-review #reference-pane{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;border:1px solid #424a5b;background:#14171e}
.workflow-review #review-area[data-reference-visible=true][data-reference-mode=pane]{grid-template-columns:minmax(210px,1fr) minmax(0,2fr)}.workflow-review #review-area[data-reference-visible=true][data-reference-mode=pane] .comparison{grid-column:2}.workflow-review #review-area[data-reference-mode=pane] #reference-pane{grid-column:1;grid-row:1 / -1}
.workflow-review #review-area[data-reference-visible=true][data-reference-mode=pane][data-uv-visible=true][data-uv-layout=single]{grid-template-columns:minmax(190px,1fr) minmax(0,2fr) minmax(220px,1fr)}.workflow-review #review-area[data-reference-visible=true][data-reference-mode=pane][data-uv-visible=true][data-uv-layout=single] #uv-pane{grid-column:3}
.workflow-review #review-area[data-reference-visible=true][data-reference-mode=pane][data-uv-visible=true][data-uv-layout=beside] #uv-pane{grid-column:2;grid-row:2}
.workflow-review #reference-viewport{position:relative;flex:1;width:100%;height:100%;min-height:0;overflow:hidden}.workflow-review #reference-viewport img{position:absolute;top:50%;left:50%;max-width:none;max-height:none}.workflow-review .reference-tools{display:flex;flex-wrap:wrap;padding:5px;gap:3px}.workflow-review .reference-tools button{font-size:10px;min-height:28px;padding:3px 5px}.workflow-review #reference-zoom{font-size:10px;white-space:normal}
.workflow-review #review-area[data-reference-mode=thumbnail] #reference-pane{position:absolute;left:12px;bottom:42px;width:220px;height:176px;z-index:12;border-radius:8px;box-shadow:0 6px 20px #0008}.workflow-review #review-area[data-reference-mode=thumbnail] .reference-tools,.workflow-review #review-area[data-reference-mode=thumbnail] #viewpoint-open,.workflow-review #review-area[data-reference-mode=thumbnail] #foreground-editor{display:none}.workflow-review #review-area[data-reference-mode=thumbnail] .evidence-heading{min-height:28px}.workflow-review #review-area[data-reference-mode=thumbnail] #reference-close{display:none}
.workflow-review #review-area[data-reference-mode=overlay] #reference-pane{position:absolute;z-index:12;border:0;background:transparent;pointer-events:none;min-height:0}.workflow-review #review-area[data-reference-mode=overlay] #reference-pane>.evidence-heading,.workflow-review #review-area[data-reference-mode=overlay] .reference-tools,.workflow-review #review-area[data-reference-mode=overlay] #foreground-editor{display:none}.workflow-review #review-area[data-reference-mode=overlay] #reference-viewport{position:absolute;inset:0;background:transparent;pointer-events:none}
.workflow-review .reference-overlay-controls{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);pointer-events:auto;display:flex;align-items:center;gap:5px;padding:7px;background:#171b25f5;border:1px solid #7c6b9b;border-radius:7px;font-size:10px;max-width:95%;white-space:nowrap}.workflow-review .reference-overlay-controls button{padding:3px 7px;font-size:11px;min-height:28px}.workflow-review .reference-overlay-controls [aria-pressed=true]{background:#5d477d;border-color:var(--accent)}.workflow-review .reference-overlay-controls label{display:flex;gap:6px;align-items:center;font-size:10px}.workflow-review .reference-overlay-controls input{width:90px}.workflow-review .reference-overlay-controls output{min-width:28px}
.workflow-review .viewport-label{position:absolute;display:flex;align-items:center;gap:6px;z-index:15;background:#141720!important;color:#fff!important;border:1px solid #8b96ab;border-radius:14px;min-height:28px;padding:4px 9px;font-size:11px;box-shadow:0 2px 4px #0007;overflow:hidden;white-space:nowrap;pointer-events:none}.workflow-review .viewport-label>strong{background:#bca4ff;color:#181223;border-radius:10px;min-width:18px;width:18px;height:18px;display:grid;place-items:center;font-size:10px;padding:0}.workflow-review .label-b>strong{background:#8cdcf4}.workflow-review .viewport-label>span{overflow:hidden;text-overflow:ellipsis}.workflow-review .viewport-label>strong::after{content:''}
.workflow-review .compare-footer{display:contents}.workflow-review #stats-a,.workflow-review #stats-b{position:absolute;bottom:0;min-height:25px;height:auto;padding:5px 9px;font-size:10px;line-height:15px;color:#e4e9f5;background:#11151ef2;z-index:16;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-top:1px solid #3c4555;margin:0}
.workflow-review #single-controls{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:18;display:flex;gap:2px;padding:2px;background:#171b25;border:1px solid #6e6185;border-radius:7px}.workflow-review #single-controls button{font-size:11px;min-height:30px;min-width:38px;width:auto;padding:4px 8px;background:transparent;border-color:transparent;color:#9aa6ba;box-shadow:none}.workflow-review #single-controls button[aria-pressed=true]{background:#bca4ff;color:#20142f}.workflow-review #single-controls .showing-mark{font-weight:750;margin-right:4px}.workflow-review #single-controls .showing-mark[hidden]{display:none!important}.workflow-review #single-controls .control-label,.workflow-review .uv-candidates .control-label,.workflow-review .reference-overlay-controls .control-label{display:inline;position:static;width:auto;height:auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;clip-path:none;margin:0}.workflow-review #single-controls .control-icon,.workflow-review .uv-candidates .control-icon{display:none}.workflow-review .uv-candidates .icon-only,.workflow-review .reference-overlay-controls .icon-control{width:auto;min-width:0}
.workflow-review .active-mode-chips{position:absolute;top:47px;left:12px;display:flex;gap:5px;flex-wrap:wrap;max-width:calc(100% - 150px);z-index:17;pointer-events:none}.workflow-review .mode-chip{pointer-events:auto;min-height:27px;padding:3px 8px;font-size:10px;color:#f0e8ff;background:#362947;border:1px solid #8c73b1;border-radius:14px;white-space:nowrap}.workflow-review .view-caption{bottom:32px;background:#151a23f2;color:#e6eaf4;font-size:10px}.workflow-review .status-row{height:25px;min-height:25px;max-height:25px;box-sizing:border-box;overflow:hidden;background:#11151e;border-top:1px solid #343c4b}.workflow-review #status{height:100%;min-height:0;color:#e1e6f0;background:transparent;border-top:0;font-size:11px;padding:4px 10px}.workflow-review .build-identity{color:#c5cedd;padding:0 12px}
.workflow-review .empty-start{max-width:720px;width:min(720px,calc(100% - 48px));padding:24px;z-index:18;background:#141820;border:1px solid #333c4c;border-radius:12px}.workflow-review .empty-start h2{font-size:20px}.workflow-review .empty-start>p{font-size:13px;margin:10px 0}.workflow-review .candidate-drop-zones{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0 15px}.workflow-review .candidate-drop-zone{min-height:140px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;border:1px dashed #a88fda;background:#252034;font-size:15px;text-align:center}.workflow-review .candidate-drop-zone[data-dragging=true]{background:#43305e;border:2px solid var(--accent)}.workflow-review .drop-progress{font-size:11px;color:#c5bed8;font-weight:400}.workflow-review .empty-secondary{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.workflow-review .engine-preparation{font-size:11px!important;color:#d6c4f6;margin-top:18px!important;border-top:2px solid #a58dcf;padding-top:8px}
.workflow-review .maps-inventory-table,.workflow-review #candidate-stats{border-collapse:separate;border-spacing:4px 6px;width:100%;font-size:11px;table-layout:fixed}.workflow-review .maps-inventory-table th:first-child{width:27%}.workflow-review .maps-inventory-table th{font-weight:600;text-align:left;vertical-align:top;padding:5px 0}.workflow-review .maps-inventory-table th>small{display:block;color:#aeb6c7;font-size:10px;font-weight:400;margin-top:3px}.workflow-review .maps-inventory-table td{vertical-align:top;padding:5px;background:#222733;border:1px solid #3b4252;border-radius:7px;overflow-wrap:anywhere;min-width:0}.workflow-review .maps-inventory-table td>small,.workflow-review .maps-inventory-table td>strong{display:block;font-size:10px}.workflow-review .maps-inventory-table td[data-state=missing]{background:transparent;border-style:dashed;color:#c1c8d7}.workflow-review .maps-inventory-table td.map-missing{background:#3a2b13;border:1px solid #a78136;color:#ffe2a7}.workflow-review .map-thumbnail{display:flex;flex-direction:column;gap:5px;width:100%;min-width:0;align-items:flex-start;text-align:left;border:0;background:transparent;padding:2px!important}.workflow-review .map-thumbnail canvas{width:40px;height:40px;border-radius:4px;flex-shrink:0;border:1px solid #687287}.workflow-review .map-copy{min-width:0;display:flex;flex-direction:column;font-size:10px;line-height:1.35}.workflow-review .map-copy small{font-size:9px;color:#c2c9d8}.workflow-review .map-thumbnail:focus-visible{outline:2px solid #bca4ff;outline-offset:4px}.workflow-review .map-empty{color:#bec6d8;font-size:10px}.workflow-review #maps-breakdown{margin-top:10px}.workflow-review #maps-materials>details{border-top:1px solid #363e4c;padding:7px 0}.workflow-review #maps-materials>details>summary{font-size:11px;cursor:pointer}.workflow-review #maps-materials .map-thumbnail{flex-direction:row;margin:7px 0}.workflow-review #maps-summary{font-size:11px;color:#d7c9f0}.workflow-review #candidate-stats th,.workflow-review #candidate-stats td{padding:4px;font-size:10px;text-align:right}.workflow-review #candidate-stats th:first-child{text-align:left;width:47%}
.workflow-review .review-record-dialog{padding:0;width:min(620px,calc(100vw - 48px));height:min(850px,calc(100vh - 60px));border:1px solid #7c6b99;border-radius:9px;background:#1a1d25;color:#e9edf5}.workflow-review .review-record-dialog::backdrop{background:#080a10aa}.workflow-review .review-record-dialog #review-views-panel{height:100%;display:flex;flex-direction:column}.workflow-review #review-record-dialog .editor-heading{display:flex}
.workflow-review .review-toast{position:fixed;left:50%;bottom:38px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;z-index:1200;max-width:min(680px,calc(100vw - 32px));padding:10px 12px;background:#272137;border:1px solid #ad91d9;border-radius:8px;box-shadow:0 8px 28px #0008;font-size:12px;color:#f0e9ff}.workflow-review .review-toast button{font-size:11px;padding:4px 8px}.workflow-review .review-toast span{overflow-wrap:anywhere}
.workflow-review button[data-pending=true]{outline:2px solid var(--accent);outline-offset:-2px;background:#453452}.workflow-review button[aria-busy=true]{box-shadow:inset 0 -3px #bca4ff}
@media(min-width:1500px){.workflow-review .map-thumbnail{flex-direction:row}.workflow-review .maps-inventory-table td{padding:5px 3px}.workflow-review .top{gap:16px}}
@media(max-width:1679px){.workflow-review .top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;gap:6px 8px;padding:6px 8px}.workflow-review #session-zone{grid-row:1;grid-column:1}.workflow-review #record-zone{grid-row:1;grid-column:2}.workflow-review #compare-zone{grid-row:2;grid-column:1/-1;justify-self:stretch}.workflow-review .brand h1{max-width:100px}.workflow-review .top .segmented>button{min-height:30px}.workflow-review .top-zone{gap:5px}}
@media(max-width:1100px){.workflow-review .workspace,.workflow-review .workspace[data-inspector=false]{grid-template-columns:minmax(0,1fr)}.workflow-review .inspector-scrim{display:none}.workflow-review .workspace[data-inspector=true] .inspector-scrim{display:block;position:absolute;inset:0;z-index:30;border:0;padding:0;background:#080a1080;cursor:pointer}.workflow-review #inspection-editors{position:absolute;right:0;top:0;bottom:0;z-index:35;width:min(var(--editors-width,380px),calc(100% - 30px));box-shadow:-8px 0 28px #0008;grid-column:1}.workflow-review .workspace[data-inspector=false] #inspection-editors{width:62px;top:4px;bottom:auto;max-height:400px;background:transparent;box-shadow:none;border:0}.workflow-review .workspace[data-inspector=false] #inspection-editors .inspector-tabs{border:1px solid #3c4353;border-radius:8px;background:#151923ed}.workflow-review #editors-splitter{display:none!important}.workflow-review .viewport-label{font-size:10px}.workflow-review #record-zone button{font-size:10px;padding:5px}.workflow-review .candidate-drop-zones{gap:8px}.workflow-review .candidate-drop-zone{font-size:13px;min-height:120px;padding:12px}}
@media(prefers-reduced-motion:reduce){.workflow-review *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Native hidden state always wins; the collapsed rail remains explicitly mounted. */
.workflow-review [hidden]{display:none!important}
.workflow-review #record-zone .disabled-reason,.workflow-review #compare-zone .disabled-reason{display:block;font-size:9px;margin:0;padding:4px;position:absolute;top:calc(100% + 4px);left:0;width:140px;z-index:90;text-align:left;pointer-events:none}
.workflow-review #record-zone button,.workflow-review #compare-zone button{position:relative;overflow:visible}
.workflow-review #record-zone .disabled-reason[hidden],.workflow-review #compare-zone .disabled-reason[hidden]{display:none!important}
.workflow-review .primary-shading,.workflow-review #layout-segments{width:auto}.workflow-review #compare-zone{width:max-content;max-width:100%}
.workflow-review #compare-zone{position:relative}
.workflow-review #compare-zone .segmented,.workflow-review #compare-zone #swap,.workflow-review #compare-zone #frame-both,.workflow-review #toolbar-more{height:32px;min-height:32px;border-radius:6px;box-sizing:border-box}
.workflow-review #compare-zone .segmented{padding:2px;gap:2px;align-items:stretch}
.workflow-review #compare-zone .segmented>button,.workflow-review #compare-zone #swap,.workflow-review #compare-zone #frame-both,.workflow-review #toolbar-more{padding:0 10px!important;min-height:0;align-self:stretch;line-height:1}
.workflow-review #toolbar-more{display:none}
.workflow-review #compare-zone .segmented>button{height:100%;border-radius:4px}
.workflow-review #inspect-launch{display:flex;align-items:stretch;height:32px;min-height:32px;border:1px solid #454b5b;border-radius:6px;background:#151820;overflow:hidden;flex:0 0 auto}
.workflow-review #inspect-launch.active{border-color:#8c73b1;background:#2a2436}
.workflow-review #inspect-open,.workflow-review #inspect-clear{border:0;background:transparent;box-shadow:none;min-height:0;height:100%;padding:0 8px;font-size:11px}
.workflow-review #inspect-open{display:inline-flex;align-items:center;gap:6px}
.workflow-review #inspect-open em{font-style:normal;font-weight:700}
.workflow-review #inspect-open::after{content:'';width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;display:inline-block}
.workflow-review #inspect-clear{border-left:1px solid #454b5b;padding:0 7px;color:#d7deea}
.inspect-menu{position:fixed;z-index:80;display:flex;flex-direction:column;width:min(340px,calc(100vw - 16px));overflow:hidden;background:#1b1e27;border:1px solid #454c5c;border-radius:10px;box-shadow:0 18px 50px #0009;padding:0}
.inspect-menu-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid #2d323e;flex:none}
.inspect-menu-head b{font-size:12.5px}.inspect-menu-head span{font-size:11px;color:#8d94a3}
.inspect-menu-list{overflow:auto;min-height:72px;flex:1 1 auto;padding:2px 0 4px}
.inspect-group{margin:8px 12px 3px;color:#8e96a6;font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.inspect-mode{display:flex;align-items:center;gap:8px;width:calc(100% - 10px);min-height:28px;margin:0 5px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:#e5e9f0;font-size:12.5px;text-align:left;box-shadow:none}
.inspect-mode.is-active,.inspect-mode:hover{background:#33294f;box-shadow:inset 0 0 0 1px #6c5aae}
.inspect-mode[aria-current=true]{background:#342a44}
.inspect-mode[aria-disabled=true]{color:#6f7686}
.inspect-mode[aria-disabled=true] .inspect-swatch{opacity:.35}
.inspect-swatch{width:14px;height:14px;border-radius:3px;flex:0 0 14px}
.inspect-mode-name{flex:1;min-width:0}
.inspect-badge{margin-left:auto;min-width:18px;height:16px;padding:0 5px;border-radius:8px;font-size:10px;font-weight:800;line-height:16px;text-align:center}
.inspect-badge.b-err,.inspect-sev-chip.b-err{background:#4a2026;color:#ffb3b9}.inspect-badge.b-warn,.inspect-sev-chip.b-warn{background:#47361c;color:#ffd79a}.inspect-badge.b-info,.inspect-sev-chip.b-info{background:#1f3550;color:#b9d9ff}
.inspect-menu-foot{flex:0 1 auto;max-height:min(168px,42%);overflow:auto;margin:0;border-top:1px solid #2d323e;padding:9px 12px 8px;color:#c3c9d5;font-size:11.5px;line-height:1.4}
.inspect-menu-foot b{color:#fff}
.inspect-keys{display:flex;gap:10px;flex-wrap:wrap;color:#8f97a7;margin:8px 0 0;font-size:10.5px}
.inspect-keys kbd,.inspect-issue-foot kbd{font:inherit;font-size:10px;font-weight:700;color:#d9dee8;background:#2a2f3a;border:1px solid #444b59;border-bottom-width:2px;border-radius:4px;padding:0 4px;min-width:16px;text-align:center;display:inline-block;line-height:14px;margin-right:2px}
.workflow-review #inspect-card{margin:10px 10px 6px;padding:0;border:1px solid #4a3f72;border-radius:10px;background:linear-gradient(#211d31,#1c1a27);overflow:hidden}
.workflow-review #inspect-card.is-empty{border-color:#363b49;background:#1d2029}
.inspect-card-head{display:flex;align-items:center;gap:8px;padding:10px 10px 4px 12px}
.inspect-card-title{font-size:14px;font-weight:700}
.inspect-tag{font-size:10.5px;font-weight:650;color:#cfc4f5;background:#352d52;border-radius:4px;padding:1px 6px}
.inspect-card-head #inspect-card-clear{margin-left:auto}
.inspect-card-copy{margin:0;padding:0 12px 10px;color:#9aa3b5;font-size:11.5px;line-height:1.45}
.inspect-block{padding:10px 12px;border-top:1px solid #322c48}
.inspect-block-label{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#9ea6b6}
.inspect-block-label span{text-transform:none;letter-spacing:0;font-weight:500;color:#8d94a3}
.inspect-legend-bar{width:100%;height:12px;border-radius:3px;border:1px solid #ffffff26}
.inspect-ticks{display:flex;justify-content:space-between;gap:8px;margin-top:5px;font-size:11px;color:#d5dae4}
.inspect-ticks span:nth-child(2){color:#8d94a3}
.inspect-cats{display:flex;gap:12px;flex-wrap:wrap;font-size:11.5px;color:#d5dae4}
.inspect-cats i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.inspect-settings label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;font-size:12px;color:#d9dee8}
.inspect-settings select,.inspect-settings input[type=range]{width:150px;flex:0 0 auto}
.inspect-progress-row{display:grid;grid-template-columns:16px 1fr auto auto;gap:6px;align-items:center;margin:6px 0;font-size:11px}
.inspect-progress-row progress{width:100%;height:6px}
.workflow-review #inspect-issues{margin:4px 10px 10px;border:1px solid #303541;border-radius:10px;background:#1d2029;overflow:hidden}
.inspect-issue-tabs{display:flex;align-items:center;gap:4px;padding:8px 10px 0}
.inspect-issue-tabs button{min-height:26px;padding:3px 8px}
.inspect-issue-tabs button[aria-pressed=true]{background:#bca4ff;color:#20142f}
.inspect-count{display:inline-grid;place-items:center;min-width:17px;height:16px;padding:0 4px;border-radius:8px;font-size:10px;font-weight:800;background:#3a3f4c;color:#e6e9ef}
.inspect-issue-tabs button[aria-pressed=true] .inspect-count{background:#1b123340;color:#20142f}
.inspect-severity{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px}
.inspect-sev-chip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:11px;font-size:11.5px;font-weight:600}
.inspect-sev-chip i{width:8px;height:8px;border-radius:4px;background:currentColor}
.inspect-issue-group{border-top:1px solid #292d38}
.inspect-issue-main{display:flex;align-items:stretch}
.inspect-issue{display:grid;grid-template-columns:14px minmax(0,1fr) auto;grid-template-areas:'dot title tag' 'dot mesh tag';gap:2px 8px;flex:1;width:auto;margin:0;padding:8px 12px;text-align:left;background:transparent;border:0;border-radius:0;box-shadow:none}
.inspect-issue[aria-selected=true]{background:#2c2643;box-shadow:inset 3px 0 0 #bca4ff}
.inspect-issue[aria-selected=true] .inspect-issue-tag{background:#bca4ff;color:#20142f}
.inspect-sev{grid-area:dot;width:8px;height:8px;border-radius:4px;margin-top:5px}
.inspect-sev.b-err{background:#e04b4b}.inspect-sev.b-warn{background:#f0a14a}.inspect-sev.b-info{background:#6ea2e0}
.inspect-issue-title{grid-area:title;font-weight:600;color:#eef1f6}
.inspect-issue-title span{color:#8d94a3;font-weight:500}
.inspect-issue-mesh{grid-area:mesh;color:#9ea6b5;font-size:11px}
.inspect-issue-tag{grid-area:tag;align-self:center;font-size:10.5px;font-weight:650;color:#c8cdd8;background:#2b303b;border-radius:4px;padding:2px 6px}
.inspect-issue-expand{width:32px;border:0;border-left:1px solid #292d38;background:transparent;color:#c5ccd8;box-shadow:none}
.inspect-issue-meshes{padding:0 8px 8px 28px}
.inspect-issue-mesh-row{display:flex;justify-content:space-between;gap:8px;width:100%;margin-top:4px;padding:6px 8px;border:1px solid #3b4252;border-radius:6px;background:#222733;grid-template-columns:none}
.inspect-issue-foot{display:flex;align-items:center;gap:6px;padding:8px 12px;border-top:1px solid #292d38;font-size:11px;color:#9ea6b5}
.inspect-issue-foot span{margin-left:auto}
@media(max-width:1679px){.workflow-review #compare-zone{flex-wrap:nowrap;width:auto;max-width:100%;justify-content:center}}
@media(min-width:1280px){.workflow-review #compare-rest{display:contents}}
@media(max-width:1279px){.workflow-review #toolbar-more{display:inline-flex}.workflow-review #compare-rest{display:none;position:absolute;top:calc(100% + 6px);left:0;z-index:40;flex-direction:column;align-items:flex-start;gap:6px;width:max-content;max-width:calc(100vw - 16px);padding:8px;background:#171b24;border:1px solid #454c5c;border-radius:8px;box-shadow:0 12px 32px #000a}.workflow-review #compare-zone:has(#toolbar-more[aria-expanded=true]) #compare-rest{display:flex}}
.pane-inspect-chip{background:#2c3148;border:1px solid #6d7cae;border-radius:8px;padding:1px 6px;font-size:10px}
.inspect-progress,.inspect-issue-bar{position:absolute;left:50%;transform:translateX(-50%);z-index:18;display:flex;align-items:center;gap:6px;padding:4px 8px;background:#171b25f2;border:1px solid #6e6185;border-radius:8px;font-size:11px;white-space:nowrap}
.inspect-progress{bottom:64px}.inspect-issue-bar{bottom:36px;max-width:calc(100% - 24px)}
.inspect-issue-bar button{min-height:24px;padding:2px 7px}
#inspect-focus-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
#inspect-focus-overlay path{stroke:#f2b45a;stroke-width:1.5;fill:none;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.workflow-review #compare-zone .control-label{overflow:visible;text-overflow:clip}
.workflow-review .axis-plot button{box-sizing:border-box;--axis-disc:28px;width:calc(var(--axis-disc) * var(--axis-scale, 1));height:calc(var(--axis-disc) * var(--axis-scale, 1));min-width:0;max-width:none;min-height:0;max-height:none;aspect-ratio:1/1;padding:0;margin:0;border-radius:50%;line-height:1;box-shadow:none;appearance:none}
.workflow-review .axis-plot button:hover,.workflow-review .axis-plot button[aria-pressed=true]{border-width:1px;outline:2px solid #fff;outline-offset:1px;box-shadow:none}
@container review-portal (max-width:1180px){.workflow-review .axis-plot button{--axis-disc:22px;font-size:calc(9px * var(--axis-scale, 1))}}
.workflow-review .top .icon-only .control-label{position:static;width:auto;height:auto;clip:auto;overflow:visible;margin:0}
.workflow-review .workflow-section>summary>.control-icon{pointer-events:none}

.workflow-review .empty-start:not([hidden]){inset:50% auto auto 50%;transform:translate(-50%,-50%);height:auto;gap:10px;max-height:calc(100% - 30px);overflow:auto}
.workflow-review .empty-start .candidate-drop-zones{display:grid;width:100%}
.workflow-review .disabled-reason:not(.toolbar-disabled-reason){float:none;clear:both;flex:0 0 100%;grid-column:1/-1}
.workflow-review .lighting-launchers,.workflow-review .review-task-actions{flex-wrap:wrap}
.workflow-review .top{overflow:visible}
.workflow-review .toolbar-disabled-reason{max-height:50px;overflow:hidden}

.workflow-review #record-zone .toolbar-disabled-reason,.workflow-review #compare-zone .toolbar-disabled-reason{display:none}
.workflow-review #record-zone button:hover .toolbar-disabled-reason,.workflow-review #compare-zone button:hover .toolbar-disabled-reason,.workflow-review #record-zone button:focus-visible .toolbar-disabled-reason,.workflow-review #compare-zone button:focus-visible .toolbar-disabled-reason{display:block}
.workflow-review .lighting-launchers .disabled-reason{flex-basis:100%}
.workflow-review .toolbar-disabled-reason{clip:auto}
.workflow-review .empty-start .empty-actions button{padding:20px;min-height:140px}
.workflow-review #try-samples[aria-busy=true]{opacity:1;cursor:wait}
.workflow-review .empty-start:has(#sample-chooser:not([hidden])){max-width:860px;width:min(860px,calc(100% - 32px))}
.workflow-review .sample-chooser{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;margin:4px 0 2px}
.workflow-review .sample-choice{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-height:0;padding:8px;background:#1c2230;border:1px solid #3c4658;border-radius:10px;text-align:left;color:#e7edf7}
.workflow-review .sample-picture{position:relative;display:block;border-radius:6px;overflow:hidden;background:#10141c}
.workflow-review .sample-choice img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:6px;background:#10141c}
.workflow-review .sample-choice-name{font-size:15px;font-weight:650;line-height:1.2}
.workflow-review .sample-choice-note{font-size:12px;font-weight:450;color:#b7c0ce}
.workflow-review .sample-choice:hover,.workflow-review .sample-choice:focus-visible{border-color:var(--accent);background:#2a2438}
.workflow-review .sample-choice:disabled{opacity:.72}
.workflow-review .sample-choice.is-inactive{opacity:.38;filter:grayscale(.85);cursor:default}
.workflow-review .sample-choice[aria-busy=true]{opacity:1;filter:none;cursor:wait;border-color:var(--accent)}
.workflow-review .sample-choice[aria-busy=true] .sample-picture img{filter:blur(2.5px) brightness(.5)}
.workflow-review .sample-load{position:absolute;inset:0;z-index:1;background:rgba(8,10,16,.62);color:#f7f4ff;text-align:center;pointer-events:none;overflow:hidden}
.workflow-review .sample-load-panel{position:absolute;left:0;right:0;top:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px 14px}
.workflow-review .sample-load-label{font-size:17px;font-weight:650;line-height:1.25;text-wrap:balance}
.workflow-review .sample-load-meter{width:min(200px,82%);height:10px;border-radius:99px;background:#242a38;border:1px solid #a894d4;overflow:hidden;box-sizing:border-box}
.workflow-review .sample-load-bar{display:block;height:100%;width:100%;transform-origin:left center;background:#bca4ff;border-radius:inherit}
.workflow-review .sample-load-meter[data-state=indeterminate] .sample-load-bar{background:repeating-linear-gradient(-45deg,#bca4ff 0 10px,#efe8ff 10px 20px);background-size:28px 28px;animation:sample-load-stripes .8s linear infinite}
.workflow-review .sample-load-percent{font-size:22px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1}
@keyframes sample-load-stripes{from{background-position:0 0}to{background-position:28px 0}}
@media(prefers-reduced-motion:reduce){.workflow-review .sample-choice[aria-busy=true] .sample-picture img{filter:brightness(.55)}}
.workflow-review .sample-keys{grid-column:1/-1;margin:0;color:#9aa6ba;font-size:12px}
.workflow-review .sample-or{margin:8px 0 0;color:#9aa6ba;font-size:12px}
.workflow-review .empty-start:has(#sample-chooser:not([hidden]))>#sample-credit{max-width:760px}
.workflow-review .empty-start:has(#sample-chooser:not([hidden])) .candidate-drop-zones{margin:10px 0 8px}
.workflow-review .empty-start:has(#sample-chooser:not([hidden])) .candidate-drop-zone{min-height:84px;padding:12px 14px}
@media(max-width:720px){.workflow-review .sample-chooser{grid-template-columns:1fr}}

.workflow-review #review-area[data-reference-mode=thumbnail] #reference-expand{display:inline-flex}.workflow-review #reference-expand .control-label{display:inline;position:static;width:auto;height:auto;clip:auto}
.workflow-review #model-structure .editor-heading,.workflow-review #model-properties .editor-heading{display:flex;padding:3px 0;border:0;background:transparent}.workflow-review #model-structure .editor-heading>strong,.workflow-review #model-properties .editor-heading>strong{display:none}.workflow-review .workflow-section-body .editor-heading>button{min-height:28px;font-size:10px}
.workflow-review .workspace[data-section-focus=structure] #inspector-model>.workflow-section:not(#model-structure),.workflow-review .workspace[data-section-focus=properties] #inspector-model>.workflow-section:not(#model-properties){display:none}
.workflow-review #structure-overlay path{stroke:#bca4ff}

.workflow-review button[data-pressed=true]{outline:2px solid #bca4ff;outline-offset:-2px;background:#443250}

.workflow-review .workspace[data-inspector=false] #inspection-editors{grid-template-columns:62px}
.workflow-review .inspector-panels{container:workflow-inspector / inline-size}
.workflow-review .maps-inventory-table .map-thumbnail{flex-direction:column}.workflow-review .map-copy{font-size:11px}.workflow-review .map-copy small{font-size:10px}
@container workflow-inspector (min-width:400px){.workflow-review .maps-inventory-table .map-thumbnail{flex-direction:row}}
.workflow-review #uv-mesh{width:100%;margin-top:4px}.workflow-review #uv-options>summary{min-height:32px;font-size:11px;padding:7px 0}
.workflow-review .projection-control>.toolbar-field-label{position:static!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important}

.workflow-review details.workflow-section>summary.icon-summary::after{content:'›';border:0;width:12px;height:auto;flex:0 0 12px;display:inline-block;transform:none}.workflow-review details.workflow-section[open]>summary.icon-summary::after{transform:rotate(90deg)}
.workflow-review #reference-expand{width:auto;min-width:70px}.workflow-review #reference-expand .control-label{clip-path:none;font-size:10px}
@media(max-width:1100px) and (max-height:500px) and (orientation:landscape){
 .workflow-review .workspace[data-inspector=false]{grid-template-columns:minmax(0,1fr) 0 62px}
 .workflow-review .workspace[data-inspector=false] #inspection-editors{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:auto;width:62px;max-height:none;height:100%;grid-column:3;background:transparent;box-shadow:none;border:0}
}
@media(max-width:700px) and (orientation:portrait){
 .workflow-review .workspace[data-inspector=false]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .workflow-review .workspace[data-inspector=false] #inspection-editors{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:auto;width:auto;height:auto;max-height:none;grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;padding-bottom:env(safe-area-inset-bottom);background:#13161d;box-shadow:none;border:0;border-top:1px solid #303541}
 .workflow-review .workspace[data-inspector=false] #inspection-editors .inspector-tabs{flex-direction:row;align-items:stretch;width:100%;overflow-x:auto;overflow-y:hidden;border-radius:0;border-width:1px 0 0;padding:4px 6px calc(4px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
 .workflow-review .workspace[data-inspector=false] .inspector-tabs>button{flex:1 1 0;width:auto;min-width:0;padding:4px 1px;font-size:10px;border-left-color:transparent;border-bottom:3px solid transparent}
 .workflow-review .workspace[data-inspector=false] .inspector-tabs>button[aria-selected=true]{border-left-color:transparent;border-bottom-color:var(--accent)}
 .workflow-review .workspace[data-inspector=false] #panels-summary{margin-top:0;margin-left:0}
 .workflow-review .empty-start:not([hidden]){top:8px;bottom:8px;height:auto;max-height:none;transform:translateX(-50%)}
 .workflow-review .top{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:4px 6px}
 .workflow-review #session-zone{grid-row:1;grid-column:1;min-width:0;flex-wrap:nowrap}
 .workflow-review .brand h1{max-width:72px}
 .workflow-review #record-zone{grid-row:1;grid-column:2;justify-content:flex-end;flex-wrap:nowrap;gap:4px}
 .workflow-review #record-zone>button{width:34px;min-width:34px;max-width:34px;flex:0 0 34px;padding:0!important;justify-content:center}
 .workflow-review #record-zone .control-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
 .workflow-review #compare-zone{grid-row:2;grid-column:1 / -1;flex-wrap:nowrap;justify-content:flex-start;gap:4px;width:100%;max-width:100%}
 .workflow-review #compare-zone .segmented>button,.workflow-review #compare-zone #toolbar-more{padding:0 6px!important;margin-left:0}
 .workflow-review .workspace[data-comparison=split] .divider{inset:50% 0 auto 0;width:auto;height:1px}
 .workflow-review .workspace[data-comparison=split] .view-caption{bottom:calc(50% + 28px)}
 .workflow-review .review-toast{left:12px;right:12px;width:auto;max-width:none;transform:none;bottom:calc(112px + env(safe-area-inset-bottom));flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px}
 .workflow-review .review-toast span{flex:1 1 10em;min-width:8em;overflow-wrap:break-word}
 .workflow-review .review-toast button{flex:1 1 6.5em;min-width:6.5em;max-width:9em;text-align:center;box-sizing:border-box}
}
