:root {
  --i: #19324a;
  --m: #66788a;
  --b: #2878a8;
  --l: #d9e4eb;
}
* {
  box-sizing: border-box;
}
body {
  max-width: 1120px;
  margin: auto;
  padding: 32px 20px;
  background: #f5f8fa;
  color: var(--i);
  font: 16px system-ui;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
h1 {
  margin: 5px 0;
}
section {
  background: #fff;
  border: 1px solid var(--l);
  border-radius: 18px;
  padding: 25px;
}
.login {
  max-width: 480px;
  margin: 8vh auto;
}
label {
  display: block;
  font-weight: 700;
  margin: 15px 0 6px;
}
input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c7d6df;
  border-radius: 9px;
  font: inherit;
}
button,
a {
  display: inline-block;
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--b);
  color: #fff;
  font: 700 0.95rem system-ui;
  text-decoration: none;
  cursor: pointer;
}
.secondary,
.close {
  background: #eaf1f5;
  color: var(--i);
}
.hidden {
  display: none;
}
.dashboard-block {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--l);
}
.cache-info {
  color: var(--m);
  margin: 8px 0 14px;
}
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
  font-size: 0.78rem;
}
.registered {
  background: #ddf4e7;
  color: #17643a;
}
.pending {
  background: #fde4e4;
  color: #a22e2e;
}
.toolbar {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr auto;
  gap: 13px;
  align-items: end;
  margin: 20px 0;
}
.quick {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.quick button {
  background: #fff;
  color: var(--i);
  border: 1px solid var(--l);
  padding: 7px 12px;
}
.quick .active {
  background: #eef7fb;
}
.summary {
  display: flex;
  justify-content: space-between;
  color: var(--m);
}
.table {
  overflow: auto;
  border: 1px solid var(--l);
  border-radius: 12px;
}
table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}
th {
  text-align: left;
  background: #f7fafc;
  padding: 12px 15px;
  color: var(--m);
  font-size: 0.75rem;
  text-transform: uppercase;
}
td {
  padding: 15px;
  border-top: 1px solid var(--l);
  vertical-align: top;
}
.guest-row {
  cursor: pointer;
}
.guest-row:hover,
.guest-row:focus {
  background: #eef7fb;
  outline: 2px solid var(--b);
  outline-offset: -2px;
}
.empty {
  text-align: center;
  color: var(--m);
  padding: 35px;
}
.error {
  color: #b74646;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  box-shadow: 0 18px 50px #19324a55;
}
dialog::backdrop {
  background: #19324a77;
}
.dialog-content {
  padding: 25px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.dialog-top h2 {
  margin: 0;
}
.details {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px 18px;
  margin: 22px 0 0;
}
.details dt {
  font-weight: 700;
  color: var(--m);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .top {
    display: block;
  }
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar label:first-child {
    grid-column: 1/-1;
  }
  .details {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .details dd {
    margin-bottom: 12px;
  }
}
.tab-panel[hidden] {
  display: none;
}
.admin-heading {
  margin-bottom: 22px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--l);
}
.tab {
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--m);
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
}
.tab[aria-selected="true"] {
  color: var(--b);
  background: #eef7fb;
  border-bottom-color: var(--b);
}
.tab:focus-visible {
  outline: 3px solid #bde3f3;
  outline-offset: 2px;
}
.tab-panel .dashboard-block {
  padding-bottom: 4px;
  margin-bottom: 0;
  border-bottom: 0;
}
.tab-panel .summary {
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.tab-panel .cache-info {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .tabs {
    overflow-x: auto;
  }
  .tab {
    flex: 1;
    white-space: nowrap;
  }
}
/* Reception dashboard theme */
:root {
  --i: #f7fbff;
  --m: #91afd0;
  --b: #13c796;
  --l: #203852;
  --navy: #071a31;
  --panel: #12243a;
  --panel-2: #0b1c33;
  --danger: #ff5e78;
}
body {
  max-width: 1320px;
  background: var(--navy);
  color: var(--i);
  padding: 28px 24px 48px;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--l);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #063d48;
  color: #21d6aa;
  font-size: 1.35rem;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 190px;
}
@media (max-width: 720px) {
  .brand-logo {
    height: 28px;
    max-width: 150px;
  }
}
.brand h1 {
  font-size: 1.25rem;
  margin: 0;
}
.brand p {
  color: var(--m);
  font-size: 0.82rem;
  margin: 3px 0 0;
}
.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.login {
  background: var(--panel);
  border: 1px solid var(--l);
  border-radius: 18px;
  padding: 28px;
}
.login input,
.toolbar input {
  background: var(--panel-2);
  border-color: #2a435f;
  color: var(--i);
}
button,
a {
  background: var(--b);
  color: #03261e;
}
.secondary,
.close {
  background: #1c3048;
  color: #d8e8f8;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}
.tabs {
  width: max-content;
  margin: 0;
  padding: 5px;
  background: #15263d;
  border: 1px solid #2a4059;
  border-radius: 13px;
  gap: 4px;
}
.tab {
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  color: var(--m);
}
.tab[aria-selected="true"] {
  background: var(--b);
  color: #03261e;
  border: 0;
}
.current-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 24px 0;
}
.current-summary-bar h2 {
  margin: 0 0 7px;
}
.cache-info {
  margin: 0;
  color: var(--m);
  font-size: 0.86rem;
}
.current-actions,
.status-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-filters {
  padding: 5px;
  background: #15263d;
  border: 1px solid #2a4059;
  border-radius: 13px;
}
.filter-button {
  background: transparent;
  color: var(--m);
  padding: 9px 14px;
}
.filter-button.active {
  background: var(--b);
  color: #03261e;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr);
  gap: 34px;
  align-items: start;
}
.guest-table-shell {
  min-width: 0;
}
.table {
  border-color: var(--l);
  background: transparent;
}
.current-table {
  min-width: 720px;
}
.current-table th {
  background: transparent;
  border-bottom: 1px solid var(--l);
  color: var(--m);
  padding: 13px 17px;
}
.current-table td {
  border-top: 1px solid #18314b;
  padding: 17px;
}
.current-guest-row {
  cursor: pointer;
}
.current-guest-row:hover,
.current-guest-row:focus,
.current-guest-row.selected {
  background: #102943;
  outline: 0;
}
.guest-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #064847;
  color: #22d6ad;
  border: 1px solid #08736c;
  font-weight: 800;
  font-size: 0.8rem;
}
.avatar.pending-avatar {
  background: #421f38;
  color: #ff6882;
  border-color: #81314c;
}
.guest-primary {
  display: block;
  color: #fff;
}
.guest-secondary {
  display: block;
  color: var(--m);
  font-size: 0.78rem;
  margin-top: 3px;
}
.booking-number {
  color: var(--m);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
}
.status-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}
.registered {
  background: #063f3e;
  color: #22d6ad;
  border: 1px solid #08736c;
}
.pending {
  background: #421f38;
  color: #ff6882;
  border: 1px solid #81314c;
}
.guest-detail {
  position: sticky;
  top: 22px;
  background: var(--panel);
  border: 1px solid #2a4059;
  border-radius: 18px;
  padding: 26px;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 17px;
  border-bottom: 1px solid #30445b;
  color: #20d4a7;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-card {
  background: var(--panel-2);
  border-radius: 14px;
  padding: 18px;
  margin-top: 19px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  color: var(--m);
  font-size: 0.87rem;
}
.detail-row strong {
  color: #fff;
  text-align: right;
}
.detail-status {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #213a55;
}
.detail-note {
  color: var(--m);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 18px 0 0;
}
.history-panel {
  background: var(--panel);
  border: 1px solid #2a4059;
  border-radius: 18px;
  padding: 24px;
}
.history-panel .top h2 {
  margin-top: 0;
}
.quick button {
  background: var(--panel-2);
  color: var(--m);
  border-color: #2a4059;
}
.quick .active {
  background: #12423f;
  color: #22d6ad;
}
.history-panel th {
  background: #0e2036;
}
.history-panel td {
  border-color: #294158;
}
.history-panel .guest-row:hover,
.history-panel .guest-row:focus {
  background: #102943;
}
.empty {
  color: var(--m);
}
dialog {
  background: var(--panel);
  color: var(--i);
}
dialog::backdrop {
  background: #020b16cc;
}
.details dt {
  color: var(--m);
}
.error {
  color: #ff8094;
}
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .guest-detail {
    position: static;
  }
  .current-summary-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .current-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  body {
    padding: 18px 14px 36px;
  }
  .app-header {
    align-items: flex-start;
  }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-heading {
    align-items: stretch;
    gap: 12px;
  }
  .tabs {
    width: 100%;
  }
  .current-actions,
  .status-filters {
    width: 100%;
  }
  .status-filters {
    overflow-x: auto;
  }
  .filter-button {
    flex: 1;
    white-space: nowrap;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .toolbar label:first-child {
    grid-column: auto;
  }
}
/* Theme tokens. The current theme mirrors the existing dashboard values. */
body.theme-current {
  --theme-page: #071a31;
  --theme-page-text: #f7fbff;
  --theme-surface: #12243a;
  --theme-surface-2: #0b1c33;
  --theme-surface-text: #f7fbff;
  --theme-muted: #91afd0;
  --theme-border: #203852;
  --theme-border-strong: #2a4059;
  --theme-row-border: #18314b;
  --theme-row-hover: #102943;
  --theme-control: #15263d;
  --theme-table-head: transparent;
  --theme-accent: #13c796;
  --theme-accent-ink: #03261e;
  --theme-secondary: #1c3048;
  --theme-secondary-text: #d8e8f8;
  --theme-input: #0b1c33;
  --theme-workspace: transparent;
  --theme-workspace-border: transparent;
  --theme-workspace-border-width: 0px;
  --theme-workspace-padding: 0px;
  --theme-workspace-radius: 0px;
  --theme-green-bg: #063f3e;
  --theme-green: #22d6ad;
  --theme-green-border: #08736c;
  --theme-red-bg: #421f38;
  --theme-red: #ff6882;
  --theme-red-border: #81314c;
  --danger-icon-ink: #421f38;
  --theme-shadow: none;
}
body.theme-light {
  --theme-page: #f2f6f4;
  --theme-page-text: #14283d;
  --theme-surface: #fff;
  --theme-surface-2: #f4f8f6;
  --theme-surface-text: #14283d;
  --theme-muted: #64788b;
  --theme-border: #d7e3df;
  --theme-border-strong: #cbdad5;
  --theme-row-border: #e1ebe7;
  --theme-row-hover: #eaf7f2;
  --theme-control: #e7efec;
  --theme-table-head: #f5f8f7;
  --theme-accent: #079f73;
  --theme-accent-ink: #fff;
  --theme-secondary: #e4ece9;
  --theme-secondary-text: #243d50;
  --theme-input: #fff;
  --theme-workspace: #fff;
  --theme-workspace-border: #d7e3df;
  --theme-workspace-border-width: 1px;
  --theme-workspace-padding: 24px;
  --theme-workspace-radius: 18px;
  --theme-green-bg: #dcf7ed;
  --theme-green: #087b5d;
  --theme-green-border: #a7dfce;
  --theme-red-bg: #fff0ed;
  --theme-red: #c64b3c;
  --theme-red-border: #f2b9b1;
  --danger-icon-ink: #fff;
  --theme-shadow: 0 16px 42px #2e554612;
}
body.theme-sand {
  --theme-page: #f3eee4;
  --theme-page-text: #352f28;
  --theme-surface: #fffaf1;
  --theme-surface-2: #f4ead9;
  --theme-surface-text: #352f28;
  --theme-muted: #786e62;
  --theme-border: #ded1bc;
  --theme-border-strong: #cfbfa6;
  --theme-row-border: #e7dcc9;
  --theme-row-hover: #f5ead7;
  --theme-control: #e7dcc8;
  --theme-table-head: #f5ecdd;
  --theme-accent: #2d7d62;
  --theme-accent-ink: #fff;
  --theme-secondary: #e6dac5;
  --theme-secondary-text: #41392f;
  --theme-input: #fffdf8;
  --theme-workspace: #fffaf1;
  --theme-workspace-border: #d9cbb4;
  --theme-workspace-border-width: 1px;
  --theme-workspace-padding: 24px;
  --theme-workspace-radius: 16px;
  --theme-green-bg: #dceee5;
  --theme-green: #246f58;
  --theme-green-border: #a9d2c2;
  --theme-red-bg: #f8e2d9;
  --theme-red: #b64d39;
  --theme-red-border: #e2ae9f;
  --danger-icon-ink: #fff;
  --theme-shadow: 0 18px 48px #6b543418;
}
body.theme-terracotta {
  --theme-page: #faeee6;
  --theme-page-text: #3d2922;
  --theme-surface: #fff9f5;
  --theme-surface-2: #f7e8df;
  --theme-surface-text: #3d2922;
  --theme-muted: #816b60;
  --theme-border: #e7cfc1;
  --theme-border-strong: #d9b9a7;
  --theme-row-border: #eedbd0;
  --theme-row-hover: #fae4d8;
  --theme-control: #ead6ca;
  --theme-table-head: #f8ebe4;
  --theme-accent: #c96342;
  --theme-accent-ink: #fff;
  --theme-secondary: #ecd9ce;
  --theme-secondary-text: #54382e;
  --theme-input: #fffdfa;
  --theme-workspace: #fff9f5;
  --theme-workspace-border: #dfc3b3;
  --theme-workspace-border-width: 1px;
  --theme-workspace-padding: 24px;
  --theme-workspace-radius: 24px;
  --theme-green-bg: #deeee4;
  --theme-green: #35745b;
  --theme-green-border: #aed1bd;
  --theme-red-bg: #f8ddd7;
  --theme-red: #b9493d;
  --theme-red-border: #dfa69d;
  --danger-icon-ink: #fff;
  --theme-shadow: 0 20px 50px #8d4c2d1b;
}
body {
  background: var(--theme-page);
  color: var(--theme-page-text);
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.app-header {
  color: var(--theme-page-text);
  border-color: var(--theme-border);
}
.brand-icon {
  background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
  color: var(--theme-accent);
}
.brand p,
.cache-info,
.guest-secondary,
.booking-number,
.detail-row,
.detail-note,
.details dt,
.empty,
.summary {
  color: var(--theme-muted);
}
button,
a {
  background: var(--theme-accent);
  color: var(--theme-accent-ink);
}
.secondary,
.close {
  background: var(--theme-secondary);
  color: var(--theme-secondary-text);
}
.login,
.history-panel,
.guest-detail,
dialog {
  background: var(--theme-surface);
  color: var(--theme-surface-text);
  border-color: var(--theme-border-strong);
  box-shadow: var(--theme-shadow);
}
.login input,
.toolbar input {
  background: var(--theme-input);
  color: var(--theme-surface-text);
  border-color: var(--theme-border-strong);
}
.tabs,
.status-filters {
  background: var(--theme-control);
  border-color: var(--theme-border-strong);
}
.tab,
.filter-button {
  color: var(--theme-muted);
}
.tab[aria-selected="true"],
.filter-button.active {
  background: var(--theme-accent);
  color: var(--theme-accent-ink);
}
#currentPanel {
  background: var(--theme-workspace);
  color: var(--theme-surface-text);
  border: var(--theme-workspace-border-width) solid
    var(--theme-workspace-border);
  border-radius: var(--theme-workspace-radius);
  padding: var(--theme-workspace-padding);
  box-shadow: var(--theme-shadow);
}
.table {
  border-color: var(--theme-border);
}
.current-table th,
.history-panel th {
  background: var(--theme-table-head);
  color: var(--theme-muted);
  border-color: var(--theme-border);
}
.current-table td,
.history-panel td {
  border-color: var(--theme-row-border);
}
.current-guest-row:hover,
.current-guest-row:focus,
.current-guest-row.selected,
.history-panel .guest-row:hover,
.history-panel .guest-row:focus {
  background: var(--theme-row-hover);
}
.guest-primary,
.detail-row strong {
  color: var(--theme-surface-text);
}
.detail-card {
  background: var(--theme-surface-2);
}
.detail-heading,
.detail-status {
  border-color: var(--theme-border-strong);
}
.detail-heading {
  color: var(--theme-accent);
}
.avatar,
.registered {
  background: var(--theme-green-bg);
  color: var(--theme-green);
  border-color: var(--theme-green-border);
}
.avatar.pending-avatar,
.pending {
  background: var(--theme-red-bg);
  color: var(--theme-red);
  border-color: var(--theme-red-border);
}
.quick button {
  background: var(--theme-surface-2);
  color: var(--theme-muted);
  border-color: var(--theme-border-strong);
}
.quick .active {
  background: var(--theme-green-bg);
  color: var(--theme-green);
}
.theme-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.theme-menu-button svg {
  width: 16px;
  height: 16px;
}
.theme-dialog {
  max-width: min(760px, calc(100vw - 32px));
}
.theme-dialog .dialog-content {
  padding: 28px;
}
.theme-dialog-intro {
  color: var(--theme-muted);
  margin: 6px 0 22px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.theme-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--theme-surface-2);
  color: var(--theme-surface-text);
  border: 1px solid var(--theme-border-strong);
  padding: 14px;
  border-radius: 13px;
}
.theme-card:hover,
.theme-card:focus-visible {
  border-color: var(--theme-accent);
  outline: 0;
}
.theme-card[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--theme-accent);
}
.theme-card-copy strong,
.theme-card-copy small {
  display: block;
}
.theme-card-copy small {
  color: var(--theme-muted);
  font-weight: 500;
  margin-top: 3px;
}
.theme-check {
  color: var(--theme-accent);
  font-size: 1.1rem;
}
.theme-palette {
  display: flex;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #ffffff24;
}
.theme-palette i {
  flex: 1;
}
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #06111dcc;
}
.onboarding-overlay.hidden {
  display: none;
}
.onboarding-card {
  width: min(520px, 100%);
  background: var(--theme-surface);
  color: var(--theme-surface-text);
  border: 1px solid var(--theme-border-strong);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 28px 90px #0009;
  text-align: center;
}
.onboarding-card h2 {
  margin: 0 0 8px;
}
.onboarding-card p {
  color: var(--theme-muted);
  line-height: 1.55;
}
.mode-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.mode-choice {
  background: var(--theme-surface-2);
  color: var(--theme-surface-text);
  border: 1px solid var(--theme-border-strong);
  border-radius: 15px;
  padding: 18px;
}
.mode-choice:hover,
.mode-choice:focus-visible {
  border-color: var(--theme-accent);
  outline: 0;
}
.mode-preview {
  display: block;
  height: 64px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #ffffff22;
}
.mode-preview.light {
  background: linear-gradient(135deg, #f2f6f4 0 45%, #fff 45% 75%, #079f73 75%);
}
.mode-preview.dark {
  background: linear-gradient(
    135deg,
    #071a31 0 45%,
    #12243a 45% 75%,
    #13c796 75%
  );
}
.guide-callout {
  position: fixed;
  z-index: 1001;
  top: 92px;
  right: 150px;
  width: min(360px, calc(100vw - 32px));
  text-align: left;
}
.guide-callout::before {
  content: "";
  position: absolute;
  right: 34px;
  top: -12px;
  width: 22px;
  height: 22px;
  background: var(--theme-surface);
  border-left: 1px solid var(--theme-border-strong);
  border-top: 1px solid var(--theme-border-strong);
  transform: rotate(45deg);
}
.guide-callout button {
  margin-top: 8px;
}
.theme-guide-target {
  position: relative;
  z-index: 1002;
  box-shadow:
    0 0 0 5px #fff,
    0 0 0 9px var(--theme-accent);
  animation: themePulse 1.2s ease-in-out infinite alternate;
}
@keyframes themePulse {
  to {
    box-shadow:
      0 0 0 5px #fff,
      0 0 0 13px color-mix(in srgb, var(--theme-accent) 55%, transparent);
  }
}
@media (max-width: 720px) {
  .header-actions {
    width: 100%;
    align-items: stretch;
  }
  .app-header {
    flex-direction: column;
  }
  .theme-grid {
    grid-template-columns: 1fr;
  }
  .guide-callout {
    top: 150px;
    right: 16px;
  }
  .mode-choices {
    grid-template-columns: 1fr;
  }
}
.theme-check {
  opacity: 0;
}
.theme-card[aria-checked="true"] .theme-check {
  opacity: 1;
}
.view-mode-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-mode-button svg {
  width: 16px;
  height: 16px;
}
.arrivals-overview {
  display: none;
}
.dashboard-arrivals .current-summary-bar {
  display: none;
}
.dashboard-arrivals .arrivals-overview {
  display: block;
}
.arrivals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0;
}
.arrivals-header h2 {
  font-size: 1.65rem;
  margin: 0 0 4px;
}
.arrivals-header p {
  color: var(--theme-muted);
  margin: 0;
}
.arrivals-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.arrival-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--theme-border-strong);
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--theme-surface-text);
  font-weight: 700;
  box-shadow: var(--theme-shadow);
}
.arrival-date svg {
  width: 16px;
  color: var(--theme-accent);
}
.arrival-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.arrival-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 20px;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: var(--theme-surface);
  color: var(--theme-surface-text);
  box-shadow: var(--theme-shadow);
}
.arrival-stat:hover,
.arrival-stat:focus-visible,
.arrival-stat.active {
  border-color: var(--theme-accent);
  outline: 0;
}
.arrival-stat-label {
  display: block;
  color: var(--theme-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.arrival-stat-value {
  display: block;
  margin-top: 5px;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
}
.arrival-stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--theme-green-bg);
  color: var(--theme-green);
  font-size: 1.25rem;
}
.arrival-stat.pending-card .arrival-stat-icon {
  background: var(--theme-red-bg);
  color: var(--theme-red);
}
.dashboard-arrivals #currentPanel {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.dashboard-arrivals .dashboard-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}
.dashboard-arrivals .guest-table-shell,
.dashboard-arrivals .guest-detail {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-shadow);
  overflow: hidden;
}
.dashboard-arrivals .guest-detail {
  position: static;
}
.dashboard-arrivals .table {
  border: 0;
  border-radius: 0;
}
.dashboard-arrivals .current-table th {
  padding: 15px 24px;
}
.dashboard-arrivals .current-table td {
  padding: 17px 24px;
}
@media (max-width: 820px) {
  .arrival-stats {
    grid-template-columns: 1fr;
  }
  .arrivals-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .arrivals-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .view-mode-button {
    width: 100%;
    justify-content: center;
  }
}
.dashboard-arrivals {
  background: #f7f9fc;
  color: #0b1f3a;
}
.dashboard-arrivals .app-header {
  border-color: #dce3ec;
  color: #0b1f3a;
}
.dashboard-arrivals .brand p {
  color: #5d718d;
}
.dashboard-arrivals #currentPanel {
  color: #0b1f3a;
}
.dashboard-arrivals .dashboard-grid {
  display: none;
}
.arrivals-overview {
  color: #0b1f3a;
}
.arrivals-header {
  margin: 30px 0;
}
.arrivals-header h2 {
  font-size: 1.7rem;
  color: #081c38;
}
.arrivals-header p {
  color: #536987;
}
.arrival-date {
  background: #fff;
  border-color: #dbe3ed;
  color: #172c49;
  box-shadow: 0 2px 5px #17314f0d;
}
.arrival-refresh {
  background: #009c72;
  color: #fff;
  box-shadow: 0 6px 13px #008c6726;
}
.arrival-stats {
  gap: 20px;
  margin-bottom: 32px;
}
.arrival-stat {
  min-height: 98px;
  background: #fff;
  border-color: #dbe3ed;
  color: #0b1f3a;
  box-shadow: 0 2px 4px #17314f0b;
  cursor: default;
}
.arrival-stat:hover {
  border-color: #dbe3ed;
}
.arrival-stat-label {
  color: #617493;
  font-weight: 800;
}
.arrival-stat-value {
  font-size: 2rem;
}
.arrival-stat-meta {
  display: inline-block;
  margin-left: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2faef;
  color: #008a62;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.arrival-stat-icon {
  background: #e8f9f3;
  color: #009c72;
}
.arrival-stat.registered-card .arrival-stat-icon {
  background: #eaf1ff;
  color: #2e6ce6;
}
.arrival-table-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 17px;
  box-shadow: 0 2px 5px #17314f0d;
}
.arrival-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #dbe3ed;
}
.arrival-table-head h3 {
  margin: 0;
  font-size: 0.95rem;
}
.arrival-history-link {
  padding: 5px;
  background: transparent;
  color: #008c66;
  font-size: 0.82rem;
}
.arrival-table-wrap {
  overflow: auto;
}
.arrival-table {
  min-width: 780px;
}
.arrival-table th {
  padding: 13px 24px;
  background: #f8fafc;
  color: #627491;
  border: 0;
  font-size: 0.75rem;
}
.arrival-table td {
  padding: 17px 24px;
  border-top: 1px solid #e5eaf1;
  color: #0b1f3a;
}
.arrival-table .avatar {
  background: #d9faed;
  color: #008c66;
  border: 0;
}
.arrival-table .avatar.pending-avatar {
  background: #e7efff;
  color: #2d65cf;
}
.arrival-table .guest-primary {
  color: #0b1f3a;
}
.arrival-table .guest-secondary,
.arrival-table .booking-number {
  color: #607593;
}
.arrival-table-row {
  cursor: pointer;
}
.arrival-table-row:hover,
.arrival-table-row:focus {
  background: #f7fafc;
  outline: 0;
}
.arrival-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.arrival-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.arrival-status.registered {
  background: #cff7e5;
  color: #008b64;
  border: 0;
}
.arrival-status.pending {
  background: #fff0bf;
  color: #a46d00;
  border: 0;
}
.arrival-more {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin-left: auto;
  border-radius: 10px;
  background: #eff3f8;
  color: #8396ae;
  font-size: 1.2rem;
}
.arrival-empty {
  text-align: center;
  color: #607593;
  padding: 36px !important;
}
.arrival-cache {
  margin: 0 0 12px;
  color: #607593;
  font-size: 0.78rem;
}
.dashboard-arrivals dialog {
  background: #fff;
  color: #0b1f3a;
}
.dashboard-arrivals dialog .detail-card {
  background: #f7f9fc;
}
.dashboard-arrivals dialog .detail-row strong {
  color: #0b1f3a;
}
@media (max-width: 720px) {
  .arrival-stats {
    grid-template-columns: 1fr;
  }
  .arrival-table-head {
    align-items: flex-start;
  }
  .arrival-header-actions {
    width: 100%;
  }
  .arrival-date,
  .arrival-refresh {
    flex: 1;
    justify-content: center;
  }
}
#settingsDialog {
  max-width: 540px;
  width: calc(100% - 32px);
}
#settingsDialog label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
#settingsDialog select {
  padding: 10px;
  background: var(--panel, white);
  color: var(--ink, #14283d);
  border-radius: 8px;
}
#mfaQr {
  background: white;
  padding: 8px;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}

/* Step 10: separate person/registration/document status inside booking groups. */
.booking-persons {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.booking-persons li {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border, #ddd);
  overflow-wrap: anywhere;
}
.booking-persons button {
  justify-self: start;
  white-space: normal;
}
.status-pill.unknown {
  color: var(--text);
  background: var(--surface, transparent);
  border: 1px solid currentColor;
  white-space: normal;
}
#documentCheckDialog {
  max-width: min(36rem, 95vw);
}
#documentCheckFields dd {
  overflow-wrap: anywhere;
}
