:root {
  color-scheme: light;
  --blue: #1455d9;
  --blue-strong: #0a3fb4;
  --ink: #172033;
  --muted: #627084;
  --line: #d8dee8;
  --soft: #eef5ff;
  --mint: #dff7ee;
  --gold: #ffe8a3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f8fb;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
}

.nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 0.6rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 3rem;
  width: 3rem;
}

.brand-text {
  min-width: 0;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 2.5rem;
    width: 2.5rem;
  }
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
}

.link {
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  align-items: center;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  text-align: center;
  white-space: normal;
}

.button.secondary {
  background: var(--soft);
  color: var(--blue-strong);
}

.button.ghost {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(110deg, rgba(20, 85, 217, 0.92), rgba(23, 32, 51, 0.84)),
    url("../../../flutter/assets/images/onbooking.jpg") center/cover;
  color: var(--white);
  display: grid;
  min-height: 520px;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
  place-items: center start;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.lead {
  font-size: 1.15rem;
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem);
}

.section-inner {
  margin: 0 auto;
  max-width: 1120px;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.dashboard-tabs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.35rem;
}

.dashboard-tabs a {
  border-radius: 6px;
  color: var(--muted);
  flex: 1 1 10rem;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.65rem 0.75rem;
  text-align: center;
  text-decoration: none;
}

.dashboard-tabs a.active {
  background: var(--blue);
  color: var(--white);
}

.hours-card {
  grid-column: 1 / -1;
}

.appointment-card {
  grid-column: 1 / -1;
  order: -1;
}

.profile-card {
  grid-column: 1 / -1;
}

.profile-card > .compact-form,
.hours-card > .compact-form,
.rules-card > .compact-form {
  max-width: none;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 1.25rem;
}

.price {
  color: var(--blue-strong);
  font-size: 2.35rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.pricing-section-heading {
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.pricing-cta-card {
  margin-bottom: 0;
}

.pricing-setup-copy {
  color: #d4a017;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 1rem;
}

.upgrade-popular-badge {
  align-items: center;
  display: inline-flex;
  gap: 0.28rem;
}

.pricing-package-grid {
  align-items: stretch;
}

.pricing-package-card {
  height: 100%;
}

.upgrade-price-display {
  align-items: baseline;
  background: var(--white);
  border: 2px solid #416ddd;
  border-radius: 6px;
  color: var(--blue-strong);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.65rem;
}

.upgrade-price-display strong {
  font-size: 1.35rem;
}

.upgrade-price-display span {
  color: var(--muted);
  font-weight: 800;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.oauth-form {
  margin: 18px 0;
}

.connected-account-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 18px 0;
}

.connected-account-row p {
  margin: 0;
}

.link-button {
  background: transparent;
  border: 0;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

.form-helper {
  margin: -4px 0 8px;
  font-size: 0.92rem;
}

.form-helper a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.form-helper a:hover {
  text-decoration: underline;
}

.google-button {
  background: #fff;
  color: #111827;
  border-color: #cbd5e1;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-field {
  min-height: 65px;
}

.compact-form {
  margin-top: 1rem;
}

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

.profile-location-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) 6rem 9rem;
}

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

.input-with-unit {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.input-with-unit span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-label {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

.field-error {
  color: #b3261e;
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.12);
}

.date-picker-input {
  cursor: pointer;
}

.date-picker-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.date-picker-popover {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(23, 32, 51, 0.26);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 0.85rem;
  position: absolute;
  z-index: 100;
}

.date-picker-header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.date-picker-header button {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-picker-weekdays {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  text-align: center;
}

.date-picker-grid button {
  background: var(--white);
  border: 1px solid #e1e6ee;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 2.35rem;
}

.date-picker-grid button:hover {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.date-picker-grid button.outside-month {
  color: #9aa4b3;
}

.date-picker-grid button.selected-day {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.date-picker-grid button:disabled {
  background: #f2f4f8;
  border-color: #d7dde8;
  color: #a4adba;
  cursor: not-allowed;
  text-decoration: line-through;
}

.field textarea {
  resize: vertical;
}

.closed-date-input {
  background: #fff1f1;
  border-color: #d93025;
  color: #a12018;
}

.closed-date-message {
  color: #a12018;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.hours-row {
  align-items: end;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 8rem) minmax(0, 8rem) minmax(6rem, auto);
}

.hours-row input[type="time"] {
  min-width: 0;
  width: 100%;
}

.inline-check {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.35rem;
  min-height: 3rem;
  white-space: nowrap;
}

.inline-check input {
  flex: 0 0 auto;
}

.dashboard-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.dashboard-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.business-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.business-title-row .eyebrow {
  color: var(--ink);
  margin: 0;
}

.dashboard-booking-link {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
}

.dashboard-booking-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-booking-link a,
.dashboard-booking-link em {
  color: var(--blue-strong);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dashboard-booking-link em {
  color: #8d97a8;
}

.copy-link-button {
  background: var(--soft);
  border: 1px solid #c7d8ff;
  border-radius: 6px;
  color: var(--blue-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 1.8rem;
  padding: 0.25rem 0.45rem;
}

.copy-link-button:hover {
  border-color: var(--blue);
}

.pwa-install-button[hidden] {
  display: none;
}

.install-help-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.install-help-list p {
  background: var(--soft);
  border: 1px solid #c7d8ff;
  border-radius: 8px;
  margin: 0;
  padding: 0.8rem 0.9rem;
}

.locked-plan-field {
  align-items: stretch;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.locked-plan-field input:disabled {
  background: #f3f5f8;
  color: #596579;
  cursor: not-allowed;
}

.upgrade-dialog {
  max-height: calc(100dvh - 2rem);
  max-width: min(980px, calc(100vw - 2rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.upgrade-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
}

.upgrade-package-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
}

.upgrade-package-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

.upgrade-package-card.featured {
  background: #416ddd;
  border-color: #416ddd;
  color: var(--white);
}

.upgrade-package-card h3,
.upgrade-package-card p {
  margin: 0;
}

.upgrade-package-topline {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.upgrade-package-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upgrade-current-badge {
  background: rgba(32, 93, 219, 0.12);
  border-radius: 999px;
  color: var(--blue-strong);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.upgrade-package-card.featured .upgrade-package-kicker,
.upgrade-package-card.featured .upgrade-staff-count,
.upgrade-package-card.featured .upgrade-feature-list {
  color: rgba(255, 255, 255, 0.9);
}

.upgrade-package-card.featured .upgrade-current-badge {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.upgrade-staff-count {
  border-left: 3px solid #ffb22c;
  color: var(--muted);
  font-weight: 800;
  padding-left: 0.7rem;
}

.upgrade-price-button {
  align-items: baseline;
  background: var(--white);
  border: 2px solid #416ddd;
  border-radius: 6px;
  color: var(--blue-strong);
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.65rem;
}

.upgrade-price-button strong {
  font-size: 1.35rem;
}

.upgrade-price-button span {
  color: var(--muted);
  font-weight: 800;
}

.upgrade-price-button:hover {
  box-shadow: 0 10px 24px rgba(32, 93, 219, 0.18);
  transform: translateY(-1px);
}

.upgrade-feature-list {
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.upgrade-feature-list li::before {
  color: var(--blue-strong);
  content: "\2713";
  font-weight: 900;
  margin-right: 0.4rem;
}

.upgrade-package-card.featured .upgrade-feature-list li::before {
  color: var(--white);
}

.card-heading-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.card-heading-row h2 {
  margin: 0;
}

.appointment-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.segmented-control {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
}

.segmented-control a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.segmented-control a.active {
  background: var(--white);
  color: var(--blue-strong);
  box-shadow: 0 1px 4px rgba(23, 32, 51, 0.08);
}

.compact-button {
  min-height: 2.45rem;
  padding: 0.5rem 0.8rem;
  white-space: nowrap;
}

.status {
  background: var(--mint);
  border-radius: 999px;
  color: #126342;
  display: inline-flex;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
}

.pending-status {
  background: #fff3cd;
  color: #7a5200;
}

.onboarding-card {
  margin-top: 1rem;
}

.onboarding-card .muted {
  margin-bottom: 0;
}

.setup-status-stack {
  align-items: flex-end;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.setup-progress {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.progress-track {
  background: #e8edf5;
  border-radius: 999px;
  height: 0.55rem;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-track span {
  background: var(--blue);
  display: block;
  height: 100%;
}

.onboarding-steps {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.onboarding-steps li {
  align-items: center;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0.75rem;
}

.onboarding-steps li.is-done {
  background: #f4fbf8;
  border-color: #b9ead7;
}

.step-check {
  align-items: center;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 50%;
  color: #126342;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 900;
  height: 1.6rem;
  justify-content: center;
  width: 1.6rem;
}

.is-done .step-check {
  background: var(--mint);
  border-color: #8bd8ba;
}

.onboarding-steps strong,
.onboarding-steps small,
.onboarding-steps span {
  display: block;
}

.onboarding-steps small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  margin-top: 0.12rem;
}

.onboarding-steps li > div span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.step-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.step-actions form {
  margin: 0;
}

.small-status {
  font-size: 0.82rem;
  padding: 0.25rem 0.55rem;
}

.setup-dashboard-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-dashboard-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-status-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: 1rem;
}

.setup-status-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.setup-status-card p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.setup-status-card .status {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.appointment-status-confirmed {
  background: #e7f0ff;
  color: #0a3fb4;
}

.appointment-status-in_progress {
  background: #fff3cd;
  color: #7a5200;
}

.appointment-status-completed {
  background: #dff7ee;
  color: #126342;
}

.appointment-status-cancelled {
  background: #f8d7da;
  color: #842029;
}

.appointment-time-fields {
  display: grid;
  gap: 0.45rem;
  position: relative;
}

.appointment-time-fields input,
.appointment-service-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
  width: 100%;
}

.appointment-time-fields input[type="date"],
.appointment-time-fields input[type="time"] {
  min-width: 0;
}

.appointment-service-editor {
  display: grid;
  gap: 0.5rem;
}

.service-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-pill {
  align-items: center;
  background: var(--soft);
  border: 1px solid #c7d8ff;
  border-radius: 999px;
  color: var(--blue-strong);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.3rem 0.55rem;
}

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

.service-pill strong {
  background: rgba(10, 63, 180, 0.12);
  border-radius: 50%;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  line-height: 1;
  width: 1rem;
}

.service-pill:has(input:not(:checked)) {
  opacity: 0.45;
  text-decoration: line-through;
}

.service-editor-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.service-admin-category {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.service-admin-category-header {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.service-admin-category-header h3 {
  font-size: 1rem;
  margin: 0;
}

.category-name-title {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  cursor: text;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  min-height: 2.35rem;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.35rem 0.45rem;
  text-align: left;
}

.category-name-title:hover,
.category-name-title:focus {
  background: var(--white);
  border-color: var(--line);
  outline: none;
}

.drag-handle {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: grab;
  display: inline-flex;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.service-admin-category-items {
  display: grid;
  gap: 0.55rem;
}

.service-admin-category.is-dragging,
.service-editor-row.is-dragging {
  opacity: 0.45;
}

.category-order-form {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.9rem;
}

.category-order-form h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.category-order-list {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.category-order-row {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) auto 4.8rem;
  padding: 0.55rem;
}

.category-order-row > span:first-child {
  font-weight: 800;
}

.category-order-row input {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 2.25rem;
  padding: 0.35rem 0.45rem;
  width: 100%;
}

.service-editor-row {
  align-items: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(11rem, 1.3fr) minmax(10rem, 1fr) minmax(6rem, 0.55fr) minmax(6rem, 0.55fr) auto;
  padding: 0.75rem;
}

.service-editor-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.category-picker-popover {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.18);
  display: grid;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.35rem;
  z-index: 120;
}

.category-picker-popover[hidden] {
  display: none;
}

.category-picker-popover button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.category-picker-popover button:hover {
  background: var(--soft);
}

.appointment-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.small-button {
  font-size: 0.82rem;
  min-height: 2.05rem;
  padding: 0.35rem 0.55rem;
}

.danger-button {
  border-color: #f1b6bd;
  color: #842029;
}

.checklist {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.checklist li {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
}

.check {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  height: 1.5rem;
  justify-content: center;
  width: 1.5rem;
}

.table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.table-scroll {
  overflow-x: visible;
  width: 100%;
}

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

.appointment-table .booking-id-col {
  width: 7rem;
}

.appointment-table .time-col {
  width: 13rem;
}

.appointment-table .customer-col {
  width: 11rem;
}

.appointment-table .service-col {
  width: auto;
}

.appointment-table .status-col {
  width: 7.5rem;
}

.appointment-table .actions-col {
  width: 8.25rem;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0.5rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.platform-owner-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.platform-owner-table {
  border-collapse: collapse;
  min-width: 880px;
  width: 100%;
}

.platform-owner-table th,
.platform-owner-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.platform-owner-table td span {
  display: block;
}

.platform-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.platform-owner-actions form {
  margin: 0;
}

.calendar-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.week-calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-day {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 10rem;
  padding: 0.65rem;
}

.calendar-day header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
}

.calendar-day.current-day {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.calendar-day.outside-month {
  background: #f7f8fb;
  color: var(--muted);
}

.calendar-day.past-day,
.calendar-day.closed-day {
  background: #edf0f4;
  color: #7c8798;
}

.calendar-day.closed-day {
  border-color: #d8dde5;
}

.calendar-slots {
  display: grid;
  gap: 0.35rem;
}

.calendar-slot-row {
  align-items: start;
  border: 1px solid #e1e6ee;
  border-radius: 6px;
  display: grid;
  gap: 0.25rem;
  min-height: 2.4rem;
  padding: 0.35rem;
}

.calendar-slot-row.available-slot {
  background: #fbfdff;
  cursor: pointer;
}

.calendar-slot-row.available-slot:hover {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.calendar-slot-row.blocked-slot {
  background: #e5e9ef;
  color: #8893a3;
}

.calendar-slot-time {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-slot-header {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  justify-content: space-between;
  min-width: 0;
}

.slot-availability {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 900;
  height: 1.35rem;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 0.35rem;
}

.slot-availability.has-openings {
  background: #dff7ee;
  box-shadow: inset 0 0 0 1px #8dd8b8;
  color: #126342;
}

.slot-availability.is-full {
  background: #f8d7da;
  color: #842029;
}

.calendar-view-helper {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0 0 0.75rem;
}

.calendar-event {
  border-left: 3px solid currentColor;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
  border-radius: 6px;
  display: grid;
  font-size: 0.78rem;
  gap: 0.15rem;
  margin-top: 0.15rem;
  padding: 0.4rem 0.45rem;
  text-align: left;
  width: 100%;
}

.calendar-event-button {
  cursor: pointer;
}

.calendar-event-button:hover {
  filter: brightness(0.97);
}

.calendar-event span,
.calendar-event small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-calendar .calendar-day {
  min-height: 7.25rem;
  padding: 0.45rem;
}

.month-calendar .calendar-day header {
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
}

.month-summary {
  display: grid;
  gap: 0.3rem;
}

.month-day-note {
  background: #e5e9ef;
  border-radius: 6px;
  color: #7c8798;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  padding: 0.25rem 0.35rem;
}

.month-add-button {
  background: #fbfdff;
  border: 1px dashed #c6d0df;
  border-radius: 6px;
  color: var(--blue-strong);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  min-height: 1.9rem;
  padding: 0.25rem 0.35rem;
  text-align: center;
  width: 100%;
}

.month-add-button:hover {
  background: #eef6ff;
  border-color: var(--blue);
}

.month-calendar .calendar-event {
  font-size: 0.72rem;
  margin-top: 0;
  padding: 0.3rem 0.35rem;
}

.modal-panel {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.24);
  max-width: min(720px, calc(100vw - 2rem));
  overflow: visible;
  padding: 0;
  width: 100%;
}

.modal-panel::backdrop {
  background: rgba(23, 32, 51, 0.42);
}

.modal-form {
  max-width: none;
  padding: 1.25rem;
}

.confirm-dialog {
  max-width: min(420px, calc(100vw - 2rem));
}

.confirm-dialog-content {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.confirm-dialog-content h2,
.confirm-dialog-content p {
  margin: 0;
}

.confirm-detail-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.confirm-detail-list div {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
}

.confirm-detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.confirm-detail-list dd {
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.modal-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.booking-summary-dialog {
  max-height: calc(100dvh - 2rem);
  max-width: min(540px, calc(100vw - 2rem));
  overflow: hidden;
}

.booking-summary-content {
  gap: 1.25rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.booking-summary-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.booking-summary-list div {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
}

.booking-summary-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.danger-primary-button {
  background: #c5221f;
}

.danger-primary-button:hover {
  background: #a12018;
}

.icon-button {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.service-picker {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.closed-dates-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.9rem;
}

.closed-dates-panel h3 {
  font-size: 1rem;
  margin: 0;
}

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

.closed-date-pill {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.55rem 0.65rem;
}

.closed-date-pill span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.closed-date-pill small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.closed-date-remove {
  background: transparent;
  border: 0;
  color: #842029;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem;
}

.closed-date-remove:hover {
  text-decoration: underline;
}

.service-option {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 2.6rem;
  padding: 0.45rem 0.6rem;
  white-space: normal;
}

.staff-service-pills:empty {
  display: none;
}

.staff-slot-grid {
  margin-top: 0.25rem;
}

.edit-slot-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-panel .edit-slot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edit-time-button {
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  width: 100%;
}

.row-popover {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.18);
  left: 0;
  min-width: min(20rem, 80vw);
  padding: 0.7rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  z-index: 20;
}

.platform-backup-actions {
  align-items: flex-start;
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.platform-audit-search {
  margin-bottom: 1rem;
}

.platform-audit-search-row {
  align-items: center;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.platform-audit-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.icon-button.is-disabled {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

.backup-checksum {
  color: var(--ink);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.setup-status-card .muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.technical-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.modal-panel .row-popover {
  box-shadow: none;
  left: auto;
  margin-top: 0.35rem;
  min-width: 0;
  position: static;
  top: auto;
  width: 100%;
}

.popover-slot {
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  min-height: 2.15rem;
  padding: 0.45rem 0.35rem;
}

.popover-slot:disabled {
  background: #f2f4f8;
  border-color: #d7dde8;
  color: #8d97a8;
  cursor: not-allowed;
  text-decoration: line-through;
}

.popover-slot.selected-popover-slot {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.staff-slot-message {
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.booking-shell {
  background: var(--white);
  min-height: 100vh;
}

.booking-hero {
  background:
    linear-gradient(100deg, rgba(23, 32, 51, 0.82), rgba(20, 85, 217, 0.42)),
    url("../../../flutter/assets/images/oncheckin.jpg") center/cover;
  color: var(--white);
  padding: 4rem 1rem;
}

.booking-panel {
  margin: -2rem auto 0;
  max-width: 1120px;
  padding: 0 1rem 3rem;
}

.public-cancel-panel {
  margin-top: 3rem;
  max-width: 640px;
}

.booking-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(340px, 1.15fr);
}

.booking-grid .turnstile-field {
  max-width: 100%;
  overflow: hidden;
}

.booking-service-card {
  display: flex;
  flex-direction: column;
  max-height: min(42rem, calc(100vh - 8rem));
}

.booking-service-card .service-choice-list {
  overflow-y: auto;
  padding-right: 0.45rem;
}

.booking-footer {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
  padding: 1.25rem;
}

.booking-footer h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.booking-footer p {
  margin-bottom: 0.75rem;
}

.booking-footer a {
  color: var(--blue-strong);
  font-weight: 700;
}

.hours-table {
  border-collapse: collapse;
  width: 100%;
}

.hours-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
}

.hours-table td:last-child {
  text-align: right;
}

.slot-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.service-choice-list {
  display: grid;
  gap: 1.35rem;
}

.service-category-group {
  display: grid;
  gap: 0.75rem;
}

.service-category-group h3 {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  overflow: hidden;
}

.service-category-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-columns: minmax(0, 1fr);
  padding: 0.65rem 0.8rem;
  text-align: left;
  width: 100%;
}

.service-category-toggle:hover {
  background: #eef1f6;
}

.service-category-toggle:focus-visible {
  outline: 2px solid rgba(20, 85, 217, 0.35);
  outline-offset: -2px;
}

.service-category-toggle span:first-child {
  overflow-wrap: anywhere;
}

.service-category-items {
  display: grid;
  gap: 0.65rem;
}

.service-category-items[hidden] {
  display: none;
}

.service-choice {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  min-height: 4.5rem;
  padding: 0.8rem;
}

.service-choice:hover {
  border-color: #b9c3d8;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.service-choice:has(input:checked) {
  background: #eef5ff;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue), 0 8px 18px rgba(20, 85, 217, 0.12);
}

.service-choice:has(input:checked) strong {
  color: var(--blue-strong);
}

.service-choice:has(input:focus-visible) {
  outline: 2px solid rgba(20, 85, 217, 0.35);
  outline-offset: 2px;
}

.service-choice input {
  height: 1.1rem;
  width: 1.1rem;
}

.service-choice span span {
  display: block;
}

.service-choice > span {
  min-width: 0;
}

.service-choice > span:last-child {
  justify-self: end;
  white-space: nowrap;
}

.service-choice strong {
  overflow-wrap: anywhere;
}

.selectable-slot {
  cursor: pointer;
  display: grid;
  padding: 0;
}

.selectable-slot input {
  inline-size: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.selectable-slot span {
  border-radius: 8px;
  display: block;
  padding: 0.75rem;
}

.selectable-slot input:checked + span {
  background: var(--blue);
  color: var(--white);
}

.preview-slot {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
}

.preview-slot span {
  border: 1px dashed #cfd6e4;
}

.slot-helper {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0 0.8rem;
  padding: 0.75rem;
}

.selectable-slot input:disabled + span,
.disabled-slot {
  cursor: not-allowed;
}

.selectable-slot input:disabled + span {
  background: #f2f4f8;
  color: #8d97a8;
  text-decoration: line-through;
}

.preview-slot input:disabled + span {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

.booking-policy {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0;
}

button:disabled,
.button:disabled,
.disabled-link {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.alert {
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  padding: 0.85rem clamp(1rem, 5vw, 4rem);
}

.alert.info {
  background: var(--gold);
  color: var(--ink);
}

.code-block {
  background: #172033;
  border-radius: 8px;
  color: var(--white);
  overflow-x: auto;
  padding: 1rem;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .week-calendar,
  .month-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-table,
  .appointment-table thead,
  .appointment-table tbody,
  .appointment-table tr,
  .appointment-table th,
  .appointment-table td {
    display: block;
  }

  .appointment-table colgroup,
  .appointment-table thead {
    display: none;
  }

  .appointment-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
  }

  .appointment-table td {
    align-items: start;
    border-bottom: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
    padding: 0.5rem 0;
  }

  .appointment-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .appointment-actions {
    justify-content: flex-start;
  }

  .booking-service-card {
    max-height: none;
  }

  .booking-service-card .service-choice-list {
    overflow-y: visible;
    padding-right: 0;
  }

  .service-editor-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-editor-actions {
    justify-content: flex-start;
  }

  .upgrade-package-grid {
    grid-template-columns: 1fr;
  }

  .setup-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .upgrade-dialog {
    border-radius: 0;
    height: 100dvh;
    margin: 0;
    max-height: 100dvh;
    max-width: 100vw;
    width: 100vw;
  }

  .upgrade-dialog-content {
    gap: 1rem;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 1rem 1rem 1.25rem;
  }

  .upgrade-package-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 1rem;
    padding-right: 0.1rem;
    touch-action: pan-y;
  }

  .nav {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    align-items: center;
    appearance: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 4px;
    height: 2.75rem;
    justify-content: center;
    line-height: 0;
    margin-left: auto;
    padding: 0;
    -webkit-appearance: none;
    width: 2.75rem;
  }

  .nav-toggle span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    margin: 0;
    width: 1.05rem;
  }

  .nav-links {
    display: none;
    flex: 1 1 100%;
    justify-content: flex-start;
    padding-top: 0.75rem;
    width: 100%;
  }

  .nav-links.is-open {
    display: flex;
  }

  .grid,
  .slot-grid,
  .form-row,
  .profile-location-row,
  .rule-grid,
  .input-with-unit,
  .service-picker,
  .category-order-list,
  .service-editor-row,
  .hours-row,
  .closed-date-pill,
  .booking-footer {
    grid-template-columns: 1fr;
  }

  .hours-table td:last-child {
    text-align: left;
  }

  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .card-heading-row,
  .appointment-card-actions,
  .modal-actions,
  .step-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-admin-category-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .compact-button,
  .modal-actions .button,
  .step-actions .button,
  .step-actions form {
    width: 100%;
  }

  .onboarding-steps li {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .booking-summary-dialog {
    max-height: calc(100dvh - 1rem);
    max-width: calc(100vw - 1rem);
  }

  .booking-summary-content {
    gap: 0.75rem;
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .booking-summary-content .modal-header h2 {
    font-size: 1.6rem;
  }

  .booking-summary-list {
    gap: 0.5rem;
  }

  .booking-summary-list div {
    padding: 0.6rem 0.7rem;
  }

  .locked-plan-field {
    grid-template-columns: 1fr;
  }

  .booking-summary-content .modal-actions {
    background: var(--white);
    border-top: 1px solid var(--line);
    bottom: -1rem;
    margin: 0 -1rem -1rem;
    padding: 0.75rem 1rem 1rem;
    position: sticky;
  }

  .setup-status-stack {
    align-items: stretch;
    justify-items: stretch;
  }

  .step-actions {
    grid-column: 1 / -1;
  }

  .appointment-table td {
    grid-template-columns: 1fr;
  }

  .week-calendar,
  .month-calendar {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: auto;
  }

  .modal-panel .edit-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
