.module-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.module-header {
  position: static;
  background: #02133c;
  color: #fff;
  border-bottom: 1px solid #14264d;
}

.module-header .nav__logo-name,
.admin-mobile-header .nav__logo-name {
  color: #fff;
}

.module-header .nav__logo-tagline,
.admin-mobile-header .nav__logo-tagline {
  color: #c5d1e4;
}

.module-header .btn--outline,
.admin-mobile-header .btn--outline {
  color: #fff;
  background: transparent;
  border-color: #6c7fa2;
}

.module-header .btn--outline:hover,
.admin-mobile-header .btn--outline:hover {
  color: #fff;
  background: #173b69;
  border-color: #a4b4cf;
}

.module-header a:focus-visible,
.module-header button:focus-visible,
.admin-mobile-header a:focus-visible,
.admin-mobile-header button:focus-visible,
.admin-sidebar a:focus-visible,
.admin-sidebar button:focus-visible {
  outline-color: #ffd275;
}

.nav__logo--with-mark {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.nav__logo-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 35px;
  flex: none;
  object-fit: contain;
}

.module-header__inner,
.module-footer__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.module-main {
  flex: 1;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.module-intro {
  max-width: 760px;
  margin-bottom: var(--space-md);
}

.module-intro h1 {
  margin: 0 0 var(--space-xs);
}

.module-intro p {
  color: var(--color-text-muted);
  margin: 0;
}

.module-intro .section__supertitle {
  margin-bottom: var(--space-xs);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.125rem, 2.5vw, 1.5rem);
  box-shadow: 0 8px 30px rgba(23, 43, 69, 0.045);
}

.panel h2,
.panel h3 {
  margin: 0 0 var(--space-sm);
}

.panel--summary {
  position: sticky;
  top: var(--space-md);
}

.form-section + .form-section {
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 1px solid rgba(23, 43, 69, 0.08);
}

.form-section {
  padding: 0;
}

.form-section h2 {
  margin-bottom: var(--space-sm);
}

.module-page .btn--primary,
.admin-page .btn--primary {
  color: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label,
.form-label {
  font-weight: 500;
  font-size: var(--text-sm);
}

.form-field input,
.form-field select,
.form-field textarea,
.admin-table input,
.admin-table select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-focus);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.date-picker-field {
  position: relative;
}

.date-picker-field input[type="date"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.date-picker-trigger {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border: 1px solid #b8c8da;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  box-shadow: 0 1px 3px rgba(23, 43, 69, 0.055);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.date-picker-trigger:hover,
.date-picker-trigger[aria-expanded="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 3px 12px rgba(23, 43, 69, 0.1);
}

.date-picker-trigger:disabled {
  border-color: var(--color-border-soft);
  background: #f5f7fa;
  color: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.date-picker-trigger:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.date-picker-trigger__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
}

.date-picker {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(100%, 22rem);
  padding: var(--space-sm);
  border: 1px solid rgba(23, 43, 69, 0.12);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 43, 69, 0.16);
}

.date-picker__header,
.date-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.date-picker__header {
  margin-bottom: var(--space-sm);
}

.date-picker__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-align: center;
  white-space: nowrap;
}

.date-picker__nav,
.date-picker__today,
.date-picker__close {
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.date-picker__nav {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.date-picker__nav:hover:not(:disabled),
.date-picker__today:hover:not(:disabled),
.date-picker__close:hover {
  background: rgba(23, 59, 105, 0.11);
}

.date-picker__nav:disabled,
.date-picker__today:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-picker__weekdays,
.date-picker__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
}

.date-picker__weekdays {
  margin-bottom: 0.25rem;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-align: center;
}

.date-picker__day {
  min-height: 2.75rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.date-picker__day:hover:not(:disabled) {
  background: rgba(23, 59, 105, 0.12);
}

.date-picker__day.is-today {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.date-picker__day.is-selected {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 59, 105, 0.28);
}

.date-picker__day.is-outside {
  color: rgba(23, 43, 69, 0.35);
}

.date-picker__day:disabled {
  color: rgba(23, 43, 69, 0.2);
  cursor: not-allowed;
}

.date-picker__footer {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(23, 43, 69, 0.08);
}

.date-picker__today,
.date-picker__close {
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  color: var(--color-primary);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
}

.form-help {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.booking-privacy-note {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.booking-optional {
  margin-top: var(--space-sm);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.booking-optional summary {
  min-height: 44px;
  display: list-item;
  padding: 0.65rem 0.9rem;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.booking-optional summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.booking-optional .form-field {
  padding: 0 var(--space-sm) var(--space-sm);
}

.choice-grid,
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs);
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.catalog-status {
  margin: 0 0 var(--space-sm);
}

.choice-grid--catalog {
  grid-template-columns: 1fr;
}

.choice-grid--catalog .choice label {
  padding: 0.7rem 0.9rem;
}

.catalog-more {
  margin-top: var(--space-sm);
  width: 100%;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(23, 43, 69, 0.14);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.choice input:checked + label {
  border-color: var(--color-primary);
  background: rgba(23, 59, 105, 0.08);
}

.choice input:focus-visible + label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.choice__meta {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.slot-button {
  min-height: 44px;
  padding: 0.7rem;
  border: 1px solid rgba(23, 43, 69, 0.16);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
}

.slot-button:hover,
.slot-button.is-selected {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: var(--space-xs);
}

.check-row input {
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.check-row label {
  font-size: var(--text-sm);
}

.check-row a {
  color: var(--color-primary);
  text-decoration: underline;
}

.summary-list {
  display: grid;
  gap: 0.45rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(23, 43, 69, 0.08);
}

.summary-row span:first-child {
  color: var(--color-text-muted);
}

.summary-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.booking-mobile-summary {
  margin: var(--space-sm) 0;
  padding: 0.75rem var(--space-sm);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.booking-mobile-summary h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-base);
}

.booking-mobile-summary .summary-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem var(--space-sm);
}

.booking-mobile-summary .summary-row {
  display: grid;
  gap: 0.1rem;
  padding: 0;
  border: 0;
  font-size: var(--text-sm);
}

.booking-mobile-summary .summary-row strong {
  text-align: left;
}

.alert {
  padding: 0.9rem 1rem;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid;
}

.alert--success {
  color: var(--color-success);
  background: var(--color-success-bg);
  border-color: var(--color-success);
}

.alert--error {
  color: var(--color-error);
  background: var(--color-error-bg);
  border-color: var(--color-error);
}

.alert--info {
  color: var(--color-warning);
  background: var(--color-warning-bg);
  border-color: var(--color-warning);
}

.status-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.status-card h1 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.status-card .status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 59, 105, 0.13);
  color: #175A47;
  font-size: 1.7rem;
}

.status-card .status-icon--pending {
  color: #825419;
  background: rgba(130, 84, 25, 0.16);
}

.status-card .status-icon--error {
  color: #9C343B;
  background: rgba(156, 52, 59, 0.16);
}

.status-card p {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.status-card .form-field + .form-field {
  margin-top: var(--space-sm);
}

.module-page--auth .module-main,
.module-page--status .module-main {
  display: flex;
  align-items: center;
}

.module-page--auth .module-main > .container,
.module-page--status .module-main > .container {
  width: 100%;
}

.auth-card {
  max-width: 440px;
  margin-inline: auto;
}

.auth-card h1 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.auth-card > p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.auth-card .form-field + .form-field {
  margin-top: var(--space-sm);
}

.auth-card form > .btn {
  width: 100%;
  margin-top: var(--space-md);
}

.status-card form > .btn {
  margin-top: var(--space-sm);
}

.mfa-setup {
  max-width: 560px;
}

.mfa-setup__qr {
  display: block;
  width: min(224px, 100%);
  height: auto;
  margin: 0 auto var(--space-md);
  padding: 0.5rem;
  border: 1px solid rgba(23, 43, 69, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
}

.mfa-setup__secret,
.mfa-setup__uri {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mfa-setup__advanced {
  max-width: 100%;
  margin-bottom: var(--space-md);
  text-align: left;
}

.mfa-setup__uri {
  display: block;
  max-width: 100%;
  margin-top: var(--space-xs);
  white-space: normal;
}

.legal-content {
  max-width: 820px;
  margin-inline: auto;
}

.legal-content h1,
.legal-content h2 {
  margin-bottom: var(--space-sm);
}

.legal-content h2 {
  margin-top: var(--space-lg);
  font-size: var(--text-2xl);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-updated {
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.has-open-modal {
  overflow: hidden;
}

.legal-modal-layer {
  position: fixed;
  z-index: 400;
  inset: 0;
  padding: var(--space-md);
  display: grid;
  place-items: center;
  background: rgba(23, 43, 69, 0.58);
  backdrop-filter: blur(4px);
}

.legal-modal {
  width: min(100%, 54rem);
  max-height: min(88vh, 54rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 43, 69, 0.1);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 28px 80px rgba(23, 43, 69, 0.3);
  animation: legal-modal-in 180ms ease-out both;
}

.legal-modal__header {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border-bottom: 1px solid rgba(23, 43, 69, 0.09);
}

.legal-modal__header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.legal-modal__close {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(23, 43, 69, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.legal-modal__close:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.legal-modal__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.legal-modal__body {
  max-width: none;
  padding: var(--space-md);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-modal__body h2 {
  margin-top: var(--space-md);
  font-size: var(--text-xl);
}

.legal-modal__body p,
.legal-modal__body li {
  font-size: var(--text-sm);
  line-height: 1.75;
}

@keyframes legal-modal-in {
  from { opacity: 0; transform: translateY(0.75rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.module-footer {
  background: #02133c;
  color: var(--color-bg);
}

.module-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.module-footer a:hover {
  color: #bed8fa;
}

.module-footer__product {
  color: #bfcee1;
}

.loading-text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 960px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  }

  .booking-mobile-summary {
    display: none;
  }
}

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

@media (max-width: 560px) {
  .brand-mark {
    width: 38px;
    height: 30px;
  }

  .nav__logo--with-mark {
    gap: 0.4rem;
  }

  .nav__logo--with-mark .nav__logo-name {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }

  .module-header__inner,
  .module-footer__inner {
    align-items: center;
    flex-direction: row;
    padding-block: 0.75rem;
  }

  .module-header__inner .btn {
    flex: 0 0 auto;
  }

  .module-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-intro {
    margin-bottom: var(--space-sm);
  }

  .panel {
    padding: var(--space-sm);
  }

  .form-section + .form-section {
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
  }

  .admin-content__header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .date-picker {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: min(36rem, calc(100dvh - 1rem));
    padding: var(--space-sm) var(--space-sm) max(var(--space-sm), env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -16px 40px rgba(23, 43, 69, 0.18);
  }

  .date-picker__title { font-size: var(--text-base); }

  .date-picker__header { margin-bottom: var(--space-xs); }

  .date-picker__day { min-height: 2.5rem; }

  .toast-stack {
    top: var(--space-sm);
    right: var(--space-sm);
    width: calc(100vw - (2 * var(--space-sm)));
  }

  .legal-modal-layer {
    padding: 0;
    place-items: end center;
  }

  .legal-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .legal-modal__header,
  .legal-modal__body {
    padding: var(--space-sm);
  }
}

.admin-page {
  background: var(--color-bg);
  overflow-x: clip;
}

.admin-shell {
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  width: 260px;
  max-width: calc(100vw - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-md);
  display: none;
  flex-direction: column;
  background: #02133c;
  color: var(--color-bg);
}

.admin-sidebar.is-open {
  display: flex;
}

@media (max-width: 899px) {
  .admin-page.admin-menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(15, 35, 59, 0.45);
  }
}

.admin-brand {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
}

.admin-brand__lockup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-brand__lockup strong {
  color: #fff;
}

.admin-brand strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.admin-brand span {
  color: #bfcee1;
  font-size: var(--text-xs);
}

.admin-nav {
  display: grid;
  gap: 0.2rem;
}

.admin-nav a {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  color: #cfdbeb;
  font-size: var(--text-sm);
}

.admin-nav a:hover,
.admin-nav a.is-active {
  color: #fff;
  background: #31547f;
}

.admin-sidebar__footer {
  margin-top: auto;
  padding: var(--space-sm);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: #bfcee1;
}

.admin-sidebar__footer form,
.admin-sidebar__footer button {
  margin: 0;
}

.admin-sidebar__footer button {
  min-height: 44px;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.admin-mobile-header {
  min-height: 68px;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #02133c;
  border-bottom: 1px solid #14264d;
}

.admin-content {
  min-width: 0;
  padding: var(--space-md);
}

.admin-content__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.admin-content__header h1 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2rem);
}

.toast-stack {
  position: fixed;
  z-index: 300;
  top: var(--space-md);
  right: var(--space-md);
  width: min(calc(100vw - 2rem), 25rem);
  display: grid;
  gap: var(--space-xs);
  pointer-events: none;
}

.toast {
  min-height: 64px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(23, 43, 69, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 43, 69, 0.18);
  pointer-events: auto;
  animation: toast-in 220ms ease-out both;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(1rem);
}

.toast__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 59, 105, 0.16);
  color: #175A47;
  font-weight: 700;
}

.toast--error .toast__icon {
  background: rgba(156, 52, 59, 0.16);
  color: #9C343B;
}

.toast p {
  margin: 0;
  font-size: var(--text-sm);
}

.toast__close {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.toast__close:hover {
  background: rgba(23, 43, 69, 0.06);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.metric-card {
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(23, 43, 69, 0.08);
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-primary);
}

.metric-card span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid rgba(23, 43, 69, 0.08);
  border-radius: var(--radius-lg);
}

.table-wrap:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.table-wrap details {
  max-width: 28rem;
}

.table-wrap pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--text-xs);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table th,
.admin-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(23, 43, 69, 0.07);
  vertical-align: top;
}

.admin-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  background: rgba(23, 59, 105, 0.05);
}

.admin-table a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.services-admin {
  display: grid;
  gap: var(--space-md);
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.list-toolbar .filter-bar {
  margin-bottom: 0;
  align-items: end;
}

.list-toolbar .filter-bar label {
  display: grid;
  gap: 0.25rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.list-toolbar .filter-bar select {
  min-width: 11rem;
}

.admin-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 36rem);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: #fff;
  color: var(--color-text);
  box-shadow: -1rem 0 3rem rgba(17, 43, 74, 0.18);
  overflow: hidden;
}

.admin-drawer::backdrop {
  background: rgba(15, 35, 59, 0.45);
}

.admin-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(23, 43, 69, 0.12);
}

.admin-drawer__header h2 {
  margin: 0;
}

.admin-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(23, 43, 69, 0.16);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.admin-drawer__close:hover {
  background: rgba(23, 59, 105, 0.06);
}

.admin-drawer__form {
  height: calc(100dvh - 5.5rem);
  overflow-y: auto;
  padding: 1.5rem;
}

.admin-drawer__form .form-actions {
  margin-top: var(--space-md);
}

.provider-services {
  margin: var(--space-md) 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
}

.provider-services legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.provider-services .check-row + .check-row {
  margin-top: 0.45rem;
}

.admin-confirm {
  width: min(calc(100% - 2rem), 29rem);
  max-width: none;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid #d7e1ec;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 65px rgba(17, 43, 74, 0.23);
}

.admin-confirm::backdrop {
  background: rgba(15, 35, 59, 0.56);
}

.admin-confirm__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-full);
  background: #edf3f9;
  color: var(--color-primary);
  font-weight: 700;
}

.admin-confirm--danger .admin-confirm__icon {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.admin-confirm h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-xl);
}

.admin-confirm p {
  margin: 0;
  color: var(--color-text-muted);
}

.admin-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.admin-confirm--danger [data-admin-confirm-yes] {
  background: var(--color-error);
  border-color: var(--color-error);
}

.admin-confirm--danger [data-admin-confirm-yes]:hover {
  background: #81272d;
  border-color: #81272d;
}

@media (max-width: 600px) {
  .admin-drawer { border-radius: 0; }
  .admin-drawer__header, .admin-drawer__form { padding: 1rem; }
  .list-toolbar .filter-bar label, .list-toolbar .filter-bar select { width: 100%; }
  .admin-confirm__actions .btn { flex: 1; }
}

.services-list {
  min-width: 0;
}

.public-link {
  overflow-wrap: anywhere;
}

.services-list__header {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-sm);
}

.services-list__header h2,
.services-list__header p {
  margin-bottom: 0;
}

.services-list__count {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(23, 59, 105, 0.1);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.services-table {
  table-layout: fixed;
  min-width: 1050px;
}

.services-table th:first-child,
.services-table td:first-child {
  width: 27%;
}

.services-table th:nth-child(2),
.services-table td:nth-child(2) {
  width: 13%;
  overflow-wrap: anywhere;
}

.services-table th:nth-child(3),
.services-table td:nth-child(3) {
  width: 9%;
  white-space: nowrap;
}

.services-table th:nth-child(4),
.services-table td:nth-child(4) {
  width: 10%;
  white-space: nowrap;
}

.services-table th:nth-child(5),
.services-table td:nth-child(5) {
  width: 13%;
}

.services-table th:nth-child(6),
.services-table td:nth-child(6) {
  width: 9%;
}

.services-table th:nth-child(7),
.services-table td:nth-child(7) {
  width: 10%;
}

.services-table th:last-child,
.services-table td:last-child {
  width: 9%;
  text-align: right;
}

.services-table__name,
.services-table__description {
  display: block;
}

.services-table__name {
  overflow-wrap: break-word;
}

.services-table__description {
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.services-table__actions .btn {
  text-decoration: none;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-success);
  background: var(--color-success-bg);
}

.status-badge--warning {
  color: var(--color-warning);
  background: var(--color-warning-bg);
}

.status-badge--error {
  color: var(--color-error);
  background: var(--color-error-bg);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.admin-actions form {
  display: inline;
}

.row-actions-cell {
  width: 4.5rem;
  text-align: right !important;
  white-space: nowrap;
}

.row-actions {
  display: inline-flex;
}

.row-actions__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #c5d2e1;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(23, 43, 69, 0.05);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.row-actions__trigger span {
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-0.12rem);
}

.row-actions__trigger:hover,
.row-actions__trigger[aria-expanded="true"] {
  background: #edf3f9;
  border-color: var(--color-primary);
}

.row-actions__trigger:focus-visible,
.row-actions__menu [role="menuitem"]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.row-actions__menu {
  position: fixed;
  z-index: 2000;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid #d7e1ec;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 43, 74, 0.17);
}

.row-actions__menu[hidden] {
  display: none;
}

.row-actions__menu a,
.row-actions__menu button {
  display: block;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.row-actions__menu a:hover,
.row-actions__menu button:hover {
  background: #edf3f9;
}

.row-actions__menu .row-actions__danger {
  color: #a3343c;
}

.row-actions__menu .row-actions__danger:hover {
  background: #fff0f0;
}

.filter-bar {
  margin-bottom: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(23, 43, 69, 0.2);
  border-radius: var(--radius-md);
  background: #fff;
}

.form-field select,
.admin-table select,
.filter-bar select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3.25rem;
  border-color: #b8c8da;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.5 6 4.5 4 4.5-4' stroke='%23173b69' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(to right, transparent calc(100% - 2.8rem), #f1f5fa calc(100% - 2.8rem));
  background-position: right 0.9rem center, center;
  background-size: 1rem 1rem, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 1px 3px rgba(23, 43, 69, 0.055);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-field select:hover:not(:disabled),
.admin-table select:hover:not(:disabled),
.filter-bar select:hover:not(:disabled) {
  border-color: var(--color-secondary);
  box-shadow: 0 3px 12px rgba(23, 43, 69, 0.1);
}

.form-field select:focus-visible,
.admin-table select:focus-visible,
.filter-bar select:focus-visible {
  border-color: var(--color-focus);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.form-field select:invalid {
  color: var(--color-text-muted);
}

.form-field select option,
.admin-table select option,
.filter-bar select option {
  color: var(--color-text);
}

.form-field select:disabled,
.admin-table select:disabled,
.filter-bar select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-field select.booking-select.is-fixed-format:disabled {
  opacity: 1;
  color: var(--color-text);
  border-color: var(--color-border-soft);
  background-color: #f1f5fa;
  background-image: none;
  box-shadow: none;
}

@supports (appearance: base-select) {
  .form-field select.booking-select,
  .form-field select.booking-select::picker(select) {
    appearance: base-select;
  }

  .booking-select::picker-icon {
    display: none;
  }

  .booking-select::picker(select) {
    min-width: anchor-size(width);
    max-height: min(18rem, 45vh);
    top: calc(anchor(bottom) + 0.35rem);
    left: anchor(left);
    margin: 0;
    padding: 0.35rem;
    overflow: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: 0 18px 42px rgba(23, 43, 69, 0.18);
  }

  .booking-select option {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: var(--text-sm);
    cursor: pointer;
  }

  .booking-select option:hover,
  .booking-select option:focus-visible {
    background: #edf3fa;
    color: var(--color-primary);
  }

  .booking-select option:checked {
    background: #e7eff9;
    color: var(--color-primary);
    font-weight: 650;
  }

  .booking-select option::checkmark {
    display: none;
  }

  .booking-select option:checked::after {
    content: "✓";
    margin-left: auto;
    color: var(--color-primary);
    font-weight: 700;
  }

  .booking-select option[value=""] {
    color: var(--color-text-muted);
  }
}

@media (forced-colors: active) {
  .form-field select,
  .form-field select.booking-select,
  .form-field select.booking-select::picker(select),
  .admin-table select,
  .filter-bar select {
    appearance: auto;
    background-image: none;
    padding-right: 0.85rem;
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.settings-tabs a {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid rgba(23, 43, 69, 0.1);
}

.settings-tabs a.is-active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

#admin-calendar {
  min-height: 580px;
  background: var(--color-surface);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
  .admin-sidebar {
    display: flex;
  }

  .admin-mobile-header {
    display: none;
  }

  .admin-content {
    margin-left: 260px;
    padding: 2rem;
  }

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

@media (max-width: 899px) {
  .toast-stack {
    top: 5rem;
  }
}

@media (max-width: 720px) {
  .admin-table:not(.services-table):not(.admin-table--cards) {
    min-width: 38rem;
  }

  .table-wrap:has(> .admin-table--cards) {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table--cards,
  .admin-table--cards tbody,
  .admin-table--cards tr,
  .admin-table--cards td {
    display: block;
    width: 100%;
  }

  .admin-table--cards thead,
  .services-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .admin-table--cards tr {
    margin-bottom: var(--space-sm);
    padding: 0.5rem var(--space-sm);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(23, 43, 69, 0.04);
  }

  .admin-table--cards td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.42fr) minmax(0, 1fr);
    gap: var(--space-xs);
    padding: 0.55rem 0;
    overflow-wrap: anywhere;
  }

  .admin-table--cards td:last-child { border-bottom: 0; }

  .admin-table--cards td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
  }

  .admin-table--cards .row-actions-cell {
    text-align: left !important;
    white-space: normal;
  }

  .admin-table--cards .row-actions {
    justify-self: start;
  }

  .services-list__header {
    align-items: flex-start;
  }

  .services-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .services-table,
  .services-table tbody,
  .services-table tr,
  .services-table td {
    display: block;
    width: 100% !important;
  }

  .services-table {
    min-width: 0;
  }

  .services-table tr {
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(23, 43, 69, 0.08);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(23, 43, 69, 0.04);
  }

  .services-table td {
    min-height: 0;
    padding: 0.55rem 0;
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.35fr) minmax(0, 1fr);
    gap: var(--space-xs);
    border-bottom: 1px solid rgba(23, 43, 69, 0.07);
    text-align: left !important;
  }

  .services-table td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 500;
  }

  .services-table td:first-child {
    padding-top: 0;
  }

  .services-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .services-table__description {
    grid-column: 2;
  }

  .services-table__actions .btn {
    justify-self: start;
  }
}
