:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef4f3;
  --ink: #17202a;
  --muted: #657281;
  --line: #dfe5ea;
  --primary: #0f766e;
  --primary-ink: #ffffff;
  --accent: #b45309;
  --blue: #1d4ed8;
  --danger: #b91c1c;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

button,
.button,
.nav-link,
.tenant-card,
.tour-row {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: #edf7f6;
  background: #112422;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark,
.tenant-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary-ink);
  background: var(--primary);
  border-radius: 8px;
  font-weight: 800;
}

.brand-mark img,
.tenant-mark img,
.tenant-context-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tenant-logo {
  padding: 5px;
  background: #ffffff;
}

.brand-title {
  margin: 0;
  font-size: 1.04rem;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: #a9c3bf;
  font-size: 0.82rem;
}

.tenant-select {
  width: 100%;
  padding: 11px 12px;
  color: #0f1f1d;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.tenant-context {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 10px;
  align-items: center;
  margin: 18px 0 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.tenant-context-logo {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: span 2;
  place-items: center;
  flex: 0 0 auto;
  padding: 5px;
  color: var(--primary-ink);
  background: #ffffff;
  border-radius: 8px;
  font-weight: 800;
}

.tenant-context span {
  color: #a9c3bf;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tenant-context strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-label {
  display: block;
  margin: 18px 0 8px;
  color: #a9c3bf;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: #d9ebe8;
  border-radius: 8px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #8fd7cf;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  color: #ffffff;
}

.logout-button {
  width: 100%;
  justify-content: flex-start;
  color: #d9ebe8;
  background: transparent;
  border: 0;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.button.primary,
button.primary {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: var(--primary);
}

.button.danger,
button.danger {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card,
.panel {
  padding: 18px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status,
.pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--surface-2);
}

.status.active,
.status.published,
.status.closed,
.status.resolved {
  color: #065f46;
  background: #d1fae5;
}

.status.trial,
.status.new,
.status.open,
.status.draft {
  color: #92400e;
  background: #fef3c7;
}

.status.suspended,
.status.sold,
.status.archived,
.status.lost {
  color: #991b1b;
  background: #fee2e2;
}

.form {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 7px;
}

label {
  color: #34404c;
  font-size: 0.83rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
}

.checkbox-row input {
  width: auto;
}

.section-label {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wide-field {
  grid-column: 1 / -1;
}

.input-prefix {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfd8df;
  border-radius: 8px;
}

.input-prefix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.input-prefix span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0 12px;
  color: var(--primary);
  background: #ecfdf5;
  border-right: 1px solid #cfd8df;
  font-size: 0.8rem;
  font-weight: 900;
}

.input-prefix input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-prefix input:focus {
  box-shadow: none;
}

.checkbox-card {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  align-self: end;
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox-card input {
  width: auto;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.creator-main,
.room-results,
.asset-grid {
  display: grid;
  gap: 14px;
}

.creator-step {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.step-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-title > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 800;
}

.step-title p {
  margin: 5px 0 0;
}

.upload-zone {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: #f8fafc;
  border: 2px dashed #b7c5cf;
  border-radius: 8px;
}

.upload-zone.dragging {
  border-color: var(--primary);
  background: #ecfdf5;
}

.asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.capture-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.capture-room-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capture-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.camera-permission-screen {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.camera-permission-screen h2 {
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

.permission-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.permission-checklist span {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.capture-session-panel {
  position: sticky;
  top: 18px;
}

.capture-room-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.capture-room-pick {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  background: #ffffff;
}

.capture-room-pick.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.capture-start-panel {
  max-width: 760px;
}

.progress.compact {
  height: 8px;
  margin-top: 8px;
}

.asset-card,
.room-result {
  display: grid;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-card {
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 12px;
}

.asset-card.is-panorama {
  border-color: #8ed8cf;
  background: #f2fbf9;
}

.asset-thumb {
  display: grid;
  min-height: 96px;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #e6edf1;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

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

.asset-body {
  min-width: 0;
}

.asset-body strong {
  display: block;
  overflow-wrap: anywhere;
}

.asset-meta,
.asset-actions,
.job-head,
.creator-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.asset-actions select {
  min-width: 150px;
  flex: 1 1 150px;
}

.asset-actions .asset-file-type {
  flex: 0 1 170px;
}

.asset-type-locked {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 11px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #8ed8cf;
  border-radius: 8px;
  font-weight: 800;
}

.asset-actions button {
  min-height: 38px;
  padding: 8px 10px;
}

.job-panel {
  display: grid;
  gap: 12px;
}

.job-head {
  justify-content: space-between;
}

.progress {
  overflow: hidden;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.job-log {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-log p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.job-log span {
  display: block;
  color: #334155;
  font-weight: 800;
}

.room-result {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px;
}

.room-result img {
  height: 68px;
  background: #e6edf1;
  border-radius: 8px;
}

.creator-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.creator-kpis {
  margin: 14px 0;
}

.creator-kpis span {
  display: grid;
  min-width: 88px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 8px;
}

.creator-kpis strong {
  font-size: 1.25rem;
}

.actions.vertical {
  display: grid;
}

.tour-editor {
  display: grid;
  gap: 16px;
}

.tour-summary-strip,
.editor-stage-card,
.editor-side-card,
.editor-scenes-card,
.editor-details-card,
.editor-assets-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tour-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.tour-summary-strip div {
  min-width: 0;
}

.tour-summary-strip span,
.creator-room-select small,
.scene-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.tour-summary-strip strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: stretch;
}

.editor-stage-card,
.editor-side-card,
.editor-scenes-card,
.editor-details-card,
.editor-assets-card {
  padding: 14px;
}

.editor-stage-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.editor-toolbar,
.side-card-head,
.editor-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.editor-toolbar {
  margin-bottom: 12px;
}

.editor-toolbar h2,
.side-card-head h3 {
  margin: 0;
}

.editor-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor-stage {
  position: relative;
  min-height: clamp(500px, 48vh, 620px);
  flex: 1;
  overflow: hidden;
  background: #d9e2e7 var(--stage-image) center/cover no-repeat;
  border-radius: 8px;
}

.editor-panorama,
.editor-panorama .pnlm-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.editor-panorama {
  z-index: 1;
}

.editor-panorama .pnlm-load-box,
.public-panorama .pnlm-load-box {
  display: none !important;
}

.brand-panorama-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  width: 178px;
  min-height: 132px;
  place-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(223, 229, 234, 0.88);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 13, 18, 0.2);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand-panorama-loader.loaded {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.98);
}

.brand-panorama-loader strong {
  color: var(--muted);
  font-size: 0.86rem;
}

.brand-panorama-loader .loading-bar {
  width: 108px;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  background: #eef4f3;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented-control button {
  min-height: 34px;
  padding: 7px 12px;
  background: transparent;
  border-color: transparent;
}

.segmented-control button.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.stage-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.84);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.stage-controls {
  position: absolute;
  right: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(17, 24, 39, 0.84);
  border-radius: 8px;
  transform: translateX(50%);
}

.stage-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.scene-context-menu {
  position: absolute;
  z-index: 8;
  display: grid;
  min-width: 178px;
  padding: 6px;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.3);
}

.scene-context-menu[hidden] {
  display: none;
}

.scene-context-menu button {
  justify-content: flex-start;
  min-height: 36px;
  padding: 8px 10px;
  color: #ffffff;
  background: transparent;
  border-color: transparent;
  border-radius: 6px;
  text-align: left;
}

.scene-context-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.scene-context-menu button.danger {
  color: #fecaca;
}

.scene-context-menu button.danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.hotspot-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  font-weight: 900;
}

.hotspot-dot.nav {
  background: #16a34a;
}

.hotspot-dot.info {
  top: 32%;
  right: 30%;
  background: #8b5cf6;
}

.hotspot-dot.one {
  top: 38%;
  left: 35%;
}

.hotspot-dot.two {
  top: 46%;
  right: 12%;
}

.editable-hotspot-anchor {
  z-index: 5;
}

.editable-hotspot {
  position: static;
  z-index: 3;
  min-height: 36px;
  max-width: 220px;
  padding: 4px 12px 4px 4px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.34);
  cursor: grab;
  font-size: 0.84rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  touch-action: none;
  backdrop-filter: blur(12px);
}

.editable-hotspot.navigate {
  background: rgba(15, 118, 110, 0.78);
}

.editable-hotspot:active {
  cursor: grabbing;
}

.editable-hotspot > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot-editor-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px minmax(340px, 0.9fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hotspot-editor-panel[hidden] {
  display: none;
}

.hotspot-icon-field {
  min-width: 0;
}

.hotspot-icon-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
  gap: 7px;
  padding: 6px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hotspot-icon-choice {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  gap: 4px;
  padding: 7px 5px;
  color: #52606f;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 900;
}

.hotspot-icon-choice .hotspot-icon {
  width: 19px;
  height: 19px;
}

.hotspot-icon-choice span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot-icon-choice:hover,
.hotspot-icon-choice.active {
  color: var(--primary);
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.34);
  transform: none;
}

.hotspot-icon-choice.active {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.editor-room-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.creator-room-select {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.room-select-main {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.creator-room-select.active,
.creator-room-select:hover,
.scene-card.active,
.scene-card:hover {
  border-color: rgba(15, 118, 110, 0.38);
  background: #eef7f4;
}

.creator-room-select img,
.room-select-main > span:first-child {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  background: #e6edf1;
}

.room-select-main > span:first-child {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.room-remove-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  flex: 0 0 auto;
  color: var(--danger);
  background: transparent;
  border-color: transparent;
}

.room-remove-button .nav-icon {
  color: currentColor;
}

.creator-room-select strong {
  display: block;
}

.editable-room-name {
  cursor: text;
}

.room-name-input {
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-weight: 800;
}

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

.editor-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.compact-upload {
  display: grid;
  grid-template-columns: auto auto minmax(130px, 1fr);
  gap: 8px;
  align-items: center;
}

.compact-upload .muted {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-strip {
  display: grid;
  grid-auto-columns: minmax(150px, 180px);
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.scene-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 8px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.scene-card.dragging {
  opacity: 0.58;
}

.scene-card.drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.scene-card img,
.scene-card strong {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  background: #e6edf1;
}

.scene-card strong {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.scene-card > span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
}

.scene-card-footer {
  display: grid;
  gap: 8px;
}

.editable-scene-name {
  cursor: text;
}

.scene-name-input {
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-weight: 800;
}

.scene-card-actions {
  position: relative;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.scene-card-actions button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: var(--primary);
  background: #eef7f4;
}

.scene-card-actions .nav-icon {
  color: currentColor;
}

.scene-card-menu {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 4;
  min-width: 150px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.scene-card-menu[hidden] {
  display: none;
}

.scene-card-menu button {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--danger);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.asset-grid.compact {
  grid-template-columns: 1fr;
  max-height: 330px;
  overflow: auto;
  margin-top: 12px;
}

.asset-grid.compact .asset-card {
  grid-template-columns: 88px minmax(0, 1fr);
}

.asset-grid.compact .asset-thumb {
  min-height: 78px;
}

.room-results.compact {
  margin-top: 12px;
}

.editor-details-card summary {
  cursor: pointer;
  font-weight: 900;
}

.editor-details-card .form {
  margin-top: 16px;
}

.property-details-form {
  gap: 18px;
}

.property-form-section {
  display: grid;
  gap: 12px;
}

.property-form-section + .property-form-section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cover-editor {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cover-preview {
  display: grid;
  min-height: 112px;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.cover-preview img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.cover-editor-body {
  display: grid;
  gap: 8px;
}

.property-danger-zone {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 13, 18, 0.62);
}

.confirm-dialog {
  display: grid;
  width: min(440px, 100%);
  gap: 14px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(7, 13, 18, 0.24);
}

.confirm-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.live-capture-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(7, 13, 18, 0.78);
}

.live-capture-shell {
  display: grid;
  width: min(480px, 100%);
  height: min(900px, 100vh);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  color: #ffffff;
  background: #071014;
}

.live-capture-top,
.live-capture-footer {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(7, 16, 20, 0.94);
}

.live-capture-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.live-capture-top span {
  display: block;
  margin-top: 3px;
  color: #a7b5bd;
  font-size: 0.88rem;
}

.live-capture-top button,
.live-capture-footer button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.live-camera-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #000000;
}

.live-camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.guide-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 33%, rgba(255, 255, 255, 0.25) 33.3%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.25) 66.3%, transparent 67%),
    linear-gradient(0deg, transparent 33%, rgba(255, 255, 255, 0.25) 33.3%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.25) 66.3%, transparent 67%);
}

.guide-frame {
  position: absolute;
  inset: 18% 10%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.14);
}

.guide-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.guide-badge,
.capture-instruction {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.guide-badge.good,
.capture-instruction.good {
  color: #ecfdf5;
  background: rgba(5, 150, 105, 0.78);
}

.guide-badge.warning,
.capture-instruction.warning,
.capture-instruction.info {
  color: #fffbeb;
  background: rgba(146, 64, 14, 0.78);
}

.capture-instruction.error {
  color: #fef2f2;
  background: rgba(185, 28, 28, 0.82);
}

.capture-instruction {
  position: absolute;
  right: 14px;
  bottom: 18px;
  left: 14px;
  text-align: center;
  font-size: 1.02rem;
}

.camera-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 22px;
  color: #ffffff;
  text-align: center;
  background: #101820;
}

.capture-mode-toggle,
.capture-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mode-button.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.capture-shutter {
  width: 68px;
  height: 68px;
  min-height: 68px;
  justify-self: center;
  padding: 0;
  background: #ffffff !important;
  border: 6px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px #071014;
}

.capture-review {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
}

.capture-review img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.tour-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tour-row img,
.thumb {
  width: 92px;
  height: 66px;
  object-fit: cover;
  background: #dfe5ea;
  border-radius: 8px;
}

.empty {
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.notice {
  padding: 12px 14px;
  color: #164e63;
  background: #cffafe;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
}

.page-loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(15, 118, 110, 0.08), transparent 34%), var(--bg);
}

.loading-card {
  display: grid;
  width: min(260px, 100%);
  justify-items: center;
  gap: 10px;
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.14);
  animation: loading-card-in 220ms ease-out both;
}

.loading-logo {
  animation: loading-logo-pulse 1100ms ease-in-out infinite;
}

.loading-card > span:not(.brand-mark) {
  color: var(--muted);
  font-size: 0.88rem;
}

.loading-bar {
  position: relative;
  width: 128px;
  height: 4px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.loading-bar::after {
  position: absolute;
  inset: 0;
  width: 48%;
  content: "";
  background: var(--primary);
  border-radius: inherit;
  animation: loading-bar-slide 900ms ease-in-out infinite;
}

@keyframes loading-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-logo-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.26);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(15, 118, 110, 0);
  }
}

@keyframes loading-bar-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(230%);
  }
}

.notice a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: underline;
}

.error {
  padding: 12px 14px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.tenant-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tenant-card {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.tenant-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.marketing-page,
.auth-page {
  min-height: 100vh;
  background: #f7f8fa;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 229, 234, 0.72);
  backdrop-filter: blur(14px);
}

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

.marketing-nav nav a:not(.button) {
  color: var(--muted);
  font-weight: 800;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 40px));
  grid-template-rows: auto auto auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  padding: 72px max(24px, calc((100vw - 1180px) / 2)) 62px;
  color: #ffffff;
  background: #112422 url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2200&q=82") center/cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.02);
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 13, 18, 0.34), rgba(7, 13, 18, 0.76)),
    linear-gradient(90deg, rgba(7, 13, 18, 0.64), rgba(7, 13, 18, 0.18) 52%, rgba(7, 13, 18, 0.72));
}

.landing-hero > * {
  position: relative;
  z-index: 2;
}

.hero-motion-grid,
.hero-motion-scan,
.hero-cubes {
  pointer-events: none;
}

.hero-motion-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 72%, transparent);
  animation: hero-grid-drift 18s linear infinite;
}

.hero-motion-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 0 44%, rgba(184, 255, 235, 0.2) 49%, transparent 54% 100%);
  transform: translateX(-72%);
  animation: hero-scan 7s ease-in-out infinite;
}

.hero-cubes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-cube {
  --cube-size: 76px;
  --cube-left: 50%;
  --cube-delay: 0s;
  --cube-duration: 12s;
  --cube-opacity: 0.38;
  position: absolute;
  left: var(--cube-left);
  top: calc(-1 * var(--cube-size));
  width: var(--cube-size);
  height: var(--cube-size);
  opacity: var(--cube-opacity);
  transform-style: preserve-3d;
  animation: hero-cube-fall var(--cube-duration) linear infinite;
  animation-delay: var(--cube-delay);
}

.hero-cube,
.hero-cube i,
.hero-cube::before,
.hero-cube::after {
  border: 1px solid rgba(114, 255, 229, 0.42);
  box-shadow: inset 0 0 22px rgba(114, 255, 229, 0.08), 0 0 18px rgba(15, 118, 110, 0.18);
}

.hero-cube i,
.hero-cube::before,
.hero-cube::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-cube i {
  transform: translate(18%, -18%);
}

.hero-cube::before {
  transform: skewY(-28deg) translate(48%, -24%) scaleX(0.58);
  transform-origin: left center;
}

.hero-cube::after {
  transform: skewX(-28deg) translate(24%, -48%) scaleY(0.58);
  transform-origin: center bottom;
}

.hero-cube-1 {
  --cube-left: 6%;
  --cube-size: 54px;
  --cube-delay: -1s;
  --cube-duration: 14s;
}

.hero-cube-2 {
  --cube-left: 16%;
  --cube-size: 88px;
  --cube-delay: -7s;
  --cube-duration: 17s;
  --cube-opacity: 0.32;
}

.hero-cube-3 {
  --cube-left: 31%;
  --cube-size: 62px;
  --cube-delay: -11s;
  --cube-duration: 15s;
}

.hero-cube-4 {
  --cube-left: 68%;
  --cube-size: 52px;
  --cube-delay: -4s;
  --cube-duration: 13s;
}

.hero-cube-5 {
  --cube-left: 78%;
  --cube-size: 74px;
  --cube-delay: -9s;
  --cube-duration: 18s;
  --cube-opacity: 0.28;
}

.hero-cube-6 {
  --cube-left: 91%;
  --cube-size: 92px;
  --cube-delay: -13s;
  --cube-duration: 19s;
}

.hero-cube-7 {
  --cube-left: 10%;
  --cube-size: 78px;
  --cube-delay: -16s;
  --cube-duration: 20s;
  --cube-opacity: 0.26;
}

.hero-cube-8 {
  --cube-left: 84%;
  --cube-size: 44px;
  --cube-delay: -2s;
  --cube-duration: 12s;
}

.landing-copy h1 {
  max-width: 820px;
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
  font-size: clamp(2.25rem, 4.7vw, 4.25rem);
  line-height: 1.03;
}

.landing-copy p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.65;
}

.landing-copy .eyebrow {
  display: inline-grid;
  min-height: 34px;
  align-items: center;
  justify-self: center;
  padding: 0 12px;
  color: #b6f1eb;
  background: rgba(15, 118, 110, 0.18);
  border: 1px solid rgba(182, 241, 235, 0.28);
  border-radius: 999px;
  text-align: center;
}

.hero-search {
  display: grid;
  justify-self: center;
  width: min(980px, 100%);
  gap: 14px;
  margin-top: 10px;
}

.hero-search-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.hero-search-tabs button {
  min-height: 34px;
  padding: 0 0 6px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 1.05rem;
}

.hero-search-tabs button.active {
  color: #ffffff;
  border-bottom-color: var(--primary);
}

.hero-search-fields {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(260px, 1.6fr) 210px;
  gap: 20px;
  padding: 28px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(7, 13, 18, 0.24);
}

.hero-search-fields:focus-within {
  box-shadow: 0 26px 80px rgba(15, 118, 110, 0.34);
}

.hero-search-fields label {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.hero-search-fields select,
.hero-search-fields input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero-search-button {
  align-self: end;
  min-height: 58px;
  background: var(--primary);
  border-color: var(--primary);
  font-size: 1.02rem;
}

.hero-bottom-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: center;
  margin-top: 0;
}

.hero-bottom-link a {
  min-height: 42px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.hero-bottom-link a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

@keyframes hero-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 176px 88px, 176px 88px;
  }
}

@keyframes hero-scan {
  0%,
  18% {
    transform: translateX(-72%);
  }

  58%,
  100% {
    transform: translateX(72%);
  }
}

@keyframes hero-cube-fall {
  0% {
    transform: translate3d(-20px, -18vh, 0) rotate(0deg) skewY(-4deg);
  }

  55% {
    transform: translate3d(18px, 62vh, 0) rotate(58deg) skewY(-4deg);
  }

  100% {
    transform: translate3d(-12px, 112vh, 0) rotate(118deg) skewY(-4deg);
  }
}


.search-shell {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.search-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.search-breadcrumb a {
  color: var(--muted);
}

.search-breadcrumb a::after {
  content: ">";
  margin-left: 10px;
  color: #94a3b8;
}

.search-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.search-page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
}

.search-page-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.search-page-head strong {
  color: var(--primary);
}

.search-mode-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
}

.search-mode-tabs button {
  min-height: 36px;
  padding: 0 0 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-weight: 800;
}

.search-mode-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.search-filter-panel {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(210px, 1.5fr) minmax(190px, 1.4fr) minmax(120px, 0.8fr) minmax(130px, 0.8fr) minmax(120px, 0.8fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-filter-panel select,
.search-filter-panel input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.search-filter-chips {
  display: grid;
  grid-column: 1 / span 4;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.search-filter-chips button,
.search-save-card button {
  min-height: 46px;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid var(--line);
}

.search-filter-chips button.active,
.search-filter-chips button:hover {
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.35);
  transform: none;
}

.search-filter-actions {
  display: grid;
  grid-column: 5 / span 2;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: center;
}

.search-filter-actions a {
  justify-self: end;
  color: var(--muted);
  font-weight: 800;
}

.search-filter-actions button {
  min-height: 52px;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.search-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.search-results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.search-results-toolbar label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.search-results-toolbar select {
  min-width: 170px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.search-result-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.search-result-media {
  position: relative;
  height: 154px;
  background: #dfe7e6;
}

.search-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-media > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.search-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
}

.search-result-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.search-result-body > strong {
  font-size: 1.18rem;
}

.search-result-body h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.search-result-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.search-result-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.search-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.search-result-actions .button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.search-result-actions .button:not(.primary) {
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.42);
}

.search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.search-map-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #e6edf1;
  border: 10px solid #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-map-card::before {
  display: none;
}

.search-google-map {
  width: 100%;
  min-height: 540px;
  height: 100%;
  background: #dfe7e6;
}

.google-map-popup {
  display: grid;
  gap: 5px;
  min-width: 190px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.google-map-popup strong {
  font-size: 0.95rem;
}

.google-map-popup span {
  color: var(--muted);
  font-size: 0.84rem;
}

.google-map-popup a {
  color: var(--primary);
  font-weight: 900;
}

.search-save-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-save-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.search-save-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.demo-browser {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 32, 42, 0.16);
}

.demo-browser img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.demo-browser div {
  padding: 22px;
}

.marketing-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--motion-delay, 0ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.buy-section {
  position: relative;
  overflow: hidden;
}

.buy-section > .section-heading,
.buy-section > .grid {
  position: relative;
  z-index: 1;
}

.motion-window {
  position: absolute;
  top: 8px;
  right: 4%;
  width: min(300px, 34%);
  aspect-ratio: 0.78;
  opacity: 0.22;
  pointer-events: none;
  clip-path: polygon(50% 0, 100% 86%, 74% 100%, 58% 62%, 42% 62%, 26% 100%, 0 86%);
  animation: motion-window-drift 8s ease-in-out infinite;
}

.motion-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: motion-window-image 10s ease-in-out infinite alternate;
}

@keyframes motion-window-drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(18px);
  }
}

@keyframes motion-window-image {
  from {
    transform: scale(1.08) translateX(-2%);
  }

  to {
    transform: scale(1.16) translateX(3%);
  }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(1.65rem, 4vw, 3rem);
}

.benefit-card,
.audience-card,
.price-card {
  min-height: 154px;
}

.benefit-card,
.step,
.audience-card,
.price-card {
  position: relative;
  overflow: hidden;
}

.benefit-card::before,
.step::before,
.audience-card::before,
.price-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(15, 118, 110, 0.1) 48%, transparent 58% 100%);
  transform: translateX(-112%);
  transition: transform 680ms ease;
}

.benefit-card:hover,
.step:hover,
.audience-card:hover,
.price-card:hover {
  transform: translateY(-3px);
}

.benefit-card:hover::before,
.step:hover::before,
.audience-card:hover::before,
.price-card:hover::before {
  transform: translateX(112%);
}

.benefit-card strong,
.audience-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.benefit-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 16px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step {
  min-height: 142px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 900;
}

.property-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
}

.property-demo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.agency-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  color: #ffffff;
  background: #112422;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agency-entry h2,
.agency-entry p {
  max-width: 740px;
}

.agency-entry .eyebrow {
  color: #b6f1eb;
}

.agency-entry .muted {
  color: rgba(255, 255, 255, 0.72);
}

.agency-entry .button {
  flex: 0 0 auto;
}

.agency-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 36px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 52px 0;
}

.agency-hero h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 1;
}

.agency-hero p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.agency-hero-preview {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 32, 42, 0.16);
}

.agency-hero-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.agency-hero-preview div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.agency-hero-preview span {
  color: var(--muted);
  font-weight: 800;
}

.agency-hero-preview strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.sales-feature-card {
  min-height: 170px;
}

.sales-feature-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.agency-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agency-flow div {
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agency-flow span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 900;
}

.price-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.price-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.price-card .button {
  width: 100%;
  margin-top: 14px;
}

.final-cta {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 34px auto 70px;
  padding: 32px;
  color: #ffffff;
  background: #112422;
  border-radius: 8px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.75fr);
  gap: 34px;
  width: min(1040px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  align-items: center;
  margin: 0 auto;
  padding: 36px 0 60px;
}

.auth-shell h1 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.auth-panel {
  padding: 24px;
}

.register-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 246px;
  align-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.08);
}

.choice-card::before {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 54px;
  height: 54px;
  content: "";
  background: rgba(15, 118, 110, 0.1);
  border-radius: 8px;
}

.choice-card:hover {
  border-color: rgba(15, 118, 110, 0.42);
  transform: translateY(-2px);
}

.choice-kicker {
  width: max-content;
  padding: 6px 9px;
  color: var(--primary);
  background: #e8f7f4;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-card strong {
  display: block;
  max-width: 220px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.choice-action {
  color: var(--primary);
  font-weight: 900;
}

.agency-choice {
  color: #ffffff;
  background: #112422;
  border-color: #112422;
}

.agency-choice::before {
  background: rgba(255, 255, 255, 0.12);
}

.agency-choice .choice-kicker {
  color: #112422;
  background: #b6f1eb;
}

.agency-choice p {
  color: rgba(255, 255, 255, 0.72);
}

.agency-choice .choice-action {
  color: #b6f1eb;
}

.register-login-link {
  display: inline-block;
  margin-top: 14px;
}

.dev-login-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dev-login-actions button {
  width: 100%;
}

.dev-balloon {
  position: absolute;
  z-index: 90;
  padding: 9px 12px;
  color: #ffffff;
  background: #17202a;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.22);
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dev-balloon::after {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  content: "";
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.dev-balloon.visible {
  opacity: 1;
  transform: translate(-50%, -16px);
}

.dashboard-alert {
  margin-bottom: 16px;
}

.dashboard-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}

.lead-panel {
  border-top: 4px solid var(--primary);
}

.viewer-settings {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.code-textarea {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
}

.api-test-page {
  min-height: 100vh;
  padding: 30px;
  background: #f6f7f9;
}

.api-test-shell {
  display: grid;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.api-test-head {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.api-test-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.api-test-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.api-test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.api-test-card {
  display: grid;
  gap: 18px;
}

.api-file-drop {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 190px;
  padding: 22px;
  text-align: center;
  background: #f8fafb;
  border: 1px dashed #9ab7b3;
  border-radius: 8px;
  cursor: pointer;
}

.api-file-drop strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-file-drop small {
  color: var(--muted);
}

.api-code {
  min-height: 150px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  color: #e8f7f4;
  background: #101f1d;
  border: 1px solid #203d39;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.api-response {
  min-height: 260px;
}

.api-test-result {
  display: grid;
  gap: 14px;
}

.api-result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-result-pills span:not(.status) {
  padding: 7px 10px;
  background: var(--surface-2);
  border-radius: 8px;
  color: var(--muted);
}

.api-assets-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.api-assets-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.api-assets-list span,
.api-assets-list a {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.86rem;
}

.tour-renderer {
  margin-top: 18px;
}

.room-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.26fr);
  min-height: clamp(640px, 68vh, 820px);
  overflow: hidden;
  background: #111827;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 32, 42, 0.14);
}

.room-viewer:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
}

.room-viewer:fullscreen .room-stage,
.room-viewer:fullscreen .public-panorama {
  min-height: 100vh;
}

.room-stage {
  position: relative;
  min-height: clamp(640px, 68vh, 820px);
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

.public-panorama,
.public-panorama .pnlm-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.public-panorama {
  z-index: 0;
}

.room-stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--room-image) center/cover no-repeat;
  transform: scale(1.01);
}

.room-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(5, 12, 20, 0.08), rgba(5, 12, 20, 0.28));
  pointer-events: none;
}

.room-brand {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(17, 36, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.room-fullscreen {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  min-height: 38px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.room-brand span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hotspot {
  position: absolute;
  z-index: 2;
  min-height: 34px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.92);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.hotspot-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hotspot-marker-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.hotspot-label {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-hotspot-anchor {
  z-index: 5 !important;
}

.public-hotspot {
  z-index: 5;
  gap: 8px;
  min-height: 42px;
  padding: 4px 12px 4px 4px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(12px);
}

.public-hotspot-anchor .public-hotspot {
  position: relative;
}

.room-stage > .public-hotspot {
  position: absolute;
}

.hotspot.info {
  background: rgba(17, 24, 39, 0.58);
}

.hotspot:hover {
  transform: translate(-50%, calc(-50% - 1px));
}

.public-hotspot:hover .hotspot-marker-icon {
  color: #ffffff;
  background: var(--primary);
}

.room-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
}

.room-list {
  display: grid;
  gap: 8px;
}

.room-hotspot-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.room-hotspot-action {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
}

.room-hotspot-action .hotspot-icon {
  flex: 0 0 17px;
  color: var(--primary);
}

.room-hotspot-action > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-hotspot-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 24px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.lead-panel .eyebrow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-tab {
  justify-content: flex-start;
}

.room-tab.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.panorama-viewer .room-viewer,
.external-viewer .tour-frame {
  border-radius: 0 0 8px 8px;
}

.provider-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-credit a {
  text-decoration: underline;
}

.public-page {
  min-height: 100vh;
  background: #ffffff;
}

.public-hero {
  position: relative;
  display: grid;
  min-height: 76vh;
  align-items: end;
  isolation: isolate;
  color: #ffffff;
  background: #17202a;
}

.public-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--hero-image) center/cover no-repeat;
}

.public-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(5, 12, 20, 0.2), rgba(5, 12, 20, 0.76));
}

.public-nav,
.public-hero-content,
.public-section,
.public-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.public-section {
  width: min(1440px, calc(100% - 32px));
}

.public-nav {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateX(-50%);
}

.public-tenant {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.public-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 120px 0 52px;
}

.public-hero h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.98;
}

.public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.public-meta .pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.price-block {
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.price-block strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.public-section {
  padding: 38px 0;
}

.public-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(288px, 0.24fr);
  gap: 22px;
  align-items: start;
}

.tour-frame {
  overflow: hidden;
  background: #111827;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tour-frame iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.lead-box {
  position: sticky;
  top: 18px;
}

.public-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.tenant-hero {
  min-height: 64vh;
}

.hero-action {
  align-self: end;
  white-space: nowrap;
}

.tenant-listings-section {
  padding-top: 44px;
}

.tenant-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tenant-listing-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
}

.tenant-listing-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tenant-listing-card > div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.tenant-listing-card h3,
.tenant-listing-card p {
  margin: 0;
}

.tenant-listing-card p {
  color: var(--muted);
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: #ffffff;
  background: #17202a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .main {
    padding: 20px;
  }

  .grid.four,
  .grid.five,
  .grid.three,
  .split,
  .steps,
  .landing-hero,
  .agency-hero,
  .auth-shell,
  .property-demo,
  .onboarding-grid,
  .room-viewer,
  .public-content,
  .public-hero-content,
  .tenant-listings-grid,
  .creator-layout,
  .tour-summary-strip,
  .editor-workspace,
  .editor-lower-grid,
  .capture-flow,
  .tenant-list {
    grid-template-columns: 1fr;
  }

  .agency-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-cta,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-box {
    position: static;
  }

  .hero-search-fields {
    grid-template-columns: 1fr;
  }

  .search-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-filter-chips,
  .search-filter-actions {
    grid-column: 1 / -1;
  }

  .search-layout {
    grid-template-columns: 1fr;
  }

  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-side {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  }

  .search-map-card {
    min-height: 360px;
  }

  .search-google-map {
    min-height: 340px;
  }

  .creator-side,
  .editor-side-card,
  .capture-session-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .public-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-nav {
    position: static;
    display: flex;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
  }

  .marketing-brand {
    min-width: 0;
    gap: 10px;
  }

  .marketing-brand .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.86rem;
  }

  .marketing-brand strong {
    overflow: hidden;
    max-width: 132px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketing-nav nav {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
  }

  .marketing-nav nav a:not([href$="/login"]):not(.button) {
    display: none;
  }

  .marketing-nav nav a[href$="/login"] {
    font-size: 0.88rem;
  }

  .marketing-nav nav .button {
    min-height: 38px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .marketing-nav nav .button.primary {
    width: 104px;
    overflow: hidden;
    font-size: 0;
    text-overflow: ellipsis;
  }

  .marketing-nav nav .button.primary::after {
    content: "Comecar";
    font-size: 0.88rem;
  }

  .landing-hero {
    min-height: auto;
    grid-template-rows: auto auto auto auto auto;
    gap: 12px;
    padding: 22px 16px 26px;
  }

  .landing-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.08;
  }

  .landing-copy p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .landing-copy .eyebrow {
    margin-top: 0;
    font-size: 0.72rem;
  }

  .landing-copy p:not(.eyebrow) {
    display: none;
  }

  .hero-search-fields {
    gap: 10px;
    padding: 12px;
  }

  .hero-search-fields select,
  .hero-search-fields input,
  .hero-search-button {
    min-height: 46px;
  }

  .hero-search-fields label {
    gap: 6px;
  }

  .hero-bottom-link {
    gap: 8px;
  }

  .hero-bottom-link a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .hero-search-tabs {
    gap: 18px;
  }

  .hero-search-tabs button {
    min-height: 30px;
    font-size: 0.98rem;
  }

  .hero-motion-grid,
  .hero-motion-scan,
  .hero-cubes,
  .motion-window {
    display: none;
  }

  .marketing-section {
    width: min(100% - 28px, 520px);
    padding: 28px 0;
  }

  .agency-entry {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .agency-entry .button {
    width: 100%;
  }

  .agency-hero {
    width: min(100% - 28px, 520px);
    min-height: auto;
    gap: 22px;
    padding: 30px 0 24px;
  }

  .agency-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .agency-hero p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.5;
  }

  .agency-hero .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agency-hero-preview div {
    align-items: flex-start;
    flex-direction: column;
  }

  .agency-flow,
  .register-choice {
    grid-template-columns: 1fr;
  }

  .agency-flow div,
  .sales-feature-card,
  .choice-card {
    min-height: 0;
  }

  .choice-card {
    padding: 18px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading .eyebrow,
  .sell-section .eyebrow,
  .lead-panel .eyebrow {
    display: none;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
    line-height: 1.15;
  }

  .buy-section .benefit-card {
    min-height: 0;
    padding: 14px;
  }

  .benefit-card > span {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }

  .buy-section .benefit-card:nth-child(n+4),
  .audience-section {
    display: none;
  }

  .benefit-card p,
  .sell-section .muted,
  .price-card p:nth-of-type(n+2),
  .search-save-card p,
  .lead-panel > .muted,
  .lead-message-field {
    display: none;
  }

  .steps {
    gap: 8px;
  }

  .step {
    display: grid;
    min-height: 0;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
  }

  .step span {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
  }

  .property-demo {
    padding: 0;
  }

  .property-demo.card {
    overflow: hidden;
  }

  .property-demo > div {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
  }

  .plans-section .grid.three {
    gap: 10px;
  }

  .price-card {
    min-height: 0;
    padding: 16px;
  }

  .price-card h3 {
    margin-bottom: 8px;
  }

  .final-cta {
    width: min(100% - 28px, 520px);
    margin: 18px auto 42px;
    padding: 20px;
  }

  .search-shell {
    width: min(100% - 28px, 520px);
    padding: 24px 0 44px;
  }

  .search-breadcrumb {
    margin-bottom: 12px;
  }

  .search-page-head {
    margin-bottom: 14px;
  }

  .search-page-head h1 {
    font-size: 2rem;
  }

  .search-page-head p,
  .search-results-toolbar p,
  .topbar .muted,
  .brand-subtitle,
  .tenant-context span,
  .dashboard-cta p,
  .tour-row .muted {
    display: none;
  }

  .search-filter-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .search-filter-panel label:nth-of-type(n+4),
  .search-filter-chips {
    display: none;
  }

  .search-filter-chips {
    grid-template-columns: 1fr 1fr;
  }

  .search-filter-actions {
    grid-template-columns: 1fr;
  }

  .search-filter-actions a {
    justify-self: center;
    order: 2;
  }

  .search-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-results-toolbar label {
    align-items: stretch;
    flex-direction: column;
  }

  .search-results-grid,
  .search-side {
    grid-template-columns: 1fr;
  }

  .search-result-media {
    height: 180px;
  }

  .search-map-card {
    min-height: 300px;
  }

  .search-google-map {
    min-height: 280px;
  }

  .search-save-card {
    padding: 20px;
  }

  .nav,
  .grid.two,
  .form-grid,
  .detail-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .tour-row {
    grid-template-columns: 1fr;
  }

  .tour-row img,
  .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .public-hero {
    min-height: 68vh;
  }

  .public-nav {
    gap: 10px;
  }

  .public-nav .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .public-nav .actions #shareTour {
    display: none;
  }

  .public-nav .actions .button,
  .public-nav .actions button {
    min-height: 40px;
    padding: 8px 10px;
  }

  .public-hero-content {
    gap: 14px;
    padding: 104px 0 34px;
  }

  .public-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
  }

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

  .public-meta .pill:nth-child(n+3) {
    display: none;
  }

  .price-block {
    padding: 12px;
  }

  .price-block strong {
    font-size: 1.25rem;
  }

  .public-section {
    padding: 24px 0;
  }

  .public-content .panel {
    padding: 14px;
  }

  .public-content main > .panel p.muted {
    display: none;
  }

  .detail-grid span:nth-child(n+4) {
    display: none;
  }

  .lead-box .panel {
    display: grid;
    gap: 12px;
  }

  .tour-frame iframe {
    min-height: 420px;
  }

  .room-viewer,
  .room-stage {
    min-height: 440px;
  }

  .editor-stage {
    min-height: 320px;
  }

  .editor-toolbar,
  .side-card-head,
  .hotspot-editor-panel,
  .compact-upload,
  .property-danger-zone {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hotspot-icon-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cover-editor {
    grid-template-columns: 1fr;
  }

  .stage-controls {
    right: 12px;
    left: 12px;
    justify-content: center;
    transform: none;
  }

  .hotspot span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .marketing-nav nav a[href$="/login"] {
    display: none;
  }

  .marketing-brand strong {
    max-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-video {
    display: none;
  }

  .hero-cubes {
    display: none;
  }
}
