:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #edf5f2;
  --surface-tint: #f8fbfa;
  --ink: #16231f;
  --muted: #63716c;
  --brand: #087367;
  --brand-strong: #05584f;
  --brand-soft: #ddf2ed;
  --accent: #f2a93b;
  --info: #2f6fb3;
  --danger: #bf3d3a;
  --success: #12745e;
  --line: #dce5e1;
  --line-strong: #bfcec8;
  --ring: rgba(8, 115, 103, 0.22);
  --shadow-sm: 0 8px 24px rgba(22, 35, 31, 0.07);
  --shadow-md: 0 22px 56px rgba(22, 35, 31, 0.13);
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow-lg: 0 34px 90px rgba(3, 60, 52, 0.2);
  --topbar-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sarabun", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

img {
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(860px, calc(100% - 32px));
}

.section {
  padding: 48px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.brand span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong,
.brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.brand-mark.large {
  width: 56px;
  height: 56px;
  margin: auto;
  font-size: 24px;
}

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

.nav > a,
.link-button,
.adminnav a {
  border-radius: var(--radius);
  color: #344440;
  padding: 9px 12px;
  font-weight: 600;
}

.nav > a:hover,
.link-button:hover,
.nav > a[aria-current="page"],
.adminnav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.wrap {
  flex-wrap: wrap;
}

.adminbar {
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--brand-strong);
}

.adminnav {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.adminnav a {
  color: #e1efeb;
  padding: 12px 14px;
}

.adminnav a:hover,
.adminnav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  padding: 10px 16px;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: none;
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:not(.btn-outline) {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 14px;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.btn-google {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-google span {
  color: #4285f4;
  font-weight: 800;
}

.hero {
  overflow: hidden;
  background: linear-gradient(135deg, #073c36 0%, #0d695f 62%, #b7822a 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: 520px;
  padding: 48px 0;
}

.hero h1 {
  margin: 16px 0;
  max-width: 840px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
}

.hero h1 span {
  color: #ffdc91;
}

.hero p {
  max-width: 680px;
  color: #e5f2ef;
  font-size: 19px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffe4aa;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.68);
  color: #fff;
}

.hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.calendar-mini {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.cal-head,
.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cal-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.cal-head span {
  color: var(--muted);
  font-size: 14px;
}

.time-row {
  margin-top: 12px;
}

.time-row b {
  width: 48px;
  color: var(--muted);
  font-size: 14px;
}

.slot {
  flex: 1;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.slot.free {
  background: #e5f7f1;
  color: var(--success);
}

.slot.busy {
  background: #fdecec;
  color: var(--danger);
}

.slot.pending {
  background: #fff2d6;
  color: #875d00;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat,
.panel,
.facility-card,
.steps > div,
.auth-card,
.empty,
.filterbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 22px;
}

.stat b {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.stat.attention {
  border-color: #efd69e;
  background: #fff8e8;
}

.section-head,
.inline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2,
.page-head h1 {
  margin: 4px 0 0;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.2;
}

.page-head {
  margin-bottom: 26px;
}

.page-head h1 {
  font-size: 44px;
  line-height: 1.18;
}

.page-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.facility-card {
  overflow: hidden;
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.facility-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.facility-card > a {
  display: block;
  color: inherit;
}

.facility-image {
  display: flex;
  align-items: flex-start;
  height: 206px;
  background: linear-gradient(135deg, #d8e7e3, #aac8c0);
  background-position: center;
  background-size: cover;
  padding: 14px;
}

.facility-image span,
.pill {
  border: 1px solid rgba(13, 105, 95, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.facility-body {
  padding: 18px;
}

.facility-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.28;
}

.facility-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.how {
  background: var(--surface-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps > div {
  padding: 22px;
}

.steps b {
  color: var(--brand);
  font-size: 14px;
}

.steps h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.panel {
  margin-bottom: 20px;
  padding: 24px;
}

.panel h2:first-child,
.panel h3:first-child {
  margin-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin-top: 24px;
}

.sticky {
  position: sticky;
  top: 104px;
}

.booking-box {
  border-top: 4px solid var(--brand);
}

.price-row,
.hours > div,
.schedule-list > div,
.notification-list > div,
.audit-list > div,
.payment-row {
  border-bottom: 1px solid var(--line);
}

.price-row,
.hours > div,
.schedule-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}

.schedule-list time {
  font-weight: 700;
}

.notice {
  border: 1px solid #d5e6e1;
  border-radius: var(--radius);
  background: #f1f7f5;
  color: #425d57;
  font-size: 15px;
  margin: 14px 0;
  padding: 12px 14px;
}

.facility-hero {
  background: linear-gradient(135deg, #073c36, #0d695f);
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 76px 0;
}

.facility-hero h1 {
  margin: 14px 0 8px;
  font-size: 58px;
  line-height: 1.08;
}

.facility-hero p {
  max-width: 720px;
  color: #e4f1ee;
  font-size: 18px;
}

.facility-hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  color: #e0efeb;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
}

.filterbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px;
}

.filterbar input,
.filterbar select {
  min-width: 180px;
}

.filterbar input[type="search"] {
  flex: 1;
}

.results-count {
  color: var(--muted);
  font-size: 14px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #293a36;
  font-size: 15px;
  font-weight: 700;
}

label small {
  color: var(--muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8d4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

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

textarea {
  min-height: 112px;
  resize: vertical;
}

.check {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: auto;
  margin-top: 5px;
}

.check.top {
  margin-top: 30px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

legend {
  padding: 0 8px;
  font-weight: 800;
}

.selected-facility {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--brand-soft);
  padding: 14px;
}

.selected-facility small {
  margin-top: 5px;
  color: var(--muted);
}

.field-error {
  color: var(--danger) !important;
}

.auth-section {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--topbar-height));
  background: linear-gradient(135deg, #edf5f2, #f8f3e8);
  padding: 50px 16px;
}

.auth-card {
  width: min(480px, 100%);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.auth-brand {
  margin-bottom: 24px;
  text-align: center;
}

.auth-brand h1 {
  margin: 16px 0 4px;
}

.auth-brand p,
.auth-note,
.muted {
  color: var(--muted);
}

.auth-note {
  margin-top: 20px;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7f8d89;
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.center {
  text-align: center;
}

.big-date {
  font-size: 24px;
}

.checkin-code {
  border-radius: var(--radius);
  background: var(--brand-strong);
  color: #fff;
  font-size: 22px;
  margin: 18px 0;
  padding: 16px;
}

.alert {
  border: 1px solid;
  border-radius: var(--radius);
  margin-top: 18px;
  padding: 13px 16px;
  font-weight: 600;
}

.alert-success {
  border-color: #b8e2d5;
  background: #e8f8f2;
  color: #126650;
}

.alert-error {
  border-color: #efc3c3;
  background: #fff0f0;
  color: #94312f;
}

.alert-warning {
  border-color: #ebd28f;
  background: #fff7df;
  color: #735100;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf1f0;
  color: #4f615c;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}

.status-pending_approval,
.status-pending_payment,
.status-pending_verification {
  background: #fff2d6;
  color: #805900;
}

.status-approved {
  background: #e2f6ef;
  color: var(--success);
}

.status-checked_in {
  background: #e7f0fb;
  color: var(--info);
}

.status-completed {
  background: #eef1f0;
  color: #50635e;
}

.status-cancelled,
.status-rejected,
.status-no_show {
  background: #ffe8e8;
  color: var(--danger);
}

.large-badge {
  padding: 9px 13px;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

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

th {
  background: var(--surface-tint);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

tbody tr:hover {
  background: #f8fbfa;
}

td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.details {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  margin: 0;
}

.details dt,
.details dd {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 12px 0;
}

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

.details dd {
  font-weight: 650;
}

.details dd small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 14px;
  color: #7f8d89;
  padding-bottom: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item i {
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid #b8c5c1;
  border-radius: 50%;
  background: #fff;
  margin-top: 4px;
}

.timeline-item.done {
  color: var(--ink);
}

.timeline-item.done i {
  border-color: var(--brand);
  background: var(--brand);
}

.timeline-item small {
  display: block;
  color: var(--brand);
}

.notification-list > div,
.audit-list > div,
.payment-row {
  padding: 13px 0;
}

.notification-list p {
  margin: 3px 0;
  color: var(--muted);
}

.notification-list small,
.audit-list small,
.payment-row small {
  display: block;
  color: var(--muted);
}

.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bar-list > div {
  display: grid;
  grid-template-columns: 180px 1fr 45px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.bar-list i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.empty {
  border-style: dashed;
  box-shadow: none;
  color: var(--muted);
  padding: 42px 20px;
  text-align: center;
}

.empty.compact {
  border: 0;
  background: var(--surface-tint);
  padding: 22px;
}

.error-code {
  color: var(--brand);
  font-size: 72px;
  font-weight: 800;
}

code {
  border-radius: 6px;
  background: #eef2f0;
  padding: 2px 6px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hours-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hour-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 150px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.hour-row label {
  font-size: 13px;
}

.block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prose h2 {
  margin-top: 28px;
}

.prose h2:first-child {
  margin-top: 0;
}

footer {
  margin-top: 56px;
  background: #17322d;
  color: #dcebe7;
  padding: 34px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 5px 0;
  color: #abc0bb;
}

.footer-grid a {
  color: #e6f5f1;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0;
  }

  .hero-panel {
    max-width: 560px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: var(--topbar-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav .inline {
    display: block;
  }

  .nav .link-button {
    width: 100%;
    text-align: left;
  }

  .form-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .payment-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .container,
  .narrow {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 34px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .footer-grid,
  .facility-hero-meta,
  .filterbar,
  .section-head,
  .page-head.inline-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    display: none;
  }

  .page-head h1,
  .facility-hero h1 {
    font-size: 36px;
  }

  .facility-hero {
    padding: 54px 0;
  }

  .card-grid,
  .steps,
  .stats-grid,
  .form-grid,
  .form-grid.three,
  .check-grid {
    grid-template-columns: 1fr;
  }

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

  .panel,
  .auth-card {
    padding: 20px;
  }

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

  .details dt {
    border: 0;
    padding-bottom: 0;
  }

  .details dd {
    padding-top: 4px;
  }

  .hour-row {
    grid-template-columns: 1fr 1fr;
  }

  .hour-row > strong {
    grid-column: 1 / -1;
  }

  .block-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .bar-list > div {
    grid-template-columns: 120px 1fr 34px;
  }
}

/* ========================================================================== 
   SportSpace Modern UI/UX Refresh — 2026-07-21
   Visual-only enhancement. Business logic and data flow remain unchanged.
   ========================================================================== */

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(8, 115, 103, 0.055), transparent 30rem),
    var(--bg);
}

body.nav-open {
  overflow: hidden;
}

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

.container {
  width: min(1240px, calc(100% - 40px));
}

.narrow {
  width: min(900px, calc(100% - 40px));
}

.section {
  padding: clamp(48px, 6vw, 84px) 0;
}

.topbar {
  border-color: rgba(220, 229, 225, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: box-shadow .2s ease, background-color .2s ease;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 38px rgba(22, 35, 31, 0.08);
}

.brand {
  gap: 13px;
}

.brand strong {
  color: #10231e;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand small {
  max-width: 280px;
  margin-top: 3px;
  font-size: 11px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background: linear-gradient(145deg, #0b8c7d, #05584f);
  box-shadow: 0 10px 24px rgba(5, 88, 79, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-mark.large {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.brand-mark.large svg {
  width: 34px;
  height: 34px;
}

.nav {
  gap: 3px;
}

.nav > a,
.link-button {
  position: relative;
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 14px;
}

.nav > a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
}

.nav > a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav > a:hover,
.link-button:hover,
.nav > a[aria-current="page"] {
  background: rgba(221, 242, 237, 0.72);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.nav-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

.nav-user-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-cta {
  margin-left: 5px;
  box-shadow: 0 8px 20px rgba(8, 115, 103, 0.18);
}

.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: var(--topbar-height) 0 0;
  z-index: 44;
  background: rgba(8, 28, 24, .38);
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity .2s ease;
}

.nav-backdrop.open {
  opacity: 1;
}

.adminbar {
  position: sticky;
  top: var(--topbar-height);
  z-index: 40;
  border: 0;
  background: linear-gradient(90deg, #054f47, #087367);
  box-shadow: 0 10px 25px rgba(5, 79, 71, 0.14);
  scrollbar-width: thin;
}

.adminnav {
  min-height: 51px;
  align-items: center;
}

.adminnav a {
  border-radius: 11px;
  padding: 8px 13px;
  font-size: 14px;
}

.btn {
  border-radius: 13px;
  padding-inline: 18px;
  box-shadow: 0 7px 18px rgba(8, 115, 103, 0.15);
}

.btn:hover {
  box-shadow: 0 12px 26px rgba(5, 88, 79, 0.2);
}

.btn-outline {
  box-shadow: none;
}

.btn-light {
  border-color: #fff;
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 14px 32px rgba(1, 34, 29, .2);
}

.btn-light:hover {
  border-color: #fff;
  background: #f7fffd;
  color: var(--brand-strong);
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(3, 53, 47, .98), rgba(8, 115, 103, .94) 58%, rgba(24, 140, 126, .88)),
    #05584f;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, #000, transparent 82%);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-shape-one {
  top: -180px;
  right: -130px;
  width: 560px;
  height: 560px;
  border: 110px solid rgba(255,255,255,.055);
}

.hero-shape-two {
  bottom: -220px;
  left: 35%;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(242,169,59,.23), transparent 66%);
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  min-height: 620px;
  padding-block: clamp(70px, 8vw, 105px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9fff7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f9bc59;
  box-shadow: 0 0 0 5px rgba(249,188,89,.15);
}

.home-hero h1 {
  max-width: 820px;
  margin: 22px 0 20px;
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -.055em;
  line-height: .98;
}

.home-hero h1 span {
  color: #ffd78e;
}

.home-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(239, 255, 251, .84);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: rgba(239,255,251,.8);
  font-size: 13px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #ffe09d;
  font-size: 11px;
}

.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  inset: -36px -44px auto auto;
  width: 150px;
  height: 150px;
}

.orbit-two {
  right: -16px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  border-width: 16px;
  border-color: rgba(242,169,59,.18);
}

.calendar-mini {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 25px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.calendar-mini::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.cal-head {
  align-items: flex-start;
  padding-bottom: 17px;
}

.cal-head div {
  display: flex;
  flex-direction: column;
}

.cal-head small {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.cal-head strong {
  margin-top: 2px;
  font-size: 21px;
}

.schedule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.free-dot { background: var(--success); }
.busy-dot { background: var(--danger); }

.time-row {
  margin-top: 10px;
}

.time-row b {
  width: 50px;
  font-variant-numeric: tabular-nums;
}

.slot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 11px 13px 11px 30px;
}

.slot::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.calendar-link {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.stats-section {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

.home-stats {
  gap: 14px;
}

.home-stats .stat {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 116px;
  border-color: rgba(220,229,225,.78);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  padding: 20px;
  backdrop-filter: blur(14px);
}

.stat-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 20px;
  font-weight: 800;
}

.home-stats .stat b {
  margin-bottom: 6px;
  font-size: clamp(28px, 3vw, 36px);
}

.home-stats .stat-highlight {
  background: linear-gradient(145deg, #087367, #05584f);
  color: #fff;
}

.home-stats .stat-highlight .stat-icon {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.home-stats .stat-highlight span:not(.stat-icon) {
  color: rgba(255,255,255,.75);
}

.home-section {
  padding-top: clamp(70px, 8vw, 104px);
}

.section-head {
  align-items: flex-end;
}

.section-head h2 {
  margin-top: 7px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.035em;
}

.section-subtitle {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-weight: 700;
}

.card-grid {
  gap: 24px;
  margin-top: 32px;
}

.facility-card {
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(22,35,31,.07);
}

.facility-card:hover {
  transform: translateY(-7px);
}

.facility-image {
  position: relative;
  height: 230px;
  padding: 16px;
}

.facility-image > span {
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(22,35,31,.08);
}

.image-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(5,40,35,.22), transparent 55%);
}

.facility-body {
  padding: 21px 21px 22px;
}

.facility-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.facility-title-row h3 {
  margin-bottom: 9px;
}

.card-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 800;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.facility-card:hover .card-arrow {
  background: var(--brand);
  color: #fff;
  transform: rotate(8deg);
}

.facility-body p {
  min-height: 52px;
}

.meta {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.how {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(8,115,103,.09), transparent 22rem),
    var(--surface-soft);
}

.steps {
  counter-reset: step;
  gap: 18px;
  margin-top: 32px;
}

.steps > div {
  position: relative;
  overflow: hidden;
  min-height: 225px;
  border-radius: 20px;
  padding: 25px;
  box-shadow: none;
}

.steps > div::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: .7;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(8,115,103,.2);
}

.steps h3 {
  margin-top: 28px;
  font-size: 23px;
}

.home-cta-wrap {
  padding-top: 72px;
}

.home-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  background: linear-gradient(120deg, #043f38, #087367);
  color: #fff;
  padding: clamp(30px, 5vw, 54px);
  box-shadow: var(--shadow-lg);
}

.home-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 310px;
  height: 310px;
  border: 70px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.home-cta > * {
  position: relative;
  z-index: 1;
}

.home-cta h2 {
  margin: 7px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.035em;
}

.home-cta p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.72);
}

.home-cta .eyebrow {
  color: #ffd78e;
}

.page-head-modern {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-head-modern h1,
.page-head h1 {
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -.045em;
}

.page-head-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 8px 14px;
  font-weight: 700;
}

.filterbar-modern {
  align-items: center;
  border-radius: 20px;
  padding: 11px;
  box-shadow: 0 10px 30px rgba(22,35,31,.06);
}

.filterbar-modern label {
  flex: 0 0 auto;
}

.filterbar-modern .search-field {
  position: relative;
  flex: 1 1 360px;
}

.search-field i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  color: var(--muted);
  font-size: 21px;
  font-style: normal;
  transform: translateY(-50%);
}

.search-field input {
  padding-left: 44px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 2px;
}

.results-toolbar a {
  font-size: 14px;
  font-weight: 700;
}

.empty-modern {
  display: grid;
  justify-items: center;
  margin-top: 24px;
  border-radius: 22px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 28px;
}

.panel,
.auth-card,
.filterbar,
.empty {
  border-radius: 20px;
}

.panel {
  padding: clamp(20px, 3vw, 28px);
}

.stats-grid .stat {
  border-radius: 19px;
}

.stat {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stat:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.form-stack {
  gap: 20px;
}

label {
  color: #21342e;
  font-size: 14px;
}

input,
select,
textarea {
  min-height: 46px;
  border-radius: 12px;
  padding: 11px 13px;
}

textarea {
  min-height: 124px;
}

fieldset {
  border-radius: 16px;
  background: var(--surface-tint);
}

.selected-facility,
.notice {
  border-radius: 14px;
}

.table-wrap {
  border-radius: 14px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f7f5;
  color: #53635e;
  letter-spacing: .01em;
}

tbody tr {
  transition: background-color .14s ease;
}

.badge {
  border: 1px solid rgba(0,0,0,.035);
  padding: 6px 10px;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.alert-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.5);
  color: inherit;
  cursor: pointer;
  font-size: 20px;
}

.auth-modern {
  min-height: calc(100vh - var(--topbar-height));
  background:
    radial-gradient(circle at 12% 15%, rgba(8,115,103,.16), transparent 26rem),
    radial-gradient(circle at 90% 90%, rgba(242,169,59,.18), transparent 25rem),
    #eef5f3;
  padding: clamp(30px, 6vw, 72px) 20px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(420px, 1fr);
  width: min(1020px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(18,49,41,.17);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  background:
    linear-gradient(145deg, rgba(3,57,50,.96), rgba(8,115,103,.9)),
    #05584f;
  color: #fff;
  padding: clamp(36px, 5vw, 58px);
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.auth-visual::before {
  top: -150px;
  right: -140px;
  width: 410px;
  height: 410px;
  border: 90px solid rgba(255,255,255,.06);
}

.auth-visual::after {
  bottom: -100px;
  left: -90px;
  width: 260px;
  height: 260px;
  background: rgba(242,169,59,.13);
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-visual h2 {
  margin: 25px 0 16px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -.045em;
  line-height: 1.15;
}

.auth-visual p {
  margin: 0;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 30px;
}

.auth-feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-feature-list b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #ffd78e;
  font-size: 12px;
}

.auth-visual-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  padding: 15px 17px;
  backdrop-filter: blur(8px);
}

.auth-visual-card span {
  color: rgba(255,255,255,.7);
  font-size: 13px;
}

.auth-visual-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.auth-visual-card i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68e0bd;
  box-shadow: 0 0 0 5px rgba(104,224,189,.13);
}

.auth-shell .auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(34px, 6vw, 64px);
}

.auth-brand .eyebrow {
  display: block;
  margin-top: 20px;
}

.auth-brand h1 {
  margin-top: 7px;
  font-size: clamp(31px, 4vw, 42px);
  letter-spacing: -.04em;
}

.btn-google {
  border-color: #d7e0dd;
  box-shadow: 0 8px 22px rgba(22,35,31,.07);
}

.btn-google:hover {
  border-color: #c1ceca;
  background: #f9fbfa;
  color: var(--ink);
}

.google-icon {
  width: 19px;
  height: 19px;
}

footer {
  margin-top: 70px;
  background:
    radial-gradient(circle at 90% 30%, rgba(8,115,103,.22), transparent 25rem),
    #102d27;
  padding: 38px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-mark {
  width: 42px;
  height: 42px;
  box-shadow: none;
}

.footer-brand strong {
  font-size: 18px;
}

.footer-brand p {
  margin: 3px 0 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-meta span,
.footer-meta a {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 6px 10px;
  color: #c8dbd6;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .nav-user-name {
    display: none;
  }

  .nav-user {
    padding-left: 10px;
  }

  .home-hero .hero-grid {
    gap: 34px;
  }
}

@media (max-width: 980px) {
  .container,
  .narrow {
    width: min(100% - 32px, 1240px);
  }

  .nav {
    z-index: 46;
    top: calc(var(--topbar-height) + 8px);
    right: 16px;
    left: 16px;
    max-height: calc(100vh - var(--topbar-height) - 24px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 25px 70px rgba(9,34,29,.2);
  }

  .nav > a,
  .nav .link-button {
    min-height: 46px;
    padding: 12px 14px;
  }

  .nav > a::after {
    display: none;
  }

  .nav-user {
    max-width: none;
    margin: 5px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 12px 12px 6px;
  }

  .nav-user-name {
    display: inline;
  }

  .nav-logout {
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
  }

  .home-hero .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-panel {
    width: min(600px, 100%);
  }

  .calendar-mini {
    transform: none;
  }

  .stats-section {
    margin-top: -25px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: min(600px, 100%);
  }

  .auth-visual {
    display: none;
  }
}

@media (max-width: 700px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1240px);
  }

  .section {
    padding: 46px 0;
  }

  .brand small {
    max-width: 185px;
  }

  .home-hero .hero-grid {
    padding-block: 56px 78px;
  }

  .home-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-panel {
    display: block;
  }

  .calendar-mini {
    border-radius: 20px;
    padding: 21px;
  }

  .hero-trust {
    flex-direction: column;
  }

  .stats-section {
    margin-top: -32px;
  }

  .home-stats .stat {
    min-height: 96px;
  }

  .section-head,
  .page-head-modern,
  .home-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head-count {
    align-self: flex-start;
  }

  .facility-image {
    height: 220px;
  }

  .facility-body p {
    min-height: 0;
  }

  .steps > div {
    min-height: 0;
  }

  .home-cta .btn {
    align-self: stretch;
  }

  .filterbar-modern {
    padding: 14px;
  }

  .filterbar-modern label,
  .filterbar-modern .search-field,
  .filterbar-modern .btn {
    width: 100%;
  }

  .auth-modern {
    padding: 18px 12px 34px;
  }

  .auth-shell {
    border-radius: 22px;
  }

  .auth-shell .auth-card {
    padding: 30px 22px;
  }

  .table-wrap.has-card-table {
    overflow: visible;
    border-radius: 0;
  }

  .is-card-table {
    min-width: 0;
  }

  .is-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

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

  .is-card-table tbody {
    display: grid;
    gap: 13px;
  }

  .is-card-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 7px 20px rgba(22,35,31,.05);
  }

  .is-card-table tbody tr:hover {
    background: var(--surface);
  }

  .is-card-table td {
    display: grid;
    grid-template-columns: minmax(90px, 38%) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 11px 14px;
    overflow-wrap: anywhere;
  }

  .is-card-table td:last-child {
    border-bottom: 0;
  }

  .is-card-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .footer-grid,
  .footer-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .calendar-mini {
    padding: 18px;
  }

  .cal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-stats .stat {
    padding: 17px;
  }

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

  .is-card-table td {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ========================================================================== 
   SportSpace UI/UX System v1.1 — 2026-07-24
   Unified responsive components for public, member and administration pages.
   ========================================================================== */

:root {
  --surface-raised: rgba(255, 255, 255, .94);
  --surface-muted: #f1f6f4;
  --warning: #9a6500;
  --warning-soft: #fff5dc;
  --info-soft: #eaf3fd;
  --danger-soft: #fff0ef;
  --success-soft: #e8f8f2;
  --shadow-card: 0 16px 46px rgba(20, 49, 41, .09);
  --shadow-float: 0 28px 80px rgba(15, 55, 45, .15);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  min-width: 0;
}

footer {
  flex: 0 0 auto;
}

.flash-wrap {
  position: relative;
  z-index: 8;
}

.page-head-modern {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 4px 0;
}

.page-head-modern > div:first-child {
  min-width: 0;
}

.page-head-modern h1,
.page-head h1 {
  margin: 5px 0 0;
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.page-head-modern p {
  max-width: 760px;
  margin-top: 12px;
}

.page-head-count,
.panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 13px;
  white-space: nowrap;
}

.panel-elevated {
  border-color: rgba(207, 220, 215, .9);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-head h2,
.panel-head h3 {
  margin: 3px 0 0;
  line-height: 1.25;
}

.panel-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.metric-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: .44;
}

.metric-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.metric-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 23px;
  font-weight: 800;
}

.metric-card > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.metric-card b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.metric-card span:not(.metric-icon) {
  display: block;
  font-weight: 750;
}

.metric-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.metric-card.attention .metric-icon { background: var(--warning-soft); color: var(--warning); }
.metric-card.attention::after { background: var(--warning-soft); }
.metric-card.success .metric-icon { background: var(--success-soft); color: var(--success); }
.metric-card.success::after { background: var(--success-soft); }
.metric-card.info .metric-icon { background: var(--info-soft); color: var(--info); }
.metric-card.info::after { background: var(--info-soft); }
.metric-card.danger-soft .metric-icon { background: var(--danger-soft); color: var(--danger); }
.metric-card.danger-soft::after { background: var(--danger-soft); }

.booking-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
}

.booking-link span {
  opacity: .65;
  transition: transform .15s ease;
}

.booking-link:hover span {
  transform: translate(2px, -2px);
}

.notification-panel {
  align-self: start;
}

.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.notification-item:first-child { padding-top: 0; }
.notification-item:last-child { border-bottom: 0; padding-bottom: 0; }

.notification-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 8px;
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.notification-item p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.55;
}

.notification-item small {
  color: #87928e;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 20px;
  align-items: stretch;
}

.usage-panel,
.quick-actions-panel {
  min-height: 370px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1vw, 12px);
  height: 245px;
  border-bottom: 1px solid var(--line);
  padding: 22px 4px 0;
}

.mini-chart-column {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 18px;
  height: 100%;
}

.mini-chart-column i {
  width: min(34px, 76%);
  min-height: 8px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #18a38f, var(--brand));
  box-shadow: 0 8px 18px rgba(8, 115, 103, .18);
  transition: filter .16s ease, transform .16s ease;
}

.mini-chart-column:hover i {
  filter: brightness(1.07);
  transform: scaleX(1.08);
}

.mini-chart-column small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.mini-chart-value {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.quick-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-action-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-tint);
  color: var(--ink);
  padding: 13px;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.quick-action-list a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateX(3px);
}

.quick-action-list a > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.quick-action-list b,
.quick-action-list small {
  display: block;
}

.quick-action-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.quick-action-list i {
  color: var(--brand);
  font-style: normal;
}

.filterbar-wide {
  flex-wrap: wrap;
}

.filterbar-wide .search-field {
  flex: 1 1 300px;
}

.filterbar-wide label:not(.search-field) {
  flex: 1 1 170px;
}

.table-action-form select {
  min-width: 150px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.table-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
}

.status-pending { background: var(--warning-soft); color: var(--warning); }
.status-active { background: var(--success-soft); color: var(--success); }
.status-suspended { background: var(--danger-soft); color: var(--danger); }
.status-maintenance { background: var(--warning-soft); color: var(--warning); }
.status-inactive { background: #eef1f0; color: #56645f; }

.form-section {
  position: relative;
  margin-bottom: 18px;
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.form-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.form-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-section-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.compact-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-tint);
  padding: 20px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
}

.form-actions-between { justify-content: space-between; }
.form-actions-end { justify-content: flex-end; }

.consent-box {
  border: 1px solid #cde0da;
  border-radius: 14px;
  background: #f2f8f6;
  padding: 14px;
}

.consent-box span {
  line-height: 1.6;
}

label.is-disabled {
  opacity: .52;
}

.auth-brand-left {
  text-align: left;
}

.register-shell {
  grid-template-columns: minmax(320px, .68fr) minmax(620px, 1.32fr);
  width: min(1180px, 100%);
}

.register-visual {
  justify-content: flex-start;
  min-height: 760px;
  padding-top: clamp(50px, 7vw, 85px);
}

.register-card {
  overflow-y: auto;
}

.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.booking-progress span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.booking-progress b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e8eeec;
  color: var(--muted);
  font-size: 11px;
}

.booking-progress span.active { color: var(--brand-strong); }
.booking-progress span.active b { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.booking-progress > i { width: 52px; height: 1px; background: var(--line-strong); }

.booking-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.booking-create-form .panel {
  margin-bottom: 18px;
}

.selected-facility {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
  margin-top: 2px;
}

.selected-facility-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  font-size: 21px;
  box-shadow: var(--shadow-sm);
}

.selected-facility b,
.selected-facility span,
.selected-facility small {
  display: block;
}

.selected-facility span { margin-top: 2px; color: #47625b; font-size: 14px; }
.selected-facility small { margin-top: 3px; }

.booking-live-summary {
  top: calc(var(--topbar-height) + 76px);
  border-top: 5px solid var(--brand);
  box-shadow: var(--shadow-float);
}

.booking-live-summary h2 {
  margin: 5px 0 18px;
}

.booking-live-summary dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.booking-live-summary dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.booking-live-summary dt { color: var(--muted); }
.booking-live-summary dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }

.card-helper {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.booking-date-duration-grid {
  grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.2fr);
  margin-top: 18px;
}

.availability-picker {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-tint);
  padding: 18px;
}

.availability-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.availability-picker-head b,
.availability-picker-head small {
  display: block;
}

.availability-picker-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.availability-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.availability-status {
  min-height: 22px;
  margin-bottom: 13px;
  color: #47625b;
  font-size: 13px;
  line-height: 1.55;
}

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

.slot-button,
.slot-skeleton {
  min-height: 58px;
  border-radius: 13px;
}

.slot-button {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #c8ddd7;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.slot-button b {
  font-size: 15px;
}

.slot-button small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.slot-button:not(:disabled):hover {
  border-color: var(--brand);
  box-shadow: 0 5px 16px rgba(8,115,103,.10);
  transform: translateY(-1px);
}

.slot-button.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(8,115,103,.10);
}

.slot-button.unavailable {
  border-color: #e5e9e7;
  background: #f4f6f5;
  color: #7c8985;
  cursor: not-allowed;
  opacity: .72;
}

.slot-skeleton {
  background: linear-gradient(90deg, #edf2f0 25%, #f7f9f8 50%, #edf2f0 75%);
  background-size: 200% 100%;
  animation: slot-pulse 1.1s linear infinite;
}

@keyframes slot-pulse {
  to { background-position: -200% 0; }
}

.availability-error {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.booking-cost-preview {
  margin: 17px 0;
  border: 1px solid #cde0da;
  border-radius: 15px;
  background: #f2f8f6;
  padding: 12px 14px;
}

.booking-cost-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
}

.booking-cost-preview span { color: var(--muted); }
.booking-cost-preview b { color: var(--text); }
.booking-cost-preview .booking-cost-total {
  border-top: 1px solid #cde0da;
  margin-top: 5px;
  padding-top: 10px;
}
.booking-cost-preview .booking-cost-total b {
  color: var(--brand-strong);
  font-size: 16px;
}

.booking-review-dialog {
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 22px;
  background: transparent;
  padding: 0;
  box-shadow: var(--shadow-float);
}

.booking-review-dialog::backdrop {
  background: rgba(17, 32, 28, .52);
  backdrop-filter: blur(3px);
}

.booking-review-card {
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: #fff;
  padding: clamp(22px, 4vw, 32px);
}

.booking-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.booking-review-head h2 { margin: 4px 0 4px; }
.booking-review-head p { margin: 0; color: var(--muted); font-size: 13px; }

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 23px;
  cursor: pointer;
}

.booking-review-list {
  margin: 0;
}

.booking-review-list > div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.booking-review-list dt { color: var(--muted); }
.booking-review-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.booking-review-cost {
  margin: 18px 0;
  border-radius: 16px;
  background: var(--brand-soft);
  padding: 14px 16px;
}

.booking-review-cost > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
}

.booking-review-cost span { color: #47625b; }
.booking-review-cost strong { color: var(--brand-strong); font-size: 19px; }

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

.booking-page-head .page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
}

.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  margin: 0 0 22px;
  padding: 16px 18px;
}

.status-banner-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-weight: 800;
}

.status-banner b { display: block; }
.status-banner p { margin: 3px 0 0; line-height: 1.55; }
.status-banner-danger { border-color: #efc8c5; background: var(--danger-soft); color: #7d312e; }
.status-banner-danger .status-banner-icon { background: #fff; color: var(--danger); }
.status-banner-info { border-color: #c9ddef; background: var(--info-soft); color: #315f8a; }
.status-banner-info .status-banner-icon { background: #fff; color: var(--info); }

.timeline-panel .timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.timeline-panel .timeline-item {
  position: relative;
  display: block;
  padding: 0 8px;
  text-align: center;
}

.timeline-panel .timeline-item::before {
  top: 7px;
  right: 50%;
  bottom: auto;
  left: -50%;
  width: 100%;
  height: 2px;
}

.timeline-panel .timeline-item:first-child::before { display: none; }

.timeline-panel .timeline-item i {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto 10px;
}

.timeline-panel .timeline-item b {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.timeline-panel .timeline-item small {
  margin-top: 3px;
  font-size: 10px;
}

.timeline-panel .timeline-item.current i {
  box-shadow: 0 0 0 6px var(--brand-soft);
}

.details-modern dt,
.details-modern dd {
  padding-block: 14px;
}

.total-value {
  color: var(--brand-strong);
  font-size: 20px;
  font-weight: 800 !important;
}

.action-panel .eyebrow + h2,
.action-panel .eyebrow + h3 {
  margin: 5px 0 10px;
}

.amount-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfe3dd;
  border-radius: 14px;
  background: var(--brand-soft);
  margin: 14px 0 18px;
  padding: 13px 15px;
}

.amount-callout span { color: #46625b; font-size: 13px; }
.amount-callout b { color: var(--brand-strong); font-size: 20px; }

.processing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  background: var(--warning-soft);
  color: var(--warning);
  margin-top: 15px;
  padding: 12px 14px;
  font-weight: 700;
}

.processing-indicator i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d39413;
  box-shadow: 0 0 0 5px rgba(211, 148, 19, .15);
}

.facility-detail-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 64px;
}

.facility-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.22));
  pointer-events: none;
}

.facility-hero-content {
  position: relative;
  z-index: 1;
}

.hero-back-link {
  display: block;
  width: fit-content;
  margin-bottom: 28px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 700;
}

.hero-back-link:hover { color: #fff; }

.facility-detail-hero .pill {
  display: inline-flex;
  backdrop-filter: blur(8px);
}

.facility-detail-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -.05em;
}

.facility-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 26px;
  align-items: start;
}

.content-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.amenities-grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
}

.amenities-grid i { font-style: normal; }

.schedule-list-modern > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 8px;
}

.schedule-date b { font-size: 19px; line-height: 1; }
.schedule-date small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.schedule-time strong,
.schedule-time small { display: block; }
.schedule-time small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.booking-summary-card {
  top: calc(var(--topbar-height) + 74px);
}

.price-summary {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.price-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.price-summary span { color: var(--muted); }
.price-summary b { color: var(--ink); }
.price-summary b small { color: var(--muted); font-size: 11px; font-weight: 500; }

.notice-warning {
  border-color: #ead49d;
  background: var(--warning-soft);
  color: #6f5317;
}

.notice-warning b { display: block; margin-bottom: 3px; }
.notice-warning p { margin: 0; }

.operating-hours-card .hours > div:last-child { border-bottom: 0; }
.hours b.closed { color: var(--danger); }

.checkin-page {
  display: grid;
  min-height: calc(100vh - var(--topbar-height));
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(8,115,103,.17), transparent 26rem),
    radial-gradient(circle at 90% 80%, rgba(242,169,59,.18), transparent 26rem),
    #eef5f3;
  padding: 44px 16px;
}

.checkin-shell {
  display: grid;
  grid-template-columns: 300px minmax(360px, 480px);
  overflow: hidden;
  width: min(780px, 100%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-float);
}

.checkin-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 540px;
  background: linear-gradient(145deg, #064f47, #0a8b7c);
}

.checkin-visual span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 54px;
  box-shadow: 0 0 0 25px rgba(255,255,255,.055);
}

.checkin-visual i {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 50px solid rgba(255,255,255,.055);
  border-radius: 50%;
}

.checkin-visual i:first-of-type { top: -130px; right: -100px; }
.checkin-visual i:last-of-type { bottom: -150px; left: -100px; }

.checkin-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.checkin-card h1 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.checkin-date {
  color: var(--muted);
  margin: 0;
}

.checkin-date strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.checkin-code {
  display: flex;
  flex-direction: column;
  margin: 22px 0;
  border-radius: 17px;
  padding: 17px 20px;
}

.checkin-code small { color: rgba(255,255,255,.7); font-size: 12px; }
.checkin-code b { margin-top: 3px; letter-spacing: .13em; }

.report-filter {
  justify-content: flex-end;
}

.report-filter label {
  min-width: 180px;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: 20px;
  align-items: start;
}

.status-bar-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.status-bar-list > div > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 13px;
}

.status-bar-list i {
  display: block;
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e8efed;
}

.status-bar-list i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #20a890);
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 38%);
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.setting-row:last-child { border-bottom: 0; }
.setting-row label { display: block; margin-bottom: 3px; color: var(--ink); font-size: 16px; font-weight: 750; }
.setting-row p { margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.setting-row code { color: #71807b; font-size: 11px; }

.error-page {
  display: grid;
  min-height: calc(100vh - var(--topbar-height));
  place-items: center;
  background:
    radial-gradient(circle at 10% 15%, rgba(8,115,103,.15), transparent 24rem),
    radial-gradient(circle at 90% 85%, rgba(242,169,59,.16), transparent 24rem),
    var(--bg);
  padding: 46px 16px;
}

.error-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-float);
}

.error-card .error-code {
  display: block;
  margin-bottom: -8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(74px, 14vw, 128px);
  line-height: 1;
}

.error-card h1 { margin: 7px 0 10px; font-size: clamp(30px, 5vw, 44px); }
.error-card p { max-width: 500px; margin: 0 auto; color: var(--muted); }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.footer-brand small {
  display: block;
  margin-top: 4px;
  color: #819f97;
  font-size: 11px;
}

.footer-status {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.footer-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5dd8b4;
  box-shadow: 0 0 0 4px rgba(93,216,180,.12);
}

button[aria-busy="true"] {
  cursor: wait;
  opacity: .78;
}

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview-grid,
  .report-grid { grid-template-columns: 1fr; }
  .quick-actions-panel { min-height: 0; }
  .booking-create-layout,
  .facility-detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .register-shell { grid-template-columns: 300px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .booking-create-layout,
  .facility-detail-layout { grid-template-columns: 1fr; }
  .booking-live-summary,
  .booking-summary-card { position: static; }
  .facility-detail-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .register-shell { grid-template-columns: 1fr; width: min(760px, 100%); }
  .register-visual { display: none; }
  .timeline-panel .timeline { grid-template-columns: repeat(3, 1fr); gap: 24px 0; }
  .timeline-panel .timeline-item:nth-child(4)::before { display: none; }
  .checkin-shell { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .page-head-modern {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head-modern .btn,
  .page-head-modern > .large-badge {
    align-self: flex-start;
  }

  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-card { min-height: 112px; gap: 12px; padding: 16px; }
  .metric-icon { width: 43px; height: 43px; border-radius: 14px; font-size: 20px; }
  .metric-card b { font-size: 29px; }
  .metric-card small { display: none; }

  .panel-head { align-items: stretch; flex-direction: column; }
  .panel-head .btn,
  .panel-head .panel-count { align-self: flex-start; }

  .booking-progress { justify-content: flex-start; overflow-x: auto; padding: 6px; }
  .booking-progress > i { width: 30px; flex: 0 0 30px; }
  .booking-date-duration-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-review-actions { align-items: stretch; flex-direction: column-reverse; }
  .booking-review-actions .btn { width: 100%; }

  .form-actions,
  .form-actions-between,
  .form-actions-end { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }

  .facility-detail-hero { min-height: 350px; padding: 60px 0 44px; }
  .facility-detail-aside { grid-template-columns: 1fr; }
  .facility-hero-meta { flex-direction: column; gap: 8px; }
  .schedule-list-modern > div { grid-template-columns: 52px minmax(0, 1fr); }
  .schedule-list-modern > div > .badge { grid-column: 2; justify-self: start; }

  .timeline-panel .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-panel .timeline-item { display: flex; gap: 13px; padding: 0 0 22px; text-align: left; }
  .timeline-panel .timeline-item::before,
  .timeline-panel .timeline-item:nth-child(4)::before { display: block; top: 15px; right: auto; bottom: 0; left: 7px; width: 2px; height: auto; }
  .timeline-panel .timeline-item:last-child::before { display: none; }
  .timeline-panel .timeline-item i { flex: 0 0 auto; margin: 3px 0 0; }

  .details-modern { grid-template-columns: 1fr; }
  .details-modern dt { border-bottom: 0; padding-bottom: 0; }
  .details-modern dd { padding-top: 4px; }

  .checkin-shell { grid-template-columns: 1fr; }
  .checkin-visual { min-height: 180px; }
  .checkin-visual span { width: 78px; height: 78px; font-size: 36px; box-shadow: 0 0 0 16px rgba(255,255,255,.055); }
  .checkin-card { padding: 30px 22px; }

  .setting-row { grid-template-columns: 1fr; gap: 12px; }
  .report-filter { align-items: stretch; }
  .report-filter label { min-width: 0; }

  .table-action-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .table-action-form select,
  .table-action-form .btn { width: 100%; min-width: 0; }

  .mini-chart { gap: 5px; overflow-x: auto; }
  .mini-chart-column { flex: 0 0 34px; }
}

@media (max-width: 430px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card small { display: block; }
  .metric-card { min-height: 108px; }
  .compact-section { padding: 16px; }
  .form-section-head { gap: 10px; }
  .booking-live-summary dl > div { grid-template-columns: 78px minmax(0, 1fr); }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .availability-picker { padding: 14px; }
  .booking-review-list > div { grid-template-columns: 1fr; gap: 4px; }
  .status-banner { padding: 14px; }
  .error-actions .btn { width: 100%; }
}

.auth-privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

/* Super Admin user editor */
.user-admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.user-account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.account-security-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.badge-neutral {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}
.security-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #d5e6e1;
  border-radius: var(--radius);
  background: #f7fbfa;
  padding: 13px 14px;
}
.security-callout span {
  color: var(--muted);
  font-size: 14px;
}
.user-edit-page input[readonly] {
  background: #f4f7f6;
  color: var(--muted);
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .user-account-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-security-flags {
    justify-content: flex-start;
  }
  .user-admin-actions,
  .user-admin-actions .table-action-form,
  .user-admin-actions .btn {
    width: 100%;
  }
}

/* ========================================================================== 
   SportSpace v1.2.0 — P1/P2 UX Friction Reduction
   Progressive disclosure, payment mental-model, check-in prevention,
   mobile thumb-zone CTA, and data-backed home live schedule.
   ========================================================================== */

.booking-optional-details,
.recurrence-disclosure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.booking-optional-details {
  margin-top: 18px;
  background: var(--surface-tint);
}

.booking-optional-details > summary,
.recurrence-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.booking-optional-details > summary::-webkit-details-marker,
.recurrence-disclosure > summary::-webkit-details-marker { display: none; }

.booking-optional-details > summary span,
.recurrence-summary-copy { min-width: 0; flex: 1; }
.booking-optional-details > summary b,
.booking-optional-details > summary small,
.recurrence-summary-copy b,
.recurrence-summary-copy small { display: block; }
.booking-optional-details > summary small,
.recurrence-summary-copy small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.booking-optional-details > summary i { color: var(--brand); font-size: 22px; font-style: normal; transition: transform .18s ease; }
.booking-optional-details[open] > summary i { transform: rotate(45deg); }
.booking-optional-content,
.recurrence-content { border-top: 1px solid var(--line); padding: 18px 16px 16px; }

.recurrence-disclosure { margin-bottom: 18px; }
.recurrence-disclosure > summary { padding: 16px 18px; }
.recurrence-disclosure > summary .form-section-number { margin: 0; }
.recurrence-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}
.recurrence-disclosure[data-disabled="true"] > summary { cursor: not-allowed; opacity: .65; }
.recurrence-disclosure[data-disabled="true"] .recurrence-badge { background: #eef1f0; color: var(--muted); }

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

.payment-action-panel > p { margin-top: -6px; color: var(--muted); line-height: 1.55; }
.payment-method-panel { display: grid; gap: 13px; }
.payment-method-panel[hidden] { display: none !important; }
.payment-instructions {
  border: 1px solid #cde0da;
  border-radius: 15px;
  background: #f2f8f6;
  padding: 14px;
}
.payment-instructions-head { margin-bottom: 9px; }
.payment-instructions-head b,
.payment-instructions-head small { display: block; }
.payment-instructions-head small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.payment-info-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #d9e9e4;
  padding: 8px 0;
}
.payment-info-row span { color: var(--muted); font-size: 12px; }
.payment-info-row strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.mini-copy {
  min-width: 54px;
  min-height: 34px;
  border: 1px solid #c4d9d3;
  border-radius: 9px;
  background: #fff;
  color: var(--brand-strong);
  padding: 5px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.payment-qr {
  display: block;
  width: min(180px, 68%);
  height: auto;
  margin: 12px auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 8px;
}
.payment-instructions p { margin: 8px 0 0; color: #47625b; font-size: 12px; line-height: 1.55; }
.cash-instructions { border-color: #e7d7b6; background: #fff8e9; }
.cash-instructions > b { color: #765315; }
.cash-instructions small { display: block; margin-top: 8px; color: #715f3d; line-height: 1.5; }
.compact-banner { margin: 12px 0; padding: 12px; }

.btn.is-disabled,
.btn[aria-disabled="true"] {
  border-color: #dce3e0;
  background: #eef2f0;
  color: #7d8985;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.checkin-window-status {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.checkin-window-status b { display: block; }
.checkin-window-status p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.checkin-window-open { border-color: #b9dfd3; background: #edf9f5; color: #176653; }
.checkin-window-wait { border-color: #ead8ad; background: #fff8e8; color: #785818; }
.checkin-window-closed { border-color: #ebc8c5; background: #fff1f0; color: #7b3834; }
.checkin-window-staff { border-color: #cbdcef; background: #f0f6fc; color: #315f8a; }
.checkin-countdown {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.settings-form { display: grid; gap: 18px; }
.settings-group { margin: 0; }
.settings-save-bar {
  position: sticky;
  bottom: 14px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #cbded8;
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  padding: 12px 14px;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(10px);
}
.settings-save-bar span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.payment-setting-row textarea { min-height: 92px; }

.pending-dot { background: #d69b28; }

.slot.completed {
  background: #edf4f1;
  color: #48675e;
}
.live-schedule-row .slot {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.live-schedule-row .slot strong,
.live-schedule-row .slot small { display: block; }
.live-schedule-row .slot strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-schedule-row .slot small { margin-top: 2px; color: currentColor; font-size: 10px; font-weight: 500; opacity: .78; }
.live-schedule-empty {
  margin: 18px 0 8px;
  border: 1px dashed #cbdad5;
  border-radius: 14px;
  background: #f7faf9;
  padding: 18px;
  text-align: center;
}
.live-schedule-empty b { display: block; }
.live-schedule-empty p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 980px) {
  .booking-create-page { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
  .booking-live-summary [data-review-booking],
  .booking-live-summary [data-review-readiness] { display: none; }
  .booking-mobile-action {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 42;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    border-top: 1px solid #cbded8;
    background: rgba(255,255,255,.96);
    padding: 10px max(20px, calc((100vw - 1240px) / 2)) calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 34px rgba(17, 43, 36, .12);
    backdrop-filter: blur(12px);
  }
  .booking-mobile-action > div { min-width: 0; }
  .booking-mobile-action small,
  .booking-mobile-action b { display: block; }
  .booking-mobile-action small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .booking-mobile-action b { margin-top: 1px; color: var(--brand-strong); font-size: 15px; }
  .booking-mobile-action .btn { flex: 0 0 auto; min-height: 50px; }
}

@media (max-width: 700px) {
  .settings-save-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .settings-save-bar .btn { width: 100%; }
  .payment-info-row { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .recurrence-disclosure > summary { align-items: flex-start; }
  .recurrence-badge { margin-top: 3px; }
}

@media (max-width: 430px) {
  .booking-mobile-action { padding-right: 14px; padding-left: 14px; }
  .booking-mobile-action .btn { padding-inline: 14px; font-size: 13px; }
  .payment-info-row { grid-template-columns: 1fr auto; }
  .payment-info-row span { grid-column: 1 / -1; }
  .recurrence-disclosure > summary { flex-wrap: wrap; }
  .recurrence-summary-copy { flex-basis: calc(100% - 50px); }
  .recurrence-badge { margin-left: 44px; }
}
