/* Window workbench. Every rule is gated by the connected window controller.
   Display remains governed by existing inline conditions and sidebar state. */
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) {
  --window-rail: 56px;
  --window-workbench-width: 300px;
  --window-line: #dce5ef;
  --window-muted: #6b7e92;
  --window-ink: #2b3e55;
  --accent: #3569a0;
  --accent-700: #285887;
  --accent-600: #3569a0;
  --accent-300: #93b5de;
  --accent-ring: rgba(53,105,160,.22);
  --focus-ring: 0 0 0 3px var(--accent-ring);
  --accent-soft: #eaf1fa;
  background: #f3f6fb;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header {
  min-height: 52px;
  padding: 7px 12px;
  gap: 10px;
  background: #f3f7fc;
  color: var(--window-ink);
  border-bottom: 1px solid var(--window-line);
  box-shadow: none;
  overflow: visible;
  flex-wrap: nowrap;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header h1.brand-logo {
  width: 130px;
  height: 36px;
  flex: 0 0 130px;
  margin: 0 5px 0 0;
  padding: 2px 0;
  background: transparent;
  box-shadow: none;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-main,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary { min-width: 0; gap: 6px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-main { flex: 0 1 auto; flex-wrap: wrap; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary { margin-left: auto; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-group,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-menu { background: transparent; border-color: transparent; padding: 0; gap: 3px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs { padding: 3px; gap: 2px; background: #eaf1f9; border-radius: 7px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs button,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .toolbar-history button,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > button,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > .toolbar-menu > summary,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditBar > button,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditBar > button {
  min-height: 32px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #526880;
  font-size: 13px;
  box-shadow: none;
  white-space: nowrap;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs button.active,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button.active { background: #fff; color: #285887; border-color: #d6e4f4; box-shadow: 0 1px 2px #223b5a08; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs #btnWindowMode.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs button:hover,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button:hover,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .toolbar-history button:hover:not(:disabled),
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > button:hover,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > .toolbar-menu > summary:hover { background: #eaf1fa; color: #285887; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > .toolbar-menu[open] > summary { color: #fff; background: #3569a0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .toolbar-history button { width: 32px; min-width: 32px; flex-basis: 32px; padding: 5px 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .toolbar-history button:disabled { background: transparent; color: #99a7b8; opacity: .5; }
/* The old phone skin removes these features; retain them in this workbench. */
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs { display: flex !important; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #btnRedo,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #btnCompare,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #btnSave,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #btnOpen { display: inline-flex !important; }
/* Match the window menus to the light workbench without changing placement. */
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover { background: #fff; color: #344b65; border: 1px solid #d7e3f1; border-radius: 8px; box-shadow: 0 8px 24px #29486921; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button { min-height: 32px; padding: 5px 8px; border-color: #d8e1ed; border-radius: 5px; background: #fff; color: #48617e; box-shadow: none; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button:hover:not(:disabled) { background: #f0f5fc; border-color: #b1c8e2; color: #285783; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button.active,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button[aria-pressed="true"] { background: #e9f1fb; border-color: #acc4e0; color: #285783; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button:disabled { color: #8393a8; background: #eef4fb; border-color: #e4eaf2; opacity: .55; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button.warn { color: #a76a5d; border-color: #eadcd8; background: #fff; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button.warn:hover:not(:disabled) { color: #9c4934; border-color: #d8ada0; background: #fcf2ef; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover button.recording { color: #fff; background: #b3364f; border-color: #cb5771; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover :is(.sales-visual-preset-control, .sales-sun-control, .standard-view-picker, .open-control) { color: #5f738d; background: #f4f8fd; border-color: #e0e8f2; border-radius: 6px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover :is(.sales-sun-heading strong, .standard-view-caption, .sales-sun-axis-label, .sales-sun-value, .open-control output) { color: #506b89; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover :is(.sales-sun-status, .standard-view-caption span) { color: #7b8da5; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover .standard-view-pair { background: #fff; border-color: #e3eaf3; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover input[type=range] { accent-color: #3569a0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover .open-control { min-height: 32px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover :is(select, input[type=text]) { border-color: #d8e3ef; border-radius: 5px; background: #f9fbfe; color: #344b65; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header .toolbar-popover .sales-sun-nudge { padding-left: 2px; padding-right: 2px; font-size: 11px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowDemoMenu .window-demo-popover { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 292px; max-width: calc(100vw - 20px); gap: 7px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowDemoMenu #demoModeSelect { display: block; width: 100%; min-width: 0; grid-column: 1 / -1; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowDemoMenu .open-control { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) 36px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowDemoMenu .open-control input[type=range] { width: 100%; min-width: 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditBar,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditBar { min-width: 0; gap: 5px; padding: 3px 5px; border: 1px solid #d1dff0; border-radius: 6px; background: #f0f5fc; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditLabel,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditLabel { min-width: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #526c88; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditBar #houseApplyWindowEdit,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditBar #sunroomApplyWindowEdit { color: #fff; background: #3569a0; border-color: #3569a0; }
/* The house bridge already supplies Apply/Return in the viewport. Keep one
   visible action pair, so entering an opening does not add a third header row. */
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode):has(#houseViewportActions.show #houseViewportApplyWindowEdit:not([hidden])) #houseWindowEditBar { display: none !important; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) main { min-width: 0; min-height: 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside {
  display: grid;
  grid-template-columns: var(--window-rail) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 0 0 var(--window-workbench-width);
  width: var(--window-workbench-width);
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--window-line);
  box-shadow: none;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside.workbench-collapsed { width: var(--window-rail); flex-basis: var(--window-rail); grid-template-columns: var(--window-rail); }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside.workbench-collapsed #windowWorkbenchPanel { display: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 54px;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 9px 5px;
  overflow-y: auto;
  scrollbar-width: none;
  background: #eef4fb;
  border: 0;
  border-right: 1px solid var(--window-line);
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 5px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #6b8098;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  box-shadow: none;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs button .ic { width: 19px; height: 19px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs button:hover { background: #e8f0fa; color: #2d6090; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs button.active { background: #dfebf8; border-color: #c9daee; color: #254f7c; font-weight: 650; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowWorkbenchPanel { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .window-workbench-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 68px;
  padding: 12px 10px 11px 12px;
  border-bottom: 1px solid var(--window-line);
  background: #fff;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .window-workbench-heading-copy { flex: 1; min-width: 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowContextEyebrow { display: block; margin-bottom: 3px; color: var(--window-muted); font-size: 12px; line-height: 16px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowContextTitle { display: block; overflow: hidden; color: var(--window-ink); font-size: 15px; font-weight: 650; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #windowPanelCollapse { flex: 0 0 28px; min-width: 28px; min-height: 32px; padding: 4px; background: transparent; border-color: transparent; color: #7c8ca0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #windowPanelCollapse:hover { background: #edf3fb; color: #365e86; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowWorkbenchContent {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 20px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd6e5 transparent;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .group { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .group:last-child { margin-bottom: 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .group h3 { margin: 0 0 9px; color: #5b7089; font-size: 12px; font-weight: 600; letter-spacing: 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .group h3::before { display: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowWorkbenchContent > .group:is([data-sidebar-tab="opening"], [data-sidebar-tab="appearance"], [data-sidebar-tab="assembly"]) > h3 { display: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside button { min-width: 0; min-height: 32px; padding: 5px 7px; border-color: #d8e1ed; border-radius: 5px; background: #fff; color: #48617e; font-size: 13px; line-height: 20px; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside button:hover:not(:disabled) { border-color: #b1c8e2; background: #f0f5fc; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside button.active { border-color: #acc4e0; background: #e9f1fb; color: #285783; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside button.window-primary-action { border-color: #3569a0; background: #3569a0; color: #fff; font-weight: 650; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside button.window-primary-action:hover:not(:disabled) { border-color: #2a5889; background: #2a5889; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside button.warn { border-color: #eadcd8; background: #fff; color: #a76a5d; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside button.warn:hover:not(:disabled) { background: #fcf2ef; border-color: #d8ada0; color: #9c4934; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside :is(input[type=number], input[type=text], select) { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid #d8e3ef; border-radius: 5px; background: #f9fbfe; color: #344b65; font-size: 13px; font-variant-numeric: tabular-nums; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row input[type=number][style] { width: 100% !important; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside input[type=range] { min-width: 0; min-height: 30px; accent-color: #3569a0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside :is(input, select):focus { border-color: #79a0ca; box-shadow: 0 0 0 2px #739ecb1a; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) :is(button, summary, select):focus-visible { outline: 2px solid #6c99c8; outline-offset: 2px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; margin-bottom: 8px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row:has(> label:nth-of-type(2)) { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row:has(> span) { grid-template-columns: auto minmax(0, 1fr) auto; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row > label { min-width: 0; color: #6c7f94; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row > span { color: #8291a5; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row > button { grid-column: 1 / -1; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row.window-join-angle-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-join-angle-inputs { display: grid; grid-template-columns: 88px minmax(0, 1fr) 12px; gap: 6px; align-items: center; min-width: 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #balconyNewTurnDirection { padding-left: 7px; padding-right: 18px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-join-angle-error { color: #b54837; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #balconyNewTurn[aria-invalid="true"] { border-color: #ce7164; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row:has(> #inN) { grid-template-columns: auto minmax(0, 1fr); }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row:has(> #inN) > button { grid-column: auto; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .row.window-equal-controls:has(> #inN) { grid-template-columns: 26px 42px minmax(0, 1fr) minmax(0, 1fr); }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-equal-controls > button { padding-left: 3px; padding-right: 3px; font-size: 12px; white-space: nowrap; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #windowSizeFields { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 7px 5px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #windowSizeFields > .row { display: contents; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #windowSizeFields input { text-align: right; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #windowSizeFields label { color: #6c7f94; min-width: 0; font-size: 12px; white-space: nowrap; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside :is(.modes, .screen-options, .direct-actions, .notch-actions) { gap: 6px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .modes button { padding-left: 3px; padding-right: 3px; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .modes button .ic { width: 14px; height: 14px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .screen-options button { padding-left: 3px; padding-right: 3px; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside :is(.direct-card, .notch-row) { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .direct-title { margin-bottom: 10px; padding-bottom: 8px; color: #496681; border-color: var(--window-line); font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .notch-row { grid-template-columns: 56px minmax(0, 1fr) 10px minmax(0, 1fr); gap: 5px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .notch-row label { min-height: 32px; color: #6c7f94; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .notch-row input[type=checkbox] { width: 15px; height: 15px; accent-color: #3569a0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .preset-edit { grid-template-columns: minmax(0, 1fr) auto; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .preset-edit > input { grid-column: 1 / -1; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #handleAdjustPanel .row,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #translateSafetyGuardBarGapRow { grid-template-columns: minmax(0, 1fr) 66px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #handleAdjustPanel .row > label,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #translateSafetyGuardBarGapRow > label { grid-column: 1 / -1; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #handleAdjustPanel .row > input,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #translateSafetyGuardBarGapRow > input { width: 100%; min-width: 0; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .hint,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .attach-tip,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .arch-info { margin: 7px 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #77889d; font-size: 12px; line-height: 1.65; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .hint::before { content: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-context-note { margin: 7px 0 10px; padding: 0; color: #6c7f94; font-size: 12px; line-height: 1.5; background: transparent; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details { margin-top: 12px; padding-top: 1px; border: 0; border-top: 1px solid var(--window-line); background: transparent; border-radius: 0; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 39px; padding: 8px 0; color: #5c718b; font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details > summary::-webkit-details-marker { display: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details > summary::before { display: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details > summary::after { content: "›"; color: #879db5; font-size: 19px; line-height: 18px; transform: rotate(90deg); }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details[open] > summary::after { transform: rotate(-90deg); }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details > summary small { margin-left: auto; color: #8796ab; font-size: 12px; font-weight: 400; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details-body { padding: 1px 0 6px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .window-workbench-details > .hint { margin: 0 0 9px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .palette button { min-height: 86px; padding: 7px 3px; gap: 5px; overflow: hidden; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .palette button svg { width: 100%; max-width: 80px; height: 48px; flex: 0 0 48px; object-fit: contain; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .palette button span { max-width: 100%; font-size: 12px; line-height: 18px; white-space: normal; overflow-wrap: anywhere; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside [hidden] { display: none !important; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #stage { min-height: 0; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails { position: absolute; top: 10px; left: 10px; z-index: 12; width: max-content; max-width: min(320px, calc(100% - 20px)); border: 1px solid #d7e2ee; border-radius: 6px; background: #ffffffed; color: #637891; box-shadow: 0 2px 6px #263f5b0a; font-size: 12px; pointer-events: auto; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 4px 9px; list-style: none; cursor: pointer; line-height: 20px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails > summary::-webkit-details-marker { display: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails > summary::after { content: "▾"; font-size: 10px; color: #7b91aa; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails[open] > summary::after { transform: rotate(180deg); }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails #projectStats { position: static; top: auto; left: auto; right: auto; bottom: auto; width: auto; max-width: none; padding: 0 9px 9px; color: #637891; font-size: 11.5px; line-height: 1.55; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; text-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails[hidden],
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails [hidden],
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode).presenting #windowStatsDetails { display: none !important; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .brand-signature { color: #73849a; font-size: 11px; font-weight: 400; letter-spacing: .7px; opacity: .65; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .opening-quick-bar { padding: 4px; gap: 3px; border-color: #d7e2ee; border-radius: 6px; background: #ffffffed; box-shadow: 0 2px 6px #263f5b0a; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .opening-quick-bar button { min-height: 32px; border-color: #d8e1ed; background: #fff; color: #48617e; box-shadow: none; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .opening-quick-bar button.active { background: #e9f1fb; border-color: #acc4e0; color: #285783; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode):has(#windowAside:not(.workbench-collapsed)[data-active-panel="opening"]) .opening-quick-bar { display: none !important; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .house-viewport-actions { padding: 4px; gap: 5px; border-color: #d7e2ee; border-radius: 6px; background: #ffffffed; box-shadow: 0 2px 6px #263f5b0a; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .house-viewport-actions button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #dimEditor #dimEditorOk,
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .pwa-update-ready {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #dimEditor #dimEditorOk:hover {
  background: var(--accent-700);
  border-color: var(--accent-700);
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseViewportApplyWindowEdit {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px #3569a024;
}
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) footer { flex: 0 0 auto; min-height: 30px; align-items: center; gap: 14px; padding: 5px 12px; overflow: hidden; background: #fff; border-color: var(--window-line); box-shadow: none; font-size: 12px; line-height: 18px; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) footer > span:first-child { flex: 0 0 auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) footer #statMsg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.window-workbench-ready:not(.house-mode):not(.sunroom-mode).presenting #windowAside { display: none !important; }

@media (min-width: 761px) and (max-width: 1100px) {
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) { --window-workbench-width: 282px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header { padding: 6px 8px; gap: 6px; flex-wrap: wrap; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header h1.brand-logo { width: 105px; flex-basis: 105px; height: 32px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-main { flex: 1 1 auto; gap: 5px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary { flex: 1 1 auto; justify-content: flex-end; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs button,
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button { padding-left: 6px; padding-right: 6px; font-size: 12px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditLabel,
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditLabel { max-width: 110px; }
}
@media (max-width: 760px) {
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header { display: grid; grid-template-columns: 100px minmax(0, 1fr) 66px; grid-auto-rows: auto; min-height: 0; padding: 5px 8px; gap: 4px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header h1.brand-logo { grid-column: 1; grid-row: 1; width: 78px; height: 30px; padding: 2px 0; margin: 0; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-main { display: contents; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs { grid-column: 2; grid-row: 1; min-width: 0; padding: 2px; gap: 1px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #appModeTabs button { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 4px 2px; font-size: 11px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .toolbar-history { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 2px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs { grid-column: 1; grid-row: 2; min-width: 0; padding: 2px; gap: 2px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button { flex: 1 1 0; min-height: 32px; padding: 4px 3px; font-size: 0; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button::after { font-size: 12px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button[data-scheme="0"]::after { content: "A"; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button[data-scheme="1"]::after { content: "B"; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #schemeTabs button[data-scheme="2"]::after { content: "C"; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary { grid-column: 2 / -1; grid-row: 2; min-width: 0; width: auto; margin: 0; gap: 3px; justify-content: flex-end; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > .toolbar-menu > summary { min-height: 32px; padding: 4px 6px; gap: 3px; font-size: 12px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > .toolbar-menu > summary > .ic { display: none; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #btnPresent { min-height: 32px; width: 32px; min-width: 32px; padding: 5px; font-size: 0; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #btnPresent .ic { width: 17px; height: 17px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditBar,
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditBar { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditLabel,
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditLabel { flex: 1; max-width: none; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #houseWindowEditBar > button,
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #sunroomWindowEditBar > button { font-size: 12px; padding: 4px 7px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) main { flex: 1 1 0; flex-direction: column; overflow: hidden; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #stage { flex: 1 1 0; order: 1; min-height: 0; width: 100%; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside { order: 2; flex: 0 0 min(42dvh, 350px); grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr); width: 100%; max-height: 42dvh; border: 0; border-top: 1px solid var(--window-line); }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside.workbench-collapsed { flex-basis: 44px; width: 100%; max-height: 44px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 36px; gap: 3px; padding: 4px 7px; overflow: hidden; border: 0; border-bottom: 1px solid var(--window-line); }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs button { flex-direction: row; gap: 4px; min-height: 36px; padding: 3px 0; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs button .ic { width: 16px; height: 16px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .window-workbench-heading { min-height: 45px; padding: 6px 12px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowContextEyebrow { display: none; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowContextTitle { font-size: 14px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowWorkbenchContent { padding: 10px 12px 16px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside :is(input[type=number], input[type=text], select) { min-height: 34px; font-size: 14px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside .palette button { min-height: 80px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowStatsDetails #projectStats { font-size: 11px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) footer { min-height: 28px; padding: 4px 8px; gap: 8px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) footer > span:first-child { max-width: 33%; }
}
@media (max-width: 380px) {
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header { grid-template-columns: 82px minmax(0, 1fr) 66px; padding-left: 6px; padding-right: 6px; gap: 4px 2px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) header h1.brand-logo { width: 68px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary { gap: 1px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) .topbar-secondary > .toolbar-menu > summary { padding-left: 4px; padding-right: 4px; font-size: 11px; }
  body.window-workbench-ready:not(.house-mode):not(.sunroom-mode) #windowAside #sidebarTabs button { gap: 3px; }
}
