:root {
  color-scheme: light;
  --bg: #edf3f8;
  --bg-soft: #f8fbfd;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: #f1f6fb;
  --stroke: rgba(15, 42, 68, 0.1);
  --stroke-strong: rgba(15, 42, 68, 0.18);
  --text: #0f2137;
  --muted: #506175;
  --accent: #0f2a44;
  --accent-strong: #1a4f89;
  --accent-soft: rgba(44, 126, 232, 0.1);
  --brand-blue: #2c7ee8;
  --brand-orange: #fa7a20;
  --brand-sand: #f7efe4;
  --gold: #fa7a20;
  --gold-soft: rgba(250, 122, 32, 0.14);
  --success: #2e7d32;
  --success-soft: rgba(46, 125, 50, 0.1);
  --warning: #c77418;
  --warning-soft: rgba(250, 122, 32, 0.14);
  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 42, 68, 0.12);
  --shadow-md: 0 14px 34px rgba(15, 42, 68, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body.portal-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(44, 126, 232, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(250, 122, 32, 0.14), transparent 24%),
    linear-gradient(180deg, #f7fbfd 0%, var(--bg) 220px, var(--bg-soft) 100%);
}

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

img {
  max-width: 100%;
  display: block;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  padding: 14px 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(11, 42, 58, 0.4);
  box-shadow: 0 0 0 4px rgba(11, 42, 58, 0.1);
  outline: 0;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

button {
  border: 0;
  cursor: pointer;
}

label {
  font-size: 0.91rem;
  font-weight: 600;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100vw - 28px));
  margin: 20px auto 40px;
  display: grid;
  gap: 18px;
}

.site-header,
.card-panel,
.page-section,
.flash,
.site-footer {
  backdrop-filter: blur(16px);
}

.site-header,
.page-section,
.site-footer,
.card-panel,
.flash {
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 253, 0.94));
  box-shadow: 0 18px 42px rgba(15, 42, 68, 0.1);
}

.site-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.site-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 42, 58, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-weight: 800;
  box-shadow: none;
}

.site-menu-toggle-lines {
  display: grid;
  gap: 4px;
}

.site-menu-toggle-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo-image {
  display: block;
  width: 148px;
  height: auto;
  max-width: 38vw;
  object-fit: contain;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

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

.brand-mark strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.site-nav a,
.action-link,
.user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.site-nav a {
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(44, 126, 232, 0.08);
  border-color: rgba(44, 126, 232, 0.14);
  color: var(--text);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  box-shadow: inset 0 0 0 1px rgba(11, 42, 58, 0.08);
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.action-link {
  border: 1px solid rgba(44, 126, 232, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 253, 0.9));
  font-weight: 700;
}

.action-link-accent {
  border-color: rgba(44, 126, 232, 0.2);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 60%, var(--brand-blue) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 42, 68, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.site-menu a,
.site-menu button {
  touch-action: manipulation;
}

.user-pill {
  gap: 10px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(12, 24, 38, 0.08);
  align-items: center;
}

.user-pill span,
.user-pill small {
  display: block;
}

.user-pill span {
  font-weight: 700;
}

.user-pill small {
  color: var(--muted);
}

.flash {
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  font-weight: 600;
}

.flash-success {
  background: linear-gradient(180deg, rgba(15, 106, 78, 0.1), rgba(255, 255, 255, 0.88));
  border-color: rgba(15, 106, 78, 0.18);
}

.flash-warning {
  background: linear-gradient(180deg, rgba(154, 90, 13, 0.12), rgba(255, 255, 255, 0.88));
  border-color: rgba(154, 90, 13, 0.18);
}

.flash-error {
  background: linear-gradient(180deg, rgba(175, 46, 46, 0.12), rgba(255, 255, 255, 0.88));
  border-color: rgba(175, 46, 46, 0.18);
}

.site-main {
  display: grid;
  gap: 18px;
}

.page-section,
.card-panel {
  border-radius: var(--radius-xl);
}

.page-section {
  padding: 36px 32px;
}

.card-panel {
  padding: 30px 28px;
}

.portal-hero,
.page-hero,
.booking-workspace,
.auth-panel,
.feature-grid,
.timeline-grid,
.metrics-row,
.booking-grid {
  display: grid;
  gap: 18px;
}

.portal-hero {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.page-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
  align-items: stretch;
  padding: 30px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 252, 0.92));
  box-shadow: var(--shadow-lg);
}

.page-hero-copy,
.page-hero-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.page-hero-side {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.hero-copy-block,
.hero-side-panel {
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-xl);
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 252, 0.94));
  box-shadow: var(--shadow-lg);
}

.hero-side-panel {
  border-top: 4px solid var(--brand-orange);
}

.booking-hero .hero-side-panel {
  display: grid;
  align-content: start;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-copy-block h1,
.dashboard-hero h1,
.auth-copy h1,
.section-header h2,
.panel-header h2,
.hero-side-panel h2 {
  margin: 8px 0 0;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero-copy-block h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  max-width: 11ch;
}

.hero-side-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.hero-lead,
.section-copy,
.panel-copy,
.auth-copy p,
.feature-card p,
.timeline-card p,
.detail-card p,
.note-card p,
.empty-card p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.06rem;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(44, 126, 232, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 252, 0.92));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-side-copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.hero-actions,
.hero-note-grid,
.feature-grid,
.timeline-grid,
.metrics-row {
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.trust-pill {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: #f8fafb;
}

.trust-pill:nth-child(1) {
  background: rgba(11, 42, 58, 0.05);
}

.trust-pill:nth-child(2) {
  background: rgba(197, 137, 0, 0.08);
}

.trust-pill:nth-child(3) {
  background: rgba(46, 125, 50, 0.08);
}

.trust-pill strong,
.trust-pill span {
  display: block;
}

.trust-pill span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease, background 140ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 58%, var(--brand-blue) 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 42, 68, 0.22), 0 0 28px rgba(44, 126, 232, 0.16);
}

.secondary-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.92));
  color: var(--text);
  border: 1px solid rgba(44, 126, 232, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

button.primary-button,
button.secondary-button {
  min-height: 54px;
  padding-inline: 22px;
}

.primary-button:hover,
.secondary-button:hover,
button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
button:active {
  transform: translateY(1px);
}

.season-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 4px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(197, 137, 0, 0.06), rgba(255, 255, 255, 1) 46%);
}

.season-banner-copy h2 {
  margin: 8px 0 0;
  letter-spacing: -0.04em;
}

.season-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.season-panel {
  border-top: 4px solid var(--gold);
}

.season-checklist {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.season-checklist li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.58;
}

.season-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.capacity-section {
  display: grid;
  gap: 22px;
}

.capacity-section-compact {
  padding-top: 28px;
}

.period-highlight,
.period-grid,
.info-grid,
.slot-grid,
.slot-day-grid,
.slot-admin-list {
  display: grid;
  gap: 18px;
}

.period-grid,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot-grid,
.slot-admin-list {
  grid-template-columns: 1fr;
}

.slot-day-group {
  display: grid;
  gap: 12px;
}

.slot-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.slot-day-header strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.slot-day-header span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.period-banner,
.period-card,
.slot-card {
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.period-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.period-banner.compact {
  grid-template-columns: 1fr;
}

.period-banner.loading,
.period-banner.muted,
.period-card.muted,
.slot-card.muted {
  background: var(--surface-muted);
  box-shadow: none;
}

.period-banner-copy strong,
.period-card-top strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
}

.period-banner-copy p,
.period-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.period-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.period-meta-row,
.period-card-top,
.period-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.period-card {
  padding: 22px;
}

.slot-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.slot-card.is-selected {
  border-color: rgba(11, 42, 58, 0.32);
  background: linear-gradient(180deg, rgba(236, 245, 250, 0.98), rgba(255, 255, 255, 1));
  box-shadow: 0 18px 32px rgba(11, 42, 58, 0.14);
  transform: translateY(-2px);
}

.slot-card.is-selected .slot-select-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.period-card-top {
  justify-content: space-between;
  align-items: flex-start;
}

.period-card-footer {
  justify-content: space-between;
  margin-top: 18px;
}

.slot-card-top,
.slot-card-footer,
.slot-admin-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.slot-card-top {
  align-items: flex-start;
}

.slot-card-top strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.slot-card p,
.slot-admin-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.period-capacity {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.status-chip.status-open {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.status-chip.status-limited {
  background: rgba(197, 137, 0, 0.12);
  color: var(--warning);
}

.status-chip.status-full {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.primary-button.full-width {
  width: 100%;
}

.hero-note-grid,
.feature-grid,
.timeline-grid,
.metrics-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid,
.benefit-grid,
.faq-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.quick-entry-section {
  padding-top: 26px;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.quick-entry-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 250px;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}

.quick-entry-card:nth-child(4n + 1)::before {
  background: linear-gradient(90deg, var(--accent) 0%, #2f6f93 100%);
}

.quick-entry-card:nth-child(4n + 2)::before {
  background: linear-gradient(90deg, var(--gold) 0%, #d5a11d 100%);
}

.quick-entry-card:nth-child(4n + 3)::before {
  background: linear-gradient(90deg, var(--success) 0%, #52a05a 100%);
}

.quick-entry-card:nth-child(4n + 4)::before {
  background: linear-gradient(90deg, var(--danger) 0%, #cf544a 100%);
}

.quick-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 42, 58, 0.16);
}

.quick-entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(11, 42, 58, 0.08);
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-entry-card:nth-child(4n + 1) .quick-entry-icon,
.quick-entry-card:nth-child(4n + 1) .quick-entry-arrow {
  background: rgba(47, 111, 147, 0.12);
  color: #184a67;
}

.quick-entry-card:nth-child(4n + 2) .quick-entry-icon,
.quick-entry-card:nth-child(4n + 2) .quick-entry-arrow {
  background: rgba(197, 137, 0, 0.12);
  color: #8e6000;
}

.quick-entry-card:nth-child(4n + 3) .quick-entry-icon,
.quick-entry-card:nth-child(4n + 3) .quick-entry-arrow {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.quick-entry-card:nth-child(4n + 4) .quick-entry-icon,
.quick-entry-card:nth-child(4n + 4) .quick-entry-arrow {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.quick-entry-card strong {
  font-size: 1.8rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.quick-entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quick-entry-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(11, 42, 58, 0.08);
  color: var(--accent-strong);
  font-size: 1.4rem;
  font-weight: 800;
}

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

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

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

.note-card,
.feature-card,
.timeline-card,
.metric-box,
.service-card,
.benefit-card,
.faq-item,
.detail-card,
.empty-card,
.auth-card,
.inline-alert {
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
}

.note-card,
.feature-card,
.timeline-card,
.metric-box,
.service-card,
.benefit-card,
.faq-item,
.detail-card,
.empty-card,
.auth-card {
  padding: 20px;
}

.note-card strong,
.feature-card h3,
.timeline-card strong,
.metric-box strong,
.service-card h3,
.benefit-card strong,
.faq-item h3,
.detail-card strong,
.empty-card h3 {
  display: block;
  letter-spacing: -0.03em;
}

.note-card span,
.feature-card p,
.timeline-card p,
.service-card p,
.benefit-card p,
.faq-item p {
  display: block;
  margin-top: 10px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 42, 58, 0.08);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card-link,
.service-card {
  background: #fff;
}

.service-card {
  border-top: 4px solid var(--brand-blue);
}

.service-card:nth-child(3n + 2) {
  border-top-color: var(--brand-orange);
}

.service-card:nth-child(3n + 3) {
  border-top-color: var(--success);
}

.service-card-link {
  min-height: 100%;
}

.subtle-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.section-header,
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.section-copy,
.panel-copy {
  margin: 0;
  max-width: 40ch;
}

.feature-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(44, 126, 232, 0.14), rgba(255, 255, 255, 0.92));
  color: var(--accent-strong);
  font-weight: 800;
}

.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.feature-card a::after {
  content: "->";
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent-strong);
}

.inline-link::after {
  content: "->";
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.process-list,
.confidence-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.booking-workspace {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#available-times,
#booking-form {
  scroll-margin-top: 118px;
}

.booking-step-panel {
  display: grid;
  gap: 18px;
}

.booking-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.booking-step-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.92));
}

.booking-step-card span {
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-step-card strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.booking-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.booking-panel,
.summary-panel {
  min-height: 100%;
}

.summary-panel {
  position: sticky;
  top: 112px;
}

.summary-header {
  align-items: center;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 42, 58, 0.16);
  background: rgba(11, 42, 58, 0.06);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.booking-form,
.stacked-form,
.summary-grid,
.meta-stack {
  display: grid;
  gap: 20px;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: var(--surface-strong);
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.section-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.field.error input,
.field.error textarea,
.field.error select {
  border-color: rgba(180, 35, 24, 0.58);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.field.error .field-help {
  color: #8d2e24;
}

.field.full {
  grid-column: 1 / -1;
}

.field.grow {
  flex: 1 1 280px;
  min-width: min(100%, 320px);
}

.field.compact {
  min-width: min(100%, 200px);
}

.service-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  box-shadow: none;
}

.template-chip.active,
.template-chip:hover {
  background: var(--accent);
  color: #fff;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}

.footnote {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.6;
}

.summary-row,
.meta-row {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 24, 38, 0.08);
}

.summary-row:first-child,
.meta-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.summary-row span,
.meta-row span,
.metric-box span,
.detail-card span {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-row strong,
.meta-row strong,
.detail-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.status-box,
.confidence-box {
  margin-top: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid rgba(12, 24, 38, 0.08);
}

.confidence-box h3 {
  margin: 0;
}

.mobile-sticky-cta,
.mobile-sticky-spacer {
  display: none;
}

.status {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

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

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.auth-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.service-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.service-main-column,
.service-side-column {
  display: grid;
  gap: 18px;
}

.service-side-column {
  position: sticky;
  top: 112px;
}

.content-panel,
.cta-card {
  padding: 24px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-grid li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.check-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.flow-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.flow-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 24, 38, 0.08);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb-row strong {
  color: var(--text);
}

.auth-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.auth-copy,
.auth-card {
  padding: 30px;
}

.attention-grid,
.auth-role-grid,
.ops-grid {
  display: grid;
  gap: 16px;
}

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

.auth-role-grid,
.ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.attention-card,
.auth-role-card,
.ops-card {
  min-height: 100%;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 245, 247, 0.94));
  box-shadow: var(--shadow-md);
}

.attention-card strong,
.auth-role-card strong,
.ops-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.attention-card p,
.auth-role-card p,
.ops-card p {
  margin: 10px 0 0;
}

.attention-priority {
  background: linear-gradient(180deg, rgba(252, 236, 236, 0.92), rgba(255, 255, 255, 0.98));
}

.attention-waitlist {
  background: linear-gradient(180deg, rgba(255, 246, 219, 0.88), rgba(255, 255, 255, 0.98));
}

.attention-plan {
  background: linear-gradient(180deg, rgba(232, 240, 244, 0.94), rgba(255, 255, 255, 0.98));
}

.attention-capacity {
  background: linear-gradient(180deg, rgba(234, 246, 236, 0.92), rgba(255, 255, 255, 0.98));
}

.auth-stack {
  display: grid;
  gap: 18px;
}

.auth-section {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(246, 247, 249, 0.92);
  border: 1px solid rgba(12, 24, 38, 0.08);
}

.auth-section h3 {
  margin: 0;
}

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

.auth-muted {
  margin: 6px 0 0;
  color: var(--muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(12, 24, 38, 0.1);
}

.auth-copy {
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 248, 252, 0.95));
  box-shadow: var(--shadow-lg);
}

.auth-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.stacked {
  align-items: start;
}

.inline-alert {
  padding: 14px 16px;
  font-weight: 600;
}

.inline-alert.error {
  background: linear-gradient(180deg, rgba(175, 46, 46, 0.1), rgba(255, 255, 255, 0.88));
  border-color: rgba(175, 46, 46, 0.16);
}

.inline-alert.warning {
  background: linear-gradient(180deg, rgba(154, 90, 13, 0.12), rgba(255, 255, 255, 0.88));
  border-color: rgba(154, 90, 13, 0.18);
}

.inline-alert.success {
  background: linear-gradient(180deg, rgba(15, 106, 78, 0.1), rgba(255, 255, 255, 0.92));
  border-color: rgba(15, 106, 78, 0.16);
}

.auth-shell-premium {
  position: relative;
}

.auth-shell-premium::before {
  content: "";
  position: absolute;
  inset: -30px 8% auto;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 50%, rgba(44, 126, 232, 0.18), transparent 38%),
    radial-gradient(circle at 70% 50%, rgba(250, 122, 32, 0.16), transparent 34%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.auth-panel-premium,
.auth-shell-premium .auth-card,
.auth-shell-premium .auth-copy {
  position: relative;
  z-index: 1;
}

.auth-copy-premium {
  background:
    radial-gradient(circle at top left, rgba(44, 126, 232, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(250, 122, 32, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 248, 252, 0.95));
}

.auth-card-premium {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 253, 0.95));
}

.auth-step-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 253, 0.95));
}

.auth-step-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.auth-email-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(44, 126, 232, 0.08);
  border: 1px solid rgba(44, 126, 232, 0.14);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-inline-actions form {
  flex: 1 1 220px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px dashed rgba(44, 126, 232, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-weight: 700;
}

.auth-subsection {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  background: rgba(247, 251, 253, 0.92);
}

.auth-subsection h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.auth-support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.auth-support-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.05);
  border: 1px solid rgba(15, 42, 68, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-secondary-link {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.auth-secondary-link a {
  color: var(--muted);
  font-weight: 700;
}

.auth-match-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(44, 126, 232, 0.12);
  background: linear-gradient(180deg, rgba(44, 126, 232, 0.08), rgba(255, 255, 255, 0.92));
}

.auth-match-card strong,
.auth-match-card p {
  display: block;
  margin: 0;
}

.auth-match-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.workshop-step {
  background: linear-gradient(180deg, rgba(15, 42, 68, 0.05), rgba(255, 255, 255, 0.96));
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 28px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.account-hero {
  align-items: center;
}

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

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-highlight-card {
  min-height: 100%;
}

.account-status-grid,
.motor-grid,
.price-grid,
.brand-grid,
.quote-grid,
.compact-cta-row,
.appointment-grid,
.status-timeline-grid {
  display: grid;
  gap: 16px;
}

.account-status-grid,
.compact-cta-row,
.appointment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.motor-grid,
.price-grid,
.brand-grid,
.quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-cta-card,
.brand-card,
.price-card,
.quote-card,
.status-card,
.appointment-card,
.motor-card,
.report-card {
  min-height: 100%;
}

.compact-cta-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 252, 0.96));
  box-shadow: var(--shadow-md);
}

.compact-cta-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.compact-cta-card p,
.brand-card p,
.price-card p,
.quote-card p,
.status-card p,
.appointment-card p,
.motor-line p,
.report-card p {
  margin: 10px 0 0;
}

.appointment-card {
  background: linear-gradient(180deg, rgba(11, 42, 58, 0.04), rgba(255, 255, 255, 0.98));
}

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

.brand-card strong,
.price-card strong,
.quote-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.quote-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: linear-gradient(180deg, rgba(11, 42, 58, 0.04), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-md);
}

.motor-card {
  display: grid;
  gap: 16px;
}

.motor-line {
  padding-top: 14px;
  border-top: 1px solid rgba(12, 24, 38, 0.08);
}

.motor-line:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.motor-line-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.health-ok,
.health-warning,
.health-overdue,
.health-unscheduled {
  border-color: transparent;
}

.health-ok {
  background: var(--success-soft);
  color: var(--success);
}

.health-warning {
  background: var(--warning-soft);
  color: #946400;
}

.health-overdue {
  background: var(--danger-soft);
  color: var(--danger);
}

.health-unscheduled {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.symptom-chip-row {
  margin-bottom: 4px;
}

.booking-auth-alert {
  background: linear-gradient(180deg, rgba(12, 71, 107, 0.08), rgba(255, 255, 255, 0.92));
  border-color: rgba(12, 71, 107, 0.14);
  color: var(--accent-strong);
  font-weight: 700;
}

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

.metric-box strong {
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.dashboard-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.dashboard-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.filter-chip.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.slot-week-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 18px 0;
}

.slot-week-header h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.slot-week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-day-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.92));
}

.calendar-day-card.is-today {
  border-color: rgba(11, 42, 58, 0.2);
  box-shadow: 0 10px 24px rgba(11, 42, 58, 0.08);
}

.calendar-day-head {
  display: grid;
  gap: 10px;
}

.calendar-day-head span {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-day-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.calendar-day-slots {
  display: grid;
  gap: 8px;
}

.calendar-slot-pill {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: #fff;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.calendar-slot-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 42, 58, 0.16);
  box-shadow: var(--shadow-md);
}

.calendar-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.calendar-slot-pill strong {
  display: block;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.calendar-slot-pill span {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.calendar-slot-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.calendar-action-button {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(12, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: none;
}

.calendar-slot-link {
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calendar-day-empty,
.slot-admin-meta {
  color: var(--muted);
  line-height: 1.55;
}

.slot-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.slot-admin-create {
  position: sticky;
  top: 112px;
}

.slot-admin-card {
  display: grid;
  gap: 14px;
}

.slot-admin-card strong,
.slot-admin-create strong {
  line-height: 1.4;
}

.slot-admin-form {
  gap: 14px;
}

.slot-create-divider {
  height: 1px;
  margin: 10px 0 4px;
  background: rgba(12, 24, 38, 0.1);
}

.booking-list {
  display: grid;
  gap: 14px;
}

.booking-card {
  overflow: hidden;
  border: 1px solid rgba(12, 24, 38, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
}

.booking-card summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
}

.booking-card summary::-webkit-details-marker {
  display: none;
}

.booking-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.booking-title-block h3 {
  margin: 12px 0 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.booking-flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.booking-flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.booking-flag.priority-high {
  background: var(--warning-soft);
  color: #946400;
}

.booking-flag.priority-urgent {
  background: var(--danger-soft);
  color: var(--danger);
}

.booking-flag.flag-waitlist {
  background: rgba(11, 42, 58, 0.08);
  color: var(--accent-strong);
}

.booking-flag.flag-needs-plan {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.booking-title-block p,
.booking-side small {
  margin: 8px 0 0;
  color: var(--muted);
}

.booking-side {
  text-align: right;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.booking-side strong {
  letter-spacing: -0.02em;
}

.booking-body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
}

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

.detail-card p {
  margin: 8px 0 0;
}

.note-card.wide {
  padding: 20px;
}

.note-card.wide p {
  margin: 10px 0 0;
}

.status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.status-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pending {
  background: rgba(14, 58, 112, 0.08);
  color: #194f88;
}

.status-open {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.status-full {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.status-reviewed {
  background: rgba(126, 91, 18, 0.12);
  color: #7a5b1d;
}

.status-scheduled {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-acked {
  background: rgba(15, 106, 78, 0.1);
  color: var(--success);
}

.invoice-draft {
  background: rgba(14, 58, 112, 0.08);
  color: #194f88;
}

.invoice-sent {
  background: rgba(126, 91, 18, 0.12);
  color: #7a5b1d;
}

.invoice-paid {
  background: rgba(15, 106, 78, 0.1);
  color: var(--success);
}

.invoice-void {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.invoice-neutral {
  background: rgba(11, 42, 58, 0.08);
  color: var(--accent-strong);
}

.status-completed {
  background: rgba(9, 114, 92, 0.14);
  color: #0a6d57;
}

.status-archived,
.status-neutral {
  background: rgba(12, 24, 38, 0.08);
  color: #3e4b59;
}

.priority-urgent {
  background: var(--danger-soft);
  color: var(--danger);
}

.priority-high {
  background: var(--warning-soft);
  color: var(--warning);
}

.priority-normal {
  background: rgba(11, 42, 58, 0.08);
  color: var(--accent-strong);
}

.priority-low {
  background: rgba(12, 24, 38, 0.08);
  color: var(--muted);
}

.empty-card {
  text-align: center;
}

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

.contact-inline {
  margin: 16px 0 0;
  color: var(--muted);
}

.contact-inline a {
  color: var(--accent-strong);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-xl);
  padding: 22px 26px;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.footer-brand {
  max-width: 42ch;
}

.footer-brand-mark {
  display: inline-flex;
  margin-bottom: 10px;
}

.footer-logo-image {
  display: block;
  width: 164px;
  height: auto;
  max-width: min(42vw, 164px);
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12, 24, 38, 0.08);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .portal-hero,
  .page-hero,
  .booking-workspace,
  .booking-step-strip,
  .service-page-layout,
  .auth-panel,
  .season-banner,
  .period-grid,
  .slot-day-grid,
  .slot-admin-grid,
  .info-grid,
  .booking-grid,
  .quick-entry-grid,
  .trust-strip,
  .hero-note-grid,
  .service-grid,
  .service-grid-large,
  .benefit-grid,
  .faq-grid,
  .feature-grid,
  .timeline-grid,
  .metrics-row,
  .check-grid,
  .attention-grid,
  .account-status-grid,
  .appointment-grid,
  .status-timeline-grid,
  .compact-cta-row,
  .motor-grid,
  .price-grid,
  .brand-grid,
  .quote-grid,
  .auth-role-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

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

  .service-side-column {
    position: static;
  }

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

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

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    align-items: center;
    padding: 14px 16px;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(12, 24, 38, 0.08);
  }

  .portal-body.site-menu-open .site-menu {
    display: grid;
  }

  .site-nav,
  .site-actions {
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a,
  .site-actions .action-link,
  .site-actions .user-pill {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding-inline: 16px;
  }

  .site-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-mark {
    gap: 10px;
    align-items: flex-start;
  }

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

  .booking-summary {
    grid-template-columns: 1fr;
  }

  .account-overview-grid,
  .account-metrics {
    grid-template-columns: 1fr 1fr;
  }

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

  .account-status-grid,
  .appointment-grid,
  .compact-cta-row {
    grid-template-columns: 1fr;
  }

  .period-banner {
    grid-template-columns: 1fr;
  }

  .booking-side {
    justify-items: start;
    text-align: left;
  }

  .slot-admin-create {
    position: static;
  }

  .section-header,
  .slot-week-header,
  .panel-header,
  .form-footer,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(1320px, calc(100vw - 14px));
    margin: 10px auto 22px;
  }

  .site-header,
  .page-section,
  .card-panel,
  .site-footer,
  .hero-copy-block,
  .hero-side-panel,
  .auth-copy,
  .auth-card,
  .dashboard-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .portal-hero,
  .site-main {
    gap: 14px;
  }

  .hero-copy-block h1,
  .auth-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section-header h2,
  .panel-header h2,
  .hero-side-panel h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .form-grid,
  .dashboard-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-quick-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  #available-times,
  #booking-form {
    scroll-margin-top: 96px;
  }

  .slot-week-board {
    grid-template-columns: 1fr;
  }

  .account-overview-grid,
  .account-metrics {
    grid-template-columns: 1fr;
  }

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

  .calendar-slot-actions {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .hero-actions,
  .hero-meta-row,
  .contact-actions,
  .season-banner-actions,
  .service-templates,
  .footer-links,
  .site-nav,
  .site-actions {
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .contact-actions .primary-button,
  .contact-actions .secondary-button,
  .site-actions .action-link,
  .filter-chip,
  .template-chip,
  .dashboard-filter .primary-button,
  .status-form .secondary-button {
    width: 100%;
  }

  .booking-card summary,
  .booking-body {
    padding-inline: 16px;
  }

  .status-form {
    display: grid;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    right: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 0;
    z-index: 45;
    padding: 0 10px;
  }

  .mobile-sticky-cta-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(12, 24, 38, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(11, 18, 32, 0.14);
    backdrop-filter: blur(16px);
  }

  .mobile-sticky-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .mobile-sticky-copy span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .mobile-sticky-copy strong {
    display: block;
    font-size: 0.96rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
  }

  .mobile-sticky-cta .primary-button {
    min-width: 158px;
    min-height: 52px;
  }

  .mobile-sticky-spacer {
    display: block;
    height: calc(104px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: calc(100vw - 10px);
    margin: 8px auto 18px;
    gap: 12px;
  }

  .site-header,
  .page-section,
  .card-panel,
  .site-footer,
  .hero-copy-block,
  .hero-side-panel,
  .auth-copy,
  .auth-card,
  .dashboard-hero {
    padding: 16px;
    border-radius: 18px;
  }

  .brand-mark strong {
    font-size: 0.96rem;
  }

  .brand-mark small {
    margin-top: 2px;
    font-size: 0.84rem;
  }

  .brand-logo-image {
    width: 118px;
    max-width: 42vw;
  }

  .site-menu-toggle {
    min-height: 44px;
    padding-inline: 14px;
  }

  .hero-copy-block h1,
  .auth-copy h1 {
    font-size: clamp(1.82rem, 9vw, 2.35rem);
    line-height: 1.02;
  }

  .hero-lead,
  .section-copy,
  .panel-copy,
  .auth-copy p,
  .feature-card p,
  .timeline-card p,
  .detail-card p,
  .note-card p,
  .empty-card p {
    font-size: 0.97rem;
  }

  .meta-chip,
  .badge-live,
  .footer-links a {
    min-height: 44px;
  }

  .form-section,
  .status-box,
  .confidence-box,
  .trust-pill,
  .calendar-day-card {
    padding: 16px;
  }

  .booking-card summary,
  .booking-body {
    padding-inline: 14px;
  }

  .booking-card summary {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .booking-title-block h3 {
    font-size: 1.12rem;
  }

  .booking-step-card {
    padding: 16px;
  }

  .summary-grid,
  .booking-list,
  .calendar-day-slots,
  .slot-admin-list {
    gap: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .dashboard-meta,
  .hero-meta-row {
    gap: 8px;
  }

  .mobile-sticky-cta-bar {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta .primary-button {
    width: 100%;
    min-width: 0;
  }

  .mobile-sticky-spacer {
    height: calc(132px + env(safe-area-inset-bottom));
  }
}
