:root {
  color-scheme: dark;
  --void: #080a08;
  --deep: #0d110d;
  --surface: #0f140f;
  --surface-strong: #151c15;
  --gold: #9b8455;
  --gold-text: #c4a96a;
  --gold-lt: rgba(155, 132, 85, 0.12);
  --gold-border: rgba(155, 132, 85, 0.22);
  --sage: #7a9680;
  --sage-bright: #94b49b;
  --sage-lt: rgba(122, 150, 128, 0.1);
  --white: #f4f0e8;
  --cream: rgba(244, 240, 232, 0.86);
  --text: rgba(232, 228, 216, 0.94);
  --muted: #c9c3b4;
  --border: rgba(155, 132, 85, 0.14);
  --border-strong: rgba(155, 132, 85, 0.28);
  --field: rgba(244, 240, 232, 0.045);
  --field-ink: #f4f0e8;
  --warn: #d4946a;
  --danger: #d66f5f;
  --shadow: rgba(0, 0, 0, 0.34);
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --display: "Oxanium", "DM Sans", sans-serif;
  --sans: "DM Sans", Inter, system-ui, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --void: #f2eee5;
  --deep: #e9e3d6;
  --surface: #ede7d8;
  --surface-strong: #f8f3e9;
  --white: #1a1a18;
  --cream: rgba(26, 26, 24, 0.86);
  --text: rgba(28, 24, 18, 0.92);
  --muted: #4e483e;
  --border: rgba(122, 92, 46, 0.2);
  --border-strong: rgba(122, 92, 46, 0.34);
  --gold: #9b8455;
  --gold-text: #7a5c2e;
  --gold-border: rgba(122, 92, 46, 0.26);
  --gold-lt: rgba(122, 92, 46, 0.08);
  --sage: #4a7a55;
  --sage-bright: #2f5a3a;
  --sage-lt: rgba(74, 122, 85, 0.1);
  --field: rgba(255, 255, 255, 0.48);
  --field-ink: #1a1a18;
  --warn: #b3683d;
  --danger: #a33d34;
  --shadow: rgba(74, 58, 30, 0.14);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-height: 100%; background: var(--void); }

body {
  margin: 0;
  min-height: 100vh;
  /* Flat colour on the document. The glow lives on the fixed ::before so a
     tall page does not retile or cut the gradient in half. */
  background: var(--void);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background: var(--void);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background-image:
    radial-gradient(ellipse 70% 80% at 72% 8%, rgba(20, 36, 22, 0.64), transparent 58%),
    radial-gradient(ellipse 50% 50% at 12% 82%, rgba(155, 132, 85, 0.08), transparent 62%),
    linear-gradient(rgba(155, 132, 85, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 132, 85, 0.035) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

body::after {
  z-index: 9999;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

[data-theme="light"] body::before {
  background-image:
    radial-gradient(ellipse 72% 82% at 70% 6%, rgba(122, 92, 46, 0.09), transparent 58%),
    radial-gradient(ellipse 48% 50% at 10% 84%, rgba(74, 122, 85, 0.1), transparent 62%),
    linear-gradient(rgba(122, 92, 46, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 92, 46, 0.055) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

[data-theme="light"] body::after {
  opacity: .22;
}

button, input, select, textarea { font: inherit; }
a { color: var(--gold-text); font-weight: 600; }

.app-shell,
.staff-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.panel,
.status-panel,
.staff-login-card,
.metric,
.toolbar,
.report-panel,
.table-panel,
.settings-panel {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 26px 70px var(--shadow);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .panel,
[data-theme="light"] .status-panel,
[data-theme="light"] .staff-login-card,
[data-theme="light"] .metric,
[data-theme="light"] .toolbar,
[data-theme="light"] .report-panel,
[data-theme="light"] .table-panel,
[data-theme="light"] .settings-panel {
  background: rgba(248, 243, 233, 0.72);
  box-shadow: 0 28px 80px rgba(74, 58, 30, 0.12);
}

.panel { overflow: hidden; }

.topbar,
.staff-header {
  position: relative;
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(155, 132, 85, 0.14), rgba(122, 150, 128, 0.08) 46%, rgba(8, 10, 8, 0.2));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

[data-theme="light"] .topbar,
[data-theme="light"] .staff-header {
  background:
    linear-gradient(135deg, rgba(155, 132, 85, 0.12), rgba(74, 122, 85, 0.075) 48%, rgba(255, 255, 255, 0.22)),
    rgba(248, 243, 233, 0.58);
}

.staff-header {
  border: 1px solid var(--border);
  border-radius: 4px;
}

.brand-lockup {
  display: grid;
  gap: 8px;
}

.brand-logo-link {
  display: inline-flex;
  width: fit-content;
}

.brand-logo-link.is-disabled {
  cursor: default;
  pointer-events: none;
}

.brand-lockup img,
.login-logo {
  width: 126px;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.26));
}

[data-theme="light"] .brand-lockup img,
[data-theme="light"] .login-logo {
  filter: invert(1) contrast(1.08) drop-shadow(0 10px 18px rgba(74, 58, 30, 0.12));
}

.topbar-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 4px 0 0;
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

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

h1 {
  max-width: 720px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
}

h2 {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.1;
}

.language {
  display: grid;
  gap: 7px;
  min-width: 124px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 8px;
  align-content: start;
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.language select,
input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 13px;
  background: var(--field);
  color: var(--field-ink);
  outline: none;
}

input:not([type="checkbox"]):not([type="hidden"]),
select {
  height: 45px;
}

input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  padding: 0;
  accent-color: #146c43;
  outline: 2px solid var(--gold-text);
  outline-offset: 2px;
  flex: 0 0 auto;
}

label:has(> input:required, > select:required, > textarea:required, > .phone-field input:required) > span:first-child::after {
  content: " *";
  color: var(--danger);
  font-weight: 700;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: rgba(255, 252, 245, 0.62);
  border-color: rgba(122, 92, 46, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-lt);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  background: rgba(74, 122, 85, 0.2);
}

.password-control {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.password-control input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 13px;
}

.password-toggle {
  flex: 0 0 42px;
  width: 28px;
  width: 42px;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--field);
  color: var(--muted);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--gold-text);
  background: var(--gold-lt);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-field {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(150px, 1fr);
  gap: 8px;
}

.phone-field select,
.phone-field input {
  min-width: 0;
}

textarea {
  min-height: 92px;
  resize: vertical;
  text-transform: none;
  letter-spacing: 0;
}

label small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 8, 0.18);
}

[data-theme="light"] .steps {
  background: rgba(255, 252, 245, 0.34);
}

.step {
  min-height: 66px;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.step:last-child { border-right: 0; }

.step span {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  color: var(--sage);
  font-size: 11px;
  font-weight: 600;
}

.step strong {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 600;
  white-space: normal;
  overflow: visible;
}

.step.is-active {
  background: var(--gold-lt);
  color: var(--gold-text);
}

.step.is-active span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
}

form { padding: 32px 30px 0; }
.form-step { display: none; }
.form-step.is-active { display: block; }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-head p,
.status-panel p,
.staff-login-card p {
  margin: 0;
  color: var(--text);
  font-weight: 300;
}

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

.wide { margin-top: 17px; }

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

.allergy-severe {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.allergy-severe input[type="checkbox"] {
  /* The shared input rule gives every input full width and field padding. The
     consent checkboxes override that (.consent input); this one did not, so on a
     wide screen the checkbox stretched across the row and crushed its label into
     a one-letter-wide column. Same box as the consent checkboxes. */
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin-top: 3px;
  flex: 0 0 auto;
}

.allergy-severe span {
  color: var(--text);
  font-weight: 400;
}

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

#camera {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050705;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: cover;
}

.camera-actions,
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button,
.text-button,
.capture-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--void);
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

button:hover,
.text-button:hover,
.capture-file-button:hover {
  opacity: .84;
}

.theme-toggle,
button.secondary,
.text-button,
.capture-file-button {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--gold-text);
}

.capture-file-button.primary-capture-button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  background: #141816;
  border-color: rgba(244, 240, 232, 0.45);
  color: #f4f0e8;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}

[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: rgba(26, 26, 24, 0.4);
  color: #1a1a18;
}

.theme-toggle .theme-icon {
  display: none;
  width: 18px;
  height: 18px;
}

html:not([data-theme="light"]) .theme-toggle .theme-icon-sun,
html[data-theme="light"] .theme-toggle .theme-icon-moon {
  display: block;
}

.theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Guests do not choose a theme. Staff and the terms page keep the control. */
.app-shell .theme-toggle,
.topbar .theme-toggle {
  display: none !important;
}

.login-theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

button:disabled {
  opacity: .48;
  cursor: wait;
}

.topbar-controls button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
}

.file-fallback {
  width: min(100%, 330px);
  padding: 13px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  background: var(--gold-lt);
}

.file-fallback.primary-upload {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(155, 132, 85, .2);
}

.file-fallback span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-fallback input {
  width: 100%;
  min-height: 0;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.uppy-id-uploader {
  max-width: 100%;
  overflow: hidden;
}

.uppy-id-uploader .uppy-Dashboard-inner {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: var(--surface);
  border-color: var(--border-strong);
  border-radius: 4px;
  font-family: var(--sans);
}

.uppy-id-uploader .uppy-Dashboard-innerWrap,
.uppy-id-uploader .uppy-Dashboard-AddFiles,
.uppy-id-uploader .uppy-Dashboard-AddFilesPanel,
.uppy-id-uploader .uppy-Dashboard-AddFiles-list {
  max-width: 100% !important;
  min-width: 0 !important;
}

.uppy-id-uploader .uppy-Dashboard-AddFiles,
.uppy-id-uploader .uppy-Dashboard-AddFiles-title,
.uppy-id-uploader .uppy-Dashboard-note,
.uppy-id-uploader .uppy-DashboardTab-btn,
.uppy-id-uploader .uppy-Dashboard-AddFiles-info,
.uppy-id-uploader .uppy-Dashboard-browse {
  color: var(--text);
  background-color: transparent;
}

.uppy-id-uploader .uppy-Dashboard-browse {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uppy-id-uploader .uppy-DashboardTab-btn {
  background: var(--surface);
  border-color: var(--border-strong);
}

@media (max-width: 700px) {
  .uppy-id-uploader .uppy-Dashboard-inner {
    height: 112px !important;
  }

  .uppy-id-uploader .uppy-Dashboard-AddFiles-title {
    max-width: 100%;
    padding: 0 14px;
    font-size: 16px;
    line-height: 1.35;
    white-space: normal;
  }

  .uppy-id-uploader .uppy-Dashboard-AddFiles-list {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px;
  }

  .uppy-id-uploader .uppy-DashboardTab {
    width: 82px;
    min-width: 82px;
  }
}

.capture-file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.sumsub-frame {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 16px;
  min-height: 620px;
  overflow: hidden;
  background: var(--surface-strong);
}

.sumsub-frame iframe {
  border: 0;
  width: 100%;
}

.compliance-note,
label small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}

.id-progress {
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.captures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.capture {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-strong);
  position: relative;
}

.capture.is-checking {
  border-color: var(--gold);
}

.capture.is-rejected {
  border-color: var(--danger);
}

.capture.is-review {
  border-color: var(--warn);
}

.capture img {
  width: 72px;
  height: 48px;
  flex: 0 0 auto;
  display: block;
  aspect-ratio: auto;
  max-height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.capture span {
  display: block;
  padding: 0;
  color: var(--muted);
}

.capture:not(.is-empty) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px;
}

.capture-guest,
.capture-state {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.capture.is-checking span,
.capture.is-review span {
  color: var(--gold);
}

.capture.is-rejected span {
  color: var(--danger);
}

.capture > small {
  border-top: 0;
  color: var(--muted);
  display: block;
  flex: 1 1 100%;
  font-size: 12px;
  line-height: 1.45;
  padding: 0;
}

.capture.is-rejected > small {
  color: var(--danger);
}

.capture-placeholder {
  align-items: center;
  color: var(--text);
  display: flex;
  font-family: var(--mono);
  gap: 12px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  min-height: 44px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.capture.is-empty {
  min-height: 0;
}

.capture-placeholder small {
  color: var(--gold);
  font-size: 12px;
  margin-top: 0;
}

.remove-capture {
  border: 0;
  border-radius: 0;
  bottom: auto;
  font-size: 12px;
  margin-left: auto;
  min-height: 36px;
  padding: 8px 10px;
  position: static;
  right: auto;
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  padding: 16px;
  background: var(--sage-lt);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

/* Guardian declaration for minors: same weight as the registration consent, since it
   is required whenever the party is larger than one. */
.consent-guardian {
  margin-top: 10px;
}

/* Optional marketing opt-in: visually secondary to the required registration consent,
   so it can never be mistaken for a step the guest has to complete. */
.consent-optional {
  margin-top: 10px;
  background: transparent;
  border-style: dashed;
}

.consent-notice {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted, rgba(255, 255, 255, 0.72));
  margin: 0.75rem 0 0;
}

.signature-wrap {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

#signaturePad {
  width: 100%;
  height: 180px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #14201c;
  touch-action: none;
}

[data-theme="light"] #signaturePad {
  background: #fffdf8;
  border-color: #4e483e;
}

.form-actions {
  margin: 32px -30px 0;
  padding: 18px 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: rgba(8, 10, 8, 0.14);
}

[data-theme="light"] .form-actions {
  background: rgba(255, 252, 245, 0.36);
}

.status-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.status-panel h2 { margin-bottom: 18px; }

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.status-row span {
  color: var(--muted);
  flex: 1 1 auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  min-width: 0;
  overflow: visible;
  text-transform: uppercase;
  white-space: normal;
}

.status-row strong { color: var(--muted); }
.status-row strong.is-needed,
.status-row strong.is-review { color: var(--warn); }
.status-row strong.is-waiting { color: var(--muted); }
.status-row strong.is-done { color: var(--sage-bright); }

.success-state.is-review .success-mark {
  background: var(--warn);
  color: #1a120c;
}

#submitStatus {
  margin-top: 18px;
  line-height: 1.55;
}

.success-state {
  padding: 58px 30px;
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  background: var(--gold);
  color: var(--void);
  font-size: 31px;
  font-weight: 900;
}

.success-state p:not(.success-mark) {
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--muted);
}

.success-actions {
  justify-content: center;
  margin-top: 24px;
}

.confirm-summary {
  width: min(520px, 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.confirm-summary div {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  background: var(--surface-strong);
  text-align: left;
}

.confirm-summary dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.confirm-summary dd {
  margin: 6px 0 0;
  color: var(--white);
  font-weight: 600;
}

.restaurant-success-panel {
  width: min(560px, 100%);
  margin: 22px auto 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--border));
  border-radius: 4px;
  background: color-mix(in srgb, var(--gold) 12%, var(--surface-strong));
  text-align: left;
}

.restaurant-success-panel .eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
}

.restaurant-success-panel h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.restaurant-success-panel p:not(.eyebrow) {
  margin: 10px 0 0;
  max-width: none;
}

.restaurant-success-panel .text-button {
  margin-top: 14px;
}

.staff-login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.staff-login-card {
  width: min(460px, 100%);
  padding: 30px;
}

.staff-login-card h1 {
  margin: 4px 0 10px;
  font-size: clamp(38px, 6vw, 58px);
}

.staff-login-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 0;
}

.staff-login-card .text-button {
  margin-top: 16px;
}

.login-logo {
  margin-bottom: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.metric strong {
  font-family: var(--display);
  font-size: 35px;
  line-height: 1;
  color: var(--gold-text);
}

.toolbar {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.toolbar label {
  width: min(300px, 100%);
}

.report-panel {
  margin-top: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.report-panel h2 {
  margin: 4px 0 0;
  font-size: 19px;
  color: var(--ink);
}

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

.settings-panel {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.settings-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.settings-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 23px;
}

.settings-form {
  padding: 22px;
  display: grid;
  gap: 22px;
}

.settings-form fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.settings-form legend {
  padding: 0 8px;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

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

.schedule-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.schedule-block {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.schedule-default {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  gap: 12px;
}

.schedule-day {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  gap: 10px;
}

.schedule-day strong {
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

.schedule-closed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.schedule-closed input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  flex: 0 0 18px;
}

.email-chip-input {
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.email-chip-list {
  display: contents;
}

.email-chip {
  min-height: 32px;
  padding: 0 9px;
  gap: 8px;
  border-color: var(--sage);
  background: var(--sage-lt);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.email-chip-input input {
  min-width: 240px;
  flex: 1;
  border: 0;
  min-height: 36px;
  padding: 0 6px;
  background: transparent;
}

.team-list {
  padding: 0 22px 22px;
  display: grid;
  gap: 10px;
}

.team-row {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.team-row strong,
.team-row span {
  display: block;
}

.team-row strong {
  color: var(--cream);
}

.review-modal[hidden] {
  display: none;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 8, 0.72);
  backdrop-filter: blur(10px);
}

.review-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 32px 90px var(--shadow);
}

.manual-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
}

.manual-review-card {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--sage-lt);
}

.manual-review-card strong {
  color: var(--cream);
  font-size: 17px;
}

.manual-review-card span {
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.table-panel {
  margin-top: 14px;
  overflow-x: auto;
}

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

th, td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--sage);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--sage-lt);
}

[data-theme="light"] th {
  background: rgba(74, 122, 85, 0.085);
}

td strong,
td span {
  display: block;
}

td strong {
  color: var(--cream);
  font-weight: 600;
}

td span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .15em;
  font-weight: 600;
}

.pill.ready {
  color: var(--sage-bright);
  background: var(--sage-lt);
  border: 1px solid rgba(122, 150, 128, 0.22);
}

.pill.incomplete {
  color: var(--warn);
  background: rgba(212, 148, 106, 0.12);
  border: 1px solid rgba(212, 148, 106, 0.2);
}

.attention-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.attention-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.attention-badge.danger {
  color: #9a3f22;
  background: #f8e3de;
  border: 1px solid #b94e35;
}

.attention-badge.warn {
  color: #8c651b;
  background: #fff5d8;
  border: 1px solid #c89f45;
}

.file-cell {
  display: table-cell;
}

.file-cell a { white-space: nowrap; }

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

.status-actions {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.status-cell .mark-ready-button,
.status-cell .edit-id-button,
.file-cell .card-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 9px;
}

.delete-submission-button {
  align-items: center;
  background: rgba(214, 111, 95, 0.12);
  border: 1px solid color-mix(in srgb, var(--danger) 48%, transparent);
  border-radius: 999px;
  color: var(--danger);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
  width: 30px;
}

.delete-submission-button:hover {
  background: rgba(214, 111, 95, 0.2);
  border-color: var(--danger);
}

.delete-submission-button:disabled {
  cursor: wait;
  opacity: .62;
  width: auto;
  padding: 0 10px;
}

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

.empty-state,
.staff-note {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 24px;
}

.staff-note {
  margin: 14px 2px 0;
  font-size: 13px;
}

@media (max-width: 860px) {
  .app-shell,
  .staff-shell {
    width: 100%;
    padding: 0;
    grid-template-columns: 1fr;
  }

  .panel,
  .status-panel,
  .toolbar,
  .table-panel,
  .settings-panel,
  .staff-header {
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .topbar,
  .staff-header {
    padding: 22px 18px;
    align-items: flex-start;
  }

  .topbar-controls {
    align-items: stretch;
  }

  .brand-lockup img,
  .login-logo {
    width: 110px;
  }

  form { padding: 24px 18px 0; }
  .grid,
  .settings-grid { grid-template-columns: 1fr; }
  .manual-review-grid { grid-template-columns: 1fr; }

  .form-actions {
    margin-left: -18px;
    margin-right: -18px;
    padding: 14px 18px;
  }

  .step {
    flex-direction: column;
    gap: 5px;
    padding: 10px 4px;
    min-height: 70px;
  }

  .step strong {
    width: auto;
    min-width: 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0;
  }

  .confirm-summary { grid-template-columns: 1fr; }
  .status-panel { position: static; }

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

  .toolbar {
    margin: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar label { width: 100%; }
  .phone-field { grid-template-columns: 1fr; }
  .staff-note { margin: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 13px; }

  .topbar,
  .staff-header {
    display: grid;
  }

  .topbar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .language {
    flex: 1;
    min-width: 120px;
  }

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

  .form-actions button,
  .form-actions [type="submit"] {
    width: 100%;
    padding: 0 10px;
  }

  #submitButton {
    grid-column: 1 / -1;
  }
}

/* ─── In-house multi-night booking (check-in success) ──────────────── */
.inhouse-booking-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--gold-border, rgba(157,138,95,0.3));
  border-radius: 12px;
  background: var(--gold-lt, rgba(157,138,95,0.08));
  text-align: left;
}
.inhouse-booking-panel h3 { margin: 4px 0 6px; }
.inhouse-booking-panel .eyebrow { color: var(--gold-text, #d4bd7a); }
.inhouse-night {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border, rgba(157,138,95,0.16));
}
.inhouse-night span { font-size: 0.92rem; }
.inhouse-night select { min-width: 130px; }
#inHouseSubmit { margin-top: 14px; width: 100%; }
#inHouseStatus { margin-top: 10px; }

/* Preview guest_hotel_first (UX fix 4a). Matches only when the flag is on. */
[data-hotel-first="true"] .brand-lockup .hotel-logo {
  width: auto;
  max-width: min(220px, 60vw);
  max-height: 72px;
  object-fit: contain;
  filter: none;
}

[data-hotel-first="true"] .desa-powered-by {
  margin: 8px auto 32px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* guest_stay_summary only. Absent from the page when that preview is off. */
.stay-summary {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--gold-lt);
}

.stay-summary-text {
  display: inline;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.stay-summary-change {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
  min-height: 32px;
  padding: 0 12px;
  background: transparent;
  border-color: var(--border-strong);
  color: var(--gold-text);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Preview pages marked "pending" by the server: hide only what the preview
   is about to change until the settings arrive, so the old version never
   flashes. Shown after 3 s regardless, so nothing can stay hidden. */
@keyframes preview-reveal { to { visibility: visible; } }

.reading-questions {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
}
.reading-questions .reading-final,
.reading-questions .reading-dob {
  margin: 0;
}
.reading-language {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--gold-border);
  background: var(--gold-lt);
}
.reading-language span {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--gold-text);
}
.reading-language select {
  font-size: 16px;
  min-height: 48px;
}
.reading-city-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.reading-city-results button {
  width: 100%;
  text-align: left;
}

[data-hotel-first="pending"] .brand-lockup > :not(.topbar-controls),
[data-guest-flow="pending"] .steps,
[data-guest-flow="pending"] #checkinForm {
  visibility: hidden;
  animation: preview-reveal 0s linear 3s forwards;
}

/* guest_passport_film only. The card is created in script when that preview is on. */
.passport-film {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
}

.passport-film[hidden] {
  display: none !important;
}

.passport-film-stage {
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-strong);
}

.passport-film.is-done .passport-film-stage {
  border-color: #1f8a57;
  box-shadow: 0 0 0 1px #1f8a57;
}

.passport-film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-strong);
}

.passport-film-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1f8a57;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.passport-film-tick[hidden] {
  display: none !important;
}

.passport-film-steps {
  list-style: none;
  width: min(100%, 22rem);
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 8px;
}

.passport-film-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

.passport-film-steps li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.passport-film-steps li[data-state="active"] {
  color: var(--text);
  font-weight: 600;
}

.passport-film-steps li[data-state="active"]::before {
  border-color: var(--gold);
  background: var(--gold-lt);
}

.passport-film-steps li[data-state="done"] {
  color: var(--text);
}

.passport-film-steps li[data-state="done"]::before {
  content: "\2713";
  display: grid;
  place-items: center;
  border-color: #1f8a57;
  background: #1f8a57;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.passport-film.is-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  margin: 0;
  padding: 28px 20px 32px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: rgba(10, 16, 14, 0.88);
  overflow: auto;
}

/* The film is a full-screen waiting screen (founder, 2026-10-19): solid,
   page scroll locked while it shows. */
html.passport-film-open,
html.passport-film-open body {
  overflow: hidden;
}

.passport-film.is-overlay {
  background: var(--void, #07110b);
}

/* phone_country_search only. The class is added when that preview is on,
   so with the flag off these rules match nothing. */
.phone-country-search {
  position: relative;
  min-width: 0;
}

.phone-country-search .phone-country-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.phone-country-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--field);
  color: var(--field-ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}

.phone-country-box-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-country-chevron {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.phone-country-sheet {
  position: fixed;
  z-index: 40;
  inset: 0;
}

.phone-country-sheet[hidden] {
  display: none !important;
}

.phone-country-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  cursor: default;
}

.phone-country-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(420px, calc(100vh - 24px));
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 12px 32px var(--shadow);
}

.phone-country-search-label {
  display: block;
  margin: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.phone-country-panel input {
  height: 45px;
  min-height: 45px;
}

.phone-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}

.phone-country-group {
  padding: 8px 12px 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.phone-country-divider {
  height: 1px;
  margin: 6px 12px;
  background: var(--border-strong);
}

.phone-country-option {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 2px;
  color: var(--field-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.phone-country-option[aria-selected="true"] {
  background: var(--gold-lt);
}

.phone-country-sheet.is-phone {
  display: flex;
  align-items: flex-end;
}

.phone-country-sheet.is-phone .phone-country-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.phone-country-sheet.is-phone .phone-country-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 78vh;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
}

@media (max-width: 700px) {
  .phone-country-sheet.is-phone .phone-country-panel {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

input.is-calculated,
input[readonly] {
  background: transparent;
  border-style: dashed;
  color: var(--text);
  cursor: default;
}

.field-error {
  color: #ffb4a8;
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 8px;
}

[data-theme="light"] .field-error {
  color: #8c1f1f;
}

.field-error[hidden] { display: none !important; }

.action-error {
  flex-basis: 100%;
  width: 100%;
  margin: 0 0 8px;
}

.staff-login-link {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.date-display { color: var(--text); }

.review-summary {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-strong);
}

.review-summary .review-lead { margin: 0 0 10px; color: var(--text); }

.review-summary dl { display: grid; gap: 8px; margin: 0; }

.review-summary div { display: grid; grid-template-columns: minmax(7rem, 34%) 1fr; gap: 8px; }

.review-summary dt { color: var(--muted); }

.review-summary dd { margin: 0; color: var(--white); }

.house-rules {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}

.house-rules summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--white);
}

.house-rules ul { margin: 8px 0; padding-left: 1.2rem; }

.house-rules li,
.house-rules p { color: var(--text); font-size: 15px; }

.passport-film-progress {
  margin: 0;
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.passport-film-error { text-align: center; max-width: 28rem; }

.passport-film-cancel {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.passport-film.is-overlay .passport-film-cancel {
  color: #f7f4ee;
  border-color: #f7f4ee;
  background: transparent;
}

@media (max-width: 560px) {
  .action-error { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .step { min-width: 0; padding: 8px 2px; overflow: visible; }
  .step strong { min-width: 0; width: auto; font-size: 12px; letter-spacing: 0; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .topbar { padding: 16px 14px; }
  form { padding-left: 14px; padding-right: 14px; }
  .form-actions { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  #signaturePad { height: 150px; }
  .review-summary div { grid-template-columns: 1fr; gap: 2px; }
  .capture img { max-height: 96px; }
}

/* A saved hotel logo is a picture, not the white Desa One wordmark. */
html[data-hotel-brand-css="true"] .brand-lockup img.hotel-logo,
html[data-theme="light"][data-hotel-brand-css="true"] .brand-lockup img.hotel-logo {
  filter: none;
}

.nights-plain {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}

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

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

.take-passport {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: auto;
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--hotel-btn, var(--gold));
  color: var(--hotel-btn-ink, var(--void));
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.take-passport input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

html[data-look="canopy"] body label.take-passport > span,
.take-passport > span {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
}

.uppy-id-uploader .uppy-Dashboard-inner {
  height: 132px !important;
}

.guest-page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 24px auto 32px;
}

.guest-staff-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compliance-details {
  display: inline;
}

.compliance-details summary {
  display: inline;
  cursor: pointer;
  color: var(--gold-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .status-panel { display: none; }

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

  .take-passport,
  #uploadIdPhoto {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
  }

  .uppy-id-uploader .uppy-Dashboard-inner {
    height: 96px !important;
  }
}

