@font-face {
  font-family: Manrope;
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #303b36;
  --muted: #8b9086;
  --paper: #f7f6f2;
  --line: #e8e9e1;
  --accent: #8c6b4e;
  --sage: #7d8f78;
  --rail: 72px;
  --library: 230px;
  --inspector: 248px;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
button svg {
  flex: none;
}
input:focus,
select:focus {
  outline: 1px solid #ab927b;
  outline-offset: 1px;
}
button[hidden],
[hidden] {
  display: none !important;
}
svg {
  display: block;
}
#studio-app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.project-source {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 26px;
  background: #fff6e7;
  border-bottom: 1px solid #ebd8b7;
  color: #192641;
}
.project-source > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.project-source strong {
  font-size: 16px;
}
.project-source small {
  font-size: 14px;
  color: #697280;
}
.source-eyebrow {
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 750;
  color: #a46b1b;
}
.source-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.source-actions a {
  font-size: 14px;
  color: #253b61;
  text-decoration: none;
}
.source-actions button {
  white-space: nowrap;
  font-size: 14px;
}
.estimate-source {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #fff4df;
  border-radius: 12px;
  margin: 16px 0;
}
.estimate-source span,
.estimate-source small {
  font-size: 14px;
  color: #647084;
}
@media (max-width: 900px) {
  .project-source {
    padding: 10px 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .source-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .project-source .primary-button {
    padding: 8px 12px;
  }
  .source-actions a {
    display: none;
  }
}
.studio-header {
  height: 82px;
  flex: none;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  min-width: 228px;
}
.brand-symbol {
  width: 40px;
  height: 44px;
  border: 1px solid #9b8977;
  border-radius: 12px 12px 3px 3px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.brand-symbol svg {
  width: 28px;
  height: 28px;
}
.brand b {
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 750;
}
.brand small {
  display: block;
  font-size: 14px;
  letter-spacing: 2.6px;
  color: #898577;
  margin-top: 2px;
}
.header-divider {
  height: 30px;
  width: 1px;
  background: var(--line);
}
.project-title {
  min-width: 160px;
  flex: 1;
}
.project-title input {
  display: block;
  width: 100%;
  max-width: 390px;
  border: 0;
  padding: 0;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-overflow: ellipsis;
}
.project-title input:focus {
  outline: none;
  border-bottom: 1px solid var(--accent);
}
#save-status {
  font-size: 14px;
  color: #8b9287;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}
i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8c9f81;
}
.local-badge {
  padding: 5px 9px;
  color: #988d7d;
  border: 1px solid #e9e4db;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.quiet-button,
.primary-button {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.quiet-button {
  color: #697367;
  background: transparent;
}
.quiet-button:hover {
  background: #efefe8;
}
.primary-button {
  background: #867058;
  color: #fff;
  border-color: #867058;
  box-shadow: 0 3px 8px #7b644414;
}
.primary-button:hover {
  background: #715b46;
}
.primary-button svg,
.quiet-button svg {
  width: 17px;
  height: 17px;
}
.studio-body {
  display: flex;
  min-height: 0;
  flex: 1;
}
.rail {
  width: var(--rail);
  background: #fff;
  flex: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 24px 7px 18px;
  border-right: 1px solid var(--line);
  gap: 12px;
}
.rail-button {
  width: 57px;
  min-height: 61px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  color: #959b91;
}
.rail-button svg {
  width: 23px;
  height: 23px;
}
.rail-button small {
  font-size: 14px;
}
.rail-button:hover {
  background: #f8f7f2;
  color: #69715f;
}
.rail-button.active {
  background: #eeefe6;
  color: #748364;
}
.rail-spacer {
  flex: 1;
}
.rail-monogram {
  border: 1px solid #e8e5dc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
  display: grid;
  place-items: center;
  color: #7c806f;
  background: #f7f7f1;
  margin-top: 6px;
}
.library {
  width: var(--library);
  flex: none;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.library-heading {
  padding: 30px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: #9b9f93;
}
.library h1 {
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 600;
  margin: 7px 0 0;
}
.library-note {
  margin: 16px 20px 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  color: #a0a18e;
}
.library-note svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.library-note p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.library-note b {
  font-weight: 400;
  color: #8a8e80;
}
#library-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0 18px;
  scrollbar-width: thin;
  scrollbar-color: #e1e1d7 transparent;
}
.search-field {
  display: flex;
  align-items: center;
  background: #f7f7f3;
  border: 1px solid #edeee7;
  border-radius: 7px;
  padding: 9px 10px;
  gap: 8px;
}
.search-field svg {
  width: 15px;
  height: 15px;
  color: #9a9f93;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: #626c60;
  outline: none;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 17px 0 20px;
}
.category-list button {
  padding: 6px 9px;
  color: #969b90;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.category-list button.active {
  background: #edf0e7;
  color: #6f7e64;
  border-color: #e6e9dc;
}
.category-list button:hover {
  background: #f3f4ed;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  letter-spacing: 1.1px;
  color: #939b8a;
  margin-bottom: 12px;
}
.catalog-heading span:last-child {
  letter-spacing: 0;
  font-size: 14px;
  color: #b0b5a8;
}
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.catalog-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  padding: 0 0 9px;
  border: 1px solid #eeeee7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.catalog-card:hover {
  border-color: #b5bea4;
  box-shadow: 0 4px 12px #68734910;
}
.catalog-thumb {
  height: 88px;
  width: 100%;
  background: #f6f5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  position: relative;
}
.catalog-thumb svg {
  max-height: 63px;
  width: 100%;
  filter: drop-shadow(0 3px 2px #867b6621);
  transform: rotate(-8deg);
}
.catalog-card .add-badge {
  position: absolute;
  right: 5px;
  top: 5px;
  background: #fff;
  color: #8c987c;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  opacity: 0;
}
.catalog-card:hover .add-badge {
  opacity: 1;
}
.catalog-name {
  font-size: 14px;
  color: #626f5f;
  padding: 8px 8px 2px;
  font-weight: 600;
  line-height: 1.35;
}
.catalog-size {
  font-size: 14px;
  color: #a5aa9d;
  padding: 0 8px;
}
.catalog-empty {
  grid-column: 1/-1;
  font-size: 14px;
  color: #8b9484;
  padding: 20px 4px;
}
.build-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.build-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ebece4;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: left;
  background: #fafaf7;
  color: #7e8972;
}
.build-card:hover {
  background: #ecefe4;
}
.build-card b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #53604d;
}
.build-card small {
  display: block;
  font-size: 14px;
  color: #9aa18f;
  margin-top: 4px;
}
.panel-paragraph {
  font-size: 14px;
  line-height: 1.8;
  color: #8d9687;
  margin: 17px 2px;
}
.panel-section-label {
  margin: 23px 0 12px;
  font-size: 14px;
  color: #99a08f;
  letter-spacing: 1.1px;
}
.project-action {
  width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
  margin-bottom: 9px;
  justify-content: flex-start;
  background: #f6f6f0;
  border: 1px solid var(--line);
  padding: 13px;
}
.project-action svg {
  flex-shrink: 0;
}
.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.workspace-toolbar {
  height: 66px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  gap: 8px;
  background: #fdfdfa;
  border-bottom: 1px solid var(--line);
}
.dimension-visibility {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}
.dimension-visibility label { display: flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; }
.dimension-visibility input { width: 16px; height: 16px; margin: 0; accent-color: #de921c; cursor: pointer; }
.hide-openings-dimensions #plan-svg [data-layer="window-dimensions"],
.hide-openings-dimensions #plan-svg [data-window-dimensions],
.hide-rooms-dimensions #plan-svg [data-room-edge-length] { display: none; }
.view-3d .dimension-visibility { display: none; }
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 5px;
}
.floor-switch {
  display: flex;
  background: #eeefe8;
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}
.floor-switch button {
  padding: 7px 11px;
  color: #9aa18e;
  font-size: 14px;
  border-radius: 4px;
}
.floor-switch button.active {
  background: white;
  color: #68785b;
  box-shadow: 0 1px 3px #00000008;
}
.tool-divider {
  width: 1px;
  background: var(--line);
  height: 20px;
  margin: 0 10px;
}
.icon-button {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #8b9581;
  flex: none;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.icon-button:hover {
  background: #eaece1;
}
.icon-button.active {
  color: #60724e;
  background: #e7eadc;
}
.view-switch {
  display: flex;
  border: 1px solid #e1e5d7;
  border-radius: 7px;
  padding: 3px;
  background: #f0f2e9;
}
.view-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  color: #919b84;
}
.view-switch svg {
  width: 15px;
  height: 15px;
}
.view-switch button.active {
  background: #fff;
  box-shadow: 0 1px 4px #00000009;
  color: #5d6b51;
}
.toolbar-fit {
  font-size: 14px;
  padding: 8px;
}
.canvas-area {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f7f7f2;
}
.canvas-caption {
  position: absolute;
  top: 24px;
  left: 29px;
  z-index: 4;
  pointer-events: none;
}
.canvas-caption h2 {
  font-family: Manrope, sans-serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.6px;
  margin: 6px 0 0;
  color: #5d6857;
}
.canvas-caption .eyebrow {
  font-size: 14px;
}
.drawing-tools {
  position: absolute;
  top: 25px;
  right: calc(var(--inspector) + 23px);
  z-index: 5;
  display: flex;
  background: #fff;
  border: 1px solid #e4e7db;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 12px #586b4910;
}
.drawing-tools .icon-button {
  width: 30px;
  height: 30px;
}
.drawing-tools svg {
  width: 16px;
  height: 16px;
}
#tool-options {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: #63748b;
}
.tool-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-fields label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.workspace-toolbar > .toolbar-left,
.workspace-toolbar > .view-switch {
  flex-shrink: 0;
}
@media (max-width: 1480px) {
  .workspace-toolbar:has(#tool-options:not([hidden])) {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .workspace-toolbar #tool-options {
    order: 4;
    flex-basis: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 8px 0 0;
  }
}
#tool-options select {
  padding: 3px 5px;
  margin: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
#tool-options p {
  margin: 4px 0;
  font-size: 14px;
}
#tool-options .quiet-button {
  padding: 3px 7px;
  min-height: 24px;
  font-size: 14px;
  background: #fff4e4;
}
.canvas-bottom {
  position: absolute;
  left: 26px;
  right: calc(var(--inspector) + 22px);
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
  gap: 12px;
}
.canvas-hint {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #9aa38e;
  font-size: 14px;
  max-width: 72%;
}
.canvas-hint svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.zoom-control {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e4e7da;
  border-radius: 6px;
  box-shadow: 0 3px 10px #66734d06;
  pointer-events: auto;
}
.zoom-control button {
  font-size: 15px;
  padding: 7px 11px;
  color: #7d8a6e;
}
.zoom-control button:nth-child(2) {
  font-size: 14px;
  min-width: 46px;
  border-left: 1px solid #eeefe7;
  border-right: 1px solid #eeefe7;
}
.zoom-control button:hover {
  background: #ecefe4;
}
.north-indicator {
  position: absolute;
  left: 28px;
  bottom: 63px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  color: #929c87;
  font-size: 14px;
}
.north-indicator svg {
  width: 17px;
  height: 24px;
  margin-top: 4px;
}
.status-bar {
  height: 34px;
  border-top: 1px solid #e4e7da;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  background: #fbfcf7;
  font-size: 14px;
  color: #9aa38e;
}
.status-bar > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.status-right {
  margin-left: auto;
  color: #afb5a6;
}
.status-right span {
  font-weight: 600;
  letter-spacing: 1px;
  margin-left: 10px;
  font-size: 14px;
}
#root {
  position: absolute;
  inset: 90px 0 63px;
  min-height: 0;
}
#root > div {
  height: 100% !important;
  overflow: visible !important;
  font-family: Manrope, "Segoe UI", sans-serif !important;
}
#root > div > div:first-child {
  max-width: none !important;
  position: relative;
}
#root > div > div:first-child > div:nth-child(-n + 3),
#root > div > div:first-child > div:nth-child(5) {
  display: none !important;
}
#root > div > div:first-child > div:nth-child(4) {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  gap: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden;
}
#plan-viewport {
  margin-right: var(--inspector);
  background: #f7f7f2 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  scrollbar-width: none;
}
#plan-viewport::-webkit-scrollbar {
  display: none;
}
#plan-svg {
  background: #f7f7f2;
}
#plan-svg > rect:first-of-type {
  fill: #f7f7f2;
}
#plan-svg text {
  font-family: Manrope, "Segoe UI", sans-serif !important;
}
#plan-svg > g[data-layer="furniture"] {
  filter: drop-shadow(0 1px 1px #6b624814);
}
.legacy-inspector {
  display: none !important;
  position: absolute;
  top: 10px;
  right: 0;
  width: var(--inspector) !important;
  bottom: 0;
  z-index: 7;
  padding: 15px;
  gap: 10px !important;
  font-size: 14px;
  background: #fff;
}
.native-selection .legacy-inspector {
  display: flex !important;
}
.legacy-inspector > div {
  font-size: 14px;
  border-color: #e9eade !important;
  box-shadow: none !important;
  border-radius: 7px !important;
}
.legacy-inspector > div:last-child {
  display: none;
}
.legacy-inspector input,
.legacy-inspector select {
  min-width: 0;
  font-size: 14px;
}
.legacy-inspector button {
  font-size: 14px;
}
.legacy-inspector [class*="text-sm"] {
  font-size: 14px;
}
.native-selection #inspector {
  padding-bottom: 0;
}
.native-selection #inspector .summary-content {
  display: none;
}
.inspector {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--inspector);
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 25px 22px;
  overflow: auto;
  z-index: 6;
  scrollbar-width: thin;
  scrollbar-color: #e4e7db transparent;
}
.inspector-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.inspector-heading h3 {
  font-size: 14px;
  font-weight: 600;
  color: #738168;
  margin: 0;
}
.inspector-heading > span {
  font-size: 14px;
  color: #b0b7a6;
  letter-spacing: 1px;
}
.inspector-preview {
  height: 133px;
  background: #f4f4ed;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 9px;
  padding: 20px;
  margin-bottom: 18px;
}
.inspector-preview svg {
  max-height: 95px;
  max-width: 130px;
  filter: drop-shadow(2px 5px 2px #70634a26);
  transform: rotate(-7deg);
}
.inspector-name {
  font-size: 18px;
  color: #5e6d54;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  font-weight: 600;
}
.object-label {
  font-size: 14px;
  letter-spacing: 1.4px;
  color: #a5ad98;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.inspector-field {
  display: block;
  font-size: 14px;
  color: #8f9c7f;
  margin-bottom: 13px;
}
.inspector-field > span {
  display: block;
  margin-bottom: 7px;
}
.inspector-field input,
.inspector-field select {
  border: 1px solid #e4e8da;
  border-radius: 5px;
  background: #fafbf6;
  color: #6d7c5e;
  padding: 9px 10px;
  width: 100%;
  font-size: 14px;
}
.inspector-field .input-unit {
  position: relative;
}
.input-unit:after {
  content: attr(data-unit);
  position: absolute;
  right: 10px;
  top: 11px;
  font-size: 14px;
  color: #aab29d;
}
.input-unit input {
  padding-right: 29px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-range {
  font-size: 14px;
  color: #a7b098;
  margin-top: 4px;
  line-height: 1.4;
}
.inspector-subtitle {
  border-top: 1px solid #edf0e3;
  margin: 17px 0 13px;
  padding-top: 16px;
  font-size: 14px;
  letter-spacing: 1.2px;
  color: #9ba68c;
}
.swatches {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #e4e7d9;
}
.swatch.active {
  box-shadow: 0 0 0 1.5px #a2ab92;
}
.swatches input[type="color"] {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: none;
}
.inspector-actions {
  display: flex;
  gap: 8px;
  margin-top: 19px;
}
.inspector-actions button {
  flex: 1;
  border: 1px solid #e7ebdc;
  font-size: 14px;
  padding: 9px 7px;
}
.delete-button {
  color: #ae8f77;
}
.inspector-tip {
  font-size: 14px;
  line-height: 1.7;
  color: #a2ac93;
  margin-top: 18px;
}
.room-total {
  padding: 20px 0;
  border-top: 1px solid #eef0e5;
  border-bottom: 1px solid #eef0e5;
  margin-bottom: 22px;
}
.room-total strong {
  font-family: Manrope, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: #6d7d5b;
  letter-spacing: -1px;
}
.room-total strong span {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  color: #a1ae90;
  margin-left: 4px;
}
.room-total p {
  font-size: 14px;
  margin-top: 8px;
  color: #a9b398;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #8b9b79;
}
.summary-row span:last-child {
  color: #a5b295;
  white-space: nowrap;
}
.summary-tip {
  margin-top: 30px;
  background: #f4f6ec;
  border: 1px solid #edf0e1;
  border-radius: 9px;
  padding: 15px 13px;
}
.summary-tip svg {
  color: #adb899;
  width: 21px;
  height: 21px;
}
.summary-tip h4 {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #7a8d62;
  line-height: 1.5;
  margin: 10px 0 7px;
}
.summary-tip p {
  font-size: 14px;
  line-height: 1.8;
  color: #a0ad8d;
}
.summary-tip button {
  font-size: 14px;
  margin-top: 13px;
  color: #84946e;
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-tip button svg {
  width: 16px;
  height: 16px;
}
.selection-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.selection-list button {
  font-size: 14px;
  color: #81906f;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  text-align: left;
  border-bottom: 1px solid #f2f4eb;
}
.selection-list button:hover {
  color: #806950;
}
.selection-list span {
  color: #b0b89f;
}
.warning-note {
  font-size: 14px;
  color: #a27c53;
  background: #faf5e9;
  padding: 10px;
  border-radius: 6px;
  margin-top: 12px;
  line-height: 1.6;
}
#scene-host {
  position: absolute;
  inset: 0 var(--inspector) 0 0;
  background: #f1f1e9;
  z-index: 2;
}
#scene-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.view-3d .drawing-tools,
.view-3d #tool-options,
.view-3d .north-indicator {
  display: none !important;
}
.view-3d .canvas-caption {
  z-index: 4;
}
.view-3d #root {
  visibility: hidden;
}
.view-3d .legacy-inspector {
  visibility: hidden;
}
#scene-options {
  position: absolute;
  top: 27px;
  right: calc(var(--inspector) + 20px);
  z-index: 5;
  display: flex;
  gap: 5px;
}
#scene-options button {
  background: #ffffffc7;
  border: 1px solid #dfe4d2;
  font-size: 14px;
  padding: 8px;
}
.scene-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 15px;
  color: #7e8a6c;
  font-size: 15px;
  padding: 45px;
  text-align: center;
}
dialog {
  border: 1px solid #e2e5d7;
  border-radius: 16px;
  box-shadow: 0 25px 80px #25301b30;
  background: #fff;
  color: var(--ink);
  padding: 0;
  width: 460px;
  max-width: calc(100vw - 30px);
  max-height: 85vh;
  overflow: auto;
}
.auto-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 12px;
  margin-bottom: 18px;
  border: 1px solid #edc98e;
  border-radius: 12px;
  background: linear-gradient(120deg, #fff6e5, #fffdf7);
  color: #263957;
  text-align: left;
}
.auto-launch > svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #ca861d;
}
.auto-launch > svg:last-child {
  width: 16px;
  margin-left: auto;
}
.auto-launch b {
  display: block;
  font-size: 14px;
}
.auto-launch small {
  display: block;
  margin-top: 4px;
  color: #788391;
  font-size: 14px;
}
dialog.auto-layout-dialog {
  width: 1180px;
  max-width: calc(100vw - 28px);
  max-height: 92vh;
}
.auto-layout-dialog .modal-inner {
  padding: 26px 30px;
}
.auto-layout-dialog h3 {
  margin: 6px 0;
  color: #1c2b49;
  font-size: 25px;
  font-weight: 650;
}
.auto-layout-dialog h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #263957;
}
.auto-layout-dialog p {
  color: #6b7889;
  font-size: 14px;
  line-height: 1.65;
}
.auto-eyebrow {
  color: #b5781a;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 1.7px;
}
.auto-intro {
  padding: 5px 0 20px;
}
.auto-settings {
  display: grid;
  grid-template-columns: 1fr 275px;
  gap: 26px;
}
.auto-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.auto-room {
  padding: 12px;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
}
.auto-room > label > span {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 9px;
  font-weight: 650;
}
.auto-room > label {
  display: block;
}
.auto-room [hidden] {
  display: none;
}
.auto-bath-choice {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9e7df;
}
.auto-bath-choice > span {
  color: #7c643d;
}
.auto-utility-note {
  font-size: 14px;
  line-height: 1.6;
  color: #68768a;
  margin: 10px 0 0;
}
.auto-variant-warning {
  display: block;
  color: #a45c13;
  font-weight: 650;
  margin-bottom: 7px;
}
.auto-room small {
  color: #83909f;
  white-space: nowrap;
  font-weight: 400;
}
.auto-room select {
  width: 100%;
  background: #f5f7fa;
  padding: 9px;
  border-radius: 6px;
  border: 1px solid #e0e5ec;
  color: #263957;
  font: inherit;
  font-size: 14px;
}
.auto-settings-aside {
  padding: 20px;
  border-radius: 12px;
  background: #f3f5f8;
  align-self: start;
}
.auto-settings-aside label {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  margin: 16px 0;
  cursor: pointer;
}
.auto-settings-aside input {
  align-self: flex-start;
  margin-top: 4px;
  accent-color: #d98c16;
}
.auto-beta {
  font-size: 14px;
  color: #8e6f3c;
  border: 1px solid #dcccad;
  border-radius: 20px;
  padding: 5px 9px;
  display: inline-block;
  margin-top: 12px;
}
.auto-brief label {
  display: block;
  margin: 12px 0;
}
.auto-brief select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 6px;
  border: 1px solid #d7dfeb;
  border-radius: 6px;
  background: white;
  color: #263957;
  font: inherit;
  font-size: 14px;
}
.auto-options-title {
  margin-top: 22px !important;
}
.auto-variant-facts,
.auto-variant-difference {
  display: block;
  margin-top: 5px;
}
.auto-variant-facts {
  color: #344c68;
}
.auto-variant-difference {
  font-size: 14px;
}
.auto-card-number {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 450;
  color: #83909e;
}
.auto-conditions {
  color: #476459 !important;
}
.auto-quality {
  display: grid;
  gap: 9px;
  margin: 16px 0 12px;
}
.auto-quality span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #51667d;
}
.auto-quality b {
  color: #203454;
}
.auto-quality meter {
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  display: block;
  margin-top: 5px;
  background: #e5eaf0;
  border-radius: 6px;
  overflow: hidden;
}
.auto-quality meter::-webkit-meter-bar {
  background: #e5eaf0;
  border: 0;
}
.auto-quality meter::-webkit-meter-optimum-value {
  background: #599c8a;
}
.auto-access-count {
  margin: 12px 0 6px;
}
.auto-route-key {
  color: #268471 !important;
}
.auto-preview-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
}
.auto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  border-top: 1px solid #e5e8ef;
  padding-top: 18px;
}
.auto-footer > span {
  font-size: 14px;
  color: #6b7889;
}
.auto-footer > p {
  max-width: 600px;
}
.auto-footer button {
  flex-shrink: 0;
}
.auto-loading {
  padding: 75px 20px;
  text-align: center;
}
.auto-spinner {
  display: inline-block;
  width: 29px;
  height: 29px;
  border: 3px solid #eee5d6;
  border-top-color: #dc921f;
  border-radius: 50%;
  animation: auto-spin 0.9s linear infinite;
}
@keyframes auto-spin {
  to {
    transform: rotate(360deg);
  }
}
.auto-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auto-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.auto-variant {
  padding: 13px;
  background: #f6f7f8;
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: left;
  color: #203454;
}
.auto-variant.active {
  border-color: #df982b;
  background: #fff8eb;
}
.auto-variant-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.auto-variant-top > span {
  font-size: 22px;
  font-weight: 700;
}
.auto-variant-top small {
  font-size: 14px;
  color: #82909e;
  font-weight: 450;
}
.auto-plan {
  width: 100%;
  height: 100%;
  display: block;
}
.auto-variant .auto-plan {
  height: 190px;
  margin: 14px 0;
}
.auto-variant-bottom {
  font-size: 14px;
  color: #6d7a8b;
}
.auto-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}
.auto-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.auto-preview-toolbar h4 {
  margin: 0;
}
.auto-preview-toolbar .quiet-button {
  padding: 8px 13px;
  font-size: 14px;
}
.auto-preview-toolbar .active {
  background: #fff0d4;
  color: #8d5c12;
}
#auto-preview {
  height: 430px;
  border-radius: 12px;
  background: #eef0f1;
  padding: 10px;
  overflow: hidden;
  position: relative;
}
#auto-preview > canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.auto-benefits {
  padding-left: 18px;
  font-size: 14px;
  line-height: 2;
  color: #49614e;
}
.auto-room-report {
  margin-top: 16px;
  padding: 12px;
  background: #f6f7f8;
  border-radius: 10px;
  font-size: 14px;
}
.auto-room-report summary {
  cursor: pointer;
}
.auto-design-report {
  max-height: 340px;
  overflow: auto;
  background: #f5f1e7;
}
.auto-design-report ul {
  padding-left: 16px;
  line-height: 1.65;
  margin-bottom: 0;
}
.auto-room-report > div {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e3e7ed;
}
.auto-notice {
  background: #fff1dc;
  color: #826127 !important;
  border-radius: 8px;
  padding: 10px 13px;
}
.auto-fineprint {
  font-size: 14px !important;
  margin-top: 16px !important;
}
@media (max-width: 850px) {
  .auto-settings,
  .auto-detail {
    grid-template-columns: 1fr;
  }
  .auto-settings-aside {
    margin-top: 8px;
  }
  .auto-variant .auto-plan {
    height: 130px;
  }
  .auto-layout-dialog .modal-inner {
    padding: 20px 15px;
  }
}
@media (max-width: 560px) {
  .auto-room-grid {
    grid-template-columns: 1fr;
  }
  .auto-variants {
    grid-template-columns: 1fr;
  }
  .auto-variant .auto-plan {
    height: 180px;
  }
  .auto-results-head,
  .auto-footer {
    align-items: stretch;
    flex-direction: column;
  }
  #auto-preview {
    height: 310px;
  }
}
dialog::backdrop {
  background: #2e392446;
  backdrop-filter: blur(4px);
}
.modal-inner {
  padding: 29px;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.modal-heading h2 {
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0;
  color: #62764e;
}
.modal-inner p {
  font-size: 14px;
  line-height: 1.8;
  color: #939e85;
  margin: 10px 0;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 23px;
}
.export-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px;
  margin-bottom: 9px;
  background: #f6f7ef;
  border: 1px solid #e8edda;
  border-radius: 8px;
  color: #8d9c78;
}
.export-option:hover {
  background: #edf0e1;
}
.export-option b {
  display: block;
  font-size: 14px;
  color: #71875b;
}
.export-option small {
  display: block;
  font-size: 14px;
  color: #9eaf87;
  margin-top: 4px;
}
.export-option svg {
  width: 22px;
  height: 22px;
}
.help-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eff2e5;
  font-size: 14px;
  line-height: 1.7;
  color: #8d9f78;
}
.help-row b {
  font-size: 14px;
  color: #748b5d;
}
.help-row kbd {
  background: #f0f3e4;
  border: 1px solid #e6ebd5;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 14px;
}
.custom-preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f2;
  border-radius: 8px;
  margin: 15px 0;
}
.custom-preview svg {
  height: 75px;
  width: 100px;
}
#toast {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #556849;
  color: white;
  border: 1px solid #829469;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 8px 25px #394e2130;
  transition: 0.2s;
  z-index: 200;
  max-width: calc(100vw - 40px);
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-close,
.mobile-library {
  display: none;
}
@media (min-width: 1650px) {
  :root {
    --library: 278px;
    --inspector: 274px;
  }
  .catalog-thumb {
    height: 103px;
  }
  .catalog-thumb svg {
    max-height: 76px;
  }
  .library-heading {
    padding: 33px 27px 27px;
  }
  .library h1 {
    font-size: 22px;
  }
  .canvas-caption h2 {
    font-size: 28px;
  }
  .catalog-name {
    font-size: 14px;
  }
  .catalog-size {
    font-size: 14px;
  }
}
@media (max-width: 1300px) {
  :root {
    --library: 226px;
    --inspector: 220px;
    --rail: 64px;
  }
  .studio-header {
    gap: 17px;
    padding: 0 18px;
  }
  .brand {
    min-width: 210px;
  }
  .local-badge {
    display: none;
  }
  .inspector {
    padding: 23px 17px;
  }
  .drawing-tools {
    top: 68px;
    right: calc(var(--inspector) + 20px);
  }
  #root {
    top: 115px;
  }
  .canvas-caption h2 {
    font-size: 22px;
  }
  .library-heading {
    padding: 27px 18px 22px;
  }
  .library h1 {
    font-size: 18px;
  }
  .library-note {
    margin: 14px;
  }
  .workspace-toolbar {
    padding: 0 15px;
  }
  .toolbar-fit span:last-child {
    display: none;
  }
  .view-switch button {
    padding: 7px 11px;
  }
  .tool-divider {
    margin: 0 4px;
  }
  .canvas-hint {
    font-size: 14px;
  }
  .status-right {
    display: none;
  }
  .catalog-thumb {
    height: 79px;
    padding: 12px;
  }
  .catalog-thumb svg {
    max-height: 55px;
  }
}
@media (max-width: 1050px) {
  :root {
    --library: 220px;
    --inspector: 210px;
  }
  .library {
    display: none;
  }
  .library-open .library {
    display: flex;
    position: absolute;
    left: var(--rail);
    top: 82px;
    bottom: 0;
    z-index: 35;
    box-shadow: 12px 0 25px #66754320;
  }
  .mobile-library,
  .mobile-close {
    display: grid;
  }
  .brand {
    min-width: 190px;
  }
  .brand b {
    font-size: 18px;
  }
  .header-divider {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .canvas-caption h2 {
    font-size: 23px;
  }
  .drawing-tools {
    top: 28px;
  }
  .canvas-hint {
    max-width: 64%;
  }
  #root {
    top: 96px;
  }
  .library-note {
    display: none;
  }
}
@media (max-width: 720px) {
  :root {
    --rail: 0px;
    --inspector: 0px;
  }
  .studio-header {
    height: 66px;
    padding: 0 13px;
    gap: 10px;
  }
  .brand {
    min-width: auto;
  }
  .brand-symbol {
    width: 33px;
    height: 34px;
  }
  .brand-symbol svg {
    width: 22px;
    height: 22px;
  }
  .brand b {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .project-title {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .quiet-button {
    padding: 7px;
  }
  .header-actions .quiet-button > span:last-child {
    display: none;
  }
  .primary-button {
    font-size: 14px;
    padding: 9px;
  }
  .rail {
    display: none;
  }
  .workspace-toolbar {
    height: 58px;
    padding: 0 11px;
  }
  .toolbar-left {
    gap: 1px;
  }
  .floor-switch button {
    padding: 7px 8px;
    font-size: 14px;
  }
  .tool-divider {
    margin: 0 3px;
  }
  .toolbar-fit {
    display: none;
  }
  .view-switch button {
    padding: 7px 9px;
    font-size: 14px;
  }
  .view-switch svg {
    width: 12px;
    height: 12px;
  }
  .toolbar-left .icon-button {
    width: 29px;
  }
  .canvas-caption {
    left: 20px;
    top: 20px;
  }
  .canvas-caption h2 {
    font-size: 23px;
  }
  .drawing-tools {
    top: 84px;
    right: 19px;
    left: 19px;
    width: max-content;
  }
  .drawing-tools .icon-button {
    width: 36px;
    height: 33px;
  }
  #root {
    top: 145px;
    bottom: 60px;
  }
  #plan-viewport {
    margin-right: 0;
  }
  .inspector {
    display: none;
  }
  .has-item .inspector {
    display: block;
    top: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 230px;
    border-top: 1px solid #dee5cf;
    z-index: 20;
    padding: 13px 17px;
    box-shadow: 0 -6px 20px #55693613;
  }
  .has-item #root {
    bottom: 245px;
  }
  .has-item .canvas-bottom {
    bottom: 237px;
  }
  .has-item .north-indicator {
    display: none;
  }
  .has-item .inspector-heading {
    margin-bottom: 10px;
  }
  .has-item .inspector-preview {
    display: none;
  }
  .has-item .inspector-name {
    font-size: 15px;
    display: inline-block;
  }
  .has-item .object-label {
    display: none;
  }
  .has-item .field-grid {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    width: 60%;
    margin-right: 10px;
  }
  .has-item .inspector-field {
    margin: 8px 0;
    font-size: 14px;
  }
  .has-item .inspector-field input {
    padding: 7px;
    font-size: 14px;
  }
  .has-item .inspector > .inspector-field {
    display: none;
  }
  .has-item .inspector-subtitle,
  .has-item .inspector-tip,
  .has-item .field-range,
  .has-item .swatches {
    display: none;
  }
  .has-item .inspector-actions {
    position: absolute;
    right: 17px;
    bottom: 22px;
    width: calc(40% - 26px);
    flex-wrap: wrap;
    gap: 4px;
  }
  .has-item .inspector-actions button {
    padding: 5px;
    font-size: 14px;
  }
  .has-item .inspector-actions svg {
    width: 12px;
    height: 12px;
  }
  .has-item .inspector-actions button:last-child {
    display: none;
  }
  .native-selection .legacy-inspector {
    width: 100% !important;
    height: 200px;
    bottom: 0;
    top: auto;
    position: fixed;
    padding: 12px 20px;
  }
  .native-selection #root {
    bottom: 215px;
  }
  .native-selection .canvas-bottom {
    bottom: 207px;
  }
  .library-open .library {
    left: 0;
    top: 66px;
    bottom: 0;
    width: min(310px, 90vw);
  }
  .library-open .library-heading {
    padding: 24px;
  }
  .library-open .catalog-thumb {
    height: 100px;
  }
  .library-open .catalog-thumb svg {
    max-height: 78px;
  }
  .canvas-bottom {
    left: 16px;
    right: 16px;
    bottom: 18px;
    gap: 5px;
  }
  .canvas-hint {
    font-size: 14px;
  }
  .north-indicator {
    left: 19px;
  }
  .status-bar {
    font-size: 14px;
    padding: 0 13px;
    gap: 15px;
  }
  .inspector-heading h3 {
    font-size: 14px;
  }
  #scene-host {
    right: 0;
  }
  .has-item #scene-host {
    bottom: 230px;
  }
  #scene-options {
    top: 83px;
    left: 19px;
    right: auto;
  }
  .view-3d .canvas-caption {
    top: 20px;
  }
  #tool-options {
    max-width: none;
  }
  .canvas-caption .eyebrow {
    font-size: 14px;
  }
  .modal-inner {
    padding: 23px;
  }
}
#root {
  height: auto;
}
.mobile-panel-tabs {
  display: none;
}
.view-3d .canvas-caption {
  display: none;
}
.presentation {
  --inspector: 0px;
}
.presentation .library,
.presentation .rail,
.presentation .inspector,
.presentation .legacy-inspector {
  display: none !important;
}
.presentation .workspace-toolbar {
  padding: 0 30px;
}
.presentation #scene-options {
  right: 25px;
}
.presentation #focus-view {
  background: #e7eadc;
}
.presentation .canvas-hint {
  font-size: 14px;
}
.catalog-name {
  font-size: 14px;
  color: #596451;
}
.catalog-size {
  font-size: 14px;
  color: #878f7e;
}
.category-list button {
  font-size: 14px;
  color: #7e8872;
}
.summary-row {
  font-size: 14px;
  color: #737f63;
}
.summary-row span:last-child {
  color: #879676;
}
.inspector-field {
  font-size: 14px;
  color: #7e8e6b;
}
.object-label,
.inspector-subtitle {
  color: #8a9a76;
}
.panel-paragraph,
.inspector-tip {
  color: #849374;
}
.canvas-hint {
  color: #7f8b6e;
}
.project-title #save-status {
  color: #79836e;
}
.catalog-thumb {
  padding: 11px 15px;
}
.library-note p {
  color: #919980;
}
@media (max-width: 720px) {
  .mobile-panel-tabs {
    display: flex;
    gap: 5px;
    padding: 0 17px 18px;
    flex-wrap: wrap;
  }
  .mobile-panel-tabs button {
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 5px;
    color: #8d9b7b;
  }
  .mobile-panel-tabs button.active {
    background: #edf0e1;
    color: #72885b;
  }
  .drawing-tools {
    z-index: 8;
  }
  .has-item .canvas-hint {
    max-width: 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
@media (max-width: 720px) {
  .has-item .inspector {
    height: 280px;
  }
  .has-item #root {
    bottom: 295px;
  }
  .has-item .canvas-bottom {
    bottom: 287px;
  }
  .has-item #scene-host {
    bottom: 280px;
  }
  .has-item .inspector-name {
    display: block;
    margin-bottom: 14px;
  }
  .has-item .field-grid {
    display: grid;
    width: 100%;
    margin: 0;
    gap: 0 12px;
  }
  .has-item .inspector > .inspector-field {
    display: block;
  }
  .has-item .inspector-actions {
    position: static;
    width: 100%;
    margin-top: 14px;
    gap: 8px;
  }
  .has-item .inspector-actions button {
    font-size: 14px;
    padding: 8px;
  }
  .has-item .inspector-actions button:last-child {
    display: flex;
  }
  .has-item .inspector-subtitle {
    display: block;
    margin-top: 16px;
  }
  .has-item .swatches {
    display: flex;
  }
  .has-item #toast {
    bottom: 325px;
  }
  .floor-switch button {
    white-space: nowrap;
  }
  .view-switch button {
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  #focus-view {
    display: none;
  }
}
/* СтройДом: blue and orange company identity, with three presentation variants. */
:root {
  --ink: #17223f;
  --muted: #748094;
  --paper: #f4f6f8;
  --line: #e2e6ec;
  --accent: #e69624;
  --sage: #405574;
  --nav: #17223f;
  --nav-text: #b8c4d7;
  --header: #17223f;
  --header-text: #fff;
  --surface: #fff;
  --active: #fff1db;
  --active-ink: #8b540b;
}
body[data-theme="light"] {
  --nav: #fff;
  --nav-text: #62718a;
  --header: #fff;
  --header-text: #17223f;
  --surface: #fff;
  --active: #fff0d9;
  --active-ink: #a25f07;
}
body[data-theme="graphite"] {
  --nav: #252d38;
  --nav-text: #c1c8d2;
  --header: #252d38;
  --header-text: #fff;
  --surface: #f7f8fa;
  --active: #f5e3d6;
  --active-ink: #98572e;
}
.studio-header {
  background: var(--header);
  color: var(--header-text);
  border-color: #ffffff18;
  gap: 18px;
  padding: 0 20px;
}
.brand {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.brand img {
  width: 164px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  flex: none;
  display: block;
}
.brand small {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 2.3px;
  margin-left: 11px;
  color: var(--header-text);
  opacity: 0.65;
}
.header-divider {
  background: #a4b0c04d;
}
.project-title input {
  color: var(--header-text);
  font-size: 15px;
}
.project-title #save-status {
  color: var(--header-text);
  opacity: 0.65;
}
.project-title #save-status i {
  background: #f0ac41;
}
.header-actions .quiet-button {
  color: var(--header-text);
}
.primary-button {
  background: #e69624;
  border-color: #e69624;
  color: #17223f;
  box-shadow: 0 4px 12px #111a3015;
  font-weight: 700;
}
.primary-button:hover {
  background: #f1aa3f;
}
.rail {
  background: var(--nav);
  border-color: #ffffff0d;
}
.rail-button {
  color: var(--nav-text);
}
.rail-button.active {
  background: #e69624;
  color: #17223f;
}
.rail-button:hover {
  background: #e6962422;
  color: var(--header-text);
}
body[data-theme="light"] .rail-button:hover {
  color: #17223f;
}
.rail-monogram {
  background: #ffffff0c;
  border-color: #8d9ab145;
  color: var(--nav-text);
}
.library {
  background: var(--surface);
}
.library h1 {
  color: #17223f;
}
.eyebrow,
.canvas-caption .eyebrow {
  color: #8b97a9;
}
.library-note b,
.library-note p {
  color: #7c889b;
}
.category-list button {
  color: #6c7c91;
}
.category-list button.active {
  background: var(--active);
  border-color: #efb04a33;
  color: var(--active-ink);
}
.catalog-card {
  border-color: #e6e9ee;
}
.catalog-card:hover {
  border-color: #e8a346;
  box-shadow: 0 5px 16px #17223f10;
}
.catalog-thumb {
  background: #f0f2f5;
}
.catalog-name {
  color: #34445d;
}
.catalog-size {
  color: #8290a2;
}
.search-field {
  background: #f4f6f8;
  border-color: #e3e8ee;
}
.search-field input {
  color: #384860;
}
.build-card {
  background: #f6f8fb;
  border-color: #e2e7ee;
  color: #7c8da5;
}
.build-card:hover {
  background: #fff1db;
}
.build-card b {
  color: #243752;
}
.build-card small,
.panel-paragraph {
  color: #7b8899;
}
.project-action {
  background: #f1f4f8;
  color: #344963;
}
.workspace-toolbar {
  background: #fafbfd;
}
.floor-switch,
.view-switch {
  background: #e9edf3;
  border-color: #dce2eb;
}
.floor-switch button,
.view-switch button {
  color: #7b899e;
}
.floor-switch button.active,
.view-switch button.active {
  color: #17223f;
}
.view-switch button.active {
  box-shadow: 0 2px 7px #17223f12;
}
.icon-button {
  color: #7888a0;
}
.icon-button:hover,
.icon-button.active {
  background: #fff0d7;
  color: #a86d15;
}
.canvas-caption h2 {
  color: #243954;
  font-family: Manrope, sans-serif;
}
.canvas-area,
#plan-svg,
#plan-viewport {
  background: var(--drawing-bg, #edeef0) !important;
}
#plan-svg > rect:first-of-type {
  fill: var(--drawing-bg, #edeef0);
}
.drawing-tools {
  border-color: #dfe5ee;
}
.canvas-hint,
.zoom-control button {
  color: #77869a;
}
.zoom-control {
  border-color: #e0e6ed;
}
.status-bar {
  background: #fafbfd;
  border-color: #e2e7ee;
  color: #7c889c;
}
.inspector {
  background: var(--surface);
  border-color: #e1e7ef;
}
.inspector-heading h3,
.inspector-name {
  color: #2d4260;
}
.room-total strong {
  color: #1d3455;
}
.room-total p,
.object-label,
.inspector-subtitle {
  color: #8291a6;
}
.summary-row {
  color: #405674;
}
.summary-row span:last-child {
  color: #7d8ba0;
}
.summary-tip {
  background: #edf2f8;
  color: #607792;
}
.summary-tip h4 {
  color: #243b5b;
}
.summary-tip p {
  color: #788aa0;
}
.summary-tip button {
  color: #bf7919;
}
.inspector-preview {
  background: #eef1f5;
}
.inspector-field {
  color: #718199;
}
.inspector-field input,
.inspector-field select {
  background: #fbfcfe;
  border-color: #dce3ed;
  color: #283c59;
}
.inspector-field input:focus,
.inspector-field select:focus {
  outline-color: #e69624;
}
.field-range,
.inspector-tip {
  color: #8a98aa;
}
.quiet-button {
  color: #62748e;
}
.selection-list button {
  color: #657990;
}
.selection-list button:hover {
  background: #edf2f8;
}
.export-option {
  border-color: #e0e7ef;
}
.export-option:hover {
  background: #fff4e5;
}
.modal-inner h2 {
  color: #17223f;
}
#toast {
  background: #17223f;
  color: #fff;
}
.theme-switch {
  display: flex;
  gap: 3px;
  background: #ffffff0c;
  border: 1px solid #93a3bc32;
  border-radius: 7px;
  padding: 3px;
  flex: none;
}
.theme-switch button {
  font-size: 14px;
  color: var(--header-text);
  opacity: 0.72;
  padding: 7px 9px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.theme-switch button span {
  font-size: 14px;
  opacity: 0.55;
}
.theme-switch button.active {
  background: #e69624;
  color: #17223f;
  opacity: 1;
  font-weight: 650;
}
.theme-switch button:hover {
  opacity: 1;
}
.finish-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #526983;
  margin-bottom: 12px;
}
.finish-row select {
  width: 100%;
  font-size: 14px;
  color: #2e4463;
  border: 1px solid #dfe5ee;
  padding: 7px;
  background: #fbfcfe;
  border-radius: 5px;
}
.room-finishes {
  margin: 20px 0;
}
.studio-room-finish {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 5px 0;
  font-size: 14px;
  color: #526983;
}
.studio-room-popup {
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px #18233a1a;
}
.studio-room-popup > div:last-child {
  display: none;
}
.studio-room-popup .studio-room-finish {
  min-width: 210px;
}
.studio-room-finish select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #fbfcfe;
  color: #2e4463;
  font: inherit;
  font-size: 14px;
}
.stair-metrics {
  background: #edf2f7;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #718298;
  font-size: 14px;
}
.stair-railing {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #526983;
  margin: 12px 0;
}
.stair-railing input {
  accent-color: #d58a23;
}
.stair-metrics span {
  display: flex;
  justify-content: space-between;
}
.stair-metrics b {
  color: #273d5a;
}
.stair-warning {
  font-size: 14px;
  color: #95601e;
  background: #fff1dc;
  padding: 10px;
  line-height: 1.6;
  border-radius: 5px;
}
.architecture-mode .canvas-caption .eyebrow:after {
  content: " · МЕБЕЛЬ СКРЫТА";
  color: #b57922;
}
.mobile-panel-tabs button {
  color: #7c8da6;
}
.mobile-panel-tabs button.active {
  background: #fff1dc;
  color: #9b6419;
}
@media (max-width: 1300px) {
  .studio-header {
    gap: 14px;
    padding: 0 18px;
  }
  .brand {
    min-width: 175px;
  }
  .brand img {
    width: 154px;
  }
  .theme-switch button {
    padding: 7px;
    font-size: 14px;
  }
  .project-title {
    min-width: 120px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .primary-button {
    font-size: 14px;
  }
}
@media (max-width: 1050px) {
  .project-title {
    display: none;
  }
  .theme-switch {
    margin-left: auto;
  }
  .brand {
    min-width: 180px;
  }
  .header-actions .quiet-button > span:last-child {
    display: none;
  }
  .library-open .library {
    background: var(--surface);
  }
  .mobile-close {
    color: #536783;
  }
}
@media (max-width: 720px) {
  .studio-header {
    height: 110px;
    position: relative;
    padding: 0 13px 42px;
    gap: 8px;
  }
  .brand {
    min-width: 130px;
  }
  .brand img {
    width: 120px;
    height: 32px;
  }
  .brand small {
    font-size: 14px;
    letter-spacing: 1.4px;
    margin-left: 6px;
  }
  .theme-switch {
    position: absolute;
    bottom: 8px;
    left: 13px;
    right: 13px;
    justify-content: center;
    padding: 3px;
  }
  .theme-switch button {
    flex: 1;
    justify-content: center;
    padding: 5px;
    font-size: 14px;
  }
  .header-actions .primary-button {
    font-size: 14px;
  }
  .library-open .library {
    top: 110px;
  }
  .has-item .canvas-caption {
    display: none;
  }
  .has-item .drawing-tools {
    top: 14px;
  }
  .has-item #root {
    top: 68px;
  }
  .has-item #scene-options {
    top: 14px;
  }
}

#plan-viewport.panning,
#plan-viewport.panning * {
  cursor: grabbing !important;
  user-select: none !important;
}
.mouse-guide {
  display: flex;
  gap: 13px;
  align-items: center;
  background: #ffffffeb;
  border: 1px solid #d7dce1;
  border-radius: 9px;
  padding: 8px 12px;
  color: #526070;
  font-size: 14px;
  box-shadow: 0 3px 15px #26334709;
}
.mouse-guide span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.mouse-guide svg {
  width: 19px;
  height: 24px;
  flex: none;
}
.canvas-bottom {
  flex-wrap: wrap;
  align-items: flex-end;
}
.canvas-hint {
  flex-basis: 100%;
  max-width: 100%;
}
@media (max-width: 1350px) {
  .mouse-guide {
    gap: 9px;
    padding: 6px 8px;
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .mouse-guide {
    display: none;
  }
}

body,
button,
input,
select,
textarea,
kbd {
  font-family: Manrope, "Segoe UI", sans-serif;
}
body {
  -webkit-font-smoothing: antialiased;
}
.canvas-caption h2,
.modal-heading h2,
.summary-tip h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
}
.room-total strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
}
input[type="number"],
.status-bar,
.summary-row {
  font-variant-numeric: tabular-nums;
}
#plan-svg text {
  font-family: Manrope, sans-serif !important;
  stroke: none !important;
  stroke-width: 0 !important;
  paint-order: normal !important;
}

.estimate-intro p {
  font-size: 15px;
  color: #617088;
  line-height: 1.65;
}
.estimate-project {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #edf1f6;
  padding: 15px;
  border-radius: 10px;
  margin: 18px 0;
  color: #17223f;
  font-size: 14px;
}
.estimate-project b {
  white-space: nowrap;
}
#estimate-form .inspector-field {
  margin: 14px 0;
}
#estimate-form .inspector-field span {
  font-size: 14px;
  font-weight: 600;
  color: #354660;
}
#estimate-form input:not([type="checkbox"]),
#estimate-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e0e9;
  background: #f9fafc;
  border-radius: 8px;
  font-size: 15px;
  color: #17223f;
  resize: vertical;
}
#estimate-form small {
  font-weight: 400;
  color: #7a8796;
  margin-left: 5px;
}
.estimate-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #687488;
  margin: 18px 0;
}
.phone-hint {
  line-height: 1.5;
  color: #617088;
}
#estimate-form .phone-error {
  color: #a73737;
}
#estimate-form input[aria-invalid="true"] {
  border-color: #bb4a4a;
}
#estimate-form input[name="phone"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.035em;
}
.estimate-consent input {
  margin-top: 3px;
  accent-color: #e79b28;
  flex: none;
}
.estimate-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 18px !important;
  margin-top: 10px;
}
#estimate-error {
  color: #b64b3a;
  font-size: 14px;
}
.estimate-export-note {
  font-size: 14px !important;
  text-align: center;
}
.local-estimate-note {
  font-size: 14px !important;
  padding: 10px 12px;
  border-left: 3px solid #e79b28;
  background: #fff6e7;
}
.estimate-success {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf4ec;
  color: #567658;
  font-size: 26px;
  margin: 12px 0 18px;
}
#inspector-estimate {
  background: #e99b28;
  color: #17223f;
  padding: 10px 14px;
  border-radius: 7px;
  font-weight: 600;
  justify-content: space-between;
  width: 100%;
}
#inspector-3d {
  margin-top: 12px;
  font-size: 14px;
}
.help-intro {
  color: var(--muted);
  margin: 0 0 18px;
}
.help-mouse {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.help-mouse table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.55;
}
.help-mouse th,
.help-mouse td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.help-mouse th {
  color: var(--muted);
  font-weight: 600;
}
.help-mouse small {
  color: var(--muted);
  font-size: 14px;
}
.help-sections {
  margin: 20px 0;
}
.help-sections details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.help-sections summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
}
.help-sections p {
  font-size: 15px;
  line-height: 1.85;
  margin: 12px 0 2px;
}
.help-shortcuts {
  font-size: 14px;
  line-height: 1.9;
}
.workspace-expand {
  white-space: nowrap;
  font-size: 14px;
  padding: 8px 10px;
}
.workspace-expand svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 1051px) {
  .studio-header {
    height: 72px;
  }
  .workspace-toolbar {
    min-height: 56px;
    height: 56px;
  }
  .library-collapsed .library {
    display: none;
  }
  .library-heading #close-library {
    display: flex;
    width: 25px;
    height: 25px;
    flex: none;
  }
  .library-heading {
    padding: 24px 18px 20px;
    gap: 5px;
  }
  .library h1 {
    font-size: 19px;
  }
  .canvas-caption {
    top: 16px;
    left: 22px;
  }
  .canvas-caption h2 {
    font-size: 19px;
    margin-top: 4px;
  }
  .canvas-caption .eyebrow {
    font-size: 14px;
  }
}
@media (min-width: 1650px) {
  :root {
    --library: 246px;
    --inspector: 250px;
  }
}
@media (max-width: 760px) {
  .expand-label {
    display: none;
  }
}
.opening-editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.opening-editor-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.opening-hero {
  padding: 10px;
  background: var(--surface-soft, #f3f4f6);
  border-radius: 10px;
  text-align: center;
  margin: 12px 0;
}
.opening-hero svg {
  width: 100%;
  height: 118px;
}
.opening-hero b {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}
.opening-editor button.active {
  border-color: var(--accent);
  background: var(--accent-soft, #fff2d8);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.opening-sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}
.opening-sizes button {
  padding: 7px 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.opening-models,
.opening-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.opening-models button,
.opening-types button,
.opening-sashes button,
.opening-swings button {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: #fff;
}
.opening-models svg {
  width: 100%;
  height: 72px;
}
.opening-models span,
.opening-types span {
  display: block;
  min-height: 28px;
  font-size: 14px;
  line-height: 1.4;
}
.opening-types svg {
  width: 100%;
  height: 65px;
}
.opening-sashes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.opening-sashes svg {
  width: 100%;
  height: 46px;
}
.opening-sashes span {
  font-size: 14px;
}
.opening-colors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.opening-colors button {
  padding: 7px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.opening-colors i {
  width: 19px;
  height: 19px;
  border: 1px solid #9aabb4;
  border-radius: 50%;
  margin: 0;
  flex: none;
}
.opening-swings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.opening-swings svg {
  width: 100%;
  height: 40px;
}
.opening-portal {
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
}
.opening-editor > .delete-button {
  margin-top: 18px;
  width: 100%;
}
.opening-editor .field-grid input {
  min-width: 0;
  width: 100%;
}
/* Keep the drawing surface available; guidance belongs in the toolbar. */
@media (min-width: 761px) {
  body #root {
    inset: 12px 0 48px;
  }
  .canvas-caption {
    display: none;
  }
}
.wall-step {
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink, #243653);
}
.catalog-thumb .catalog-3d { width:100%; height:118px; object-fit:contain; opacity:0; transition:opacity .15s; }
.catalog-thumb .catalog-3d.ready { opacity:1; }
#plan-svg { user-select:none; -webkit-user-select:none; }
.catalog-thumb { min-height:124px; padding:4px; }
body:not(.architecture-mode) .library-heading { padding:16px 18px 12px; }
body:not(.architecture-mode) #panel-eyebrow { display:none; }
.category-list { flex-wrap:nowrap; overflow-x:auto; padding-bottom:7px; }
.category-list button { flex-shrink:0; }
.auto-launch { padding:12px !important; gap:8px !important; }
.auto-launch small { display:none; }
#inspector.element-popover {
  display:block !important; position:fixed; right:auto; bottom:auto;
  width:330px; max-width:calc(100vw - 24px); padding:16px;
  border:1px solid #dbe2eb; border-radius:18px;
  box-shadow:0 16px 48px #17223f26,0 3px 10px #17223f12; z-index:30;
  overscroll-behavior:contain;
}
#inspector.dragging-element { visibility:hidden; pointer-events:none; }
#inspector.parameters-closed { display:none !important; }
.element-popover .inspector-heading,.element-popover .opening-editor-title {
  position:sticky; top:-16px; z-index:2; background:white; padding:10px 0; margin-top:-8px;
}
.element-popover .inspector-preview,.element-popover .object-label { display:none; }
.element-popover .inspector-name { margin:12px 0; }
.element-rotate { background:#fff3df; padding:12px; border-radius:12px; margin:4px 0 12px; }
.element-rotate > span { display:block; font-weight:600; margin-bottom:8px; }
.element-rotate > div { display:flex; gap:8px; }
.element-rotate button { flex:1; min-height:40px; background:white; color:#21374f; font-size:17px; }
.element-rotate.furniture-mirror { background:#edf2f6; }
.element-rotate.furniture-mirror button { min-width:0; padding:8px; font-size:13px; line-height:1.4; white-space:normal; }
.element-rotate.furniture-mirror button[aria-pressed="true"] { background:#ffdf9f; border-color:#bc852e; color:#21374f; }
.element-popover .opening-hero { display:flex; align-items:center; gap:10px; margin:4px 0; }
.element-popover .opening-hero svg { width:80px; height:78px; }
.element-popover .opening-hero b { flex:1; }
.element-popover .opening-swings { margin-bottom:12px; }
.element-popover .opening-editor > .inspector-tip { display:none; }
.element-popover .opening-editor .inspector-subtitle { margin:14px 0 8px; padding-top:0; }
.element-popover .opening-hero svg { height:64px; }
@media(max-width:700px) {
  #inspector.element-popover { width:calc(100vw - 24px); max-height:48vh !important; }
  .catalog-thumb .catalog-3d { height:105px; }
}

/* Selecting a wall must not move the canvas while the pointer is dragging it. */
@media (max-width:1480px) {
  .workspace-toolbar:has(#tool-options[data-context="wall-edit"]) {
    position:relative;
    height:66px;
    min-height:66px;
    flex-wrap:nowrap;
    padding-top:0;
    padding-bottom:0;
  }
  .workspace-toolbar #tool-options[data-context="wall-edit"] {
    position:absolute;
    top:100%;
    left:12px;
    right:auto;
    max-width:calc(100% - 24px);
    z-index:25;
    background:#fafbfdf5;
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:0 0 8px 8px;
    pointer-events:auto;
  }
  .workspace-toolbar #tool-options[data-context="wall-edit"] p {display:none;}
}
@media (min-width:1051px) and (max-width:1480px) {
  .workspace-toolbar:has(#tool-options[data-context="wall-edit"]) {height:56px;min-height:56px;}
}
@media (max-width:700px) {
  .workspace-toolbar:has(#tool-options[data-context="wall-edit"]) {height:58px;min-height:58px;}
}

/* Dimension switches remain reachable in a narrow toolbar. */
@media (max-width: 1100px) {
  .workspace-toolbar:has(.dimension-visibility) { height:auto !important; min-height:66px; flex-wrap:wrap !important; padding-top:6px; padding-bottom:6px; }
  .dimension-visibility { order:5; flex-basis:100%; flex-direction:row; flex-wrap:wrap; gap:8px 18px; padding:5px 0; }
  .workspace-toolbar #tool-options { order:6; }
}
#mobile-pc-notice { position:fixed; z-index:20000; bottom:16px; left:16px; right:16px; max-width:540px; margin:0 auto; padding:22px; background:#fff; color:#17223f; border:1px solid #e1c99c; border-radius:16px; box-shadow:0 8px 50px #17223f45; }
#mobile-pc-notice h2 { font-size:21px; line-height:1.3; margin:0 0 12px; }
#mobile-pc-notice p { font-size:16px; line-height:1.5; margin:0 0 18px; }
#mobile-pc-notice button { width:100%; white-space:normal; }
body:not(.hide-openings-dimensions) #plan-svg:has([data-layer="window-dimensions"]:not([style*="display: none"])) [data-room-edge-chain="true"] { display:none; }
.room-number-marker { display:none; }
.numbered-rooms #plan-svg [data-room-caption] { display:none; }
.numbered-rooms .room-number-marker { display:inline; }
.room-number-selected circle { fill:#ffdea0; stroke:#ba7712; }

/* Three independent view options, with a visible on/off state and keyboard focus. */
.workspace-toolbar:has(.dimension-visibility) { height:auto !important; min-height:66px; flex-wrap:wrap !important; padding-top:8px; padding-bottom:8px; }
.dimension-visibility { order:5; flex-basis:100%; flex-direction:row; flex-wrap:wrap; gap:8px; padding:0; }
.dimension-visibility .view-option { position:relative; gap:8px; padding:7px 10px; border:1px solid #dce2e9; border-radius:9px; background:#f3f5f8; color:#667489; font-size:13px; line-height:18px; transition:background .15s,border-color .15s; }
.dimension-visibility .view-option:has(input:checked) { background:#fff2db; border-color:#e4b567; color:#24364d; }
.dimension-visibility .view-option:hover { border-color:#afbccb; }
.dimension-visibility .view-option:has(input:focus-visible) { outline:2px solid #2b68bc; outline-offset:2px; }
.dimension-visibility .view-option input { position:absolute; opacity:0; width:1px; height:1px; }
.view-option-track { position:relative; width:28px; height:16px; flex-shrink:0; border-radius:12px; background:#bbc4d0; transition:background .15s; }
.view-option-track::after { content:''; position:absolute; width:12px; height:12px; top:2px; left:2px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #17223f30; transition:transform .15s; }
input:checked + .view-option-track { background:#dc941f; }
input:checked + .view-option-track::after { transform:translateX(12px); }
.summary-row.room-summary-row { width:100%; display:flex; align-items:center; gap:9px; border:0; border-radius:8px; background:transparent; text-align:left; font:inherit; padding:9px 4px; color:inherit; opacity:1; }
.room-summary-row>span:first-of-type { flex:1; min-width:0; }
.room-summary-row>span:last-child { flex-shrink:0; white-space:nowrap; }
.room-summary-number { display:none; }
.numbered-rooms .room-summary-number { display:grid; place-items:center; flex-shrink:0; width:26px; height:26px; border:1px solid #a6b1be; border-radius:50%; color:#31475d; font-size:12px; font-weight:600; background:#fffaf0; }
.numbered-rooms .room-summary-row { cursor:pointer; }
.numbered-rooms .room-summary-row:hover { background:#f2f5f8; }
.numbered-rooms .room-summary-row.room-summary-selected { background:#fff0d4; }
.numbered-rooms .room-summary-selected .room-summary-number { background:#ffdea0; border-color:#bd802b; }
@media(prefers-reduced-motion:reduce){.dimension-visibility .view-option,.view-option-track,.view-option-track::after{transition:none;}}
.summary-row.room-summary-row { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:9px; row-gap:3px; font-size:15px; line-height:1.4; margin-bottom:5px; }
.numbered-rooms .summary-row.room-summary-row { grid-template-columns:26px minmax(0,1fr) auto; }
.room-summary-row>span:first-of-type { overflow-wrap:anywhere; }
@media(max-width:1500px){
  .numbered-rooms .summary-row.room-summary-row { grid-template-columns:26px minmax(0,1fr); }
  .numbered-rooms .room-summary-number { grid-row:1 / 3; }
  .numbered-rooms .room-summary-row>span:last-child { grid-column:2; font-size:13px; }
}

/* One mouse guide is enough; the icon panel replaces the duplicated text. */
#canvas-hint { display:none !important; }
.multi-selection-bar { pointer-events:auto; position:absolute; z-index:15; left:24px; bottom:70px; display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid #e5ad45; border-radius:12px; background:#fff8e8; box-shadow:0 5px 18px #24334b18; color:#24334b; font-size:14px; max-width:calc(100% - 48px); flex-wrap:wrap; }
.multi-selection-bar[hidden] { display:none; }
.multi-selection-bar button { border:1px solid #e4cfaa; border-radius:8px; padding:7px 12px; background:white; color:#24334b; cursor:pointer; }
.multi-selected { filter:drop-shadow(0 0 2px #ee9f19) drop-shadow(0 0 2px #ee9f19); }
path.multi-selected[data-chain-id] { stroke:#eaa126 !important; }
path.multi-selected[data-platform-id] { stroke:#eaa126 !important; stroke-width:3; }

/* Decorative north marker removed from the working canvas. */
.north-indicator { display: none !important; }

/* Full studio viewer: navigation and temporary measurements, no editing controls. */
.readonly-bar{display:flex;align-items:center;gap:20px;padding:12px 24px;background:#eef3f8;border-bottom:1px solid #d5dee8;color:#243b56;font:14px Manrope,sans-serif}
.readonly-bar span{flex:1}.readonly-bar small{display:block;margin-top:4px;color:#65778a}.readonly-bar a{color:inherit;text-decoration:none}
.studio-readonly #studio-app{display:flex;flex-direction:column;height:100vh}.studio-readonly .studio-body{flex:1;min-height:0}
.studio-readonly #project-source,.studio-readonly #open-file,.studio-readonly #undo,.studio-readonly #redo,.studio-readonly .library-note,.studio-readonly [data-panel="kitchen"],.studio-readonly [data-panel="bathroom"],.studio-readonly [data-panel="project"],.studio-readonly .studio-room-popup{display:none!important}
.studio-readonly #project-name{cursor:default}.studio-readonly #inspector{display:block}.studio-readonly .readonly-rooms{margin-block:20px}.studio-readonly .tool-card{width:100%;margin-bottom:10px;display:flex;align-items:center;gap:10px}.studio-readonly .tool-card svg{width:24px;height:24px}
@media(max-width:760px){.readonly-bar{padding:10px;flex-wrap:wrap;gap:10px}.readonly-bar small{font-size:12px}}
.studio-readonly .drawing-tools [data-tool]:not([data-tool="select"]):not([data-tool="measure"]){display:none!important}
.studio-readonly .tool-card{border:1px solid #d8e0e9;border-radius:10px;background:#f6f8fb;padding:13px 12px;text-align:left;font-size:14px;cursor:pointer}
.studio-readonly .tool-card:hover{background:#fff0d7;border-color:#e5b763}
