:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --solid: #ffffff;
  --line: rgba(31, 41, 55, 0.12);
  --text: #111827;
  --muted: #6b7280;
  --soft: #eef0f3;
  --blue: #007aff;
  --blue-dark: #005ecb;
  --green: #248a3d;
  --red: #d70015;
  --orange: #c4661f;
  --wine: #7f1d1d;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

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

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

button {
  cursor: pointer;
}

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

.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #e9ecef;
}

.scene-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 245, 247, 0.86), rgba(245, 245, 247, 0.38)),
    url("assets/piscina6.jpeg") center/cover;
  opacity: 0.82;
}

.scene-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.3), #f5f5f7 58%);
}

.shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 36px;
}

.topbar,
.brand,
.segmented,
.panel-header,
.panel-actions,
.records-toolbar,
.toolbar-actions,
.stats-row,
.message-summary,
.copy-control,
.private-key-control,
.channel-actions,
.mfa-box,
.mfa-actions,
.mobile-card-header,
.mobile-actions,
.guest-card-header,
.guest-card-actions,
.row-actions,
.scan-actions,
.guest-header-tools {
  display: flex;
  align-items: center;
}

.panel-actions {
  gap: 8px;
}

.compact-button {
  min-height: 38px;
  padding: 0 10px;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 18px;
}

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

.brand-logo-mark {
  display: inline-flex;
  width: 136px;
  height: 48px;
  flex: 0 0 136px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.08);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

h1 {
  font-size: 30px;
  font-weight: 760;
}

h2 {
  font-size: 21px;
  font-weight: 730;
}

h3 {
  font-size: 16px;
  font-weight: 730;
}

.segmented {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px);
}

.segment {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 0 14px;
}

.segment.is-active {
  background: var(--solid);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.property-strip,
.panel,
.mobile-card,
.unlock-card {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.property-strip {
  display: flex;
  min-height: 118px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px;
  overflow: hidden;
}

.property-strip h2 {
  max-width: 660px;
  font-size: 28px;
}

.vault-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #344054;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.home-view {
  min-height: calc(100vh - 140px);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 640px;
  align-items: end;
  overflow: hidden;
  padding: 56px;
  border-radius: 14px;
  background: #101418;
  isolation: isolate;
}

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

.home-hero::before {
  z-index: -2;
  background: url("assets/drone3.jpeg") center/cover;
}

.home-hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 13, 18, 0.04) 0%, rgba(10, 13, 18, 0.18) 42%, rgba(10, 13, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 13, 18, 0.74) 0%, rgba(10, 13, 18, 0.24) 58%, rgba(10, 13, 18, 0.08) 100%);
}

.home-hero-copy {
  max-width: 760px;
  color: #fff;
}

.home-hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.home-hero-copy h2 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 58px;
  font-weight: 790;
  line-height: 1.02;
}

.home-hero-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.45;
}

.home-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 15px !important;
  font-weight: 700;
}

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

.panel {
  padding: 18px;
}

.panel-header,
.records-toolbar,
.message-summary {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-header.compact {
  margin-bottom: 12px;
}

.form-grid,
.guest-main-grid,
.guest-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(56px, auto);
  gap: 12px;
  align-items: stretch;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  font-family: var(--field-font-family, inherit);
  font-size: var(--field-font-size, inherit);
}

.field span,
.small-label {
  color: #344054;
  font-size: 13px;
  font-weight: 720;
}

.span-2 {
  grid-column: 1 / -1;
}

.form-grid > .form-note {
  grid-column: 1 / -1;
}

#cancelEditStay {
  grid-column: 1 / span 6;
}

#saveStayButton {
  grid-column: 7 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 122, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14);
}

input[readonly] {
  color: #475467;
}

.button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 730;
  white-space: nowrap;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--solid);
}

.button:disabled,
.icon-button:disabled,
.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: #475467;
}

.icon-button:hover {
  background: var(--solid);
  color: var(--text);
}

.icon-button.danger {
  color: var(--red);
}

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

.eye-off,
.showing-key .eye-on {
  display: none;
}

.showing-key .eye-off {
  display: block;
}

.form-note {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.form-note.success {
  color: var(--green);
}

.guest-alert {
  margin: 0 12px;
}

.completion-card {
  margin: 12px;
  text-align: center;
}

.completion-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(36, 138, 61, 0.12);
  color: var(--green);
}

.completion-icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.4;
}

.completion-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.completion-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.completion-card .completion-close-note {
  margin-top: 4px;
}

.key-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.siba-settings-panel {
  margin-top: 18px;
}

.siba-settings-panel summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
}

.siba-settings-panel summary::-webkit-details-marker {
  display: none;
}

.siba-settings-panel summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.siba-settings-panel[open] summary::after {
  transform: rotate(225deg);
}

.siba-settings-panel small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.siba-submit-panel {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.siba-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.siba-action-row .button {
  min-width: 160px;
}

.siba-history {
  display: grid;
  gap: 12px;
}

.siba-history .section-heading {
  margin-bottom: 0;
}

.siba-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.siba-history-table th,
.siba-history-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.siba-history-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.siba-history-table td:last-child {
  max-width: 320px;
  color: var(--muted-strong);
}

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

.compact-form {
  margin-top: 14px;
  gap: 10px;
}

.access-card {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.access-card .field {
  margin-bottom: 12px;
}

.access-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.access-actions .primary {
  grid-column: span 2;
}

.helper-text {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.private-key-control,
.copy-control {
  gap: 8px;
}

.records-panel {
  min-width: 0;
}

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

.toolbar-actions {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.siba-actions-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.siba-actions-toggle {
  min-width: 180px;
}

.siba-actions-toggle .dropdown-chevron {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  transition: transform 160ms ease;
}

.siba-actions-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.siba-actions-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.siba-actions-menu[hidden] {
  display: none;
}

.siba-actions-menu button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.siba-actions-menu button:hover:not(:disabled),
.siba-actions-menu button:focus-visible:not(:disabled) {
  background: rgba(0, 113, 227, 0.1);
  color: #0066cc;
  outline: none;
}

.siba-actions-menu button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.toolbar-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 13px;
}

.records-toolbar > .toolbar-note {
  grid-column: 1 / -1;
}

.toolbar-note:empty {
  display: none;
}

@media (max-width: 760px) {
  .siba-actions-dropdown,
  .siba-actions-toggle {
    width: 100%;
  }

  .siba-actions-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }
}

.searchbox {
  display: flex;
  width: min(330px, 100%);
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.searchbox input {
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.stats-row {
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  flex: 1 1 0;
  min-width: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.stat strong {
  font-size: 24px;
  letter-spacing: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

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

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

th {
  background: rgba(248, 250, 252, 0.8);
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

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

tbody tr.cancelled {
  color: #98a2b3;
  background: rgba(242, 244, 247, 0.7);
}

tbody tr.cancelled .status-pill,
tbody tr.cancelled .guest-primary {
  opacity: 0.62;
}

.select-col {
  width: 44px;
}

.actions-col {
  width: 184px;
}

.guest-primary {
  display: block;
  font-weight: 780;
}

.guest-secondary {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.status-pill.checked-in {
  background: rgba(36, 138, 61, 0.13);
  color: var(--green);
}

.status-pill.completed {
  background: rgba(52, 64, 84, 0.12);
  color: #344054;
}

.status-pill.cancelled {
  background: rgba(215, 0, 21, 0.1);
  color: var(--red);
}

.status-pill.neutral {
  background: rgba(102, 112, 133, 0.14);
  color: #475467;
}

.row-actions {
  gap: 6px;
}

.empty-state {
  display: none;
  min-height: 160px;
  place-items: center;
  margin-top: 12px;
  border: 1px dashed rgba(102, 112, 133, 0.35);
  border-radius: 8px;
  color: var(--muted);
}

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

.message-panel {
  margin-top: 18px;
}

.message-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(280px, 0.9fr);
  gap: 14px;
  align-items: end;
}

.channel-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.mfa-box {
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.mfa-box strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  letter-spacing: 0;
}

.mfa-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.guest-only .property-strip,
.guest-only #moduleSwitcher {
  display: none;
}

.guest-language-control {
  display: none;
}

.guest-only .guest-language-control {
  display: block;
  margin-left: auto;
}

.guest-only .guest-language-control[hidden] {
  display: none;
}

.guest-only .guest-language-control select {
  height: 36px;
  min-width: 124px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

.phone-input-pair {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.phone-input-pair input {
  min-width: 0;
}

.mfa-code-field {
  margin-top: 6px;
}

.guest-only .shell {
  width: min(100% - 20px, 920px);
  padding-top: 12px;
}

.guest-only .topbar {
  justify-content: center;
}

.guest-only .brand {
  width: 100%;
  justify-content: center;
}

.guest-only .guest-layout {
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}

.guest-only .guest-panel {
  display: none;
}

.guest-only .phone-frame {
  position: static;
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 8px;
}

.guest-only .phone-screen {
  min-height: calc(100vh - 108px);
  overflow: visible;
}

.guest-only .guest-list {
  width: min(430px, 100%);
  margin: 0 auto;
}

.phone-frame {
  position: sticky;
  top: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
}

.phone-top {
  width: 92px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #2f3644;
}

.phone-screen {
  min-height: 720px;
  overflow: auto;
  border-radius: 22px;
  background: #f5f5f7;
}

.guest-hero {
  min-height: 156px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(245, 245, 247, 0.95)),
    url("assets/piscina6.jpeg") center/cover;
}

.guest-hero h2 {
  margin-bottom: 8px;
  font-size: 27px;
}

.guest-hero span {
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.mobile-card {
  margin: 12px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.mobile-card.hidden {
  display: none;
}

.mobile-card-header {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.guest-header-tools {
  gap: 8px;
}

.guest-header-tools select {
  width: auto;
  min-width: 112px;
  height: 34px;
  padding: 0 8px;
}

.mobile-actions {
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.guest-panel {
  min-width: 0;
}

.guest-list {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.guest-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.guest-page {
  background: rgba(255, 255, 255, 0.86);
}

.guest-card-header {
  grid-template-columns: minmax(0, 1fr);
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.guest-card-title {
  flex: 1 1 auto;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

.guest-card-title-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.guest-card-title-row .eyebrow {
  min-width: 0;
  margin: 0;
}

.guest-share-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
}

.guest-card-title h3 {
  margin-top: 7px;
}

.guest-card-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guest-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
}

.scan-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.scan-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
  background: transparent;
}

.scan-target {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  background-image: none;
  color: var(--blue-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 760;
  box-shadow: none;
  cursor: pointer;
  filter: none;
  appearance: none;
  -webkit-appearance: none;
}

.scan-target:hover,
.scan-target:focus,
.scan-target:active {
  background: #fff;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.scan-clear {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--danger);
  cursor: pointer;
  box-shadow: none;
}

.scan-clear:hover {
  background: #fff;
}

.scan-clear:focus,
.scan-clear:active {
  outline: none;
  background: #fff;
  box-shadow: none;
}

.scan-target-icon {
  width: 19px;
  height: 19px;
}

.scan-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.scan-toast {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid rgba(215, 0, 21, 0.18);
  border-radius: 999px;
  background: rgba(255, 242, 242, 0.96);
  color: #b00014;
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
}

.scan-toast.is-success {
  border-color: rgba(36, 138, 61, 0.18);
  background: rgba(238, 251, 242, 0.96);
  color: #1f7a3a;
}

.document-image-overlay {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(22px);
}

.document-image-zoom-card {
  position: relative;
  width: min(96vw, 1180px);
  max-height: calc(100dvh - 36px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.document-image-zoom-card img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 60px);
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.document-image-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.scan-file {
  display: none;
}

.guest-fields {
  align-content: start;
}

.document-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(52px, auto);
  gap: 8px;
}

.document-image-preview {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
  width: 100%;
}

.document-image-preview-button {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}

.document-image-preview-button img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
}

.document-image-preview-button:focus {
  outline: 3px solid rgba(0, 122, 255, 0.22);
  outline-offset: 2px;
}

.full-name-field input {
  height: 44px;
  font-size: var(--field-font-size, 15px);
  font-weight: 760;
}

.compact-field {
  gap: 5px;
}

.compact-field span,
.document-fields .field span,
.scan-panel .field span {
  font-size: 11px;
}

.compact-field input,
.compact-field select {
  height: 34px;
  padding: 0 9px;
  font-size: var(--field-font-size, 12px);
}

.guest-nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.guest-nav span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.guest-nav .button {
  min-height: 38px;
}

.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: blur(28px);
}

.auth-overlay,
.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: blur(28px);
}

body.auth-locked .shell {
  visibility: hidden;
}

.auth-card,
.account-card {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.account-card {
  width: min(620px, 100%);
}

.account-dialog-card {
  width: min(520px, 100%);
}

.account-card .form-grid {
  width: 100%;
  grid-auto-rows: auto;
  align-items: start;
}

.account-card .form-grid > .field:not(.span-2) {
  grid-column: span 6;
}

.account-card .form-grid > .button {
  grid-column: span 6;
  width: 100%;
  min-width: 0;
}

.account-card .password-requirements,
.account-card .form-note {
  grid-column: 1 / -1;
}

.recovery-copy,
.dialog-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.dialog-actions .button {
  width: 100%;
}

.button.danger-action {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff;
  color: var(--red);
}

.button.danger-action:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.06);
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.auth-card h2 {
  margin-bottom: 4px;
  font-size: 32px;
}

.auth-card .button {
  width: 100%;
}

.text-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
}

.password-requirements {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.account-session-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-session-button .icon {
  width: 16px;
  height: 16px;
}

.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(22px);
}

.camera-card {
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.26);
}

.camera-live-panel,
.camera-review-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.camera-mode {
  display: none;
  margin: 10px 0;
}

.camera-mode .segment {
  flex: 1 1 0;
  padding: 0 8px;
}

.camera-card video,
.camera-card canvas {
  display: block;
  width: 100%;
  max-height: 58vh;
  background: #111827;
  object-fit: cover;
}

.camera-card canvas {
  object-fit: contain;
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

#cameraLiveActions {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.smart-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 14;
}

.smart-picker-overlay.is-sheet {
  display: grid;
  align-items: end;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(18px);
}

.smart-picker-overlay.is-popover {
  background: transparent;
}

.smart-picker-card {
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.82);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(24px);
}

.smart-picker-overlay.is-sheet .smart-picker-card {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: min(78dvh, 680px);
  border-radius: 18px 18px 0 0;
  padding: 14px;
}

.smart-picker-overlay.is-popover .smart-picker-card {
  position: fixed;
  left: var(--picker-left);
  top: var(--picker-top);
  width: var(--picker-width);
  max-height: 360px;
  border-radius: 8px;
  padding: 10px;
}

.smart-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.smart-picker-header h2 {
  margin: 1px 0 0;
  font-size: 18px;
  line-height: 1.1;
}

.smart-picker-search-row {
  position: relative;
}

.smart-picker-search {
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 244, 246, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 0 48px 0 12px;
  outline: none;
}

.smart-picker-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.smart-picker-search:focus {
  border-color: rgba(0, 122, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.smart-picker-options {
  display: grid;
  gap: 4px;
  max-height: 44vh;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.smart-picker-option {
  display: flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 12px;
}

.smart-picker-option:hover,
.smart-picker-option:focus {
  background: rgba(0, 122, 255, 0.08);
  outline: none;
}

.smart-picker-option.is-custom {
  color: var(--blue-dark);
}

.smart-picker-empty {
  margin: 8px 2px;
  color: var(--muted);
  font-size: 13px;
}

.unlock-card {
  width: min(420px, 100%);
  padding: 24px;
}

.unlock-card-logo {
  display: block;
  width: min(220px, 100%);
  height: 96px;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.unlock-card h2 {
  margin-bottom: 18px;
}

.cms-overlay {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(22px);
}

.cms-card {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
}

.cms-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  margin-bottom: 14px;
}

.cms-editor {
  min-height: 0;
}

.cms-editor.is-read-only .cms-field-box,
.cms-editor.is-read-only .cms-resize-handle,
.cms-editor.is-read-only .cms-inspector input,
.cms-editor.is-read-only .cms-inspector select {
  pointer-events: none;
}

.cms-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 14px;
  align-items: start;
}

.cms-canvas-panel {
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
}

.cms-stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(var(--cms-rows), 50px);
  gap: 6px;
  min-width: 640px;
  min-height: var(--cms-stage-height, 330px);
  padding: 8px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.84);
  background-image:
    linear-gradient(rgba(0, 122, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, 0.08) 1px, transparent 1px);
  background-size: calc((100% - 16px) / 12) 56px;
  background-position: 8px 8px;
}

.cms-field-box {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 22px 8px 10px;
  border: 1px solid rgba(0, 122, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: grab;
  overflow: hidden;
  text-align: left;
  touch-action: none;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.cms-field-box:active {
  cursor: grabbing;
}

.cms-field-box.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14), 0 12px 30px rgba(17, 24, 39, 0.12);
}

.cms-field-box span {
  overflow: hidden;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-field-box small {
  color: var(--muted);
  font-size: 10px;
}

.cms-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
}

.cms-resize-handle::before {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0, 122, 255, 0.8);
  border-bottom: 2px solid rgba(0, 122, 255, 0.8);
  content: "";
}

.cms-inspector {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.cms-inspector-title h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.cms-inspector .field {
  gap: 5px;
}

.cms-inspector .field span {
  font-size: 11px;
}

.cms-inspector input,
.cms-inspector select {
  height: 36px;
  padding: 0 9px;
  font-size: 12px;
}

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

.cms-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

@media (max-width: 1120px) {
  .admin-layout,
  .guest-layout,
  .message-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    position: static;
    width: min(390px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .home-view {
    min-height: calc(100vh - 64px);
    padding: 0 12px;
  }

  .home-hero {
    min-height: 520px;
    padding: 32px 22px;
    border-radius: 12px;
  }

  .home-hero::before {
    background-position: center 38%;
  }

  .home-hero-copy h2 {
    max-width: 320px;
    font-size: 36px;
    line-height: 1.04;
  }

  .home-hero-copy p {
    max-width: 330px;
    font-size: 17px;
  }

  .home-note {
    font-size: 13px !important;
  }

  .shell {
    width: min(100% - 20px, 760px);
    padding-top: 10px;
  }

  .topbar,
  .property-strip,
  .records-toolbar,
  .toolbar-actions,
  .stats-row,
  .message-summary,
  .mfa-box {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 24px;
  }

  .property-strip h2 {
    font-size: 22px;
  }

  .segmented,
  .searchbox,
  .button,
  .channel-actions .button {
    width: 100%;
  }

  .segment,
  .toolbar-actions .button,
  .mobile-actions .button {
    flex: 1 1 0;
  }

  .guest-card-body {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: 1 / -1;
  }

  .phone-screen {
    min-height: 640px;
  }

  .access-actions,
  .camera-actions {
    grid-template-columns: 1fr;
  }

  #cameraLiveActions {
    grid-template-columns: 1fr;
  }

  .access-actions .primary {
    grid-column: span 1;
  }

  .guest-only .shell {
    width: min(100% - 12px, 430px);
  }

  .guest-only .phone-frame {
    border-radius: 22px;
  }

  .guest-only .phone-screen {
    min-height: calc(100vh - 96px);
    border-radius: 18px;
  }

  .guest-only .mobile-card {
    margin: 10px;
  }

  .cms-footer,
  .cms-controls {
    grid-template-columns: 1fr;
  }

  .cms-workspace {
    grid-template-columns: 1fr;
  }

  .cms-stage {
    min-width: 620px;
  }

  .full-name-field input {
    font-size: 14px;
  }
}

/* Apple Store-style configurator treatment for the guest journey. */
.configurator-summary-panel {
  overflow: hidden;
}

.configurator-visual {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #f5f5f7;
}

.configurator-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.08), rgba(245, 245, 247, 0.9)),
    url("assets/piscina6.jpeg") center/cover;
}

.configurator-product-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.16);
}

.brand-card-logo {
  display: block;
  width: 100%;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(17, 24, 39, 0.18));
}

.configurator-summary-header {
  align-items: flex-start;
}

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

.configurator-steps span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.guest-only .scene-photo {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.85), rgba(245, 245, 247, 0.2) 30%, transparent 50%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 64%, #fff 100%);
  opacity: 1;
}

.guest-only .scene-tint {
  display: none;
}

.guest-only .shell {
  width: min(1180px, calc(100% - 48px));
  padding: 0 0 64px;
}

.guest-only .topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(22px);
}

.guest-only .brand {
  width: auto;
  justify-content: flex-start;
  gap: 9px;
}

.guest-only .brand-logo-mark {
  width: 126px;
  height: 40px;
  flex-basis: 126px;
  background: transparent;
  box-shadow: none;
}

.guest-only .brand .eyebrow {
  display: none;
}

.guest-only .brand h1 {
  font-size: 17px;
  font-weight: 720;
}

.guest-only .guest-layout {
  grid-template-columns: minmax(250px, 330px) minmax(560px, 760px);
  gap: 42px;
  align-items: start;
  padding-top: 34px;
}

.guest-only .configurator-summary-panel {
  position: sticky;
  top: 92px;
  display: block;
  order: 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.guest-only .configurator-visual {
  min-height: 360px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.guest-only .configurator-photo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 245, 247, 0.82)),
    url("assets/piscina6.jpeg") center/cover;
}

.guest-only .configurator-product-card {
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 22px;
}

.guest-only .brand-card-logo {
  max-height: 118px;
}

.guest-only .configurator-summary-header {
  display: grid;
  gap: 18px;
}

.guest-only .configurator-summary-header h2 {
  max-width: 300px;
  font-size: 24px;
  line-height: 1.1;
}

.guest-only .configurator-summary-header .button {
  width: max-content;
}

.guest-only .configurator-steps span {
  min-height: 52px;
  background: #fff;
}

.guest-only .phone-frame {
  position: static;
  width: 100%;
  max-width: none;
  order: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guest-only .phone-top {
  display: none;
}

.guest-only .phone-screen {
  min-height: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.guest-only .guest-list {
  width: 100%;
  margin: 0;
  padding: 0;
}

.guest-only .guest-hero {
  min-height: auto;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
}

.guest-only .guest-hero h2 {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 790;
  line-height: 1.03;
}

.guest-only .guest-hero span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 720;
}

.guest-only .mobile-card,
.guest-only .guest-card,
.guest-only .completion-card {
  margin: 18px 0 0;
  padding: 22px 26px;
  border-color: #d2d2d7;
  background: #fff;
  box-shadow: none;
}

.guest-only .mobile-card-header,
.guest-only .guest-card-header {
  align-items: stretch;
  padding: 0 0 20px;
  border-bottom: 0;
}

.guest-only .mobile-card h3,
.guest-only .guest-card h3,
.guest-only .completion-card h3 {
  font-size: 25px;
  font-weight: 780;
  line-height: 1.12;
}

.guest-only .guest-card-header .eyebrow {
  margin-bottom: 7px;
  color: #6e6e73;
  font-size: 13px;
  text-transform: none;
}

.guest-only .guest-card-body {
  gap: 18px;
  padding: 0;
}

.guest-only .guest-main-grid,
.guest-only .document-fields {
  gap: 11px 14px;
  grid-auto-rows: minmax(54px, auto);
}

.guest-only .guest-main-grid > .field,
.guest-only .document-fields > .field {
  grid-row: auto !important;
}

.guest-only .field {
  gap: 8px;
}

.guest-only .field span,
.guest-only .compact-field span,
.guest-only .document-fields .field span {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 650;
}

.guest-only input,
.guest-only select {
  height: 48px;
  border-color: #d2d2d7;
  background: #fff;
  color: #1d1d1f;
  font-size: 15px;
}

.guest-only input:focus,
.guest-only select:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.guest-only .field.is-required-missing input,
.guest-only .field.is-required-missing select {
  border-color: #d70015;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(215, 0, 21, 0.1);
}

.guest-only .field.is-required-missing input:focus,
.guest-only .field.is-required-missing select:focus {
  border-color: #d70015;
  box-shadow: 0 0 0 4px rgba(215, 0, 21, 0.16);
}

.guest-only .field.is-required-missing > span {
  color: #b00014;
}

.guest-only .guest-header-tools {
  align-items: flex-start;
}

.guest-only .guest-header-tools select {
  min-width: 138px;
  height: 40px;
  font-size: 13px;
}

.guest-only .status-pill {
  min-height: 32px;
  padding: 0 12px;
  background: rgba(0, 113, 227, 0.1);
  color: #0066cc;
}

.guest-only .scan-panel {
  border: 0;
  background: transparent;
}

.guest-only .scan-target {
  min-height: 66px;
  padding: 14px;
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  background: #fff;
  background-color: #fff;
  background-image: none;
  color: #0066cc;
  font-size: 17px;
  font-weight: 720;
  box-shadow: none;
  filter: none;
}

.guest-only .scan-target:hover,
.guest-only .scan-target:focus,
.guest-only .scan-target:active {
  background: #fff;
  background-color: #fff;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.guest-only .scan-target-icon {
  width: 22px;
  height: 22px;
}

.guest-only .full-name-field input {
  height: 52px;
  font-size: 18px;
  font-weight: 720;
}

.guest-only .compact-field input,
.guest-only .compact-field select {
  height: 44px;
  padding: 0 13px;
  font-size: 14px;
}

.guest-only .guest-nav {
  position: static;
  margin: 24px 0 0;
  padding: 12px;
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}

.guest-only .guest-nav .button {
  min-height: 46px;
}

.guest-only .button {
  border-radius: 999px;
  font-weight: 720;
}

.guest-only .button.primary {
  background: #0071e3;
}

.guest-only .button.primary:hover {
  background: #0077ed;
}

.guest-only .button.secondary {
  border-color: #d2d2d7;
  background: #fff;
}

.guest-only .completion-card {
  text-align: left;
}

.guest-only .completion-icon {
  margin: 0 0 16px;
}

.guest-only .completion-card p {
  max-width: 440px;
  color: #6e6e73;
  font-size: 17px;
}

.guest-only .completion-actions {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .guest-only .shell {
    width: min(100% - 32px, 760px);
  }

  .guest-only .guest-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
  }

  .guest-only .configurator-summary-panel {
    position: static;
  }

  .guest-only .configurator-visual {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .guest-only .shell {
    width: 100%;
    padding-bottom: 28px;
  }

  .guest-only .topbar {
    padding: 10px 16px;
  }

  .guest-only .guest-layout {
    gap: 0;
    padding-top: 0;
  }

  .guest-only .configurator-summary-panel {
    margin: 16px 16px 8px;
  }

  .guest-only .configurator-visual {
    min-height: 230px;
    margin-bottom: 16px;
  }

  .guest-only .configurator-product-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 14px;
  }

  .guest-only .brand-card-logo {
    max-height: 86px;
  }

  .guest-only .configurator-summary-header {
    gap: 12px;
  }

  .guest-only .configurator-summary-header h2 {
    font-size: 22px;
  }

  .guest-only .configurator-summary-header .button {
    width: 100%;
  }

  .guest-only .guest-hero {
    padding: 22px 16px 18px;
  }

  .guest-only .guest-hero h2 {
    font-size: 34px;
  }

  .guest-only .mobile-card,
  .guest-only .guest-card,
  .guest-only .completion-card {
    margin: 12px 16px 0;
    padding: 20px;
  }

  .guest-only .mobile-card-header,
  .guest-only .guest-card-header {
    display: grid;
    gap: 12px;
  }

  .guest-only .guest-main-grid,
  .guest-only .document-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guest-only .guest-main-grid > .field,
  .guest-only .document-fields > .field {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .guest-only input,
  .guest-only select,
  .guest-only .compact-field input,
  .guest-only .compact-field select {
    height: 50px;
    font-size: 16px;
  }

  .guest-only .full-name-field input {
    height: 54px;
    font-size: 16px;
  }

  .guest-only .scan-target {
    min-height: 74px;
    font-size: 15px;
  }

  .guest-only .guest-nav {
    position: sticky;
    bottom: 10px;
    margin: 16px 16px 0;
  }
}

/* Admin configurator refresh. Kept at the end so it wins over the legacy glass UI. */
body:not(.guest-only) {
  background: #f5f5f7;
}

body:not(.guest-only) .scene-photo {
  background:
    linear-gradient(180deg, rgba(251, 251, 253, 0.94), rgba(245, 245, 247, 0.98)),
    url("assets/piscina6.jpeg") center/cover;
  opacity: 1;
}

body:not(.guest-only) .scene-tint {
  background: linear-gradient(180deg, rgba(251, 251, 253, 0.2), #f5f5f7 48%);
}

body:not(.guest-only) .shell {
  width: min(1440px, calc(100% - 48px));
  padding: 0 0 56px;
}

body:not(.guest-only) .topbar {
  position: sticky;
  top: 0;
  z-index: 7;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(22px);
}

body:not(.guest-only) .brand-logo-mark {
  width: 132px;
  height: 42px;
  flex-basis: 132px;
  background: transparent;
  box-shadow: none;
}

body:not(.guest-only) .brand h1 {
  font-size: 18px;
}

body:not(.guest-only) .brand .eyebrow {
  display: none;
}

body:not(.guest-only) .segmented {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
}

body:not(.guest-only) .segment {
  border-radius: 999px;
}

body:not(.guest-only) .account-session-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
}

body:not(.guest-only) .account-session-button span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.home-only .segmented,
body.home-only .property-strip {
  display: none;
}

body:not(.guest-only) .property-strip {
  min-height: 250px;
  align-items: flex-end;
  margin: 30px 0 28px;
  padding: 36px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.68) 45%, rgba(255, 255, 255, 0.04) 100%),
    url("assets/drone3.jpeg") center/cover;
  box-shadow: none;
}

body:not(.guest-only) .property-strip h2 {
  max-width: 720px;
  font-size: 52px;
  font-weight: 790;
  line-height: 1.02;
}

body:not(.guest-only) .vault-chip {
  min-height: 42px;
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

body:not(.guest-only) .admin-layout {
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
}

body:not(.guest-only) .panel,
body:not(.guest-only) .mobile-card,
body:not(.guest-only) .unlock-card {
  border-color: #d2d2d7;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.guest-only) .admin-side {
  position: sticky;
  top: 86px;
  width: 330px;
  min-width: 0;
  max-width: 330px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 18px;
}

body:not(.guest-only) .admin-side .panel-header,
body:not(.guest-only) .admin-side .field,
body:not(.guest-only) .admin-side input,
body:not(.guest-only) .admin-side .private-key-control {
  min-width: 0;
}

.admin-config-visual {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  margin: -4px -4px 22px;
  border-radius: 8px;
  background: #f5f5f7;
}

.admin-config-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(245, 245, 247, 0.9)),
    url("assets/piscina6.jpeg") center/cover;
}

.admin-config-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
}

.admin-config-card span {
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 780;
}

.admin-config-card .brand-card-logo {
  max-height: 92px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-menu-toggle {
  display: none;
}

.admin-nav-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  background: #f5f5f7;
}

.admin-nav h2 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 780;
  line-height: 1.1;
}

.admin-nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border: 0;
  border-bottom: 1px solid #d2d2d7;
  border-radius: 0;
  background: transparent;
  color: #1d1d1f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
}

.admin-nav-item:last-child {
  border-bottom: 0;
}

.admin-nav-item::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
  content: "";
}

.admin-nav-item::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  opacity: 0.42;
  transform: rotate(45deg);
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
  background: rgba(0, 113, 227, 0.08);
  color: #0066cc;
}

.admin-nav-item.is-active::before {
  background: #0071e3;
}

.admin-module-section[hidden] {
  display: none;
}

#adminTemplateMount .cms-card {
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#adminTemplateMount .cms-card > .panel-header {
  display: none;
}

#adminSibaMount .siba-settings-panel,
#adminKeysMount .key-panel {
  margin-top: 0;
}

#adminSibaMount .siba-settings-panel summary,
#adminKeysMount .key-panel > .panel-header {
  display: none;
}

#adminSibaMount .siba-settings-panel .compact-form {
  margin-top: 0;
  gap: 16px;
  grid-auto-rows: minmax(64px, auto);
}

#adminSibaMount .siba-settings-panel {
  width: 100%;
}

#adminSibaMount .siba-settings-panel input,
#adminSibaMount .siba-settings-panel select {
  min-width: 0;
  width: 100%;
  padding-right: 14px;
  padding-left: 14px;
}

.accounts-layout {
  display: grid;
  gap: 22px;
}

.accounts-create,
.accounts-list-panel {
  padding-top: 18px;
  border-top: 1px solid #d2d2d7;
}

.accounts-create {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 24px;
}

.section-heading h3,
.permissions-header h3 {
  margin-top: 4px;
  font-size: 21px;
}

.accounts-create-form {
  width: 100%;
  max-width: 720px;
  grid-auto-rows: auto;
  align-items: start;
}

.accounts-create-form > .field:not(.span-2) {
  grid-column: span 6;
}

.accounts-table-wrap,
.permissions-panel .table-wrap {
  margin-top: 12px;
}

body:not(.guest-only) .accounts-table .actions-col {
  width: 224px;
}

.accounts-table th,
.accounts-table td,
.permissions-table th,
.permissions-table td {
  padding: 13px 14px;
}

.accounts-table .account-name {
  display: block;
  font-weight: 760;
}

.accounts-table .account-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.permissions-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.permissions-table th:nth-child(2),
.permissions-table th:nth-child(3),
.permissions-table td:nth-child(2),
.permissions-table td:nth-child(3) {
  width: 100px;
  text-align: center;
}

.permissions-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.account-action-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.account-action-buttons .icon-button.is-active {
  color: #fff;
  border-color: #0071e3;
  background: #0071e3;
}

.account-row {
  cursor: pointer;
}

.account-row:hover td {
  border-color: #b9c0cc;
}

.account-detail-row > .account-detail-cell,
.account-detail-row > .account-detail-cell:first-child,
.account-detail-row > .account-detail-cell:last-child {
  padding: 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-detail-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(300px, 0.8fr) minmax(430px, 1.2fr);
  gap: 12px;
  align-items: start;
}

.account-detail-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
}

.account-profile-form {
  gap: 12px;
  grid-auto-rows: auto;
}

.account-profile-form > .field,
.account-profile-form > .form-note,
.account-profile-form > .button {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.account-profile-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
}

.account-profile-form input[readonly] {
  color: #6e6e73;
  background: #f5f5f7;
}

.account-detail-card.permissions-panel {
  padding-top: 16px;
  border-top: 1px solid #d2d2d7;
}

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

.maintenance-card {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
}

.maintenance-card h3 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 780;
  line-height: 1.12;
}

.maintenance-card .button {
  width: fit-content;
  min-width: 190px;
}

.permission-denied {
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.account-menu-panel {
  display: grid;
  gap: 10px;
}

.account-menu-action {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  cursor: pointer;
  text-align: left;
}

.account-menu-action:hover,
.account-menu-action:focus-visible {
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
  outline: none;
}

.account-menu-action .icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #0071e3;
  stroke-width: 2;
}

.account-menu-action span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-menu-action strong {
  font-size: 15px;
}

.account-menu-action small {
  overflow: hidden;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .account-card .form-grid > .field:not(.span-2),
  .account-card .form-grid > .button {
    grid-column: 1 / -1;
  }

  .accounts-create {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .permissions-header {
    align-items: stretch;
    flex-direction: column;
  }

  .account-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .maintenance-card .button {
    width: 100%;
  }

  body:not(.guest-only) .accounts-table {
    display: block;
  }

  body:not(.guest-only) .accounts-table > thead {
    display: none;
  }

  body:not(.guest-only) .accounts-table > tbody {
    display: grid;
    gap: 10px;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #fff;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-row.is-expanded {
    border-color: #0071e3;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-row > td,
  body:not(.guest-only) .accounts-table > tbody > .account-row > td:first-child,
  body:not(.guest-only) .accounts-table > tbody > .account-row > td:last-child {
    width: auto;
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-row > td:nth-child(1),
  body:not(.guest-only) .accounts-table > tbody > .account-row > td:nth-child(2) {
    grid-column: 1;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-row > td:nth-child(2) {
    color: #6e6e73;
    font-size: 12px;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-row > td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    padding-left: 10px;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-row > td:nth-child(4) {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e5e5ea;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-detail-row {
    display: block;
  }

  body:not(.guest-only) .accounts-table > tbody > .account-detail-row > .account-detail-cell {
    display: block;
    width: 100%;
  }

  .account-action-buttons {
    justify-content: flex-start;
  }

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

body:not(.guest-only) .panel-header h2,
body:not(.guest-only) .records-toolbar h2 {
  font-size: 30px;
  font-weight: 780;
  line-height: 1.1;
}

body:not(.guest-only) .panel-header h3 {
  font-size: 21px;
}

body:not(.guest-only) .form-grid {
  gap: 14px;
}

body:not(.guest-only) .field span,
body:not(.guest-only) .small-label {
  color: #6e6e73;
  font-weight: 650;
}

body:not(.guest-only) input,
body:not(.guest-only) select,
body:not(.guest-only) textarea {
  border-color: #d2d2d7;
  background: #fff;
  color: #1d1d1f;
}

body:not(.guest-only) input,
body:not(.guest-only) select {
  height: 46px;
}

body:not(.guest-only) .button {
  border-radius: 999px;
  font-weight: 720;
}

body:not(.guest-only) .button.primary {
  background: #0071e3;
}

body:not(.guest-only) .button.primary:hover {
  background: #0077ed;
}

body:not(.guest-only) .button.secondary,
body:not(.guest-only) .icon-button {
  border-color: #d2d2d7;
  background: #fff;
}

body:not(.guest-only) .access-card,
body:not(.guest-only) .key-panel,
body:not(.guest-only) .siba-settings-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #f5f5f7;
}

body:not(.guest-only) .key-panel input,
body:not(.guest-only) .siba-settings-panel input,
body:not(.guest-only) .siba-settings-panel select {
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.guest-only) .private-key-control input {
  flex: 1 1 auto;
  min-width: 0;
}

body:not(.guest-only) .records-panel {
  padding: 24px;
}

body:not(.guest-only) .records-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

body:not(.guest-only) .toolbar-actions {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: space-between;
}

body:not(.guest-only) .records-new-button {
  width: 44px;
  height: 44px;
  color: #fff;
  border-color: #0071e3;
  background: #0071e3;
}

body:not(.guest-only) .records-new-button:hover {
  background: #0077ed;
}

body:not(.guest-only) .toolbar-actions .searchbox {
  flex: 1 1 360px;
  width: auto;
}

body:not(.guest-only) .stats-row {
  align-items: stretch;
  gap: 12px;
}

body:not(.guest-only) .stat {
  padding: 18px;
  border-color: #d2d2d7;
  background: #f5f5f7;
}

body:not(.guest-only) .stat strong {
  font-size: 34px;
  font-weight: 780;
}

body:not(.guest-only) .searchbox {
  border-color: #d2d2d7;
  background: #f5f5f7;
  border-radius: 999px;
}

body:not(.guest-only) .searchbox input {
  background: transparent;
}

body:not(.guest-only) .table-wrap {
  overflow-x: hidden;
  border: 0;
  background: transparent;
}

body:not(.guest-only) .table-wrap > table {
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 10px;
}

body:not(.guest-only) .table-wrap > table th,
body:not(.guest-only) .table-wrap > table td {
  overflow-wrap: anywhere;
}

body:not(.guest-only) .table-wrap > table td.record-meta-cell {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
}

body:not(.guest-only) .record-guests-cell {
  text-align: center;
}

body:not(.guest-only) .record-contact-cell {
  overflow-wrap: anywhere;
}

body:not(.guest-only) .table-wrap > table .select-col {
  width: 44px;
}

body:not(.guest-only) .table-wrap > table .actions-col {
  width: 184px;
}

body:not(.guest-only) .table-wrap > table th:nth-child(2),
body:not(.guest-only) .table-wrap > table td:nth-child(2) {
  width: 28%;
}

body:not(.guest-only) .table-wrap > table th:nth-child(3),
body:not(.guest-only) .table-wrap > table td:nth-child(3) {
  width: 13%;
}

body:not(.guest-only) .table-wrap > table th:nth-child(4),
body:not(.guest-only) .table-wrap > table td:nth-child(4) {
  width: 7%;
}

body:not(.guest-only) .table-wrap > table th:nth-child(5),
body:not(.guest-only) .table-wrap > table td:nth-child(5) {
  width: 18%;
}

body:not(.guest-only) .table-wrap > table th:nth-child(6),
body:not(.guest-only) .table-wrap > table td:nth-child(6) {
  width: 12%;
}

body:not(.guest-only) th {
  border: 0;
  background: transparent;
  color: #6e6e73;
}

body:not(.guest-only) td {
  border-top: 1px solid #d2d2d7;
  border-bottom: 1px solid #d2d2d7;
  background: #fff;
}

body:not(.guest-only) td:first-child {
  border-left: 1px solid #d2d2d7;
  border-radius: 8px 0 0 8px;
}

body:not(.guest-only) td:last-child {
  border-right: 1px solid #d2d2d7;
  border-radius: 0 8px 8px 0;
}

body:not(.guest-only) tbody tr.cancelled td {
  background: #f5f5f7;
}

body:not(.guest-only) tbody tr.is-expanded td {
  border-color: #0071e3;
}

body:not(.guest-only) tbody tr.record-row {
  cursor: pointer;
}

body:not(.guest-only) tbody tr.record-row:hover td {
  border-color: #b9c0cc;
}

body:not(.guest-only) .row-actions .icon-button.is-active {
  color: #fff;
  border-color: #0071e3;
  background: #0071e3;
}

body:not(.guest-only) .row-actions .icon-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
}

body:not(.guest-only) .row-actions {
  gap: 4px;
  justify-content: flex-start;
}

body:not(.guest-only) .record-identification-summary {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

body:not(.guest-only) .record-row-toggle {
  display: inline-flex;
  width: 24px;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: #0066cc;
  line-height: 1;
  box-sizing: border-box;
}

body:not(.guest-only) .record-row-toggle .icon {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
}

body:not(.guest-only) .guest-identification-status {
  display: inline-flex;
  width: 100%;
  max-width: min(100%, 260px);
  min-height: 24px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef0f4;
  color: #515866;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

body:not(.guest-only) .guest-identification-status.is-incomplete {
  background: rgba(245, 158, 11, 0.14);
  color: #9a5b00;
}

body:not(.guest-only) .guest-identification-status.is-complete {
  background: rgba(36, 138, 61, 0.14);
  color: #1f7a39;
}

body:not(.guest-only) .record-detail-row > .record-detail-cell,
body:not(.guest-only) .record-detail-row > .record-detail-cell:first-child,
body:not(.guest-only) .record-detail-row > .record-detail-cell:last-child {
  padding: 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.guest-only) .record-detail-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 12px;
  align-items: start;
}

body:not(.guest-only) .new-record-grid {
  grid-template-columns: minmax(0, 720px);
}

body:not(.guest-only) .record-detail-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
}

body:not(.guest-only) .record-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

body:not(.guest-only) .record-detail-header h3 {
  font-size: 21px;
  font-weight: 780;
  line-height: 1.1;
}

body:not(.guest-only) .record-collapse-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  color: #0066cc;
}

body:not(.guest-only) .record-stay-card .form-grid {
  gap: 12px;
  grid-auto-rows: minmax(50px, auto);
}

body:not(.guest-only) .record-stay-card input,
body:not(.guest-only) .record-stay-card select {
  height: 42px;
}

body:not(.guest-only) .record-access-card > .access-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body:not(.guest-only) .record-access-card .copy-control input {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

body:not(.guest-only) .record-access-card .access-actions {
  grid-template-columns: 1fr;
}

body:not(.guest-only) .record-access-card .access-actions .primary {
  grid-column: auto;
}

body:not(.guest-only) .record-access-card .button {
  min-width: 0;
  white-space: normal;
}

body:not(.guest-only) .record-guests-card {
  grid-column: 1 / -1;
}

body:not(.guest-only) .record-lead-card {
  grid-column: 1 / -1;
}

body:not(.guest-only) .lead-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

body:not(.guest-only) .lead-detail-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: #f9f9fb;
}

body:not(.guest-only) .lead-detail-item dt {
  margin: 0 0 6px;
  color: #6e6e73;
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

body:not(.guest-only) .lead-detail-item dd {
  margin: 0;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body:not(.guest-only) .lead-detail-item:first-child,
body:not(.guest-only) .lead-detail-item:nth-child(4) {
  grid-column: span 2;
}

body:not(.guest-only) .record-detail-empty {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 650;
}

body:not(.guest-only) .guest-records-wrap {
  overflow-x: hidden;
}

body:not(.guest-only) .guest-records-table {
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

body:not(.guest-only) .guest-records-table th:nth-child(1),
body:not(.guest-only) .guest-records-table td:nth-child(1) {
  width: 24%;
}

body:not(.guest-only) .guest-records-table th:nth-child(2),
body:not(.guest-only) .guest-records-table td:nth-child(2) {
  width: 18%;
}

body:not(.guest-only) .guest-records-table th:nth-child(3),
body:not(.guest-only) .guest-records-table td:nth-child(3) {
  width: 16%;
}

body:not(.guest-only) .guest-records-table th:nth-child(4),
body:not(.guest-only) .guest-records-table td:nth-child(4) {
  width: 19%;
}

body:not(.guest-only) .guest-records-table th:nth-child(5),
body:not(.guest-only) .guest-records-table td:nth-child(5) {
  width: 23%;
}

body:not(.guest-only) .guest-records-table th,
body:not(.guest-only) .guest-records-table td,
body:not(.guest-only) .guest-records-table td:first-child,
body:not(.guest-only) .guest-records-table td:last-child {
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid #e5e5ea;
  border-radius: 0;
  background: transparent;
  vertical-align: top;
  overflow-wrap: anywhere;
}

body:not(.guest-only) .guest-records-table th {
  color: #6e6e73;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

body:not(.guest-only) .guest-records-table tbody tr:last-child td {
  border-bottom: 0;
}

body:not(.guest-only) .guest-table-primary,
body:not(.guest-only) .guest-table-secondary {
  display: block;
}

body:not(.guest-only) .guest-table-primary {
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 720;
}

body:not(.guest-only) .guest-table-secondary {
  margin-top: 3px;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 1240px) {
  body:not(.guest-only) .admin-layout {
    grid-template-columns: 1fr;
  }

  body:not(.guest-only) .admin-side {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
  }

  body:not(.guest-only) .admin-config-visual {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  body:not(.guest-only) .shell {
    width: min(100% - 24px, 760px);
  }

  body:not(.guest-only) .property-strip {
    min-height: 220px;
    padding: 24px;
  }

  body:not(.guest-only) .property-strip h2 {
    font-size: 34px;
  }

  body:not(.guest-only) .admin-config-visual {
    min-height: 190px;
  }

  body:not(.guest-only) .records-toolbar {
    grid-template-columns: 1fr;
  }

  body:not(.guest-only) .records-new-button {
    width: 100%;
    justify-self: stretch;
  }

  body:not(.guest-only) .record-detail-row > .record-detail-cell,
  body:not(.guest-only) .record-detail-row > .record-detail-cell:first-child,
  body:not(.guest-only) .record-detail-row > .record-detail-cell:last-child {
    padding-left: 0;
  }

  body:not(.guest-only) .record-detail-grid,
  body:not(.guest-only) .new-record-grid {
    grid-template-columns: 1fr;
  }

  body:not(.guest-only) .lead-details-grid {
    grid-template-columns: 1fr;
  }

  body:not(.guest-only) .lead-detail-item:first-child,
  body:not(.guest-only) .lead-detail-item:nth-child(4) {
    grid-column: auto;
  }
}

@media (min-width: 1241px) {
  body:not(.guest-only) #adminView .admin-layout {
    grid-template-columns: 330px minmax(0, 1fr) !important;
  }

  body:not(.guest-only) #adminView .admin-side {
    width: 330px !important;
    min-width: 0 !important;
    max-width: 330px !important;
  }

  body:not(.guest-only) #adminView .records-panel {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body:not(.guest-only) .shell {
    width: 100%;
    padding-bottom: 28px;
  }

  body:not(.guest-only) .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
  }

  body:not(.guest-only) .brand {
    flex: 1 1 auto;
  }

  body:not(.guest-only) .brand .eyebrow {
    display: none;
  }

  body:not(.guest-only) .segmented {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
  }

  body:not(.guest-only) .segment {
    flex: 0 0 auto;
  }

  body:not(.guest-only) .brand-logo-mark {
    width: 88px;
    height: 28px;
    flex-basis: 88px;
  }

  body:not(.guest-only) .brand h1 {
    font-size: 15px;
  }

  body:not(.guest-only) .account-session-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
  }

  body:not(.guest-only) .account-session-button span {
    display: none;
  }

  body:not(.guest-only) .property-strip {
    min-height: 64px;
    align-items: end;
    margin: 8px 12px 10px;
    padding: 11px 12px;
    border-radius: 10px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.58) 58%, rgba(255, 255, 255, 0.08) 100%),
      url("assets/drone3.jpeg") center 42%/cover;
  }

  body:not(.guest-only) .property-strip h2 {
    max-width: 280px;
    font-size: 18px;
    line-height: 1.05;
  }

  body:not(.guest-only) .property-strip .eyebrow,
  body:not(.guest-only) .vault-chip {
    display: none;
  }

  body:not(.guest-only) .admin-layout {
    gap: 10px;
  }

  body:not(.guest-only) .admin-side {
    padding: 10px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not(.guest-only) .admin-config-visual {
    min-height: 58px;
    margin: 0 0 8px;
    border-radius: 10px;
  }

  body:not(.guest-only) .admin-config-card {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 7px 10px;
    border-radius: 8px;
  }

  body:not(.guest-only) .admin-config-card span {
    font-size: 13px;
  }

  body:not(.guest-only) .admin-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  body:not(.guest-only) .admin-nav .eyebrow {
    display: none;
  }

  body:not(.guest-only) .admin-nav h2 {
    margin: 0;
    font-size: 22px;
  }

  body:not(.guest-only) .admin-menu-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1f;
    cursor: pointer;
    font-size: 13px;
    font-weight: 760;
  }

  body:not(.guest-only) .admin-menu-toggle .icon {
    width: 18px;
    height: 18px;
  }

  body:not(.guest-only) .admin-nav-list {
    display: none;
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  body:not(.guest-only) .admin-nav.is-menu-open .admin-nav-list {
    display: grid;
  }

  body:not(.guest-only) .records-panel {
    padding: 16px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not(.guest-only) .toolbar-actions .searchbox {
    flex: 0 0 auto;
    width: 100%;
    height: 42px;
  }

  body:not(.guest-only) .records-toolbar h2 {
    font-size: 26px;
  }

  body:not(.guest-only) .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-only .topbar {
    padding: 7px 12px;
  }

  .guest-only .brand-logo-mark {
    width: 88px;
    height: 28px;
    flex-basis: 88px;
  }

  .guest-only .brand h1 {
    font-size: 14px;
  }

  .guest-only .configurator-summary-panel {
    margin: 8px 12px 4px;
  }

  .guest-only .configurator-visual {
    min-height: 78px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .guest-only .configurator-photo {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(245, 245, 247, 0.6)),
      url("assets/piscina6.jpeg") center 46%/cover;
  }

  .guest-only .configurator-product-card {
    right: 10px;
    bottom: 10px;
    left: auto;
    width: 108px;
    padding: 8px;
    border-radius: 8px;
  }

  .guest-only .brand-card-logo {
    max-height: 38px;
  }

  .guest-only .configurator-summary-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }

  .guest-only .configurator-summary-header .eyebrow {
    display: none;
  }

  .guest-only .configurator-summary-header h2 {
    max-width: none;
    margin: 0;
    font-size: 16px;
    line-height: 1.1;
  }

  .guest-only .configurator-summary-header .button {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .guest-only .phone-frame {
    padding: 0;
  }

  .guest-only .phone-screen {
    min-height: calc(100vh - 72px);
  }

  .guest-only .guest-hero {
    min-height: 64px;
    padding: 9px 16px 8px;
  }

  .guest-only .guest-hero .eyebrow {
    display: none;
  }

  .guest-only .guest-hero h2 {
    margin-bottom: 4px;
    font-size: 22px;
  }

  .guest-only .guest-hero span {
    margin-top: 3px;
    min-height: 24px;
    padding: 0 9px;
    font-size: 11px;
  }

  .guest-only .mobile-card,
  .guest-only .guest-card,
  .guest-only .completion-card {
    margin: 8px 12px 0;
    padding: 15px;
  }

  .guest-only .mobile-card-header,
  .guest-only .guest-card-header {
    gap: 8px;
  }
}

@media (max-width: 1120px) {
  body:not(.guest-only) .shell {
    width: 100%;
    padding-bottom: 28px;
  }

  body:not(.guest-only) .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
  }

  body:not(.guest-only) .brand {
    flex: 1 1 auto;
  }

  body:not(.guest-only) .brand .eyebrow {
    display: none;
  }

  body:not(.guest-only) .brand-logo-mark {
    width: 88px;
    height: 28px;
    flex-basis: 88px;
  }

  body:not(.guest-only) .brand h1 {
    font-size: 15px;
  }

  body:not(.guest-only) .segmented {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
  }

  body:not(.guest-only) .segment {
    flex: 0 0 auto;
  }

  body:not(.guest-only) .account-session-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
  }

  body:not(.guest-only) .account-session-button span {
    display: none;
  }

  body:not(.guest-only) .property-strip {
    min-height: 0;
    height: 52px;
    align-items: center;
    margin: 6px 12px 8px;
    padding: 0 12px;
    border-radius: 10px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.22)),
      url("assets/drone3.jpeg") center 42%/cover;
  }

  body:not(.guest-only) .property-strip > div:first-child,
  body:not(.guest-only) .vault-chip {
    display: none;
  }

  body:not(.guest-only) .admin-layout {
    gap: 8px;
  }

  body:not(.guest-only) .admin-side {
    padding: 8px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not(.guest-only) .admin-config-visual {
    min-height: 0;
    height: 48px;
    margin: 0 0 8px;
    border-radius: 10px;
  }

  body:not(.guest-only) .admin-config-card {
    right: 8px;
    bottom: 7px;
    left: 8px;
    padding: 5px 10px;
    border-radius: 8px;
  }

  body:not(.guest-only) .admin-config-card span {
    font-size: 12px;
  }

  body:not(.guest-only) .admin-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  body:not(.guest-only) .admin-nav .eyebrow {
    display: none;
  }

  body:not(.guest-only) .admin-nav h2 {
    margin: 0;
    font-size: 22px;
  }

  body:not(.guest-only) .admin-menu-toggle {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d2d2d7;
    border-radius: 50%;
    background: #fff;
    color: #1d1d1f;
    cursor: pointer;
  }

  body:not(.guest-only) .admin-menu-toggle span {
    display: none;
  }

  body:not(.guest-only) .admin-menu-toggle .icon {
    width: 18px;
    height: 18px;
  }

  body:not(.guest-only) .admin-nav-list {
    display: none;
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  body:not(.guest-only) .admin-nav.is-menu-open .admin-nav-list {
    display: grid;
  }

  body:not(.guest-only) .records-panel {
    padding: 16px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not(.guest-only) .records-toolbar h2 {
    font-size: 26px;
  }

  body:not(.guest-only) .toolbar-actions .searchbox {
    flex: 0 0 auto;
    width: 100%;
    height: 42px;
  }

  .guest-only .topbar {
    padding: 7px 12px;
  }

  .guest-only .brand-logo-mark {
    width: 88px;
    height: 28px;
    flex-basis: 88px;
  }

  .guest-only .brand h1 {
    font-size: 14px;
  }

  .guest-only .configurator-summary-panel {
    margin: 6px 12px 4px;
  }

  .guest-only .configurator-visual {
    min-height: 0;
    height: 58px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .guest-only .configurator-product-card {
    right: 8px;
    bottom: 8px;
    left: auto;
    width: 92px;
    padding: 6px;
    border-radius: 8px;
  }

  .guest-only .brand-card-logo {
    max-height: 32px;
  }

  .guest-only .configurator-summary-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }

  .guest-only .configurator-summary-header .eyebrow {
    display: none;
  }

  .guest-only .configurator-summary-header h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.1;
  }

  .guest-only .configurator-summary-header .button {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .guest-only .phone-screen {
    min-height: calc(100vh - 64px);
  }

  .guest-only .guest-hero {
    min-height: 58px;
    padding: 8px 16px;
  }

  .guest-only .guest-hero .eyebrow {
    display: none;
  }

  .guest-only .guest-hero h2 {
    margin-bottom: 3px;
    font-size: 21px;
  }

  .guest-only .guest-hero span {
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
  }

  .guest-only .mobile-card,
  .guest-only .guest-card,
  .guest-only .completion-card {
    margin: 8px 12px 0;
    padding: 15px;
  }
}

@media (max-width: 760px) {
  .guest-only .topbar {
    min-height: 46px;
    padding: 7px 12px;
  }

  .guest-only .brand {
    min-width: 0;
  }

  .guest-only .brand h1,
  .guest-only .brand .eyebrow {
    display: none;
  }

  .guest-only .guest-language-control {
    flex: 0 0 auto;
  }

  .guest-only .guest-language-control select {
    min-width: 104px;
    height: 34px;
    font-size: 12px;
    padding: 0 9px;
  }

  .guest-only .guest-layout {
    display: block;
    padding-top: 6px;
  }

  .guest-only .configurator-summary-panel,
  .guest-only .configurator-visual,
  .guest-only .configurator-summary-header,
  .guest-only .configurator-steps {
    display: none;
  }

  .guest-only .phone-frame,
  .guest-only .phone-screen,
  .guest-only .guest-list {
    width: 100%;
    max-width: none;
  }

  .guest-only .phone-screen {
    min-height: calc(100dvh - 48px);
  }

  .guest-only .guest-hero {
    min-height: 0;
    padding: 10px 12px 8px;
  }

  .guest-only .guest-hero h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 20px;
  }

  .guest-only .guest-hero span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .guest-only .mobile-card,
  .guest-only .guest-card,
  .guest-only .completion-card {
    margin: 8px 8px 0;
    padding: 14px;
  }

  .guest-only .mobile-card-header,
  .guest-only .guest-card-header {
    padding-bottom: 12px;
  }

  .guest-only .guest-main-grid,
  .guest-only .document-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-only .guest-main-grid > .field,
  .guest-only .document-fields > .field {
    min-width: 0;
  }

  .guest-only .guest-main-grid > .field[data-template-field="address"],
  .guest-only .full-name-field,
  .guest-only .scan-panel {
    grid-column: 1 / -1 !important;
  }

  .guest-only .document-fields > .document-image-preview {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: 9999 !important;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
  }

  .guest-only .field,
  .guest-only input,
  .guest-only select,
  .guest-only textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .guest-only input[type="date"] {
    width: 100%;
    min-width: 0;
  }

  .phone-input-pair {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .guest-only .scan-action-row {
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 10px;
  }

  .guest-only .scan-target,
  .guest-only .scan-clear {
    border-radius: 14px;
    box-shadow: none;
  }

  .smart-picker-overlay.is-sheet {
    align-items: end;
  }

  .smart-picker-overlay.is-sheet .smart-picker-card {
    max-height: min(82dvh, 700px);
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .smart-picker-overlay.is-sheet .smart-picker-options {
    max-height: calc(82dvh - 132px);
  }

  .scan-toast {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 20px);
    border-radius: 14px;
  }
}

.guest-only .configurator-summary-header {
  display: none !important;
}

.guest-only .configurator-visual {
  margin-bottom: 0 !important;
}

@media (max-width: 760px) {
  .smart-picker-overlay.is-sheet {
    display: block;
    overflow: hidden;
  }

  .smart-picker-overlay.is-sheet .smart-picker-card {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    height: min(88vh, 720px);
    height: min(88svh, 720px);
    max-height: calc(100vh - 8px);
    max-height: calc(100svh - 8px);
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  }

  .smart-picker-overlay.is-sheet .smart-picker-header,
  .smart-picker-overlay.is-sheet .smart-picker-search-row {
    min-width: 0;
  }

  .smart-picker-overlay.is-sheet .smart-picker-options {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .guest-only .phone-screen {
    padding-bottom: 86px;
  }

  .guest-only .guest-list {
    padding-bottom: 86px;
  }

  .guest-only .guest-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 11;
    margin: 0;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -14px 34px rgba(17, 24, 39, 0.14);
  }
}
