:root {
  --bg: #0b0a08;
  --surface: rgba(24, 22, 19, 0.9);
  --surface-soft: rgba(42, 38, 31, 0.88);
  --text: #f7f2e8;
  --muted: #b8afa1;
  --line: rgba(212, 175, 92, 0.2);
  --accent: #c8a75d;
  --accent-dark: #a78335;
  --accent-soft: rgba(200, 167, 93, 0.18);
  --danger: #d06b5f;
  --panel-light: rgba(33, 29, 24, 0.86);
  --panel-dark: rgba(13, 14, 14, 0.92);
  --panel-dark-soft: rgba(42, 38, 31, 0.9);
  --glass: rgba(11, 10, 8, 0.58);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(200, 167, 93, 0.18), transparent 30%),
    linear-gradient(135deg, #080807 0%, #15110d 46%, #251c13 100%);
  color: var(--text);
  font-family:
    "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
}

body[data-theme="harmonia"] {
  --bg: #ebe5dc;
  --surface: rgba(248, 245, 239, 0.88);
  --surface-soft: rgba(255, 252, 247, 0.9);
  --text: #252321;
  --muted: #706860;
  --line: rgba(55, 48, 42, 0.12);
  --accent: #8d7658;
  --accent-dark: #5f5142;
  --accent-soft: rgba(141, 118, 88, 0.14);
  --danger: #a95d54;
  --panel-light: rgba(250, 247, 242, 0.9);
  --panel-dark: rgba(238, 232, 224, 0.92);
  --panel-dark-soft: rgba(255, 252, 247, 0.86);
  --glass: rgba(248, 245, 239, 0.7);
  --shadow: 0 22px 70px rgba(70, 58, 45, 0.22);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.44), transparent 30%),
    linear-gradient(135deg, #d8cec1 0%, #eee8df 48%, #c9bba9 100%);
}

body[data-theme="harmonia"] .home-page {
  background:
    linear-gradient(90deg, rgba(245, 241, 234, 0.7), rgba(245, 241, 234, 0.24)),
    #ebe5dc;
}

body[data-theme="harmonia"] .site-editor-page {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.44), transparent 30%),
    linear-gradient(135deg, #d8cec1 0%, #eee8df 48%, #c9bba9 100%);
}

body[data-theme="harmonia"] .home-nav,
body[data-theme="harmonia"] .public-tour-hud,
body[data-theme="harmonia"] .viewer-logo,
body[data-theme="harmonia"] .room-strip,
body[data-theme="harmonia"] .floorplan-panel,
body[data-theme="harmonia"] .project-intro-logo img,
body[data-theme="harmonia"] .login-card {
  border-color: rgba(42, 37, 33, 0.1);
  background: rgba(248, 245, 239, 0.78);
  color: #252321;
  box-shadow: 0 22px 70px rgba(62, 52, 42, 0.18);
  backdrop-filter: blur(20px);
}

body[data-theme="harmonia"] .home-project-card,
body[data-theme="harmonia"] .project-intro-room,
body[data-theme="harmonia"] .sidebar,
body[data-theme="harmonia"] .panel,
body[data-theme="harmonia"] .topbar,
body[data-theme="harmonia"] .floorplan-header,
body[data-theme="harmonia"] .tour-control,
body[data-theme="harmonia"] .carousel-button,
body[data-theme="harmonia"] .ghost-button,
body[data-theme="harmonia"] .toggle-button,
body[data-theme="harmonia"] .icon-button {
  border-color: rgba(42, 37, 33, 0.12);
  background: rgba(248, 245, 239, 0.76);
  color: #252321;
}

body[data-theme="harmonia"] input,
body[data-theme="harmonia"] select,
body[data-theme="harmonia"] textarea {
  border-color: rgba(42, 37, 33, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #252321;
}

body[data-theme="harmonia"] option {
  background: #f6f1ea;
  color: #252321;
}

body[data-theme="harmonia"] .primary-button,
body[data-theme="harmonia"] .home-primary {
  background: linear-gradient(135deg, #efe7da, #d6c7b3);
  color: #252321;
  box-shadow: 0 16px 36px rgba(85, 70, 54, 0.18);
}

body[data-theme="harmonia"] .home-secondary,
body[data-theme="harmonia"] .home-nav-button {
  border-color: rgba(42, 37, 33, 0.14);
  background: rgba(255, 255, 255, 0.46);
  color: #252321;
}

body[data-theme="harmonia"] .home-project-image,
body[data-theme="harmonia"] .room-strip-thumb,
body[data-theme="harmonia"] .floorplan-canvas {
  background: #ddd3c6;
  color: #5f5142;
}

body[data-theme="harmonia"] .hotspot button {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(248, 245, 239, 0.78);
  color: #252321;
}

body[data-theme="harmonia"] .hotspot i,
body[data-theme="harmonia"] .floor-point {
  border-color: rgba(37, 35, 33, 0.78);
  background: rgba(255, 255, 255, 0.92);
  color: #252321;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.78),
    0 10px 28px rgba(55, 48, 42, 0.3);
}

body[data-theme="harmonia"] .floor-point.active {
  border-color: #252321;
  background: #252321;
  color: #fffaf2;
}

body[data-theme="harmonia"] .toast {
  border-color: rgba(42, 37, 33, 0.12);
  background: rgba(248, 245, 239, 0.94);
  color: #252321;
}

body[data-theme="harmonia"] .project-intro-media::after,
body[data-theme="harmonia"] .home-hero-media::after {
  background: linear-gradient(0deg, #ebe5dc 0%, transparent 34%);
}

body[data-theme="harmonia"] .public-tour-hud span,
body[data-theme="harmonia"] .home-project-card small,
body[data-theme="harmonia"] .floorplan-header span,
body[data-theme="harmonia"] .empty-state span {
  color: rgba(37, 35, 33, 0.64);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
}

.app-shell[hidden] {
  display: none;
}

.home-page {
  height: 100vh;
  overflow-y: auto;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 80% 5%, rgba(200, 167, 93, 0.2), transparent 28%),
    #0b0a08;
  color: var(--text);
}

.site-editor-page {
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 80% 10%, rgba(200, 167, 93, 0.16), transparent 30%),
    linear-gradient(135deg, #080807 0%, #15110d 46%, #251c13 100%);
  color: var(--text);
}

.site-editor-page[hidden] {
  display: none;
}

.site-editor-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 820px);
  align-items: start;
  gap: 22px;
  padding: 34px min(5vw, 70px) 54px;
}

.site-editor-menu {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 92, 0.18);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-page-tab {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(212, 175, 92, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.site-page-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.site-editor-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(212, 175, 92, 0.18);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-editor-card[hidden] {
  display: none;
}

.site-editor-divider {
  height: 1px;
  margin: 24px 0 4px;
  background: rgba(212, 175, 92, 0.18);
}

.compact-title {
  margin-top: 10px;
}

.home-page[hidden] {
  display: none;
}

[data-home-view][hidden] {
  display: none;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 42px;
  border-bottom: 1px solid rgba(212, 175, 92, 0.14);
  background: rgba(8, 8, 7, 0.78);
  backdrop-filter: blur(18px);
}

.home-brand,
.home-nav nav,
.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(212, 175, 92, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.public-theme-switcher span {
  color: var(--muted);
  font-size: 12px;
}

.public-theme-switcher select {
  width: auto;
  min-height: 28px;
  padding: 0 24px 0 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  color: #252321;
  cursor: pointer;
}

.public-theme-switcher option {
  background: #f6f1ea;
  color: #252321;
}

.public-theme-switcher.compact {
  min-height: 38px;
  max-width: 164px;
}

.brand-home-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-home-button:hover .brand-mark {
  border-color: var(--accent);
  background: rgba(200, 167, 93, 0.18);
}

.home-brand strong,
.home-brand span {
  display: block;
}

.home-brand span,
.home-nav a,
.home-section-title p,
.home-hero-content p,
.home-info-grid p,
.home-contact p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
}

.home-nav a:hover,
.home-nav a.active,
.home-back-link:hover {
  color: var(--accent);
}

.home-nav-button,
.home-primary,
.home-secondary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
}

.home-nav-button[hidden],
.home-secondary[hidden] {
  display: none;
}

.home-nav-button,
.home-secondary {
  border: 1px solid rgba(212, 175, 92, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.home-primary {
  border: 0;
  background: linear-gradient(135deg, #d7b769, #a9853b);
  color: #16120d;
  font-weight: 800;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 68vh;
  align-items: center;
  padding: 80px min(8vw, 110px);
  overflow: hidden;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 70% 42%, rgba(200, 167, 93, 0.16), transparent 30%),
    #17120d;
  background-position: center;
  background-size: cover;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b0a08 0%, transparent 32%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.home-hero-content h1 {
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.98;
}

.home-hero-content span,
.home-info-grid span,
.home-contact span,
.home-contact-text {
  display: block;
  max-width: 620px;
  color: rgba(247, 242, 232, 0.74);
  font-size: 18px;
  line-height: 1.55;
}

.home-contact-text {
  margin: 14px 0 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.home-hero-actions {
  margin-top: 28px;
}

.home-section {
  padding: 34px min(8vw, 110px);
}

.home-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-section-title h2,
.home-info-grid h2,
.home-contact h2 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 500;
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 230px));
  justify-content: start;
  gap: 16px;
}

.home-project-grid.home-project-groups {
  grid-template-columns: 1fr;
  gap: 0;
}

.home-project-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(170px, 210px));
}

.featured-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.featured-carousel .home-project-grid {
  grid-auto-columns: minmax(180px, 220px);
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.featured-carousel .home-project-card {
  scroll-snap-align: start;
}

.carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 175, 92, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

.carousel-button[hidden] {
  display: none;
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.home-project-group {
  display: grid;
  gap: 14px;
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(212, 175, 92, 0.18);
}

.home-project-group:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.home-project-group h3 {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.home-project-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 92, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.home-project-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(200, 167, 93, 0.22);
}

.home-project-image {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #17120d;
  color: var(--accent);
  font-weight: 800;
}

.home-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-project-card strong,
.home-project-card small {
  display: block;
}

.home-project-card small {
  margin-top: 4px;
  color: var(--muted);
}

.project-intro {
  position: relative;
  min-height: calc(100vh - 90px);
  padding: 70px min(8vw, 110px);
  overflow: hidden;
}

.project-intro-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2)),
    #17120d;
  background-position: center;
  background-size: cover;
}

.project-intro-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, #0b0a08, transparent);
}

.project-intro-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.project-intro-logo img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid rgba(212, 175, 92, 0.22);
  border-radius: 12px;
  background: rgba(8, 8, 7, 0.64);
}

.project-intro-content > p {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-intro-content h2 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 400;
  line-height: 1;
}

.project-intro-content > span {
  color: rgba(247, 242, 232, 0.78);
  font-size: 18px;
}

.project-intro-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  gap: 14px;
}

.project-intro-room {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(212, 175, 92, 0.2);
  border-radius: 12px;
  background: rgba(8, 8, 7, 0.58);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.project-intro-room span {
  display: grid;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #17120d;
  color: var(--accent);
  font-weight: 800;
}

.project-intro-room img,
.project-intro-floor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-intro-room strong {
  font-size: 13px;
}

.project-intro-floor {
  width: min(260px, 100%);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 92, 0.2);
  border-radius: 12px;
  background: rgba(8, 8, 7, 0.58);
  aspect-ratio: 4 / 3;
}

.home-back-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-info-grid > div,
.home-contact {
  padding: 26px;
  border: 1px solid rgba(212, 175, 92, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.home-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 34px min(8vw, 110px) 70px;
}

.home-contact > div {
  min-width: 0;
}

.home-contact a {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.login-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.login-dialog[hidden] {
  display: none;
}

.login-card {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(212, 175, 92, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(35, 31, 26, 0.96), rgba(10, 10, 9, 0.98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.login-card > span {
  color: var(--muted);
  line-height: 1.5;
}

.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  padding-bottom: 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(5, 7, 8, 0.96), rgba(12, 12, 11, 0.9));
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(200, 167, 93, 0.18);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(200, 167, 93, 0.5);
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.brand h1,
.brand p,
.panel h2,
.topbar h2,
.eyebrow {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.2;
}

.brand p,
.hint,
.upload-zone small,
.eyebrow {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.sidebar .panel:nth-of-type(odd) {
  background: var(--panel-light);
}

.sidebar .panel:nth-of-type(even) {
  border-color: rgba(212, 175, 92, 0.18);
  background: var(--panel-dark);
  color: var(--text);
}

.sidebar .panel:nth-of-type(even) .hint,
.sidebar .panel:nth-of-type(even) .field span,
.sidebar .panel:nth-of-type(even) .room-item small,
.sidebar .panel:nth-of-type(even) .project-item small,
.sidebar .panel:nth-of-type(even) .hotspot-item small,
.sidebar .panel:nth-of-type(even) .upload-zone small {
  color: rgba(255, 255, 255, 0.68);
}

.sidebar .panel:nth-of-type(even) .ghost-button,
.sidebar .panel:nth-of-type(even) .toggle-button,
.sidebar .panel:nth-of-type(even) .room-item,
.sidebar .panel:nth-of-type(even) .project-item,
.sidebar .panel:nth-of-type(even) .hotspot-item,
.sidebar .panel:nth-of-type(even) .field input,
.sidebar .panel:nth-of-type(even) .field select,
.sidebar .panel:nth-of-type(even) .field textarea {
  border-color: rgba(212, 175, 92, 0.18);
  background: var(--panel-dark-soft);
  color: var(--text);
}

.sidebar .panel:nth-of-type(even) .room-item.active,
.sidebar .panel:nth-of-type(even) .project-item.active {
  border-color: var(--accent);
  background: rgba(200, 167, 93, 0.18);
}

.sidebar .panel:nth-of-type(even) .upload-zone {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--panel-dark-soft);
}

.sidebar .panel:nth-of-type(even) .upload-zone span {
  color: #fff;
}

.panel-title,
.panel-actions,
.topbar,
.viewer-tools,
.actions {
  display: flex;
  align-items: center;
}

.panel-title,
.topbar {
  justify-content: space-between;
  gap: 12px;
}

.panel-actions {
  gap: 6px;
}

.panel h2 {
  font-size: 14px;
  letter-spacing: 0;
}

.panel-title h2 {
  padding-left: 2px;
}

.room-list,
.hotspot-list,
.project-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  overflow: visible;
}

.room-item,
.project-item,
.hotspot-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.room-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(200, 167, 93, 0.18);
}

.project-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(200, 167, 93, 0.18);
}

.thumb {
  width: 66px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #171411;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.empty {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.room-item strong,
.project-item strong,
.hotspot-item strong {
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 14px;
  line-height: 1.25;
}

.room-item small,
.project-item small,
.hotspot-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.room-item > small,
.project-item > small {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(200, 167, 93, 0.16);
  color: var(--accent);
  font-weight: 800;
}

.sidebar .panel:nth-of-type(even) .room-item > small,
.sidebar .panel:nth-of-type(even) .project-item > small {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.room-item {
  grid-template-columns: 66px minmax(0, 1fr) auto;
}

.hotspot-item {
  grid-template-columns: minmax(0, 1fr);
}

.hotspot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.icon-button,
.toggle-button,
.primary-button,
.ghost-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  border: 1px solid rgba(200, 167, 93, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.primary-button {
  flex: 1;
  padding: 0 14px;
  background: linear-gradient(135deg, #d7b769, #a9853b);
  color: #16120d;
  font-weight: 700;
}

.full-button {
  width: 100%;
  margin-top: 12px;
}

.logo-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(212, 175, 92, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.publish-row span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.client-link-field {
  margin-top: 12px;
}

.client-link-field input {
  font-size: 12px;
}

.logo-preview {
  display: grid;
  min-height: 62px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 92, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.logo-actions {
  display: grid;
  gap: 8px;
}

.sidebar .panel:nth-of-type(even) .logo-preview {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--panel-dark-soft);
  color: rgba(255, 255, 255, 0.68);
}

.primary-button:hover,
.icon-button:hover {
  background: linear-gradient(135deg, #e1c57b, #b89243);
}

.ghost-button,
.toggle-button {
  padding: 0 14px;
  border: 1px solid rgba(212, 175, 92, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.toggle-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.upload-zone {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 18px;
  border: 1px dashed rgba(212, 175, 92, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.upload-zone input,
.import-button input,
.visually-hidden-file {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.upload-zone span {
  color: var(--accent);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(212, 175, 92, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.field input,
.field select {
  height: 40px;
}

.field textarea {
  min-height: 88px;
  padding-top: 10px;
  line-height: 1.45;
  resize: vertical;
}

.field select option {
  background: #171411;
  color: #f7f2e8;
}

.field select option:checked {
  background: #c8a75d;
  color: #16120d;
}

.compact-field {
  margin-top: 8px;
}

.compact-field select {
  height: 36px;
}

.actions {
  gap: 8px;
  margin-top: 12px;
}

.actions.stacked {
  display: grid;
}

.export-ready {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.export-ready[hidden] {
  display: none;
}

.export-ready span {
  color: var(--muted);
  font-size: 13px;
}

.export-ready .primary-button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.import-button {
  display: grid;
  place-items: center;
}

.secondary-upload {
  margin-top: 8px;
}

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 38%),
    rgba(11, 10, 8, 0.24);
}

.viewer-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  min-height: 0;
}

body.public-preview .app-shell {
  grid-template-columns: 1fr;
}

body.public-preview .sidebar {
  display: none;
}

body.public-preview .workspace {
  padding: 0;
}

body.public-preview .topbar {
  position: absolute;
  z-index: 4;
  right: 16px;
  top: 16px;
  min-height: 0;
  padding: 0;
}

body.public-preview .topbar > div:first-child {
  display: none;
}

body.public-preview #previewModeButton {
  display: none;
}

body.public-preview .viewer-tools {
  gap: 8px;
}

body.public-preview .viewer-tools .toggle-button,
body.public-preview .viewer-tools .icon-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 9, 8, 0.62);
  color: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(12px);
}

body.public-preview .viewer-wrap {
  height: 100vh;
  border-radius: 0;
}

body.public-preview .viewer-stage {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 24vw);
  gap: 0;
  height: 100vh;
}

body.public-preview .floorplan-panel {
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

body.public-preview .room-strip {
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 16px;
  border-color: rgba(212, 175, 92, 0.18);
  background: linear-gradient(180deg, rgba(9, 8, 7, 0.36), rgba(9, 8, 7, 0.72));
  backdrop-filter: blur(18px);
}

body.public-preview .room-strip-card {
  min-width: 180px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

body.public-preview .room-strip-thumb {
  height: 96px;
}

body.public-preview.floorplan-hidden .viewer-stage {
  grid-template-columns: minmax(0, 1fr);
}

body.public-preview.floorplan-hidden .floorplan-panel {
  display: none;
}

.topbar {
  min-height: 72px;
  padding: 0 4px 18px;
  color: var(--text);
}

.topbar h2 {
  font-size: 28px;
  font-weight: 500;
}

.viewer-tools {
  gap: 10px;
}

.viewer-wrap {
  position: relative;
  overflow: hidden;
  min-height: 0;
  touch-action: none;
  user-select: none;
  border: 1px solid rgba(212, 175, 92, 0.18);
  border-radius: 12px;
  background: #070707;
  box-shadow: var(--shadow);
}

.public-tour-hud {
  display: none;
}

body.public-preview .public-tour-hud {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: min(500px, calc(50% - 110px));
  padding: 16px 18px;
  border: 1px solid rgba(212, 175, 92, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.72), rgba(33, 29, 24, 0.46));
  color: var(--text);
  backdrop-filter: blur(18px);
}

.public-tour-hud p,
.public-tour-hud strong,
.public-tour-hud span {
  display: block;
}

.public-tour-hud p {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.public-tour-hud strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.public-tour-hud span {
  margin-top: 6px;
  color: rgba(247, 242, 232, 0.7);
  font-size: 13px;
}

.public-tour-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tour-control {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(212, 175, 92, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.tour-control:hover {
  border-color: var(--accent);
}

.viewer-logo {
  position: absolute;
  z-index: 6;
  right: 18px;
  top: 18px;
  display: grid;
  max-width: 160px;
  max-height: 78px;
  padding: 10px;
  place-items: center;
  border: 1px solid rgba(212, 175, 92, 0.22);
  border-radius: 10px;
  background: rgba(10, 9, 8, 0.74);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.viewer-logo[hidden] {
  display: none;
}

.viewer-logo img {
  display: block;
  max-width: 140px;
  max-height: 58px;
  object-fit: contain;
}

body.public-preview.public-has-logo .public-tour-hud {
  top: 18px;
  width: min(500px, calc(50% - 110px));
}

body.public-preview .viewer-logo {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  border-color: rgba(212, 175, 92, 0.28);
  background: rgba(8, 8, 7, 0.64);
  backdrop-filter: blur(14px);
}

.room-strip {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 92, 0.2);
  border-radius: 14px;
  background: rgba(10, 9, 8, 0.78);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.room-strip[hidden] {
  display: none;
}

.room-strip-title {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.room-strip-list {
  display: grid;
  grid-auto-columns: minmax(150px, 190px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.room-strip-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.room-strip-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(200, 167, 93, 0.35);
}

.room-strip-thumb {
  display: grid;
  height: 86px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #16120f;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.room-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-strip-card > span:last-child {
  overflow-wrap: anywhere;
  padding: 0 2px 2px;
  font-size: 13px;
  line-height: 1.25;
}

.floorplan-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 92, 0.18);
  border-radius: 12px;
  background: rgba(13, 12, 11, 0.82);
  box-shadow: var(--shadow);
}

.floorplan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(212, 175, 92, 0.16);
}

.floorplan-header span {
  color: var(--muted);
  font-size: 12px;
}

.floorplan-canvas {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #11100e;
  cursor: default;
}

.floorplan-canvas.has-image {
  cursor: zoom-in;
}

.floorplan-canvas.panning {
  cursor: grabbing;
}

.floorplan-canvas img {
  position: absolute;
  display: none;
  object-fit: contain;
}

.floorplan-canvas.has-image img {
  display: block;
}

.floor-point-overlay {
  position: absolute;
  inset: 0;
}

.floor-point {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: var(--accent);
  color: #16120d;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.floor-point.active {
  background: #f2d58c;
}

.floorplan-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.floorplan-canvas.has-image .floorplan-empty {
  display: none;
}

#viewerCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform-origin: var(--transition-x, 50%) var(--transition-y, 50%);
  transition:
    transform 520ms cubic-bezier(0.22, 0.75, 0.2, 1),
    filter 520ms ease;
  will-change: transform;
}

#viewerCanvas:active {
  cursor: grabbing;
}

body.room-is-transitioning #viewerCanvas {
  transform: scale(1.035);
  filter: brightness(0.74) saturate(1.05);
}

.hotspot-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  display: grid;
  min-width: 116px;
  max-width: 180px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.hotspot button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(200, 167, 93, 0.88);
  color: #16120d;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  will-change: transform;
}

.hotspot button:hover {
  transform: translateY(-1px) scale(1.02);
  background: #d7b767;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.hotspot i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  font-style: normal;
}

.hotspot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.room-transition {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at var(--transition-x, 50%) var(--transition-y, 50%), rgba(212, 175, 92, 0.26), transparent 0 150px),
    rgba(6, 5, 4, 0.36);
  color: var(--text);
  text-align: center;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.22, 0.75, 0.2, 1);
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.room-transition span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.room-transition strong {
  display: block;
  max-width: min(520px, 86vw);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.room-is-transitioning .room-transition {
  opacity: 1;
  transform: scale(1);
}

body.room-is-transitioning .hotspot-overlay,
body.room-is-transitioning .room-strip,
body.room-is-transitioning .floorplan-panel {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #viewerCanvas,
  .room-transition,
  .hotspot button {
    transition: none;
  }

  body.room-is-transitioning #viewerCanvas {
    transform: none;
  }
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(200, 167, 93, 0.22), transparent 34%),
    #0b0a08;
}

.empty-state strong {
  font-size: 28px;
}

.empty-state span {
  color: rgba(255, 255, 255, 0.72);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 92, 0.22);
  background: rgba(10, 9, 8, 0.94);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.room-strip:not([hidden]) ~ .toast {
  bottom: 210px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  body.public-preview {
    overflow: hidden;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .home-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .home-nav nav {
    flex-wrap: wrap;
  }

  .home-hero {
    min-height: 72vh;
    padding: 54px 20px;
  }

  .home-hero-actions,
  .home-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .home-primary,
  .home-secondary,
  .home-nav-button,
  .public-theme-switcher {
    width: 100%;
  }

  .home-section {
    padding: 26px 20px;
  }

  .site-editor-layout {
    grid-template-columns: 1fr;
    padding: 22px 18px 36px;
  }

  .site-editor-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-page-tab {
    text-align: center;
  }

  .home-project-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .featured-carousel {
    grid-template-columns: 1fr;
  }

  .featured-carousel .home-project-grid {
    grid-auto-columns: minmax(155px, 72vw);
  }

  .carousel-button {
    display: none;
  }

  .home-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }

  .home-contact {
    margin: 26px 20px 44px;
  }

  .project-intro {
    padding: 44px 20px;
  }

  .project-intro-rooms {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .sidebar {
    order: 2;
    max-height: none;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .workspace {
    min-height: 72vh;
    padding: 14px;
  }

  .viewer-stage {
    grid-template-columns: 1fr;
  }

  body.public-preview .viewer-stage {
    grid-template-columns: 1fr;
  }

  body.public-preview .floorplan-panel {
    position: fixed;
    z-index: 8;
    top: auto;
    right: 18px;
    bottom: 228px;
    left: auto;
    display: grid;
    width: 120px;
    height: 120px;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 92, 0.28);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.54);
  }

  body.public-preview .floorplan-canvas {
    display: grid;
    place-items: center;
    min-height: 0;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
      #11100e;
    cursor: pointer;
  }

  body.public-preview:not(.floorplan-expanded) .floorplan-canvas img {
    display: block !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;
    object-fit: contain;
    border-radius: 8px;
  }

  body.public-preview:not(.floorplan-expanded) .floor-point-overlay {
    pointer-events: none;
  }

  body.public-preview:not(.floorplan-expanded) .floor-point {
    min-width: 22px;
    height: 22px;
    padding: 0;
    font-size: 0;
  }

  body.public-preview .floorplan-panel::after {
    content: "Ťukni pre zväčšenie";
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    padding: 5px 6px;
    border-radius: 999px;
    background: rgba(8, 8, 7, 0.72);
    color: #fff;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }

  body.public-preview .floorplan-header {
    display: none;
  }

  body.public-preview.floorplan-expanded .floorplan-panel {
    top: 178px;
    right: 12px;
    bottom: 148px;
    left: 12px;
    width: auto;
    height: auto;
    border-radius: 14px;
  }

  body.public-preview.floorplan-expanded .floorplan-panel::after {
    content: "Ťukni pre zatvorenie";
  }

  body.public-preview.floorplan-expanded .floorplan-canvas {
    cursor: default;
  }

  body.public-preview.floorplan-expanded .floorplan-canvas img {
    display: block;
  }

  body.public-preview.floorplan-expanded .floorplan-header {
    display: flex;
  }

  body.public-preview.floorplan-hidden .floorplan-panel {
    display: none;
  }

  body.public-preview .public-tour-hud {
    left: 12px;
    width: fit-content;
    max-width: calc(100% - 24px);
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  body.public-preview.public-has-logo .public-tour-hud {
    top: 12px;
    right: auto;
    max-width: calc(100% - 154px);
  }

  body.public-preview.public-has-logo.floorplan-expanded .floorplan-panel {
    top: 244px;
  }

  body.public-preview .viewer-logo {
    top: 12px;
    right: 12px;
    left: auto;
    transform: none;
  }

  body.public-preview .viewer-logo img {
    max-width: 118px;
    max-height: 46px;
  }

  body.public-preview .public-tour-hud strong {
    font-size: 21px;
  }

  body.public-preview .public-tour-hud p {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  body.public-preview .public-tour-hud span {
    font-size: 12px;
  }

  body.public-preview .public-tour-actions {
    justify-content: flex-start;
  }

  body.public-preview .tour-control {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  body.public-preview .topbar {
    right: 12px;
    top: auto;
    bottom: 362px;
  }

  body.public-preview .room-strip {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  body.public-preview .room-strip-card {
    min-width: 145px;
  }

  body.public-preview .room-strip-thumb {
    height: 72px;
  }

  .floorplan-panel {
    min-height: 260px;
  }

  body.public-preview .floorplan-panel {
    min-height: 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-wrap {
    min-height: 58vh;
  }

  .room-strip {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 12px;
  }

  .room-strip-list {
    grid-auto-columns: minmax(128px, 150px);
  }

  .room-strip-thumb {
    height: 70px;
  }
}

body[data-theme="harmonia"] .home-nav,
body[data-theme="harmonia"].public-preview .public-tour-hud,
body[data-theme="harmonia"].public-preview .viewer-logo,
body[data-theme="harmonia"].public-preview .room-strip,
body[data-theme="harmonia"].public-preview .floorplan-panel,
body[data-theme="harmonia"] .project-intro-logo img,
body[data-theme="harmonia"] .login-card {
  border-color: rgba(42, 37, 33, 0.1);
  background: rgba(248, 245, 239, 0.78);
  color: #252321;
  box-shadow: 0 22px 70px rgba(62, 52, 42, 0.18);
  backdrop-filter: blur(20px);
}

body[data-theme="harmonia"] .home-project-card,
body[data-theme="harmonia"] .project-intro-room,
body[data-theme="harmonia"] .project-intro-floor,
body[data-theme="harmonia"] .site-editor-menu,
body[data-theme="harmonia"] .site-editor-card,
body[data-theme="harmonia"] .site-page-tab,
body[data-theme="harmonia"] .public-theme-switcher,
body[data-theme="harmonia"] .sidebar,
body[data-theme="harmonia"] .panel,
body[data-theme="harmonia"] .topbar,
body[data-theme="harmonia"] .floorplan-header,
body[data-theme="harmonia"] .tour-control,
body[data-theme="harmonia"] .ghost-button,
body[data-theme="harmonia"] .toggle-button,
body[data-theme="harmonia"] .icon-button {
  border-color: rgba(42, 37, 33, 0.12);
  background: rgba(248, 245, 239, 0.76);
  color: #252321;
}

body[data-theme="harmonia"] .project-intro-content > span,
body[data-theme="harmonia"] .public-tour-hud span,
body[data-theme="harmonia"] .home-project-card small,
body[data-theme="harmonia"] .floorplan-header span,
body[data-theme="harmonia"] .home-contact-text,
body[data-theme="harmonia"] .empty-state span {
  color: rgba(37, 35, 33, 0.64);
}

body[data-theme="harmonia"] .project-intro-room span,
body[data-theme="harmonia"] .home-project-image,
body[data-theme="harmonia"] .room-strip-thumb,
body[data-theme="harmonia"] .floorplan-canvas {
  background: #ddd3c6;
  color: #5f5142;
}

body[data-theme="harmonia"].public-preview .public-tour-hud {
  background: rgba(248, 245, 239, 0.76);
}

body[data-theme="harmonia"].public-preview .viewer-logo {
  background: rgba(248, 245, 239, 0.7);
}

body[data-theme="harmonia"].public-preview .room-strip {
  background: rgba(248, 245, 239, 0.72);
}

body[data-theme="harmonia"] .viewer-wrap {
  border-color: rgba(42, 37, 33, 0.12);
  background: #d9d0c3;
}

body[data-theme="harmonia"] .public-theme-switcher span {
  color: rgba(37, 35, 33, 0.58);
}
