.countertop-menu { position: relative; }
.cabinet-door-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(88px, 1fr));
  align-items: center;
  gap: 8px;
  border-top: 1px solid #dbe3dd;
  padding-top: 5px;
  color: #354d40;
  font: 600 12px/1.2 "Segoe UI", Arial, sans-serif;
}
.cabinet-door-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px #afc3b5;
  background: #f4f8f5;
}
:is(#selectionHud, #details) .cabinet-door-pair button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px 0 0 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
:is(#selectionHud, #details) .cabinet-door-pair button + button { border-left: 1px solid #c3d2c8; border-radius: 0 5px 5px 0; }
:is(#selectionHud, #details) .cabinet-door-pair button[aria-pressed="true"] { background: #dcebdd; }
:is(#selectionHud, #details) .cabinet-door-pair button:focus-visible { outline: 2px solid #34755c; outline-offset: -2px; }
.cabinet-door-pair svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cabinet-action-symbol {
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  color: inherit;
  font: 600 11px/1.1 "Segoe UI", Arial, sans-serif;
}
#selectionHud .cabinet-action-symbol svg, #details .cabinet-action-symbol svg {
  display: block;
  width: 28px;
  height: 23px;
}
.countertop-menu .planner-command-label::after, .countertop-menu .viewer-countertop-caption::after {
  content: ''; display: inline-block; margin: 0 0 2px 4px;
  border: 3px solid transparent; border-bottom: 0; border-top-color: currentColor;
}
.countertop-menu:has(select:disabled) { opacity: .4; }
.countertop-menu:focus-within, #viewerPresentationControls:focus-within {
  outline: 2px solid #34755c; outline-offset: -2px;
}
.countertop-menu > select.viewer-tool-select, #viewerRenderMode {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  margin: 0; cursor: pointer; font-size: 16px; touch-action: manipulation;
}
.scene-room-measurements { position:absolute; inset:0; pointer-events:none; z-index:6; overflow:hidden; }
.scene-room-measurements svg { position:absolute; inset:0; width:100%; height:100%; fill:none; stroke:#4d615a; stroke-width:1.25; }
.scene-room-measurements .room-selection-shape {
  fill:#39acff; fill-opacity:.18; stroke:#0872be; stroke-width:2.5; stroke-linejoin:round;
  paint-order:fill stroke; pointer-events:none;
}
.scene-room-measurements [data-room-dimension] {
  position:absolute; transform:translate(-50%,-50%); white-space:nowrap; width:auto; min-height:24px;
  padding:3px 7px; border:1px solid #99aaa1; border-radius:5px; background:#fffef9; color:#274c3f; font:600 12px/1.25 system-ui;
}
.scene-room-measurements button { pointer-events:auto; cursor:pointer; touch-action:manipulation; }
.scene-room-measurements .room-wall-end { stroke:#fff; stroke-width:3px; paint-order:stroke; font:bold 15px system-ui; }
.placing-room-element .scene-room-measurements { visibility:hidden; }
.placing-room-element [data-site-service] { pointer-events:none !important; }
.scene-room-measurements button:hover, .scene-room-measurements button:focus-visible { background:#e5f1e4; outline:2px solid #287455; }
@media (pointer:coarse) { .scene-room-measurements button[data-room-dimension] { min-height:44px; min-width:44px; } }
