:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-soft: #edf2f6;
  --surface-strong: #dce5ec;
  --ink: #10161f;
  --muted: #5f6d7e;
  --line: #d6e0e8;
  --teal: #0d4b5d;
  --teal-dark: #072d3a;
  --coral: #c95438;
  --gold: #b78122;
  --blue: #2c74d8;
  --shadow: 0 18px 50px rgba(16, 22, 31, 0.14);
  --shadow-soft: 0 10px 28px rgba(16, 22, 31, 0.08);
  --radius: 8px;
  font-family:
    "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
}

/* Resultados Interactivos */
.control-tab-label-compact {
  display: none;
}

.interactive-results-dashboard {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.results-header,
.results-header-actions,
.results-subtabs,
.results-filters,
.results-participant-detail > header {
  display: flex;
  align-items: center;
}

.results-header {
  justify-content: space-between;
  gap: 20px;
}

.results-header h3,
.results-header p,
.results-participant-detail h3,
.results-participant-detail p {
  margin: 0;
}

.results-header p,
.results-participant-detail p {
  color: var(--muted);
}

.results-header-actions {
  gap: 8px;
  flex: 0 0 auto;
}

.results-filters {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) minmax(140px, 1fr) minmax(170px, 1.2fr) minmax(130px, .7fr) minmax(130px, .7fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 24, 42, .74);
}

.results-filters label,
.results-group-form label,
.interactive-identity-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.results-filters label > span,
.results-group-form label > span,
.interactive-identity-form label > span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.results-subtabs {
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.results-subtabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111c30;
  color: var(--muted);
  white-space: nowrap;
}

.results-subtabs button.active {
  border-color: var(--teal);
  background: rgba(19, 184, 176, .13);
  color: var(--ink);
}

.results-subtabs svg,
.results-header-actions svg {
  width: 17px;
  height: 17px;
}

.results-content,
.results-stack,
.results-overview {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.results-loading,
.results-empty {
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
}

.results-empty.compact {
  min-height: 120px;
}

.results-empty > svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.results-kpi-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(100px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.results-kpi-grid article {
  min-width: 0;
  padding: 14px;
  background: #111c30;
  border-right: 1px solid var(--line);
}

.results-kpi-grid article:last-child {
  border-right: 0;
}

.results-kpi-grid span,
.results-kpi-grid strong {
  display: block;
}

.results-kpi-grid span {
  color: var(--muted);
  font-size: 11px;
}

.results-kpi-grid strong {
  margin-top: 5px;
  font-size: 22px;
}

.results-two-column,
.results-three-column,
.results-groups-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.results-mini-chart,
.results-score-chart {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 150px;
  padding-top: 14px;
}

.results-mini-chart > span,
.results-score-chart > span {
  position: relative;
  display: flex;
  flex: 1;
  align-items: end;
  justify-content: center;
  gap: 2px;
  height: 100%;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.results-mini-chart i,
.results-mini-chart b,
.results-score-chart i {
  width: min(10px, 42%);
  min-height: 0;
  border-radius: 3px 3px 0 0;
  background: var(--teal);
}

.results-mini-chart b {
  background: var(--gold);
}

.results-mini-chart small,
.results-score-chart small {
  position: absolute;
  bottom: -18px;
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.results-score-chart {
  gap: 12px;
}

.results-score-chart i {
  width: min(42px, 70%);
}

.results-score-chart b {
  position: absolute;
  top: 0;
  font-size: 10px;
}

.results-groups-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.results-panel,
.results-group-form {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111c30;
}

.results-group-form {
  display: grid;
  align-content: start;
  gap: 12px;
}

.results-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(100px, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.results-bar-row > span,
.results-question-row > span,
.results-question-detail > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.results-bar-row small,
.results-question-row small,
.results-question-detail span {
  color: var(--muted);
}

.results-bar-row > div {
  height: 7px;
  border-radius: 4px;
  background: #07101e;
  overflow: hidden;
}

.results-bar-row > div i {
  display: block;
  height: 100%;
  background: var(--teal);
}

.results-question-row,
.results-question-detail,
.results-group-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.results-question-detail {
  align-items: flex-start;
}

.results-distribution {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.results-distribution span,
.results-status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.results-status.completed { color: #74f1cb; border-color: rgba(45, 212, 191, .45); }
.results-status.started,
.results-status.in_progress { color: #f4cf75; border-color: rgba(244, 207, 117, .45); }
.results-status.pending { color: var(--muted); }
.results-status.abandoned { color: #ff9b87; border-color: rgba(255, 121, 95, .45); }

.results-historical > div,
.results-group-list article > div {
  display: grid;
  gap: 3px;
}

.results-historical span,
.results-group-list article span {
  color: var(--muted);
}

.results-group-list .results-group-card {
  display: grid;
  align-items: stretch;
  gap: 10px;
}

.results-group-card-head,
.results-group-card-head > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.results-group-card-head > span {
  display: grid;
  justify-content: start;
  gap: 2px;
}

.results-group-card-head small {
  color: var(--muted);
}

.results-group-card .results-roster-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.results-roster-actions .text-button {
  width: 100%;
  justify-content: center;
}

.results-roster-help {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.results-roster-help strong {
  color: var(--text);
}

.results-group-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, .8fr) minmax(160px, 1fr);
  gap: 8px;
}

.results-group-fields label {
  display: grid;
  gap: 5px;
}

.results-group-fields label > span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.results-participant-detail > header {
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 12px;
}

.results-participant-detail > header > div {
  flex: 1;
}

.results-participant-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.results-participant-summary article {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  background: #111c30;
}

.results-participant-summary article:last-child {
  border-right: 0;
}

.results-participant-summary span,
.results-participant-summary strong {
  display: block;
}

.results-participant-summary span {
  color: var(--muted);
  font-size: 10px;
}

.results-participant-summary strong {
  margin-top: 5px;
  font-size: 18px;
}

.results-participant-detail .section-title > div {
  display: grid;
  gap: 3px;
}

.results-participant-detail .section-title > div > span {
  color: var(--muted);
  font-size: 11px;
}

.results-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  color: var(--muted);
}

.results-pagination > div {
  display: flex;
  gap: 6px;
}

.results-attempt-responses {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.results-attempt-responses summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  cursor: pointer;
  color: var(--ink);
}

.results-attempt-responses summary small {
  color: var(--muted);
}

.results-attempt-responses summary > span {
  display: grid;
  gap: 2px;
}

.results-response-history {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.results-attempt-responses article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  background: rgba(5, 12, 24, .4);
}

.results-attempt-responses article + article {
  margin-top: 3px;
}

.results-attempt-responses article.correct { border-left-color: #2dd4bf; }
.results-attempt-responses article.incorrect { border-left-color: #ff795f; }
.results-attempt-responses article > span { display: grid; gap: 3px; }
.results-attempt-responses article small { color: var(--muted); }
.results-attempt-responses article b { font-size: 10px; }
.results-response-outcome { display: grid; flex: 0 0 auto; gap: 3px; justify-items: end; text-align: right; }

.collaborator-results-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.interactive-sync-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 28px 0;
  color: var(--muted);
  font-size: 11px;
}

.interactive-sync-state svg {
  width: 15px;
  height: 15px;
}

.interactive-sync-state .lucide-loader-circle {
  animation: interactive-results-spin 1s linear infinite;
}

@keyframes interactive-results-spin {
  to { transform: rotate(360deg); }
}

.interactive-sync-state.ready { color: #77e9d6; }
.interactive-sync-state.warning,
.interactive-sync-error { color: #f4cf75; }

.interactive-sync-state button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.interactive-identity-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
  padding: 28px;
}

.interactive-identity-form h3,
.interactive-identity-form p {
  margin: 0;
}

.interactive-identity-form > div:first-child {
  display: grid;
  gap: 5px;
}

@media (max-width: 1199px) {
  .control-tab-label-full { display: none; }
  .control-tab-label-compact { display: inline; }
  .results-kpi-grid { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
  .results-kpi-grid article:nth-child(4) { border-right: 0; }
  .results-kpi-grid article:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .results-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results-participant-summary { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .results-participant-summary article:nth-child(3) { border-right: 0; }
  .results-participant-summary article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 759px) {
  .results-header { align-items: flex-start; }
  .results-header p { display: none; }
  .results-header-actions .text-button span { display: none; }
  .results-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-filters label:nth-child(3) { grid-column: 1 / -1; }
  .results-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-group-card .results-roster-actions { grid-template-columns: 1fr; }
  .results-kpi-grid article { border-bottom: 1px solid var(--line); }
  .results-kpi-grid article:nth-child(even) { border-right: 0; }
  .results-two-column,
  .results-three-column,
  .results-groups-layout { grid-template-columns: 1fr; }
  .results-bar-row { grid-template-columns: minmax(110px, 1fr) 42px; }
  .results-bar-row > div { grid-column: 1 / -1; grid-row: 2; }
  .results-question-detail { display: grid; }
  .results-group-fields { grid-template-columns: 1fr; }
  .results-distribution { justify-content: flex-start; }
  .results-participant-detail > header { display: grid; grid-template-columns: auto 1fr; }
  .results-participant-detail > header .danger { grid-column: 1 / -1; }
  .results-participant-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-participant-summary article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .results-participant-summary article:nth-child(3) { border-right: 1px solid var(--line); }
  .results-participant-summary article:nth-child(even) { border-right: 0; }
  .results-participant-summary article:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .results-attempt-responses article { align-items: flex-start; }
  .interactive-identity-form { padding: 22px 18px; }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(44, 116, 216, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 75, 93, 0.1), transparent 26%),
    linear-gradient(180deg, #f9fbfd 0%, #edf2f6 100%);
  overflow: hidden;
}

body.login-page {
  overflow: auto;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(44, 116, 216, 0.2), transparent 20%),
    linear-gradient(180deg, #07090d 0%, #0b1018 100%);
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(11, 16, 24, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: #eef4fa;
}

.login-brand {
  min-width: 0;
  margin-bottom: 6px;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(201, 84, 56, 0.32);
  border-radius: var(--radius);
  background: rgba(201, 84, 56, 0.08);
  color: #ffd0c3;
  font-size: 13px;
}

.login-submit {
  width: 100%;
}

.login-meta {
  margin: 0;
  color: rgba(224, 233, 242, 0.64);
  font-size: 12px;
  line-height: 1.4;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-columns: 280px minmax(0, 1fr) 420px;
  width: 100%;
  min-width: 0;
  height: 100vh;
  background: var(--bg);
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(22, 33, 36, 0.05);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(16, 22, 31, 0.18);
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.app-version {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.brand span:not(.brand-mark) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.login-brand strong,
.login-brand span {
  color: #f5f8fc;
}

.login-brand .app-version {
  color: rgba(224, 233, 242, 0.72);
}

.login-brand span:not(.brand-mark) {
  color: rgba(224, 233, 242, 0.72);
}

.login-brand .brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.project-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

#sessionRole,
#sessionUser {
  width: 132px;
}

label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input,
select,
textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 36px;
  padding: 0 10px;
}

textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 117, 104, 0.13);
}

#projectName {
  width: min(42vw, 420px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: rgba(250, 252, 252, 0.74);
}

.left-panel {
  border-right: 1px solid var(--line);
}

.right-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 10px;
  border-left: 1px solid var(--line);
}

.right-panel .panel-section {
  margin: 0;
  padding: 12px;
}

.right-panel .section-body {
  min-width: 0;
}

.right-panel .field-row,
.right-panel .field-row.three {
  grid-template-columns: 1fr;
}

.right-panel .inline-actions,
.right-panel .inspector-actions {
  align-items: stretch;
}

.right-panel .inline-actions .text-button,
.right-panel .inspector-actions .text-button {
  width: 100%;
  justify-content: flex-start;
}

.inspector-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(214, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.grouped-inspector-nav {
  grid-template-columns: 1fr !important;
  align-items: stretch;
}

.inspector-tab-group {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.36);
}

.inspector-tab-group-label {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control-tab-entry {
  justify-content: center;
}

.grouped-inspector-nav .inspector-tab {
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding-inline: 8px;
}

.grouped-inspector-nav .inspector-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.inspector-tab svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.inspector-tab span {
  min-width: 0;
  line-height: 1.2;
}

.inspector-tab.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.inspector-tab:hover {
  border-color: #b8c5c1;
  background: var(--surface-soft);
}

.inspector-tab.active:hover {
  border-color: var(--teal);
  background: var(--teal);
}

.inspector-panels {
  min-width: 0;
  min-height: 0;
}

.branding-entry-shell {
  padding: 10px 10px 0;
}

.left-panel .branding-entry-shell {
  padding: 0;
}

.branding-entry-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.18), transparent 42%),
    rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
}

.left-panel .branding-entry-card {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 14px;
  border-color: rgba(45, 212, 191, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 42%),
    rgba(15, 23, 42, 0.74);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18);
}

.left-panel .branding-entry-status {
  grid-column: 2;
  justify-self: start;
}

.reveal360-entry-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 44%),
    rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  text-align: left;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18);
  cursor: pointer;
}

.reveal360-entry-card:hover,
.reveal360-entry-card:focus-visible {
  border-color: rgba(94, 234, 212, 0.68);
  transform: translateY(-1px);
}

.reveal360-entry-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(14, 165, 233, 0.9));
  color: #02131c;
}

.reveal360-entry-icon svg {
  width: 20px;
  height: 20px;
}

.reveal360-entry-copy {
  min-width: 0;
}

.reveal360-entry-copy strong,
.reveal360-entry-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal360-entry-copy strong {
  color: #f8fafc;
  font-size: 14px;
}

.reveal360-entry-copy small {
  margin-top: 3px;
  color: #a8b7cc;
  font-size: 11px;
}

.reveal360-entry-status {
  grid-column: 2;
  justify-self: start;
  padding: 5px 9px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 999px;
  color: #99f6e4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.layers360-entry-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(244, 193, 82, 0.34);
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(244, 193, 82, 0.17), transparent 44%), rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  text-align: left;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18);
  cursor: pointer;
}

.layers360-entry-card:hover,
.layers360-entry-card:focus-visible {
  border-color: rgba(250, 204, 21, 0.72);
  transform: translateY(-1px);
}

.layers360-entry-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2c45f, #20bfb4);
  color: #07121b;
}

.layers360-entry-icon svg { width: 20px; height: 20px; }
.layers360-entry-copy { min-width: 0; }
.layers360-entry-copy strong,
.layers360-entry-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers360-entry-copy strong { color: #f8fafc; font-size: 14px; }
.layers360-entry-copy small { margin-top: 3px; color: #a8b7cc; font-size: 11px; }
.layers360-entry-status {
  grid-column: 2;
  justify-self: start;
  padding: 5px 9px;
  border: 1px solid rgba(244, 193, 82, 0.38);
  border-radius: 999px;
  color: #fde68a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.branding-entry-card:hover {
  border-color: rgba(45, 212, 191, 0.52);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.24), transparent 46%),
    rgba(30, 41, 59, 0.84);
}

.left-panel .branding-entry-card:hover,
.left-panel .branding-entry-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.72);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.26), transparent 44%),
    rgba(15, 23, 42, 0.78);
  transform: translateY(-1px);
}

.branding-entry-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

.left-panel .branding-entry-icon {
  display: inline-grid;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(8, 145, 178, 0.9));
  color: #02131c;
}

.branding-entry-icon svg {
  width: 18px;
  height: 18px;
}

.left-panel .branding-entry-icon svg {
  width: 20px;
  height: 20px;
}

.branding-entry-copy {
  min-width: 0;
}

.branding-entry-copy strong,
.branding-entry-copy small {
  display: block;
}

.branding-entry-copy strong {
  color: #f8fafc;
  font-size: 13px;
}

.branding-entry-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.branding-entry-status {
  padding: 5px 8px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  color: #99f6e4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inspector-panel {
  display: none;
}

.inspector-panel.active {
  display: block;
}

.panel-section {
  margin: 12px;
  padding: 14px;
  border: 1px solid rgba(214, 224, 221, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title h2,
.panel-section h2,
.panel-section h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.icon-button,
.text-button,
.segmented button,
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.icon-button {
  width: 36px;
  padding: 0;
}

.icon-button.small {
  width: 32px;
  height: 32px;
}

.text-button {
  padding: 0 12px;
  font-weight: 700;
}

.icon-button:hover,
.text-button:hover,
.segmented button:hover,
.tool-button:hover {
  border-color: #b8c5c1;
  background: var(--surface-soft);
}

.icon-button svg,
.text-button svg,
.segmented svg,
.tool-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.text-button.primary,
.segmented button.active,
.tool-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.project-list,
.scene-list,
.hotspot-list {
  display: grid;
  gap: 8px;
}

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

.project-item,
.scene-item,
.hotspot-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-item {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.project-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal), #102023);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

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

.empty-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.empty-list strong,
.empty-list span {
  display: block;
}

.empty-list .text-button {
  justify-self: start;
}

.quick-help {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(237, 242, 246, 0.72);
}

.quick-help strong {
  color: var(--ink);
}

.panel-section:empty {
  display: none;
}

.accordion-section .section-body {
  overflow: visible;
  transition:
    max-height 180ms ease,
    opacity 180ms ease,
    margin-top 180ms ease;
  max-height: 10000px;
  opacity: 1;
}

.accordion-section.collapsed .section-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.section-toggle svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.left-panel .section-toggle .accordion-chevron {
  margin-left: auto;
  color: #91a2b8;
  transition: transform 180ms ease, color 180ms ease;
}

.left-panel .section-title .section-toggle {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.left-panel .accordion-section:not(.collapsed) .accordion-chevron {
  color: #5eead4;
  transform: rotate(180deg);
}

.left-panel .accordion-section.collapsed .section-title {
  margin-bottom: 0;
  padding-bottom: 14px;
}

.left-panel .accordion-section.collapsed .section-body {
  padding-bottom: 0;
}

.section-toggle h2,
.section-toggle h3 {
  flex: 1 1 auto;
  text-align: left;
}

.panel-disclosure {
  overflow: hidden;
}

.panel-disclosure > summary {
  position: relative;
  display: block;
  margin: 0;
  padding-right: 22px;
  cursor: pointer;
  list-style: none;
}

.panel-disclosure > summary::-webkit-details-marker {
  display: none;
}

.panel-disclosure > summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 160ms ease;
}

.panel-disclosure[open] > summary::after {
  transform: translateY(-40%) rotate(225deg);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.panel-disclosure > .section-body {
  margin-top: 12px;
}

.project-item,
.scene-item,
.hotspot-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 14px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.project-item:hover,
.scene-item:hover,
.hotspot-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 33, 36, 0.08);
}

.project-item.active,
.scene-item.active,
.hotspot-item.active {
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.item-main {
  min-width: 0;
}

.item-main strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-main span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-actions .icon-button {
  width: 30px;
  height: 30px;
}

.scene-thumb {
  width: 54px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.scene-thumb-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.scene-thumb-wrap > svg {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(8, 12, 14, 0.76);
  color: #fff;
}

.viewer-column {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #0b0f10;
}

.viewer-column:fullscreen {
  grid-template-rows: auto minmax(0, 1fr);
}

.viewer-column:fullscreen .viewer-toolbar {
  padding: 14px;
}

.viewer-column:fullscreen .floorplan-overlay {
  width: min(300px, 26vw);
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 26, 29, 0.96) 0%, rgba(14, 21, 24, 0.92) 100%);
  backdrop-filter: blur(18px);
  z-index: 2;
}

body.public-mode .viewer-toolbar {
  font-family: var(--public-font, "Roboto", sans-serif);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--coral) 34%, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--teal-dark) 82%, #050809) 0%,
      color-mix(in srgb, var(--teal) 78%, #0a1114) 58%,
      color-mix(in srgb, var(--coral) 34%, var(--teal)) 100%
    );
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

body.public-mode .public-brand {
  flex: 1 1 320px;
  text-align: var(--public-text-align, left);
}

body.public-mode .public-actions {
  flex: 1 1 auto;
  justify-content: center;
}

body.public-mode .view-controls {
  flex: 0 0 auto;
  margin-left: auto;
}

.segmented,
.tool-strip,
.view-controls,
.public-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f6f6;
}

body.public-mode .public-brand {
  gap: 14px;
  padding: 12px 14px;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--teal) 58%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--teal-dark) 76%, rgba(255, 255, 255, 0.04)) 0%,
      color-mix(in srgb, var(--teal) 54%, rgba(255, 255, 255, 0.08)) 100%
    );
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.public-brand img,
.public-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.logo-solid {
  display: block;
  background: var(--logo-solid-color, #ffffff);
  -webkit-mask-image: var(--logo-mask);
  mask-image: var(--logo-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body.public-mode .public-brand img,
body.public-mode .public-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

body.public-mode .public-brand .logo-solid {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.public-brand img {
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px;
}

.public-brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.public-brand strong,
.public-brand span {
  display: block;
  line-height: 1.2;
}

.public-brand > div {
  min-width: 0;
}

.public-brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.public-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-mode .public-brand strong {
  font-size: clamp(16px, calc(var(--public-title-size, 40px) * 0.42), 24px);
  font-weight: 800;
  letter-spacing: 0;
}

.public-brand span {
  margin-top: 3px;
  color: rgba(233, 238, 238, 0.72);
  font-size: 12px;
}

body.public-mode .public-brand span {
  color: rgba(244, 248, 250, 0.82);
  font-size: clamp(12px, calc(var(--public-body-size, 15px) * 0.9), 16px);
}

.public-brand-meta {
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.public-brand-description {
  display: -webkit-box;
  margin-top: 1px;
  overflow: hidden;
  color: rgba(244, 248, 250, 0.9);
  font-size: clamp(12px, calc(var(--public-body-size, 15px) * 0.86), 15px);
  line-height: 1.35;
  text-wrap: pretty;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.public-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #eef5f5;
  font-weight: 700;
  text-decoration: none;
}

body.public-mode .public-cta {
  min-height: 40px;
  padding: 0 14px;
  border-color: color-mix(in srgb, var(--coral) 24%, rgba(255, 255, 255, 0.18));
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

body.public-mode .public-cta:nth-child(2n) {
  background: color-mix(in srgb, var(--coral) 16%, #ffffff);
  color: color-mix(in srgb, var(--coral) 72%, #43160e);
}

.public-cta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

body.public-mode .public-cta:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

body.public-mode .public-actions {
  flex-wrap: wrap;
  justify-content: center;
}

.viewer-column[data-viewer-style="showcase"] .viewer-toolbar {
  position: absolute;
  top: 18px;
  right: 38px;
  left: auto;
  z-index: 12;
  width: auto;
  max-width: min(520px, calc(100% - 444px));
  min-height: 62px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 17, 15, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.viewer-column[data-viewer-style="showcase"] .public-brand {
  display: none;
}

.viewer-column[data-viewer-style="showcase"] .public-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 22px;
}

.viewer-column[data-viewer-style="showcase"] .public-brand {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.16) 0%,
      color-mix(in srgb, var(--teal) 22%, rgba(255, 255, 255, 0.08)) 100%
    );
  border-color: color-mix(in srgb, var(--coral) 22%, rgba(255, 255, 255, 0.22));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.viewer-column[data-viewer-style="showcase"] .public-cta {
  min-height: 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

.viewer-column[data-viewer-style="showcase"] .public-cta:nth-child(2n) {
  background: transparent;
  color: #fff;
}

.viewer-column[data-viewer-style="showcase"] .public-cta svg {
  width: 22px;
  height: 22px;
}

.public-menu-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.public-menu-button svg {
  width: 30px;
  height: 30px;
}

.viewer-column[data-viewer-style="showcase"] .view-controls {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 12;
  display: grid;
  gap: 16px;
  transform: translateY(-50%);
}

.viewer-column[data-viewer-style="showcase"] .view-controls .tool-button {
  width: 54px;
  height: 54px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(14, 14, 13, 0.42);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.viewer-column[data-viewer-style="showcase"] .view-controls .tool-button span {
  display: none;
}

.viewer-column[data-viewer-style="showcase"] .view-controls .tool-button svg {
  width: 22px;
  height: 22px;
}

.viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
  right: 26px;
  bottom: 154px;
  z-index: 11;
  width: min(236px, 18vw);
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(14, 14, 13, 0.68);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.viewer-column[data-viewer-style="showcase"] .scene-transition-card {
  border-color: color-mix(in srgb, var(--coral) 28%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--teal-dark) 82%, rgba(255, 255, 255, 0.06)) 0%,
      color-mix(in srgb, var(--coral) 20%, rgba(255, 255, 255, 0.08)) 100%
    );
}

.public-showcase-panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(396px, 28vw);
  padding: 42px 60px 36px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 11, 10, 0.94) 0%, rgba(10, 11, 10, 0.86) 72%, rgba(10, 11, 10, 0.55) 100%);
  box-shadow: 24px 0 54px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.public-showcase-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.public-showcase-brand img {
  display: block;
  max-width: min(188px, 80%);
  max-height: 132px;
  object-fit: contain;
}

.public-showcase-brand span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid color-mix(in srgb, var(--coral) 56%, #d9c394);
  color: color-mix(in srgb, var(--coral) 56%, #d9c394);
  font-size: 36px;
  font-weight: 800;
}

.public-showcase-copy {
  display: grid;
  gap: 12px;
}

.public-showcase-eyebrow {
  color: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}

.public-showcase-copy strong {
  color: #fff;
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.06;
  text-transform: uppercase;
}

.public-showcase-copy em {
  color: color-mix(in srgb, var(--coral) 44%, #d9be78);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.public-showcase-copy p {
  margin: 14px 0 0;
  max-width: 29ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.52;
}

.public-showcase-features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-showcase-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.public-showcase-features svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #fff;
}

.public-showcase-actions {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.public-showcase-start,
.public-showcase-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.public-showcase-start {
  padding: 0 20px;
  background: color-mix(in srgb, var(--coral) 42%, #d5b866);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.public-showcase-gallery {
  justify-content: flex-start;
  height: 34px;
  padding: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  text-transform: none;
}

.public-showcase-sales {
  display: grid;
  gap: 8px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.public-showcase-sales strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.public-scene-strip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 12;
  display: grid;
  grid-auto-columns: minmax(210px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  padding-left: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  pointer-events: auto;
}

.public-scene-card {
  position: relative;
  display: grid;
  min-width: 0;
  height: 164px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(9, 9, 9, 0.62);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.public-scene-card.active {
  border-color: color-mix(in srgb, var(--coral) 52%, #d9be78);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--coral) 34%, transparent),
    0 16px 30px rgba(0, 0, 0, 0.3);
}

.public-scene-thumb,
.public-scene-thumb img {
  position: absolute;
  inset: 0;
}

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

.public-scene-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 34%, rgba(0, 0, 0, 0.72) 100%);
}

.public-scene-thumb svg,
.public-scene-thumb b {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
}

.public-scene-card strong {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 0 12px 14px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.viewer-column[data-viewer-style="operational"] .viewer-toolbar {
  border-bottom-color: rgba(148, 164, 184, 0.16);
  background: linear-gradient(180deg, #10181e 0%, #0a1015 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.viewer-column[data-viewer-style="operational"] .public-brand {
  border-radius: 10px;
  border-color: rgba(148, 164, 184, 0.22);
  border-left: 4px solid var(--coral);
  background: rgba(13, 20, 26, 0.78);
  box-shadow: none;
}

.viewer-column[data-viewer-style="operational"] .public-cta {
  border-color: rgba(148, 164, 184, 0.22);
  background: rgba(11, 17, 22, 0.74);
  color: #e8eef3;
  box-shadow: none;
}

.viewer-column[data-viewer-style="operational"] .public-cta:nth-child(2n) {
  background: rgba(11, 17, 22, 0.74);
  color: #e8eef3;
}

.viewer-column[data-viewer-style="operational"] .public-cta:hover {
  background: color-mix(in srgb, var(--teal) 18%, #111920);
  border-color: color-mix(in srgb, var(--teal) 48%, rgba(148, 164, 184, 0.24));
}

.viewer-column[data-viewer-style="operational"] .view-controls .tool-button {
  border-radius: 10px;
  border-color: rgba(148, 164, 184, 0.2);
  background: rgba(11, 17, 22, 0.74);
  box-shadow: none;
}

.viewer-column[data-viewer-style="operational"] .floorplan-overlay {
  border-color: rgba(148, 164, 184, 0.22);
  border-radius: 10px;
  background: rgba(244, 247, 249, 0.96);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.viewer-column[data-viewer-style="operational"] .viewer-status,
.viewer-column[data-viewer-style="operational"] .scene-transition-card {
  border-color: rgba(148, 164, 184, 0.18);
  background: rgba(10, 16, 21, 0.88);
}

.segmented button,
.tool-button {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #e9eeee;
}

.segmented button {
  padding: 0 12px;
}

.viewer-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.panorama {
  width: 100%;
  height: 100%;
  background: #070909;
  transition:
    transform 320ms ease,
    filter 320ms ease,
    opacity 320ms ease;
}

.viewer-stage.is-scene-transitioning .panorama {
  transform: scale(1.018);
  filter: blur(10px) saturate(0.86) brightness(0.72);
  opacity: 0.34;
}

.video360-root {
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.immersive360-root {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  background: #020406;
}

.immersive360-root.active {
  display: block;
}

.immersive360-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.video360-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.video360-source {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: min(300px, calc(100% - 28px));
  height: 34px;
  opacity: 0.92;
}

.video-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.video-hotspot-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hotspot-color, var(--teal)) var(--hotspot-alpha, var(--glass-alpha, 58%)), transparent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
  pointer-events: auto;
}

.video-hotspot-marker svg {
  width: 16px;
  height: 16px;
}

.video-hotspot-marker.active {
  width: 40px;
  height: 40px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

.video-hotspot-marker.hotspot-activity {
  border-radius: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.video-hotspot-marker.hotspot-activity svg {
  transform: rotate(-45deg);
}

.viewer-placement {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.viewer-placement-panel {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(11, 17, 18, 0.86);
  color: #f3f7f7;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  pointer-events: auto;
}

.viewer-placement-panel strong,
.viewer-placement-panel span {
  line-height: 1.3;
}

.viewer-placement-panel span {
  color: rgba(243, 247, 247, 0.76);
  font-size: 13px;
}

.viewer-placement-panel .inline-actions {
  margin-top: 0;
}

.viewer-placement-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow:
    0 0 0 4px rgba(11, 17, 18, 0.38),
    0 0 24px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

.viewer-placement-crosshair::before,
.viewer-placement-crosshair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%);
}

.viewer-placement-crosshair::before {
  width: 2px;
  height: 62px;
}

.viewer-placement-crosshair::after {
  width: 62px;
  height: 2px;
}

.scene-transition {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(16, 24, 28, 0.12) 0%, rgba(5, 9, 10, 0.42) 100%);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  transition: opacity 260ms ease;
  z-index: 2;
}

.scene-transition.visible {
  opacity: 1;
}

.scene-transition-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: min(420px, calc(100% - 40px));
  max-width: min(460px, calc(100% - 40px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(11, 17, 18, 0.84);
  color: #f3f7f7;
  box-shadow: var(--shadow);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

.scene-transition.visible .scene-transition-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.scene-transition-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scene-transition-preview.hidden {
  display: none;
}

.scene-transition-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-transition-preview span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 82%, #ffffff 18%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.scene-transition-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.scene-transition-kicker {
  color: rgba(233, 238, 238, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scene-transition-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.2;
}

.scene-transition-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin360 0.9s linear infinite;
}

.empty-viewer {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: #0b0f10;
  color: #f4f7f7;
  z-index: 1;
}

.empty-viewer.visible {
  display: grid;
}

.empty-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: min(420px, calc(100% - 32px));
  text-align: center;
}

.empty-copy p {
  margin: 0;
  color: rgba(244, 247, 247, 0.74);
  line-height: 1.45;
}

.viewer-status {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: min(520px, calc(100% - 28px));
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(12, 18, 20, 0.82);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 4;
}

.viewer-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.viewer-error-url {
  display: block;
  max-width: min(720px, 80vw);
  overflow-wrap: anywhere;
  opacity: 0.65;
}

#saveState[data-tone="saving"] {
  color: var(--gold);
}

#saveState[data-tone="saved"] {
  color: var(--teal);
}

#saveState[data-tone="error"] {
  color: var(--coral);
}

.status-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-save-row #projectStatus {
  width: 120px;
}

.top-save-state {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  --brand-primary: #14b8a6;
  --brand-accent: #22d3ee;
  color: #5eead4;
  font-size: 11px !important;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18);
}

.top-save-state .branding-save-loader {
  width: 20px;
  height: 20px;
}

.top-save-state::before {
  content: none !important;
  display: none !important;
}

.top-save-state .branding-save-loader-inner {
  width: 5px;
  height: 5px;
}

.top-save-state .branding-save-loader-orbit span {
  width: 3px;
  height: 3px;
}

.top-save-state .branding-save-loader-orbit span:nth-child(1) {
  transform: rotate(0deg) translate(7px);
}

.top-save-state .branding-save-loader-orbit span:nth-child(2) {
  transform: rotate(90deg) translate(7px);
}

.top-save-state .branding-save-loader-orbit span:nth-child(3) {
  transform: rotate(180deg) translate(7px);
}

.top-save-state .branding-save-loader-orbit span:nth-child(4) {
  transform: rotate(270deg) translate(7px);
}

.top-save-state[data-tone="saving"] {
  border-color: rgba(250, 204, 21, 0.34);
  --brand-primary: #f59e0b;
  --brand-accent: #fde68a;
  color: #facc15;
}

.top-save-state[data-tone="saved"],
.top-save-state:not([data-tone]),
.top-save-state[data-tone=""] {
  border-color: rgba(45, 212, 191, 0.34);
  color: #5eead4;
}

.top-save-state[data-tone="saved"]::before,
.top-save-state:not([data-tone])::before,
.top-save-state[data-tone=""]::before {
  animation-duration: 2.4s;
}

.top-save-state[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fb7185;
}

.scene-audio-dock {
  position: absolute;
  left: 14px;
  bottom: 58px;
  display: grid;
  gap: 6px;
  width: min(320px, calc(100% - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(12, 18, 20, 0.84);
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 4;
}

.scene-audio-dock strong {
  font-size: 13px;
  line-height: 1.2;
}

.scene-audio-dock audio {
  width: 100%;
  height: 34px;
}

.floorplan-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(240px, 38vw);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  z-index: 3;
}

.floorplan-overlay img,
.floorplan-editor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Transparencia del mapa de plantas en visor público (sin afectar pines). */
.floorplan-overlay .floorplan-map > img {
  opacity: 0.72;
}

.floorplan-overlay.empty {
  display: none;
}

.floorplan-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.floorplan-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.floorplan-editor {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.floorplan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 8px 6px;
  overflow: visible;
}

.floorplan-tab {
  flex: 0 1 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(16, 22, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(16, 22, 31, 0.86);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
}

.floorplan-tab.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.floorplan-tab:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--teal) 32%, rgba(16, 22, 31, 0.2));
  background: color-mix(in srgb, var(--teal) 8%, #ffffff);
}

.floorplan-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--teal) 48%, #ffffff);
  outline-offset: 1px;
}

.floorplan-tab:disabled {
  border-color: rgba(16, 22, 31, 0.14);
  background: rgba(207, 216, 224, 0.72);
  color: rgba(63, 74, 88, 0.74);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 1;
}

.floorplan-label {
  position: absolute;
  top: 8px;
  left: 46px;
  z-index: 2;
  max-width: calc(100% - 54px);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(6, 8, 8, 0.66);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.floorplan-overlay-tabs {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.floorplan-overlay-tabs .floorplan-tab {
  min-width: 28px;
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(12, 18, 24, 0.62);
  color: rgba(255, 255, 255, 0.86);
}

.floorplan-overlay-tabs .floorplan-tab.active {
  border-color: color-mix(in srgb, var(--showcase-accent, #e38b72) 68%, #ffffff 32%);
  background: rgba(12, 18, 24, 0.72);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 211, 156, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.24);
}

.floorplan-editor .floorplan-map {
  width: 100%;
  max-width: 100%;
  height: 156px;
  min-height: 156px;
}

.floorplan-scene-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

.floorplan-hotspot-dot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  z-index: 2;
  touch-action: none;
}

.floorplan-hotspot-dot svg {
  display: block;
  width: 11px;
  height: 11px;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.floorplan-hotspot-dot.active {
  width: 24px;
  height: 24px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.24),
    0 3px 14px rgba(0, 0, 0, 0.42);
  z-index: 3;
}

.floorplan-hotspot-dot:focus-visible {
  outline: 3px solid rgba(8, 117, 104, 0.28);
  outline-offset: 2px;
}

.floorplan-scene-dot.active {
  width: 20px;
  height: 20px;
  background: var(--coral);
}

.floorplan-scene-dot:focus-visible {
  outline: 3px solid rgba(8, 117, 104, 0.28);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  gap: 10px;
}

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

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

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

.checkbox-field {
  align-content: end;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-field span {
  color: var(--ink);
  font-size: 13px;
}

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

.inspector-group {
  display: grid;
  gap: 12px;
}

.inspector-subgroup {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 224, 221, 0.88);
}

.inspector-subgroup:first-child {
  padding-top: 0;
  border-top: 0;
}

.viewer-assignment {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.logo-preview {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.logo-preview img {
  display: block;
  max-width: min(220px, 100%);
  max-height: 72px;
  object-fit: contain;
}

.logo-preview .logo-solid {
  width: 100%;
  max-width: 220px;
  height: 72px;
  flex: 0 0 auto;
}

.inspector-audio {
  width: 100%;
}

.helper-text {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.inspector-stack {
  display: grid;
  gap: 22px;
}

.inspector-block-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(214, 224, 221, 0.94);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 247, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.project-overview-card,
.branding-preview-card,
.branding-controls-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.project-overview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 31, 35, 0.08);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-accent) 28%, transparent) 0%, transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-primary) 12%, #ffffff) 0%, #ffffff 46%, color-mix(in srgb, var(--brand-primary) 7%, #f4f8f7) 100%);
  box-shadow: var(--shadow-soft);
}

.project-overview-backdrop,
.branding-preview-glow {
  position: absolute;
  inset: auto -10% -42% 48%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 24%, transparent);
  filter: blur(46px);
  pointer-events: none;
}

.project-overview-head,
.project-overview-brand,
.branding-preview-brand,
.branding-preview-topbar,
.branding-preview-window,
.branding-preview-palette {
  display: flex;
  align-items: center;
}

.project-overview-head,
.branding-preview-topbar {
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.project-overview-brand,
.branding-preview-brand {
  gap: 12px;
  min-width: 0;
}

.project-overview-logo,
.branding-preview-logo,
.branding-preview-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.project-overview-logo,
.branding-preview-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(18, 27, 30, 0.1);
}

.project-overview-logo img,
.branding-preview-logo img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

.project-overview-logo .logo-solid,
.branding-preview-logo .logo-solid {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
}

.branding-preview-mark {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(145deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 74%, #081213) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.project-overview-brand strong,
.branding-preview-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
}

.project-overview-brand span,
.branding-preview-brand span,
.project-overview-copy {
  color: var(--muted);
}

.project-overview-brand span,
.branding-preview-brand span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.project-overview-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-overview-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.project-overview-actions,
.branding-preview-cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.branding-preview-action,
.branding-preview-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(18, 27, 30, 0.08);
}

.branding-preview-note {
  font-weight: 600;
  color: var(--muted);
}

.share-grid,
.branding-studio {
  display: grid;
  gap: 12px;
}

.share-grid {
  gap: 10px;
}

.code-panel textarea {
  min-height: 108px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.compact-actions {
  margin-top: 0;
}

.branding-studio {
  grid-template-columns: 1fr;
  align-items: start;
}

.branding-preview-card,
.branding-controls-card {
  border: 1px solid rgba(214, 224, 221, 0.94);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.branding-preview-card {
  padding: 14px;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand-accent) 36%, transparent) 0%, transparent 34%),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--brand-primary) 56%, #0f1719) 0%,
      color-mix(in srgb, var(--brand-primary) 34%, #0f1719) 42%,
      #dbe7ea 100%
    );
  color: #f5f8f8;
}

.branding-preview-topbar {
  margin-bottom: 18px;
}

.branding-preview-window {
  gap: 6px;
}

.branding-preview-window span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.branding-preview-url {
  max-width: 55%;
  overflow: hidden;
  color: rgba(245, 248, 248, 0.72);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branding-preview-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.branding-preview-brand {
  min-width: 0;
}

.branding-preview-brand strong {
  color: #fff;
}

.branding-preview-brand span {
  color: rgba(244, 248, 248, 0.72);
}

.branding-preview-palette {
  gap: 10px;
}

.branding-swatch-card {
  display: inline-grid;
  gap: 6px;
  justify-items: start;
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.branding-swatch {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.branding-controls-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.branding-controls-card .inspector-subgroup {
  padding: 12px;
  border: 1px solid rgba(218, 226, 224, 0.88);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.74);
}

.branding-controls-card .branding-group-primary {
  border-color: color-mix(in srgb, var(--teal) 34%, rgba(218, 226, 224, 0.88));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 10%, #ffffff) 0%, #ffffff 100%);
}

.branding-controls-card .section-title.compact h3 {
  font-size: 13px;
}

.logo-preview.empty {
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.logo-preview-placeholder {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.logo-preview.empty small {
  color: var(--muted);
  line-height: 1.4;
}

.panorama-map-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e1416;
}

.panorama-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  cursor: crosshair;
}

.panorama-map-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.panorama-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 25% 100%, 100% 25%;
  pointer-events: none;
}

.panorama-map-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hotspot-color, var(--teal)) var(--glass-alpha, 58%), transparent);
  box-shadow:
    0 0 calc(var(--glass-blur, 8px) * 1.15) color-mix(in srgb, var(--hotspot-color, var(--teal)) 32%, transparent),
    0 3px 12px rgba(0, 0, 0, 0.42);
  color: #fff;
  z-index: 1;
  backdrop-filter: blur(var(--glass-blur, 8px)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur, 8px)) saturate(1.02);
}

.hotspot-navigation {
  background: var(--teal);
}

.hotspot-info {
  background: var(--blue);
}

.hotspot-multimedia {
  background: #b78122;
}

.hotspot-link {
  background: var(--coral);
}

.hotspot-iframe {
  background: #6f4aa8;
}

.panorama-map-hotspot svg {
  display: block;
  width: 11px;
  height: 11px;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.panorama-map-hotspot.active {
  width: 24px;
  height: 24px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 3px 14px rgba(0, 0, 0, 0.52);
  z-index: 2;
}

.panorama-map-hotspot.hotspot-activity {
  border-radius: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.panorama-map-hotspot.hotspot-activity svg {
  transform: rotate(-45deg);
}

.hotspot-glass-glass-classic {
  --glass-alpha: 58%;
  --glass-blur: 8px;
}

.hotspot-glass-glass-frost {
  --glass-alpha: 52%;
  --glass-blur: 10px;
}

.hotspot-glass-glass-ice {
  --glass-alpha: 50%;
  --glass-blur: 11px;
}

.hotspot-glass-glass-amber {
  --glass-alpha: 54%;
  --glass-blur: 9px;
}

.hotspot-glass-glass-emerald {
  --glass-alpha: 52%;
  --glass-blur: 10px;
}

.hotspot-glass-glass-neon {
  --glass-alpha: 48%;
  --glass-blur: 12px;
}

.hotspot-style-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hotspot-style-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: var(--hotspot-color, var(--teal));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.hotspot-style-chip svg {
  width: 14px;
  height: 14px;
}

.hotspot-icon-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.feature-icon-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  padding-right: 4px;
}

.feature-icon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.feature-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
}

.feature-icon-chip .hotspot-icon-option-glyph {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.feature-icon-chip i {
  opacity: 0.7;
}

.feature-icon-map {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.38);
}

.feature-icon-map-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.feature-icon-map-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
}

.feature-icon-map-icon svg {
  width: 14px;
  height: 14px;
}

.feature-icon-map-text {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
}

.quick-links-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.quick-links-editor-list {
  display: grid;
  gap: 10px;
}

.quick-links-editor .helper-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quick-link-editor-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.quick-link-editor-row.is-incomplete {
  border-color: rgba(245, 158, 11, 0.46);
}

.quick-link-editor-row .field-grid.three {
  grid-template-columns: 1fr;
  gap: 10px;
}

.quick-link-editor-row label span {
  white-space: normal;
}

.quick-link-editor-preview {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--accent);
}

.quick-link-editor-preview svg {
  width: 18px;
  height: 18px;
}

.quick-link-editor-actions {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-link-editor-warning {
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-toggle {
  min-height: auto;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.mini-toggle span {
  font-size: 10px;
}

.sr-only-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.hotspot-icon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.hotspot-icon-option:hover {
  border-color: rgba(8, 117, 104, 0.38);
  background: rgba(8, 117, 104, 0.06);
}

.hotspot-icon-option.active {
  border-color: var(--teal);
  background: rgba(8, 117, 104, 0.1);
  box-shadow: inset 0 0 0 1px rgba(8, 117, 104, 0.12);
}

.hotspot-icon-option-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-dark);
}

.hotspot-icon-option-glyph svg {
  width: 16px;
  height: 16px;
}

.hotspot-icon-option-name {
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
}

.gallery-item .icon-button {
  position: absolute;
  right: 6px;
  top: 6px;
}

.nudge-grid {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  justify-content: center;
  gap: 6px;
}

.nudge-grid > span {
  display: block;
}

.danger {
  border-color: rgba(201, 84, 56, 0.34);
  color: var(--coral);
}

.danger:hover {
  border-color: var(--coral);
  background: rgba(201, 84, 56, 0.09);
}

.pnlm-hotspot-base.hotspot-hitbox {
  box-sizing: border-box !important;
  position: absolute !important;
  z-index: 30 !important;
  overflow: visible;
  line-height: 0;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.pnlm-about-msg {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hotspot-hitbox {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 0;
  background: transparent !important;
  cursor: pointer !important;
  box-shadow: none;
  touch-action: none;
}

.pnlm-hotspot-base.hotspot-hitbox,
.pnlm-hotspot-base.hotspot-hitbox * {
  cursor: pointer !important;
}

.hotspot-pill {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 180px;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(14, 16, 18, 0.86);
  color: #fff;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.hotspot-label-hidden .hotspot-pill {
  display: none;
}

.hotspot-orb {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: color-mix(in srgb, var(--hotspot-color, var(--teal)) var(--hotspot-alpha, var(--glass-alpha, 58%)), transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  transition: transform 140ms ease, border-color 140ms ease;
}

.hotspot-orb svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: currentColor;
}

.hotspot-orb-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
}

.hotspot-hitbox-activity .hotspot-orb {
  border-radius: 11px;
  transform: rotate(45deg);
}

.hotspot-hitbox-activity .hotspot-orb > svg {
  transform: rotate(-45deg);
}

.hotspot-hitbox:hover .hotspot-orb,
.hotspot-hitbox:focus-visible .hotspot-orb {
  transform: scale(1.08);
  border-color: #fff;
}

.hotspot-hitbox-activity:hover .hotspot-orb,
.hotspot-hitbox-activity:focus-visible .hotspot-orb {
  transform: rotate(45deg) scale(1.08);
}

.hotspot-hitbox-link {
  border-color: rgba(201, 84, 56, 0.72);
  background: rgba(201, 84, 56, 0.18) !important;
}

.content-dialog {
  width: min(860px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.content-dialog::backdrop {
  background: rgba(10, 13, 14, 0.54);
}

.dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
}

#dialogBody {
  padding: 22px;
}

#dialogBody h2 {
  margin: 0 48px 8px 0;
  font-size: 22px;
  line-height: 1.2;
}

#dialogBody p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

#dialogBody img,
#dialogBody video,
#dialogBody audio {
  width: 100%;
  margin-top: 14px;
  border-radius: var(--radius);
}

.dialog-video360,
.dialog-iframe-shell,
.dialog-model-viewer {
  width: 100%;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #080c0d;
}

.dialog-video360 {
  height: min(62vh, 520px);
  min-height: 320px;
}

.dialog-iframe-shell {
  height: min(72vh, 680px);
  border: 1px solid var(--line);
  background: #fff;
}

.dialog-iframe-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dialog-model-viewer {
  display: block;
  height: min(68vh, 620px);
  min-height: 340px;
  background: #eef2f1;
}

.dialog-link-row {
  margin-top: 14px !important;
}

.control-center-dialog {
  display: grid;
  gap: 14px;
  max-height: min(76vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.control-center-dialog .project-list {
  max-height: none;
}

.control-shell {
  display: grid;
  gap: 16px;
}

.control-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(15, 23, 42, 0.82));
}

.control-header h3 {
  margin: 3px 0 4px;
  font-size: clamp(22px, 3vw, 34px);
}

.control-header p {
  margin: 0;
  color: var(--muted);
}

.control-quick-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(420px, 100%);
}

.control-quick-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.control-quick-stats .data-state {
  color: var(--accent);
  border-color: rgba(20, 184, 166, 0.45);
}

.control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.control-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.control-tab.active {
  border-color: rgba(20, 184, 166, 0.7);
  background: rgba(20, 184, 166, 0.16);
  color: #dffffb;
}

.control-tab svg {
  width: 16px;
  height: 16px;
}

.control-tab-panel {
  display: grid;
  gap: 16px;
}

.cc-kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cc-kpi-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
  display: grid;
  gap: 6px;
}

.cc-kpi-card span {
  font-size: 12px;
  color: var(--muted);
}

.cc-kpi-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.cc-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.cc-table th,
.cc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.cc-table th {
  color: var(--muted);
  font-weight: 600;
}

.cc-table td strong,
.cc-table td span {
  display: block;
}

.cc-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.control-table-wrap {
  max-height: min(58vh, 620px);
}

.control-row-actions,
.control-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.control-alert-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.control-alert-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.control-alert-card strong {
  font-size: 14px;
}

.control-alert-card span,
.control-alert-card small {
  color: var(--muted);
}

.control-alert-card.warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

.control-alert-card.danger {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}

.control-users-grid {
  display: grid;
  gap: 16px;
}

.control-create-user {
  display: grid;
  gap: 14px;
}

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

.control-user-list {
  display: grid;
  gap: 12px;
}

.control-user-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
}

.control-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.control-user-head strong,
.control-user-head span {
  display: block;
}

.control-user-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.control-user-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.control-user-metrics span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.28);
  color: var(--muted);
  font-size: 12px;
}

.cc-company-logo {
  width: auto;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px 6px;
}

.live-preview-shell {
  --live-preview-scale: 0.50;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0f14;
  position: relative;
}

.live-preview-shell iframe {
  width: calc(100% / var(--live-preview-scale));
  height: calc(100% / var(--live-preview-scale));
  border: 0;
  display: block;
  transform-origin: top left;
  transform: scale(var(--live-preview-scale));
  pointer-events: none;
}

html.preview-card-mode,
body.public-mode.preview-card-mode {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

body.public-mode.preview-card-mode .app-shell {
  box-sizing: border-box !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Final override: eyebrow legible + thicker bar */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-eyebrow {
  display: inline-block;
  padding: 4px 10px 5px;
  border-radius: 3px;
  line-height: 1;
  color: #111821 !important;
  background: #c2a165 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-divider {
  height: 3px;
  border-radius: 3px;
}

.dialog-gallery {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dialog-gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gallery-brand, #087568) 34%, rgba(2, 6, 23, 0.88)), color-mix(in srgb, var(--gallery-accent, #c95438) 18%, rgba(2, 6, 23, 0.92)));
}

.dialog-gallery-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gallery-brand, #087568) 28%, rgba(2, 6, 23, 0.18)), transparent 38%, transparent 62%, color-mix(in srgb, var(--gallery-accent, #c95438) 22%, rgba(2, 6, 23, 0.18))),
    rgba(2, 6, 23, 0.14);
  pointer-events: none;
}

.dialog-gallery-backdrop {
  position: absolute;
  inset: -18px;
  z-index: 0;
  width: calc(100% + 36px) !important;
  height: calc(100% + 36px) !important;
  object-fit: cover !important;
  filter: blur(22px) saturate(1.08) contrast(0.94);
  opacity: 0.42;
  transform: scale(1.06);
}

.dialog-gallery-main {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin-top: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: transparent;
}

.dialog-gallery-stage .dialog-nav {
  z-index: 3;
}

.project-info-dialog {
  display: grid;
  gap: 18px;
}

.project-info-dialog p {
  margin: 0;
  color: rgba(241, 245, 245, 0.86);
  line-height: 1.55;
}

.project-info-dialog .public-showcase-features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-info-dialog .public-showcase-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-info-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.dialog-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 24, 0.72);
  color: #fff;
  transform: translateY(-50%);
}

.dialog-nav.prev {
  left: 10px;
}

.dialog-nav.next {
  right: 10px;
}

.dialog-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.dialog-thumb {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  opacity: 0.72;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.dialog-thumb.active {
  border-color: color-mix(in srgb, var(--gallery-accent, var(--teal)) 76%, #ffffff);
  box-shadow:
    0 0 0 2px rgba(2, 6, 23, 0.9),
    0 0 0 5px color-mix(in srgb, var(--gallery-accent, var(--teal)) 48%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.32);
  opacity: 1;
  transform: translateY(-2px);
}

.dialog-thumb.active::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-accent, var(--teal)) 82%, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.36);
}

.dialog-thumb:not(.active):hover {
  border-color: rgba(226, 232, 240, 0.36);
  opacity: 0.94;
}

.dialog-thumb img {
  width: 100%;
  height: 62px;
  margin-top: 0 !important;
  object-fit: cover;
}

.dialog-empty {
  margin-top: 14px !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.section-title.compact {
  margin-bottom: 2px;
}

.section-title.compact h3 {
  font-size: 12px;
  color: var(--ink);
}

.branding-controls-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(214, 224, 221, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 247, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.branding-controls-card .field-row {
  grid-template-columns: 1fr 1fr;
}

.branding-controls-card .inline-actions .text-button {
  width: auto;
}

.share-grid label,
.viewer-assignment-list label,
.inspector-subgroup label {
  margin: 0;
}

.scene-icon-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.scene-icon-preview-glyph {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(8, 117, 104, 0.14);
  color: var(--teal);
}

.scene-icon-preview-glyph svg {
  width: 16px;
  height: 16px;
}

.scene-icon-preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.inspector-block-card > .inline-actions:first-child {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

body.public-mode .left-panel,
body.public-mode .right-panel,
body.public-mode .topbar {
  display: none;
}

body.role-viewer:not(.public-mode) .right-panel {
  display: none;
}

body.role-viewer:not(.public-mode) .app-shell {
  grid-template-columns: 300px minmax(0, 1fr);
}

body.role-viewer:not(.public-mode) .viewer-column {
  grid-column: 2;
}

body.public-mode .app-shell {
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
}

body.public-mode .viewer-column {
  grid-row: 1;
  grid-column: 1;
  grid-template-rows: auto minmax(0, 1fr);
}

body.public-mode .viewer-toolbar {
  justify-content: space-between;
}

body.public-mode .segmented,
body.public-mode .tool-strip {
  display: none;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

@media (max-width: 1200px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    grid-template-rows: auto auto minmax(58vh, 1fr) auto;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .topbar,
  .viewer-toolbar {
    flex-wrap: wrap;
  }

  .topbar {
    align-items: flex-start;
    position: relative;
    padding-right: 96px;
  }

  .brand {
    min-width: 0;
  }

  .project-fields {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }

  .top-actions {
    margin-left: auto;
    flex: 0 0 auto;
    position: absolute;
    right: 10px;
    top: 10px;
  }

  #projectName {
    width: 100%;
  }

  .hide-mobile {
    display: none;
  }

  .left-panel,
  .right-panel {
    position: static;
    width: 100%;
    max-width: 100vw;
    max-height: none;
    border: 0;
    box-shadow: none;
  }

  .viewer-column {
    grid-row: 3;
    min-height: 58vh;
  }

  .left-panel {
    grid-row: 2;
  }

  .right-panel {
    grid-row: 4;
    padding: 10px;
  }

  .floorplan-overlay {
    width: 154px;
  }

  body.public-mode .viewer-toolbar {
    align-items: stretch;
    gap: 10px;
  }

  .viewer-column[data-viewer-style="showcase"] .viewer-toolbar {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .public-showcase-panel {
    right: 0;
    bottom: auto;
    width: 100%;
    max-height: 48%;
    padding: 24px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(9, 10, 9, 0.9) 0%, rgba(9, 10, 9, 0.68) 100%);
  }

  .public-showcase-brand {
    justify-items: start;
  }

  .public-showcase-brand img {
    max-width: 132px;
    max-height: 76px;
  }

  .public-showcase-copy strong {
    font-size: 28px;
  }

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

  .public-showcase-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 0;
  }

  .public-scene-strip {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-auto-columns: minmax(148px, 42vw);
    padding-left: 0;
  }

  .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
    width: 150px;
    right: 12px;
    bottom: 140px;
  }

  body.public-mode .public-brand {
    flex: 1 1 100%;
    width: 100%;
  }

  body.public-mode .public-actions,
  body.public-mode .view-controls {
    flex: 1 1 100%;
    width: 100%;
  }

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

  body.public-mode .view-controls {
    justify-content: flex-end;
    margin-left: 0;
  }

  .scene-audio-dock {
    width: min(360px, calc(100% - 28px));
  }

  .floorplan-editor {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .floorplan-editor .floorplan-map {
    height: 100%;
    min-height: 0;
  }

  .segmented span {
    display: none;
  }

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

  .right-panel .field-row,
  .right-panel .field-row.three,
  .branding-controls-card .field-row {
    grid-template-columns: 1fr;
  }

  .item-actions {
    justify-content: flex-end;
  }

  .scene-thumb {
    flex: 0 0 auto;
  }

  .branding-studio {
    grid-template-columns: 1fr;
  }

  .project-overview-head,
  .branding-preview-topbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .topbar {
    gap: 10px;
    padding: 10px;
    position: relative;
    padding-right: 96px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand strong {
    font-size: 14px;
  }

  .text-button {
    padding: 0 10px;
  }

  .top-actions .text-button {
    width: 36px;
    padding: 0;
  }

  .top-actions .text-button span {
    display: none;
  }

  .top-actions {
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .viewer-toolbar {
    align-items: flex-start;
  }

  .public-brand {
    flex: 1 1 100%;
    width: 100%;
  }

  .tool-strip,
  .view-controls,
  .public-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
  }

  body.public-mode .viewer-toolbar {
    padding: 12px;
  }

  body.public-mode .public-brand {
    gap: 12px;
    padding: 12px;
  }

  body.public-mode .public-brand img,
  body.public-mode .public-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  body.public-mode .public-brand strong {
    font-size: 15px;
  }

  body.public-mode .public-brand-description {
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }

  body.public-mode .public-actions,
  body.public-mode .view-controls {
    width: 100%;
  }

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

  body.public-mode .public-cta,
  body.public-mode .view-controls .tool-button {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  body.public-mode .floorplan-overlay {
    width: 118px;
    right: 10px;
    bottom: 10px;
  }

  .viewer-column[data-viewer-style="showcase"] .viewer-toolbar {
    top: 10px;
    right: 10px;
    padding: 6px;
  }

  .viewer-column[data-viewer-style="showcase"] .public-actions {
    display: none;
  }

  .public-showcase-panel {
    gap: 12px;
    max-height: 54%;
    padding: 18px;
  }

  .public-showcase-copy {
    gap: 8px;
  }

  .public-showcase-eyebrow {
    font-size: 15px;
  }

  .public-showcase-copy strong {
    font-size: 23px;
  }

  .public-showcase-copy em,
  .public-showcase-copy p,
  .public-showcase-features {
    display: none;
  }

  .public-showcase-actions {
    display: flex;
    gap: 12px;
  }

  .public-showcase-start {
    height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .public-showcase-gallery {
    height: 40px;
    font-size: 12px;
  }

  .public-showcase-sales {
    display: none;
  }

  .public-scene-strip {
    grid-auto-columns: minmax(132px, 62vw);
    gap: 8px;
  }

  .public-scene-card {
    height: 92px;
  }

  .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
    width: 112px;
    right: 10px;
    bottom: 112px;
  }

  .scene-audio-dock {
    bottom: 74px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .inspector-nav {
    grid-template-columns: 1fr 1fr;
  }

  .inspector-tab {
    min-height: 38px;
    padding: 8px;
    font-size: 12px;
  }

  .project-overview-card,
  .branding-preview-card,
  .branding-controls-card,
  .inspector-block-card {
    padding: 12px;
    border-radius: 16px;
  }

  .branding-preview-palette,
  .project-overview-actions,
  .branding-preview-cta-row {
    gap: 6px;
  }

  .branding-preview-action,
  .branding-preview-note {
    width: 100%;
    justify-content: center;
  }

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

@media (max-height: 540px) and (orientation: landscape) and (max-width: 950px) {
  body.public-mode .viewer-toolbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  body.public-mode .public-brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 10px;
    padding: 8px 10px;
  }

  body.public-mode .public-brand img,
  body.public-mode .public-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  body.public-mode .public-brand strong {
    font-size: 14px;
  }

  body.public-mode .public-brand-meta {
    font-size: 11px;
  }

  body.public-mode .public-brand-description {
    display: none;
  }

  body.public-mode .public-actions,
  body.public-mode .view-controls {
    flex: 0 0 auto;
    width: auto;
  }

  body.public-mode .public-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  body.public-mode .view-controls {
    margin-left: 0;
    justify-content: flex-end;
  }

  body.public-mode .public-cta,
  body.public-mode .view-controls .tool-button {
    flex: 0 0 auto;
    min-height: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.public-mode .public-cta span,
  body.public-mode .view-controls .tool-button span {
    white-space: nowrap;
  }

  body.public-mode .view-controls .tool-button {
    min-width: 34px;
    padding: 0 8px;
  }

  body.public-mode .floorplan-overlay {
    width: 102px;
    right: 8px;
    bottom: 8px;
  }
}

@keyframes spin360 {
  to {
    transform: rotate(360deg);
  }
}

/* Final 360 scene rail override: separate from the photo gallery modal. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
  position: absolute !important;
  left: var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + 22px)) !important;
  right: 22px !important;
  bottom: 22px !important;
  z-index: 24 !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 36px !important;
  grid-template-rows: 120px 22px !important;
  align-items: center !important;
  gap: 8px 12px !important;
  padding: 6px 4px 0 !important;
  overflow: visible !important;
  background: transparent !important;
  pointer-events: none !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] .public-scene-strip,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip {
  left: 22px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip {
  left: 22px !important;
  right: var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + 22px)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-map="on"] .public-scene-strip {
  right: calc(var(--showcase-map-width, 220px) + 34px) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-showcase-has-map="on"] .public-scene-strip {
  left: calc(var(--showcase-map-width, 220px) + 34px) !important;
  right: var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + 22px)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: clamp(138px, 11vw, 176px) !important;
  gap: 10px !important;
  height: 120px !important;
  padding: 0 !important;
  overflow-x: auto !important;
  background: transparent !important;
  scrollbar-width: none !important;
  pointer-events: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  width: 100% !important;
  height: 120px !important;
  min-width: 0 !important;
  border-radius: 7px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card.active {
  border-color: color-mix(in srgb, var(--showcase-accent) 72%, #ffffff 28%) !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--showcase-tone-mid) 48%, transparent),
    0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav {
  grid-row: 1 !important;
  align-self: center !important;
  pointer-events: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav.prev {
  grid-column: 1 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav.next {
  grid-column: 3 !important;
}

/* Showcase final lock: rail + map composition and 3:2 cards (authoritative layer). */
body.public-mode .viewer-column[data-viewer-style="showcase"] {
  --showcase-rail-height: 120px;
  --showcase-rail-card-width: clamp(162px, 11vw, 190px);
  --showcase-map-width: 236px;
  --showcase-bottom-gap: 34px;
  --showcase-side-gap: 18px;
  --showcase-map-above-rail-gap: 20px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
  left: var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + var(--showcase-side-gap))) !important;
  right: var(--showcase-side-gap) !important;
  bottom: var(--showcase-bottom-gap) !important;
  grid-template-columns: 32px minmax(0, 1fr) 32px !important;
  grid-template-rows: var(--showcase-rail-height) 22px !important;
  gap: 8px 10px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip {
  left: var(--showcase-side-gap) !important;
  right: var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + var(--showcase-side-gap))) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-map="on"] .public-scene-strip {
  right: calc(var(--showcase-map-width) + var(--showcase-side-gap) + 14px) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-showcase-has-map="on"] .public-scene-strip {
  left: calc(var(--showcase-map-width) + var(--showcase-side-gap) + 14px) !important;
  right: var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + var(--showcase-side-gap))) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
  grid-auto-columns: var(--showcase-rail-card-width) !important;
  height: var(--showcase-rail-height) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  width: var(--showcase-rail-card-width) !important;
  height: var(--showcase-rail-height) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb img {
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.18) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map {
  right: var(--showcase-side-gap) !important;
  left: auto !important;
  bottom: var(--showcase-bottom-gap) !important;
  width: var(--showcase-map-width) !important;
  height: var(--showcase-rail-height) !important;
  aspect-ratio: auto !important;
  z-index: 24 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-map {
  left: var(--showcase-side-gap) !important;
  right: auto !important;
}

@media (max-width: 1080px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-map-width: 210px;
    --showcase-rail-card-width: clamp(150px, 26vw, 178px);
  }
}

@media (max-width: 820px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-map-width: 0px;
    --showcase-rail-card-width: clamp(148px, 41vw, 174px);
    --showcase-side-gap: 12px;
    --showcase-bottom-gap: 12px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-map="on"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-showcase-has-map="on"] .public-scene-strip {
    left: var(--showcase-side-gap) !important;
    right: var(--showcase-side-gap) !important;
  }
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-count {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: center !important;
  justify-self: center !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map,
body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
  bottom: 164px !important;
}

@media (max-width: 760px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
    grid-template-rows: 92px 22px !important;
    gap: 6px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    grid-auto-columns: minmax(132px, 64vw) !important;
    height: 92px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
    height: 92px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
    bottom: 128px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info {
    top: 84px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 42%;
  }
}

/* Branding asset for a commercial lot plan exported from KMZ/CAD. */
.branding-lot-plan-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.branding-lot-plan-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.48);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-toolbar:has(.public-lot-plan-button) {
  width: max-content;
  max-width: min(700px, calc(100% - 444px));
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="left"] .viewer-toolbar:has(.public-lot-plan-button) {
  right: 32px !important;
  left: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .viewer-toolbar:has(.public-lot-plan-button) {
  right: auto !important;
  left: 32px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-toolbar:has(.public-lot-plan-button) .public-actions {
  position: static !important;
}

body.public-mode .public-lot-plan-button {
  white-space: nowrap;
}

/* Public lot-plan image viewer. */
.content-dialog:has(.lot-plan-dialog) {
  width: min(1500px, calc(100vw - 28px));
  max-width: none;
  height: min(920px, calc(100dvh - 24px));
  max-height: none;
  overflow: hidden;
  border-radius: 18px;
}

.content-dialog:has(.lot-plan-dialog) #dialogBody {
  height: 100%;
  padding: 18px;
}

.content-dialog:has(.lot-plan-dialog) .dialog-close {
  top: 18px;
  right: 18px;
  z-index: 8;
}

.lot-plan-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lot-plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding-right: 52px;
}

.lot-plan-heading > div:first-child {
  min-width: 0;
}

.lot-plan-heading .eyebrow {
  color: #99f6e4;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lot-plan-heading h2 {
  margin: 5px 0 0 !important;
  overflow: hidden;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-plan-toolbar {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.lot-plan-scale {
  min-width: 52px;
  color: #cbd5e1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.lot-plan-viewport {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.045) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.045) 75%),
    linear-gradient(45deg, rgba(148, 163, 184, 0.045) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.045) 75%),
    #050a12;
  background-position: 0 0, 16px 16px;
  background-size: 32px 32px;
  cursor: grab;
  touch-action: none;
}

.lot-plan-viewport.dragging {
  cursor: grabbing;
}

.lot-plan-viewport img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 140ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lot-plan-viewport.dragging img {
  transition: none;
}

.lot-plan-help {
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}

.content-dialog.lot-plan-expanded,
.content-dialog:fullscreen {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 720px) {
  .content-dialog:has(.lot-plan-dialog) {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .content-dialog:has(.lot-plan-dialog) #dialogBody {
    padding: 12px;
  }

  .content-dialog:has(.lot-plan-dialog) .dialog-close {
    top: 12px;
    right: 12px;
  }

  .lot-plan-heading {
    display: grid;
    gap: 10px;
    padding-right: 48px;
  }

  .lot-plan-toolbar {
    width: fit-content;
    max-width: calc(100vw - 24px);
  }

  .lot-plan-toolbar .icon-button {
    width: 40px;
    height: 40px;
  }

  .lot-plan-scale {
    min-width: 44px;
  }
}

/* Final inspector grouping override: keep project and hotspot groups stacked. */
.right-panel .grouped-inspector-nav {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

.right-panel .grouped-inspector-nav .inspector-tab-group {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Showcase inmobiliario: mantiene la base publica original y reubica sus capas. */
body.public-mode .viewer-column[data-viewer-style="showcase"] {
  grid-template-rows: minmax(0, 1fr);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-toolbar {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: block;
  width: auto;
  max-width: none;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-brand {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: min(396px, 29vw);
  min-width: 340px;
  padding: 42px 60px 36px;
  border: 0;
  border-radius: 0;
  background: var(
    --showcase-panel-bg,
    linear-gradient(
      118deg,
      color-mix(in srgb, var(--showcase-tone-dark) 94%, #000000 6%) 0%,
      color-mix(in srgb, var(--showcase-tone-mid) 88%, #000000 12%) 62%,
      color-mix(in srgb, var(--showcase-tone-mid) 36%, transparent) 100%
    )
  );
  box-shadow: 24px 0 54px rgba(0, 0, 0, 0.22);
  color: #fff;
  pointer-events: auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-brand-copy {
  display: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
  position: absolute;
  top: 18px;
  right: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 24px;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(
    --showcase-panel-bg,
    linear-gradient(
      118deg,
      color-mix(in srgb, var(--showcase-tone-dark) 94%, #000000 6%) 0%,
      color-mix(in srgb, var(--showcase-tone-mid) 88%, #000000 12%) 62%,
      color-mix(in srgb, var(--showcase-tone-mid) 36%, transparent) 100%
    )
  );
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-actions {
  right: auto;
  left: 32px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-cta {
  flex: 0 0 auto;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-cta:nth-child(2n),
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-cta:hover {
  background: transparent;
  color: #fff;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-cta svg {
  width: 22px;
  height: 22px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-menu-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-menu-button svg {
  width: 30px;
  height: 30px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .view-controls {
  display: none !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .view-controls .tool-button {
  display: inline-grid;
  place-items: center;
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(14, 14, 13, 0.42);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .view-controls .tool-button span {
  display: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .view-controls .tool-button svg {
  width: 22px;
  height: 22px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
  right: 26px;
  bottom: 206px;
  z-index: 11;
  width: min(250px, 18vw);
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(14, 14, 13, 0.68);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 13;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  grid-template-rows: auto 24px;
  align-items: center;
  gap: 8px 12px;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
  scrollbar-width: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  height: clamp(118px, 12vw, 152px);
}

@media (max-width: 1100px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-brand {
    width: 340px;
    min-width: 0;
    padding: 30px 34px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
    right: 16px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
    grid-auto-columns: minmax(166px, 32vw);
  }
}

@media (max-width: 760px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-brand {
    inset: 0 0 auto 0;
    width: auto;
    max-height: 46%;
    padding: 18px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(10, 11, 10, 0.94) 0%, rgba(10, 11, 10, 0.7) 100%);
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
    display: none;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .view-controls {
    top: auto;
    right: 10px;
    bottom: 112px;
    gap: 8px;
    transform: none;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .view-controls .tool-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
    width: 112px;
    right: 10px;
    bottom: 112px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 6px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
    height: 92px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    grid-auto-columns: minmax(132px, 62vw);
    gap: 8px;
    padding: 6px;
  }
}

/* Showcase inmobiliario configurable. Esta capa final ordena las reglas anteriores. */
body.public-mode .viewer-column[data-viewer-style="showcase"] {
  font-family: var(--public-font, var(--showcase-font, "Roboto", sans-serif));
  background: var(--showcase-bg-color, #0a0b0a);
  --showcase-tone-dark: color-mix(in srgb, var(--teal-dark) 78%, #0b0f13);
  --showcase-tone-mid: color-mix(in srgb, var(--teal) 52%, #0e171c);
  --showcase-accent: color-mix(in srgb, var(--coral) 74%, #ffffff 26%);
  --showcase-accent-strong: color-mix(in srgb, var(--coral) 88%, #ffffff 12%);
  --showcase-ink-on-dark: #f4f8f8;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-stage {
  grid-row: 1;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--showcase-bg-gradient, linear-gradient(90deg, rgba(10, 11, 10, 0.95), rgba(10, 11, 10, 0.55)));
  pointer-events: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-bg img,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-brand {
  display: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: var(--showcase-panel-width, 396px);
  max-width: min(var(--showcase-panel-width, 396px), 38vw);
  min-width: min(340px, 92vw);
  padding: 30px 28px 28px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(120% 95% at 100% 0%, rgba(42, 69, 79, 0.34) 0%, rgba(6, 12, 16, 0.2) 44%, rgba(4, 9, 12, 0.94) 100%),
    linear-gradient(180deg, rgba(4, 10, 14, 0.96) 0%, rgba(5, 13, 18, 0.94) 100%);
  box-shadow: 24px 0 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  color: #fff;
  font-family: var(--showcase-font, "Roboto", sans-serif);
  text-align: var(--showcase-text-align, left);
  pointer-events: auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] {
  --showcase-strip-gap: 14px;
  --showcase-panel-offset: calc(var(--showcase-panel-width, 396px) + var(--showcase-strip-gap));
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] {
  --showcase-panel-offset: 98px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] {
  --showcase-panel-offset: var(--showcase-strip-gap);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip {
  right: var(--showcase-panel-offset);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="left"] .public-scene-strip {
  left: var(--showcase-panel-offset);
  right: 14px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-panel {
  inset: 0 0 0 auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
  width: 84px;
  min-width: 84px;
  padding: 24px 14px;
  overflow: hidden;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-copy,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-features,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-actions,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-quick-links,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-social,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-sales {
  display: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand {
  justify-items: center;
  padding: 8px 0;
  margin-bottom: 24px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand img {
  max-width: min(188px, 82%);
  max-height: 112px;
  object-fit: contain;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .logo-solid {
  width: min(188px, 82%);
  height: 112px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand span {
  width: 78px;
  height: 78px;
  border-color: color-mix(in srgb, var(--showcase-accent) 66%, var(--teal) 34%);
  color: color-mix(in srgb, var(--showcase-accent) 66%, var(--teal) 34%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy {
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 2px;
  border-bottom: 0;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b89a61;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
  font-size: clamp(46px, var(--showcase-title-size, 40px), 62px);
  font-weight: 700;
  letter-spacing: 0.008em;
  line-height: 1.05;
  margin-top: 10px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales {
  font-size: var(--showcase-body-size, 15px);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy p {
  margin-top: 0;
  margin-bottom: 14px;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.55;
  color: rgba(236, 241, 243, 0.82);
  max-width: 28ch;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-divider {
  width: 40px;
  height: 0.5px;
  border-radius: 999px;
  background: #b89a61;
  margin: 2px 0 2px;
  overflow: hidden;
}

/* Redondea barras/divisores horizontales del bloque de marca del panel lateral. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand [class*="divider"],
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand [class*="line"],
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand hr,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .branding-swatch {
  border-radius: 999px !important;
  overflow: hidden;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-features {
  gap: 13px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-actions {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
  justify-items: center;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social a {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social a:hover {
  color: #fff;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social a svg {
  width: 18px;
  height: 18px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start {
  width: 100%;
  max-width: 280px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(140deg, #c2a165 0%, #b19057 100%);
  color: #111618;
  box-shadow: 0 10px 24px rgba(8, 12, 16, 0.34);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-gallery {
  height: 34px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse {
  position: absolute;
  top: auto;
  bottom: 22px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--teal) 46%, rgba(255, 255, 255, 0.28));
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 22%, rgba(255, 255, 255, 0.06));
  color: #fff;
  cursor: pointer;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2px;
  display: block;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-collapse {
  right: auto;
  left: 16px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map {
  margin-top: 8px;
  margin-bottom: 10px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales {
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
  color: rgba(236, 241, 243, 0.72);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy + .public-showcase-sidebar-map {
  margin-top: 12px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map + .public-showcase-actions {
  margin-top: 14px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 12px 0 0;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map + .public-showcase-quick-links,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links + .public-showcase-actions {
  margin-top: 12px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links a:hover {
  border-color: rgba(194, 161, 101, 0.52);
  background: rgba(194, 161, 101, 0.12);
  transform: translateX(2px);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links svg {
  width: 18px;
  height: 18px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-actions + .public-showcase-social {
  margin-top: 18px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social + .public-showcase-sales {
  margin-top: auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social {
  justify-content: center;
  padding: 0 12px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social a {
  width: 24px;
  height: 24px;
}

/* Showcase templates */
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="signature"] .public-showcase-panel {
  background:
    radial-gradient(120% 95% at 100% 0%, rgba(42, 69, 79, 0.3) 0%, rgba(6, 12, 16, 0.18) 44%, rgba(4, 9, 12, 0.82) 100%),
    linear-gradient(180deg, rgba(4, 10, 14, 0.84) 0%, rgba(5, 13, 18, 0.8) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="dark-cinematic"] .public-showcase-panel {
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(58, 88, 100, 0.24) 0%, rgba(10, 18, 24, 0.2) 42%, rgba(4, 9, 12, 0.84) 100%),
    linear-gradient(180deg, rgba(3, 8, 12, 0.86) 0%, rgba(5, 12, 17, 0.84) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="dark-cinematic"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="dark-cinematic"] .public-showcase-divider {
  color: #c6a772;
  background: #c6a772;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="dark-cinematic"] .public-showcase-start {
  background: linear-gradient(140deg, #c8aa73 0%, #b4935d 100%);
  color: #12181c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="nocturne-gold"] .public-showcase-panel {
  background:
    radial-gradient(130% 110% at 96% 2%, rgba(97, 79, 47, 0.2) 0%, rgba(18, 17, 14, 0.18) 40%, rgba(7, 10, 12, 0.84) 100%),
    linear-gradient(180deg, rgba(6, 8, 10, 0.84) 0%, rgba(8, 11, 14, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="nocturne-gold"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="nocturne-gold"] .public-showcase-divider {
  color: #d3b27c;
  background: #d3b27c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="nocturne-gold"] .public-showcase-copy p {
  color: rgba(241, 235, 224, 0.82);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="nocturne-gold"] .public-showcase-start {
  background: linear-gradient(140deg, #d2b178 0%, #ba985f 100%);
  color: #17130d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="reserva-costera-natural"] .public-showcase-panel {
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(44, 77, 66, 0.24) 0%, rgba(18, 45, 56, 0.2) 42%, rgba(10, 23, 26, 0.82) 100%),
    linear-gradient(180deg, rgba(8, 24, 24, 0.84) 0%, rgba(12, 33, 37, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="reserva-costera-natural"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="reserva-costera-natural"] .public-showcase-divider {
  color: #b8a57d;
  background: #b8a57d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="reserva-costera-natural"] .public-showcase-start {
  background: linear-gradient(140deg, #c1ae86 0%, #a99672 100%);
  color: #16201d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="turismo-premium-naturaleza"] .public-showcase-panel {
  background:
    radial-gradient(125% 110% at 100% 0%, rgba(116, 74, 47, 0.22) 0%, rgba(45, 64, 42, 0.18) 45%, rgba(18, 22, 18, 0.82) 100%),
    linear-gradient(180deg, rgba(22, 26, 21, 0.84) 0%, rgba(29, 36, 30, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="turismo-premium-naturaleza"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="turismo-premium-naturaleza"] .public-showcase-divider {
  color: #b8835c;
  background: #b8835c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="turismo-premium-naturaleza"] .public-showcase-start {
  background: linear-gradient(140deg, #bc8d66 0%, #a46e4d 100%);
  color: #1d1814;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="costa-salvaje-minimalista"] .public-showcase-panel {
  background:
    radial-gradient(130% 115% at 100% 0%, rgba(52, 78, 101, 0.18) 0%, rgba(12, 24, 37, 0.18) 44%, rgba(6, 11, 18, 0.84) 100%),
    linear-gradient(180deg, rgba(5, 10, 16, 0.84) 0%, rgba(8, 15, 24, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="costa-salvaje-minimalista"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="costa-salvaje-minimalista"] .public-showcase-divider {
  color: #9eb6cb;
  background: #9eb6cb;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="costa-salvaje-minimalista"] .public-showcase-start {
  background: linear-gradient(140deg, #a8bfd3 0%, #8ea5ba 100%);
  color: #121923;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="eco-resort-contemporaneo"] .public-showcase-panel {
  background:
    radial-gradient(124% 105% at 100% 0%, rgba(95, 117, 94, 0.16) 0%, rgba(54, 74, 61, 0.18) 40%, rgba(21, 31, 36, 0.82) 100%),
    linear-gradient(180deg, rgba(20, 32, 35, 0.84) 0%, rgba(29, 44, 46, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="eco-resort-contemporaneo"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="eco-resort-contemporaneo"] .public-showcase-divider {
  color: #c1ae8c;
  background: #c1ae8c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="eco-resort-contemporaneo"] .public-showcase-start {
  background: linear-gradient(140deg, #cab893 0%, #b19d79 100%);
  color: #1a2320;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="ruta-turistica-costera"] .public-showcase-panel {
  background:
    radial-gradient(132% 112% at 100% 0%, rgba(46, 93, 128, 0.22) 0%, rgba(17, 52, 82, 0.18) 40%, rgba(8, 22, 34, 0.82) 100%),
    linear-gradient(180deg, rgba(9, 26, 39, 0.84) 0%, rgba(10, 33, 48, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="ruta-turistica-costera"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="ruta-turistica-costera"] .public-showcase-divider {
  color: #d6a86d;
  background: #d6a86d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="ruta-turistica-costera"] .public-showcase-start {
  background: linear-gradient(140deg, #d9b079 0%, #be9159 100%);
  color: #16202a;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-panel {
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(255, 241, 214, 0.38) 0%, rgba(248, 231, 196, 0.26) 45%, rgba(236, 218, 183, 0.74) 100%),
    linear-gradient(180deg, rgba(251, 244, 232, 0.86) 0%, rgba(240, 225, 197, 0.82) 100%);
  color: #3a2d1c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-social a {
  color: #3a2d1c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-divider {
  color: #b79256;
  background: #b79256;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-start {
  background: linear-gradient(140deg, #d7ba84 0%, #c6a469 100%);
  color: #2e2417;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-panel {
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(247, 247, 244, 0.34) 0%, rgba(236, 236, 232, 0.22) 42%, rgba(222, 222, 218, 0.72) 100%),
    linear-gradient(180deg, rgba(245, 244, 240, 0.84) 0%, rgba(229, 226, 219, 0.8) 100%);
  color: #2f302f;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-social a {
  color: #2f302f;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-divider {
  color: #b49763;
  background: #b49763;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-start {
  background: linear-gradient(140deg, #d1b585 0%, #b79864 100%);
  color: #27231d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-panel {
  background:
    radial-gradient(135% 112% at 100% 0%, rgba(255, 236, 224, 0.32) 0%, rgba(241, 233, 216, 0.24) 42%, rgba(224, 228, 222, 0.72) 100%),
    linear-gradient(180deg, rgba(250, 245, 236, 0.84) 0%, rgba(228, 234, 229, 0.8) 100%);
  color: #3a352d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-social a {
  color: #3a352d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-divider {
  color: #c18c74;
  background: #c18c74;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-start {
  background: linear-gradient(140deg, #d7b694 0%, #c59d75 100%);
  color: #2f2621;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-panel {
  background:
    radial-gradient(138% 118% at 100% 0%, rgba(255, 233, 186, 0.36) 0%, rgba(246, 220, 170, 0.24) 44%, rgba(221, 196, 150, 0.76) 100%),
    linear-gradient(180deg, rgba(246, 234, 206, 0.86) 0%, rgba(230, 205, 162, 0.82) 100%);
  color: #3f2f19;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-social a {
  color: #3f2f19;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-divider {
  color: #b88534;
  background: #b88534;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-start {
  background: linear-gradient(140deg, #d9b165 0%, #bc8c3f 100%);
  color: #2d2110;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-panel {
  background:
    radial-gradient(132% 112% at 100% 0%, rgba(241, 246, 222, 0.34) 0%, rgba(233, 229, 204, 0.24) 44%, rgba(222, 214, 190, 0.72) 100%),
    linear-gradient(180deg, rgba(246, 243, 231, 0.84) 0%, rgba(233, 226, 202, 0.8) 100%);
  color: #36402c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-social a {
  color: #36402c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-divider {
  color: #b29556;
  background: #b29556;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-start {
  background: linear-gradient(140deg, #d4ba84 0%, #bfa269 100%);
  color: #27301f;
}

/* Light showcase themes: enforce readable contrast across panel + info card. */
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"],
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"],
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"],
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"],
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] {
  --showcase-light-ink: #24211b;
  --showcase-light-muted: rgba(44, 38, 30, 0.94);
  --showcase-light-soft: rgba(56, 48, 37, 0.86);
  --showcase-light-accent: #8a6a37;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-eyebrow {
  color: #876734 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-copy strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-sales strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-sales strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-sales strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-sales strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-sales strong {
  color: var(--showcase-light-ink) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-copy p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-sales {
  color: var(--showcase-light-muted) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-social a,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-social a,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-social a,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-social a,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-social a {
  color: var(--showcase-light-soft) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-social a:hover,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-social a:hover,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-social a:hover,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-social a:hover,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-social a:hover {
  color: var(--showcase-light-ink) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-info > strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-info > strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-info > strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-info > strong,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-info > strong {
  color: var(--showcase-light-accent) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-info p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-info p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-info p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-info p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-info p,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-info .public-showcase-features li,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-info .public-showcase-features li,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-info .public-showcase-features li,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-info .public-showcase-features li,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-info .public-showcase-features li {
  color: var(--showcase-light-muted) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-info-close,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-info-close,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-info-close,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-info-close,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-info-close {
  border-color: rgba(71, 58, 40, 0.42);
  background: rgba(255, 255, 255, 0.78);
  color: #3f3427;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background: #080908;
  color: #fff;
  pointer-events: auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover.hidden {
  display: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-media {
  position: absolute;
  inset: 0;
  opacity: 0.62;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 6, 0.86), rgba(5, 6, 6, 0.34));
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-media img,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(620px, calc(100% - 24px));
  text-align: center;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-copy strong {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-copy p {
  margin: 0 auto;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.5;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-cover-copy .public-showcase-start {
  justify-self: center;
  min-width: 220px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  width: var(--showcase-map-width, 220px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--showcase-accent) 24%, rgba(255, 255, 255, 0.34));
  border-radius: 8px;
  background: rgba(14, 14, 13, 0.72);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="left"] .public-showcase-map,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="left"] .floorplan-overlay {
  right: max(26px, calc(var(--showcase-strip-gap) + 12px));
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-map,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .floorplan-overlay {
  right: auto;
  left: 22px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb img {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.12);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info {
  position: absolute;
  top: 88px;
  right: 108px;
  z-index: 23;
  display: none;
  width: min(330px, 24vw);
  max-height: calc(100% - 300px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(120% 95% at 100% 0%, rgba(42, 69, 79, 0.3) 0%, rgba(6, 12, 16, 0.18) 44%, rgba(4, 9, 12, 0.82) 100%),
    linear-gradient(180deg, rgba(4, 10, 14, 0.84) 0%, rgba(5, 13, 18, 0.8) 100%);
  color: #fff;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  pointer-events: auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="signature"] .public-showcase-info {
  background:
    radial-gradient(120% 95% at 100% 0%, rgba(42, 69, 79, 0.3) 0%, rgba(6, 12, 16, 0.18) 44%, rgba(4, 9, 12, 0.82) 100%),
    linear-gradient(180deg, rgba(4, 10, 14, 0.84) 0%, rgba(5, 13, 18, 0.8) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="dark-cinematic"] .public-showcase-info {
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(58, 88, 100, 0.24) 0%, rgba(10, 18, 24, 0.2) 42%, rgba(4, 9, 12, 0.84) 100%),
    linear-gradient(180deg, rgba(3, 8, 12, 0.86) 0%, rgba(5, 12, 17, 0.84) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="nocturne-gold"] .public-showcase-info {
  background:
    radial-gradient(130% 110% at 96% 2%, rgba(97, 79, 47, 0.2) 0%, rgba(18, 17, 14, 0.18) 40%, rgba(7, 10, 12, 0.84) 100%),
    linear-gradient(180deg, rgba(6, 8, 10, 0.84) 0%, rgba(8, 11, 14, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="reserva-costera-natural"] .public-showcase-info {
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(44, 77, 66, 0.24) 0%, rgba(18, 45, 56, 0.2) 42%, rgba(10, 23, 26, 0.82) 100%),
    linear-gradient(180deg, rgba(8, 24, 24, 0.84) 0%, rgba(12, 33, 37, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="turismo-premium-naturaleza"] .public-showcase-info {
  background:
    radial-gradient(125% 110% at 100% 0%, rgba(116, 74, 47, 0.22) 0%, rgba(45, 64, 42, 0.18) 45%, rgba(18, 22, 18, 0.82) 100%),
    linear-gradient(180deg, rgba(22, 26, 21, 0.84) 0%, rgba(29, 36, 30, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="costa-salvaje-minimalista"] .public-showcase-info {
  background:
    radial-gradient(130% 115% at 100% 0%, rgba(52, 78, 101, 0.18) 0%, rgba(12, 24, 37, 0.18) 44%, rgba(6, 11, 18, 0.84) 100%),
    linear-gradient(180deg, rgba(5, 10, 16, 0.84) 0%, rgba(8, 15, 24, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="eco-resort-contemporaneo"] .public-showcase-info {
  background:
    radial-gradient(124% 105% at 100% 0%, rgba(95, 117, 94, 0.16) 0%, rgba(54, 74, 61, 0.18) 40%, rgba(21, 31, 36, 0.82) 100%),
    linear-gradient(180deg, rgba(20, 32, 35, 0.84) 0%, rgba(29, 44, 46, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="ruta-turistica-costera"] .public-showcase-info {
  background:
    radial-gradient(132% 112% at 100% 0%, rgba(46, 93, 128, 0.22) 0%, rgba(17, 52, 82, 0.18) 40%, rgba(8, 22, 34, 0.82) 100%),
    linear-gradient(180deg, rgba(9, 26, 39, 0.84) 0%, rgba(10, 33, 48, 0.82) 100%);
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-info {
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(255, 241, 214, 0.62) 0%, rgba(248, 231, 196, 0.54) 45%, rgba(236, 218, 183, 0.88) 100%),
    linear-gradient(180deg, rgba(251, 244, 232, 0.93) 0%, rgba(240, 225, 197, 0.9) 100%);
  color: #3a2d1c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-info {
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(247, 247, 244, 0.6) 0%, rgba(236, 236, 232, 0.5) 42%, rgba(222, 222, 218, 0.86) 100%),
    linear-gradient(180deg, rgba(245, 244, 240, 0.92) 0%, rgba(229, 226, 219, 0.9) 100%);
  color: #2f302f;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-info {
  background:
    radial-gradient(135% 112% at 100% 0%, rgba(255, 236, 224, 0.58) 0%, rgba(241, 233, 216, 0.5) 42%, rgba(224, 228, 222, 0.84) 100%),
    linear-gradient(180deg, rgba(250, 245, 236, 0.92) 0%, rgba(228, 234, 229, 0.9) 100%);
  color: #3a352d;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-info {
  background:
    radial-gradient(138% 118% at 100% 0%, rgba(255, 233, 186, 0.6) 0%, rgba(246, 220, 170, 0.5) 44%, rgba(221, 196, 150, 0.88) 100%),
    linear-gradient(180deg, rgba(246, 234, 206, 0.93) 0%, rgba(230, 205, 162, 0.9) 100%);
  color: #3f2f19;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-info {
  background:
    radial-gradient(132% 112% at 100% 0%, rgba(241, 246, 222, 0.56) 0%, rgba(233, 229, 204, 0.48) 44%, rgba(222, 214, 190, 0.84) 100%),
    linear-gradient(180deg, rgba(246, 243, 231, 0.91) 0%, rgba(233, 226, 202, 0.89) 100%);
  color: #36402c;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-info {
  right: auto;
  left: 68px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible {
  display: grid;
  gap: 16px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info > strong {
  color: var(--showcase-accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features {
  gap: 14px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features li {
  align-items: flex-start;
  font-size: 13px;
  font-weight: 600;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-close svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-info {
  right: auto;
  left: 40px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"]:has(.public-showcase-map) .floorplan-overlay {
  display: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
  pointer-events: auto;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
  display: grid;
  grid-auto-columns: minmax(170px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 0;
  background: rgba(12, 14, 14, 0.62);
  scrollbar-width: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track::-webkit-scrollbar {
  display: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(14, 16, 16, 0.46);
  color: #fff;
  cursor: pointer;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-count {
  grid-column: 2;
  justify-self: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card strong {
  min-height: 34px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

@media (max-width: 760px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-brand {
    max-width: none;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map {
    width: 128px;
    right: 10px;
    bottom: 132px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
    bottom: 132px;
  }
}

/* Final effective override: 360 scene rail layout, loaded after all showcase rules. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
  position: absolute !important;
  left: calc(var(--showcase-panel-width, 396px) + 16px) !important;
  right: 16px !important;
  bottom: 18px !important;
  z-index: 24 !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 36px !important;
  grid-template-rows: 128px 24px !important;
  align-items: center !important;
  gap: 8px 12px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  pointer-events: none !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] .public-scene-strip,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip {
  left: 16px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip {
  left: 16px !important;
  right: calc(var(--showcase-panel-width, 396px) + 16px) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(190px, 1fr) !important;
  gap: 12px !important;
  height: 128px !important;
  padding: 0 !important;
  overflow-x: auto !important;
  background: transparent !important;
  scrollbar-width: none !important;
  pointer-events: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  width: 100% !important;
  height: 128px !important;
  min-width: 0 !important;
  border-radius: 7px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card.active {
  border-color: color-mix(in srgb, var(--showcase-accent) 72%, #ffffff 28%) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav {
  grid-row: 1 !important;
  align-self: center !important;
  pointer-events: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav.prev {
  grid-column: 1 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav.next {
  grid-column: 3 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-count {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: center !important;
  justify-self: center !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map {
  bottom: calc(
    var(--showcase-bottom-gap, 18px) + var(--showcase-rail-height, 120px) + var(--showcase-map-above-rail-gap, 12px)
  ) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
  bottom: calc(
    var(--showcase-bottom-gap, 18px) + var(--showcase-rail-height, 120px) + var(--showcase-map-above-rail-gap, 12px)
  ) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] .public-scene-strip {
  left: max(102px, var(--showcase-side-gap)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="collapsed"] .public-scene-strip,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="hidden"] .public-scene-strip {
  right: max(102px, var(--showcase-side-gap)) !important;
  left: var(--showcase-side-gap) !important;
}

@media (max-width: 760px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
    grid-template-rows: 92px 22px !important;
    gap: 6px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    grid-auto-columns: minmax(132px, 64vw) !important;
    height: 92px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
    height: 92px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
    bottom: 102px !important;
  }
}

/* Final lock v2: if floorplan mini-map is visible, it uses the right slot next to rail. */
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-scene-strip {
  left: calc(
    var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + var(--showcase-side-gap))) +
      var(--showcase-map-width) + 14px
  ) !important;
  right: calc(var(--showcase-side-gap) + var(--showcase-map-width) + 14px) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-showcase-has-floorplan="on"] .public-scene-strip {
  left: calc(var(--showcase-side-gap) + var(--showcase-map-width) + 14px) !important;
  right: calc(
    var(--showcase-panel-offset, calc(var(--showcase-panel-width, 396px) + var(--showcase-side-gap))) +
      var(--showcase-map-width) + 14px
  ) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .floorplan-overlay {
  right: var(--showcase-side-gap) !important;
  left: auto !important;
  bottom: calc(
    var(--showcase-bottom-gap) + var(--showcase-rail-height) + var(--showcase-map-above-rail-gap, 110px)
  ) !important;
  width: var(--showcase-map-width) !important;
  height: var(--showcase-rail-height) !important;
  aspect-ratio: auto !important;
  z-index: 24 !important;
  border: 1px solid rgba(201, 224, 238, 0.28) !important;
  background:
    radial-gradient(128% 110% at 100% 0%, rgba(64, 112, 142, 0.24) 0%, rgba(18, 41, 57, 0.22) 42%, rgba(7, 17, 24, 0.9) 100%),
    linear-gradient(180deg, rgba(7, 18, 25, 0.9) 0%, rgba(10, 24, 33, 0.88) 100%) !important;
  backdrop-filter: blur(14px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
  box-shadow: 0 14px 34px rgba(6, 12, 17, 0.4) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-showcase-has-floorplan="on"] .floorplan-overlay {
  left: var(--showcase-side-gap) !important;
  right: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"][data-showcase-has-floorplan="on"] .floorplan-overlay,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"][data-showcase-has-floorplan="on"] .floorplan-overlay,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"][data-showcase-has-floorplan="on"] .floorplan-overlay,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"][data-showcase-has-floorplan="on"] .floorplan-overlay,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"][data-showcase-has-floorplan="on"] .floorplan-overlay {
  border: 1px solid rgba(108, 89, 60, 0.26) !important;
  background:
    radial-gradient(132% 112% at 100% 0%, rgba(247, 236, 215, 0.6) 0%, rgba(237, 224, 197, 0.52) 44%, rgba(222, 206, 176, 0.86) 100%),
    linear-gradient(180deg, rgba(247, 239, 225, 0.9) 0%, rgba(233, 218, 189, 0.88) 100%) !important;
  box-shadow: 0 12px 28px rgba(36, 29, 19, 0.22) !important;
}

@media (max-width: 820px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-showcase-has-floorplan="on"] .public-scene-strip {
    left: var(--showcase-side-gap) !important;
    right: var(--showcase-side-gap) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .floorplan-overlay {
    width: 112px !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    bottom: 116px !important;
    right: 10px !important;
    left: auto !important;
  }

  .floorplan-overlay-tabs {
    left: 6px;
    gap: 4px;
  }

  .floorplan-overlay-tabs .floorplan-tab {
    width: 24px;
    min-width: 24px;
    height: 22px;
    min-height: 22px;
    font-size: 10px;
  }

  .floorplan-label {
    left: 36px;
    max-width: calc(100% - 42px);
    font-size: 10px;
  }
}

/* Google map in showcase sidebar (separate from floorplan overlay). */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map {
  margin-top: 2px;
  margin-bottom: 8px;
  aspect-ratio: 16 / 9;
  min-height: 118px;
  max-height: 162px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(6, 10, 17, 0.44);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-sidebar-map,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] .public-showcase-sidebar-map {
  display: none;
}

@media (max-height: 760px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map iframe {
    height: 120px;
  }
}

/* Desktop compact lock: keep footer visible without fullscreen on shorter windows. */
@media (min-width: 821px) and (max-height: 920px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
    gap: 0;
    padding: 18px 26px 14px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand img {
    max-height: 106px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .logo-solid {
    height: 106px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy {
    gap: 6px;
    margin-bottom: 8px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
    font-size: clamp(42px, 4vw, 52px);
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy p {
    display: none;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-features {
    gap: 8px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-features li {
    font-size: 13px;
    line-height: 1.22;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map {
    min-height: 92px;
    max-height: 112px;
    margin-top: 0;
    margin-bottom: 6px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start {
    height: 42px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-gallery {
    height: 30px;
  }
}

/* Carousel visual refresh: flatter cards + translucent title strip with icon. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  height: clamp(96px, 12.5vh, 118px) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  background: rgba(10, 14, 20, 0.58) !important;
  overflow: hidden !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card.active {
  border-width: 2px !important;
  border-color: color-mix(in srgb, var(--showcase-accent, #e38b72) 74%, #ffd59a 26%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 205, 156, 0.28),
    0 14px 24px rgba(0, 0, 0, 0.28) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 46% !important;
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.03);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 10, 0) 62%, rgba(4, 7, 10, 0.48) 100%);
  pointer-events: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb > b {
  top: 8px !important;
  right: 10px !important;
  z-index: 2;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-caption {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: rgba(9, 12, 16, 0.34);
  backdrop-filter: blur(1px);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-caption svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.92);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-caption strong {
  margin: 0;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
}

/* Kill legacy scene-title/icon styles inside new caption strip. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-caption svg {
  position: static !important;
  top: auto !important;
  right: auto !important;
  min-width: 0 !important;
  height: 13px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-caption strong {
  position: static !important;
  z-index: auto !important;
  align-self: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  text-align: left !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Final lock: normalize 360 thumbnails to a flatter "photo-like" 3:2 card in carousel. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
  grid-auto-columns: minmax(190px, 1fr) !important;
  align-items: stretch !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  height: clamp(104px, 13.5vh, 124px) !important;
  aspect-ratio: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb img {
  object-fit: cover !important;
  object-position: 50% 46% !important;
  transform: scale(1.06) !important;
}

/* Mobile final lock: showcase panel top-down (<=820px), collapsible and open by default. */
@media (max-width: 820px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-mobile-panel-padding-x: 12px;
    --showcase-mobile-panel-padding-y: 10px;
    --showcase-mobile-panel-gap: 10px;
    --showcase-mobile-panel-collapsed-height: 74px;
    --showcase-mobile-panel-open-max-height: 64vh;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: var(--showcase-mobile-panel-open-max-height) !important;
    padding: var(--showcase-mobile-panel-padding-y) var(--showcase-mobile-panel-padding-x) !important;
    gap: var(--showcase-mobile-panel-gap) !important;
    border-radius: 0 0 14px 14px !important;
    overflow-y: auto !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34) !important;
    text-align: left !important;
    z-index: 40 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand {
    justify-items: center !important;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand img {
    max-width: 168px !important;
    max-height: 94px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .logo-solid {
    width: 168px !important;
    height: 94px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
    font-size: clamp(20px, 5.8vw, 28px) !important;
    line-height: 1.1 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy p {
    max-width: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map iframe {
    height: 128px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-top: 6px !important;
    padding-top: 10px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-gallery {
    height: 38px !important;
    font-size: 12px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse svg {
    width: 15px;
    height: 15px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    min-height: var(--showcase-mobile-panel-collapsed-height) !important;
    max-height: var(--showcase-mobile-panel-collapsed-height) !important;
    overflow: hidden !important;
    padding-right: 44px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-copy,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-features,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-quick-links,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-social,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-sales,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-sidebar-map {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand {
    min-height: calc(var(--showcase-mobile-panel-collapsed-height) - 20px);
    align-content: center;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="left"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] .public-scene-strip {
    left: 10px !important;
    right: 10px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay {
    right: 10px !important;
    left: auto !important;
    bottom: 132px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .floorplan-overlay {
    right: 10px !important;
    left: auto !important;
    bottom: 132px !important;
    width: 116px !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
}

/* Final hard override for eyebrow pill (global, outside media queries). */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-eyebrow {
  display: block !important;
  width: min(292px, 92%) !important;
  margin: 0 auto !important;
  text-align: center !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 14px 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border-radius: 3px !important;
  line-height: 1.05 !important;
  color: #f8fafc !important;
  background: #b19768 !important;
}

/* Final map spacing override */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map {
  margin-top: 10px !important;
  margin-bottom: 8px !important;
}

/* Keep CTA lower but still compact/luxury */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-actions {
  margin-top: 10% !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social {
  margin-top: 8px !important;
}

/* Info window: lower + refined spacing */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info {
  top: 108px !important;
  border-radius: 12px !important;
  padding: 24px 24px 20px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info p {
  line-height: 1.6 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info img {
  border-radius: 10px !important;
}

/* 1SIDE Studio modern skin: dark immersive workspace + glass panels. */
:root {
  --bg: #070b12;
  --surface: rgba(17, 24, 36, 0.86);
  --surface-soft: rgba(24, 34, 48, 0.78);
  --surface-strong: rgba(32, 45, 64, 0.92);
  --ink: #eef5ff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --teal: #12b8a6;
  --teal-dark: #0f766e;
  --coral: #ff795f;
  --gold: #d6b16b;
  --blue: #60a5fa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.24);
  --radius: 16px;
  --radius-lg: 24px;
  --studio-sidebar: 308px;
  --studio-inspector: 432px;
}

body:not(.login-page) {
  background:
    radial-gradient(circle at 14% 8%, rgba(18, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, 0.12), transparent 26%),
    linear-gradient(135deg, #05070b 0%, #0b1220 44%, #071018 100%);
}

body:not(.login-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
  opacity: 0.45;
  z-index: 0;
}

/* Branded fallback for every Pannellum viewer that still exposes its native loader. */
.pnlm-load-box {
  box-sizing: border-box !important;
  width: 220px !important;
  height: 184px !important;
  margin: -92px 0 0 -110px !important;
  padding: 18px 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(45, 212, 191, 0.34) !important;
  border-radius: 16px !important;
  background: rgba(5, 11, 19, 0.94) !important;
  color: #f8fafc !important;
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px);
}

.pnlm-load-box::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 9px;
  border: 1px solid rgba(242, 196, 95, 0.32);
  border-radius: 50%;
  background: #02060b url("assets/logo-1side.png") center / cover no-repeat;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.06), 0 0 24px rgba(34, 211, 238, 0.12);
}

.pnlm-load-box p {
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.pnlm-load-box p::after {
  content: "1SIDE Cargando...";
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Pannellum adds a second live progress message below the bar. Keep the
   branded title above it and hide only that duplicate text. */
.pnlm-load-box .pnlm-lmsg {
  display: none !important;
}

.pnlm-load-box .pnlm-lbar {
  width: 154px !important;
  height: 5px !important;
  margin: 14px auto 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.pnlm-load-box .pnlm-lbar-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #22d3ee 68%, #f2c45f) !important;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.34);
}

.pnlm-lbox,
.pnlm-loading {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  grid-template-rows: 72px minmax(0, 1fr);
  grid-template-columns: var(--studio-sidebar) minmax(0, 1fr) var(--studio-inspector);
  gap: 12px;
  padding: 12px;
  background: transparent;
}

.topbar,
.panel,
.viewer-toolbar,
.viewer-stage {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(9, 14, 23, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

.topbar {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand {
  min-width: 230px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 0 6px rgba(18, 184, 166, 0.08);
}

.brand strong {
  color: #f8fafc;
  font-size: 19px;
  letter-spacing: 0.025em;
}

.app-version {
  color: rgba(45, 212, 191, 0.9);
}

.brand span:not(.brand-mark) {
  color: #8ea0b8;
}

#saveState[data-tone="saving"] {
  color: #facc15;
}

#saveState[data-tone="saved"],
#saveState {
  color: #5eead4;
}

.status-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-save-row #projectStatus {
  width: 120px;
}

.top-save-state {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  --brand-primary: #14b8a6;
  --brand-accent: #22d3ee;
  color: #5eead4;
  font-size: 11px !important;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18);
}

.top-save-state::before {
  content: none !important;
  display: none !important;
}

.top-save-state .branding-save-loader {
  width: 20px;
  height: 20px;
}

.top-save-state .branding-save-loader-inner {
  width: 5px;
  height: 5px;
}

.top-save-state .branding-save-loader-orbit span {
  width: 3px;
  height: 3px;
}

.top-save-state .branding-save-loader-orbit span:nth-child(1) {
  transform: rotate(0deg) translate(7px);
}

.top-save-state .branding-save-loader-orbit span:nth-child(2) {
  transform: rotate(90deg) translate(7px);
}

.top-save-state .branding-save-loader-orbit span:nth-child(3) {
  transform: rotate(180deg) translate(7px);
}

.top-save-state .branding-save-loader-orbit span:nth-child(4) {
  transform: rotate(270deg) translate(7px);
}

.top-save-state[data-tone="saving"] {
  border-color: rgba(250, 204, 21, 0.34);
  --brand-primary: #f59e0b;
  --brand-accent: #fde68a;
  color: #facc15;
}

.top-save-state[data-tone="saved"],
.top-save-state:not([data-tone]),
.top-save-state[data-tone=""] {
  border-color: rgba(45, 212, 191, 0.34);
  --brand-primary: #14b8a6;
  --brand-accent: #22d3ee;
  color: #5eead4;
}

.top-save-state[data-tone="saved"] .branding-save-loader::before,
.top-save-state:not([data-tone]) .branding-save-loader::before,
.top-save-state[data-tone=""] .branding-save-loader::before {
  animation-duration: 2.4s;
}

.top-save-state[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.42);
  --brand-primary: #fb7185;
  --brand-accent: #fecaca;
  color: #fb7185;
}

.project-fields {
  gap: 10px;
}

label {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
  color: #e5f0ff;
}

input,
select {
  height: 40px;
  border-radius: 12px;
}

textarea {
  border-radius: 14px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(45, 212, 191, 0.86);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

#projectName {
  width: min(34vw, 460px);
  font-weight: 750;
}

.panel {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(8, 13, 22, 0.82)),
    rgba(10, 16, 26, 0.78);
  overflow: hidden auto;
}

.left-panel,
.right-panel {
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.right-panel {
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.panel-section {
  margin: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.section-title {
  padding: 14px 14px 10px;
}

.section-title h2,
.panel-section h2,
.panel-section h3 {
  color: #f8fafc;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section-toggle {
  color: #e2e8f0;
}

.section-toggle svg,
.section-title svg {
  color: #5eead4;
}

.section-body {
  padding: 0 12px 12px;
}

.icon-button,
.text-button,
.segmented button,
.tool-button {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.86));
  color: #dbeafe;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.icon-button:hover,
.text-button:hover,
.segmented button:hover,
.tool-button:hover {
  border-color: rgba(45, 212, 191, 0.52);
  background:
    linear-gradient(180deg, rgba(42, 57, 78, 0.96), rgba(18, 27, 43, 0.92));
  color: #ffffff;
  transform: translateY(-1px);
}

.text-button.primary,
.segmented button.active,
.tool-button.active {
  border-color: rgba(45, 212, 191, 0.54);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(135deg, #0d9488, #14b8a6 56%, #22d3ee);
  color: #03201d;
  box-shadow:
    0 12px 30px rgba(20, 184, 166, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.top-actions {
  gap: 8px;
}

.top-actions form {
  margin: 0;
}

.project-item,
.scene-item,
.hotspot-item {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.68), rgba(15, 23, 42, 0.72));
  color: #e2e8f0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.project-item:hover,
.scene-item:hover,
.hotspot-item:hover {
  border-color: rgba(45, 212, 191, 0.42);
  background:
    linear-gradient(180deg, rgba(36, 50, 72, 0.82), rgba(18, 27, 43, 0.78));
  transform: translateY(-1px);
}

.project-item.active,
.scene-item.active,
.hotspot-item.active {
  border-color: rgba(45, 212, 191, 0.92);
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.86));
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.22),
    0 18px 44px rgba(20, 184, 166, 0.12);
}

.project-item strong,
.scene-item strong,
.hotspot-item strong {
  color: #f8fafc;
}

.project-item span,
.scene-item span,
.hotspot-item span,
.empty-list {
  color: #94a3b8;
}

.scene-thumb-wrap,
.scene-thumb,
.project-cover {
  border-radius: 14px;
}

.viewer-column {
  min-width: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 18%, rgba(20, 184, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(4, 8, 13, 0.86), rgba(3, 7, 10, 0.94));
  overflow: hidden;
}

.viewer-toolbar {
  top: 12px;
  left: 12px;
  right: 12px;
  width: auto;
  min-height: 56px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(5, 10, 16, 0.68);
  z-index: 12;
}

.segmented,
.tool-strip,
.view-controls,
.public-actions {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  padding: 4px;
}

.segmented button,
.tool-button {
  height: 38px;
  border-radius: 11px;
}

.viewer-stage {
  margin: 0;
  height: 100%;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(20, 184, 166, 0.07), transparent 40%),
    #020609;
  overflow: hidden;
}

.panorama {
  background:
    radial-gradient(circle at center, rgba(22, 28, 39, 0.82), #020609 68%),
    #020609;
}

.panorama .hotspot-orb,
.panorama .hotspot-pill {
  z-index: 30 !important;
  opacity: 1 !important;
}

.empty-viewer,
.viewer-status,
.viewer-placement-panel,
.scene-transition-card,
.scene-audio-dock {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(8, 13, 22, 0.78);
  color: #e5f0ff;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.floorplan-overlay {
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
}

.floorplan-editor {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.08), rgba(15, 23, 42, 0.4));
}

.floorplan-editor img,
.floorplan-overlay img {
  border-radius: 16px;
}

.floorplan-marker,
.floorplan-scene-dot,
.floorplan-hotspot-dot {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.72),
    0 14px 28px rgba(0, 0, 0, 0.32);
}

.inspector-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: rgba(8, 13, 22, 0.88);
  backdrop-filter: blur(18px);
}

.inspector-tab {
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
}

.inspector-tab:hover {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.82);
}

.inspector-tab.active {
  border-color: rgba(45, 212, 191, 0.54);
  background: rgba(20, 184, 166, 0.14);
  color: #ccfbf1;
}

.inspector-panels {
  padding: 0 0 12px;
}

.inspector-group,
.inspector-subgroup,
.inspector-block-card,
.project-overview-card,
.branding-preview-card,
.branding-controls-card {
  border-color: rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.58));
  color: #e2e8f0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.inspector-subgroup {
  padding: 14px;
}

.project-overview-card,
.branding-preview-card {
  overflow: hidden;
}

.project-overview-copy,
.branding-preview-note,
.helper-text,
.field-hint {
  color: #94a3b8;
}

.project-overview-pill,
.status-pill,
.public-showcase-eyebrow {
  border-color: rgba(214, 177, 107, 0.32);
  background: rgba(214, 177, 107, 0.12);
  color: #fde68a;
}

.skin-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.skin-preset-card {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-height: 124px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 34%),
    rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  text-align: left;
  box-shadow: none;
}

.skin-preset-card:hover:not(:disabled),
.skin-preset-card.active {
  border-color: rgba(45, 212, 191, 0.58);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 34%),
    rgba(20, 184, 166, 0.12);
  transform: translateY(-1px);
}

.skin-preset-card.active {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.22), 0 14px 34px rgba(20, 184, 166, 0.12);
}

.skin-preset-card strong {
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.15;
}

.skin-preset-card small {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
}

.skin-preset-card-wrap {
  position: relative;
  min-width: 0;
}

.skin-preset-card-wrap .skin-preset-card {
  width: 100%;
  height: 100%;
}

.skin-preset-card.user-template {
  border-color: rgba(214, 177, 107, 0.24);
}

.skin-preset-card em {
  color: #fde68a;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skin-template-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(248, 113, 113, 0.36);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.64);
  color: #fecaca;
  cursor: pointer;
}

.skin-template-delete:hover {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(185, 28, 28, 0.74);
}

.skin-template-actions {
  margin-top: 6px;
}

.skin-template-prompt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(14px);
}

.skin-template-prompt {
  display: grid;
  gap: 14px;
  width: min(480px, 100%);
  padding: 22px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  color: #e2e8f0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.skin-template-prompt h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.1;
}

.skin-template-prompt p {
  margin: -4px 0 0;
  color: #94a3b8;
  line-height: 1.45;
}

.skin-template-prompt label {
  display: grid;
  gap: 8px;
}

.skin-template-prompt label > span {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skin-template-prompt input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.84);
  color: #f8fafc;
  font: inherit;
}

.skin-template-prompt input:focus {
  border-color: rgba(45, 212, 191, 0.72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.skin-template-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.skin-preset-swatches {
  display: inline-flex;
  gap: 5px;
}

.skin-preset-swatches i {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: var(--skin-color);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.branding-controls-card {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 13, 22, 0.84)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2) !important;
}

.branding-controls-card .inspector-subgroup,
.branding-controls-card .branding-group-primary {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 36%),
    rgba(15, 23, 42, 0.62) !important;
}

.branding-controls-card .section-title.compact h3 {
  color: #f8fafc !important;
}

.branding-controls-card .pill {
  border: 1px solid rgba(45, 212, 191, 0.26);
  background: rgba(20, 184, 166, 0.1);
  color: #99f6e4;
}

.branding-controls-card label span,
.branding-controls-card .helper-text {
  color: #94a3b8 !important;
}

.skin-preset-card {
  min-height: 132px;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.86)) !important;
}

.skin-preset-card:hover:not(:disabled),
.skin-preset-card.active {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(31, 48, 68, 0.96), rgba(14, 25, 38, 0.94)) !important;
}

.skin-preset-card small {
  color: #cbd5e1;
}

.branding-controls-card .field-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
}

.branding-controls-card .field-toggle input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.branding-controls-card .field-toggle strong,
.branding-controls-card .field-toggle small {
  display: block;
}

.branding-controls-card .field-toggle strong {
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.25;
}

.branding-controls-card .field-toggle small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
}

/* Final carousel behavior: loop buttons + centered snap cards, no half-cut resting state. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
  grid-auto-columns: clamp(240px, 30vw, 312px) !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 50%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav {
  z-index: 3;
  width: 38px !important;
  height: 38px !important;
  background: rgba(10, 16, 24, 0.72) !important;
  backdrop-filter: blur(12px);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav:hover {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(20, 184, 166, 0.82) !important;
}

@media (max-width: 760px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    grid-auto-columns: minmax(190px, 76vw) !important;
    scroll-padding-inline: 50%;
  }
}

.content-dialog {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(8, 13, 22, 0.94);
  color: #e5f0ff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54);
}

.content-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 23, 42, 0.45);
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.72);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 212, 191, 0.72);
}

@media (max-width: 1320px) {
  :root {
    --studio-sidebar: 286px;
    --studio-inspector: 388px;
  }

  .project-fields {
    gap: 8px;
  }

  #projectName {
    width: min(30vw, 360px);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .right-panel {
    position: fixed;
    top: 96px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    width: min(420px, calc(100vw - 24px));
    box-shadow: var(--shadow);
  }

  .project-fields {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    overflow: auto;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
    flex: 1 1 180px;
  }

  .project-fields {
    order: 3;
    flex: 1 0 100%;
  }

  .top-actions {
    margin-left: auto;
  }

  .left-panel,
  .right-panel {
    position: static;
    width: auto;
    max-height: 44vh;
  }

  .viewer-column {
    min-height: 62vh;
  }

  .viewer-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .view-controls {
    margin-left: 0;
  }

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

/* Final public showcase lock: hide internal viewport controls in client-facing tours. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .view-controls {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Final showcase info placement: keep the optional info card tight to the viewport edge. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info {
  right: 18px !important;
  left: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-info {
  right: auto !important;
  left: 18px !important;
}

/* Final hotspot safety: hide orphan hotspot elements that are not positioned by Pannellum. */
.panorama > .hotspot-hitbox:not(.pnlm-hotspot-base),
.panorama .pnlm-render-container > .hotspot-hitbox:not(.pnlm-hotspot-base) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Final project gallery modal: bigger overview for many tours. */
.project-gallery-dialog {
  display: grid;
  gap: 18px;
  width: min(1120px, calc(100vw - 44px));
}

.content-dialog:has(.project-gallery-dialog) {
  width: min(1180px, calc(100vw - 28px));
}

.content-dialog:has(.branding-dialog) {
  width: min(1560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.content-dialog:has(.branding-dialog) #dialogBody {
  padding: 0;
}

.content-dialog:has(.branding-dialog) .dialog-close {
  right: 18px;
  top: 18px;
}

.branding-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

.branding-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 72px 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.18), transparent 30%),
    rgba(8, 13, 22, 0.96);
}

.branding-dialog-header h2 {
  margin: 4px 0 6px;
  color: #f8fafc;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.05;
}

.branding-dialog-header p {
  max-width: 760px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.45;
}

.branding-dialog-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.branding-save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 10px 6px 7px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 38%, rgba(148, 163, 184, 0.22));
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 40%, color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 42%),
    rgba(15, 23, 42, 0.62);
  color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

.branding-save-loader {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 30%, transparent 70%);
}

.branding-save-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: color-mix(in srgb, var(--brand-accent) 82%, #ffffff);
  border-radius: inherit;
  animation: brandingSaveSpin 1.2s linear infinite;
}

.branding-save-loader::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  background: conic-gradient(from 90deg, color-mix(in srgb, var(--brand-primary) 45%, transparent), transparent);
  filter: blur(1px);
  animation: brandingSaveSpinReverse 1.5s linear infinite;
}

.branding-save-loader-inner {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 72%, #ffffff);
  box-shadow: 0 0 10px color-mix(in srgb, var(--brand-accent) 60%, transparent);
  transform: translate(-50%, -50%);
  animation: brandingSavePulse 1s ease-in-out infinite;
}

.branding-save-loader-orbit {
  position: absolute;
  inset: 0;
  animation: brandingSaveOrbit 2.4s linear infinite;
}

.branding-save-loader-orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 65%, #ffffff);
}

.branding-save-loader-orbit span:nth-child(1) {
  transform: rotate(0deg) translate(8px);
}

.branding-save-loader-orbit span:nth-child(2) {
  transform: rotate(90deg) translate(8px);
}

.branding-save-loader-orbit span:nth-child(3) {
  transform: rotate(180deg) translate(8px);
}

.branding-save-loader-orbit span:nth-child(4) {
  transform: rotate(270deg) translate(8px);
}

.branding-save-label {
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.branding-save-indicator[data-tone="saving"] .branding-save-label::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: brandingSavingDots 1.2s steps(4, end) infinite;
}

.branding-save-indicator[data-tone="saved"] {
  border-color: color-mix(in srgb, var(--brand-primary) 62%, rgba(45, 212, 191, 0.4));
}

.branding-save-indicator[data-tone="saved"] .branding-save-label {
  color: #99f6e4;
}

.branding-save-indicator[data-tone="saved"] .branding-save-loader::before,
.branding-save-indicator[data-tone="idle"] .branding-save-loader::before {
  animation-duration: 2.6s;
}

.branding-save-indicator[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.58);
}

.branding-save-indicator[data-tone="error"] .branding-save-label {
  color: #fecaca;
}

/* Shared operation state used by every editor modal. */
.operation-state-indicator {
  --brand-primary: #14b8a6;
  --brand-accent: #22d3ee;
  flex: 0 0 auto;
}

.operation-state-indicator[data-tone="saving"],
.operation-state-indicator[data-tone="loading"],
.operation-state-indicator[data-tone="dirty"] {
  --brand-primary: #f59e0b;
  --brand-accent: #fde68a;
  border-color: rgba(250, 204, 21, 0.38);
  background:
    radial-gradient(circle at 22% 40%, rgba(245, 158, 11, 0.18), transparent 42%),
    rgba(15, 23, 42, 0.68);
}

.operation-state-indicator[data-tone="saving"] .branding-save-label,
.operation-state-indicator[data-tone="loading"] .branding-save-label,
.operation-state-indicator[data-tone="dirty"] .branding-save-label {
  color: #fde68a;
}

.operation-state-indicator[data-tone="loading"] .branding-save-label::after,
.operation-state-indicator[data-tone="saving"] .branding-save-label::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  animation: brandingSavingDots 1.2s steps(4, end) infinite;
}

.operation-state-indicator[data-tone="dirty"] .branding-save-loader::before {
  animation-duration: 2.8s;
}

.operation-state-indicator[data-tone="saved"],
.operation-state-indicator[data-tone="idle"] {
  --brand-primary: #14b8a6;
  --brand-accent: #22d3ee;
  border-color: rgba(45, 212, 191, 0.38);
}

.operation-state-indicator[data-tone="saved"] .branding-save-label,
.operation-state-indicator[data-tone="idle"] .branding-save-label {
  color: #99f6e4;
}

.operation-state-indicator[data-tone="error"] {
  --brand-primary: #fb7185;
  --brand-accent: #fecaca;
  border-color: rgba(248, 113, 113, 0.5);
}

@keyframes brandingSaveSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes brandingSaveSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes brandingSavePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
  }
}

@keyframes brandingSaveOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes brandingSavingDots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75%,
  100% {
    content: "...";
  }
}

.branding-dialog-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
  gap: 18px;
  min-height: 0;
  padding: 18px;
}

.branding-dialog-controls,
.branding-dialog-preview {
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.branding-dialog-controls {
  overflow: auto;
  padding: 14px;
}

.branding-dialog-controls .branding-studio {
  gap: 14px;
}

.branding-dialog-controls .branding-controls-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.branding-dialog-preview {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: auto;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-accent) 24%, transparent), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.92));
}

.branding-dialog-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.branding-dialog-preview-head strong {
  color: #f8fafc;
  font-size: 15px;
}

.branding-dialog-preview-head span {
  color: #94a3b8;
  font-size: 12px;
}

.branding-dialog-live-preview {
  --live-preview-scale: 0.48;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.branding-dialog-live-preview iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1920px;
  height: 1080px;
  max-width: none;
  max-height: none;
}

body.public-mode.preview-card-mode,
body.public-mode.preview-card-mode .app-shell,
body.public-mode.preview-card-mode .viewer-column {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.branding-dialog-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 360px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  color: #94a3b8;
}

.branding-dialog-placeholder svg {
  width: 34px;
  height: 34px;
}

.project-gallery-dialog .dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.project-gallery-dialog .dialog-heading h2 {
  margin: 8px 0 6px;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.project-gallery-dialog .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #99f6e4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding: 2px 4px 8px 2px;
}

.project-gallery-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 36%),
    rgba(15, 23, 42, 0.84);
  color: #e2e8f0;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.project-gallery-card:hover,
.project-gallery-card.active {
  border-color: rgba(45, 212, 191, 0.58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.project-gallery-card.active {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.16), transparent 38%),
    rgba(20, 184, 166, 0.14);
}

.project-gallery-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.9), rgba(15, 23, 42, 0.95));
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}

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

.project-gallery-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.project-gallery-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.project-gallery-body strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-gallery-body span {
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-gallery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-gallery-actions .text-button {
  flex: 1 1 auto;
  justify-content: center;
}

.project-gallery-empty {
  min-height: 180px;
  place-content: center;
}

@media (max-width: 720px) {
  .project-gallery-dialog {
    width: calc(100vw - 28px);
  }

  .project-gallery-dialog .dialog-heading {
    display: grid;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
    max-height: 70vh;
  }
}

/* Final showcase sidebar layout: Bootstrap-like grid utilities + aligned commercial panel. */
.public-showcase-panel .container-fluid {
  width: 100%;
  max-width: 100%;
}

.public-showcase-panel .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.public-showcase-panel .col-12 {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.public-showcase-panel .g-0 {
  gap: 0;
}

.public-showcase-panel .p-0 {
  padding: 0 !important;
}

.public-showcase-panel .mt-auto {
  margin-top: auto !important;
}

.public-showcase-panel .d-flex {
  display: flex !important;
}

.public-showcase-panel .d-grid {
  display: grid !important;
}

.public-showcase-panel .justify-content-center {
  justify-content: center !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
  padding: 34px 30px 28px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-grid {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  gap: clamp(18px, 2vh, 28px);
  width: 100%;
  min-height: 100%;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand {
  display: grid !important;
  place-items: center;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand img,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .logo-solid {
  width: min(142px, 48%) !important;
  max-width: 142px !important;
  height: 142px !important;
  max-height: 142px !important;
  object-fit: contain;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy {
  display: grid !important;
  gap: 12px !important;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-eyebrow {
  display: block !important;
  width: 100%;
  padding: 7px 12px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--showcase-accent, #c2a165) 76%, transparent);
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: 0.18em !important;
  text-align: center;
  white-space: nowrap;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  color: #fff;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em !important;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  overflow: hidden;
  text-transform: uppercase;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-divider {
  display: none !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy p {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  color: rgba(248, 250, 252, 0.86) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map {
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map iframe {
  display: block;
  width: 100%;
  height: 158px;
  border: 0;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-actions {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  height: 48px !important;
  padding: 0 18px !important;
  text-align: left;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social {
  justify-content: center !important;
  width: 100%;
  margin: 0 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales {
  display: grid !important;
  gap: 5px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales span,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales strong {
  display: block;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales span {
  color: rgba(248, 250, 252, 0.72);
  font-size: 12px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid > .row:not(:first-child) {
  display: none !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand img,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand .logo-solid {
  width: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
}

/* Final showcase info card layout: Bootstrap-like rows for aligned content. */
.public-showcase-info .container-fluid {
  width: 100%;
  max-width: 100%;
}

.public-showcase-info .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.public-showcase-info .col-12 {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.public-showcase-info .g-0 {
  gap: 0;
}

.public-showcase-info .p-0 {
  padding: 0 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info {
  width: min(360px, 28vw) !important;
  padding: 22px !important;
  border-radius: 16px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible {
  display: block !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-grid {
  display: grid;
  gap: 16px;
  width: 100%;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-title {
  display: block;
  width: calc(100% - 36px);
  margin: 0;
  color: color-mix(
    in srgb,
    var(--showcase-accent, var(--coral, #c2a165)) 42%,
    var(--showcase-info-contrast-ink, #fff) 58%
  ) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features li {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center !important;
  gap: 9px !important;
  min-height: 24px;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features svg,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features i {
  width: 18px;
  height: 18px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-description {
  width: 100%;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
  line-height: 1.62 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-media {
  width: 100%;
  margin: 0;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px !important;
}

/* Final spatial lock: info card stays above the floorplan mini-map. */
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info {
  top: 108px !important;
  bottom: calc(
    var(--showcase-bottom-gap, 22px) +
      var(--showcase-rail-height, 124px) +
      var(--showcase-rail-height, 124px) +
      var(--showcase-map-above-rail-gap, 110px) +
      20px
  ) !important;
  width: min(336px, 24vw) !important;
  max-height: none !important;
  overflow-y: auto !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info-grid {
  gap: 12px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info .public-showcase-features {
  gap: 8px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info .public-showcase-features li {
  min-height: 21px;
  font-size: 12px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info-description {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info-media img {
  aspect-ratio: 16 / 8.5;
}

/* Boot guard: show a stable loading state while the studio hydrates. */
body.app-booting {
  background: #03070a;
}

body.app-booting .app-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, #020617, #07111d 52%, #020617);
  color: #e2e8f0;
  text-align: center;
}

.boot-loader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 74vw);
  height: min(520px, 58vh);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0.08) 34%, transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.boot-loader > * {
  position: relative;
  z-index: 1;
}

.boot-loader img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.boot-loader strong {
  font-size: clamp(20px, 3vw, 30px);
}

.boot-loader span {
  color: #94a3b8;
}

.boot-loader small {
  max-width: 260px;
  color: #64748b;
  font-size: 12px;
}

.boot-loader::after {
  content: "";
  width: 170px;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #2dd4bf, transparent);
  animation: bootPulse 1.15s ease-in-out infinite;
}

body:not(.app-booting) .boot-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

@keyframes bootPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.65);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.project-library-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 38%),
    rgba(15, 23, 42, 0.72);
}

.project-library-kicker {
  color: #99f6e4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-library-card strong {
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.2;
}

.project-library-card span:not(.project-library-kicker) {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}

.project-library-card .text-button {
  justify-content: center;
  width: 100%;
}

.collaboration-join-card,
.collaboration-invite-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.28);
}

.project-library-card .collaboration-join-card {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.collaboration-join-card strong {
  color: #f8fafc;
  font-size: 13px;
}

.collaboration-join-card > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.collaboration-join-card span,
.collaboration-invite-box span {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
}

.collaboration-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.collaboration-code-row input,
.collaboration-code-row .text-button {
  min-height: 40px;
  margin: 0;
}

.collaboration-code-row .text-button {
  padding-inline: 14px;
}

.project-library-card .collaboration-code-row {
  grid-template-columns: minmax(0, 1fr);
}

/* Final library contrast: keep sidebar project text readable on dark cards. */
.project-library-card {
  color: #f8fafc;
}

.project-library-card .project-library-kicker {
  color: #8ff8ec;
}

.project-library-card strong {
  color: #ffffff !important;
}

.project-library-card span:not(.project-library-kicker) {
  color: #cbd5e1 !important;
}

.project-library-card .text-button.primary {
  border-color: rgba(45, 212, 191, 0.9) !important;
  background: linear-gradient(135deg, #2dd4bf, #22d3ee) !important;
  color: #04111a !important;
  font-weight: 900;
}

.project-library-card .text-button.primary svg {
  color: #04111a !important;
  stroke: currentColor !important;
}

.project-library-card .text-button.primary span {
  color: #04111a !important;
}

/* Final title readability: never split words in the showcase sidebar title. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
  max-width: 100%;
  white-space: normal !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
    text-wrap: normal;
  }
}

@media (max-width: 1280px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
    font-size: clamp(26px, 2.35vw, 36px);
    letter-spacing: -0.035em !important;
    line-height: 1.02 !important;
  }
}

@media (max-width: 980px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
    font-size: clamp(25px, 6vw, 34px);
  }
}

@media (max-height: 820px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info {
    top: 96px !important;
    bottom: calc(
      var(--showcase-bottom-gap, 18px) +
        var(--showcase-rail-height, 112px) +
        var(--showcase-rail-height, 112px) +
        72px
    ) !important;
    width: min(316px, 24vw) !important;
    padding: 18px !important;
  }
}

/* Final Biblioteca layout: Bootstrap-like columns, safe header actions, folder navigation. */
.content-dialog:has(.project-gallery-dialog) {
  width: min(1220px, calc(100vw - 28px)) !important;
}

.content-dialog:has(.project-gallery-dialog) #dialogBody {
  padding: 22px 36px 28px 24px;
}

.content-dialog:has(.project-gallery-dialog) .dialog-close {
  top: 12px;
  right: 12px;
}

.project-gallery-dialog {
  width: 100% !important;
  gap: 18px;
}

.project-gallery-dialog .dialog-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding-right: 46px;
}

.project-gallery-dialog .dialog-heading > div {
  min-width: 0;
}

.project-gallery-dialog .dialog-heading .text-button {
  align-self: start;
  white-space: nowrap;
}

.project-library-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 0;
}

.project-folder-nav {
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  max-height: min(68vh, 680px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
}

.project-folder-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
  text-align: left;
}

.project-folder-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-folder-button b {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #f8fafc;
  font-size: 11px;
  text-align: center;
}

.project-folder-button.active,
.project-folder-button:hover {
  border-color: rgba(45, 212, 191, 0.52);
  background: rgba(20, 184, 166, 0.14);
  color: #f8fafc;
}

.project-folder-content {
  display: grid;
  gap: 18px;
  max-height: min(68vh, 680px);
  overflow: auto;
  padding-right: 4px;
  scroll-padding-top: 12px;
}

.project-folder-summary,
.project-folder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.project-folder-summary {
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 18px;
  background: rgba(20, 184, 166, 0.08);
}

.project-folder-summary strong,
.project-folder-heading strong {
  color: #f8fafc;
}

.project-folder-summary span,
.project-folder-heading span {
  color: #94a3b8;
  font-size: 12px;
}

.project-folder-section {
  display: grid;
  gap: 12px;
}

.project-folder-heading {
  padding: 0 2px;
}

.project-folder-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.project-folder-heading strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-folder-heading b {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
}

.project-folder-section .project-gallery-grid {
  max-height: none;
  overflow: visible;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding: 0;
}

.project-gallery-card {
  min-width: 0;
}

.project-gallery-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px 40px;
  align-items: center;
  gap: 8px;
}

.project-gallery-actions .text-button {
  min-width: 0;
  width: 100%;
  padding-inline: 10px;
}

.project-gallery-actions .text-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-gallery-actions .icon-button {
  width: 40px;
  height: 40px;
}

@media (max-width: 920px) {
  .project-gallery-dialog .dialog-heading {
    grid-template-columns: 1fr;
  }

  .project-gallery-dialog .dialog-heading .text-button {
    justify-self: start;
  }

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

  .project-folder-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
  }
}

/* Final manual folders controls in Biblioteca. */
.project-category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.project-category-filter {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #aebdca;
  font-size: 12px;
  font-weight: 800;
}

.project-category-filter b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  font-size: 10px;
  text-align: center;
}

.project-category-filter:hover,
.project-category-filter.active {
  border-color: rgba(45, 212, 191, 0.52);
  background: rgba(20, 184, 166, 0.14);
  color: #f8fafc;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-gallery-body .project-card-tags > span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.09);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 800;
}

.project-gallery-body .project-card-tags > span.muted {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.06);
  color: #7f8da0;
}

.project-category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-category-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.project-category-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.project-category-option span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  color: #a8b5c5;
  font-size: 11px;
  font-weight: 800;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.project-category-option input:checked + span {
  border-color: rgba(45, 212, 191, 0.58);
  background: rgba(20, 184, 166, 0.16);
  color: #ccfbf1;
}

.project-category-option input:focus-visible + span {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}

.project-category-option input:disabled + span {
  cursor: default;
  opacity: 0.62;
}

.publication-state-note {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.07);
}

.publication-state-note strong {
  color: #f8fafc;
  font-size: 13px;
}

.publication-state-note span {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

.educational-catalog {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.educational-catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.educational-catalog-heading > div {
  display: grid;
  gap: 7px;
}

.educational-catalog-heading h3,
.educational-catalog-heading p {
  margin: 0;
}

.educational-catalog-heading h3 {
  color: #f8fafc;
  font-size: 21px;
}

.educational-catalog-heading p {
  max-width: 680px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.educational-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.educational-catalog-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  background: rgba(10, 17, 29, 0.82);
}

.educational-catalog-cover {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.9);
  color: #7dd3fc;
  font-size: 34px;
  font-weight: 900;
}

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

.educational-public-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 999px;
  background: rgba(3, 12, 18, 0.8);
  color: #99f6e4;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.educational-catalog-body {
  display: grid;
  gap: 6px;
}

.educational-catalog-body > strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.educational-catalog-body > span {
  color: #8090a3;
  font-size: 11px;
}

.educational-catalog-card > .text-button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 680px) {
  .educational-catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Large management dashboard dialog. */
.content-dialog.control-dashboard-dialog {
  width: min(1480px, calc(100vw - 32px));
  max-width: none;
  height: min(900px, calc(100vh - 24px));
  max-height: none;
  overflow: hidden;
  border-radius: 22px;
}

.control-dashboard-dialog #dialogBody {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.control-dashboard-dialog .dialog-close {
  position: absolute;
  z-index: 20;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.control-dashboard-dialog .control-center-dialog {
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  padding: 16px;
}

.control-dashboard-dialog .control-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.control-dashboard-dialog .control-header {
  min-height: 108px;
  align-items: center;
  padding: 18px 72px 18px 20px;
  border-radius: 16px;
}

.control-header-copy {
  min-width: 0;
}

.control-dashboard-dialog .control-header h3 {
  margin: 3px 0;
  font-size: clamp(24px, 2.3vw, 34px);
}

.control-dashboard-dialog .control-quick-stats {
  min-width: 0;
}

.control-dashboard-dialog .control-tabs {
  position: relative;
  z-index: 4;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 7px;
  scrollbar-width: none;
}

.control-dashboard-dialog .control-tabs::-webkit-scrollbar {
  display: none;
}

.control-dashboard-dialog .control-tab {
  flex: 0 0 auto;
  min-height: 42px;
}

.control-dashboard-dialog .control-tab-panel {
  min-height: 0;
  overflow: auto;
  padding: 4px 4px 12px;
  animation: control-tab-enter 180ms ease both;
}

.control-dashboard-dialog .cc-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.control-dashboard-dialog .cc-kpi-card {
  min-height: 92px;
  align-content: space-between;
  padding: 16px;
}

.control-dashboard-dialog .cc-kpi-card strong {
  font-size: 28px;
}

.control-dashboard-dialog .control-alert-grid {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.control-project-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(160px, 220px));
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
}

.control-project-toolbar > div {
  display: grid;
  gap: 4px;
  align-self: center;
}

.control-project-toolbar > div strong {
  color: #f8fafc;
  font-size: 15px;
}

.control-project-toolbar > div span {
  color: #94a3b8;
  font-size: 11px;
}

.control-project-toolbar label {
  gap: 5px;
  margin: 0;
}

.control-project-toolbar select {
  min-height: 38px;
}

.control-dashboard-dialog .control-table-wrap {
  max-height: none;
}

.control-dashboard-dialog .cc-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #101827;
}

.control-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 140px;
  color: #7f8da0;
  font-size: 11px;
}

.control-project-tags span {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 3px 7px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 999px;
  color: #a7f3d0 !important;
}

.control-dashboard-dialog .control-users-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.control-dashboard-dialog .control-create-user {
  position: static;
  grid-template-rows: auto auto auto;
  gap: 0;
  max-height: none;
  overflow: visible;
  padding: 18px;
}

.control-create-user-body {
  overflow: visible;
  margin-top: 10px;
}

.control-section-copy {
  margin: -4px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.control-form-group {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.control-form-group > strong {
  color: #dce8f2;
  font-size: 11px;
  text-transform: uppercase;
}

.control-create-user .field-grid {
  grid-template-columns: 1fr;
  gap: 2px;
}

.control-create-user label {
  margin-block: 4px;
}

.control-create-user input,
.control-create-user select {
  min-height: 38px;
  height: 38px;
}

.control-create-user-footer {
  margin: 14px -18px -18px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #111a2a;
}

.control-create-user-footer .text-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.control-existing-users {
  min-width: 0;
  padding: 18px;
}

.control-dashboard-dialog .control-user-list {
  gap: 10px;
}

.control-dashboard-dialog .control-user-card {
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
}

.control-user-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.control-dashboard-dialog .control-user-card .field-grid.four {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.control-dashboard-dialog .control-user-card label {
  margin: 0;
}

.control-password-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.control-password-row .text-button {
  min-height: 42px;
}

.control-dashboard-dialog .control-actions {
  justify-content: flex-end;
}

.control-dashboard-dialog .control-actions .text-button {
  min-height: 42px;
}

.control-analytics-layout {
  display: grid;
  gap: 16px;
}

@keyframes control-dashboard-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes control-tab-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-dialog.control-dashboard-dialog[open] {
  animation: control-dashboard-enter 220ms ease both;
}

@media (max-width: 1199px) {
  .content-dialog.control-dashboard-dialog {
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
  }

  .control-dashboard-dialog .cc-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .control-project-toolbar > div {
    grid-column: 1 / -1;
  }

  .control-dashboard-dialog .control-users-grid {
    grid-template-columns: 1fr;
  }

  .control-dashboard-dialog .control-create-user {
    position: static;
    max-height: none;
  }

  .control-create-user-body {
    overflow: visible;
  }

  .control-create-user .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .control-dashboard-dialog .control-user-card .field-grid.four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .content-dialog.control-dashboard-dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .control-dashboard-dialog .control-center-dialog {
    padding: 8px;
  }

  .control-dashboard-dialog .dialog-close {
    top: 12px;
    right: 12px;
  }

  .control-dashboard-dialog .control-header {
    display: grid;
    min-height: 0;
    padding: 16px 58px 16px 14px;
  }

  .control-dashboard-dialog .control-quick-stats {
    justify-content: flex-start;
  }

  .control-dashboard-dialog .control-quick-stats span:nth-child(n + 4) {
    display: none;
  }

  .control-dashboard-dialog .cc-kpi-grid,
  .control-dashboard-dialog .control-alert-grid,
  .control-project-toolbar,
  .control-create-user .field-grid,
  .control-dashboard-dialog .control-user-card .field-grid.four {
    grid-template-columns: 1fr;
  }

  .control-project-toolbar > div {
    grid-column: auto;
  }

  .control-user-head {
    display: grid;
  }

  .control-user-badges {
    justify-content: flex-start;
  }

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

  .control-password-row .text-button,
  .control-dashboard-dialog .control-actions .text-button {
    width: 100%;
    justify-content: center;
  }

  .control-dashboard-dialog .cc-table {
    min-width: 760px;
  }

  .control-dashboard-dialog .control-projects-table {
    display: block;
    min-width: 0;
  }

  .control-projects-table thead {
    display: none;
  }

  .control-projects-table tbody,
  .control-projects-table tr,
  .control-projects-table td {
    display: block;
    width: 100%;
  }

  .control-projects-table tbody {
    display: grid;
    gap: 10px;
    padding: 8px;
  }

  .control-projects-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
  }

  .control-projects-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 11px;
    white-space: normal;
  }

  .control-projects-table td::before {
    content: attr(data-label);
    color: #718096;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .control-projects-table .control-row-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-dialog.control-dashboard-dialog[open],
  .control-dashboard-dialog .control-tab-panel {
    animation: none !important;
  }
}

/* Public showcase mobile geometry. Keep controls inside the viewport and the panorama full-bleed. */
@media (max-width: 820px) and (orientation: portrait) {
  body.public-mode .viewer-column[data-viewer-style="showcase"],
  body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-stage,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .panorama {
    border-radius: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-mobile-panel-collapsed-height: 70px;
    --showcase-mobile-panel-open-max-height: 58dvh;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
    box-sizing: border-box !important;
    border-radius: 0 0 18px 18px !important;
    scrollbar-width: none;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel::-webkit-scrollbar {
    display: none;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    width: 100% !important;
    min-height: 70px !important;
    max-height: 70px !important;
    padding: 8px 60px 8px 12px !important;
    overflow: hidden !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid > .row:first-child,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid > .row:first-child > .col-12,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand {
    width: 100% !important;
    min-height: 54px !important;
    height: 54px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand img,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand .logo-solid {
    width: min(38vw, 120px) !important;
    max-width: min(48vw, 150px) !important;
    height: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-collapse {
    top: max(13px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    transform: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse.viewer-action-cue,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse.viewer-action-cue::after {
    animation: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-toolbar:has(.public-lot-plan-button) .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-actions {
    position: absolute !important;
    top: max(80px, calc(env(safe-area-inset-top) + 80px)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: auto !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: auto !important;
    gap: 6px !important;
    padding: 4px !important;
    overflow: visible !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="visible"] .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="visible"] .public-actions {
    top: var(--showcase-mobile-actions-top, 80px) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-menu-button {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-lot-plan-button .public-action-label {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-lot-plan-button svg {
    display: block !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="left"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] .public-scene-strip {
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    grid-template-rows: 76px 18px !important;
    height: 98px !important;
    min-height: 98px !important;
    max-height: 98px !important;
    gap: 2px 6px !important;
    padding: 2px 0 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    justify-content: center !important;
    height: 76px !important;
    grid-auto-rows: 76px !important;
    grid-auto-columns: minmax(170px, min(64vw, 240px)) !important;
    gap: 8px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb {
    width: min(64vw, 240px) !important;
    max-width: 240px !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-caption {
    min-height: 24px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-caption strong {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-count {
    min-height: 18px !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip[data-scene-count="1"] .public-scene-track {
    grid-auto-columns: minmax(170px, min(64vw, 240px)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    top: max(80px, calc(env(safe-area-inset-top) + 80px)) !important;
    right: 8px !important;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 104px) !important;
    left: 8px !important;
    width: auto !important;
  }
}

/* Centro de ayuda del Studio */
.help-center-trigger {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.help-center-trigger:hover,
.help-center-trigger:focus-visible {
  border-color: rgba(45, 212, 191, 0.7);
  background: rgba(20, 184, 166, 0.12);
  color: #99f6e4;
}

.content-dialog.help-center-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(820px, calc(100dvh - 28px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #07101d;
}

.help-center-dialog #dialogBody {
  height: 100%;
  padding: 0;
}

.help-center-dialog .dialog-close {
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 44px;
  height: 44px;
}

.help-center {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  color: #e2e8f0;
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.12), transparent 28%),
    #07101d;
  animation: helpCenterEnter 180ms ease-out both;
}

.help-center-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 28px;
  align-items: end;
  min-height: 126px;
  padding: 22px 82px 20px 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(100deg, rgba(13, 148, 136, 0.12), rgba(15, 23, 42, 0.72) 52%);
}

.help-center-header h2,
.help-center-header p,
.help-topic-heading h3,
.help-topic-heading p,
.help-step-list p {
  margin: 0;
}

.help-center-header h2 {
  margin-top: 4px;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.help-center-header p {
  margin-top: 7px;
  color: #94a3b8;
  line-height: 1.4;
}

.help-center-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.help-center-search svg {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #7f91aa;
  pointer-events: none;
}

.help-center-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(5, 12, 22, 0.72);
  color: #f8fafc;
}

.help-center-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.help-center-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 18px 14px;
  overflow-y: auto;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 18, 31, 0.66);
}

.help-topic-tab {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a8b7cc;
  text-align: left;
}

.help-topic-tab svg {
  width: 18px;
  height: 18px;
}

.help-topic-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.help-topic-tab small {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(242, 196, 95, 0.12);
  color: #fde68a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.help-topic-tab:hover,
.help-topic-tab:focus-visible {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.58);
  color: #e2e8f0;
}

.help-topic-tab.active {
  border-color: rgba(45, 212, 191, 0.48);
  background: rgba(13, 148, 136, 0.13);
  color: #99f6e4;
}

.help-center-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.help-topic-content {
  display: grid;
  align-content: start;
  gap: 24px;
  min-height: 100%;
  padding: 30px 34px;
}

.help-topic-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 780px;
}

.help-topic-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.94), rgba(34, 211, 238, 0.82));
  color: #031b1b;
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.18);
}

.help-topic-icon svg {
  width: 23px;
  height: 23px;
}

.help-topic-heading h3 {
  margin-top: 5px;
  color: #f8fafc;
  font-size: clamp(22px, 2.5vw, 30px);
}

.help-topic-heading p {
  max-width: 680px;
  margin-top: 8px;
  color: #a8b7cc;
  font-size: 15px;
  line-height: 1.5;
}

.help-step-list {
  display: grid;
  gap: 0;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.help-step-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.help-step-list li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(45, 212, 191, 0.36);
  border-radius: 999px;
  color: #5eead4;
  font-size: 11px;
  font-weight: 900;
}

.help-step-list strong {
  display: block;
  color: #eaf2ff;
  font-size: 14px;
}

.help-step-list p {
  margin-top: 5px;
  color: #91a2b8;
  line-height: 1.5;
}

.help-topic-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  max-width: 820px;
  padding: 13px 14px;
  border-left: 3px solid #f2c45f;
  background: rgba(242, 196, 95, 0.08);
  color: #d9c99e;
  line-height: 1.45;
}

.help-topic-note svg {
  width: 18px;
  height: 18px;
  color: #f2c45f;
}

.help-topic-content footer {
  display: flex;
  justify-content: flex-start;
}

.help-topic-content footer .text-button {
  min-height: 44px;
}

.help-center mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(242, 196, 95, 0.28);
  color: #fff4c2;
}

.help-center-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 320px;
  color: #91a2b8;
  text-align: center;
}

.help-center-empty svg {
  width: 36px;
  height: 36px;
  color: #5eead4;
}

.help-center-empty strong {
  color: #e2e8f0;
}

.help-nav-empty {
  padding: 18px 10px;
  color: #7f91aa;
  font-size: 12px;
  text-align: center;
}

.help-center-mobile-topics {
  display: none;
}

@keyframes helpCenterEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .content-dialog.help-center-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .help-center-dialog .dialog-close {
    top: 12px;
    right: 12px;
  }

  .help-center-header {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 18px 66px 16px 16px;
  }

  .help-center-header h2 {
    font-size: 23px;
  }

  .help-center-header p {
    display: none;
  }

  .help-center-search {
    grid-column: 1;
    width: calc(100% + 50px);
  }

  .help-center-workspace {
    display: block;
    overflow-y: auto;
  }

  .help-center-nav,
  .help-center-main {
    display: none;
  }

  .help-center-mobile-topics {
    display: grid;
    gap: 8px;
    padding: 12px;
  }

  .help-mobile-topic {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.58);
  }

  .help-mobile-topic > button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 20px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
  }

  .help-mobile-topic > button svg {
    width: 18px;
    height: 18px;
  }

  .help-mobile-topic > button svg:last-child {
    color: #7f91aa;
    transition: transform 160ms ease;
  }

  .help-mobile-topic.open {
    border-color: rgba(45, 212, 191, 0.42);
  }

  .help-mobile-topic.open > button {
    color: #99f6e4;
    background: rgba(13, 148, 136, 0.1);
  }

  .help-mobile-topic.open > button svg:last-child {
    transform: rotate(180deg);
  }

  .help-topic-content.is-mobile {
    min-height: 0;
    gap: 18px;
    padding: 18px 14px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }

  .help-topic-content.is-mobile .help-topic-heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .help-topic-content.is-mobile .help-topic-icon {
    width: 42px;
    height: 42px;
  }

  .help-topic-content.is-mobile .help-topic-heading h3 {
    font-size: 20px;
  }

  .help-topic-content.is-mobile .help-topic-heading p,
  .help-topic-content.is-mobile .help-step-list p {
    font-size: 13px;
  }

  .help-topic-content.is-mobile .help-step-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .help-topic-content.is-mobile .help-step-list li > span {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 600px) {
  body:not(.public-mode) .topbar {
    padding-right: 140px;
  }

  .help-center-trigger {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-center,
  .help-topic-tab,
  .help-mobile-topic > button svg:last-child {
    animation: none;
    transition: none;
  }

  .help-center-main,
  .help-center-workspace {
    scroll-behavior: auto;
  }
}

/* Actividades Interactivas */
.activity-project-list {
  display: grid;
}

.activity-empty-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px dashed rgba(94, 234, 212, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
}

.activity-empty-hint svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #5eead4;
}

.activity-inspector-icon,
.interactive-activity-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 22%, #0f172a);
  color: #5eead4;
}

.content-dialog.activity-builder-dialog {
  width: min(1480px, calc(100vw - 32px));
  max-width: none;
  height: calc(100dvh - 24px);
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.activity-builder-dialog #dialogBody {
  height: 100%;
  padding: 0;
}

.activity-builder-dialog .dialog-close {
  top: 18px;
  right: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
}

.activity-builder {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  color: var(--text);
  background: #07101d;
}

.activity-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 18px 86px 18px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--activity-primary) 28%, #07101d), #0c1424 58%);
}

.activity-builder-header h2,
.activity-builder-header p,
.activity-question-list-head h3,
.activity-question-editor h3 {
  margin: 0;
}

.activity-builder-header p {
  margin-top: 4px;
  color: var(--muted);
}

.activity-builder-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-builder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(280px, 360px) minmax(420px, 1fr);
  min-height: 0;
}

.activity-builder-settings,
.activity-builder-questions,
.activity-question-editor {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.activity-builder-settings,
.activity-builder-questions {
  border-right: 1px solid var(--line);
}

.activity-builder-settings {
  padding: 20px;
}

.activity-builder-settings section {
  display: grid;
  gap: 12px;
  padding: 4px 0 22px;
}

.activity-builder-settings section + section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.activity-builder-settings label,
.activity-question-editor label,
.interactive-text-answer {
  display: grid;
  gap: 7px;
}

.activity-builder-settings label > span,
.activity-question-editor label > span,
.interactive-text-answer > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-builder-settings .checkbox-field,
.activity-question-editor .checkbox-field {
  display: flex;
  align-items: center;
}

.activity-builder-questions {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 20px 14px;
  background: rgba(15, 23, 42, 0.36);
}

.activity-question-list-head,
.activity-question-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-question-list {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 16px;
}

.activity-question-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: var(--text);
  text-align: left;
}

.activity-question-item:hover,
.activity-question-item.active {
  border-color: color-mix(in srgb, var(--activity-primary) 72%, white 8%);
  background: color-mix(in srgb, var(--activity-primary) 15%, #0f172a);
}

.activity-question-item > span:first-child {
  color: #5eead4;
  font: 800 12px/1 monospace;
}

.activity-question-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.activity-question-item strong,
.activity-question-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-question-item small,
.activity-question-item b,
.activity-builder-questions footer {
  color: var(--muted);
  font-size: 11px;
}

.activity-builder-questions footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.activity-question-editor {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

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

.activity-feedback-grid textarea {
  min-height: 112px;
}

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

.activity-option-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 8px;
  align-items: center;
}

.activity-correct-choice {
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.activity-correct-choice:has(input:checked) {
  border-color: #2dd4bf;
  color: #5eead4;
  background: rgba(45, 212, 191, 0.1);
}

.activity-correct-choice.unavailable {
  cursor: not-allowed;
  opacity: 0.42;
}

.activity-correct-choice input {
  position: absolute;
  opacity: 0;
}

.content-dialog.interactive-activity-dialog {
  width: min(760px, calc(100vw - 28px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--teal) 42%, transparent);
}

.interactive-activity-dialog #dialogBody {
  padding: 0;
}

.interactive-activity-dialog .dialog-close {
  top: 18px;
  right: 18px;
  z-index: 20;
}

.interactive-activity {
  display: grid;
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  color: #f8fafc;
  background: #07101d;
}

.interactive-activity-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 18px 76px 18px 22px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--activity-primary) 48%, #07101d), #0f172a 70%);
}

.interactive-activity-header h2 {
  margin: 3px 0 0;
  font-size: clamp(20px, 3vw, 30px);
}

.interactive-score {
  display: grid;
  min-width: 72px;
  text-align: right;
}

.interactive-score strong {
  color: #5eead4;
  font-size: 24px;
}

.interactive-score small {
  color: rgba(255,255,255,.68);
}

.interactive-progress {
  height: 5px;
  background: rgba(255,255,255,.08);
}

.interactive-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--activity-primary), var(--activity-accent));
  transition: width 220ms ease;
}

.interactive-question,
.interactive-completion {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.interactive-question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.interactive-question h3,
.interactive-completion h3 {
  margin: 0;
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.2;
}

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

.interactive-answer {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  text-align: left;
}

.interactive-answer:hover,
.interactive-answer.selected {
  border-color: color-mix(in srgb, var(--activity-primary) 70%, white 12%);
  background: color-mix(in srgb, var(--activity-primary) 22%, #0f172a);
}

.interactive-answer-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #5eead4;
  border-radius: 999px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.interactive-answer-check.multiple {
  border-radius: 6px;
}

.interactive-answer.selected .interactive-answer-check {
  border-color: color-mix(in srgb, var(--activity-primary) 68%, #ffffff 28%);
  background: color-mix(in srgb, var(--activity-primary) 82%, #14b8a6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--activity-primary) 18%, transparent);
}

.interactive-answer.selected .interactive-answer-check.single::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
}

.interactive-answer.selected .interactive-answer-check.multiple::after {
  content: "";
  width: 6px;
  height: 10px;
  margin-top: -2px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.interactive-scale-labels,
.interactive-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.interactive-scale-labels {
  color: #94a3b8;
  font-size: 12px;
}

.interactive-scale button {
  flex: 1;
  min-width: 44px;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
}

.interactive-scale button.selected {
  border-color: #5eead4;
  background: color-mix(in srgb, var(--activity-primary) 32%, #0f172a);
}

.interactive-feedback {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  background: rgba(15, 23, 42, .82);
}

.interactive-feedback span {
  display: grid;
  gap: 4px;
}

.interactive-feedback small {
  color: #cbd5e1;
  line-height: 1.45;
}

.interactive-feedback.correct { border-color: rgba(45, 212, 191, .55); color: #5eead4; }
.interactive-feedback.incorrect { border-color: rgba(251, 113, 133, .55); color: #fb7185; }
.interactive-feedback.neutral { color: #93c5fd; }

.interactive-question footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.interactive-completion {
  place-items: center;
  min-height: 430px;
  text-align: center;
}

.interactive-completion-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--activity-accent) 70%, white 10%);
  border-radius: 50%;
  color: var(--activity-accent);
  background: color-mix(in srgb, var(--activity-accent) 14%, #0f172a);
}

.interactive-completion-icon svg { width: 36px; height: 36px; }

.interactive-result {
  display: grid;
  gap: 6px;
}

.interactive-result strong { font-size: 42px; color: #5eead4; }
.interactive-result strong small { font-size: 16px; color: #cbd5e1; }
.interactive-result span,
.interactive-completion p { color: #cbd5e1; }

@media (max-width: 1100px) {
  .activity-builder-layout {
    grid-template-columns: 280px minmax(260px, 330px) minmax(360px, 1fr);
  }
}

@media (max-width: 820px) {
  .content-dialog.activity-builder-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    border: 0;
    border-radius: 0;
  }

  .activity-builder {
    display: block;
    overflow-y: auto;
  }

  .activity-builder-header {
    align-items: flex-start;
    padding: 18px 64px 18px 16px;
  }

  .activity-builder-head-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .activity-builder-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activity-builder-settings,
  .activity-builder-questions,
  .activity-question-editor {
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .interactive-answer-grid {
    grid-template-columns: 1fr;
  }

  .activity-feedback-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .content-dialog.interactive-activity-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .interactive-activity {
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .interactive-activity-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 14px 58px 14px 14px;
  }

  .interactive-score {
    min-width: 48px;
    text-align: right;
  }

  .interactive-question,
  .interactive-completion {
    padding: 20px 16px;
  }

  .interactive-scale {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .interactive-scale button {
    flex: 0 0 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-progress span { transition: none; }
}

/* Studio scene navigator: selection stays available without reopening the map editor. */
body:not(.public-mode) .viewer-column {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body:not(.public-mode) .viewer-column:fullscreen {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.studio-scene-switcher {
  position: relative;
  z-index: 13;
  display: grid;
  grid-template-columns: 142px 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  height: 92px;
  padding: 8px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(13, 21, 34, 0.96), rgba(7, 13, 22, 0.98));
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.22);
  color: #e5f0ff;
  transition: height 180ms ease;
}

.studio-scene-switcher.hidden,
body.public-mode .studio-scene-switcher {
  display: none !important;
}

.studio-scene-switcher.collapsed {
  grid-template-columns: minmax(0, 1fr);
  height: 46px;
  padding-block: 5px;
}

.studio-scene-switcher-summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding-right: 8px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.studio-scene-switcher.collapsed .studio-scene-switcher-summary {
  grid-template-columns: 30px minmax(0, 1fr) 32px;
  padding-right: 0;
  border-right: 0;
}

.studio-scene-switcher-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
}

.studio-scene-switcher-mark svg {
  width: 18px;
  height: 18px;
}

.studio-scene-switcher-heading,
.studio-scene-switcher-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: left;
}

.studio-scene-switcher-heading strong,
.studio-scene-switcher-copy strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-scene-switcher-heading small,
.studio-scene-switcher-copy small {
  overflow: hidden;
  color: #8293aa;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-scene-switcher-toggle,
.studio-scene-switcher-nav {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #dbeafe;
}

.studio-scene-switcher-toggle {
  width: 32px;
  height: 32px;
}

.studio-scene-switcher-toggle svg,
.studio-scene-switcher-nav svg {
  width: 18px;
  height: 18px;
}

.studio-scene-switcher-toggle:hover,
.studio-scene-switcher-toggle:focus-visible,
.studio-scene-switcher-nav:hover,
.studio-scene-switcher-nav:focus-visible {
  border-color: rgba(45, 212, 191, 0.62);
  background: rgba(20, 184, 166, 0.16);
  color: #ffffff;
  outline: none;
}

.studio-scene-switcher-nav:disabled {
  opacity: 0.34;
  cursor: default;
}

.studio-scene-switcher-track {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 74px;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.studio-scene-switcher-track::-webkit-scrollbar {
  display: none;
}

.studio-scene-switcher-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  flex: 0 0 184px;
  gap: 8px;
  width: 184px;
  height: 68px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.studio-scene-switcher-card:hover,
.studio-scene-switcher-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.56);
  background: rgba(24, 38, 58, 0.92);
  outline: none;
}

.studio-scene-switcher-card.active {
  border-color: #2dd4bf;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(15, 23, 42, 0.9));
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.18),
    0 10px 24px rgba(20, 184, 166, 0.14);
}

.studio-scene-switcher-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 56px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.78);
  color: #64748b;
}

.studio-scene-switcher-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-scene-switcher-thumb > svg:not(.studio-scene-switcher-media) {
  width: 22px;
  height: 22px;
}

.studio-scene-switcher-thumb .studio-scene-switcher-media {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  color: #ffffff;
}

@media (max-height: 800px) and (min-width: 761px) {
  .studio-scene-switcher {
    grid-template-columns: 130px 38px minmax(0, 1fr) 38px;
    height: 78px;
    gap: 6px;
    padding: 6px 8px;
  }

  .studio-scene-switcher.collapsed {
    height: 42px;
  }

  .studio-scene-switcher-summary {
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    gap: 6px;
    padding-right: 6px;
  }

  .studio-scene-switcher-mark,
  .studio-scene-switcher-toggle {
    width: 30px;
    height: 30px;
  }

  .studio-scene-switcher-nav {
    width: 36px;
    height: 36px;
  }

  .studio-scene-switcher-track {
    height: 64px;
  }

  .studio-scene-switcher-card {
    grid-template-columns: 66px minmax(0, 1fr);
    flex-basis: 168px;
    width: 168px;
    height: 58px;
  }

  .studio-scene-switcher-thumb {
    width: 66px;
    height: 48px;
  }
}

@media (max-width: 760px) {
  .studio-scene-switcher {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    height: 82px;
    padding: 6px 8px;
  }

  .studio-scene-switcher-summary {
    display: none;
  }

  .studio-scene-switcher.collapsed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: 46px;
  }

  .studio-scene-switcher.collapsed .studio-scene-switcher-summary {
    display: grid;
  }

  .studio-scene-switcher-track {
    height: 68px;
  }

  .studio-scene-switcher-card {
    grid-template-columns: 64px minmax(0, 1fr);
    flex-basis: min(74vw, 190px);
    width: min(74vw, 190px);
    height: 62px;
  }

  .studio-scene-switcher-thumb {
    width: 64px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-scene-switcher,
  .studio-scene-switcher-track {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Revelado 360: non-destructive scene image editor. */
.content-dialog:has(.reveal360-dialog) {
  width: min(1540px, calc(100vw - 28px));
  height: calc(100vh - 24px);
  max-width: none;
  max-height: none;
  overflow: hidden;
  border-radius: 22px;
  background: #080f1b;
}

.content-dialog:has(.reveal360-dialog) #dialogBody {
  height: 100%;
  padding: 0;
}

.content-dialog:has(.reveal360-dialog) .dialog-close {
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 44px;
  height: 44px;
}

.reveal360-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 142px;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  color: #e5edf8;
  background:
    radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.09), transparent 30%),
    #080f1b;
}

.reveal360-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 16px 82px 14px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 27, 0.92);
}

#dialogBody .reveal360-header h2 {
  margin: 2px 0 3px;
  color: #f8fafc;
  font-size: 22px;
}

#dialogBody .reveal360-header p {
  color: #91a2b8;
  font-size: 12px;
}

.reveal360-scene-count {
  padding: 7px 11px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  color: #99f6e4;
  font-size: 11px;
  white-space: nowrap;
}

.reveal360-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.reveal360-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 14px;
}

.reveal360-preview-column,
.reveal360-controls {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
}

.reveal360-preview-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.reveal360-preview-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #02060b;
}

.reveal360-panorama {
  position: absolute;
  inset: 0;
}

.reveal360-panorama .pnlm-container,
.reveal360-panorama canvas {
  width: 100% !important;
  height: 100% !important;
}

.reveal360-panorama .pnlm-load-box,
.reveal360-panorama .pnlm-lbox {
  display: none !important;
}

.gallery-reveal-preview-shell {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, #02060b 25%, #02060b 75%, rgba(255, 255, 255, 0.035) 75%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.gallery-reveal-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.gallery-reveal-empty {
  grid-row: 2 / 4;
}

.gallery-reveal-empty .text-button {
  margin-top: 10px;
}

/* Compact studio accordions so one expanded tool fits without a sidebar scrollbar. */
body:not(.public-mode) .left-panel > .accordion-section {
  margin-top: 7px;
  margin-bottom: 7px;
}

body:not(.public-mode) .left-panel > .accordion-section > .section-title {
  padding: 7px 10px 6px;
}

body:not(.public-mode) .left-panel > .accordion-section .section-toggle {
  min-height: 32px;
}

body:not(.public-mode) .left-panel > .accordion-section.collapsed .section-title {
  padding-bottom: 7px;
}

body:not(.public-mode) .left-panel > .accordion-section > .section-body {
  padding: 0 9px 9px;
}

body:not(.public-mode) .left-panel .branding-entry-card,
body:not(.public-mode) .left-panel .reveal360-entry-card,
body:not(.public-mode) .left-panel .layers360-entry-card {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14);
}

body:not(.public-mode) .left-panel .branding-entry-icon,
body:not(.public-mode) .left-panel .reveal360-entry-icon,
body:not(.public-mode) .left-panel .layers360-entry-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

body:not(.public-mode) .left-panel .branding-entry-status,
body:not(.public-mode) .left-panel .reveal360-entry-status,
body:not(.public-mode) .left-panel .layers360-entry-status {
  padding: 3px 7px;
}

.reveal360-preview-state {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  visibility: hidden;
  background: rgba(2, 8, 15, 0.58);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity 140ms ease, visibility 140ms ease;
}

.reveal360-preview-state.visible {
  visibility: visible;
  opacity: 1;
}

.reveal360-preview-state strong {
  color: #f8fafc;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.reveal360-preview-state small {
  color: #8192a8;
  font-size: 11px;
}

.reveal360-spinner {
  width: 28px;
  height: 28px;
  border: 0;
  --brand-primary: #f59e0b;
  --brand-accent: #fde68a;
}

.reveal360-brand-loading-mark {
  margin-bottom: 6px;
}

.reveal360-original-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 9;
  display: none;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.reveal360-original-badge.visible {
  display: inline-flex;
}

.reveal360-toolbar,
.reveal360-save-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.reveal360-controls {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.reveal360-controls-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.reveal360-controls-head strong,
.reveal360-controls-head .eyebrow {
  display: block;
}

.reveal360-controls-head strong {
  max-width: 210px;
  margin-top: 4px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal360-control-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 10px 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: #40506a transparent;
}

.reveal360-control,
.reveal360-control > span {
  display: grid;
}

.reveal360-control {
  gap: 8px;
  padding: 10px 0;
}

.reveal360-control > span {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.reveal360-control strong,
.reveal360-control output {
  font-size: 11px;
}

.reveal360-control output {
  min-width: 42px;
  color: #9ff6e6;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.reveal360-control input[type="range"] {
  width: 100%;
  accent-color: #2dd4bf;
  cursor: ew-resize;
}

.reveal360-control-group {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.reveal360-control-group-title {
  display: block;
  margin: 6px 0 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reveal360-save-actions {
  justify-content: space-between;
}

.reveal360-save-actions .primary {
  margin-left: auto;
}

.reveal360-save-actions button:disabled svg {
  animation: reveal360-spin 760ms linear infinite;
}

.reveal360-scene-footer {
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(6, 12, 21, 0.96);
}

.reveal360-batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  padding: 5px 14px 3px;
}

.reveal360-batch-toolbar > span {
  margin-right: auto;
  color: #91a2b8;
  font-size: 11px;
  white-space: nowrap;
}

.reveal360-batch-toolbar > span strong { color: #f2c45f; }
.reveal360-batch-toolbar .text-button { min-height: 32px; padding: 6px 10px; font-size: 10px; }

.reveal360-scene-rail {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 5px 14px 10px;
  scrollbar-width: thin;
}

.reveal360-scene-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  flex: 0 0 246px;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbe8f8;
  text-align: left;
}

.reveal360-scene-card:hover,
.reveal360-scene-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(18, 37, 53, 0.9);
}

.reveal360-scene-card.active {
  border-color: #2dd4bf;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.28);
}

.reveal360-scene-card.selected {
  background: rgba(242, 196, 95, 0.08);
  box-shadow: inset 0 0 0 1px rgba(242, 196, 95, 0.34);
}

.reveal360-scene-card.active.selected {
  border-color: #2dd4bf;
  box-shadow: inset 0 0 0 1px rgba(242, 196, 95, 0.5), 0 0 0 1px rgba(45, 212, 191, 0.18);
}

.reveal360-scene-open {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.reveal360-scene-select {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(2, 8, 15, 0.56);
  color: #91a2b8;
}

.reveal360-scene-select[aria-pressed="true"] { border-color: rgba(242, 196, 95, 0.7); color: #f2c45f; background: rgba(242, 196, 95, 0.12); }
.reveal360-scene-select svg { width: 16px; height: 16px; }

.reveal360-scene-thumb {
  display: block;
  width: 88px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 7px;
  background: #020617;
}

#dialogBody .reveal360-scene-thumb img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.reveal360-scene-open > span:nth-child(2) {
  min-width: 0;
}

.reveal360-scene-card strong,
.reveal360-scene-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal360-scene-card strong {
  font-size: 12px;
}

.reveal360-scene-card small {
  margin-top: 4px;
  color: #8fa1b8;
  font-size: 10px;
}

.reveal360-scene-check {
  position: absolute;
  top: 6px;
  right: 43px;
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  background: #0f9f8f;
  color: #fff;
}

.reveal360-empty {
  grid-row: 2 / 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  color: #91a2b8;
  text-align: center;
}

.reveal360-empty svg {
  width: 38px;
  height: 38px;
  color: #2dd4bf;
}

.reveal360-empty strong {
  color: #f8fafc;
}

.reveal360-empty span {
  max-width: 480px;
  font-size: 12px;
  line-height: 1.5;
}

@keyframes reveal360-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .content-dialog:has(.reveal360-dialog) {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .reveal360-dialog {
    grid-template-rows: auto minmax(0, 1fr) 142px;
  }

  .reveal360-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 8px;
    padding: 8px;
  }

  .reveal360-toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .content-dialog:has(.reveal360-dialog) {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .reveal360-dialog {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    overflow-y: auto;
  }

  .reveal360-header {
    order: 1;
  }

  .reveal360-header {
    min-height: 78px;
    padding: 14px 66px 12px 14px;
  }

  #dialogBody .reveal360-header h2 {
    font-size: 18px;
  }

  #dialogBody .reveal360-header p,
  .reveal360-scene-count {
    display: none;
  }

  .reveal360-header-actions {
    margin-left: auto;
  }

  .reveal360-header-actions .operation-state-indicator {
    min-height: 32px;
    padding: 5px 8px 5px 6px;
  }

  .reveal360-workspace {
    display: contents;
  }

  .reveal360-preview-column {
    order: 2;
    height: min(58dvh, 480px);
    margin: 8px 8px 0;
  }

  .reveal360-controls {
    order: 4;
    margin: 8px;
    overflow: visible;
  }

  .reveal360-control-scroll {
    max-height: none;
    overflow: visible;
  }

  .reveal360-save-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    background: #0f172a;
  }

  .reveal360-scene-footer {
    position: relative;
    order: 3;
    z-index: 11;
    flex: 0 0 132px;
    height: 132px;
    margin-top: 8px;
  }

  .reveal360-batch-toolbar {
    padding-inline: 10px;
  }

  .reveal360-scene-rail {
    height: auto;
    margin: 0;
    padding: 4px 10px 9px;
  }

  .reveal360-scene-card {
    flex-basis: 222px;
  }

  .reveal360-scene-open {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .reveal360-scene-thumb {
    width: 76px;
  }
}

@media (max-width: 420px) {
  .reveal360-batch-toolbar .text-button span {
    display: none;
  }

  .reveal360-batch-toolbar .text-button {
    width: 32px;
    min-width: 32px;
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal360-entry-card,
  .reveal360-preview-state {
    transition: none;
  }
}

/* Capas 360: isolated spatial composition editor and runtime overlay. */
.layers360-render-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.layers360-render-canvas { display: block; width: 100%; height: 100%; }
.panorama .pnlm-ui { z-index: 3; }
.video-hotspot-layer { z-index: 3; }

.content-dialog:has(.layers360-dialog) {
  width: min(1580px, calc(100vw - 28px));
  height: calc(100vh - 24px);
  max-width: none;
  max-height: none;
  overflow: hidden;
  border-radius: 22px;
  background: #080f1b;
}

.content-dialog:has(.layers360-dialog) #dialogBody { height: 100%; padding: 0; }
.content-dialog:has(.layers360-dialog) .dialog-close { top: 18px; right: 18px; z-index: 30; width: 44px; height: 44px; }

.layers360-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 104px;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  color: #e5edf8;
  background: radial-gradient(circle at 82% 0%, rgba(244, 193, 82, 0.08), transparent 30%), #080f1b;
}

.layers360-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 14px 76px 14px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 27, 0.94);
}

#dialogBody .layers360-header h2 { margin: 2px 0; color: #f8fafc; font-size: 22px; }
#dialogBody .layers360-header p { color: #91a2b8; font-size: 12px; }
.layers360-header-actions { display: flex; align-items: center; gap: 10px; }
.layers360-save-state { color: #91a2b8; font-size: 11px; }
.layers360-save-state.is-dirty { color: #fde68a; }

.layers360-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 14px;
}

.layers360-editor-column,
.layers360-properties {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
}

.layers360-editor-column { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.layers360-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 27, 0.9);
}

.layers360-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9px;
  background: #111c2f;
  color: #cad5e5;
  font-size: 11px;
  font-weight: 750;
}

.layers360-tool svg { width: 16px; height: 16px; }
.layers360-tool:hover,
.layers360-tool.active { border-color: #2dd4bf; background: rgba(13, 148, 136, 0.2); color: #ccfbf1; }
.layers360-placement-status { margin-left: auto; color: #fde68a; font-size: 10px; white-space: nowrap; }
.layers360-finish-zone { flex: 0 0 auto; min-height: 36px; }

.layers360-stage { position: relative; min-height: 0; overflow: hidden; background: #02060b; }
.layers360-panorama { position: absolute; inset: 0; }
.layers360-panorama .pnlm-container,
.layers360-panorama canvas { width: 100% !important; height: 100% !important; }
.layers360-panorama .pnlm-container { background: #02060b !important; }
.layers360-panorama .pnlm-load-box,
.layers360-panorama .pnlm-loading { display: none !important; }
.layers360-brand-loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  background: #050b13;
  color: #dce7f5;
  text-align: center;
  transition: opacity 220ms ease, visibility 220ms ease;
  pointer-events: none;
}
.layers360-brand-loading.hidden { visibility: hidden; opacity: 0; }
.layers360-brand-loading-mark { position: relative; display: grid; place-items: center; width: 108px; height: 108px; margin-bottom: 8px; }
.layers360-brand-loading-mark img { position: relative; z-index: 3; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 24px rgba(34, 211, 238, 0.14); }
.layers360-brand-loading-mark > span { position: absolute; inset: 5px; border: 1px solid transparent; border-top-color: #22d3ee; border-radius: 50%; animation: layers360-brand-orbit 1.8s linear infinite; }
.layers360-brand-loading-mark > span:nth-child(2) { inset: 15px; border-top-color: #f2c45f; animation-duration: 2.4s; animation-direction: reverse; }
.layers360-brand-loading-mark > span:nth-child(3) { inset: 25px; border-color: rgba(45, 212, 191, 0.2); border-right-color: #2dd4bf; animation-duration: 1.25s; }
.layers360-brand-loading strong { color: #f8fafc; font-size: 14px; letter-spacing: 0.04em; }
.layers360-brand-loading small { color: #8192a8; font-size: 11px; }
.layers360-brand-loading.is-error .layers360-brand-loading-mark > span { border-top-color: #fb7185; animation: none; }
.layers360-brand-loading.is-error strong { color: #fecaca; }
@keyframes layers360-brand-orbit { to { transform: rotate(360deg); } }
.layers360-handles { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.layers360-handle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0f9f8f;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  font-size: 9px;
  font-weight: 900;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.layers360-handle:active { cursor: grabbing; }
.layers360-stage-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 7;
  padding: 7px 11px;
  transform: translateX(-50%);
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.82);
  color: #fde68a;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}
.layers360-stage-hint.hidden { display: none; }

.layers360-properties { display: grid; grid-template-rows: auto minmax(112px, 0.8fr) minmax(0, 1.2fr); }
.layers360-properties-head { padding: 14px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.layers360-properties-head strong { display: block; margin-top: 4px; font-size: 13px; }
.layers360-layer-list { min-height: 0; overflow-y: auto; padding: 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.layers360-layer-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 34px; gap: 5px; margin-bottom: 5px; padding: 4px; border: 1px solid transparent; border-radius: 10px; }
.layers360-layer-row.active { border-color: rgba(45, 212, 191, 0.42); background: rgba(13, 148, 136, 0.12); }
.layers360-layer-row > button:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 4px 6px; border: 0; background: transparent; color: #dce7f5; text-align: left; }
.layers360-layer-row > button:first-child > svg { flex: 0 0 auto; width: 16px; }
.layers360-layer-row span { min-width: 0; }
.layers360-layer-row strong,
.layers360-layer-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers360-layer-row strong { font-size: 11px; }
.layers360-layer-row small { margin-top: 2px; color: #8293aa; font-size: 9px; }
.layers360-layer-row small.is-warning { color: #fbbf24; }
.layers360-layer-row .icon-button { width: 34px; min-width: 34px; height: 34px; }
.layers360-layer-row .danger:hover { color: #fca5a5; }

.layers360-property-scroll { min-height: 0; overflow-y: auto; padding: 12px 16px 18px; }
.layers360-property-form { display: grid; gap: 12px; }
.layers360-property-form label { display: grid; gap: 6px; min-width: 0; color: #91a2b8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.layers360-property-form input:not([type="color"]),
.layers360-property-form textarea { width: 100%; min-width: 0; }
.layers360-property-form textarea { min-height: 72px; resize: vertical; }
.layers360-property-form input[type="color"] { width: 52px; height: 38px; padding: 4px; }
.layers360-property-form input[type="range"] { accent-color: #2dd4bf; }
.layers360-content-transform { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 8px; background: rgba(8, 18, 32, 0.42); }
.layers360-content-transform > span { color: #91a2b8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.layers360-content-transform > div { display: flex; align-items: center; gap: 8px; }
.layers360-content-transform .text-button { flex: 1; justify-content: center; }
.layers360-content-transform .icon-button.active { color: #07131b; border-color: #2dd4bf; background: #2dd4bf; }
.layers360-content-transform small { min-height: 14px; color: #73849a; font-size: 10px; }
.layers360-brand-font { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 8px; color: #91a2b8; font-size: 9px; text-transform: uppercase; }
.layers360-brand-font strong { overflow: hidden; color: #dce7f5; font-family: var(--public-font, sans-serif); font-size: 11px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.layers360-text-effects { display: grid; gap: 11px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 8px; background: rgba(8, 18, 32, 0.42); }
.layers360-media-field { display: grid; gap: 9px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 8px; background: rgba(8, 18, 32, 0.42); }
.layers360-media-field > span { color: #91a2b8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.layers360-media-field > div { display: grid; place-items: center; gap: 7px; min-height: 84px; overflow: hidden; border: 1px dashed rgba(45, 212, 191, 0.38); border-radius: 7px; color: #91a2b8; background: rgba(2, 8, 15, 0.7); }
.layers360-media-field > div > svg { width: 24px; height: 24px; color: #2dd4bf; }
.layers360-media-field > div > strong { font-size: 11px; }
.layers360-media-field img { display: block; width: 100%; height: 112px; object-fit: cover; }
.layers360-media-field .text-button { justify-content: center; width: 100%; }
.layers360-media-field .text-button[disabled] svg { animation: layers360-upload-spin 0.9s linear infinite; }
.layers360-upload-error { color: #fca5a5; font-size: 10px; line-height: 1.45; }
.layers360-image-url-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; place-items: initial !important; gap: 7px !important; min-height: 0 !important; padding: 10px !important; overflow: visible !important; border-style: solid !important; }
.layers360-image-url-row > span { grid-column: 1 / -1; color: #91a2b8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.layers360-image-url-row input { width: 100%; min-width: 0; height: 38px; }
.layers360-image-url-row .text-button { width: auto; min-width: 104px; }
@keyframes layers360-upload-spin { to { transform: rotate(360deg); } }
.layers360-property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layers360-coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
.layers360-coordinates > span { grid-column: 1 / -1; color: #91a2b8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.layers360-coordinates small { color: #a8b7cc; font-size: 9px; font-variant-numeric: tabular-nums; }
.layers360-reposition { justify-content: center; width: 100%; }
.layers360-property-empty,
.layers360-empty-list { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 100%; color: #8293aa; text-align: center; font-size: 11px; }
.layers360-empty-list svg { width: 24px; color: #f2c45f; }
.layers360-property-empty strong { color: #dce7f5; }

.layers360-scene-rail { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding: 10px 14px 12px; border-top: 1px solid rgba(148, 163, 184, 0.16); background: rgba(6, 12, 21, 0.96); scrollbar-width: thin; }
.layers360-scene-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; flex: 0 0 246px; gap: 10px; min-width: 0; padding: 7px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 10px; background: rgba(15, 23, 42, 0.78); color: #dbe8f8; text-align: left; }
.layers360-scene-card.active { border-color: #f2c45f; box-shadow: inset 0 0 0 1px rgba(244, 193, 82, 0.24); }
.layers360-scene-card > span:first-child { display: block; width: 96px; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 7px; background: #020617; }
#dialogBody .layers360-scene-card img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.layers360-scene-card strong,
.layers360-scene-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers360-scene-card strong { font-size: 12px; }
.layers360-scene-card small { margin-top: 4px; color: #8fa1b8; font-size: 10px; }
.layers360-empty { grid-row: 2 / 4; display: grid; place-content: center; justify-items: center; gap: 10px; color: #91a2b8; }

@media (max-width: 980px) {
  .content-dialog:has(.layers360-dialog) { width: calc(100vw - 16px); height: calc(100vh - 16px); }
  .layers360-workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 8px; padding: 8px; }
  .layers360-tool span { display: none; }
  .layers360-tool { width: 38px; padding: 7px; }
}

@media (max-width: 720px) {
  .content-dialog:has(.layers360-dialog) { width: 100vw; height: 100dvh; border-radius: 0; }
  .layers360-dialog { display: flex; flex-direction: column; height: auto; min-height: 100%; overflow-y: auto; }
  .layers360-header { order: 1; min-height: 78px; padding: 12px 64px 12px 14px; }
  #dialogBody .layers360-header h2 { font-size: 18px; }
  #dialogBody .layers360-header p,
  .layers360-save-state { display: none; }
  .layers360-header-actions .text-button span { display: none; }
  .layers360-workspace { display: contents; }
  .layers360-editor-column { order: 2; height: min(58dvh, 480px); margin: 8px 8px 0; }
  .layers360-toolbar { overflow-x: auto; }
  .layers360-placement-status { display: none; }
  .layers360-properties { order: 4; min-height: 420px; margin: 8px; overflow: visible; }
  .layers360-layer-list { max-height: 190px; }
  .layers360-property-scroll { overflow: visible; }
  .layers360-scene-rail { order: 3; height: 88px; margin-top: 8px; }
  .layers360-scene-card { flex-basis: 210px; grid-template-columns: 80px minmax(0, 1fr); }
  .layers360-scene-card > span:first-child { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .layers360-entry-card { transition: none; }
  .layers360-brand-loading-mark > span { animation: none; }
}

@media (max-width: 920px) and (max-height: 520px) and (orientation: landscape) {
  body.public-mode .viewer-column[data-viewer-style="showcase"],
  body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-stage,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .panorama {
    border-radius: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-toolbar:has(.public-lot-plan-button) .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
    position: absolute !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
  }
}


/* Branding: independent alignment controls for every textual sidebar block. */
.branding-alignment-title {
  margin-top: 16px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-eyebrow {
  text-align: var(--showcase-eyebrow-align, var(--showcase-text-align, left)) !important;
  margin: var(--showcase-eyebrow-margin, 0 auto) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
  text-align: var(--showcase-title-align, var(--showcase-text-align, left)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy p {
  text-align: var(--showcase-tagline-align, var(--showcase-text-align, left)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-actions {
  justify-items: var(--showcase-action-grid-align, start) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start span {
  grid-column: 1;
  text-align: var(--showcase-action-align, var(--showcase-text-align, left)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start {
  position: relative;
  grid-template-columns: minmax(0, 1fr) !important;
  padding-right: 48px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start > svg,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start > i {
  position: absolute;
  right: 18px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links a {
  justify-content: var(--showcase-links-flex-align, flex-start) !important;
  text-align: var(--showcase-links-align, var(--showcase-text-align, left)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales span,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales strong {
  text-align: var(--showcase-sales-align, var(--showcase-text-align, left)) !important;
}

.project-library-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.project-library-heading-actions .text-button {
  min-width: 0;
}

.project-folder-select {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.project-folder-select span {
  color: #99f6e4 !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-folder-select select {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.45);
  color: #e2e8f0;
  font: inherit;
  font-size: 12px;
}

@media (max-width: 920px) {
  .project-library-heading-actions {
    justify-content: flex-start;
  }
}

/* Final large scene/floorplan manager modal. */
.content-dialog:has(.scene-map-dialog) {
  width: min(1280px, calc(100vw - 28px)) !important;
}

.content-dialog:has(.scene-map-dialog) #dialogBody {
  padding: 22px 36px 28px 24px;
}

.scene-map-dialog {
  display: grid;
  gap: 18px;
  width: 100%;
}

.scene-map-dialog .dialog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding-right: 46px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.scene-map-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  min-height: min(70vh, 760px);
}

.scene-map-upload-progress {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(120px, 220px) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 191, 0.36);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
}

.scene-map-upload-spinner {
  width: 26px;
  height: 26px;
  border: 0;
  --brand-primary: #f59e0b;
  --brand-accent: #fde68a;
}

.scene-map-upload-copy {
  min-width: 0;
}

.scene-map-upload-copy strong,
.scene-map-upload-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-map-upload-copy strong {
  color: #f8fafc;
  font-size: 13px;
}

.scene-map-upload-copy span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.scene-map-upload-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.scene-map-upload-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #67e8f9);
  transition: width 0.22s ease;
}

.scene-map-upload-progress small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

@keyframes scene-map-spin {
  to {
    transform: rotate(360deg);
  }
}

.scene-map-scenes,
.scene-map-floorplan,
.scene-map-settings {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.scene-map-scenes {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.scene-map-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scene-map-section-title strong {
  color: #f8fafc;
}

.scene-map-section-title span {
  color: #94a3b8;
  font-size: 12px;
}

.scene-map-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.scene-map-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.scene-map-item.active,
.scene-map-item:hover {
  border-color: rgba(45, 212, 191, 0.56);
  background: rgba(20, 184, 166, 0.12);
}

.scene-map-item strong,
.scene-map-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-map-item strong {
  color: #f8fafc;
  font-size: 13px;
}

.scene-map-item span {
  color: #94a3b8;
  font-size: 11px;
}

.scene-map-item-actions {
  display: flex;
  gap: 6px;
}

.scene-map-item-actions .icon-button {
  width: 34px;
  height: 34px;
}

.scene-map-floorplan {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.scene-map-settings {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.scene-map-settings-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.scene-map-settings .inspector-block-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.scene-map-settings .inspector-subgroup {
  border-radius: 16px;
}

.scene-map-settings .field-row.three,
.scene-map-settings .field-grid.two {
  grid-template-columns: 1fr;
}

.scene-map-floorplan-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 96px auto;
  align-items: end;
  gap: 10px;
}

.scene-map-floorplan-toolbar label {
  display: grid;
  gap: 6px;
}

.scene-map-floorplan-toolbar span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-map-floorplan-toolbar input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.42);
  color: #e2e8f0;
}

.scene-map-large-map {
  width: 100%;
  min-height: 520px;
  height: 100%;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.35);
}

.scene-map-large-map > img {
  max-width: 100%;
  max-height: 100%;
}

.scene-map-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 520px;
  color: #cbd5e1;
  text-align: center;
}

.scene-map-empty > svg,
.scene-map-empty > i {
  width: 42px;
  height: 42px;
  color: #2dd4bf;
}

@media (max-width: 980px) {
  .scene-map-dialog .dialog-heading,
  .scene-map-layout {
    grid-template-columns: 1fr;
  }

  .scene-map-upload-progress {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .scene-map-upload-meter {
    grid-column: 1 / -1;
  }

  .scene-map-floorplan-toolbar {
    grid-template-columns: 1fr;
  }

  .scene-map-large-map {
    min-height: 420px;
  }
}

/* Final scene-map fit: keep the whole floorplan inside the viewport. */
.content-dialog:has(.scene-map-dialog) {
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.content-dialog:has(.scene-map-dialog) #dialogBody {
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.scene-map-dialog {
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 82px);
  overflow: hidden;
}

.scene-map-layout {
  min-height: 0 !important;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(280px, 340px) !important;
  height: min(70vh, calc(100vh - 190px));
  overflow: hidden;
}

.scene-map-scenes,
.scene-map-floorplan,
.scene-map-settings {
  min-height: 0;
  overflow: hidden;
}

.scene-map-floorplan {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.scene-map-large-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 0;
  aspect-ratio: var(--floorplan-ratio, 1 / 1);
  overflow: hidden;
}

.scene-map-large-map > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: fill !important;
}

@media (max-height: 760px) {
  .scene-map-dialog {
    max-height: calc(100vh - 62px);
  }

  .scene-map-layout {
    height: calc(100vh - 165px);
  }

  .scene-map-floorplan-toolbar {
    grid-template-columns: minmax(140px, 1fr) 80px auto;
  }
}

@media (max-width: 1320px) {
  .scene-map-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important;
  }

  .scene-map-settings {
    grid-column: 1 / -1;
    max-height: 260px;
  }
}

@media (max-width: 980px) {
  .scene-map-layout {
    grid-template-columns: 1fr !important;
    height: calc(100vh - 150px);
    overflow: auto;
  }

  .scene-map-scenes,
  .scene-map-floorplan,
  .scene-map-settings {
    min-height: 260px;
  }
}

@media (max-width: 1180px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info {
    width: min(300px, 30vw) !important;
  }
}

/* Final editor sidebar: scenes and floorplan now live in the large modal. */
.scene-map-launch-section .section-toggle {
  cursor: pointer;
}

.scene-map-launch-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 42%),
    rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  text-align: left;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18);
  cursor: pointer;
}

.scene-map-launch-card:hover,
.scene-map-launch-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.72);
  transform: translateY(-1px);
}

.scene-map-launch-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(8, 145, 178, 0.9));
  color: #02131c;
}

.scene-map-launch-card strong,
.scene-map-launch-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-map-launch-card strong {
  color: #f8fafc;
  font-size: 14px;
}

.scene-map-launch-card small {
  margin-top: 3px;
  color: #a8b7cc;
  font-size: 11px;
  line-height: 1.35;
}

.legacy-hidden-editor {
  display: none !important;
}

.analytics-table-wrap {
  max-height: min(52vh, 520px);
}

.analytics-table td:first-child strong,
.analytics-table td:first-child span {
  display: block;
}

.analytics-table td:first-child span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.analytics-table th,
.analytics-table td {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .control-header {
    display: grid;
  }

  .control-quick-stats {
    justify-content: flex-start;
    min-width: 0;
  }

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

  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .quick-link-editor-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .quick-link-editor-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .field-grid.four {
    grid-template-columns: 1fr;
  }

  .control-tabs,
  .control-actions,
  .control-row-actions {
    align-items: stretch;
  }

  .control-tab,
  .control-actions .text-button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .content-dialog:has(.branding-dialog) {
    width: min(980px, calc(100vw - 18px));
  }

  .branding-dialog {
    max-height: calc(100vh - 18px);
    overflow: auto;
  }

  .branding-dialog-grid {
    grid-template-columns: 1fr;
  }

  .branding-dialog-preview {
    position: static;
    order: -1;
    height: auto;
  }
}

@media (max-width: 760px) {
  .branding-entry-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .branding-entry-status {
    grid-column: 2;
    justify-self: start;
  }

  .branding-dialog-header {
    padding: 20px 62px 16px 18px;
  }

  .branding-dialog-header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .branding-save-indicator {
    max-width: 100%;
  }

  .branding-dialog-grid {
    padding: 12px;
  }

  .branding-dialog-controls,
  .branding-dialog-preview {
    border-radius: 18px;
  }

  .branding-dialog-preview {
    height: auto;
    padding: 12px;
  }
}

/* Final collapsed showcase logo guard: never crop the brand mark. */
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  padding: 18px 10px !important;
  overflow: hidden !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid {
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid > .row:first-child,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid > .row:first-child > .col-12 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  overflow: visible !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand img,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand .logo-solid {
  display: block !important;
  width: min(64px, calc(100% - 8px)) !important;
  height: min(64px, calc(100% - 8px)) !important;
  max-width: calc(100% - 8px) !important;
  max-height: 64px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand span:not(.public-brand-logo) {
  width: min(64px, calc(100% - 8px)) !important;
  height: min(64px, calc(100% - 8px)) !important;
  max-width: calc(100% - 8px) !important;
  max-height: 64px !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-grid !important;
  place-items: center !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
  cursor: pointer !important;
  touch-action: pan-x !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--showcase-accent, #c2a165) 78%, #ffffff);
  outline-offset: 3px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track.dragging .public-scene-card {
  pointer-events: auto !important;
}

@media (max-width: 820px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 84px !important;
    max-height: 84px !important;
    padding: 10px 46px 10px 12px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand img,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand .logo-solid {
    width: min(68px, 100%) !important;
    height: min(68px, 100%) !important;
    max-height: 64px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }
}

/* Public viewer mobile viewport: shared links and embeds use the real visible area. */
@media (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  body.public-mode {
    min-height: 100dvh;
  }

  body.public-mode .app-shell {
    height: 100dvh;
    min-height: 100dvh;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  body.public-mode .viewer-column {
    min-height: 0;
  }
}

@media (max-width: 820px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
  body.public-mode .viewer-column {
    border-radius: 0;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-mobile-panel-open-max-height: 48dvh;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav {
    width: 40px !important;
    height: 40px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
    position: absolute !important;
    top: max(80px, calc(env(safe-area-inset-top) + 80px)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 42 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 0 !important;
    gap: 6px !important;
    padding: 4px !important;
    border-radius: 12px !important;
    background: rgba(8, 13, 20, 0.76) !important;
    backdrop-filter: blur(12px);
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-menu-button {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta span,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-lot-plan-button .public-action-label {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-lot-plan-button svg {
    display: block !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="visible"] .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="visible"] .public-actions {
    top: var(--showcase-mobile-actions-top, 80px) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"]:has(.public-showcase-info.visible) .public-actions {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    top: max(96px, calc(env(safe-area-inset-top) + 10px)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 124px) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    padding: 16px !important;
    overflow-y: auto !important;
  }
}

@media (min-width: 821px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  body.public-mode .viewer-column {
    border-radius: 0;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-panel-width: clamp(280px, 29vw, 340px);
    --showcase-panel-offset: calc(var(--showcase-panel-width) + 12px);
    --showcase-side-gap: max(12px, env(safe-area-inset-left));
    --showcase-bottom-gap: max(10px, env(safe-area-inset-bottom));
    --showcase-rail-height: 104px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
    width: var(--showcase-panel-width) !important;
    min-width: 0 !important;
    max-width: var(--showcase-panel-width) !important;
    padding: max(20px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)) !important;
    overflow-y: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-grid {
    gap: clamp(14px, 1.8vh, 22px) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand img,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .logo-solid {
    max-height: 112px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
    position: absolute !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 42 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    min-height: 0 !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 12px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-actions {
    right: auto !important;
    left: max(12px, env(safe-area-inset-left)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-menu-button {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta span {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
    font-size: clamp(24px, 2.6vw, 30px) !important;
    line-height: 1.06 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
    left: calc(var(--showcase-panel-width) + 12px) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    grid-template-rows: 104px 22px !important;
    gap: 6px 10px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip {
    left: max(12px, env(safe-area-inset-left)) !important;
    right: calc(var(--showcase-panel-width) + 12px) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
    height: 104px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    grid-auto-columns: minmax(168px, 28vw) !important;
    gap: 10px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav {
    width: 44px !important;
    height: 44px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip {
    left: max(104px, env(safe-area-inset-left)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="collapsed"] .public-scene-strip {
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(104px, env(safe-area-inset-right)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    top: max(74px, calc(env(safe-area-inset-top) + 12px)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 136px) !important;
    left: auto !important;
    width: min(360px, calc(100vw - var(--showcase-panel-width) - 38px)) !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-info.visible {
    right: auto !important;
    left: max(12px, env(safe-area-inset-left)) !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (hover: none) and (pointer: coarse) {
  body.public-mode .viewer-column {
    border-radius: 0;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-panel-width: clamp(220px, 31vw, 280px);
    --showcase-panel-offset: calc(var(--showcase-panel-width) + 10px);
    --showcase-side-gap: max(8px, env(safe-area-inset-left));
    --showcase-bottom-gap: max(6px, env(safe-area-inset-bottom));
    --showcase-rail-height: 82px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
    width: var(--showcase-panel-width) !important;
    min-width: 0 !important;
    max-width: var(--showcase-panel-width) !important;
    padding: max(10px, env(safe-area-inset-top)) 14px max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
    overflow-y: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand img,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .logo-solid {
    max-height: 58px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy strong {
    font-size: clamp(20px, 3.6vw, 28px) !important;
    line-height: 1.05 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip {
    left: calc(var(--showcase-panel-width) + 8px) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-rows: 82px 18px !important;
    gap: 4px 8px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: calc(var(--showcase-panel-width) + 8px) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card {
    height: 82px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    grid-auto-columns: minmax(142px, 28vw) !important;
    gap: 8px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-nav {
    width: 40px !important;
    height: 40px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .floorplan-overlay,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-map {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip {
    left: max(90px, env(safe-area-inset-left)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="collapsed"] .public-scene-strip {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(90px, env(safe-area-inset-right)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
    position: absolute !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 42 !important;
    display: flex !important;
    width: auto !important;
    min-height: 0 !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 12px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-actions {
    right: auto !important;
    left: max(8px, env(safe-area-inset-left)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-menu-button {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta span {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    top: max(58px, calc(env(safe-area-inset-top) + 58px)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: calc(max(6px, env(safe-area-inset-bottom)) + 106px) !important;
    left: auto !important;
    width: min(320px, calc(100vw - var(--showcase-panel-width) - 28px)) !important;
    max-height: none !important;
    padding: 14px !important;
    overflow-y: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-info.visible {
    right: auto !important;
    left: max(8px, env(safe-area-inset-left)) !important;
  }
}

/* Operational public viewer: compact touch toolbar without changing desktop or Studio. */
@media (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) {
    grid-template-rows: minmax(0, 1fr) !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .viewer-toolbar {
    position: absolute !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    z-index: 24 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    min-height: 0 !important;
    gap: 6px !important;
    padding: 5px !important;
    border-radius: 14px !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    padding: 4px 6px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand img,
  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand-mark {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 9px !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand-copy {
    display: block !important;
    min-width: 0 !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand-copy strong {
    display: block !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand-meta,
  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand-description {
    display: none !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-actions,
  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .view-controls {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 3px !important;
    border-radius: 10px !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-cta,
  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .view-controls .tool-button {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-cta span {
    display: none !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) #zoomOutBtn,
  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) #zoomInBtn {
    display: none !important;
  }

  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-actions.hidden {
    display: none !important;
  }
}

@media (max-width: 520px) and (hover: none) and (pointer: coarse) {
  body.public-mode .viewer-column:not([data-viewer-style="showcase"]) .public-brand-copy {
    display: none !important;
  }
}

/* A single scene is centered and does not expose navigation controls with no effect. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip[data-scene-count="1"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip[data-scene-count="1"] .public-scene-nav {
  display: none !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip[data-scene-count="1"] .public-scene-track {
  grid-column: 1 !important;
  justify-content: center !important;
  grid-auto-columns: minmax(220px, 312px) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip[data-scene-count="1"] .public-scene-count {
  grid-column: 1 !important;
}

@media (max-width: 760px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip[data-scene-count="1"] .public-scene-track {
    grid-auto-columns: minmax(160px, min(72vw, 280px)) !important;
  }
}

/* Templates provide defaults, but the project's accent color remains authoritative. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-eyebrow {
  background: var(--coral, #c95438) !important;
  color: var(--accent-ink, #ffffff) !important;
}

@media (min-width: 821px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-collapse,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="collapsed"] .public-showcase-collapse {
    right: auto !important;
    left: calc(50% - 17px) !important;
  }
}

/* Periodic action cue: two pulses followed by a long visual rest. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue {
  position: relative;
  isolation: isolate;
  animation: viewer-action-nudge 9s ease-in-out 1.2s infinite;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-menu-button.viewer-action-cue {
  position: relative;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse.viewer-action-cue {
  position: absolute;
}

body.public-mode #vrBtn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border: 1px solid var(--coral, #22c7c9);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  animation: viewer-action-ring 9s ease-out 1.2s infinite;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-close.viewer-action-cue {
  position: absolute;
  animation: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-close.viewer-action-cue::after {
  display: none;
  animation: none;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue:hover,
body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue:focus-visible,
body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue:active,
body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue:hover::after,
body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue:focus-visible::after,
body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue:active::after {
  animation-play-state: paused;
}

@keyframes viewer-action-nudge {
  0%, 9%, 22%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  14% {
    transform: scale(1.015);
    filter: brightness(1.06) drop-shadow(0 0 2px var(--coral, #22c7c9));
  }
}

@keyframes viewer-action-ring {
  0%, 8%, 24%, 100% {
    inset: -2px;
    opacity: 0;
  }
  12% {
    inset: -2px;
    opacity: 0.2;
    box-shadow: 0 0 3px color-mix(in srgb, var(--coral, #22c7c9) 24%, transparent);
  }
  22% {
    inset: -4px;
    opacity: 0;
    box-shadow: 0 0 4px color-mix(in srgb, var(--coral, #22c7c9) 16%, transparent);
  }
}

/* Responsive public viewer: one stable composition per device family. */
@media (max-width: 820px) and (orientation: portrait) {
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="visible"] .viewer-toolbar:has(.public-lot-plan-button) .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="visible"] .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="visible"] .public-actions {
    top: var(--showcase-mobile-actions-top, 80px) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"]:has(.public-showcase-info.visible) .public-actions {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    top: max(80px, calc(env(safe-area-inset-top) + 80px)) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: min(680px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 196px) !important;
    padding: 16px !important;
    transform: translateX(-50%) !important;
    overflow-y: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info img {
    width: 100% !important;
    height: min(32dvh, 320px) !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] {
    --showcase-panel-width: 72px !important;
    --showcase-panel-offset: 80px !important;
    --showcase-rail-height: 96px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    box-sizing: border-box !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    padding: 10px 8px !important;
    border-radius: 0 16px 16px 0 !important;
    overflow: hidden !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-panel,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="collapsed"] .public-showcase-panel {
    right: 0 !important;
    left: auto !important;
    border-radius: 16px 0 0 16px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-grid > .row:not(:first-child),
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-copy,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-quick-links,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sales,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand {
    position: absolute !important;
    top: 12px !important;
    left: 8px !important;
    display: grid !important;
    place-items: center !important;
    width: 56px !important;
    height: 48px !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand img,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-brand .logo-solid {
    width: 54px !important;
    height: 42px !important;
    max-width: 54px !important;
    max-height: 42px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse.viewer-action-cue,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-collapse.viewer-action-cue {
    top: auto !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: 14px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    transform: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-showcase-collapse.viewer-action-cue {
    right: 14px !important;
    left: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-toolbar:has(.public-lot-plan-button) .public-actions,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
    position: absolute !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 48px !important;
    gap: 4px !important;
    padding: 4px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"]:has(.public-showcase-info.visible) .public-actions {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="hidden"] .public-scene-strip {
    right: 8px !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    left: 80px !important;
    grid-template-rows: 76px 18px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    gap: 2px 6px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"] .public-scene-strip,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-position="right"][data-panel-mode="collapsed"] .public-scene-strip {
    right: 80px !important;
    left: 8px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-card,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-thumb {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-scene-track {
    justify-content: center !important;
    grid-auto-columns: minmax(180px, min(38vw, 260px)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    width: min(380px, calc(100vw - 96px)) !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 14px !important;
    transform: none !important;
    overflow-y: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info img {
    height: min(30dvh, 140px) !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 821px) and (max-width: 1200px) and (min-height: 521px) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-panel {
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    padding: 16px 10px !important;
    overflow: hidden !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"]:has(.public-showcase-info.visible) .public-actions {
    display: none !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    top: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
    width: min(420px, calc(100vw - var(--showcase-panel-width) - 36px)) !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 18px !important;
    overflow-y: auto !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info img {
    height: min(32dvh, 260px) !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue,
  body.public-mode .viewer-column[data-viewer-style="showcase"] .viewer-action-cue::after {
    animation: none;
  }
}

/* Last mobile lock: later legacy logo guards must not restore the oversized header. */
@media (max-width: 820px) and (orientation: portrait) {
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 70px !important;
    max-height: 70px !important;
    padding: 8px 60px 8px 12px !important;
    overflow: hidden !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid > .row:first-child,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-grid > .row:first-child > .col-12,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand {
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    max-width: min(48vw, 150px) !important;
    transform: translateX(-50%) !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand img,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-panel-mode="collapsed"] .public-showcase-brand .logo-solid {
    width: min(38vw, 120px) !important;
    max-width: min(48vw, 150px) !important;
    height: 46px !important;
    max-height: 46px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-close.viewer-action-cue {
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 36px !important;
    height: 36px !important;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-title {
    display: block;
    padding-right: 48px;
  }

  body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info.visible,
  body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-has-floorplan="on"] .public-showcase-info.visible {
    bottom: auto !important;
    max-height: calc(100dvh - 196px) !important;
  }
}
/* Educational groups and identified participant access */
.educational-catalog-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.results-group-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.results-group-detail { display: grid; gap: 16px; }
.results-group-detail-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.results-group-detail-header h3, .results-group-detail-header p { margin: 0; }
.results-group-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.results-group-detail-grid .results-panel { display: grid; align-content: start; gap: 14px; }
.input-action-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.results-group-field { display: grid; gap: 6px; }
.results-group-field > span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.results-group-access-actions { flex-wrap: wrap; }
.results-permission-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 12, 24, .34); cursor: pointer; }
.results-permission-toggle > span { display: grid; gap: 4px; min-width: 0; }
.results-permission-toggle strong { color: var(--ink); font-size: 12px; }
.results-permission-toggle small { max-width: 520px; color: var(--muted); line-height: 1.4; }
.results-permission-toggle input[type="checkbox"] { flex: 0 0 auto; width: 20px !important; min-width: 20px; height: 20px !important; margin: 0; accent-color: var(--teal); cursor: pointer; }
.results-group-config-fields { grid-template-columns: minmax(180px, 1.2fr) minmax(130px, .8fr); }
.results-group-config-fields > label:last-child { grid-column: 1 / -1; }
.results-group-config-actions { display: flex; justify-content: flex-end; padding-top: 2px; }
.results-group-config-actions .text-button { min-width: 190px; justify-content: center; }
.results-manual-roster { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(220px, 1fr) auto; align-items: end; gap: 10px; margin-bottom: 12px; }
.results-bulk-roster { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.results-bulk-roster summary { cursor: pointer; font-weight: 700; }
.results-bulk-roster form { display: grid; gap: 10px; margin-top: 10px; }
.results-bulk-roster textarea { width: 100%; resize: vertical; }
.results-group-danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.results-group-danger > div:first-child { display: grid; gap: 4px; }
.results-group-danger span { color: var(--muted); }

.group-participant-gate { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(3, 10, 19, .92); backdrop-filter: blur(18px); }
.group-participant-card { width: min(460px, 100%); display: grid; gap: 14px; padding: 28px; border: 1px solid rgba(34, 211, 198, .38); border-radius: 8px; background: #091525; box-shadow: 0 24px 80px rgba(0, 0, 0, .48); }
.group-participant-card h1, .group-participant-card p { margin: 0; }
.group-participant-card h1 { font-size: clamp(24px, 5vw, 36px); }
.group-participant-brand { min-height: 68px; display: grid; place-items: center; }
.group-participant-brand img { display: block; max-width: 180px; max-height: 72px; object-fit: contain; }
.group-participant-brand span { font-weight: 900; letter-spacing: 0; font-size: 24px; }
.group-participant-group { color: #7de9df; }
.group-participant-error { min-height: 20px; color: #ff8c78; font-size: 13px; }
.group-participant-account { position: fixed; z-index: 8000; top: 12px; left: 50%; translate: -50% 0; max-width: min(320px, calc(100vw - 140px)); }
.group-participant-switch { min-height: 40px; max-width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(126, 233, 223, .42); border-radius: 999px; color: #ecffff; background: rgba(5, 17, 30, .9); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.group-participant-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-participant-switch svg:last-child { width: 15px; height: 15px; transition: transform .18s ease; }
.group-participant-account.menu-open .group-participant-switch svg:last-child { transform: rotate(180deg); }
.group-participant-menu { position: absolute; top: calc(100% + 8px); left: 50%; width: min(280px, calc(100vw - 32px)); translate: -50% 0; padding: 8px; border: 1px solid rgba(126, 233, 223, .28); border-radius: 8px; color: #ecffff; background: rgba(5, 17, 30, .98); box-shadow: 0 18px 48px rgba(0,0,0,.46); }
.group-participant-menu[hidden] { display: none; }
.group-participant-identity { display: grid; gap: 3px; padding: 8px 10px 10px; border-bottom: 1px solid rgba(148, 163, 184, .2); }
.group-participant-identity strong, .group-participant-identity span, .group-participant-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-participant-identity span, .group-participant-identity small { color: var(--muted); font-size: 12px; }
.group-participant-logout { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px; margin-top: 6px; padding: 8px 10px; border: 0; border-radius: 6px; color: #ffd8d1; background: transparent; text-align: left; }
.group-participant-logout:hover, .group-participant-logout:focus-visible { color: #fff; background: rgba(255, 104, 84, .16); }

@media (max-width: 900px) {
  .results-group-detail-grid { grid-template-columns: 1fr; }
  .results-manual-roster { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .educational-catalog-actions { grid-template-columns: 1fr; }
  .results-group-detail-header { grid-template-columns: auto 1fr; }
  .results-group-detail-header > :last-child { grid-column: 1 / -1; }
  .results-group-config-fields { grid-template-columns: 1fr; }
  .results-group-config-fields > label:last-child { grid-column: auto; }
  .results-group-config-actions .text-button { width: 100%; min-width: 0; }
  .results-permission-toggle { align-items: flex-start; }
  .results-group-danger { align-items: stretch; flex-direction: column; }
  .group-participant-card { padding: 22px 18px; }
  .group-participant-account { top: auto; bottom: 12px; }
  .group-participant-menu { top: auto; bottom: calc(100% + 8px); }
}

/* Compacta solo los encabezados plegados; conserva un área táctil de 40 px. */
.left-panel .accordion-section.collapsed .section-title {
  margin-bottom: 0;
  padding: 8px 10px;
}

/* Brand-aware contrast: configurable light and dark surfaces keep their UI legible. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions {
  border-color: var(--showcase-panel-line, rgba(255, 255, 255, 0.18)) !important;
  background: var(--showcase-action-bg, var(--showcase-panel-bg)) !important;
  color: var(--showcase-action-ink, var(--showcase-panel-ink, #fff)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-menu-button,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta:nth-child(2n),
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-cta:hover,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-actions .public-menu-button:hover {
  color: var(--showcase-action-ink, var(--showcase-panel-ink, #fff)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social {
  gap: 12px !important;
  color: var(--showcase-panel-ink, #fff) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social a {
  width: 40px !important;
  height: 40px !important;
  color: var(--showcase-panel-ink, #fff) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social a svg {
  width: 26px !important;
  height: 26px !important;
  stroke-width: 2.1;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="1"],
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="2"] {
  display: grid !important;
  width: 100%;
  padding: 0 !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="1"] {
  grid-template-columns: minmax(180px, 1fr);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="1"] a,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="2"] a {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100% !important;
  height: 52px !important;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--showcase-panel-ink, #fff) 18%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--showcase-panel-ink, #fff) 6%, transparent);
  text-align: left;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="1"] a svg,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social[data-social-count="2"] a svg {
  width: 24px !important;
  height: 24px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.05;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social-copy small,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social-copy small {
  color: color-mix(in srgb, var(--showcase-panel-ink, currentColor) 76%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-social-copy strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

body.public-mode .viewer-column[data-viewer-style="showcase"]:not([data-panel-mode="collapsed"]) .public-showcase-brand img {
  width: min(var(--showcase-logo-size, 180px), calc(100% - 24px)) !important;
  max-width: min(var(--showcase-logo-size, 180px), calc(100% - 24px)) !important;
  height: auto !important;
  max-height: 160px !important;
  object-fit: contain !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"]:not([data-panel-mode="collapsed"]) .public-showcase-brand .logo-solid {
  width: min(var(--showcase-logo-size, 180px), calc(100% - 24px)) !important;
  max-width: min(var(--showcase-logo-size, 180px), calc(100% - 24px)) !important;
  height: min(var(--showcase-logo-size, 180px), 160px) !important;
  max-height: 160px !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse:hover,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse:focus-visible {
  border-color: var(--showcase-panel-line, rgba(255, 255, 255, 0.28)) !important;
  background: color-mix(in srgb, var(--showcase-panel-ink, #fff) 8%, transparent) !important;
  color: var(--showcase-panel-ink, #fff) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-collapse svg {
  color: inherit !important;
  stroke: currentColor;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-collapse,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-collapse,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-collapse,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-collapse,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-collapse {
  border-color: rgba(47, 48, 47, 0.38) !important;
  background: rgba(255, 255, 255, 0.22) !important;
  color: var(--showcase-light-ink, #2f302f) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-eyebrow,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-start {
  color: var(--accent-ink, #fff) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="amanecer-imperial"] .public-showcase-info,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="palacio-marmol-moderno"] .public-showcase-info,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="romance-costero-europeo"] .public-showcase-info,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="castillo-dorado-amanecer"] .public-showcase-info,
body.public-mode .viewer-column[data-viewer-style="showcase"][data-showcase-theme="jardin-real-luminoso"] .public-showcase-info {
  --showcase-info-ink: var(--showcase-light-ink, #2f302f);
  --showcase-info-muted: var(--showcase-light-muted, rgba(47, 48, 47, 0.82));
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features li,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info-description {
  color: var(--showcase-info-muted, rgba(255, 255, 255, 0.86)) !important;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features svg,
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-info .public-showcase-features i {
  color: inherit !important;
  stroke: currentColor;
}

/* Public photo gallery follows the active Showcase brand surface. */
body.public-mode .content-dialog[data-viewer-style="showcase"]:has(.dialog-gallery) {
  border: 1px solid color-mix(
    in srgb,
    var(--showcase-gallery-ink, #fff) 22%,
    transparent
  ) !important;
  background: var(--showcase-gallery-bg, rgba(8, 13, 22, 0.94)) !important;
  color: var(--showcase-gallery-ink, #fff) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

body.public-mode .content-dialog[data-viewer-style="showcase"]:has(.dialog-gallery) #dialogBody > h2 {
  color: var(--showcase-gallery-ink, #fff) !important;
}

body.public-mode .content-dialog[data-viewer-style="showcase"]:has(.dialog-gallery) .dialog-close {
  border-color: color-mix(in srgb, var(--showcase-gallery-ink, #fff) 36%, transparent) !important;
  background: color-mix(in srgb, var(--showcase-gallery-ink, #fff) 8%, transparent) !important;
  color: var(--showcase-gallery-ink, #fff) !important;
}

body.public-mode .content-dialog[data-viewer-style="showcase"]:has(.dialog-gallery) .dialog-thumbs {
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--showcase-gallery-ink, #fff) 5%, transparent);
}

body.public-mode .content-dialog[data-viewer-style="showcase"]:has(.dialog-gallery) .dialog-nav {
  border: 1px solid color-mix(in srgb, var(--gallery-accent, var(--coral)) 46%, #fff);
  background: color-mix(in srgb, var(--gallery-brand, var(--teal)) 36%, rgba(8, 13, 22, 0.78));
  color: #fff;
}

body.public-mode .content-dialog[data-viewer-style="showcase"]:has(.dialog-gallery) .dialog-thumb {
  border-color: color-mix(in srgb, var(--showcase-gallery-ink, #fff) 15%, transparent);
  background: color-mix(in srgb, var(--showcase-gallery-ink, #fff) 7%, transparent);
}

body.public-mode .content-dialog[data-viewer-style="showcase"]:has(.dialog-gallery) .dialog-thumb.active {
  border-color: color-mix(in srgb, var(--gallery-accent, var(--coral)) 72%, var(--showcase-gallery-ink, #fff)) !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--showcase-gallery-ink, #fff) 18%, transparent),
    0 0 0 5px color-mix(in srgb, var(--gallery-accent, var(--coral)) 48%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.22) !important;
}

/* High-quality type rendering across the complete public experience. */
body.public-mode .viewer-column,
body.public-mode .content-dialog,
body.public-mode .viewer-column button,
body.public-mode .viewer-column a,
body.public-mode .content-dialog button,
body.public-mode .content-dialog a,
body.public-mode .content-dialog input,
body.public-mode .content-dialog textarea,
body.public-mode .content-dialog select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Branding geocoder */
.map-location-search {
  display: grid;
  gap: 8px;
}

.map-location-search .input-action-row {
  align-items: stretch;
}

.map-location-results {
  display: grid;
  gap: 6px;
}

.map-location-results:empty {
  display: none;
}

.map-location-result {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 7%, rgba(5, 12, 24, 0.72));
  color: var(--ink);
  text-align: left;
}

.map-location-result:hover,
.map-location-result:focus-visible {
  border-color: color-mix(in srgb, var(--teal) 68%, #fff);
  background: color-mix(in srgb, var(--teal) 13%, rgba(5, 12, 24, 0.72));
}

.map-location-result svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.map-location-result span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.map-location-message {
  padding: 9px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.map-location-selected {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 42%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 10%, transparent);
}

.map-location-selected > svg {
  width: 21px;
  height: 21px;
  color: var(--teal);
}

.map-location-selected > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-location-selected strong,
.map-location-selected small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-location-selected strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.map-location-selected small {
  color: var(--muted);
  font-size: 10px;
}

/* Replace OpenStreetMap's verbose embedded footer with compliant compact credit. */
body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map.is-openstreetmap {
  position: relative;
  height: 158px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map.is-openstreetmap iframe {
  width: 100%;
  height: 200px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-map-attribution {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #17202a !important;
  font: 700 9px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-showcase-sidebar-map.uses-leaflet {
  position: relative;
  height: 158px;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-leaflet-map {
  width: 100%;
  height: 100%;
  background: #dce8df;
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-leaflet-map .leaflet-control-zoom {
  overflow: hidden;
  margin: 8px 0 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

body.public-mode .viewer-column[data-viewer-style="showcase"] .public-leaflet-map .leaflet-control-zoom a {
  width: 28px;
  height: 28px;
  color: #17202a;
  font: 700 18px/28px system-ui, sans-serif;
}
