:root {
  --bg: #f5f2ea;
  --surface: #fffdfa;
  --surface-alt: #f1f6f2;
  --text: #17322c;
  --muted: #65746f;
  --line: #d8e2dd;
  --primary: #123f38;
  --primary-hover: #0b302b;
  --accent: #df684b;
  --accent-soft: #fff0e9;
  --success: #08765a;
  --warning: #9a5700;
  --danger: #b23a2b;
  --shadow: 0 18px 52px rgba(18, 63, 56, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 4%, rgba(223, 104, 75, 0.13), transparent 26rem),
    radial-gradient(circle at 4% 32%, rgba(18, 101, 82, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid rgba(216, 226, 221, 0.88);
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), #1c6c5d 62%, var(--accent));
  color: white;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 9px 24px rgba(18, 63, 56, 0.24);
}
.brand strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.brand > span:last-child { min-width: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-alt); }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b42318;
  color: white;
  font-size: 10px;
  font-weight: 800;
}
.nav-toggle { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

main { width: 100%; flex: 1; }
.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.hero > * { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a43f28;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1, h2, h3, .section-title { font-family: "Bricolage Grotesque", sans-serif; }
h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.055em; }
.lead { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.notice-card {
  padding: 22px;
  border: 1px solid #f2c7b9;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fffdfa, #fff0e9);
  box-shadow: var(--shadow);
}
.notice-card strong { display: block; margin-bottom: 8px; }
.notice-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.booking-page { padding-top: 38px; }
.booking-page .hero { grid-template-columns: 1fr; gap: 0; margin-bottom: 18px; }
.booking-page h1 { font-size: clamp(40px, 5vw, 58px); }
.booking-page .lead { margin-top: 14px; font-size: 16px; line-height: 1.55; }
.booking-page .notice-card { padding: 18px; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 24px; align-items: start; }
.customer-scheduler-layout { grid-template-columns: minmax(0, 1fr); width: min(860px, 100%); margin: 0 auto; }
.booking-layout > *,
.content-grid > *,
.admin-grid > * { min-width: 0; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.card-header h2, .section-title { margin: 0; font-size: 22px; letter-spacing: -0.025em; }
.card-header p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.card-body { padding: 24px; }
.meta-pill { white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: var(--surface-alt); color: var(--muted); font-size: 12px; font-weight: 600; }

.month-calendar {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.month-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.month-calendar-header h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.025em; }
.month-calendar-actions { display: flex; gap: 7px; }
.calendar-nav-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.calendar-nav-button:hover:not(:disabled) { border-color: #73aa9d; background: #e8f4ee; }
.calendar-nav-button:disabled { opacity: .34; cursor: not-allowed; }
.month-calendar-weekdays, .month-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.month-calendar-weekdays { margin-bottom: 7px; }
.month-calendar-weekdays span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.calendar-day {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 64px;
  padding: 7px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: center;
}
button.calendar-day { cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease; }
button.calendar-day:hover { z-index: 1; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(18, 63, 56, .09); }
.calendar-day strong { font-size: 15px; line-height: 1; }
.calendar-day small { overflow: hidden; max-width: 100%; font-size: 8px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day.available { border-color: #a7e2bf; background: #effbf4; }
.calendar-day.available small { color: #087443; }
.calendar-day.partial { border-color: #f6c66f; background: #fff8e8; }
.calendar-day.partial small { color: #9a5700; }
.calendar-day.blocked { border-color: #fda29b; background: #fff1f0; color: #912018; }
.calendar-day.blocked small { color: #b42318; }
.calendar-day.closed { border-color: #d5d9d7; background: #f1f3f2; color: #69716d; }
.calendar-day.closed small { color: #69716d; }
.calendar-day.selected { border-color: #0d5d47; background: #0d5d47; color: white; box-shadow: 0 0 0 3px rgba(13, 93, 71, .14); }
.calendar-day.selected small { color: #d1fadf; }
.calendar-day.blocked.selected { border-color: #9f271d; background: #9f271d; }
.calendar-day.blocked.selected small { color: #fee4e2; }
.calendar-day.closed.selected { border-color: #59635e; background: #59635e; color: white; }
.calendar-day.closed.selected small { color: #eef1ef; }
.calendar-day.today { outline: 2px solid var(--accent); outline-offset: 2px; }
.calendar-day.today::after { content: "Today"; color: var(--accent); font-size: 7px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.calendar-day.today.selected::after { color: #ffd7cc; }
.calendar-day-disabled { background: #f6f7f5; color: #a5ada9; }
.calendar-day-empty { visibility: hidden; }
.slot-heading { margin: 26px 0 12px; font-size: 14px; }
.slot-helper {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.availability-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-alt); }
.availability-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px white; }
.legend-available { background: #73d49c; }
.legend-selected { background: #315ee8; }
.legend-pending { background: #f79009; }
.legend-busy { background: #f04438; }
.legend-elapsed { background: #a7afab; }
.day-schedule {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f9fbf9);
}
.day-schedule-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.day-schedule-header h3 { margin: 4px 0 5px; font-size: 19px; }
.day-schedule-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.day-availability-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.day-availability-badge.open { background: #dcfae6; color: #087443; }
.day-availability-badge.busy { background: #fee4e2; color: #b42318; }
.day-availability-badge.closed { background: #eaeeec; color: #59635e; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.slot-option {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.slot-option span { max-width: 100%; font-size: 12px; font-weight: 900; line-height: 1.25; }
.slot-option small { font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.slot-option.available { border-color: #8bd3a8; background: #dcfae6; color: #087443; box-shadow: 0 3px 10px rgba(8, 118, 90, .08); }
.slot-option.available:hover { border-color: #12b76a; background: #c9f4d8; }
.slot-option.selected { border-color: #315ee8; background: #315ee8; color: white; box-shadow: 0 0 0 3px rgba(49, 94, 232, .16); }
.slot-option.busy { border-color: #f97066; background: #d92d20; color: white; }
.slot-option.pending { border-color: #f79009; background: #f79009; color: #321b00; }
.slot-option.elapsed { border-color: #d5d9d7; background: #eef1ef; color: #69716d; }
.slot-option:disabled { cursor: not-allowed; opacity: 1; }
.selection-dock {
  position: sticky;
  z-index: 10;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid #b7c8fb;
  border-radius: 15px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(18, 63, 56, .2);
  backdrop-filter: blur(14px);
}
.selection-dock[hidden] { display: none; }
.selection-dock > div { display: grid; gap: 3px; min-width: 0; }
.selection-dock span { color: #315ee8; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.selection-dock strong { font-size: 13px; }
.selection-dock small { color: var(--muted); font-size: 11px; font-weight: 700; }
.selection-dock .button { flex: 0 0 auto; min-height: 42px; background: #315ee8; }
.selection-dock .button:hover { background: #244bcc; }
.booking-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(88vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(18, 63, 56, .28);
}
.booking-dialog::backdrop { background: rgba(12, 35, 31, .56); backdrop-filter: blur(4px); }
.booking-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: min(88vh, 920px); }
.booking-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.booking-dialog-header h2 { margin: 5px 0 3px; font-size: 22px; }
.booking-dialog-header p { margin: 0; color: var(--muted); font-size: 11px; }
.dialog-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-alt); color: var(--text); font-size: 24px; cursor: pointer; }
.dialog-close:hover { border-color: #fda29b; background: #fff1f0; color: var(--danger); }
.booking-dialog-body { overflow: auto; padding: 22px 24px 26px; }
.busy-range-heading { margin-top: 24px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.schedule-item { min-width: 0; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; text-align: left; }
.schedule-item strong { display: block; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.schedule-item span { display: block; margin-top: 6px; font-size: 11px; font-weight: 900; }
.schedule-item small { display: block; margin-top: 3px; font-size: 9px; line-height: 1.35; }
.schedule-available { border-color: #86d3a7; background: #effbf4; color: #075e3b; }
.schedule-available span { color: #087443; }
.schedule-available:hover { border-color: #12b76a; background: #e3f8eb; }
.schedule-available.selected { border-color: #166534; background: #166534; color: white; box-shadow: 0 0 0 3px rgba(22, 101, 52, .14); }
.schedule-available.selected span { color: #d1fadf; }
.schedule-pending { border-color: #f5b94c; background: #fff8e8; color: #7a4100; }
.schedule-pending span, .schedule-pending small { color: #a15c00; }
.schedule-booked, .schedule-busy { border-color: #fda29b; background: #fff1f0; color: #912018; }
.schedule-booked span, .schedule-booked small,
.schedule-busy span, .schedule-busy small { color: #b42318; }
.empty-state { padding: 22px; border-radius: 14px; background: var(--surface-alt); color: var(--muted); text-align: center; }

.booking-form { display: grid; gap: 16px; }
.booking-step-indicator { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-step-indicator span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8f7; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.booking-step-indicator span.active { border-color: #315ee8; background: #eef3ff; color: #244bcc; }
.draft-hold-banner { display: grid; gap: 4px; padding: 14px 15px; border: 1px solid #f5b94c; border-radius: 14px; background: #fff8e8; color: #7a4100; }
.draft-hold-banner strong { font-size: 13px; }
.draft-hold-banner span { font-size: 12px; font-weight: 800; }
.draft-hold-banner b { color: var(--text); font-size: 13px; }
.draft-hold-banner small { color: #995700; font-size: 10px; line-height: 1.45; }
.secure-payment-methods { display: grid; gap: 12px; }
.secure-payment-methods .section-heading-row { margin-bottom: 0; }
.secure-payment-methods .payment-card { padding: 16px; box-shadow: none; }
.secure-payment-methods .payment-card code { font-size: 14px; }
.compact-payment-choice { display: grid; }
.compact-payment-choice [hidden] { display: none; }
.compact-payment-card { padding: 13px !important; }
.compact-payment-card p { display: none; }
.compact-payment-card .detail-list { margin-top: 10px; }
.payment-step-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.compact-policy { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.compact-policy summary { cursor: pointer; font-size: 12px; font-weight: 800; }
.compact-policy .policy-list { margin-top: 12px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 12px 13px;
  outline: none;
  transition: 160ms ease;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(223, 104, 75, 0.12); }
.summary-box { display: grid; gap: 8px; padding: 15px; border-radius: 14px; background: var(--surface-alt); color: var(--muted); font-size: 13px; }
.summary-box div { display: flex; justify-content: space-between; gap: 20px; }
.summary-box strong { color: var(--text); text-align: right; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 160ms ease;
}
.button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.button.secondary { border: 1px solid var(--line); background: white; color: var(--text); }
.button.secondary:hover { border-color: #73aa9d; background: var(--surface-alt); }
.button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.helper { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.page-head { margin-bottom: 30px; }
.page-head h1 { max-width: 820px; font-size: clamp(34px, 5vw, 56px); }
.page-head .lead { font-size: 17px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.stack { display: grid; gap: 16px; }
.payment-card, .step-card, .faq-item { padding: 22px; }
.payment-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.payment-card h3, .step-card h3 { margin: 0 0 7px; font-size: 16px; }
.payment-card code { display: inline-block; color: var(--accent); font-family: inherit; font-size: 16px; font-weight: 800; word-break: break-word; }
.payment-card p, .step-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.payment-card .masked-payment-note { color: #8a4b08; font-size: 11px; font-weight: 700; }
.payment-actions { display: grid; flex: 0 0 auto; gap: 8px; min-width: 142px; }
.payment-actions .button { width: 100%; }
.payment-actions [hidden] { display: none; }

.candidate-access-banner { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-bottom: 20px; padding: 16px 18px; border: 1px solid; border-radius: 16px; }
.candidate-access-banner.access-locked { border-color: #f2c46d; background: linear-gradient(135deg, #fffaf0, #fff3d7); }
.candidate-access-banner.access-active { border-color: #8ed2b1; background: linear-gradient(135deg, #f1fff8, #dcf9ea); }
.candidate-access-icon { display: grid; place-items: center; min-width: 48px; height: 38px; padding: 0 10px; border-radius: 11px; background: var(--primary); color: white; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.candidate-access-banner strong { display: block; font-size: 14px; }
.candidate-access-banner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.private-payment-page { min-height: 64vh; display: grid; place-items: center; }
.candidate-access-gate { width: min(100%, 680px); padding: clamp(28px, 6vw, 52px); text-align: center; background: radial-gradient(circle at top right, rgba(231, 111, 81, .13), transparent 38%), white; }
.candidate-access-gate h1 { margin: 12px 0; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.045em; }
.candidate-access-gate p { max-width: 560px; margin: 0 auto 24px; color: var(--muted); line-height: 1.7; }
.private-gate-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 23px; background: var(--primary); color: white; font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 16px 32px rgba(16, 63, 56, .22); }
.access-error { margin: 0 auto 20px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fff1f2; color: #9f1239; font-size: 12px; font-weight: 700; }
.callout { padding: 20px; border: 1px solid #fedf89; border-radius: var(--radius-md); background: #fffaeb; }
.callout strong { display: block; margin-bottom: 7px; color: var(--warning); }
.callout p { margin: 0; color: #7a2e0e; font-size: 13px; line-height: 1.6; }
.side-card { position: sticky; top: 98px; padding: 24px; }
.side-card h2 { margin: 0 0 10px; font-size: 19px; }
.side-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.side-card .button { width: 100%; margin-top: 10px; }
.step-card { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: #a43f28; font-weight: 800; }
.faq { margin-top: 34px; }
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

.success-panel { padding: 26px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 50%; background: #dcfae6; color: var(--success); font-size: 26px; font-weight: 800; }
.success-panel h2 { margin: 0 0 8px; }
.success-panel p { margin: 0 auto 20px; max-width: 560px; color: var(--muted); line-height: 1.6; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 6vw, 88px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 340px; padding: 13px 16px; border-radius: 12px; background: var(--primary); color: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero, .booking-layout, .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .hero { gap: 22px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 68px; padding: 10px 18px; }
  .brand { flex: 1 1 auto; }
  .brand-mark { flex: 0 0 auto; }
  .brand strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  .brand small { display: none; }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .page { width: min(100% - 28px, 1180px); padding: 38px 0 54px; }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .card-header, .card-body { padding-left: 18px; padding-right: 18px; }
  .booking-page { width: min(100% - 20px, 1180px); padding: 20px 0 34px; }
  .booking-page .hero { display: block; margin-bottom: 14px; }
  .booking-page .hero .notice-card { display: none; }
  .booking-page .eyebrow { margin-bottom: 8px; padding: 5px 8px; font-size: 9px; }
  .booking-page h1 { font-size: 34px; line-height: 1.04; letter-spacing: -.045em; }
  .booking-page .lead { margin-top: 8px; font-size: 13px; line-height: 1.45; }
  .customer-scheduler-layout .card { border-radius: 16px; box-shadow: 0 10px 30px rgba(18, 63, 56, .08); }
  .customer-scheduler-layout .card-header { align-items: center; gap: 10px; padding: 13px 12px; }
  .customer-scheduler-layout .card-header h2 { font-size: 18px; }
  .customer-scheduler-layout .card-header p { margin-top: 4px; font-size: 10px; line-height: 1.4; }
  .customer-scheduler-layout .meta-pill { padding: 5px 7px; font-size: 9px; }
  .customer-scheduler-layout .card-body { padding: 11px; }
  .booking-page .booking-options-grid { gap: 7px; margin: 9px 0 4px; }
  .booking-page .booking-option { gap: 5px; padding: 9px; }
  .booking-page .booking-option > small { display: none; }
  .booking-page .booking-option label, .booking-page .booking-option-label { font-size: 11px; }
  .booking-page .booking-option select { padding: 8px 9px; font-size: 11px; }
  .booking-page .duration-choice { min-height: 44px; padding: 6px; }
  .booking-page .duration-choice strong { font-size: 10px; }
  .booking-page .month-calendar { margin-top: 9px; }
  .booking-page .availability-legend { gap: 5px 10px; margin-top: 9px; padding: 8px 9px; }
  .booking-page .availability-legend span { gap: 5px; font-size: 9px; }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-card { align-items: flex-start; flex-direction: column; }
  .payment-card .button { width: 100%; }
  .footer { flex-direction: column; padding: 20px; }
  .month-calendar, .day-schedule { padding: 10px; border-radius: 13px; }
  .month-calendar-header { margin-bottom: 9px; }
  .month-calendar-header h3 { font-size: 17px; }
  .month-calendar-actions { gap: 5px; }
  .calendar-nav-button { width: 34px; height: 34px; }
  .month-calendar-weekdays, .month-calendar-grid { gap: 4px; }
  .month-calendar-weekdays span { font-size: 8px; }
  .calendar-day { min-height: 50px; border-radius: 9px; }
  .calendar-day strong { font-size: 13px; }
  .calendar-day small { width: 7px; height: 7px; border-radius: 50%; font-size: 0; }
  .calendar-day.available small { background: #12b76a; }
  .calendar-day.partial small { background: #f79009; }
  .calendar-day.blocked small { background: #f04438; }
  .calendar-day.closed small { background: #9da6a1; }
  .calendar-day.selected small { background: #d1fadf; }
  .calendar-day.today::after { font-size: 6px; }
  .booking-page .day-schedule { margin-top: 9px; }
  .day-schedule-header { align-items: center; flex-direction: row; gap: 8px; margin-bottom: 9px; }
  .day-schedule-header h3 { margin: 2px 0 0; font-size: 16px; }
  .day-schedule-header p { display: none; }
  .day-availability-badge { padding: 5px 7px; font-size: 7px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .slot-option { min-height: 50px; padding: 7px 6px; border-radius: 8px; }
  .slot-option span { font-size: 10px; }
  .slot-option small { font-size: 7px; }
  .selection-dock { align-items: center; flex-direction: row; gap: 8px; bottom: 6px; margin-top: 9px; padding: 9px 10px; }
  .selection-dock span { font-size: 7px; }
  .selection-dock strong { font-size: 11px; }
  .selection-dock small { font-size: 9px; }
  .selection-dock .button { width: auto; min-height: 38px; padding: 8px 12px; white-space: nowrap; }
  .booking-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .booking-dialog-shell { max-height: calc(100dvh - 16px); }
  .booking-dialog-header { padding: 17px 17px 14px; }
  .booking-dialog-header h2 { font-size: 19px; }
  .booking-dialog-body { padding: 17px; }
  .booking-step-indicator { gap: 5px; }
  .booking-step-indicator span { padding: 8px 6px; font-size: 8px; }
  .secure-payment-methods .payment-card { padding: 13px; }
  .secure-payment-methods .payment-actions { width: 100%; min-width: 0; }
  .upload-grid { grid-template-columns: 1fr; }
}

/* Interview uploads, confirmation, and local admin */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-field {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}
.upload-field input[type="file"] { padding: 9px; background: white; cursor: pointer; }
.upload-field small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.upload-field small.file-selected { color: var(--success); font-weight: 700; }
.upload-field small.file-error { color: var(--danger); font-weight: 700; }
.confirmation-box {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  padding: 15px;
  border: 1px solid #fedf89;
  border-radius: 14px;
  background: #fffaeb;
  color: #7a2e0e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
}
.confirmation-box input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 12px 13px;
  outline: none;
}
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(223, 104, 75, 0.12); }
.success-summary { max-width: 680px; margin: 0 auto 20px; text-align: left; }
.centered { justify-content: center; }
.success-helper { margin-top: 18px; }
.admin-page { width: min(1440px, calc(100% - 40px)); }
.admin-access-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #86d3a7;
  border-radius: 16px;
  background: linear-gradient(145deg, #f4fff8, #eaf8f0);
  color: #075e3b;
}
.admin-lock-mark { flex: 0 0 auto; padding: 7px 9px; border-radius: 8px; background: #087443; color: white; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.admin-access-banner strong { display: block; margin-bottom: 4px; font-size: 13px; }
.admin-access-banner p { margin: 0; color: #376451; font-size: 11px; line-height: 1.5; }
.admin-access-banner.local-demo { border-color: #fedf89; background: #fffaeb; color: #7a2e0e; }
.admin-access-banner.local-demo .admin-lock-mark { background: #b54708; }
.admin-access-banner.local-demo p { color: #7a4b00; }
.admin-access-action { flex: 0 0 auto; margin-left: auto; }
.visitor-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.visitor-metrics article { display: grid; gap: 5px; min-width: 0; padding: 18px; border: 1px solid #bfdbfe; border-radius: 18px; background: linear-gradient(145deg, #fff, #eff6ff); box-shadow: 0 8px 24px rgba(30, 64, 175, .06); }
.visitor-metrics span { color: #31548e; font-size: 12px; font-weight: 800; }
.visitor-metrics strong { color: #17366f; font-size: 32px; letter-spacing: -.05em; }
.visitor-metrics small { color: #54709f; font-size: 11px; overflow-wrap: anywhere; }
.admin-tabs {
  position: sticky;
  top: 88px;
  z-index: 8;
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 250, .94);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .07);
  backdrop-filter: blur(16px);
}
.admin-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.admin-tab:hover, .admin-tab.active { background: var(--primary); color: white; }
.admin-tab span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(17, 24, 39, .08); font-size: 10px; }
.admin-tab.active span { background: rgba(255, 255, 255, .18); }
.admin-tab .notification-count { background: var(--danger); color: white; }
.candidate-access-workspace { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: 22px; padding: 22px; }
.candidate-link-once { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.25fr); gap: 18px; align-items: center; padding: 17px 18px; border: 1px solid #8ed2b1; border-radius: 15px; background: #f1fff8; }
.candidate-link-once strong { display: block; margin: 5px 0 2px; }
.candidate-link-once p { margin: 0; color: var(--muted); font-size: 11px; }
.candidate-link-copy { display: flex; gap: 8px; min-width: 0; }
.candidate-link-copy input { min-width: 0; flex: 1; font-size: 11px; }
.candidate-access-form { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-alt); }
.candidate-access-form h3 { margin: 0 0 18px; }
.candidate-access-list { display: grid; align-content: start; gap: 10px; }
.candidate-access-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid #94a3b8; border-radius: 14px; background: white; }
.candidate-access-item.status-active { border-left-color: var(--success); }
.candidate-access-item.status-redeemed { border-left-color: #d97706; }
.candidate-access-item.status-used { border-left-color: #315ee8; }
.candidate-access-item h3 { margin: 7px 0 3px; font-size: 15px; }
.candidate-access-item p, .candidate-access-item small { display: block; margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.candidate-access-item .button { flex: 0 0 auto; }
.file-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.file-indicator::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.file-indicator.ready { color: var(--success); }
.file-indicator.ready::before { background: #12b76a; }
.file-indicator.missing { color: var(--danger); }
.file-indicator.missing::before { background: #f04438; }
.file-indicator.waiting::before { background: #f79009; }
.review-request { padding: 9px 11px; font-size: 11px; white-space: nowrap; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-pagination > div { display: flex; align-items: center; gap: 10px; }
.admin-pagination .button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.admin-pagination .button:disabled { opacity: .42; cursor: not-allowed; }
.request-review { min-width: 0; }
.request-review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); }
.candidate-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.candidate-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 18px; font-weight: 900; }
.candidate-identity h2 { margin: 4px 0 2px; font-size: 21px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.candidate-identity p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.review-section { padding: 21px 24px; border-bottom: 1px solid var(--line); }
.review-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.review-section-heading h3 { margin: 4px 0 0; font-size: 16px; }
.review-helper { color: var(--muted); font-size: 10px; }
.review-subheading { margin-top: 16px; }
.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.document-card { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); }
.document-card.document-ready { border-color: #a7f3d0; background: #f0fdf4; }
.document-card.document-missing { border-style: dashed; }
.document-type { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.document-card strong { min-height: 34px; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.document-card small { min-height: 30px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.document-card .button { margin-top: 4px; padding: 9px 11px; font-size: 11px; }
.request-copy-block { max-height: 220px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-alt); }
.request-copy-block p { margin: 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.review-detail-grid div { min-width: 0; padding: 12px; background: white; }
.review-detail-grid dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.review-detail-grid dd { margin: 5px 0 0; font-size: 11px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.request-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.request-timeline li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; min-height: 50px; }
.request-timeline li:not(:last-child)::before { content: ""; position: absolute; top: 15px; bottom: -1px; left: 6px; width: 2px; background: var(--line); }
.timeline-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 2px; border: 3px solid white; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 1px #cbd5e1; }
.timeline-complete .timeline-dot { background: #12b76a; box-shadow: 0 0 0 1px #12b76a; }
.timeline-current .timeline-dot { background: #f79009; box-shadow: 0 0 0 3px #fef0c7; }
.request-timeline strong { display: block; font-size: 11px; }
.request-timeline li div span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.request-review-actions { display: grid; gap: 14px; padding: 21px 24px 24px; background: var(--surface-alt); }
.request-review-actions > div:first-child strong { font-size: 13px; }
.request-review-actions > div:first-child p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.review-action-group { display: flex; flex-wrap: wrap; gap: 8px; }
.review-action-group .button { padding: 10px 12px; font-size: 11px; }
.admin-activity { margin-bottom: 24px; }
.admin-activity-actions { display: flex; align-items: center; gap: 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.admin-list { display: grid; gap: 11px; }
.admin-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-item h3 { margin: 7px 0 4px; font-size: 15px; }
.admin-item p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status-chip { display: inline-block; max-width: 100%; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: #a43f28; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--danger);
  font-size: 22px;
  cursor: pointer;
}
.icon-button:hover { background: #fff1f3; border-color: #fda4af; }
.button.danger { background: #fff1f3; color: var(--danger); border: 1px solid #fecdd3; }
.button.danger:hover { background: #ffe4e6; }
.activity-item { align-items: flex-start; }
.notification-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.notification-actions .button { min-height: 36px; padding: 8px 11px; }
.activity-unread {
  border-color: #bfdbfe;
  background: #f8fbff;
}

/* Task-first Admin workspace */
.admin-command-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.admin-command-header h1 { margin: 4px 0 7px; font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.045em; }
.admin-command-header p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.admin-header-date { display: grid; flex: 0 0 auto; gap: 5px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 253, 250, .8); text-align: right; }
.admin-header-date span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.admin-header-date strong { font-size: 13px; }
.admin-access-banner.compact { padding: 11px 14px; }
.admin-access-banner.compact p { display: inline; margin-left: 6px; }
.admin-access-banner > div:last-child, .admin-command-header > div { min-width: 0; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-summary-card { display: grid; gap: 5px; min-width: 0; padding: 18px; border: 1px solid #b9d8cf; border-radius: 18px; background: linear-gradient(145deg, #fff, #edf8f4); box-shadow: 0 10px 28px rgba(18, 63, 56, .06); }
.admin-summary-card.urgent { border-color: #fed7aa; background: linear-gradient(145deg, #fff, #fff7ed); }
.admin-summary-card.busy { border-color: #fecaca; background: linear-gradient(145deg, #fff, #fff1f2); }
.admin-summary-card span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.admin-summary-card strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.admin-summary-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 18px; align-items: start; }
.admin-section-card { overflow: hidden; }
.admin-section-card .card-header { align-items: center; }
.admin-section-card .card-header h2, .admin-calendar-card h2, .admin-traffic-panel h2 { margin: 4px 0 3px; }
.admin-section-card .card-header p, .admin-calendar-card .card-header p { max-width: 650px; }
.admin-booking-list { display: grid; gap: 10px; }
.admin-booking-card { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(180px, 1fr) auto auto; gap: 16px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.admin-booking-card:hover { border-color: #73aa9d; box-shadow: 0 8px 22px rgba(18, 63, 56, .07); }
.admin-booking-when, .admin-booking-person { min-width: 0; }
.admin-booking-when span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-booking-when strong { display: block; margin: 5px 0 3px; color: var(--primary); font-family: "Bricolage Grotesque", sans-serif; font-size: 17px; letter-spacing: -.02em; }
.admin-booking-when small { color: var(--muted); font-size: 10px; }
.admin-booking-person h3 { margin: 7px 0 3px; font-size: 14px; }
.admin-booking-person p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.admin-document-readiness { display: grid; gap: 5px; }
.admin-upcoming-card { margin-top: 18px; }
.compact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-list .admin-booking-card { grid-template-columns: 1fr; align-content: start; }
.compact-list .admin-document-readiness { grid-template-columns: repeat(3, auto); justify-content: start; }
.admin-current-sections { display: grid; gap: 18px; }
.admin-agenda { display: grid; gap: 9px; }
.admin-agenda-item { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 14px; background: white; }
.admin-agenda-item time { color: var(--text); font-size: 12px; font-weight: 900; white-space: nowrap; }
.admin-agenda-item div { min-width: 0; }
.admin-agenda-item strong, .admin-agenda-item small { display: block; overflow-wrap: anywhere; }
.admin-agenda-item strong { font-size: 12px; }
.admin-agenda-item small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.admin-agenda-item.agenda-busy { border-color: #fecaca; border-left-color: #dc2626; background: #fff5f5; }
.admin-agenda-item.agenda-pending { border-color: #fed7aa; border-left-color: #f59e0b; background: #fffbeb; }
.admin-agenda-item.agenda-confirmed { border-color: #a7f3d0; border-left-color: #059669; background: #f0fdf4; }
.admin-agenda-item.agenda-completed { border-color: #bae6fd; border-left-color: #0284c7; background: #f0f9ff; }
.admin-agenda-actions { display: flex; gap: 7px; justify-content: flex-end; }
.admin-agenda-actions .button { min-height: 36px; padding: 8px 11px; }
.admin-agenda-empty { min-height: 150px; }
.admin-traffic-panel { margin-top: 18px; overflow: hidden; }
.admin-traffic-panel > .card-header { align-items: center; }
.traffic-definition { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: 0 24px 18px; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 13px; background: #eff6ff; color: #31548e; font-size: 11px; line-height: 1.55; }
.traffic-definition strong { color: #17366f; white-space: nowrap; }
.traffic-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 24px 24px; }
.visitor-metrics.compact { margin: 0; }
.visitor-metrics.compact article { padding: 13px 15px; }
.visitor-metrics.compact strong { font-size: 24px; }
.recent-visitor-panel { border-top: 1px solid var(--line); background: #fbfcfb; }
.recent-visitor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px 24px 14px; }
.recent-visitor-heading h3 { margin: 4px 0 0; font-size: 18px; }
.recent-visitor-heading > small { color: var(--muted); font-size: 10px; }
.recent-visitor-list { display: grid; gap: 8px; padding: 0 24px 24px; }
.recent-visitor-item { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(180px, auto) minmax(190px, auto); gap: 16px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.recent-visitor-identity, .recent-visitor-time { display: grid; min-width: 0; gap: 4px; }
.recent-visitor-identity strong { font-size: 12px; overflow-wrap: anywhere; }
.recent-visitor-identity small, .recent-visitor-time span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.recent-visitor-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-visitor-stats span { padding: 5px 7px; border-radius: 999px; background: #edf8f4; color: #176b56; font-size: 9px; font-weight: 800; white-space: nowrap; }
.recent-visitor-time { text-align: right; }
.recent-visitor-time strong { color: var(--text); font-size: 10px; overflow-wrap: anywhere; }
.admin-calendar-card { overflow: hidden; }
.admin-calendar-toolbar { align-items: flex-end; }
.admin-calendar-toolbar .field { width: min(240px, 100%); }
.admin-calendar-date-controls { display: flex; align-items: end; gap: 8px; }
.admin-calendar-date-controls .field { width: min(210px, 100%); }
.admin-calendar-date-controls .button { min-height: 42px; }
.admin-calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 11px 24px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.admin-calendar-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-calendar-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.legend-busy::before { background: #dc2626; }
.legend-pending::before { background: #f59e0b; }
.legend-confirmed::before { background: #059669; }
.legend-completed::before { background: #0284c7; }
.admin-calendar-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); min-height: 480px; }
.admin-day-column { min-width: 0; padding: 24px; }
.admin-day-column > h3 { margin: 0 0 16px; font-size: 17px; }
.admin-calendar-history-note { margin: -5px 0 16px; padding: 10px 12px; border: 1px solid #bae6fd; border-radius: 11px; background: #f0f9ff; color: #075985; font-size: 10px; line-height: 1.5; }
.admin-block-panel { padding: 24px; border-left: 1px solid var(--line); background: #f8faf9; }
.admin-block-panel h3 { margin: 5px 0 7px; font-size: 20px; }
.admin-block-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-block-form { gap: 13px; }
.block-conflict-message { padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.45; }
.block-conflict-message.has-conflict { border-color: #fecaca; background: #fff1f2; color: #b42318; }
.block-conflict-message.is-clear { border-color: #a7f3d0; background: #f0fdf4; color: #087443; }
.admin-block-form .button:disabled { opacity: .45; cursor: not-allowed; }
.weekly-schedule-card { margin-top: 18px; overflow: hidden; }
.weekly-schedule-workspace { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); min-height: 360px; }
.weekly-rule-form { align-content: start; padding: 24px; border-right: 1px solid var(--line); background: #f8faf9; }
.weekly-rule-form h3 { margin: 0 0 4px; font-size: 20px; }
.weekly-rule-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.weekly-rule-list { display: grid; align-content: start; gap: 10px; padding: 24px; }
.editable-rule { align-items: center; }
.editable-rule small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.schedule-rule-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.schedule-rule-actions .button { min-height: 36px; padding: 8px 11px; }
.confirmed-booking-management { border-top: 1px solid var(--line); background: linear-gradient(145deg, #f4fbf8, #fbfffd); }
.admin-reschedule-form { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(140px, .7fr) minmax(210px, 1fr) auto; gap: 12px; align-items: end; margin-top: 16px; }
.admin-reschedule-form > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-rules-details { margin-top: 18px; }
.admin-rules-details > summary { padding: 17px 20px; font-size: 12px; font-weight: 800; cursor: pointer; }
.admin-rules-details[open] > summary { border-bottom: 1px solid var(--line); }
.admin-history-search { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, .45fr) auto auto; gap: 10px; align-items: end; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.history-list { min-height: 180px; }
.admin-review-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(8, 28, 24, .3); }
.admin-review-dialog::backdrop { background: rgba(8, 28, 24, .58); backdrop-filter: blur(6px); }
.admin-review-dialog .request-review { background: var(--surface); }
.admin-review-header { position: sticky; top: 0; z-index: 2; background: rgba(255, 253, 250, .96); backdrop-filter: blur(14px); }
.admin-review-header-actions { display: flex; align-items: center; gap: 10px; }
.admin-interview-focus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.admin-interview-focus > div { min-width: 0; padding: 17px 20px; background: #eff8f4; }
.admin-interview-focus span, .admin-interview-focus strong, .admin-interview-focus small { display: block; }
.admin-interview-focus span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.admin-interview-focus strong { margin-top: 6px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.admin-interview-focus small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-record-details > summary { padding: 15px 24px; border-bottom: 1px solid var(--line); background: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-record-details .review-section { background: #fbfcfb; }

@media (max-width: 1180px) {
  .admin-dashboard-grid, .admin-calendar-workspace { grid-template-columns: 1fr; }
  .admin-block-panel { border-top: 1px solid var(--line); border-left: 0; }
  .weekly-schedule-workspace { grid-template-columns: 1fr; }
  .weekly-rule-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-booking-card { grid-template-columns: minmax(145px, .7fr) minmax(170px, 1fr) auto; }
  .admin-booking-card > .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .compact-list { grid-template-columns: 1fr; }
  .compact-list .admin-booking-card { grid-template-columns: minmax(145px, .7fr) minmax(170px, 1fr) auto; }
  .compact-list .admin-document-readiness { grid-template-columns: 1fr; }
  .admin-history-search { grid-template-columns: 1fr 1fr; }
  .admin-history-search .button { width: 100%; }
}

@media (max-width: 700px) {
  .admin-page { width: min(100% - 24px, 1440px); padding-top: 34px; }
  .admin-command-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .admin-command-header > div { width: 100%; }
  .admin-command-header h1 { max-width: 100%; font-size: 36px; line-height: 1.02; overflow-wrap: anywhere; }
  .admin-command-header p, .admin-summary-card small, .admin-access-banner strong, .admin-access-banner p { overflow-wrap: anywhere; }
  .admin-header-date { width: 100%; text-align: left; }
  .admin-access-banner { align-items: flex-start; }
  .admin-access-banner.compact p { display: block; margin: 4px 0 0; }
  .admin-access-action { width: 100%; margin-left: 0; text-align: center; }
  .admin-summary-grid { grid-template-columns: 1fr; }
  .visitor-metrics { grid-template-columns: 1fr; }
  .admin-tabs { top: 78px; overflow-x: auto; scrollbar-width: none; }
  .admin-tab { flex: 0 0 auto; }
  .admin-section-card .card-header, .admin-calendar-toolbar { align-items: stretch; flex-direction: column; }
  .admin-section-card .card-header .button { width: 100%; }
  .admin-booking-card, .compact-list .admin-booking-card { grid-template-columns: 1fr; align-items: start; }
  .admin-document-readiness, .compact-list .admin-document-readiness { grid-template-columns: repeat(3, auto); justify-content: start; }
  .review-request { width: 100%; }
  .admin-agenda-item { grid-template-columns: 1fr auto; }
  .admin-agenda-item time { grid-column: 1 / -1; }
  .admin-agenda-item .button { align-self: end; }
  .admin-agenda-actions { grid-column: 1 / -1; justify-content: stretch; }
  .admin-agenda-actions .button { flex: 1; }
  .traffic-definition { grid-template-columns: 1fr; margin-inline: 18px; }
  .traffic-definition strong { white-space: normal; }
  .traffic-metrics { grid-template-columns: 1fr; padding-inline: 18px; }
  .recent-visitor-heading { align-items: flex-start; flex-direction: column; gap: 6px; padding-inline: 18px; }
  .recent-visitor-list { padding-inline: 18px; }
  .recent-visitor-item { grid-template-columns: 1fr; gap: 10px; }
  .recent-visitor-time { text-align: left; }
  .admin-calendar-toolbar .field { width: 100%; }
  .admin-calendar-date-controls { align-items: stretch; flex-wrap: wrap; }
  .admin-calendar-date-controls .field { flex: 1 1 180px; width: auto; }
  .admin-calendar-date-controls .button { flex: 1 1 100%; }
  .admin-day-column, .admin-block-panel { padding: 18px; }
  .admin-history-search { grid-template-columns: 1fr; }
  .admin-pagination { align-items: stretch; flex-direction: column; }
  .admin-pagination > div { justify-content: space-between; }
  .request-review-header { align-items: flex-start; flex-direction: column; }
  .admin-review-header-actions { justify-content: space-between; width: 100%; }
  .admin-interview-focus { grid-template-columns: 1fr; }
  .document-grid, .review-detail-grid { grid-template-columns: 1fr; }
  .review-section-heading { align-items: flex-start; flex-direction: column; }
  .review-action-group { flex-direction: column; }
  .review-action-group .button { width: 100%; }
  .admin-activity-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .admin-activity-actions .button { width: 100%; }
  .admin-activity .card-header { align-items: stretch; flex-direction: column; }
  .activity-item { flex-direction: column; }
  .notification-actions { width: 100%; }
  .notification-actions .button { flex: 1; }
  .upload-grid { grid-template-columns: 1fr; }
  .confirmation-box { font-size: 11px; }
  .admin-item { align-items: flex-start; }
  .weekly-rule-form, .weekly-rule-list { padding: 18px; }
  .weekly-rule-time-fields, .admin-reschedule-form { grid-template-columns: 1fr; }
  .admin-reschedule-form .button { width: 100%; }
  .editable-rule { align-items: stretch; flex-direction: column; }
  .schedule-rule-actions { width: 100%; }
  .schedule-rule-actions .button { flex: 1; }
}

.service-unavailable { max-width: 760px; margin: 8vh auto 0; padding: clamp(24px, 6vw, 48px); text-align: center; }
.service-unavailable h1 { margin: 18px auto 14px; max-width: 620px; font-size: clamp(30px, 5vw, 48px); }
.service-unavailable p { max-width: 590px; margin: 0 auto 24px; color: var(--muted); line-height: 1.7; }

@media (max-width: 420px) {
  .admin-document-readiness, .compact-list .admin-document-readiness { grid-template-columns: 1fr; }
  .candidate-identity { align-items: flex-start; }
}

.booking-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 6px;
}
.booking-option {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-alt);
}
.booking-option label { font-size: 13px; font-weight: 800; }
.booking-option-label { font-size: 13px; font-weight: 800; }
.booking-option select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 9px 11px;
  font-weight: 700;
}
.booking-option small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.duration-segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 7px; }
.duration-choice { display: grid; gap: 2px; min-width: 0; min-height: 52px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--text); cursor: pointer; }
.duration-choice strong { font-size: 11px; }
.duration-choice small { overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.duration-choice:hover { border-color: #8da9f5; }
.duration-choice.selected { border-color: #315ee8; background: #315ee8; color: white; box-shadow: 0 0 0 3px rgba(49, 94, 232, .12); }
.duration-choice.selected small { color: rgba(255, 255, 255, .78); }
@media (max-width: 820px) {
  .booking-options-grid { grid-template-columns: 1fr; }
}


/* Expanded payment and setup pages */
.payment-section { margin-bottom: 28px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading-row.compact { align-items: center; margin: 4px 0 14px; }
.section-heading-row h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -0.025em; }
.section-description { max-width: 600px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price-card { padding: 22px; }
.price-label, .payment-method-label { display: inline-block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.price-card h3 { margin: 8px 0 20px; font-size: 17px; }
.price-values { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-values strong { font-size: 29px; letter-spacing: -.04em; }
.price-values span { color: var(--muted); font-size: 15px; font-weight: 700; }
.payment-layout { margin-top: 4px; }
.policy-card { padding: 22px; }
.policy-list, .mini-checklist { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.policy-list li::marker, .mini-checklist li::marker { color: var(--accent); font-weight: 800; }
.detailed-payment-card { align-items: flex-start; }
.payment-card-content { min-width: 0; flex: 1; }
.detail-list { display: grid; gap: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.detail-list div { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 700; word-break: break-word; }
.payment-side-card .mini-checklist { margin: 16px 0 18px; }
.setup-highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.setup-highlight { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; padding: 17px; border: 1px solid #f2c7b9; border-radius: 16px; background: linear-gradient(145deg, #fffdfa, #fff0e9); }
.setup-highlight span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: white; font-size: 12px; font-weight: 800; }
.setup-highlight p { margin: 1px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.resource-section { margin-top: 14px; }
.resource-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; }
.resource-card h3 { margin: 0 0 7px; font-size: 16px; }
.resource-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.resource-card .button { flex: 0 0 auto; }
.security-callout { padding: 20px; border: 1px solid #fecaca; border-radius: var(--radius-md); background: #fff1f2; }
.security-callout strong { display: block; margin-bottom: 7px; color: var(--danger); }
.security-callout p { margin: 0; color: #881337; font-size: 13px; line-height: 1.65; }
.side-card .mini-checklist { margin: 16px 0 18px; }

@media (max-width: 900px) {
  .pricing-grid, .setup-highlight-grid { grid-template-columns: 1fr; }
  .candidate-access-workspace { grid-template-columns: 1fr; }
  .candidate-link-once { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .price-values { align-items: flex-start; flex-direction: column; }
  .detail-list div { grid-template-columns: 1fr; gap: 4px; }
  .resource-card { align-items: flex-start; flex-direction: column; }
  .resource-card .button { width: 100%; }
  .candidate-access-banner { grid-template-columns: 1fr; }
  .candidate-access-icon { width: max-content; }
  .candidate-access-item { align-items: flex-start; flex-direction: column; }
  .candidate-access-item .button { width: 100%; }
  .candidate-link-copy { align-items: stretch; flex-direction: column; }
}


/* Pending payment-verification flow */
.pending-icon { background: #fff7d6; color: #b54708; }
.status-pending { background: #fff3cd; color: #8a4b08; }
.status-approved, .status-confirmed { background: #dcfae6; color: #087443; }
.status-rejected { background: #ffe4e8; color: #b42318; }
.status-cancelled { background: #f1f5f9; color: #475569; }
.configured-schedule-card { margin-bottom: 24px; }
.configured-schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.schedule-rule { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid #fecaca; border-radius: 13px; background: #fff7f7; }
.schedule-rule div { min-width: 0; }
.schedule-rule span { display: block; color: var(--danger); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.schedule-rule strong { display: block; margin-top: 4px; font-size: 12px; }
.schedule-rule b { flex: 0 0 auto; font-size: 11px; }
.booking-main { min-width: 0; flex: 1; }
.booking-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.slot-chip { color: var(--muted); font-size: 11px; font-weight: 700; }

.status-payment_pending { background: #fff4ce; color: #7a4b00; }
.status-payment_submitted { background: #e8edff; color: #27368f; }
