.flow-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.55rem);
}
.flow-heading h1 { color: var(--forest); overflow-wrap: anywhere; }
.flow-heading h1 + p { margin-top: .3rem; }
.flow-date { display: inline-flex; align-items: center; gap: .4rem; }
.flow-date .symbol { color: var(--leaf); }
.section-links { gap: .36rem; }
.section-links a {
  min-height: 2.35rem;
  padding: .25rem .65rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--card);
  font-size: .9rem;
  line-height: 1.3;
}
.section-links a:hover { border-color: var(--leaf); }

.checkout-grid { gap: clamp(.9rem, 2.55vw, 1.65rem); }
.booking-form { display: grid; gap: .8rem; }
.booking-form > :is(.form-section, .booking-actions),
.booking-form > .form-section:first-of-type,
.booking-form > .form-section + .form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.booking-form > .notice { margin: 0; }
.checkout-grid .panel-heading, .payment-panel .panel-heading, .staff-booking-layout .panel-heading { gap: .65rem; }
.panel-heading .feature-icon { border-radius: .6rem; }
.checkout-grid .field, .payment-panel .field { gap: .34rem; }
.field :is(input, select, textarea),
[data-file-upload][data-ready] { border-color: var(--ui-input-border); }
.field [aria-invalid="true"],
.field-invalid [data-file-upload][data-ready] { border-color: var(--ui-danger); }
.quote-strip, .payment-due { background: var(--mint); border-radius: .6rem; }
.quote-strip dd { overflow-wrap: anywhere; }
.payment-due { border-inline-start: 3px solid var(--leaf); }
.payment-option { border-radius: .6rem; }
.payment-option:hover { background: var(--mint); }
.booking-actions .button { min-width: min(10rem, 100%); }
.booking-summary {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.summary-heading {
  padding: .92rem 1.1rem;
  background: #103d42;
  color: #fff;
  font-size: 1.14rem;
}
.summary-heading::after { border-color: currentColor; }
.booking-summary[open] .summary-heading { border-bottom: 0; }
.summary-body { padding: 1rem 1.15rem; }
.summary-total strong { font-size: clamp(1.35rem, 2.4vw, 1.64rem); }

.auth-layout { max-width: 59rem; box-shadow: var(--shadow); }
.auth-image { isolation: isolate; }
.auth-image::after {
  position: absolute;
  z-index: 1;
  inset: 35% 0 0;
  content: '';
  background: linear-gradient(transparent, rgb(9 40 44 / .83));
}
.auth-image figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 1rem .8rem;
  color: #fff;
  font-weight: 700;
}
.auth-content { align-self: center; }
.auth-content h1 { margin-block: .6rem .85rem; color: var(--forest); }
.auth-content form { gap: .85rem; }
.auth-content .button { margin-top: .2rem; }
.auth-links { border-top: 1px solid var(--line); padding-top: .92rem; }

.receipt-with-payment { gap: clamp(.9rem, 2.5vw, 1.5rem); }
.confirmation { box-shadow: var(--shadow); }
.confirmation-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #103d42;
  color: #fff;
  border: 0;
}
.confirmation-top .feature-icon { width: 2.55rem; height: 2.55rem; }
.confirmation-top h1 { margin: 0; font-size: clamp(1.48rem, 3.1vw, 2rem); }
.confirmation-ref { align-items: center; }
.confirmation-ref strong { color: var(--forest); }
.confirmation-detail .receipt-payment-link { margin-top: .82rem; }
.payment-panel .payment-guide { border-radius: .62rem; }
.payment-panel .payment-due { margin-top: 0; }

.workspace { background: var(--page); }
.workspace-nav {
  width: fit-content;
  max-width: 100%;
  gap: .3rem;
  padding: .24rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--card);
  margin-bottom: 1.15rem;
}
.workspace-nav a { border: 0; border-radius: .52rem; padding-inline: .85rem; }
.workspace-nav a:is(:hover,.current,[aria-current]) { background: var(--mint); }
.workspace-nav a:is(.current,[aria-current]) { color: #fff; background: #103d42; }
.metrics-grid {
  gap: .66rem;
  margin-block: 0 .95rem;
  border: 0;
  background: transparent;
}
.metrics-grid .metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .35rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--card);
}
.metrics-grid .metric dd { margin: 0; color: var(--forest); }
.dashboard-totals { margin-top: .9rem; }
.dashboard-totals .metric { background: var(--mint); }
.table-heading { padding: clamp(.85rem, 2.3vw, 1.28rem); }
.table-heading h2 { color: var(--forest); }
.table-panel th { background: var(--mint); }
.table-panel tbody tr:hover { background: var(--page); }
.record-table td:first-child { font-variant-numeric: tabular-nums; }
.record-table td .status-badge { white-space: normal; }
.status-badge { border-radius: 2rem; }
.staff-booking-layout { gap: 1rem; }
.staff-booking-layout section#verify { border-inline-start: 3px solid #b97b20; }
.flow-review-amount { margin-top: .42rem; }
.flow-review-amount strong { color: var(--ink); }
.filters .report-fields { margin-bottom: .84rem; }

@media (min-width: 781px) {
  .checkout-grid:has(.booking-summary[open]) .quote-strip,
  .receipt-with-payment .receipt-payment-link { display: none; }
}
@media (max-width: 780px) {
  .metrics-grid:not(.report-metrics) .metric:nth-child(n) { border: 1px solid var(--line); }
  .flow-heading { align-items: start; }
}
@media (max-width: 470px) {
  .auth-image { min-height: 8.5rem; }
  .auth-image figcaption { inset: auto .75rem .55rem; }
  .auth-content { padding: 1rem 1.12rem; }
  .report-fields { gap: .6rem; }
  .metrics-grid { gap: .45rem; }
  .metrics-grid.report-metrics .metric { padding: .58rem .48rem; }
  .report-metrics .metric dd { font-size: 1.26rem; }
}
@media (min-width: 360px) and (max-width: 470px) {
  .booking-page #stay .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-strip { grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr)); }
}
@media print {
  .confirmation, .booking-summary { box-shadow: none; }
  .confirmation-top { background: #fff; color: #103d42; }
}
