@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  --ink: #263b32;
  --muted: #7c857e;
  --green: #416f51;
  --lime: #d9ecb6;
  --border: #e3e7de;
  --paper: #fafbf8;
  --soft: #f0f3eb;
  --font: 'DM Sans', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px var(--font);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  transition:
    background 0.18s,
    transform 0.18s;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #91b374;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(0.96);
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.app-header {
  height: 88px;
  margin: 0 4%;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font:
    750 24px Manrope,
    var(--font);
  letter-spacing: -1px;
}
.brand > span:not(.brand-mark) {
  font-weight: 450;
}
.brand-mark {
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #dceec1;
  border-radius: 10px;
  margin-right: 10px;
  font-size: 32px;
  line-height: 1;
}
.brand small {
  letter-spacing: 1px;
  font: 700 9px var(--font);
  border: 1px solid #d5ddcf;
  border-radius: 4px;
  padding: 3px 5px;
  margin-left: 10px;
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 12px;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 34px 4% 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #7e887b;
}
.page-heading .eyebrow {
  margin: 0 0 9px;
}
h1 {
  font:
    600 clamp(26px, 2.45vw, 38px)/1.2 Manrope,
    var(--font);
  letter-spacing: -1.5px;
  margin: 0 0 10px;
}
.page-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.button {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 43px;
  padding: 10px 17px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.button.primary {
  background: var(--green);
  color: white;
}
.button.secondary {
  background: #fff;
  border-color: var(--border);
}
.button.dark {
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  box-shadow: 0 4px 12px #263b3210;
}
.button.dark > span:first-child {
  color: var(--lime);
  font-size: 22px;
}
.button.small {
  min-height: 34px;
  padding: 8px 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 302px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 660px;
  height: calc(100vh - 295px);
  max-height: 940px;
  background: #fff;
  box-shadow: 0 8px 40px #334b2f04;
}
.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #fff;
  overflow-y: auto;
}
.sidebar-top {
  padding: 22px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-top .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
#save-status {
  font-size: 8px;
  color: #819178;
}
.property-title {
  padding: 25px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.house-icon {
  border-radius: 9px;
  background: #edf2e5;
  width: 39px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  font-size: 31px;
  color: #6e855c;
}
.property-title h2 {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 5px;
  font-weight: 650;
}
.property-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.property-stats {
  display: flex;
  justify-content: space-between;
  margin: 0 20px 24px;
  color: var(--muted);
  font-size: 10px;
}
.property-stats strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 550;
  margin-right: 2px;
}
.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 25px;
}
.sidebar-tabs button {
  padding: 0 0 13px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  position: relative;
}
.sidebar-tabs button[aria-selected='true'] {
  color: var(--ink);
  font-weight: 650;
}
.sidebar-tabs button[aria-selected='true']:after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--green);
  bottom: -1px;
  left: 0;
  right: 0;
}
.sidebar-tabs span {
  font-size: 8px;
  border-radius: 4px;
  background: var(--soft);
  padding: 2px 4px;
  margin-left: 3px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 20px 7px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.section-label select {
  border: 0;
  background: none;
  font-size: 10px;
  color: var(--ink);
  max-width: 145px;
  padding: 4px;
}
.room-list {
  padding: 0 10px;
}
.room-button {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: none;
  border-radius: 7px;
  padding: 10px;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 3px;
}
.room-button.selected {
  background: #f2f5ed;
  border-color: #e2e9d8;
}
.room-swatch {
  height: 26px;
  width: 26px;
  background: var(--room-color);
  border-radius: 6px;
  display: grid;
  place-content: center;
  color: #5c6856;
  font-size: 12px;
}
.room-button .room-info {
  flex: 1;
}
.room-button .room-area {
  color: #889081;
  font-size: 10px;
}
.room-button .chevron {
  color: #aab09f;
}
.edit-layout-button {
  display: flex;
  justify-content: space-between;
  width: calc(100% - 40px);
  border: 1px dashed #d6dece;
  border-radius: 6px;
  background: white;
  margin: 13px 20px 23px;
  padding: 11px 12px;
  font-size: 11px;
}
.edit-layout-button span:first-child {
  font-size: 15px;
  color: #7e8f71;
}
.import-card {
  border-top: 1px solid var(--border);
  margin: 0 20px;
  padding-top: 22px;
}
.import-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.import-card h3 {
  font:
    650 17px Manrope,
    var(--font);
  margin: 8px 0;
}
.import-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 15px;
}
.import-card .button {
  width: 100%;
  justify-content: space-between;
}
.import-card .text-button {
  display: block;
  margin: 7px auto 10px;
  font-size: 10px;
  color: #7a8572;
}
.sidebar-footer {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding: 18px 20px 20px;
  background: #fafbf8;
  border-top: 1px solid var(--border);
}
.sidebar-footer > span {
  font-size: 17px;
  color: #96a386;
}
.sidebar-footer p {
  font-size: 9px;
  line-height: 1.65;
  color: #8b9285;
  margin: 0;
}
.sidebar-footer strong {
  font-weight: 500;
  color: #68775e;
}
.viewer-panel {
  position: relative;
  background: #f0f1eb;
  min-width: 0;
  overflow: hidden;
}
.viewer-toolbar {
  position: absolute;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}
.viewer-toolbar > * {
  pointer-events: auto;
}
.view-switch {
  display: flex;
  background: #ffffffd9;
  border: 1px solid #e2e5d9;
  border-radius: 7px;
  padding: 4px;
  gap: 3px;
}
.view-switch button {
  border: 0;
  background: none;
  border-radius: 4px;
  padding: 9px 13px;
  font-size: 11px;
  color: #798170;
  display: flex;
  align-items: center;
  gap: 7px;
}
.view-switch button.active {
  background: #eef2e7;
  color: var(--ink);
}
.viewer-actions {
  display: flex;
  gap: 8px;
}
.viewer-actions button {
  background: #ffffffd9;
  border: 1px solid #e2e5d9;
  border-radius: 7px;
  width: 35px;
  height: 35px;
  font-size: 21px;
  color: #7a8470;
}
#viewer {
  position: absolute;
  inset: 0;
}
#viewer > canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#plan-canvas {
  position: absolute;
  inset: 0;
}
.viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--muted);
  font-size: 12px;
}
.north-marker {
  position: absolute;
  top: 100px;
  right: 29px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 8px;
  gap: 3px;
  color: #9aa38e;
}
.north-marker span {
  font-size: 25px;
}
.viewer-bottom {
  position: absolute;
  bottom: 24px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.viewer-hint {
  display: flex;
  align-items: center;
  gap: 10px;
}
.viewer-hint > span {
  font-size: 20px;
  color: #8a967e;
  transform: rotate(-30deg);
}
.viewer-hint p {
  font-size: 10px;
  line-height: 1.8;
  color: #929986;
  margin: 0;
}
.viewer-hint strong {
  font-weight: 500;
  font-size: 11px;
  color: #6f7e65;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0 20px;
  font-size: 10px;
  color: #909889;
}
.page-footer > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.page-footer .text-button {
  font-size: 10px;
  color: #738169;
}
.page-footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.panel-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 20px;
}
#sources-panel > .button {
  margin: 15px 20px;
}
#listing-source {
  display: block;
  font-size: 11px;
  margin: 0 20px 20px;
}
.asset-item {
  margin: 0 20px 16px;
}
.asset-item img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 125px;
  border-radius: 6px;
  background: var(--soft);
  cursor: zoom-in;
}
.asset-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  gap: 8px;
  margin-top: 7px;
}
.asset-item button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  font-size: 9px;
  padding: 5px;
}
.asset-empty {
  padding: 20px;
  border: 1px dashed var(--border);
  margin: 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.empty-view {
  position: absolute;
  inset: 110px 20px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.empty-view > span {
  font-size: 60px;
  color: #9dab8b;
}
.empty-view h2 {
  font:
    600 23px Manrope,
    var(--font);
}
.empty-view p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 350px;
}
.empty-view .button {
  margin-top: 10px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px;
  width: 520px;
  max-width: calc(100vw - 30px);
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 30px 150px #13251c30;
}
dialog::backdrop {
  background: #1a2b2355;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.close-dialog {
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  width: 29px;
  height: 29px;
  font-size: 22px;
  line-height: 1;
}
dialog h2 {
  font:
    600 25px Manrope,
    var(--font);
  letter-spacing: -0.7px;
  margin: 12px 0;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
dialog label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin: 20px 0 7px;
}
input,
select {
  border: 1px solid #dce2d5;
  border-radius: 5px;
  padding: 11px 10px;
  color: var(--ink);
  background: white;
  max-width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid #c7d9ae;
  outline-offset: 1px;
}
#listing-url {
  width: 100%;
}
.field-note {
  font-size: 10px !important;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}
.scale-verification {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #c9853d;
  border-radius: 6px;
  color: #7a4211;
  background: #fff5e8;
  font-size: 11px;
  font-weight: 700;
}
.scale-verification.verified {
  border-color: #6e9a63;
  color: #285b2e;
  background: #edf7e9;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}
.dialog-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.dialog-footer > div {
  display: flex;
  gap: 8px;
}
.message {
  padding: 12px 14px;
  border-radius: 6px;
  background: #f2f5ec;
  color: #6d7d5d;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 15px;
}
.message.error {
  background: #fff0eb;
  color: #9b4f3c;
}
.help-steps {
  padding-left: 20px;
  margin: 24px 0;
}
.help-steps li {
  padding-left: 10px;
  margin-bottom: 20px;
}
.help-steps p {
  margin: 5px 0;
}
.help-steps strong {
  font-size: 13px;
}
#editor-dialog {
  width: calc(100vw - 24px);
  max-width: none;
  height: calc(100dvh - 24px);
  max-height: none;
  margin: auto;
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
}
#new-property-dialog {
  width: 470px;
}
.compact-dialog {
  width: 460px;
}
.property-start-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.property-start-option {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.property-start-option:hover,
.property-start-option:focus-visible {
  border-color: #8fa77f;
  background: #f7faf3;
}
.property-start-option strong,
.property-start-option small {
  display: block;
}
.property-start-option strong {
  font-size: 13px;
  font-weight: 600;
}
.property-start-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.property-start-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: #627657;
  font-size: 18px;
}
#editor-dialog.editor-page {
  display: flex;
  flex-direction: column;
}
#editor-dialog > * {
  flex-shrink: 0;
}
#editor-dialog > .dialog-footer {
  background: var(--paper);
  padding: 10px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  z-index: 2;
}
#editor-dialog {
  padding: 16px;
  overflow: hidden;
}
#editor-dialog.editor-page {
  min-height: calc(100dvh - 24px);
}
#editor-dialog .dialog-heading {
  margin: 0 0 10px;
}
#editor-dialog .dialog-heading .eyebrow {
  display: none;
}
#editor-dialog .dialog-heading h1,
#editor-dialog .dialog-heading h2 {
  margin: 0;
  font-size: 22px;
}
#editor-dialog .editor-toolbar {
  gap: 8px;
  padding: 8px 0;
  align-items: end;
}
#editor-dialog .editor-toolbar input,
#editor-dialog .editor-toolbar select {
  height: 34px;
  margin-top: 3px;
  padding: 6px 8px;
}
#editor-dialog .outline-toolbar {
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#editor-dialog .outline-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
#editor-dialog .outline-toolbar select,
#editor-dialog .outline-toolbar input[type='number'] {
  height: 34px;
  margin: 0;
  padding: 6px 8px;
}
#editor-dialog #shared-wall-tolerance {
  width: 70px;
}
#editor-dialog .outline-toolbar input[type='checkbox'] {
  margin: 0;
}
#editor-dialog .editor-toolbar .button,
#editor-dialog .outline-toolbar .button {
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}
#editor-dialog .button,
#editor-dialog .text-button {
  gap: 6px;
}
#editor-dialog .icon-button,
#editor-dialog .editor-properties .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#editor-dialog .button svg,
#editor-dialog .text-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  flex: 0 0 auto;
  display: block;
}
#editor-dialog .icon-only {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  padding-inline: 7px;
}
#editor-dialog .close-dialog.icon-only {
  min-width: 29px;
  padding: 0;
}
#editor-dialog .close-dialog.icon-only svg {
  display: block;
  width: 16px;
  height: 16px;
}
#editor-dialog #editor-zoom-level {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
}
#editor-dialog .editor-body {
  gap: 16px;
}
#editor-dialog .editor-properties {
  display: block;
  padding: 0 8px 12px 0;
  scrollbar-gutter: stable;
}
#editor-dialog .editor-properties > details {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 12px;
  background: #fff;
}
#editor-dialog .editor-properties summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
#editor-dialog .editor-properties details[open] > summary {
  margin-bottom: 12px;
}
#editor-dialog .editor-properties label {
  display: block;
  margin: 12px 0 8px;
  font-size: 11px;
}
#editor-dialog #proposal-list {
  padding: 0;
}
#editor-dialog #proposal-list > label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
#editor-dialog #proposal-list input[type='checkbox'] {
  min-height: 0;
  width: auto;
  margin: 0;
  padding: 0;
}
#editor-dialog .editor-properties input,
#editor-dialog .editor-properties select {
  min-height: 36px;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 12px;
}
#editor-dialog .editor-properties .button,
#editor-dialog .editor-properties .text-button {
  display: block;
  width: 100%;
  min-height: 36px;
  margin: 8px 0;
  white-space: normal;
  line-height: 1.4;
}
#editor-dialog .editor-properties .icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
#editor-dialog .icon-button__label {
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}
#editor-dialog .editor-properties .field-note {
  margin: 10px 0;
  font-size: 11px !important;
  line-height: 1.6;
}
#editor-dialog #source-quality {
  padding: 0 10px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#editor-dialog > .message:not([hidden]) {
  margin-top: 8px;
  padding: 8px 12px;
  max-height: 60px;
  overflow: auto;
}
@media (min-width: 901px) {
  #editor-dialog .editor-body {
    flex: 1 1 0;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) clamp(310px, 24vw, 370px);
  }
  #editor-dialog .editor-canvas-wrap {
    height: 100%;
    min-height: 0;
  }
  #editor-dialog .editor-properties {
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    contain: size;
  }
}
@media (max-width: 900px) {
  #editor-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    padding: 16px;
    border-radius: 10px;
  }
  #editor-dialog .editor-body {
    grid-template-columns: 1fr;
  }
  #editor-dialog {
    overflow-y: auto;
  }
  #editor-dialog .editor-toolbar,
  #editor-dialog .outline-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  #editor-dialog .editor-toolbar > *,
  #editor-dialog .outline-toolbar > * {
    flex-shrink: 0;
  }
  #editor-dialog > .dialog-footer {
    position: sticky;
    bottom: -16px;
    padding-bottom: 8px;
  }
  #editor-dialog .editor-canvas-wrap {
    height: 55dvh;
    min-height: 300px;
  }
  #editor-dialog .editor-properties {
    max-height: none;
    overflow: visible;
  }
  #editor-dialog > .dialog-footer {
    bottom: -16px;
  }
}
.editor-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding: 12px 0 18px;
}
.editor-toolbar label {
  font-size: 10px;
  margin: 0;
}
.editor-toolbar input,
.editor-toolbar select {
  display: block;
  padding: 8px;
  margin-top: 5px;
  width: 110px;
}
.editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 22px;
}
.editor-canvas-wrap {
  background: #f1f3ee;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  min-height: 390px;
  height: 50vh;
}
.editor-canvas-wrap canvas {
  width: 100%;
  height: calc(100% - 30px);
  display: block;
  touch-action: none;
}
.editor-canvas-wrap > p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 9px;
  text-align: center;
  margin: 6px 0;
}
#editor-dialog .editor-context-menu {
  position: absolute;
  z-index: 3;
  width: 230px;
  max-height: calc(100% - 16px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffffff5;
  box-shadow: 0 14px 32px #263b3230;
}
#editor-dialog .editor-context-menu[hidden] {
  display: none;
}
#editor-dialog .context-menu-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#editor-dialog .editor-context-menu label {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 11px;
}
#editor-dialog .editor-context-menu input,
#editor-dialog .editor-context-menu select {
  display: block;
  width: 100%;
  min-height: 32px;
  margin-top: 4px;
  padding: 5px 7px;
  font-size: 13px;
}
#editor-dialog .context-menu-action {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  margin-top: 5px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-align: left;
}
#editor-dialog .context-menu-action:hover:not(:disabled) {
  background: #e7eee7;
}
#editor-dialog .context-menu-action.danger {
  color: #9b3935;
}
#editor-dialog .editor-help-fab {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fffffff0;
  box-shadow: 0 2px 8px #263b3220;
}
#editor-dialog .editor-help-fab svg {
  display: block;
  width: 19px;
  height: 19px;
}
.editor-help-dialog {
  width: min(520px, calc(100vw - 30px));
}
.editor-help-dialog h2 {
  margin: 4px 0 0;
}
.editor-help-grid {
  display: grid;
  gap: 14px;
}
.editor-help-grid section {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}
.editor-help-grid h3 {
  margin: 0 0 8px;
  font-size: 13px;
}
.editor-help-grid p {
  margin: 6px 0;
}
.editor-properties {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}
.editor-properties h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.editor-properties label {
  margin: 10px 0 6px;
  font-size: 10px;
}
.editor-properties input,
.editor-properties select {
  display: block;
  width: 100%;
  padding: 7px;
  margin-top: 4px;
}
.dimension-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}
.danger {
  color: #a0634e;
  font-size: 10px;
}
.editor-properties hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.editor-properties > .button {
  width: 100%;
  font-size: 10px;
}
#photo-dialog {
  width: 900px;
}
#photo-full {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: auto;
  object-fit: contain;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 13px 23px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 5px 25px #263b3230;
  z-index: 20;
  max-width: 90vw;
  text-align: center;
}
#walk-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#walk-hud .crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 18px;
  color: white;
  text-shadow: 0 1px 3px #0008;
}
#decor-toggle {
  position: absolute;
  top: 112px;
  right: 24px;
  pointer-events: auto;
}
#decor-panel {
  position: absolute;
  top: 162px;
  bottom: 82px;
  right: 24px;
  width: min(320px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #fffffff5;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 35px #14291d22;
  pointer-events: auto;
  font-size: 12px;
  z-index: 5;
}
#walk-hud:has(#decor-panel:not([hidden])) .walk-fov-control {
  display: none;
}
.decor-heading,
.decor-rotate,
.decor-nudges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.decor-heading {
  justify-content: space-between;
}
.decor-heading strong {
  font-size: 16px;
}
#decor-close {
  font-size: 24px;
}
#decor-panel label {
  display: block;
  margin: 12px 0 6px;
  font-size: 11px;
}
#decor-panel input,
#decor-panel select {
  display: block;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px;
  margin-top: 5px;
}
#decor-panel input[type='color'] {
  height: 40px;
  padding: 3px;
}
#decor-panel > .button,
#decor-panel details > .button {
  width: 100%;
}
#decor-panel fieldset {
  min-width: 0;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px;
}
#decor-panel legend,
#decor-panel summary {
  font-weight: 650;
}
#decor-panel summary {
  cursor: pointer;
}
#decor-panel .field-note {
  margin: 8px 0;
  line-height: 1.6;
}
.decor-nudges button {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
}
.decor-rotate {
  flex-wrap: wrap;
}
#decor-remove {
  margin-top: 12px;
}
#decor-status {
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
#decor-status.error {
  color: #a23e29;
}
@media (max-width: 600px) {
  #decor-toggle {
    right: 16px;
  }
  #decor-panel {
    right: 16px;
  }
}
.walk-instructions {
  position: absolute;
  bottom: 27px;
  left: 25px;
  background: #ffffffda;
  border-radius: 5px;
  padding: 10px;
  font-size: 10px;
}
#exit-walk {
  position: absolute;
  bottom: 24px;
  right: 24px;
  pointer-events: auto;
}
.walk-fov-control {
  position: absolute;
  right: 24px;
  bottom: 82px;
  width: min(200px, 42%);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffffff0;
  pointer-events: auto;
}
.walk-fov-control label,
.walk-fov-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin: 0;
}
.walk-fov-control input[type='range'] {
  display: block;
  width: 100%;
  height: 28px;
  padding: 0;
  margin: 4px 0;
  accent-color: var(--green);
  cursor: pointer;
  touch-action: pan-y;
}
.walk-fov-labels {
  font-size: 10px;
}
.walk-fov-control .walk-door-collision {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.walk-fov-control .walk-door-collision input {
  width: auto;
  height: auto;
  margin: 0;
  accent-color: var(--green);
}
.touch-pad {
  position: absolute;
  bottom: 80px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(2, 34px);
  gap: 3px;
  pointer-events: auto;
}
.touch-pad button {
  border: 1px solid var(--border);
  background: #ffffffc9;
  border-radius: 6px;
  touch-action: none;
}
.touch-pad button:first-child {
  grid-column: 2;
}
.touch-pad button:nth-child(2) {
  grid-row: 2;
}
.touch-pad button:nth-child(3) {
  grid-row: 2;
  grid-column: 2;
}
.touch-pad button:nth-child(4) {
  grid-row: 2;
  grid-column: 3;
}
.viewer-panel:fullscreen {
  height: 100dvh;
  width: 100vw;
}
@media (min-height: 1000px) {
  .workspace {
    min-height: 740px;
  }
  .room-button {
    padding-top: 13px;
    padding-bottom: 13px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .viewer-hint p span {
    display: none;
  }
  .viewer-bottom {
    left: 18px;
    right: 18px;
  }
  .button.dark {
    padding: 12px 17px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .sidebar-top {
    padding-left: 16px;
    padding-right: 16px;
  }
  #save-status {
    font-size: 7px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 70px;
  }
  main {
    padding-top: 25px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 23px;
  }
  .page-heading > div > p:last-child {
    font-size: 11px;
    max-width: 250px;
    line-height: 1.6;
  }
  h1 {
    font-size: 26px;
    letter-spacing: -1px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 9px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .viewer-panel {
    order: -1;
    height: 480px;
  }
  .sidebar {
    border-right: 0;
    border-top: 1px solid var(--border);
  }
  .sidebar-top {
    padding: 20px 20px 0;
  }
  #save-status {
    font-size: 9px;
  }
  .property-title {
    padding-top: 17px;
  }
  .sidebar-footer {
    margin-top: 20px;
  }
  .room-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .import-card {
    padding-bottom: 5px;
  }
  .viewer-hint {
    display: none;
  }
  .viewer-bottom {
    justify-content: center;
  }
  .viewer-toolbar {
    left: 15px;
    right: 15px;
    top: 15px;
  }
  .north-marker {
    top: 80px;
    right: 24px;
  }
  .page-footer {
    font-size: 8px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .page-footer > div {
    gap: 8px;
  }
  .page-footer .text-button {
    font-size: 9px;
  }
  .editor-body {
    grid-template-columns: 1fr;
  }
  .editor-canvas-wrap {
    height: 320px;
    min-height: 280px;
  }
  .editor-properties {
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }
  .editor-properties h3,
  .editor-properties .dimension-fields,
  .editor-properties .field-note {
    grid-column: 1/-1;
  }
  .editor-properties hr {
    display: none;
  }
  .editor-dialog {
    padding: 18px;
  }
  .editor-toolbar {
    gap: 8px;
  }
  .editor-toolbar input,
  .editor-toolbar select {
    width: 94px;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .walk-instructions {
    font-size: 8px;
    bottom: 75px;
    left: auto;
    right: 15px;
    max-width: 180px;
  }
  .editor-properties > .button {
    margin-top: 12px;
  }
  dialog {
    padding: 23px;
  }
  #sources-panel .asset-item {
    display: inline-block;
    width: calc(50% - 33px);
    vertical-align: top;
    margin-right: 8px;
  }
  .asset-item > div {
    flex-wrap: wrap;
  }
}

.header-links {
  display: flex;
  gap: 25px;
  align-items: center;
}
.saved-property {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 7px;
  padding: 7px;
  margin-top: 10px;
}
.saved-property-open {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.saved-property-open strong {
  font-size: 13px;
}
.saved-property-open span {
  font-size: 11px;
  color: var(--muted);
}
.saved-property-delete {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9b3935;
}
.saved-property-delete:hover {
  background: #f6e8e6;
}
.saved-property-delete svg {
  display: block;
  width: 16px;
  height: 16px;
}
@media (max-width: 500px) {
  .header-links {
    gap: 12px;
  }
  .header-links .text-button {
    font-size: 10px;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    display: none;
  }
}
.measurement-panel {
  grid-column: 1/-1;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 18px;
}
.measurement-panel summary {
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.measurement-panel label {
  display: block;
}
.measurement-panel input,
.measurement-panel select {
  width: 100%;
}
.measurement-panel .button {
  width: 100%;
  white-space: normal;
}
.measurement-panel .field-note {
  line-height: 1.65;
}
.editor-properties .measurement-panel h3 {
  margin-top: 10px;
}
.outline-toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 12px 0;
}
.outline-toolbar label {
  font-size: 11px;
}
.outline-toolbar select {
  display: block;
  margin-top: 5px;
}
#editor-canvas {
  touch-action: none;
}
#editor-canvas:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.floor-navigation {
  position: absolute;
  top: 75px;
  left: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fafbf8e8;
  font-size: 10px;
}
.floor-navigation label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.floor-navigation select {
  padding: 5px;
  max-width: 170px;
}
#floor-overview-label {
  color: var(--muted);
}
@media (max-width: 760px) {
  .floor-navigation {
    left: 15px;
    right: 15px;
    gap: 6px;
  }
  #floor-overview-label {
    display: none;
  }
}

/* A shared, readable path from first visit to the finished model. */
.onboarding {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 48px;
}
.onboarding h1 {
  font-size: clamp(32px, 4vw, 56px);
  max-width: 650px;
  margin: 14px 0;
  letter-spacing: -2px;
}
.onboarding p {
  max-width: 520px;
  line-height: 1.7;
}
.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
}
.onboarding-preview {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px;
  background: var(--soft);
  text-align: center;
}
.onboarding-preview > span {
  display: block;
  font-size: 100px;
  color: var(--green);
}
.onboarding-preview strong {
  font-size: 20px;
}
.workflow {
  border: 1px solid var(--border);
  background: white;
  border-radius: 14px;
  margin-bottom: 24px;
  padding: 18px 22px;
}
.workflow-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.workflow-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.workflow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
  margin: 0;
  gap: 12px;
}
.workflow-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #626c64;
  font-size: 13px;
}
.workflow-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--border);
}
.workflow-steps small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
}
.workflow-steps [aria-current] {
  color: var(--ink);
  font-weight: 700;
}
.workflow-steps [aria-current] .workflow-number {
  background: var(--ink);
  color: white;
}
.workflow-steps .complete {
  color: var(--green);
}
.workflow-steps .complete .workflow-number {
  background: var(--lime);
  border-color: var(--lime);
}
.workflow-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.workflow-next p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.workflow-next button {
  flex-shrink: 0;
}
#editor-dialog .editor-workflow {
  margin: 0;
  padding: 12px 16px;
  border-radius: 0;
}
@media (max-width: 700px) {
  .onboarding {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
  }
  .onboarding-preview {
    display: none;
  }
  .workflow {
    padding: 16px;
  }
  .workflow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
  }
  .workflow-heading,
  .workflow-next {
    align-items: flex-start;
    flex-direction: column;
  }
  .workflow-steps li {
    font-size: 11px;
    gap: 6px;
  }
}

/* Compact editor chrome: task menus above, one inspector panel beside the plan. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#editor-dialog select {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23416f51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid #d8e0d5;
  border-radius: 9px;
  padding-right: 34px !important;
  color: var(--ink);
  font-weight: 550;
  cursor: pointer;
  max-width: 100%;
}
#editor-dialog :is(select, input, summary):focus-visible {
  outline: 3px solid #91b374;
  outline-offset: 2px;
}
#editor-dialog .compact-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#editor-dialog .level-picker {
  margin: 0;
}
#editor-dialog .level-picker > summary {
  min-width: 150px;
}
#editor-floor-current {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#editor-dialog #editor-floor {
  border: 0;
  padding: 0 0 6px;
  margin: 0 0 6px;
  min-width: 0;
  border-bottom: 1px solid var(--border);
}
#editor-dialog .level-picker-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
#editor-dialog .level-picker-row .level-picker-choice {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
#editor-dialog .level-picker-choice[aria-pressed='true'] {
  background: var(--soft);
  font-weight: 650;
}
#editor-dialog .level-picker-row .level-picker-rename {
  width: 34px;
  flex: 0 0 34px;
  padding: 9px;
}
#editor-dialog .level-picker-row .level-picker-name {
  width: 100%;
  min-width: 0;
  margin: 3px 0;
}
#editor-dialog .level-picker-row [hidden] {
  display: none;
}
#editor-dialog .tool-dropdown {
  position: relative;
  margin: 0;
}
#editor-dialog .tool-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  padding: 8px 11px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
}
#editor-dialog .tool-dropdown > summary::-webkit-details-marker {
  display: none;
}
#editor-dialog .tool-dropdown > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: -3px 2px 0 8px;
}
#editor-dialog .tool-dropdown[open] > summary {
  background: var(--soft);
  border-color: #91b374;
}
#editor-dialog .tool-dropdown summary svg {
  width: 15px;
  height: 15px;
}
#editor-dialog .tool-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 224px;
  max-width: calc(100vw - 48px);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px #263b3226;
}
#editor-dialog .tool-dropdown-panel .button {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 10px;
}
#editor-dialog .tool-dropdown-panel .button:hover {
  background: var(--soft);
}
#editor-dialog .tool-dropdown-panel label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px;
  font-size: 12px;
}
#editor-dialog .toolbar-context,
#editor-dialog .canvas-view-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#editor-dialog .canvas-view-tools {
  margin-left: auto;
}
#editor-dialog .inspector-picker {
  margin: 0 0 12px;
  font-size: 10px;
  color: #626c64;
}
#editor-dialog .inspector-picker select {
  min-height: 42px;
  font-size: 14px;
  background-color: var(--soft);
}
#editor-dialog .editor-properties > [data-inspector] > summary {
  display: none;
}
#editor-dialog .editor-properties > [data-inspector] {
  padding: 14px;
}
#editor-dialog .editor-properties .inline-help {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
}
#editor-dialog .inline-help summary {
  font-size: 11px;
  color: #626c64;
}
#editor-dialog .workflow-steps small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#editor-dialog .editor-workflow {
  border-radius: 10px;
  background: var(--soft);
  padding: 10px 14px;
}
#editor-dialog .workflow-next {
  margin-top: 8px;
  padding-top: 8px;
}
#editor-dialog .workflow-next p {
  color: #626c64;
  font-size: 11px;
}
#editor-dialog .workflow-number {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 11px;
}
@media (min-width: 901px) {
  #editor-dialog .editor-body {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  #editor-dialog .canvas-view-tools {
    margin-left: 0;
  }
  #editor-dialog .compact-toolbar > * {
    flex: 0 1 auto;
  }
  #editor-dialog .compact-toolbar .tool-dropdown-panel {
    left: auto;
    right: 0;
  }
  #editor-dialog .workflow-next {
    flex-direction: row;
    align-items: center;
  }
}

#editor-dialog .inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#editor-dialog .inspector-actions .button,
#editor-dialog .inspector-actions .text-button {
  margin: 4px 0;
}

.editor-heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.editor-settings-dialog {
  width: 580px;
  padding: 24px;
}
.editor-settings-dialog .dialog-heading {
  align-items: flex-start;
  margin-bottom: 20px;
}
.editor-settings-dialog h2 {
  margin: 0 0 4px;
}
.editor-settings-dialog #settings-scope {
  margin: 0;
  color: #626c64;
}
.editor-settings-dialog section + section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.editor-settings-dialog h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.editor-settings-dialog label {
  margin: 0;
  font-size: 12px;
}
.editor-settings-dialog input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
}
.settings-advanced {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.settings-advanced summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.settings-advanced[open] summary {
  margin-bottom: 14px;
}
.settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
}
.settings-footer p {
  margin: 0;
  font-size: 11px;
}
.editor-settings-dialog #settings-message {
  padding: 10px;
  color: var(--ink);
}
@media (max-width: 480px) {
  .editor-settings-dialog {
    padding: 20px;
  }
  .settings-grid {
    gap: 12px;
  }
  .settings-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-footer .button {
    width: 100%;
  }
}

#editor-dialog .canvas-tool-picker {
  font-size: 12px;
  font-weight: 600;
}
#editor-dialog .canvas-tool-picker select {
  min-width: 244px;
  background-color: var(--soft);
}
#editor-dialog .canvas-tool-hint {
  margin: -2px 0 10px;
  color: #626c64;
  font-size: 11px;
}
#editor-dialog #context-menu-door .inspector-actions {
  gap: 4px;
}
#editor-dialog #context-menu-door select {
  width: 100%;
}
@media (max-width: 480px) {
  #editor-dialog .canvas-tool-picker {
    width: 100%;
  }
  #editor-dialog .canvas-tool-picker select {
    min-width: 0;
    flex: 1;
  }
}

#editor-dialog .context-menu-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
#editor-dialog .context-menu-action.icon-button {
  justify-content: flex-start;
  gap: 6px;
}

#plan-furnish {
  width: auto;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}
#decor-panel.plan-decor-panel {
  top: 70px;
  bottom: 70px;
  right: 14px;
}
#plan-canvas {
  touch-action: none;
}
@media (max-width: 700px) {
  #decor-panel.plan-decor-panel {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    max-height: 235px;
  }
}

.viewer-panel:has(.plan-decor-panel:not([hidden])) #viewer-bottom {
  display: none;
}
