/* One compact command hierarchy; existing controls remain usable. */
.command-menu{position:relative;margin:0!important;padding:0!important;border:0!important;flex:none;min-width:0}
.command-menu>summary{list-style:none;cursor:pointer;min-height:28px!important;padding:4px 8px!important;font:500 12px/20px system-ui,sans-serif!important;border:1px solid #c5d0c9;border-radius:4px;background:#fff;color:#233f34;white-space:nowrap;display:flex;align-items:center;gap:6px;box-sizing:border-box}
.command-menu>summary::-webkit-details-marker{display:none}.command-menu>summary:after{content:'⌄';font-size:12px}.command-menu[open]>summary{border-color:#406b56;background:#edf3ed}
.command-popover{position:absolute;z-index:80;top:calc(100% + 4px);right:0;width:max-content;min-width:180px;max-width:min(340px,calc(100vw - 24px));max-height:min(440px,70dvh);overflow:auto;background:#fff;color:#233f34;border:1px solid #bacac0;border-radius:5px;box-shadow:0 5px 16px #193d3026;padding:7px;display:flex;flex-direction:column;gap:5px;box-sizing:border-box}
.command-menu:not([open])>.command-popover{display:none}.command-popover>button{width:100%!important;height:auto!important;text-align:left;justify-content:flex-start;min-height:28px;padding:4px 7px;font-size:12px!important;white-space:normal}
.command-popover>label{font-size:12px!important;margin:2px 0;display:flex;gap:8px;align-items:center;justify-content:space-between}.command-popover>label select{width:150px;min-width:0}
.command-popover .viewer-performance{position:static!important;background:transparent;border:0;max-width:280px;margin:0!important;padding:0!important}.command-popover .viewer-performance summary{background:transparent;padding:4px!important;font-size:12px!important}
.command-popover .clean-note,.command-popover .viewport-caption{position:static!important;margin:0!important;padding:2px!important;max-width:280px;box-shadow:none;background:transparent}.command-popover .texture-caption{display:block!important;position:static!important;font-size:12px;line-height:1.4}
.command-popover .type-switch{display:flex;flex-direction:column;width:100%;padding:0;background:transparent;gap:3px}.command-popover .type-switch button{width:100%;justify-content:flex-start;min-height:28px}
.command-project-info{font-size:12px;line-height:1.35;border-top:1px solid #d9e2db;padding-top:6px;margin-top:3px}.command-project-info .eyebrow,.command-project-info .badge{font-size:11px;display:inline-block;margin:0 4px 4px 0}.command-project-info p{font-size:12px!important;margin:0!important}
.project-heading{align-items:center}.project-heading .title-row{min-width:0}.project-heading h1{font-size:18px!important;line-height:1.25;margin:0}.project-heading>.project-actions{flex-shrink:0}.project-heading:has([data-command-menu=project]){min-height:34px;margin-bottom:5px}.project-actions .export-wrap{width:100%}.command-popover .export-menu{position:static!important;box-shadow:none!important;border:0!important;max-height:260px;overflow:auto;min-width:0}.command-popover .export-menu button{font-size:12px!important;padding:5px 7px}
.top-actions [data-command-menu=workspace]{order:10}.top-actions .save-state{font-size:11px}
.workspace-bar>.command-menu .command-popover{left:0;right:auto}.workspace-bar>.unit-label{order:4;margin-left:auto;font-size:10px}.workspace-bar{gap:10px!important;min-height:34px!important;padding:3px 6px!important}.view-tabs{gap:12px!important}.view-tabs button{font-size:12px!important;min-height:28px}
.command-form-fold{border:0;border-top:1px solid #dae2d8;margin:4px 0!important;padding:4px 0!important}.command-form-fold>summary{font-size:12px!important;font-weight:600;line-height:1.35!important;min-height:28px!important;padding:4px 1px!important;color:#244a38}.command-form-fold>.config-section{padding:4px 0}.command-form-fold .config-section>h3{font-size:13px;margin:3px 0}.command-form-fold .tile-picker{margin:4px 0}.command-form-fold .tile-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.command-layout-ready{display:flex!important;flex-direction:column;min-height:0;overflow:visible!important}.command-layout-ready .viewport-heading.command-toolbar{position:relative!important;inset:auto!important;z-index:20;flex:none;display:flex;align-items:center;justify-content:flex-start;gap:5px!important;row-gap:3px!important;margin:0;padding:4px 6px!important;min-height:34px!important;height:auto!important;background:#f8faf7;border-bottom:1px solid #ccd8d0;pointer-events:auto}
.command-toolbar>button{min-height:26px!important;font-size:12px!important;padding:3px 7px!important;line-height:20px}.command-toolbar [data-command-menu=appearance]{margin-left:auto!important}.command-toolbar .exploded-controls{display:flex!important;align-items:center;flex-wrap:wrap;gap:5px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-height:26px;font-size:12px!important}.command-toolbar .exploded-controls label{font-size:12px!important;margin:0!important;gap:3px}.command-toolbar .exploded-controls input[type=range]{width:65px;min-height:0;padding:0}.command-toolbar .exploded-controls button{min-height:24px!important;font-size:11px!important;padding:2px 5px}.command-toolbar .exploded-controls [hidden]{display:none!important}
.command-layout-ready #canvas-host{position:relative!important;inset:auto!important;flex:1;min-height:0;width:100%;height:auto!important}.command-layout-ready .camera-toolbar{display:none!important}.command-layout-ready .compass{top:calc(var(--viewer-toolbar-height,34px) + 8px);right:8px}.command-layout-ready .selection-card{top:calc(var(--viewer-toolbar-height,34px) + 6px);max-height:calc(100% - var(--viewer-toolbar-height,34px) - 12px);overflow:auto;box-sizing:border-box}.command-layout-ready .command-popover details>summary{font-size:12px!important;min-height:25px;padding:3px!important}
.command-toolbar>.command-menu:first-child>.command-popover{left:0;right:auto}
:where(.command-menu summary,.command-popover button,.command-form-fold summary):focus-visible{outline:2px solid #245d45;outline-offset:2px}
@media(max-width:850px){.project-heading h1{font-size:16px!important}.project-actions{flex-wrap:wrap}.workspace-bar{flex-wrap:wrap}.command-toolbar .exploded-controls{max-width:100%}.command-layout-ready #canvas-host{min-height:240px}}
@media(max-width:650px){.command-popover{max-width:calc(100vw - 24px)}.command-toolbar{flex-wrap:wrap}.command-layout-ready #canvas-host{min-height:290px}.command-menu>summary{min-height:32px!important}.project-heading .project-actions{width:100%;margin-top:3px}.workspace-bar .view-tabs{width:auto;flex:1}.command-layout-ready .viewport-heading.command-toolbar{z-index:25}}

.command-toolbar>button{border:1px solid #c5d0c9;background:#fff;color:#233f34;border-radius:4px;box-shadow:none}.command-toolbar>button[aria-pressed=true]{background:#e3eee3;border-color:#608167;color:#173d30}
.command-popover>.icon-button{width:100%;min-height:28px;display:flex;gap:6px}.command-popover>.export-wrap>button{width:100%;justify-content:flex-start}.command-popover .command-project-info .unit-label{display:block;text-align:left}

.sales-pick-list:not(:has([data-sales-products]:checked)) .sales-product-label{display:none}.sales-options{margin:0!important}.sales-options .command-popover{min-width:220px}.sales-options .command-popover>p{font-size:12px!important;line-height:1.35;margin:4px 0}.sales-simple-table td{padding:5px 6px!important}.sales-simple-table td:first-child{width:auto}.sales-pick-heading h2{font-size:17px!important;margin:0}.sales-assembly-partial{padding:5px 7px!important;gap:3px!important;font-size:12px!important}.sales-assembly-partial>strong{font-size:11px!important}.sales-assembly-partial small{font-size:11px!important}.sales-pick-actions{align-items:center;gap:5px}

.command-layout-ready[hidden]{display:none!important}

.command-popover>button{border:1px solid #c8d3cc;background:#fff;color:#244534;border-radius:4px;box-shadow:none}.command-popover>button[aria-pressed=true],.command-popover>button.active{background:#e6efe4;border-color:#608167}.command-popover>button:hover{background:#eef3ed}
[data-command-slot=appearance]>.quality-control{order:0}[data-command-slot=appearance]>.scene-control{order:1}[data-command-slot=appearance]>button{order:2}[data-command-slot=appearance]>.viewer-performance{order:3}[data-command-slot=appearance]>[data-command-slot=help]{order:4}

.inspector-tabs:has([data-command-menu=configuration]){align-items:center;justify-content:flex-start;gap:5px;padding-bottom:4px}.inspector-tabs>[data-inspector]{flex:1!important}.inspector-tabs>.command-menu>summary{font-size:11px!important;padding:3px 6px!important;min-height:26px!important}.inspector-tabs>.command-menu{flex:none}.inspector-tabs .command-popover button{min-height:28px;font-size:12px;padding:4px 7px;text-align:left}

.command-structure-edits{margin:4px 0 6px!important;padding:0!important;border:0!important}.command-structure-edits>summary{min-height:26px!important;padding:3px 2px!important;font-size:12px!important;color:#244a38}.command-structure-edits>section{padding:2px 0}.framing-exploded-toolbar.command-toolbar{display:flex;align-items:center;gap:4px;margin:4px 0}.framing-exploded-toolbar>.command-menu>summary{min-height:26px!important}

.command-catalog-dimensions{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;align-items:start;min-width:220px}.command-catalog-dimensions>img.tile-photo{width:84px!important;height:58px!important;object-fit:contain;max-height:58px!important;margin:0!important}.command-catalog-facts{font-size:12px;line-height:1.4}.command-catalog-facts>small{font-size:12px!important;line-height:1.35;margin-top:3px;display:block}.command-catalog-facts>.clean-note{margin:3px 0 0!important;padding:0!important}.command-catalog-facts>.clean-note>summary{min-height:24px!important;padding:3px 0!important;font-size:12px!important}

.intro:has(#layout-attach-open){align-items:center;flex-wrap:wrap;gap:6px 12px}.intro>.actions{margin:0!important;order:1;gap:5px}.intro>.roof-overview{order:2}.intro:has(#layout-attach-open)>h1{margin-right:auto!important;font-size:18px!important}
.command-framing-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 8px;margin-bottom:4px}.command-framing-title>h3{font-size:16px!important;line-height:1.3;margin:0!important}.command-framing-title>.actions{margin:0!important;gap:4px;flex-wrap:wrap}.command-framing-title>.actions>button,.command-framing-title summary{font-size:12px!important;min-height:27px!important;padding:3px 6px!important}.command-framing-title .framing-tool-groups{margin:4px 0!important;flex-basis:100%}.command-framing-title .framing-more-actions[open]{flex-basis:100%;max-width:100%}.command-framing-title:has(.framing-more-actions[open]){align-items:flex-start}
