/** WHILE REVAMPING UI: HIDE ELEMENTS */

#ContainerFeedback,
#controlButtonsOld,
#ContainerFooter {
  display: none !important;
}


:root {
  --active: var(--mds-color-theme-text-accent-normal);
  --vrc-drawing-surface: #fafafa;
  --vrc-focus-shadow: 0 0 0 2px var(--mds-color-theme-focus-default-0),
    0 0 0 5px var(--mds-color-theme-focus-default-2);
  --vrc-shadow-1: 0 2px 8px rgb(0 0 0 / 20%);
  --vrc-shadow-2: 0 4px 16px rgb(0 0 0 / 20%);
  --vrc-shadow-3: 0 6px 24px rgb(0 0 0 / 25%);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  font-family: var(--mds-font-family-primary);
  font-size: var(--mds-font-size-body-midsize);
  line-height: var(--mds-font-lineheight-body-midsize);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--active);
}

:focus-visible,
.switch input:focus-visible + .slider,
#equipmentSearchBar:has(input:focus-visible) {
  outline: 2px solid var(--mds-color-theme-focus-default-1);
  outline-offset: 2px;
  box-shadow: var(--vrc-focus-shadow);
}

body.room-calculator {
  padding: 0;
  padding-top: 30px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  overflow: hidden;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.icon {
  background-size: contain;
  color: inherit;
  display: inline-block;
  font-family: MomentumFontIcon;
  font-style: normal;
  font-weight: normal;
  overflow: hidden;
  padding: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 16px;
}

.icon.wd {
  background-color: currentColor;
  -webkit-mask: url('./assets/images/wd.svg') center / contain no-repeat;
  mask: url('./assets/images/wd.svg') center / contain no-repeat;
}

.icon.externalLinkIcon {
  width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 12px;
  vertical-align: middle;
}

h2 {
  font-size: var(--mds-font-size-heading-small);
  font-weight: var(--mds-font-weight-bold);
  line-height: var(--mds-font-lineheight-heading-small);
  margin: 12px 0;
}

h3 {
  font-weight: var(--mds-font-weight-bold);
  font-size: var(--mds-font-size-body-midsize);
  line-height: var(--mds-font-lineheight-body-midsize);
  margin-bottom: 10px;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-decoration: underline;
}


#ContainerRoomSvg {
  float: left;
  /* width: 60%; */
  width: 100%;
  padding: 20px;
  padding-bottom: 0px;
  transition: width 0.3s;
}

#ContainerForContainerRoom {
  float: none;
  overflow: hidden;
}

#sidebar {
  float: left;
  width: 40%;
  max-width: 400px;
  padding: 15px;
  padding-bottom: 7px;
  /* iPad/iOS Safari Private mode footgun: 100vh evaluates against
     the "large viewport" (excluding browser UI chrome) rather than
     the actual visible viewport, so the sidebar overflows by ~66px
     below the bottom of the screen. iOS Safari then treats that
     overflow as scrollable headroom, scrolls the document up when
     the on-screen keyboard appears, and parks the doc at
     scrollTop=66 when the keyboard hides — which slides the tabs
     row (Room / Equipment / Layers / Details) up behind the fixed
     #ContainerHeader, leaving them unclickable.
     100dvh = "dynamic viewport height", which tracks the actual
     visible viewport and resolves the overflow at the source. The
     calc(100vh - 60px) declaration above is the safety-net fallback
     for browsers older than Safari 15.4 / Chrome 108 / FF 101. */
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  margin-top: 1.3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sidebarNone {
  width: 12px;
}

#openSideBar {
  float: left;
  padding-right: 2px;
  margin-top: 2.3rem;
  padding-left: 0px;
  margin-left: 0px;
  width: 30px;
  height: 400px;
  margin-right: 10px;
  border-radius: 0px 10px 10px 0px;
}

#openSideBarBtn {
  position: absolute;
  left: -10px;
  top: 80px;
  padding-left: 0px;
}


#Container2 {
  display: inline-block;
  padding: 1rem 1rem;
  width: 30%;
}

#large-container {
  width: 3000px;
  height: 3000px;
  overflow: hidden;
  border-radius: 10px;
}

#scroll-container {
  /* width: calc(100% - 1px);
  height: calc(100vh + 15px); */
  overflow: auto;
  margin: 0px;
  border-radius: 10px;

}

img {
  -webkit-touch-callout: none;
}


.micButtons {
  padding: 5px;
  margin: 5px;
}

.classDegree {
  font-size: x-large;
}

.ContainerInputsFeedback {
  padding: 1rem;
  width: 100%;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 8px;
  min-height: 520px;
}

/* ----------------------------------------------------------------- */
/* Sidebar inputs panel: bound to viewport via #sidebar's flex column */
/* The whole page must NOT scroll - each subtab handles its own       */
/* scrolling internally. This applies at every breakpoint: the        */
/* @media (max-width: 900px) override only repositions the sidebar    */
/* (absolute, full-width overlay over the canvas) but preserves the   */
/* viewport-bound flex layout so the Equipment list still scrolls     */
/* inside #equipmentScrollArea. Mirror behaviour for split view at    */
/* narrow content widths lives in body.svBp900 rules near the bottom. */
/* ----------------------------------------------------------------- */
#ContainerInputs {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  /* overflow: visible (default) so #closeOpenMenu, which uses
     transform: translate(25px, 120px) to float at the right edge of
     the sidebar, is not clipped.  Subtab scrolling is bounded one
     level deeper at #containerInputTabContent. */
  overflow: visible;
}

#ContainerInputs > .tab {
  flex-shrink: 0;
}

#containerInputTabContent {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ContainerHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0 20px;
  gap: 8px;
}

.beta {
  color: var(--mds-color-theme-text-accent-normal);
  font-size: var(--mds-font-size-body-midsize);
}

dialog .subtle {
  color: var(--mds-color-theme-text-secondary-normal);
  font-size: var(--mds-font-size-body-midsize);
}

button {
  touch-action: manipulation;
}

button:not(:disabled) {
  cursor: pointer;
}



.ContainerHeader > button {
  border: 0;
  background-color: transparent;
  color: var(--mds-color-theme-text-primary-normal);
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.ContainerHeader > button.primary {
  background-color: var(--mds-color-theme-button-primary-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  border-radius: 30px;
  padding: 7px 15px;
  gap: 10px;
}

.ContainerHeader > button:hover:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.ContainerHeader > button.primary:hover:not(:disabled) {
  background-color: var(--mds-color-theme-button-primary-hover);
}

.ContainerHeader > button:active:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-pressed);
}

.ContainerHeader > button.primary:active:not(:disabled) {
  background-color: var(--mds-color-theme-button-primary-pressed);
}

.ContainerHeader > button:disabled {
  color: var(--mds-color-theme-text-secondary-normal);
}

.theme-picker {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  font-size: var(--mds-font-size-body-small);
  font-weight: var(--mds-font-weight-medium);
}

.theme-picker-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-picker-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--mds-color-theme-outline-input-normal);
  border-radius: 8px;
  background: var(--mds-color-theme-background-solid-primary-normal);
}

.theme-picker-trigger:hover,
.theme-picker-trigger[aria-expanded="true"] {
  border-color: var(--mds-color-theme-outline-input-active);
  background: var(--mds-color-theme-background-solid-secondary-normal);
}

#themeSelectValue {
  min-inline-size: 2.75rem;
  text-align: start;
}

.theme-picker .icon {
  width: 16px;
  height: 16px;
  line-height: 16px;
  flex: none;
}

.theme-picker .theme-picker-arrow {
  width: 12px;
  font-size: 12px;
}

.ContainerHeader:has(#themeSelect[aria-expanded="true"]) {
  z-index: 100;
}

.theme-picker-menu {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  min-inline-size: max(100%, 8rem);
  max-block-size: calc(100vh - 50px);
  max-block-size: calc(100dvh - 50px);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 8px;
  background: var(--mds-color-theme-background-solid-primary-normal);
  box-shadow: var(--vrc-shadow-2);
}

.theme-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.theme-picker-option:hover {
  background: var(--mds-color-theme-button-secondary-hover);
}

.theme-picker-option[aria-selected="true"] {
  background: var(--mds-color-theme-button-secondary-active-normal);
}

.theme-picker-option.is-active {
  outline: 2px solid var(--mds-color-theme-focus-default-1);
  outline-offset: -2px;
}

.theme-picker-check {
  margin-inline-start: auto;
  visibility: hidden;
}

.theme-picker-option[aria-selected="true"] .theme-picker-check {
  visibility: visible;
}

#ContainerFooter {
  display: inline-block;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  padding: 1rem 1rem;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  outline: var(--mds-color-theme-outline-secondary-normal) solid 10px;
  width: 100%;
}

#lblHeaderTitle {
  font-size: var(--mds-font-size-heading-small);
  font-weight: var(--mds-font-weight-bold);
  line-height: var(--mds-font-lineheight-heading-small);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#lblSubtitle {
  font-size: var(--mds-font-size-body-small);
  font-weight: var(--mds-font-weight-medium);
  color: var(--mds-color-theme-text-accent-normal);
  margin: 0 9px;
}

.inputWrap {
  display: inline;
  margin: 10px;
}

.inputRow {
  display: flex;
  gap: 20px;
  align-items: center;
}

.inputField {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 18px;
}

.inputFieldRow {
  flex-direction: row;
  max-width: 280px;
}


.inputFieldMaxWdith {
  max-width: 380px;
}

/* configurableColor fill + opacity row (#fillDiv > .fillField). Compact
 * single-row layout: label, color swatch, [opacity label, opacity input,]
 * reset button. Overrides the default `.inputField` column flow + space-
 * between justification — we want a tight left cluster (Color label, swatch,
 * optionally Opacity label + input) with the reset button pinned to the
 * right wall via margin-left:auto. Pinning the reset button keeps the
 * Color → swatch gap constant regardless of whether the opacity controls
 * are visible (per UX request: "maintain the same distance between Color
 * [i] [picker] regardless if there is opacity or not"). */
.fillField {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.fillField > label {
  white-space: nowrap;
}

.fillColorInput {
  width: 38px;
  height: 28px;
  padding: 2px;
  border-radius: 6px;
  border: 2px solid var(--mds-color-theme-outline-input-normal);
  background: var(--mds-color-theme-background-solid-primary-normal);
  cursor: pointer;
  flex: 0 0 auto;
}

.fillResetBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  margin-left: auto;
}

.fillResetBtn:hover {
  color: var(--mds-color-theme-text-primary-normal);
}

.fillOpacityLabel {
  margin-left: 4px;
}

.fillOpacityInput {
  width: 64px;
  flex: 0 0 auto;
}

/* Inline fill swatch button (replaces the native <input type="color">).
 * Shows the chosen color at its chosen opacity over a checkerboard so the
 * transparency reads at a glance. Clicking opens the custom color modal. */
.fillSwatchBtn {
  width: 38px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 2px solid var(--mds-color-theme-outline-input-normal);
  cursor: pointer;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-color: white;
}

.fillSwatchBtn .fillSwatchColor {
  position: absolute;
  inset: 0;
  display: block;
  background-color: #ffffff;
}

.fillSwatchBtn:hover {
  border-color: var(--mds-color-theme-outline-input-normal);
}

/* custom color/opacity popover (js/colorPicker.js) */
.colorPickerPopover {
  position: fixed;
  z-index: 100000;
  background: var(--mds-color-theme-background-solid-primary-normal);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* width: 300px;
  max-width: 92vw; */
  border-radius: 12px;
  box-shadow: var(--vrc-shadow-2);
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  padding: 14px;
  font-size: 14px;
  color: var(--mds-color-theme-text-primary-normal);
  user-select: none;
}

.colorPickerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.colorPickerTitle {
  font-weight: 600;
  font-size: 15px;
}

.colorPickerClose {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--mds-color-theme-text-secondary-normal);
  padding: 2px;
  line-height: 1;
}

.colorPickerClose:hover {
  color: var(--mds-color-theme-text-primary-normal);
}

.colorPickerColorSection {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.colorPickerSV {
  position: relative;
  flex: 1 1 auto;
  height: 150px;
  border-radius: 6px;
  cursor: crosshair;
  touch-action: none;
}

.colorPickerSVWhite,
.colorPickerSVBlack {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}

.colorPickerSVWhite {
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.colorPickerSVBlack {
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
}

.colorPickerSVThumb {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.colorPickerHue {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 150px;
  writing-mode: vertical-lr;
  direction: rtl;
  border-radius: 9px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: linear-gradient(to top,
      #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}

.colorPickerHue::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #888;
  cursor: pointer;
}

.colorPickerHue::-moz-range-thumb {
  width: 22px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #888;
  cursor: pointer;
}

.colorPickerHexRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.colorPickerHexLabel {
  font-weight: 600;
  font-size: 12px;
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: default;
}
.colorPickerHexLabel:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  z-index: 100001;
}

.colorPickerHexInput {
  flex: 1 1 auto;
  text-transform: uppercase;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.colorPickerCopy {
  border: 2px solid var(--mds-color-theme-outline-input-normal);
  background: var(--mds-color-theme-background-solid-primary-normal);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--mds-color-theme-text-secondary-normal);
  flex: 0 0 auto;
}

.colorPickerCopy:hover {
  color: var(--mds-color-theme-text-primary-normal);
}

.colorPickerCopy.colorPickerCopied {
  color: var(--mds-color-theme-text-success-normal);
  border-color: var(--mds-color-theme-text-success-normal);
}

.colorPickerOpacitySection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.colorPickerOpacityLabel {
  font-weight: 600;
  font-size: 12px;
  color: var(--mds-color-theme-text-secondary-normal);
  flex: 0 0 auto;
}

.colorPickerOpacitySlider {
  flex: 1 1 auto;
  cursor: pointer;
}

.colorPickerOpacityValueWrap {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.colorPickerOpacityInput {
  width: 62px;
  padding-inline: 6px;
  font-variant-numeric: tabular-nums;
}

.colorPickerOpacityPct {
  color: var(--mds-color-theme-text-secondary-normal);
  font-size: 12px;
}

.colorPickerFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.colorPickerPreviewWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.colorPickerPreviewLabel {
  font-size: 10px;
  color: var(--mds-color-theme-text-secondary-normal);
}

.colorPickerPreview {
  width: 34px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--mds-color-theme-outline-input-normal);
  overflow: hidden;
  position: relative;
  background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-color: white;
}

.colorPickerPreviewColor {
  position: absolute;
  inset: 0;
  display: block;
  background: #fff;
}

button.colorPickerReset {
  background: var(--mds-color-theme-background-solid-primary-normal) !important;
  border: none !important;
  color: var(--mds-color-theme-text-secondary-normal) !important;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
button.colorPickerReset i {
  font-size: 20px;
}
button.colorPickerReset:hover {
  color: var(--mds-color-theme-text-secondary-normal) !important;
}

.colorPickerDone {
  font-size: 13px;
  padding: 6px 16px;
}

.inputField label {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* The Opacity step number is its own element so it can be hidden inside a Room Part, where Opacity is the
   only step of the five left. That makes it a flex item, so cancel the row's gap and let its own nbsp be the
   space, the way the plain-text "1)" and "2)" above it read. */
.bgStepNum {
  margin-right: -10px;
}

input,
textarea,
select {
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border: 1px solid var(--mds-color-theme-outline-input-normal);
  border-radius: 8px;
  padding: 6px 8px;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: var(--mds-color-theme-control-active-normal);
}

input::placeholder,
textarea::placeholder {
  color: var(--mds-color-theme-text-secondary-normal);
  opacity: 1;
}

:is(input:not([type="button"], [type="submit"], [type="reset"], [type="range"]), textarea, select):disabled {
  color: var(--mds-color-theme-text-secondary-normal);
  -webkit-text-fill-color: currentColor;
  border-color: var(--mds-color-theme-outline-input-normal);
  background-color: var(--mds-color-theme-background-input-disabled);
  opacity: 1;
}

#qrCodeLinkText.qr-length-warning {
  background-color: var(--mds-color-theme-background-alert-warning-normal);
  color: var(--mds-color-theme-text-warning-normal);
}

#qrCodeLinkText.qr-length-error {
  background-color: var(--mds-color-theme-background-alert-error-normal);
  color: var(--mds-color-theme-text-error-normal);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mds-color-theme-outline-input-active);
}

.unitFeetMeters,
.unitInches,
.classDegree {
  position: absolute;
  top: 2.5em;
  right: 1em;
}

.inputCellLeft1 {
  display: inline-block;
  width: 11rem;
}

.inputCellLeft2 {
  display: inline-block;
  width: 14.5rem;
}

.inputCellLeftShort {
  display: inline-block;
  width: 5rem;
}

.inputCellRight {
  display: inline-block;
}


.inputCellRightWide {
  display: inline-block;
  width: 15rem;
}

.divUpdateButton {
  display: inline-block;
}

.classCustomSettings {
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  padding: 5px;
  margin-top: -10px;
  margin-bottom: 10px;
}

.selectRole {
  width: 100%
}

.button {
  border: 0;
  border-radius: 20px;
  font-size: var(--mds-font-size-body-midsize);
  font-weight: var(--mds-font-weight-medium);
  padding: 8px 24px;
  background-color: var(--mds-color-theme-button-primary-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  width: fit-content;
  touch-action: manipulation;
  cursor: pointer;
  align-self: center;
}

.button:hover:not(:disabled) {
  background-color: var(--mds-color-theme-button-primary-hover);
}

.button:active:not(:disabled) {
  background-color: var(--mds-color-theme-button-primary-pressed);
}

.button:disabled {
  background-color: var(--mds-color-theme-button-primary-disabled);
  color: var(--mds-color-theme-text-secondary-normal);
  -webkit-text-fill-color: currentColor;
  opacity: 1;
  cursor: auto;
}

/* Hyperlink-styled button. Strips all button chrome (background, border,
 * padding, rounded corners) and renders as inline-styled text in the
 * primary blue, with an underline on hover. Used for the
 * "Recent Floor Plans" entry point so it sits inline in the sidebar
 * rather than competing visually with the primary action buttons. */
.linkButton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--active);
  text-decoration: none;
  cursor: pointer;
  width: auto;
  text-align: left;
  align-self: flex-start;
  touch-action: manipulation;
  font-size: 12px;
}

.linkButton:hover:not(:disabled),
.linkButton:focus-visible {
  text-decoration: underline;
}

.linkButton:disabled {
  color: var(--mds-color-theme-text-secondary-normal);
  -webkit-text-fill-color: currentColor;
  opacity: 1;
  cursor: default;
  text-decoration: none;
}

.buttonWidth {
  width: 250px;
  margin: 5px;
  margin-top: 10px;
  margin-bottom: 10px;

}

.wallBuilderButton {
  font-size: 12px;
}

.wallBuilderButtonDiv {
  position: relative;
  display: flex;
  /* flex-direction: column; */
  gap: 10px;
  flex-grow: 1;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 20px;
}





.wallPicker {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  grid-template-areas:
    ". video ."
    "left preview right"
    ". back .";
  place-items: center;
  gap: 8px;
}

#videowall { grid-area: video; }
#leftwall { grid-area: left; justify-self: end; }
#rightwall { grid-area: right; justify-self: start; }
#backwall { grid-area: back; }

.wallButton {
  border: 1px solid var(--mds-color-theme-outline-button-normal);
  border-radius: 20px;
  min-height: 28px;
  font-size: var(--mds-font-size-body-small);
  padding: 4px 12px;
  background-color: var(--mds-color-theme-button-secondary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  width: max-content;
}

.wallButton:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.wallButton:active {
  background-color: var(--mds-color-theme-button-secondary-pressed);
}

.wallButton[aria-pressed="true"] {
  border-color: transparent;
  background-color: var(--mds-color-theme-button-primary-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
}

.wallButton[aria-pressed="true"]:hover {
  background-color: var(--mds-color-theme-button-primary-hover);
}

.wallButton[aria-pressed="true"]:active {
  background-color: var(--mds-color-theme-button-primary-pressed);
}

.wallSelection {
  grid-area: preview;
  width: 50px;
  height: 50px;
  background-image: url('./assets/images/wallsAll.png');
}

.doorSelection {
  width: 150px;
  height: 150px;
  background-image: url('./assets/images/roomBackgroundDoors.png');
  position: absolute;
  /* transform: rotate(90deg) translate(10px, 10px); */
}

.rotateButton {
  border: 0px;
  border-radius: 12px;
  font-size: 0.7rem;
  padding: 4px 12px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  width: max-content;
  touch-action: manipulation;
  cursor: pointer;
  align-self: center;
}

.doorSelectionOuter {
  position: absolute;
}

.doors {
  position: absolute;
  width: 45px;
  opacity: 1;
  padding: 8px;
  border-radius: 4px;
}

.doorButton {
  border: 3px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 12px;
  font-size: 0.7rem;
  padding: 4px 12px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  width: max-content;
  touch-action: manipulation;
  cursor: pointer;
  align-self: center;
  position: absolute;
}

.doors:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
  opacity: 1;
}

.doorSelected {
  opacity: 1;
  border: 3px solid var(--mds-color-theme-outline-theme-normal);
  border-radius: 4px;
  padding: 5px;
}

.noDoorSelected {
  border: 3px solid var(--mds-color-theme-outline-theme-normal);
  outline: 3px solid var(--mds-color-theme-outline-theme-normal);
  background-color: var(--mds-color-theme-button-primary-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
}

.parentWallSelection {
  display: flex;
  justify-content: center;
  /* Centers horizontally */
  height: 100px;
  /* height for the parent */
}



.underlineHeader {
  font-weight: bold;
  text-decoration: underline;
}

.dynamicText {
  font-weight: bold;
}

.infoText {
  font-size: small;
  color: var(--mds-color-theme-text-accent-normal);
  text-align: center;
}

.keyFOVitem {
  padding-top: 7px;
}

.highlightRed {
  background-color: var(--mds-color-theme-background-alert-error-normal);
  border-style: solid;
  border-color: var(--mds-color-theme-text-error-normal);
  border-width: 1px;

}

.tip {
  font-size: 12px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  border-radius: 1.5em;
  padding: 0.6em 1.5em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}

.tip2 {
  font-size: 10px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  border-radius: 1.5em;
  padding: 0.5em 1.2em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}

.tab {
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
  margin-bottom: 1em;
  color: var(--mds-color-theme-text-secondary-normal);
  position: relative;
}

.tablinks,
.subtablinks,
.subtablinks2 {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  padding: 4px 6px 8px;
  white-space: nowrap;
}

.tablinks:hover,
.subtablinks:hover,
.subtablinks2:hover {
  background: var(--mds-color-theme-button-secondary-hover);
}

.tablinks.active,
.subtablinks.active,
.subtablinks2.active {
  color: var(--mds-color-theme-text-primary-normal);
  border-bottom-color: var(--mds-color-theme-outline-input-active);
  font-weight: var(--mds-font-weight-bold);
}

.subtablinks,
.subtablinks2 {
  font-size: var(--mds-font-size-body-small);
}

/* Style the tab content */
.tabcontent {
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  /* When openTab() shows a tab it sets style="display: flex" so #Insert
     and #Item act as flex columns whose .tab row stays at the top and
     whose visible .subtabcontent fills the remaining height.  All other
     tabs (Room, Layers) render their children as a vertical stack just
     like display: block, courtesy of flex-direction: column. */
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.tabcontent2 {
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* When #Insert / #Item are visible they become flex columns containing:
     1. a .tab row with the sub-tab buttons (flex-shrink: 0)
     2. one visible .subtabcontent / .subtabcontent2 (flex: 1 1 auto)   */
.tabcontent > .tab {
  flex-shrink: 0;
}

/* `.inputField` declares `flex-grow: 1` so multiple input fields share
   the row evenly when nested inside `.inputRow`.  When the field is a
   *direct* child of a flex-column .tabcontent (Room, Layers) that
   grow factor instead spreads the fields vertically, leaving big gaps
   between rows.  Reset grow at this level so each field keeps its
   natural height; nested .inputRow > .inputField still grows. */
.tabcontent > .inputField {
  flex-grow: 0;
}

.subtabcontent,
.subtabcontent2 {
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  /* Fill remaining height inside its parent flex-column tab. */
  flex: 1 1 auto;
  min-height: 0;
}

.subtabcontent,
.subtabcontent2,
.button-group,
.menuReach-item,
.menuReach,
.menuReachClearButton {
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}


.selectableMenuItems {
  display: inline-flex;
  -webkit-user-select: initial;
  /* Safari */
  -ms-user-select: initial;
  /* IE 10 and IE 11 */
  user-select: initial;
  /* Standard syntax */
}

.selectableMenuItemDiv {
  display: inline-flex;
}

.selectableHover:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
  opacity: 0.9;
}

#Insert,
#Item {
  padding: 0px 0px;
}

.static {
  cursor: not-allowed;
}

#svgDiv {
  position: absolute;
  visibility: hidden;
  display: none;
  /* hiddern or visible */
}

#controlButtons {
  position: relative;
  display: flex;
  gap: 10px;
  margin: 1em 0;
  /* Hug the content (buttons + the always-reserved 120px modeStatusBadge slot)
   * instead of a hardcoded cap that clips the badge whenever a new button lands
   * in the toolbar. On narrow windows max-width caps at the parent and the
   * existing overflow-x scroll takes over. */
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 5px;
  margin-inline: -5px;
}

.mode-status-badge {
  /* Lives as the last flex child inside #controlButtons. Width is
   * fixed at 120px regardless of content so the toolbar's geometry
   * never reshuffles when modes / layer state change. Text inside
   * is auto-shrunk by JS (fitBadgeTextSize) so longer labels still
   * render on a single line — overflow:hidden is the safety net at
   * the JS-floor font-size and also lets scrollWidth correctly
   * report content overflow during the JS shrink loop.
   *
   * align-self:center vertically centers it against the 30px-tall
   * buttons (the toolbar has no align-items, so the default
   * `stretch` would otherwise distort it). */
  flex: 0 0 auto;
  width: 120px;
  box-sizing: border-box;
  overflow: hidden;
  align-self: center;
  background-color: var(--mds-color-theme-background-alert-warning-normal);
  color: var(--mds-color-theme-text-warning-normal);
  border-radius: 16px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
  font-weight: 400;
  font-size: small;
}

/* Active drawing/measuring mode (Wall Builder, Measuring Tool, etc.) —
 * swap to blue. Layer-state badge keeps the default yellow. */
.mode-status-badge.mode-status-badge--mode {
  background-color: var(--mds-color-theme-background-alert-theme-normal);
  color: var(--mds-color-theme-text-accent-normal);
}

.mode-status-badge .icon {
  font-size: 1em;
}

.button-group {
  display: flex;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  border-radius: 30px;
  align-items: center;
  font-size: 12px;
  padding: 2px 6px;
  column-gap: 4px;
}

.spacer {
  flex-grow: 1;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: 0;
  border-radius: 20px;
  color: var(--mds-color-theme-text-primary-normal);
  touch-action: manipulation;
}

.btn:hover:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.btn:active:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-pressed);
}

.btn:disabled {
  color: var(--mds-color-theme-text-secondary-normal);
}

.btn.active {
  background-color: var(--mds-color-theme-button-secondary-active-normal);
}

.btn.active:hover:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-active-hover);
}

.btn.active:active:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-active-pressed);
}


/* -----------------------------------------------------------------------
 * Equipment tab — inline search bar and scrolling category pills.
 *
 * Replaces the legacy `.btnItemSearch` floating round button (which used
 * to live in the top-left of every sub-tab panel and opened the Quick
 * Add modal) AND the four hardcoded `.subtablinks` sub-tab buttons.
 *
 * The new layout puts an inline search input at the top of #Insert and
 * a horizontally-scrolling pill row right below it. Search filters
 * tiles across ALL category panels in-place (see onEquipmentSearchChange
 * in js/roomcalc.js); the pill row scales to arbitrarily many
 * categories without breaking on narrow widths thanks to overflow-x.
 *
 * The Space-bar Quick Add modal still exists; it just no longer has a
 * dedicated round button in each panel. Power users keep that flow.
 * --------------------------------------------------------------------- */

#equipmentSearchBar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mds-color-theme-background-solid-secondary-normal);
  border: 1px solid var(--mds-color-theme-outline-input-normal);
  border-radius: 20px;
  padding: 6px 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

#equipmentSearchBar:focus-within {
  border-color: var(--mds-color-theme-focus-default-1);
  background: var(--mds-color-theme-background-solid-primary-normal);
}

#equipmentSearchBar > .icon {
  color: var(--mds-color-theme-text-secondary-normal);
  font-size: 14px;
  flex-shrink: 0;
}

#equipmentSearch {
  outline: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 1 1 auto;
  font-size: var(--mds-font-size-body-midsize);
  padding: 2px 0;
  min-width: 0;
  color: var(--mds-color-theme-text-primary-normal);
}

/* Hide the browser's native search clear button so the custom button is
 * the only affordance — keeps the look consistent across Chrome/Safari. */
#equipmentSearch::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

#equipmentSearchClear {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

/* The .hasValue class is toggled by onEquipmentSearchChange / clearEquipmentSearch
 * so the X button only appears when there's something to clear. */
#equipmentSearchBar.hasValue #equipmentSearchClear {
  display: flex;
}

#equipmentSearchClear:hover {
  background: var(--mds-color-theme-button-secondary-hover);
  color: var(--mds-color-theme-text-primary-normal);
}

/* Category pills row. The wrapper exists so .pillScrollChevron buttons
 * can absolute-position over the start/end of the scrollable row. The
 * 1px bottom border matches the old `.tab` separator below the
 * sub-tabs so the visual rhythm of the Equipment panel is preserved. */
.equipmentCategoryPillsWrap {
  position: relative;
  margin-bottom: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
  flex-shrink: 0;
}

.equipmentCategoryPills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 4px;
  /* Hide the horizontal scrollbar — the chevrons are the affordance.
   * Firefox uses scrollbar-width; Chrome/Safari use the pseudo-element. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.equipmentCategoryPills::-webkit-scrollbar {
  display: none;
}

.equipmentCategoryPill {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--mds-color-theme-text-secondary-normal);
  padding: 8px 14px 10px;
  font-size: var(--mds-font-size-body-midsize);
  cursor: pointer;
  white-space: nowrap;
  /* The -1px margin pulls the active pill's underline over the wrapper's
   * 1px border-bottom so it visually replaces (not stacks under) that
   * separator — same trick the old `.subtablinks.active` used. */
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.equipmentCategoryPill:hover:not(:disabled) {
  color: var(--mds-color-theme-text-primary-normal);
  background: var(--mds-color-theme-button-secondary-hover);
}

.equipmentCategoryPill:focus-visible {
  outline-offset: -3px;
  box-shadow: none;
}

.equipmentCategoryPill.active {
  color: var(--mds-color-theme-text-primary-normal);
  font-weight: var(--mds-font-weight-bold);
  border-bottom-color: var(--mds-color-theme-outline-input-active);
}

/* Chevron scroll-affordance buttons. Hidden by default; the JS
 * (initEquipmentCategoryPills in js/roomcalc.js) toggles `.visible` on
 * each one based on scrollLeft / scrollWidth. */
.pillScrollChevron {
  position: absolute;
  top: 4px;
  width: 22px;
  height: 26px;
  border: 0;
  background: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, background 0.15s;
  z-index: 2;
}

.pillScrollChevron.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pillScrollChevron:hover {
  background: linear-gradient(var(--mds-color-theme-button-secondary-hover), var(--mds-color-theme-button-secondary-hover)), var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
}

.pillScrollChevronLeft {
  left: 0;
  /* Small white shadow on the inner edge so the leftmost pill content
   * fades softly under the chevron instead of butting up against it. */
  box-shadow: 4px 0 4px -2px var(--mds-color-theme-background-solid-primary-normal);
}

.pillScrollChevronRight {
  right: 0;
  box-shadow: -4px 0 4px -2px var(--mds-color-theme-background-solid-primary-normal);
}

.equipmentCategoryPill:disabled {
  color: var(--mds-color-theme-control-indicator-inactive-normal);
  border-bottom-color: transparent;
  cursor: default;
}

/* ---------------------------------------------------------------------
 * Equipment tab — single long-scroll area.
 *
 * BEFORE: each `.subtabcontent` panel was an independent scroller, and
 * `selectEquipmentCategory()` toggled `display: block` / `none` to
 * switch between them.
 *
 * NOW (May 2026): all five category panels live in a single
 * `#equipmentScrollArea` and are visible at once. The user scrolls
 * through Video Devices → Peripherals → Displays → Furniture → Custom
 * Items in one continuous flow. Clicking a pill scroll-targets the
 * matching panel; the scroll-spy (initEquipmentScrollSpy in
 * js/roomcalc.js) updates which pill carries `.active` as the user
 * scrolls past each panel's top boundary.
 *
 * Implementation note: we scope the panel overrides to
 * `#equipmentScrollArea > .subtabcontent` so the `#Item` tab's panels
 * (Items / Default Walls / Room Floor Plan / Settings) keep the
 * original one-panel-at-a-time behaviour — they're a settings drawer,
 * not a browsing flow, so the long-scroll model doesn't apply there.
 * ------------------------------------------------------------------- */

/* The Equipment tab's own overflow is disabled; the inner scroll area
 * is the single scroller. Hiding `#Insert` overflow prevents the
 * legacy `.tabcontent { overflow-y: auto }` rule from creating a
 * second nested scrollbar. */
#Insert.tabcontent {
  overflow: hidden;
}

#equipmentScrollArea {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  /* Reserve a fixed gutter for the scrollbar so layout doesn't reflow
   * when the scrollbar appears/disappears. */
  scrollbar-gutter: stable;
  /* No dedicated right-edge "touch scroll lane" — the long-press gate
   * in js/roomcalc.js touchStart/touchMove already lets touch users
   * swipe directly on a tile to scroll the list (touchstart does NOT
   * preventDefault on touch devices; a >10px move within 300ms cancels
   * the arming timer and the browser scrolls natively). A previous
   * padding-right: 14px guaranteed a no-tile column on the right, but
   * it ate into the per-row tile budget and at the .containerItems
   * margin-left: 17px setting it pushed the sidebar onto the boundary
   * where the row flips between 3 and 2 columns mid-resize. Removing
   * it adds ~14px of horizontal slack so 3 columns stays stable across
   * the split-view drag range. */
}

/* All category panels visible together. Override the legacy
 * `.subtabcontent { display: none; overflow-y: auto; flex: 1 1 auto }`
 * defaults: they'd otherwise hide every panel and double-scroll.
 * `height: auto !important` defeats the responsive
 * `body.svBp900 .subtabcontent { height: 490px }` rule (line ~3131) —
 * without it Safari (which trips svBp900 at the typical sidebar width)
 * pins every panel to 490px and any panel whose content is taller
 * spills its tiles visually on top of the next panel below. The
 * !important is required because both rules carry an `.svBp900`
 * (or `#equipmentScrollArea`) anchor of equal weight; the cleaner
 * fix would be to rewrite the legacy rule, but it's load-bearing for
 * the #Item tab's settings drawers which still want a fixed height. */
#equipmentScrollArea > .subtabcontent {
  display: block;
  flex: none;
  overflow: visible;
  position: relative;
  height: auto !important;
  /* Padding-top creates breathing space below the sticky pill row when
   * we scroll-into-view to a panel — without it, the scrolled-to
   * heading sits flush against the pills with no visual gap. */
  scroll-margin-top: 12px;
}

/* A panel entirely hidden by search (zero matches across all its
 * sub-sections). The class is toggled by onEquipmentSearchChange. */
#equipmentScrollArea > .subtabcontent.searchHidden {
  display: none;
}

/* The "Tip: Drag and drop" hint repeats per panel. Useful guidance
 * for first-time users, but redundant when the user is actively
 * searching. Hidden by onEquipmentSearchChange via the `.searching`
 * class on #Insert. */
#Insert.searching .tip2 {
  display: none;
}

/* Empty `.menuDivider` + `.containerItems` pair (e.g. "Cisco Cameras"
 * heading when the user is searching for "mic" and no cameras match).
 * Toggled by the per-divider visibility pass in
 * onEquipmentSearchChange. */
.menuDivider.searchHidden,
.containerItems.searchHidden {
  display: none;
}

/* Search-only panel (currently just the "Other" section that surfaces
 * devices not present in the 5 curated category panels). Always hidden
 * outside of search; revealed only when (a) #Insert.searching is set,
 * AND (b) onEquipmentSearchChange has flagged the panel `.hasMatches`
 * because it populated at least one tile. The double-gate prevents
 * the "Other" header from flashing into view while the user is mid-
 * type and the panel is briefly empty. */
#equipmentScrollArea > .subtabcontent.searchOnlyPanel {
  display: none;
}
#Insert.searching #equipmentScrollArea > .subtabcontent.searchOnlyPanel.hasMatches {
  display: block;
}

/* Empty-state hint inside the Custom Items panel when the library is
 * empty AND inside whichever panel is active when search has zero
 * matches across all categories. Same look in both cases. */
.customItemsEmpty {
  padding: 24px 16px;
  text-align: center;
  color: var(--mds-color-theme-text-secondary-normal);
  font-size: 12px;
  background: var(--mds-color-theme-background-solid-secondary-normal);
  border-radius: 8px;
  margin: 12px 16px;
}

.customItemsEmpty b {
  color: var(--mds-color-theme-text-secondary-normal);
}

.roleSelectButton {
  box-shadow: none;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  display: flex;
  align-items: center;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border-radius: 30px;
  padding: 7px 15px;
  width: 250px;
  margin: 20px;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
  text-align: center;
}

.roleSelectButton:hover:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.roleSelectButton:disabled {
  background: var(--mds-color-theme-background-input-disabled);
  color: var(--mds-color-theme-text-secondary-normal);
}


.dialogWhiteBox {
  border-radius: 20px;
  padding: 19px 70px;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  min-width: 400px;
  max-width: 700px;
  /* consider removing this  */
  /* max-height: 700px;  */
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  /* overflow-y: hidden; */
  box-shadow: var(--vrc-shadow-3);
}

.dialogWhiteBoxHeader {
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  padding: 0.5em;
  text-align: center;
  font-weight: 500;

}

.dialogFullPage[open] {
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  max-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  margin: auto;
}

.dialogFullPage main {
  flex: 1;
  max-height: none;
  padding: 0;
}

.dialogOpenNewPage {
  position: absolute;
  top: 22px;
  right: 55px;
  font-size: var(--mds-font-size-body-midsize);
}


.holdIndicator {
  width: 6px;
  height: 6px;
  flex: none;
  position: relative;
  bottom: -6px;
  left: -4px;
  background-color: currentColor;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* MultiRoom overview: coverage buttons (camera / mic / display) are not
   applicable at the floor level, so grey out the button + its little
   hold-to-multi-select triangle. Deliberately NOT pointer-events: none —
   the press still has to reach coverageBlockedInFloorPlanMode(), which is
   what tells the user to open a Room Part first. */
.coverageBtnDisabledMultiRoom,
.coverageBtnDisabledMultiRoom.active {
  background-color: transparent !important;
  color: var(--mds-color-theme-text-secondary-normal) !important;
}

#controlButtons button {
  width: 30px;
  height: 30px;
}

#controlButtons button label {
  display: none;
}

.material-symbols-outlined {
  font-size: x-large;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20
}

.downloadButtons {
  text-align: center;
}

/* Following items control the Flex box */
.containerItems {
  margin-left: 17px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 8px;
  cursor: move;
}

.flexItemsTemp {
  padding: 0;
  margin: auto;
  margin-right: 4px;
  margin-left: 4px;
  margin-bottom: 5px;
  list-style: none;
  align-content: center;
  width: 100px;
  height: 140px;
}

.flexItems {
  list-style: none;
  width: 92px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1em;
  position: relative;
}

.flexItems,
.room-template {
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 8px;
  background: var(--mds-color-theme-background-solid-secondary-normal);
}

.flexItems:hover,
.room-template:hover,
.room-template:focus-within {
  background-color: var(--mds-color-theme-background-solid-tertiary-normal);
}

/* Touch long-press "drag armed" cue. Applied by the touchStart timer
 * callback in js/roomcalc.js once the 300 ms long-press threshold
 * fires, removed on touchend/touchcancel. Communicates that the tile
 * is now in drag mode (the floating preview is following the finger)
 * and that releasing will drop on the canvas. The subtle scale-down
 * + outline mirrors common mobile patterns (Files, Photos, etc.). */
.flexItems.flexItems--dragArmed {
  outline: 2px solid var(--active);
  outline-offset: 2px;
  transform: scale(0.97);
  transition: transform 80ms ease-out;
}

.flexItemsWallBuilder:hover {
  cursor: pointer;
  background-color: var(--mds-color-theme-button-secondary-hover);
}


.flexSubItemImage {
  margin: auto;
  width: 100%;
  height: 60px;
  object-fit: contain;
  position: relative;
  pointer-events: none;
}

.equipmentItemOnMenu > img,
.room-template img,
.reloadLastDesignIconWrap {
  display: block;
  width: 100%;
  border-radius: 4px;
  padding: 4px;
  background-color: var(--vrc-drawing-surface);
}

.flexSubItemLabel {
  width: 100%;
  font-size: 11px;
  margin-top: 0px;
  height: 3.55em;
  font-weight: 500;
  overflow-y: hidden;
  text-align: center;
}

.newBadge {
  background-color: var(--mds-color-theme-button-accent-normal);
  border-radius: 25px;
  color: var(--mds-color-theme-common-text-primary-normal);
  font-size: 9px;
  padding: 3px 5px;
  position: absolute;
  right: 3px;
  top: 3px;
}
.menuDivider {
  width: 100%;
  margin-top: 2em;
  font-size: 14px;
  color: var(--mds-color-theme-text-secondary-normal);
}

#room-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}

/* Slight blur over the templates grid until templates.js loads and
 * `populateTemplates()` replaces the seeded `.room-template-placeholder`
 * tiles. The blur is dropped (and pointer events restored) the moment
 * the real tiles are in place. Pairs with the placeholder markup in
 * RoomCalculator.html (`<main id="room-templates" class="templates-loading">`). */
#room-templates.templates-loading {
  filter: blur(2px);
  pointer-events: none;
  transition: filter 0.2s ease-out;
}

.room-template-placeholder span {
  color: var(--mds-color-theme-text-secondary-normal);
  font-style: italic;
}

.room-template {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.room-template img {
  height: 120px;
  object-fit: contain;
}

.room-template .templateLinks {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  gap: 8px;
  background-color: transparent;
  font-weight: var(--mds-font-weight-medium);
}

.room-template > a {
  padding: 0 8px 8px;
  font-size: var(--mds-font-size-body-small);
}

.reloadLastDesignIconWrap {
  height: 120px;
  display: grid;
  place-items: center;
  color: var(--mds-color-theme-button-accent-hover);
}

.reloadLastDesignIcon {
  width: 48px;
  height: 48px;
  font-size: 48px;
  line-height: 48px;
}

@media screen and (max-width: 405px) {
  #newRoomDialog header .buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 12px;
  }

  #newRoomDialog header .buttons button {
    justify-content: center;
  }

  #room-templates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 16px;
  }

  .room-template img,
  .reloadLastDesignIconWrap {
    height: 104px;
  }
}

#singleShadingDiv button:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.my-blurred-div {
  filter: blur(3px);
}


.tooltip {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--mds-color-theme-inverted-background-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  text-align: center;
  border-radius: 6px;
  padding: 5px 5px;
  position: absolute;
  bottom: 115%;
  left: 100px;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 1.4s 0.2s;
}

a.tooltiptext {
  color: var(--mds-color-theme-inverted-text-accent-normal);
}

.tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--mds-color-theme-inverted-background-normal) transparent transparent transparent;
}


.tooltipIcon {
  position: relative;
  display: inline-block;
}

.tooltiptextIcon {
  visibility: hidden;
  width: 200px;
  background-color: var(--mds-color-theme-inverted-background-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  text-align: center;
  border-radius: 6px;
  padding: 5px 5px;
  position: absolute;
  z-index: 1;
  bottom: 115%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 1.4s 0.2s;
}



.tooltiptextIcon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--mds-color-theme-inverted-background-normal) transparent transparent transparent;
}

.tooltipBottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.tooltiptextBottom {
  visibility: hidden;
  width: 200px;
  background-color: var(--mds-color-theme-inverted-background-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 100px;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 1.4s 0.2s;
}

.tooltiptextBottom::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--mds-color-theme-inverted-background-normal) transparent;
}

.tooltiptextLeft {
  left: 17px;
  width: 180px;
}

.tooltipTitle {
  position: relative;
  display: inline-block;
}

.tooltiptextTitle {
  display: none;
}


.tooltipTitle .tooltiptextTitle {

  font-size: x-small;
  min-width: max-content;
  background-color: var(--mds-color-theme-inverted-background-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  text-align: center;
  border-radius: 2px;
  padding: 4px 8px;
  position: absolute;
  bottom: 120%;
  z-index: 100;
  left: -45px;
  margin-left: 0px;
  opacity: 1;
  transition: opacity 200ms 2s;
  height: 28px;
  /* Firefox ignores the min-height, so putting in a minimum height */
  min-height: fit-content;
  box-shadow: var(--vrc-shadow-1);
}




.sliderB {
  --opacity-fill: var(--mds-color-theme-control-active-normal);
  --opacity-track: var(--mds-color-theme-control-indicator-inactive-normal);
  appearance: none;
  -webkit-appearance: none;
  width: 90%;
  height: 24px;
  background: linear-gradient(to right, var(--opacity-fill) var(--opacity-progress, 50%),
    var(--opacity-track) 0) center / calc(100% - 16px) 6px no-repeat;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sliderB:disabled {
  --opacity-fill: var(--mds-color-theme-control-indicator-inactive-normal);
  --opacity-track: var(--mds-color-theme-control-inactive-normal);
  cursor: default;
}

.sliderB::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--opacity-fill);
  background-color: var(--mds-color-theme-background-solid-primary-normal);
}

.sliderB::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--opacity-fill);
  background-color: var(--mds-color-theme-background-solid-primary-normal);
}

/* checkbox toggle CSS swith checkbox*/
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 25.5px;
  touch-action: manipulation;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--mds-color-theme-control-inactive-normal);
  -webkit-transition: .5s;
  transition: .5s;
  touch-action: manipulation;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19.5px;
  width: 19.5px;
  left: 3px;
  bottom: 3px;
  background-color: var(--mds-color-theme-control-indicator-inactive-normal);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--mds-color-theme-control-active-normal);
}

.switch:hover input:not(:checked, :disabled) + .slider {
  background-color: var(--mds-color-theme-control-inactive-hover);
}

.switch:hover input:checked:not(:disabled) + .slider {
  background-color: var(--mds-color-theme-control-active-hover);
}

.switch input:disabled + .slider {
  background-color: var(--mds-color-theme-control-inactive-disabled);
  cursor: default;
}

input:checked + .slider:before {
  background-color: var(--mds-color-theme-inverted-text-primary-normal);
  transform: translateX(19.5px);
}

.slider.round {
  border-radius: 25.5px;
}

.slider.round:before {
  border-radius: 50%;
}

.whiteUnderlinedLink {
  color: var(--mds-color-theme-text-primary-normal);
  text-decoration: underline;
}

#quickSetup {
  display: none;
}

/* .close-button {
  position: absolute;
  top: 1em;
  right: 1em;
  border: 0;
  background: transparent;
} */

.closeOpenButton {
  display: inline;
  padding: 0px;
  padding-right: 0px;
  float: right;
  transform: translate(25px, 120px);

}


dialog {
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 8px;
  padding: 0;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  box-shadow: var(--vrc-shadow-3);
  min-width: 400px;
  max-width: 700px;
}

dialog::backdrop {
  background-color: var(--mds-color-theme-common-overlays-secondary-normal);
  backdrop-filter: blur(1px);
}



dialog hr {
  margin: 1em 0;
  border: 0;
  border-top: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

dialog header {
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
  padding: 2em;
  text-align: center;
}

dialog header .buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2em;
}

dialog header button {
  background-color: var(--mds-color-theme-button-secondary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border-radius: 20px;
  padding: 8px 16px;
  border: 1px solid var(--mds-color-theme-outline-button-normal);
  display: flex;
  align-items: center;
  gap: 5px;
}

dialog header button:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.buttonHighlight {
  /* border: 2px;
  border-color: #2196F3;
  border-style:solid; */
  border-color: var(--mds-color-theme-outline-theme-normal);
  outline: 2px solid var(--mds-color-theme-outline-theme-normal);
}

dialog main {
  padding: 2em;
  max-height: 70vh;
  overflow-y: auto;
  min-height: 100px;

}

.dialogAlertModal {
  padding: 10px 20px;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal)
}

.dialogAlertMain {
  padding: 1em;
  font-size: small;
}

/* "Recent Floor Plans" dialog — grid of large thumbnails of every image
 * stored in the IndexedDB bgImages library. Each card is clickable to
 * apply the image and has a small delete button in the top-right corner. */
#dialogRecentFloorPlans {
  width: min(720px, 92vw);
  max-width: 720px;
}

/* Scroll wrapper around the grid. Owns the max-height + overflow so the
 * shared .scrollHintBtn pattern (sticky child of an overflowing element)
 * can attach a scroll-down chevron without becoming a stray grid cell. */
.recentFloorPlansScroll {
  position: relative;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}

.recentFloorPlansGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.recentFloorPlanCard {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 6px;
  background: var(--mds-color-theme-background-solid-primary-normal);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out, transform 120ms ease-out;
}

.recentFloorPlanCard:hover,
.recentFloorPlanCard:focus-visible {
  border-color: var(--active);
  box-shadow: var(--vrc-shadow-1);
}

.recentFloorPlanCard.isCurrent {
  border-color: var(--active);
  border-width: 2px;
}

.recentFloorPlanThumb {
  width: 100%;
  height: 160px;
  background-color: var(--vrc-drawing-surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.recentFloorPlanMeta {
  padding: 6px 8px;
  font-size: 12px;
  color: var(--mds-color-theme-text-primary-normal);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

.recentFloorPlanName {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recentFloorPlanSub {
  font-size: 11px;
  color: var(--mds-color-theme-text-secondary-normal);
}

.recentFloorPlanDeleteBtn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--vrc-shadow-1);
  opacity: 0;
  transition: opacity 120ms ease-out, color 120ms ease-out;
}

.recentFloorPlanCard:hover .recentFloorPlanDeleteBtn,
.recentFloorPlanCard:focus-within .recentFloorPlanDeleteBtn {
  opacity: 1;
}

.recentFloorPlanDeleteBtn:hover {
  color: var(--mds-color-theme-text-error-normal);
}

#dialogQuestions main {
  font-size: var(--mds-font-size-body-midsize);
}

#dialogQuestions a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


dialog #quick-setup {
  display: none;
  justify-content: center;
}

dialog.rightClickMenu::backdrop {
  background: none;
  backdrop-filter: unset;
}

body:has(dialog.rightClickMenu[open]) {
  overflow: unset;
}

.dialogLoadingTemplate {
  margin: 10px;
}

.hideScroll {
  overflow: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.hideScroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, and Opera */
}

.closeDialogX,
.closeWallBuilderX {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--mds-color-theme-text-secondary-normal);
}

.closeDialogX {
  top: 10px;
  right: 10px;
}

.closeDialogX:hover,
.closeWallBuilderX:hover {
  background: var(--mds-color-theme-button-secondary-hover);
  color: var(--mds-color-theme-text-primary-normal);
}

.closeWallBuilderX {
  top: -3px;
  right: 2px;
}

.closeOpenButton .icon {
  font-size: 20px;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  border-radius: 50%;
  color: var(--mds-color-theme-text-primary-normal);
  transform: translateY(1px) scale(1.3);
}

#btnToggleUnit {
  position: absolute;
  right: 0px;
  bottom: 0px;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  border-radius: 20px;
  border-width: thin;
  border-style: solid;

}

.minimizeMaximize {
  position: absolute;
  top: 1px;
  right: 3px;
  cursor: pointer;
  color: var(--mds-color-theme-text-secondary-normal);
}

/* grey right-click menu */
/*
.rightClickMenu {
  background-color: #ececec;
  width: 200px;
  border-color: #7d7e7d;
  border-width: 1px;
  padding: 6px;
  cursor: default;
  border-radius: 5px;
  font-size:smaller;
  min-width: 250px;
  box-shadow: 4.0px 8.0px 8.0px hsl(0deg 0% 0% / 0.38);
} */

.rightClickMenu {
  width: 200px;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 5px;
  padding: 5px 0;
  font-size: var(--mds-font-size-body-small);
  min-width: 250px;
  cursor: default;
  padding: 0px;
  box-shadow: var(--vrc-shadow-2);
  z-index: 500;
}

/* former dark .rightClickMenu */
.pleaseWaitDialog {
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  width: 200px;
  border-color: var(--mds-color-theme-outline-secondary-normal);
  border-width: 1px;
  padding: 0px;
  cursor: default;
  border-radius: 5px;
  font-size: smaller;
  min-width: 250px;
  text-align: center;
  border-radius: 20px;
  box-shadow: var(--vrc-shadow-3);
}

dialog.pleaseWaitDialogNoBackdrop::backdrop {
  background: none;
  backdrop-filter: unset;
  width: 150px;
  min-width: 140px;
}




.rightClickMenuDiv {
  padding: 6px;
  border-radius: 5px;
  border-width: 1px;
}

.rightClickMenuItem,
.rightClickMenuItemDisable {
  padding-left: 5px;
}

.rightClickMenuItem:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
}


.rightClickMenuItemDisable {
  color: var(--mds-color-theme-control-indicator-inactive-normal);
  cursor: default;
}

.rightClickMenuShortCutText {
  color: var(--mds-color-theme-text-secondary-normal);
  float: right;
  padding: 0px;
  padding-right: 6px;
}

hr.rightClickHorizontalLine {
  height: 1px;
  background-color: var(--mds-color-theme-outline-secondary-normal);
  border: none;
  margin: 5px;
}

.menuReach {
  position: absolute;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 5px;
  padding: 5px 0;
  box-shadow: var(--vrc-shadow-2);
  z-index: 1000;
  font-size: small;
  min-width: 160px;
}

.menuReach-item {
  display: flex;
  align-items: center;
  padding-left: 8px;
  padding-right: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
  cursor: pointer;
  user-select: none;
}

.menuReach-item:hover {
  background: var(--mds-color-theme-button-secondary-hover);
  border-radius: 20px;
}

.menuReachItem-checkbox {
  margin-right: 8px;
}

.menuTolerance {
  width: 400px;
  max-width: 94vw;
  padding: 6px 12px 12px;
  /* Matches what dragElement() paints on drag, so this panel reads as moveable before it is moved. */
  box-shadow: var(--vrc-shadow-2);
}

/* The whole head is the drag handle, so it wears the cursor rather than the gripper icon alone. */
.menuToleranceHead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
  cursor: all-scroll;
}

.menuToleranceTitle {
  flex: 1 1 auto;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.menuToleranceGrip {
  flex: 0 0 auto;
}

.menuToleranceClose {
  flex: 0 0 auto;
  border: none;
  background: none;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1;
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: pointer; /* overrides the head's drag cursor: this one is a button, not a grip */
}

.menuToleranceClose:hover {
  color: var(--mds-color-theme-text-primary-normal);
}

/* The 'i' beside a setting. The bubble is wider than the shared 200px so a full explanation fits, and
   it is nudged left of centre so a row near the panel edge does not push it off the window. */
.menuToleranceHelp {
  margin-left: 5px;
  color: var(--mds-color-theme-text-accent-normal);
  cursor: help;
}

.menuToleranceHelp .icon {
  font-size: 12px;
  vertical-align: baseline;
}

.menuToleranceTip {
  width: 250px;
  left: 0;
  margin-left: -190px;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
  font-weight: normal;
  z-index: 1001;
}

.menuToleranceTip::after {
  left: auto;
  right: 52px;
}

.menuToleranceNotice {
  background-color: var(--mds-color-theme-background-alert-warning-normal);
  border: 1px solid var(--mds-color-theme-outline-warning-normal);
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.35;
}

.menuToleranceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.menuToleranceRow label {
  flex: 1 1 auto;
  font-size: 12px;
  line-height: 1.25;
  cursor: default;
}

.menuToleranceInputWrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.menuToleranceInput {
  width: 68px;
  padding: 3px 5px;
  font-size: 12px;
  text-align: right;
  border: 1px solid var(--mds-color-theme-outline-input-normal);
  border-radius: 4px;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
}

.menuToleranceUnit {
  font-size: 11px;
  color: var(--mds-color-theme-text-secondary-normal);
  width: 16px;
}

.menuToleranceButtons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.menuToleranceButtons .button {
  flex: 1 1 0;
  font-size: 13px;
  padding: 5px 10px;
}

/* Close dismisses rather than acting on a value, so it sits apart from Update and Reset. */
.menuToleranceCloseBtn {
  margin-left: 14px;
}

.menuReachClearButton {
  padding: 8px 12px;
  cursor: pointer;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  width: 130px;
  margin: 0px 5px;
}

.menuReachClearButton:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
  border-radius: 25px;

}

.menuMore {
  position: absolute;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 5px;
  padding: 5px 0;
  box-shadow: var(--vrc-shadow-2);
  z-index: 1000;
  font-size: small;
}

.menuMoreInputField {
  position: relative;
  display: flex;
  /* flex-direction: column; */
  gap: 10px;
  flex-grow: 1;
  /* align-items: stretch; */
  justify-content: space-between;
  margin-bottom: 10px;
}

.menuMoreInputField label {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}


/* -------------------------------------------------------------- */
/* Per-item ellipse menu (Group / CustomItem actions)             */
/* Sits next to #btnUpdateItemId and #btnMultiUpdateItemId in the */
/* Details / Multiple-Item Details panels. Opens itemActionsMenu  */
/* (built in roomcalc.js → toggleItemActionsMenu()).              */
/* -------------------------------------------------------------- */
.itemEllipseHostRow {
  position: relative;
  align-items: center;
}

.itemEllipseBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  margin-left: 6px;
  cursor: pointer;
  color: var(--active);
}

.itemEllipseBtn:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
  border-color: var(--active);
}

.itemEllipseBtn .icon {
  font-size: 18px;
  line-height: 1;
}

.itemEllipseBtn[disabled],
.itemEllipseBtn.itemEllipseBtnDisabled {
  color: var(--mds-color-theme-control-indicator-inactive-normal);
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
}

#itemActionsMenu {
  position: fixed;
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 5px;
  padding: 4px 0;
  box-shadow: var(--vrc-shadow-2);
  z-index: 1000;
  min-width: 200px;
  font-size: small;
  cursor: default;
}

#itemActionsMenu .itemActionsMenuItem {
  padding: 6px 12px;
  user-select: none;
}

#itemActionsMenu .itemActionsMenuItem:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
  cursor: pointer;
}

#itemActionsMenu .itemActionsMenuItemDisable {
  padding: 6px 12px;
  color: var(--mds-color-theme-control-indicator-inactive-normal);
  cursor: default;
}

#itemActionsMenu hr.itemActionsMenuDivider {
  height: 1px;
  background-color: var(--mds-color-theme-outline-secondary-normal);
  border: none;
  margin: 4px 0;
}


/* ----------------------------------------------------------------- */
/* Scroll-hint button: a sticky chevron that appears at the bottom of */
/* an overflowing .subtabcontent / .subtabcontent2 panel.  Click      */
/* scrolls the panel down by ~80% of its visible height; the button   */
/* hides automatically when the user reaches the end of the panel.    */
/* See initScrollHints() in roomcalc.js for the wiring.               */
/* ----------------------------------------------------------------- */
.scrollHintBtn {
  position: sticky;
  bottom: 8px;
  margin: 8px auto 4px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  background: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-secondary-normal);
  box-shadow: var(--vrc-shadow-1);
  cursor: pointer;
  z-index: 5;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.scrollHintBtn:hover {
  background: linear-gradient(var(--mds-color-theme-button-secondary-hover), var(--mds-color-theme-button-secondary-hover)), var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  transform: translateY(-1px);
}

.scrollHintBtn:focus-visible {
  outline: 2px solid var(--mds-color-theme-outline-theme-normal);
  outline-offset: 2px;
}

.scrollHintBtn i {
  font-size: 16px;
  line-height: 1;
  transform: translate(0px, 3px);
}

.subtabcontent.hasScrollHint > .scrollHintBtn,
.subtabcontent2.hasScrollHint > .scrollHintBtn,
.recentFloorPlansScroll.hasScrollHint > .scrollHintBtn,
#equipmentScrollArea.hasScrollHint > .scrollHintBtn {
  display: flex;
}

.tablinksfake {
  display: none;
}

.pleaseWaitDialog {
  min-width: fit-content;
  min-height: fit-content;
  padding: 12px;
  padding-left: 30px;
  padding-right: 30px;
}


/** keep in DOM but hide for users */
.debug-info {
  display: none;
}


#newRoomDialog {
  max-height: 95vh;
}


.displayWhenLessThan900 {
  display: none;
  background-color: transparent;
}

@media screen and (max-width: 405px) {
  dialog header button {
    padding: 1em 1em;
  }

  #closeOpenMenu {
    transform: translate(10px, 120px);
  }
}

@media screen and (max-width: 650px) {
  .ContainerHeader {
    gap: 2px;
    padding-inline: 12px;
  }

  .ContainerHeader > button:not(.primary) {
    padding-inline: 7px;
  }

  #lblHeaderTitle {
    display: none;
  }

  .ContainerHeader #lblSubtitle {
    display: none;
  }

  .ContainerHeader > button span {
    display: none;
    /* only show icons in header buttons */
  }

  .theme-picker-label {
    display: none;
  }

  .ContainerHeader > button i {
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 24px;

  }

  .ContainerHeader > .primary i {
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
  }

  dialog header button {
    font-size: 10px;
  }


}

@media screen and (max-width: 405px) {
  .ContainerHeader {
    padding-inline: 8px;
  }

  .ContainerHeader > button:not(.primary) {
    padding-inline: 4px;
  }

  .ContainerHeader > button.primary {
    padding-inline: 10px;
  }

  .ContainerHeader > button:not(.primary) i {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 20px;
  }

  .theme-picker-trigger {
    padding-inline: 5px;
    gap: 4px;
  }
}

.dropDownJSON,
.dropDownPNG {
  position: relative;
  display: inline-flex;
  overflow: visible;
  max-width: 100%;
  gap: 2px;
}

.drpDownBtnMain {
  padding-left: 70px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  width: 300px;
  min-width: 0;
  margin-bottom: 20px;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

#shareLink.drpDownBtnMain {
  padding-left: 50px;
}

.dropDownBtnWhite {
  box-shadow: none;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
}

.dropDownBtnWhite:hover:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.dropDownBtnWhite:active:not(:disabled) {
  background-color: var(--mds-color-theme-button-secondary-pressed);
}

.dropDownBtnWhite:disabled {
  background-color: var(--mds-color-theme-background-input-disabled);
}

.drpDownBtnMainFull {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  width: 338px;
  margin-bottom: 20px;
}

.drpDownBtnArrow {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 8px 10px;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

.drpDownBtnArrow .icon {
  height: 16px;
  line-height: 16px;
  vertical-align: middle;
}

.dropDownBtnMenu {
  display: none;
  /* hide until toggled */
  position: absolute;
  top: 100%;
  left: 0;
  width: min(338px, 100%);
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  z-index: 1000;
  box-shadow: var(--vrc-shadow-2);
  text-align: left;
  padding: 0;
  margin-top: -20px;
  border-radius: 0.25rem;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
}


.dropDownMenuItem {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  font-size: small;

}

@media screen and (max-width: 405px) {
  .drpDownBtnMain,
  #shareLink.drpDownBtnMain {
    padding-inline: 32px 12px;
  }
}

.dropDownMenuItem:hover,
.dropDownMenuItem:focus {
  background-color: var(--mds-color-theme-button-secondary-hover);
  color: var(--mds-color-theme-text-primary-normal);

}

.iconLeftOfText {
  position: absolute;
  left: -23px;
  top: -4px;
}

.showJSONDropDown,
.showPNGDropDown,
.showShareLinkDropDown {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

#floatingWorkspace {
  display: flex;
  margin: 0;
  padding: 0;
  resize: both;
  overflow: hidden;
  flex-direction: column;
}

#floatingWorkspace>#iFrameFloatingWorkspace {
  flex-grow: 1;
  margin: 0;
  padding: 0;
  border: 0
}

@media screen and (max-width: 783px) {

  #newRoomDialog {
    max-height: 0%;
  }

  .ContainerHeader {
    gap: 2px;
  }

  dialog {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    border-radius: 0px;
    max-height: 0px;
  }

  .dialogWhiteBox {
    width: auto;
    min-height: initial;
    min-width: initial;
    max-width: 95%;
    border-radius: 30px;
    max-height: 80%;
    padding: 20px;
  }

  h2 {
    margin: 6px 0;
  }


  #newRoomDialog header {
    padding: 0.5em;
    padding-bottom: 1em;
  }

  dialog header .buttons {
    margin-top: 1em;
  }




  dialog::backdrop {
    background-color: var(--mds-color-theme-common-overlays-secondary-normal);
    backdrop-filter: blur(3px);
  }


}

.quick-dialog {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 620px;
  max-width: 90vw;
  height: 500px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  color: var(--mds-color-theme-text-primary-normal);
  padding: 1.5em;
  flex-direction: column;
  gap: 1em;
  border-radius: 1em;
  z-index: 999;
}

.quick-dialog input {
  background-color: var(--mds-color-theme-background-solid-tertiary-normal);
  color: var(--mds-color-theme-text-primary-normal);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
  gap: 5px;
}

.gallery button {
  list-style: none;
  width: 9em;
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  color: var(--mds-color-theme-text-primary-normal);
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

/* Quick Add: green left-border is a CustomItem-only marker.
 * The green echoes the green CustomItem rect convention used on the
 * canvas (#B6EAB0 fill / green dashed stroke — see "Konva rendering"
 * in CLAUDE.md), so a user familiar with the canvas surface
 * immediately recognizes these tiles as "the bundles I built". 3px is
 * narrow enough not to crowd the 9em tile width but visible against
 * the regular grey tile background. Regular device tiles in the same
 * gallery intentionally do NOT carry this marker. */
.gallery button.customItemTile {
  border-left-color: var(--mds-color-theme-text-success-normal);
  border-left-width: 3px;
}

/* .gallery button:focus {
  border: 2px solid #52adc7;
  background-color: #296679;
} */

.gallery button img {
  object-fit: contain;
  max-width: 100%;
  height: 70px;
}

.gallery button label {
  text-align: center;
}

.gallery button:hover {
  background-color: var(--mds-color-theme-background-solid-tertiary-normal);
}



.wallBuilder {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  max-height: 70vh;
  gap: 5px;
  flex-direction: row;
  align-content: stretch;
  justify-content: center;
}


.wallBuilder button {
  list-style: none;
  /* width: 7em; */
  width: 9em;
  padding: 7px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.3em;
  color: var(--mds-color-theme-text-primary-normal);
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  border: 1px solid transparent;
}


.wallBuilder button img {
  object-fit: contain;
  max-width: 100%;
  height: 40px;
}

.wallBuilder button label {
  text-align: center;
}

.wallBuilder button:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.wallBuilderWallSelected {
  border: 2px solid var(--mds-color-theme-outline-theme-normal) !important;
  background-color: var(--mds-color-theme-button-secondary-active-normal) !important;
}


/* On screens that are 1180px wide or less, go from four columns to two columns */
@media screen and (max-width: 900px) {

  .ContainerHeader > button:not(.primary, .pocCloudLoginBtn) span {
    display: none;
  }

  body.room-calculator {
    height: max-content;
    overflow: auto;
  }

  #ContainerRoomSvg {
    width: calc(100% - 40px);
    min-width: 340px;
    /* padding: 0px; */
    border-color: var(--mds-color-theme-outline-secondary-normal);
    display: inline;
    vertical-align: top;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 30px;

  }


  #openSideBar {
    position: absolute;
  }

  .subtabcontent,
  .subtabcontent2 {
    position: relative;
    height: 490px;
  }

  /* .classOpenMenuClosed {
    transform: rotate(-90deg);
  } */

  #ContainerForContainerRoom {
    float: unset;
    overflow: unset;
  }

  #sidebar {
    width: 100%;
    padding: 0px;
    max-width: unset;
    position: absolute;
    z-index: 99;
    /* Keep the desktop viewport-bound flex layout (height: calc(100vh
       - 60px); display: flex; flex-direction: column;) so the Equipment
       list scrolls inside #equipmentScrollArea instead of pushing the
       whole page down. Mirrors the body.svBp900 (split-view) behaviour
       — the only differences here are width/max-width/position needed
       for the sidebar to float over the canvas at narrow widths. */
  }

  #controlButtons {
    gap: 5px;
    overflow-x: auto;
  }

  #controlButtons .spacer {
    display: none;
  }

  #Container2 {
    width: 100%;
    padding: 0px;
    padding-bottom: 10px;
    margin: 0px;
  }

  .ContainerInputsFeedback {
    width: 97.5%;
  }

  #ContainerInputs {
    margin-top: 10px;
    margin-right: -30px;
    margin-bottom: 10px;
    margin-left: -5xpx;
    max-width: 370px;
    min-width: 320px;
    border-style: solid;
    border-width: thin;
  }



  .inputCellLeft2 {
    width: 14rem;
  }

  .inputCellLeft1 {
    width: 10.5rem;
  }

  .button:hover {
    box-shadow: none;
  }

  /* #openSideBar {
    height: 45px;
    width: 97%;
    margin-top: 30px;
    padding-top: 10px;

  } */

  .tablinksfake {
    padding-bottom: 0px;
    color: var(--mds-color-theme-text-secondary-normal);
    display: inline;
  }

  /* #closeOpenIcon {
    transform: rotate(90deg);
  } */

  /* #openSideBarBtn {

    display: inline;
    padding: 0px;
    padding-right: 0px;
    transform: rotate(90deg);
    position: absolute;
    right: 35px;
    top: 75px;
    left: unset;

  } */


  .displayWhenLessThan900 {
    display: contents;
    color: var(--mds-color-theme-text-secondary-normal);
  }

}

/* ================================================================ */
/* Split View panel & Preview dropdown button styles                 */
/* ================================================================ */

/* ------------------------------------------------------------------
   Preview split-button group (ContainerHeader)
   Matches the existing .primary pill button style.
------------------------------------------------------------------ */
.previewBtnGroup {
  position: relative;
  display: inline-flex;
  gap: 2px;
}

.previewBtnMain {
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
  border-top-left-radius: 30px !important;
  border-bottom-left-radius: 30px !important;
}

.previewBtnArrow {
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  border-top-right-radius: 30px !important;
  border-bottom-right-radius: 30px !important;
  padding: 7px 10px !important;
  min-width: 32px;
  border-left: 1px solid var(--mds-color-theme-outline-secondary-normal) !important;
}

.previewDropDownMenu {
  left: 0;
  margin-top: -2px;
  min-width: 220px;
  z-index: 10000;
}

/* Toggle class — mirrors showJSONDropDown / showPNGDropDown */
.showPreviewDropDown {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: max-content;
}

/* ------------------------------------------------------------------
   Split view overlay container
   Fixed panel covering the right portion of the viewport,
   positioned below the 47px ContainerHeader.
   Right panel width is set dynamically via JS.
------------------------------------------------------------------ */
.splitViewContainer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  z-index: 500;
  pointer-events: none;
}

.splitViewLeft {
  flex-shrink: 0;
  pointer-events: none;
  background: transparent;
  padding-top: 47px;
}

.splitViewBar {
  width: 13px;
  border-style: solid;
  border-color: var(--mds-color-theme-outline-secondary-normal);
  background-color: var(--mds-color-theme-background-solid-primary-normal);
  cursor: col-resize;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.1s;
  z-index: 501;
  box-shadow: var(--vrc-shadow-1);
}

.splitViewBar:hover,
.splitViewBar.dragging {
  background-color: var(--mds-color-theme-button-secondary-hover);
}

.splitViewBarHandle {
  display: block;
  width: 4px;
  height: 40px;
  border-left: 2px dotted var(--mds-color-theme-outline-input-normal);
  border-right: 2px dotted var(--mds-color-theme-outline-input-normal);
}

.splitViewBar.dragging .splitViewBarHandle {
  border-color: var(--mds-color-theme-outline-input-normal);
}

/* Reopen tab: fixed to right edge, shown when WSD is closed */
.splitViewReopenTab {
  position: fixed;
  right: 0;
  top: 20%;
  transform: translateY(-50%);
  z-index: 600;
  width: 28px;
  height: 56px;
  background-color: var(--mds-color-theme-button-accent-normal);
  border: none;
  border-radius: 6px 0 0 6px;  /* rounded on left side only */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mds-color-theme-common-text-primary-normal);
  font-size: 18px;
  box-shadow: var(--vrc-shadow-1);
  padding: 0;
}

.splitViewReopenTab:hover {
  background-color: var(--mds-color-theme-button-accent-hover);
}

.splitViewRight {
  flex: 1;
  position: relative;
  background: var(--mds-color-theme-background-solid-secondary-normal);
  pointer-events: all;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* "Powered by Cisco Workspace Designer" label in top whitespace area */
.splitViewLabel {
  flex-shrink: 0;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* was: center */
  background: var(--mds-color-theme-background-solid-primary-normal);
  font-size: 16px;
  color: var(--mds-color-theme-text-secondary-normal);
  white-space: nowrap;
  overflow: hidden;
  padding: 0 8px;
  pointer-events: none;
  user-select: none;
  border-bottom-color: var(--mds-color-theme-outline-secondary-normal);
  border-bottom-style: solid;
}

/* Center label text stretches to fill space between the two buttons */
.splitViewLabel .splitViewLabelText {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Close (X) and Open New Tab buttons in the label bar */
.splitViewLabelBtn {
  pointer-events: all;   /* override parent pointer-events:none */
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mds-color-theme-text-secondary-normal);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.splitViewLabelBtn:hover {
  background-color: var(--mds-color-theme-button-secondary-hover);
  color: var(--mds-color-theme-text-primary-normal);
}

.splitViewLabel .splitViewLabelFull  { display: inline; }
.splitViewLabel .splitViewLabelShort { display: none; }
.splitViewLabel .splitViewLabelVRC   { display: none; }


@container splitRight (max-width: 420px) {
  .splitViewLabel .splitViewLabelFull  { display: none; }
  .splitViewLabel .splitViewLabelShort { display: inline; }
}

.splitViewIframe {
  display: block;
  width: 100%;
  flex: 1;        /* fills remaining height below the label */
  border: none;
  min-height: 0;  /* allows flex child to shrink below content size */
}

/* ------------------------------------------------------------------
   Restore button: shown only when right panel is 100% (VRC hidden).
   Anchored to the left edge of the right panel.
------------------------------------------------------------------ */
.splitViewExpandBtn {
  position: absolute;
  left: -7px;
  top: 20%;
  transform: translateY(-50%);
  z-index: 600;
  width: 30px;
  height: 56px;
  background-color: var(--mds-color-theme-button-accent-normal);
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mds-color-theme-common-text-primary-normal);
  font-size: 18px;
  box-shadow: var(--vrc-shadow-1);
  padding: 0;
}

.splitViewExpandBtn:hover {
  background-color: var(--mds-color-theme-button-accent-hover);
}


/* Split-view responsive breakpoint classes                                  */
/* These mirror @media queries but fire based on actual content width,       */
/* not viewport width. JS adds svBp* classes to <body> during split view.    */

/* Mirror @media (max-width: 900px) */
body.svBp900 .ContainerHeader > button:not(.primary, .pocCloudLoginBtn) span {
  display: none;
}

body.svBp900 #ContainerRoomSvg {
  width: calc(100% - 40px); min-width: 340px; display: inline;
  vertical-align: top; margin: 0 0 10px 30px;
}
body.svBp900 #openSideBar { position: absolute; }
body.svBp900 .subtabcontent, body.svBp900 .subtabcontent2 { position: relative; height: 490px; }

body.svBp900 #ContainerForContainerRoom { float: unset; overflow: unset; }

/* body.svBp900 #sidebar {
  width: 100%; padding: 0; max-width: unset; position: absolute; z-index: 99;
} */

body.svBp900 #sidebar {
  padding: 0; max-width: 370px; position: absolute; z-index: 99;
}

/* body.svBp900 #sidebar {
  padding: 0; max-width: 400px;
} */

body.svBp900 #controlButtons { gap: 5px; overflow-x: auto; }
body.svBp900 #controlButtons .spacer { display: none; }
body.svBp900 #Container2 { width: 100%; padding: 0; padding-bottom: 10px; margin: 0; }
body.svBp900 .ContainerInputsFeedback { width: 97.5%; }
body.svBp900 #ContainerInputs {
  margin: 10px -30px 10px 0; max-width: 370px; min-width: 320px;
  border-style: solid; border-width: thin;
}
body.svBp900 .displayWhenLessThan900 { display: contents; color: var(--mds-color-theme-text-secondary-normal); }


/* Mirror @media (max-width: 783px) */

body.svBp783 .ContainerHeader { gap: 2px; }
body.svBp783 #lblHeaderTitle { max-width: 145px; }


/* Mirror @media (max-width: 650px) */
body.svBp650 .ContainerHeader {
  gap: 2px;
  padding-inline: 12px;
}

body.svBp650 .ContainerHeader > button:not(.primary) { padding-inline: 7px; }
body.svBp650 .ContainerHeader > button span { display: none; }
body.svBp650 .theme-picker-label { display: none; }
body.svBp650 .ContainerHeader > button i {
  padding: 0; width: 28px; height: 28px; line-height: 28px; font-size: 24px;
}
body.svBp650 .ContainerHeader .primary i {
  padding: 0; width: 20px; height: 20px; line-height: 20px; font-size: 16px;
}

/* Mirror @media (max-width: 405px) */
body.svBp405 #lblHeaderTitle { display: none; }
body.svBp405 .ContainerHeader #lblSubtitle { display: none; }
body.svBp405 .ContainerHeader { padding-inline: 8px; }
body.svBp405 .ContainerHeader > button:not(.primary) { padding-inline: 4px; }
body.svBp405 .ContainerHeader > button.primary { padding-inline: 10px; }
body.svBp405 .ContainerHeader > button:not(.primary) i {
  width: 24px; height: 24px; line-height: 24px; font-size: 20px;
}

/* ---- Layers Tab UI ---- */
.layers-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  border-radius: 6px;
  background: transparent;
  transition: background 0.1s;
}

.layer-row:hover {
  background: var(--mds-color-theme-button-secondary-hover);
}

.layer-row.layer-header-row {
  background: var(--mds-color-theme-background-solid-secondary-normal);
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-radius: 6px 6px 0 0;
}

.layer-row.layer-header-row:hover {
  background: var(--mds-color-theme-background-solid-secondary-normal);
}

.layer-header-label {
  font-weight: 600;
  color: var(--mds-color-theme-text-primary-normal);
  cursor: default !important;
}

.layer-header-label:hover {
  background: transparent !important;
}

.layer-header-spacer {
  /* Reserve space where the per-row delete button sits, so columns align */
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.layer-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 5px;
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  color: var(--mds-color-theme-text-secondary-normal);
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  transition: background 0.1s, border-color 0.1s;
}

.layer-icon-btn:hover:not(:disabled) {
  background: var(--mds-color-theme-button-secondary-hover);
  border-color: var(--mds-color-theme-outline-theme-normal);
  color: var(--mds-color-theme-text-accent-normal);
}

.layer-icon-btn.layer-btn-active {
  background: var(--mds-color-theme-button-secondary-active-normal);
  border-color: var(--mds-color-theme-outline-theme-normal);
  color: var(--mds-color-theme-text-accent-normal);
}

.layer-icon-btn.layer-btn-locked {
  background: var(--mds-color-theme-background-alert-warning-normal);
  border-color: var(--mds-color-theme-outline-warning-normal);
  color: var(--mds-color-theme-text-warning-normal);
}

.layer-icon-btn:disabled {
  background: var(--mds-color-theme-background-input-disabled);
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: default;
}

.layer-name {
  flex: 1;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.layer-name:hover {
  background: var(--mds-color-theme-button-secondary-hover);
}

.layer-name-hidden {
  color: var(--mds-color-theme-text-secondary-normal);
  font-style: italic;
}

.layer-name-reserved {
  cursor: default;
}

.layer-name-reserved:hover {
  background: transparent;
}

.layer-name-input {
  flex: 1;
  font-size: 0.82rem;
  padding: 2px 4px;
  border: 1px solid var(--mds-color-theme-outline-theme-normal);
  border-radius: 4px;
}

.layer-icon-btn.layer-delete-btn:hover:not(:disabled) {
  color: var(--mds-color-theme-text-error-normal);
  border-color: var(--mds-color-theme-text-error-normal);
  background: var(--mds-color-theme-background-alert-error-normal);
}

/* ----- Per-layer "select items" button --------------------------------------
 * Distinct hover + press feedback so the user can tell the button is
 * interactive AND that their click registered, even on a layer where the
 * resulting selection lands offscreen. The base `.layer-icon-btn` already
 * carries a `transition: background 0.1s, border-color 0.1s` (line 2953)
 * so these states ease in/out smoothly. The `:active` state is what gives
 * the "momentarily change color on click" effect — applies while the mouse
 * is held down, releases back to the hover/active style on mouse-up. */
.layer-select-btn.layer-btn-active:hover {
  background: var(--mds-color-theme-button-secondary-active-hover);
  border-color: var(--mds-color-theme-outline-theme-normal);
  color: var(--mds-color-theme-text-accent-normal);
}

.layer-select-btn.layer-btn-active:active {
  background: var(--mds-color-theme-button-secondary-active-pressed);
  border-color: var(--mds-color-theme-outline-theme-normal);
  color: var(--mds-color-theme-text-accent-normal);
  transform: scale(0.94);
}


/* ----- VRC toast primitive ------------------------------------------------
 * Lightweight transient notification used for "Custom Item saved to library",
 * "Custom Item exported", "Imported N Custom Item(s)", etc. The container is
 * created lazily by showToast() on first use and stays in the DOM for the
 * lifetime of the page; individual `.vrc-toast` children animate in, hold,
 * and animate out independently. Pointer-events:none on the container keeps
 * the toast purely informational — it never blocks the canvas underneath. */

#vrcToastContainer {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100000;
  pointer-events: none;
}

.vrc-toast {
  background: var(--mds-color-theme-inverted-background-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  font-size: 14px;
  line-height: 1.3;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: var(--vrc-shadow-1);
  max-width: 90vw;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  pointer-events: none;
}

.vrc-toast.vrc-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Shareable Template Hyperlink "copied" banner ----
 * Appears below the #shareLink button inside its .dropDownPNG container
 * (which is position: relative). Absolutely positioned so it overlays
 * adjacent content without reflowing the Save dialog. Hidden by default
 * (opacity 0 + visibility hidden), revealed by JS via the
 * .shareLinkCopiedBanner-visible class for ~3s, then fades. */
.shareLinkCopiedBanner {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--mds-color-theme-background-alert-theme-normal);
  color: var(--mds-color-theme-text-accent-normal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: var(--vrc-shadow-1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease-out, transform 220ms ease-out, visibility 0s linear 220ms;
  z-index: 10;
}

.shareLinkCopiedBanner.shareLinkCopiedBanner-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
  visibility: visible;
  transition: opacity 220ms ease-out, transform 220ms ease-out, visibility 0s linear 0s;
}

/* ---- Library customItem tile (shared between Equipment-tab sidebar
 * and Quick Add modal) ----
 *
 * Library customItem tiles (.customItemTile) live in two places:
 *   - the Equipment-tab sidebar (#customItemsMenuContainer)
 *   - the Quick Add modal (.quick-dialog .gallery)
 *
 * The green left-border distinguishing-marker (#0fba0f, 3px) is
 * applied ONLY in the Quick Add gallery via `.gallery button.customItemTile`
 * above — it echoes the green CustomItem rect convention used on the
 * canvas (#B6EAB0 fill / green dashed stroke — see "Konva rendering"
 * in CLAUDE.md), so a user familiar with the canvas surface
 * immediately recognizes those tiles as "the bundles I built". The
 * Equipment-tab sidebar copy intentionally omits the green marker so
 * the customItem tiles blend with the surrounding device tiles in the
 * sidebar grid (`cursor: move` is what visually grounds them there
 * instead — see the #customItemsMenuContainer rule below). */
.equipmentItemOnMenu.customItemTile {
  /* Anchor for .customItemTileDeleteBtn — the absolutely-positioned
   * delete glyph nests inside the tile rather than the gallery, so it
   * tracks the tile through wrapping/reorder of search results. */
  position: relative;
}

/* ---- Equipment tab sidebar: Custom Item Library tile cursor ----
 *
 * The Equipment-tab Custom Items pill renders each library tile as a
 * <button> element (see buildCustomItemTile() in js/roomcalc.js), but
 * the surrounding regular device tiles in `.containerItems` are <div>
 * elements that inherit `cursor: move` from their parent. Browser UA
 * stylesheets set an explicit cursor on <button>, which overrides the
 * inherited `cursor: move` from `.containerItems` and leaves the
 * Custom Item tiles showing the default arrow — visually inconsistent
 * with the drag-and-drop affordance the rest of the equipment menu
 * advertises. This rule restores the move cursor on those buttons.
 *
 * Scoped to `#customItemsMenuContainer` so the Quick Add modal copy
 * (which is click-to-insert, not draggable) keeps its `cursor: pointer`
 * inherited from `.gallery button`. */
#customItemsMenuContainer .customItemTile {
  cursor: move;
}

/* ---- Quick Add palette: customItem tile "more" (ellipsis) button ----
 *
 * Small round `...` affordance in the upper-right of every library
 * customItem tile. Originally a trash glyph (delete-only), now an
 * ellipsis that opens the Edit Custom Item dialog (rename / re-author
 * / re-describe + Export / Delete / Remove-From-Library). Modelled on
 * the Recent Floor Plans card's delete button — same shape, same
 * fade-on-hover behaviour — but shrunk to 20px so it doesn't crowd
 * the 70px menuImage thumbnail above the tile's 12px label.
 *
 * The white pill background + drop-shadow lifts the icon off any tile
 * background colour the menuImage might bleed into, so the affordance
 * stays legible regardless of which Custom Item it sits on. The icon
 * itself is the Momentum `icon-more-bold` glyph (matches the global
 * "more menu" trigger in the toolbar).
 *
 * Class name still reads `customItemTileDeleteBtn` for historical
 * reasons — renaming it would require a coordinated change across CSS
 * + JS with no functional benefit. The class is the visual style only;
 * the click handler decides the action. */
.customItemTileDeleteBtn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: var(--mds-color-theme-background-solid-primary-normal);
  color: var(--mds-color-theme-text-secondary-normal);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--vrc-shadow-1);
  opacity: 0;
  transition: opacity 120ms ease-out, color 120ms ease-out;
}

.customItemTileDeleteBtn .icon {
  font-size: 15px;
}

.equipmentItemOnMenu.customItemTile:hover .customItemTileDeleteBtn,
.equipmentItemOnMenu.customItemTile:focus-within .customItemTileDeleteBtn,
.customItemTileDeleteBtn:focus {
  opacity: 1;
}

.customItemTileDeleteBtn:hover {
  /* Neutral darken on hover — the button is no longer destructive
   * (the ellipsis opens an edit dialog), so the previous red hover
   * colour would mislead the user into expecting a delete action. */
  color: var(--mds-color-theme-text-accent-normal);
}

/* ------------------------------------------------------------------
 * Webex Cloud Storage Proof of Concept (js/pocLoginCloud.js)
 * Only visible when the page loads with ?testLogin=1.
 * ---------------------------------------------------------------- */

.pocCloudLoginBtn {
  font-size: 13px;
}

.pocCloudAvatarBtn {
  padding: 2px !important;
  border-radius: 50% !important;
  overflow: hidden;
  width: 34px;
  height: 34px;
  background-color: transparent;
}

.pocCloudAvatarBtn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
}

.pocCloudUserRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
  margin-bottom: 12px;
}

.pocCloudUserRow img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  flex: 0 0 auto;
}

.pocCloudUserInfo {
  flex: 1 1 auto;
  min-width: 0;
}

.pocCloudUserName {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pocCloudUserEmail {
  color: var(--mds-color-theme-text-secondary-normal);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pocCloudSpaceStatus {
  padding: 8px 10px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}

.pocCloudSaveRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pocCloudSaveStatus {
  font-size: 12px;
  color: var(--mds-color-theme-text-secondary-normal);
  flex: 1 1 auto;
  min-width: 0;
}

.pocCloudListHeader {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

.pocCloudRoomsList {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--mds-color-theme-outline-secondary-normal);
  border-radius: 6px;
  background-color: var(--mds-color-theme-background-solid-secondary-normal);
}

.pocCloudRoomsEmpty {
  padding: 20px;
  text-align: center;
  color: var(--mds-color-theme-text-secondary-normal);
  font-style: italic;
  font-size: 12px;
}

.pocCloudRoomRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

.pocCloudRoomRow:last-child {
  border-bottom: none;
}

.pocCloudRoomInfo {
  flex: 1 1 auto;
  min-width: 0;
}

.pocCloudRoomName {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pocCloudRoomMeta {
  color: var(--mds-color-theme-text-secondary-normal);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pocCloudLoadBtn {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 10px !important;
}

/* Destructive action: subtle red tint so the user reads "this
 * removes something" before clicking, but still consistent with the
 * `button dropDownBtnWhite` shape used for the Load button alongside
 * it. The confirm() prompt in deleteRoomFromMap() is the real
 * safety net; this is just a visual cue. */
.pocCloudDeleteBtn {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 10px !important;
  margin-left: 6px;
  color: var(--mds-color-theme-text-error-normal) !important;
  border-color: var(--mds-color-theme-text-error-normal) !important;
}
.pocCloudDeleteBtn:hover {
  background: var(--mds-color-theme-background-alert-error-normal) !important;
  border-color: var(--mds-color-theme-text-error-normal) !important;
}


.documentation {
  max-width: 900px;
  height: auto;
  margin-inline: auto;
  padding: clamp(16px, 4vw, 40px);
  line-height: var(--mds-font-lineheight-body-large);
  overflow-wrap: anywhere;
}

.documentation h1 {
  font-size: var(--mds-font-size-heading-large);
  line-height: var(--mds-font-lineheight-heading-large);
}

.documentation h1,
.documentation h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mds-color-theme-outline-secondary-normal);
}

.documentation h2 {
  margin-top: 32px;
}

.documentation a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.documentation pre,
.documentation code {
  background: var(--mds-color-theme-background-solid-secondary-normal);
  border-radius: 4px;
}

.documentation code {
  padding: 2px 4px;
}

.documentation pre {
  padding: 16px;
  overflow-x: auto;
}

.documentation pre code {
  padding: 0;
}

.documentation img {
  max-width: 100%;
  height: auto;
}

.documentation #error {
  display: none;
  color: var(--mds-color-theme-text-error-normal);
}

.documentation #loading,
.documentation .header-anchor {
  color: var(--mds-color-theme-text-secondary-normal);
}

.documentation .header-anchor {
  margin-inline-start: 8px;
  text-decoration: none;
  opacity: 0;
}

.documentation :is(h1, h2, h3, h4, h5, h6):is(:hover, :focus-within) .header-anchor {
  opacity: 1;
}

.documentation .copy-feedback {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--mds-color-theme-inverted-background-normal);
  color: var(--mds-color-theme-inverted-text-primary-normal);
  box-shadow: var(--vrc-shadow-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
