:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263d34;
  background: #eeeae2;
  font-synthesis: none;
  --green: #244c3d;
  --muted: #7b8379;
  --line: #e4e5dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #b48346;
  outline-offset: 4px;
}
button {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
header {
  height: 82px;
  background: #fafbf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.brand-icon {
  font-size: 32px;
  border: 1px solid #b7c3b4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
}
.project-title {
  font-family: Georgia, serif;
  font-size: 19px;
  color: #68746a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-title em {
  color: #294e3e;
}
.separator {
  height: 22px;
  width: 1px;
  background: #dfe3d9;
  margin: 0 20px;
}
.project-number {
  font-family: system-ui;
  font-size: 12px;
  color: #344c3c;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
#save-status {
  font-size: 10px;
  color: #748172;
  white-space: nowrap;
}
#save-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f8e65;
  margin-right: 5px;
}
.icon-button {
  border: 1px solid #dfe5d9;
  background: transparent;
  border-radius: 50%;
  height: 28px;
  width: 28px;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.subtle {
  border-color: #dce2d5;
  background: transparent;
}
.primary {
  background: var(--green);
  color: #fff;
}
.light {
  background: #fbfcf8e8;
  border: 1px solid #dce1d3;
}
.danger {
  background: #f4e4dd;
  color: #884a3c;
}
.full {
  width: 100%;
  margin-top: 15px;
}
.workspace {
  display: grid;
  grid-template-columns: 296px 1fr;
  height: calc(100dvh - 82px);
  min-height: 550px;
}
.sidebar {
  background: #fafbf7;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border-right: 1px solid #e0e2d7;
  z-index: 3;
}
.home-intro {
  padding: 30px 25px 23px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: #84917e;
}
.home-intro h1 {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -1.2px;
  margin: 13px 0 10px;
}
.home-intro h1 em {
  font-weight: 400;
  color: #7d8e6d;
}
.home-intro p {
  font-size: 11px;
  color: #7f877c;
  margin: 0;
}
.home-stats {
  display: flex;
  margin-top: 25px;
  gap: 22px;
}
.home-stats span {
  font-size: 9px;
  color: #899180;
}
.home-stats b {
  display: block;
  font-size: 19px;
  font-weight: 500;
  color: #344b3c;
  margin-bottom: 4px;
  letter-spacing: -0.7px;
}
.side-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 0 22px;
  gap: 20px;
}
.side-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 12px 0;
  font-size: 11px;
  color: #8a9284;
}
.side-tabs [aria-selected="true"] {
  border-color: #41694d;
  color: #2e4e3b;
  font-weight: 650;
}
.section-title {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #89917e;
  padding: 22px 25px 13px;
}
.section-title span {
  letter-spacing: 0;
  color: #a1a796;
  font-size: 9px;
}
#room-list {
  padding: 0 12px;
}
.room-button {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  gap: 12px;
  text-align: left;
}
.room-button:hover {
  background: #f0f3e9;
}
.room-button.active {
  background: #eaf0e2;
  border-color: #dce5d3;
}
.room-icon {
  height: 31px;
  width: 31px;
  border: 1px solid #e0e5d9;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f8faf4;
  color: #76866b;
  font-size: 17px;
}
.room-button .room-name {
  font-size: 11px;
  display: block;
  font-weight: 550;
}
.room-button small {
  display: block;
  font-size: 9px;
  color: #8d9587;
  margin-top: 4px;
}
.room-arrow {
  margin-left: auto;
  font-size: 14px;
  color: #a6b398;
}
.palette-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 22px 24px;
  background: #f0f2e8;
  border: 1px solid #e5e7dc;
  border-radius: 8px;
  padding: 12px;
}
.palette-swatches {
  display: flex;
  width: 56px;
}
.palette-swatches i {
  display: block;
  width: 19px;
  height: 27px;
  border: 2px solid #f0f2e8;
  border-radius: 12px;
  margin-right: -6px;
}
.palette-card b {
  font-size: 10px;
  font-weight: 600;
}
.palette-card small {
  font-size: 8px;
  color: #929780;
  display: block;
  margin-top: 5px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.source-link {
  display: flex;
  gap: 10px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
}
.source-link > span:first-child {
  font-size: 21px;
  color: #8b967e;
}
.source-link small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: #919a87;
  margin-top: 3px;
}
.footer-note {
  font-size: 8px;
  color: #9ca28f;
  margin-top: 14px;
}
#furniture-panel {
  padding: 0 24px 24px;
}
#furniture-panel .section-title {
  padding-left: 0;
  padding-right: 0;
}
.hint {
  font-size: 10px;
  color: #8b9481;
  line-height: 1.7;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 9px;
  color: #7b8871;
  margin: 12px 0;
}
.field input,
.field select {
  border: 1px solid #dce2d3;
  border-radius: 5px;
  background: #fff;
  padding: 8px;
  color: #344e3b;
  min-width: 0;
  font-size: 11px;
}
.field input[type="color"] {
  padding: 3px;
  width: 100%;
  height: 33px;
}
#catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 17px;
}
.catalog-item {
  background: #f1f3e9;
  border: 1px solid #e1e6d6;
  border-radius: 8px;
  padding: 13px 8px;
  text-align: left;
}
.catalog-item:hover {
  background: #e8efdc;
}
.catalog-item .catalog-icon {
  display: block;
  font-size: 24px;
  color: #758965;
  margin-bottom: 10px;
}
.catalog-item b {
  display: block;
  font-size: 10px;
  font-weight: 600;
}
.catalog-item small {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  color: #919b83;
}
#viewport {
  position: relative;
  overflow: hidden;
  background: #e9e6df;
  outline: none;
}
#viewport > canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 25px Georgia;
  background: #ece9df;
  z-index: 10;
}
.viewer-top {
  position: absolute;
  top: 23px;
  left: 27px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  gap: 10px;
}
.view-switch {
  background: #fcfcf5ed;
  border: 1px solid #d9dfcf;
  border-radius: 9px;
  padding: 4px;
  display: flex;
  box-shadow: 0 4px 18px #48513d07;
}
.view-switch button {
  border: 0;
  border-radius: 6px;
  background: none;
  padding: 9px 13px;
  font-size: 13px;
  color: #84907a;
  display: flex;
  gap: 7px;
  align-items: center;
}
.view-switch button span {
  font-size: 10px;
  font-weight: 550;
}
.view-switch button.active {
  background: #284d3d;
  color: #f8f9ef;
}
.viewer-options {
  display: flex;
  gap: 5px;
}
.viewer-options button {
  border: 1px solid #dce0d2;
  border-radius: 6px;
  background: #fafbf5dd;
  padding: 9px 10px;
  font-size: 12px;
  color: #75836b;
}
.viewer-options button span {
  font-size: 9px;
  margin-left: 4px;
}
.viewer-options button.active {
  background: #edf1e4;
  border-color: #bdc9b0;
  color: #3c5b39;
}
.scene-caption {
  position: absolute;
  top: 96px;
  left: 30px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.scene-caption > span:last-child {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #7b8772;
  font-style: italic;
}
.compass {
  position: absolute;
  right: 29px;
  top: 96px;
  width: 38px;
  text-align: center;
  font-size: 9px;
  color: #7f8b74;
  pointer-events: none;
}
.compass svg {
  width: 38px;
  display: block;
  margin-top: 5px;
}
.viewer-bottom {
  position: absolute;
  bottom: 23px;
  left: 26px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.current-space {
  display: flex;
  gap: 12px;
  align-items: center;
}
.room-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7b8e68;
  box-shadow: 0 0 0 6px #dce3cd;
}
.current-space > div > span {
  font-size: 12px;
  font-weight: 600;
}
.current-space small {
  display: block;
  font-size: 9px;
  color: #8d9684;
  margin-top: 5px;
}
.viewer-guide {
  font-size: 9px;
  color: #919882;
}
.viewer-guide span {
  padding: 0 9px;
}
.mini-actions {
  position: absolute;
  left: 28px;
  bottom: 85px;
  display: flex;
  gap: 8px;
}
.mini-actions .primary {
  box-shadow: 0 4px 15px #2d51372b;
}
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.room-label {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  border: 1px solid #ffffffaa;
  border-radius: 5px;
  background: #fafaf1d9;
  box-shadow: 0 2px 8px #404c3010;
  padding: 5px 8px;
  font-size: 9px;
  color: #36513b;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}
.room-label small {
  display: block;
  font-size: 8px;
  color: #859078;
  margin-top: 3px;
}
.room-label.bathroom {
  font-size: 8px;
  padding: 4px;
}
.room-label.bathroom small {
  font-size: 7px;
}
#inspector {
  position: absolute;
  right: 22px;
  top: 158px;
  width: 245px;
  padding: 18px;
  background: #fafcf5f5;
  border: 1px solid #dce2d2;
  border-radius: 12px;
  box-shadow: 0 10px 40px #2f483515;
  z-index: 3;
}
.inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inspector-head .eyebrow {
  font-size: 7px;
}
.inspector-head h3 {
  font: 22px Georgia;
  margin: 8px 0;
}
.inspector-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
}
.inspector-fields .field {
  margin: 7px 0;
}
.inspector-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
#toast {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #244c3df2;
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 11px;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#toast.visible {
  opacity: 1;
}
#walk-message {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  padding: 20px;
  background: #fafcf2ed;
  border: 1px solid #d9e1ce;
  border-radius: 10px;
  text-align: center;
  line-height: 1.8;
  font-size: 12px;
  z-index: 3;
}
#walk-message b {
  font-family: Georgia;
  font-size: 23px;
  font-weight: 400;
}
#walk-message span {
  font-size: 10px;
  color: #849077;
}
#walk-message button {
  display: block;
  margin: 15px auto 0;
}
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #fff;
  text-shadow: 0 1px 3px #123;
  pointer-events: none;
}
#tour-card {
  position: absolute;
  bottom: 90px;
  right: 25px;
  width: 295px;
  border: 1px solid #dce2d2;
  background: #fafcf5f5;
  padding: 23px;
  border-radius: 12px;
  z-index: 3;
  box-shadow: 0 10px 40px #2f483515;
}
#tour-card .eyebrow {
  font-size: 8px;
}
#tour-step {
  float: right;
}
#tour-card h2 {
  font: 26px Georgia;
  margin: 13px 0;
}
#tour-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #808c74;
}
#tour-card > div:last-child {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
dialog {
  border: 1px solid #d9dfd1;
  background: #fafbf5;
  border-radius: 15px;
  max-width: min(1000px, 94vw);
  width: 1000px;
  color: #344e3c;
  box-shadow: 0 30px 100px #20392b33;
  padding: 30px;
}
dialog::backdrop {
  background: #233c3259;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font: 31px Georgia;
  margin: 10px 0;
}
.source-content {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 30px;
}
.source-content img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #dfe3d6;
}
.source-content a {
  font-size: 11px;
  display: block;
  margin-top: 12px;
}
.source-content h3 {
  font: 20px Georgia;
  margin: 0 0 15px;
}
.source-content ul {
  padding-left: 16px;
  margin: 0;
}
.source-content li {
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #7b8870;
}
.source-content table {
  font-size: 9px;
  border-collapse: collapse;
  width: 100%;
  margin-top: 18px;
}
.source-content td {
  border-bottom: 1px solid #e2e5d8;
  padding: 6px 0;
}
.source-content td:last-child {
  text-align: right;
}
#help-dialog {
  width: 560px;
}
.help-content p {
  font-size: 12px;
  line-height: 1.8;
  color: #7b8870;
}
.help-actions {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
.help-content .hint {
  font-size: 10px;
}
#webgl-error {
  position: absolute;
  inset: 20%;
  background: #fafbf5;
  padding: 30px;
  border-radius: 12px;
  z-index: 9;
}
@media (min-height: 950px) {
  .room-button {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .home-intro {
    padding-top: 40px;
  }
}
@media (max-width: 1200px) {
  .project-title {
    display: none;
  }
  .viewer-guide {
    display: none;
  }
  .workspace {
    grid-template-columns: 270px 1fr;
  }
  .viewer-top {
    left: 18px;
    right: 18px;
  }
  .view-switch button {
    padding: 9px;
  }
  .viewer-options button span {
    display: none;
  }
  .home-intro {
    padding: 25px 22px;
  }
  .home-stats {
    gap: 20px;
  }
  .scene-caption {
    left: 20px;
  }
  .room-label {
    font-size: 8px;
    padding: 4px;
  }
  .room-label small {
    font-size: 7px;
  }
}
@media (max-width: 760px) {
  header {
    height: 65px;
    padding: 0 14px;
  }
  .brand {
    font-size: 10px;
  }
  .brand small {
    font-size: 7px;
  }
  #save-status {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .button {
    padding: 8px;
    font-size: 9px;
  }
  .workspace {
    height: calc(100dvh - 65px);
    grid-template-columns: 195px 1fr;
    min-height: 480px;
  }
  .home-intro {
    padding: 22px 15px;
  }
  .home-intro h1 {
    font-size: 27px;
  }
  .home-intro p {
    font-size: 9px;
    line-height: 1.7;
  }
  .home-stats {
    gap: 15px;
  }
  .home-stats b {
    font-size: 15px;
  }
  .home-stats span {
    font-size: 8px;
  }
  .side-tabs {
    margin: 0 13px;
    gap: 12px;
  }
  .side-tabs button {
    font-size: 9px;
  }
  .section-title {
    padding: 18px 15px 10px;
    font-size: 7px;
  }
  .room-button {
    padding: 8px 5px;
    gap: 8px;
  }
  .room-icon {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  .room-button .room-name {
    font-size: 9px;
  }
  .room-button small {
    font-size: 7px;
  }
  .palette-card {
    margin: 15px 12px;
    gap: 8px;
    padding: 9px;
  }
  .palette-card b {
    font-size: 9px;
  }
  .palette-card small {
    font-size: 7px;
  }
  .palette-swatches {
    width: 42px;
  }
  .sidebar-footer {
    padding: 15px 12px;
  }
  .source-link {
    font-size: 8px;
  }
  .source-link small,
  .footer-note {
    font-size: 7px;
  }
  .viewer-top {
    top: 14px;
    left: 12px;
    right: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .view-switch {
    width: 100%;
    justify-content: center;
  }
  .view-switch button {
    padding: 7px;
    font-size: 12px;
  }
  .view-switch button span {
    font-size: 8px;
  }
  .viewer-options {
    align-self: flex-end;
  }
  .viewer-options button {
    padding: 6px;
  }
  .scene-caption {
    top: 110px;
    left: 16px;
  }
  .scene-caption > span:last-child {
    font-size: 17px;
  }
  .scene-caption .eyebrow {
    font-size: 7px;
  }
  .compass {
    top: 145px;
    right: 15px;
    width: 27px;
  }
  .compass svg {
    width: 27px;
  }
  .viewer-bottom {
    bottom: 16px;
    left: 17px;
    right: 12px;
  }
  .current-space > div > span {
    font-size: 10px;
  }
  .current-space small {
    font-size: 7px;
    max-width: 125px;
    line-height: 1.6;
  }
  .viewer-bottom .button {
    padding: 8px;
  }
  .viewer-bottom .button span {
    display: none;
  }
  .mini-actions {
    left: 12px;
    bottom: 80px;
    gap: 5px;
  }
  .mini-actions .button {
    font-size: 9px;
    padding: 8px;
  }
  .room-label {
    font-size: 7px;
  }
  .room-label small {
    font-size: 6px;
  }
  .room-label.bathroom {
    display: none !important;
  }
  #inspector {
    top: 114px;
    right: 10px;
    width: 210px;
    padding: 13px;
  }
  #tour-card {
    width: calc(100% - 24px);
    right: 12px;
    padding: 16px;
  }
  #walk-message {
    width: calc(100% - 24px);
    font-size: 10px;
    padding: 15px;
  }
  #walk-message span {
    font-size: 8px;
  }
  #furniture-panel {
    padding: 0 12px 15px;
  }
  #catalog {
    gap: 7px;
  }
  .catalog-item {
    padding: 10px 7px;
  }
  .catalog-item b {
    font-size: 9px;
  }
  .catalog-item small {
    font-size: 7px;
  }
  .source-content {
    grid-template-columns: 1fr;
  }
  .source-content img {
    max-width: 330px;
  }
  dialog {
    padding: 20px;
    max-height: 90dvh;
  }
  .dialog-heading h2 {
    font-size: 25px;
  }
  #toast {
    max-width: 90%;
    width: max-content;
    font-size: 9px;
    text-align: center;
  }
}
