:root {
  color-scheme: light;
  --paper: #f6f7ef;
  --card: #fffef9;
  --ink: #173e36;
  --muted: #546961;
  --action: #22634e;
  --line: #d9e4d9;
  --wash: #e6f0e4;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--action); }
button, select { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1130px, calc(100% - 36px)); margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand [aria-hidden] { display: grid; place-items: center; background: var(--ink); color: #fff; width: 39px; height: 39px; border-radius: 9px 9px 9px 3px; }
.patient-call { display: none; }
main { padding: 24px 0 70px; }
.title { margin: 12px 0 22px; }
.title h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
.title p { color: var(--muted); margin-top: 7px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(14px, 2.7vw, 24px); min-width: 0; }
.panel h2 { font-size: 1.14rem; }
.panel h3 { font-size: .99rem; }
.card { padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.stack { display: grid; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compact { font-size: .875rem; color: var(--muted); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 7px; background: var(--wash); font-size: .78rem; font-weight: 700; }
.label { display: grid; gap: 5px; font-size: .87rem; min-width: 0; }
.label input, select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bacdc1; padding: 8px 10px; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 16px; }
.label textarea { min-height: 94px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .83rem; }
.check input { margin-top: 4px; accent-color: var(--action); }
.button { min-height: 44px; padding: 8px 13px; border: 1px solid #b3cbba; border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: .87rem; align-items: center; display: inline-flex; justify-content: center; text-decoration: none; }
.button.primary { color: #fff; border-color: var(--action); background: var(--action); font-weight: 650; }
.booking-progress { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 7px; padding: 0; }
.booking-progress li { padding: 8px 0; border-top: 3px solid var(--line); color: var(--muted); font-size: .84rem; }
.booking-progress [aria-current="step"] { border-color: var(--action); color: var(--ink); font-weight: 700; }
.booking-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.booking-summary dt { color: var(--muted); font-size: .84rem; }
.booking-summary dd { margin: 0; }
.narrow { max-width: 580px; }
.spaced { margin-top: 15px; }
.notice { padding: 10px 16px; margin-bottom: 14px; border-radius: 9px; background: var(--wash); }
.notice.error { color: #852c26; background: #fbece9; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; }
legend { font-size: .86rem; font-weight: 650; }
.patient-page {
  --paper: #f3f8f6;
  --card: #fff;
  --ink: #17352d;
  --muted: #4e6c60;
  --action: #14654e;
  --line: #d7e5df;
  --wash: #e6f3ed;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
.patient-page .shell { width: min(100% - 32px, 520px); }
.patient-page .top {
  width: 100%;
  padding: 12px max(16px, calc((100% - 520px) / 2));
  min-height: 69px;
  background: #fff;
  border-color: #e4eee9;
}
.patient-page #account { display: none; }
.patient-page .brand { font-size: 1.04rem; }
.patient-page .brand [aria-hidden] { background: var(--action); }
.patient-page .patient-call {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid #d9ebe2;
  background: #eaf5f0;
  color: var(--action);
}
.patient-page main { padding: 18px 0 max(26px, env(safe-area-inset-bottom)); }
.patient-dashboard-view .brand { min-height: 44px; font-size: 1.125rem; }
.patient-dashboard-view .brand [aria-hidden], .patient-dashboard-view .patient-call { display: none; }
.patient-dashboard-view #account { display: flex; }
.patient-profile-button { width: 44px; padding: 0; border-color: var(--line); border-radius: 50%; color: var(--action); }
.patient-profile-button svg { width: 23px; height: 23px; }
.patient-dashboard, .patient-appointment { display: grid; gap: 14px; }
.patient-dashboard h1 { margin: 5px 0 3px; font-size: clamp(1.75rem, 6.5vw, 2.125rem); line-height: 1.3; overflow-wrap: anywhere; }
.patient-appointment .panel, .patient-rebook-form > .panel { border-radius: 18px; padding: 20px; }
.patient-appointment-status { display: grid; justify-items: center; gap: 10px; text-align: center; }
.patient-appointment .patient-appointment-status { padding: 24px 20px; }
.patient-status-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--wash); color: var(--action); }
.patient-status-icon svg { width: 29px; height: 29px; }
.patient-appointment-status h2 { font-size: 1.25rem; }
.patient-appointment-status p { max-width: 24em; color: var(--muted); overflow-wrap: anywhere; }
.patient-history { list-style: none; margin: 0; padding: 0; }
.patient-history-record { display: grid; gap: 8px; padding: 16px; border-radius: 18px; }
.patient-history-record time {
  font-size: clamp(1.2rem, 5.1vw, 1.375rem); line-height: 1.3; font-weight: 750; white-space: nowrap;
}
.patient-history-meta {
  display: grid; grid-template-columns: minmax(0, 1fr) fit-content(46%); align-items: center;
  gap: 10px; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere;
}
.patient-history-therapist { display: flex; align-items: center; gap: 7px; text-align: right; }
.patient-history-therapist img { flex: none; background: var(--wash); }
.patient-history-message { padding: 24px 16px; border-radius: 18px; color: var(--muted); text-align: center; }
.patient-history-message h2 { color: var(--ink); }
.patient-visit h2 { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; }
.patient-visit h2 svg { flex: 0 0 23px; height: 23px; color: var(--action); }
.patient-visit-time { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 13px; }
.patient-visit-time p, .patient-visit-hint { color: var(--muted); }
.patient-visit-label { font-size: .9375rem; font-weight: 650; }
.patient-visit-time time { display: block; margin: 3px 0; font-size: clamp(1.65rem, 7vw, 2rem); line-height: 1.3; font-weight: 750; }
.patient-visit-hint { margin-top: 12px; text-wrap: balance; }
.patient-therapist-card { display: grid; gap: 12px; color: var(--ink); text-decoration: none; }
.patient-therapist-card:hover { border-color: var(--action); }
.patient-therapist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.patient-therapist-row :is(strong, p) { overflow-wrap: anywhere; }
.patient-therapist-row p { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.patient-therapist-row > svg { color: var(--action); }
.patient-therapist-card .therapist-application-photo, .patient-therapist-profile .therapist-application-photo { background: var(--wash); }
.patient-profile-back { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.patient-therapist-profile { display: grid; justify-items: center; gap: 9px; padding: 24px 20px; text-align: center; overflow-wrap: anywhere; }
.patient-therapist-profile dl { margin: 0; }
.patient-therapist-profile dt { color: var(--muted); font-size: .9375rem; }
.patient-therapist-profile dd { margin: 2px 0 0; }
.patient-appointment-details h2 { font-size: 1.125rem; }
.patient-appointment-details dl { margin: 4px 0 0; }
.patient-appointment-details dl > div { padding: 13px 0; }
.patient-appointment-details dl > div + div { border-top: 1px solid var(--line); }
.patient-appointment-details dl > div:last-child { padding-bottom: 0; }
.patient-appointment-details dt { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .9375rem; font-weight: 650; }
.patient-appointment-details dt svg { flex: 0 0 20px; color: var(--action); }
.patient-appointment-details dd { margin: 3px 0 0 29px; overflow-wrap: anywhere; }
.patient-appointment-details .pre { color: var(--muted); margin-top: 3px; }
.patient-appointment-actions { display: grid; gap: 4px; }
.patient-contact-button { width: 100%; min-height: 50px; gap: 8px; border-color: var(--action); border-radius: 11px; color: var(--action); font-size: 1rem; font-weight: 650; }
.patient-completed-actions { gap: 10px; }
.patient-rebook-button { width: 100%; min-height: 50px; gap: 8px; border-radius: 11px; font-size: 1rem; }
.member-back-nav { display: none; }
.member-back-view .top > :is(.brand, #account) { display: none; }
.member-back-view .member-back-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; width: 100%; }
.member-back-nav a { display: grid; place-items: center; width: 44px; min-height: 44px; border-radius: 50%; }
.member-back-nav a svg { transform: rotate(180deg); }
.member-back-nav h1 { text-align: center; font-size: 1.125rem; }
.patient-rebook-time > p { color: var(--muted); }
.patient-rebook-time .label { font-size: .9375rem; }
.patient-rebook-submit { display: grid; gap: 8px; text-align: center; }
.patient-cancel-button { justify-self: center; padding-inline: 20px; background: transparent; border-color: transparent; color: var(--muted); font-size: .9375rem; }
.patient-dashboard-view .patient-contact-button:hover, .patient-profile-button:hover, .patient-cancel-button:hover { background: var(--wash); }
.member-profile dd { overflow-wrap: anywhere; }
.member-center > .panel { border-radius: 18px; }
.member-center .patient-therapist-card { padding: 16px; }
.member-center .patient-therapist-row { min-height: 60px; }
.member-center .patient-therapist-row strong { font-size: 1.125rem; }
.member-center .therapist-visit-avatar { width: 60px; height: 60px; }
.member-center .therapist-visit-avatar svg { width: 28px; height: 28px; }
.member-center-menu { padding: 0 16px; }
.member-center-menu a {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  min-height: 60px; color: var(--ink); font-weight: 650; text-decoration: none;
}
.member-center-menu a + a { border-top: 1px solid var(--line); }
.member-center-menu a:hover { color: var(--action); }
.member-center-menu a > svg { color: var(--action); }
.member-center-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--wash); color: var(--action); }
.member-center-logout { margin-top: 6px; }
.member-center-logout .button { width: 100%; min-height: 50px; border-radius: 11px; font-size: 1rem; }
.weekly-availability > .panel { padding: 16px; border-radius: 18px; }
.weekly-availability-table { width: 100%; table-layout: fixed; border-spacing: 5px 7px; font-size: .875rem; text-align: center; }
.weekly-availability-table :is(th, td) { padding: 0; }
.weekly-availability-table th:first-child { width: 2.125rem; }
.weekly-availability-table thead th { padding-bottom: 3px; }
.weekly-availability-table thead span {
  display: block; font-size: clamp(.625rem, 2.85vw, .75rem); font-weight: 400; white-space: nowrap;
}
.weekly-availability-slot { position: relative; display: block; }
.weekly-availability-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.weekly-availability-slot > span, .weekly-availability-legend > span > span {
  display: grid; place-items: center; border: 1px solid #e1e7e3; border-radius: 9px; background: #f1f4f2; color: var(--muted);
}
.weekly-availability-slot > span { min-height: 46px; }
.weekly-availability-slot input:checked + span, .weekly-availability-legend .weekly-slot-available {
  border-color: #cfe3d9; background: var(--wash); color: var(--action);
}
.weekly-availability-slot input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.weekly-availability-slot input:not(:checked) + span svg:first-child,
.weekly-availability-slot input:checked + span svg:last-child { display: none; }
.weekly-availability-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; padding-top: 11px; border-top: 1px solid var(--line); }
.weekly-availability-legend > span { display: flex; align-items: center; gap: 6px; }
.weekly-availability-legend > span > span { width: 24px; height: 24px; border-radius: 6px; }
.weekly-availability-legend svg { width: 16px; height: 16px; }
.weekly-availability-notes { display: grid; gap: 9px; padding: 2px 3px; }
.weekly-availability-notes p { display: flex; align-items: flex-start; gap: 8px; }
.weekly-availability-notes svg { flex: 0 0 20px; color: var(--action); }
.weekly-availability-error { padding: 9px 12px; border-radius: 9px; background: #fbece9; color: #852c26; }
.therapist-service-area > .panel { padding: 18px; border-radius: 18px; }
.service-area-place { display: grid; min-height: 62px; justify-content: stretch; text-align: left; font-size: 1rem; }
.service-area-place:hover { border-color: var(--action); }
.service-area-place [data-place-district] { display: block; overflow-wrap: anywhere; }
.service-area-radius-title, .service-area-range-limits { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-area-radius-title [data-radius-value] { color: var(--action); font-size: 1.5rem; line-height: 1.2; }
.therapist-service-area input[type="range"] { display: block; width: 100%; min-height: 44px; margin: 0; accent-color: var(--action); cursor: pointer; }
.service-area-map {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 3;
  background: var(--wash); border-radius: 11px; overflow: hidden;
}
.service-area-map > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-area-map [data-map-circle], .service-area-marker { position: absolute; left: 50%; top: 50%; }
.service-area-map [data-map-circle] {
  transform: translate(-50%, -50%); aspect-ratio: 1; border: 2px solid var(--action);
  border-radius: 50%; background: color-mix(in srgb, var(--action) 21%, transparent);
}
.service-area-marker {
  display: grid; place-items: center; width: 24px; height: 24px; transform: translate(-50%, -83.333%);
  color: var(--action);
}
.service-area-marker svg { width: 24px; height: 24px; fill: var(--card); }
.therapist-dashboard { gap: 20px; }
.therapist-visit-list { display: grid; gap: 12px; }
.therapist-visit-list h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.125rem; }
.therapist-visit-list h2 span { min-width: 28px; padding: 3px 8px; border-radius: 14px; background: var(--wash); color: var(--action); text-align: center; font-size: .875rem; }
.therapist-visit, .therapist-visit-empty { padding: 16px; border-radius: 18px; }
.therapist-visit-empty { color: var(--muted); }
.therapist-visit-link-card, .therapist-visit-link { color: var(--ink); text-decoration: none; }
.therapist-visit-link-card:hover { border-color: var(--action); }
.therapist-visit-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; }
a.therapist-visit-link { grid-template-columns: auto minmax(0, 1fr) auto; }
.therapist-visit-link > svg { color: var(--action); }
.therapist-visit-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wash); color: var(--action); }
.therapist-visit-person { min-width: 0; overflow-wrap: anywhere; }
.therapist-visit-person strong { font-size: 1.0625rem; }
.therapist-visit-person p, .therapist-visit-time p, .therapist-visit-address { color: var(--muted); font-size: .9375rem; }
.therapist-visit-body { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.therapist-visit-time time { font-size: clamp(1.25rem, 5.5vw, 1.5rem); font-weight: 750; white-space: nowrap; }
.therapist-visit-address { display: flex; align-items: flex-start; gap: 7px; overflow-wrap: anywhere; }
.therapist-visit-address svg { flex: 0 0 20px; margin-top: 1px; color: var(--action); }
.therapist-visit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.therapist-visit-actions .button { font-size: .9375rem; }
.therapist-patient-identity { display: flex; gap: 12px; align-items: center; margin-top: 12px; overflow-wrap: anywhere; }
.therapist-patient-identity .therapist-visit-avatar { flex: 0 0 44px; }
.therapist-patient-identity p, .therapist-patient-phone p:first-child { color: var(--muted); font-size: .9375rem; }
.therapist-patient-phone { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 15px; }
.therapist-patient-phone > svg { color: var(--action); }
.therapist-navigation { width: 100%; margin-top: 14px; gap: 7px; color: var(--action); }
.therapist-detail-actions { gap: 10px; }
.therapist-detail-actions > .button.primary { min-height: 50px; font-size: 1rem; border-radius: 11px; }
.patient-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  min-height: 136px;
  padding: 24px 22px;
  border: 1px solid #d2e9de;
  border-radius: 22px;
  background: linear-gradient(110deg, #e0f1e9 8%, #d4eee1 100%);
}
.patient-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 55%;
  background: repeating-radial-gradient(circle at 74% 59%, transparent 0 17px, #629f871c 18px 19px, transparent 20px 31px);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.patient-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 39px;
  right: 26px;
  width: 51px;
  height: 51px;
  border: 1px solid #ffffffaa;
  border-radius: 14px;
  background: linear-gradient(#287e60, #287e60) center / 3px 20px no-repeat,
    linear-gradient(#287e60, #287e60) center / 20px 3px no-repeat, #effaf4;
  transform: rotate(-9deg);
}
.patient-hero h1 { max-width: 80%; font-size: clamp(1.5rem, 6.8vw, 2.125rem); line-height: 1.25; }
.patient-hero p { max-width: 80%; color: #456c5d; font-size: .967rem; }
.patient-booking:has([data-step="0"][hidden]) .patient-hero p { display: none; }
.patient-progress { margin: 19px 0 15px; }
.patient-progress li { padding: 10px 0 0; border-top-width: 4px; text-align: center; font-size: .8125rem; }
.patient-progress [aria-current="step"] { color: var(--action); }
.patient-booking .panel { border-radius: 20px; padding: clamp(16px, 5vw, 23px); box-shadow: 0 5px 18px #2a604807; }
.patient-information h2 { margin-bottom: 17px; font-size: 1.25rem; }
.patient-information-form { display: grid; gap: 15px; }
.intake-login { margin-top: 16px; text-align: center; font-size: .9rem; color: var(--muted); }
.intake-login a { font-weight: 650; }
.patient-entry { padding-block: 12px 24px; text-align: center; font-size: .9rem; }
.patient-entry a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.staff-shell { --staff-header-height: 68px; --staff-sidebar-width: 216px; }
.staff-shell .top {
  position: sticky; top: 0; z-index: 2; width: 100%; min-height: var(--staff-header-height);
  padding: 10px clamp(16px, 2.3vw, 32px); background: #fff;
}
.staff-shell .brand-name { font-size: 1.125rem; }
.staff-header-label { margin-inline-start: 5px; padding-inline-start: 15px; border-inline-start: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.staff-shell #account .button { gap: 7px; white-space: nowrap; }
.staff-sidebar {
  position: fixed; top: var(--staff-header-height); bottom: 0; left: 0; z-index: 1; width: var(--staff-sidebar-width);
  display: flex; flex-direction: column; gap: 5px; padding: 22px 13px; border-inline-end: 1px solid var(--line); background: #fff;
}
.staff-sidebar a {
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 13px;
  border-radius: 9px; color: var(--muted); font-weight: 650; text-decoration: none;
}
.staff-sidebar a:hover, .staff-sidebar a[aria-current] { background: var(--wash); color: var(--action); }
.staff-shell #main { width: auto; margin-inline-start: var(--staff-sidebar-width); padding: 26px clamp(16px, 2.4vw, 34px) 48px; }
.staff-shell #notice { position: fixed; z-index: 3; right: 16px; bottom: 0; width: auto; max-width: calc(100% - 32px); }
.staff-workbench { display: grid; gap: 20px; }
.staff-workbench .panel { background: #fff; }
.staff-metrics a { display: grid; gap: 5px; color: var(--ink); text-decoration: none; }
.staff-metrics a:hover { border-color: var(--action); }
.staff-metrics h2 { color: var(--muted); font-size: 1rem; font-weight: 650; }
.staff-metrics strong { font-size: 2.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.staff-queue { overflow: hidden; padding: 0; }
.staff-queue header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; }
.staff-text-link { font-weight: 650; text-decoration: none; white-space: nowrap; }
.staff-text-link:hover { text-decoration: underline; }
.staff-table-scroll { overflow-x: auto; }
.staff-queue table { width: 100%; min-width: 490px; border-collapse: collapse; font-size: .9375rem; text-align: left; }
.staff-queue table:has(.staff-queue-empty) { min-width: 0; }
.staff-queue :is(th, td) { padding: 12px 22px; overflow-wrap: anywhere; }
.staff-queue thead th { background: var(--paper); color: var(--muted); font-weight: 600; }
.staff-queue tbody th { font-weight: 650; }
.staff-queue th:first-child { width: 25%; }
.staff-queue td time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.staff-queue :is(th, td):last-child { width: 1%; text-align: right; white-space: nowrap; }
.staff-queue tbody tr + tr { border-top: 1px solid var(--line); }
.staff-queue td.staff-queue-empty { padding-block: 24px; color: var(--muted); text-align: center; }
.staff-follow-up-overdue { color: var(--action); }
.staff-follow-up-declined { color: #852c26; background: #fbece9; }
.staff-appointments h1 { margin-bottom: 18px; font-size: 1.75rem; }
.staff-appointments-search { width: min(100%, 380px); }
.staff-appointments-search input {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit;
}
.staff-appointment-filters { display: flex; gap: 22px; margin: 9px 0 16px; border-bottom: 1px solid var(--line); }
.staff-appointment-filters button {
  position: relative; min-height: 44px; padding: 0 2px; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600;
}
.staff-appointment-filters button:hover, .staff-appointment-filters [aria-pressed="true"] { color: var(--action); }
.staff-appointment-filters [aria-pressed="true"]::after {
  content: ''; position: absolute; right: 2px; bottom: 0; left: 2px; height: 2px; border-radius: 2px; background: var(--action);
}
.staff-appointments-table { background: #fff; }
.staff-appointments-table table { min-width: 740px; }
.staff-appointments-table table:has(.staff-queue-empty) { min-width: 0; }
.staff-appointments-table :is(th, td) { padding-inline: clamp(12px, 1.45vw, 22px); }
.staff-appointments-table th:first-child { width: 17%; }
.staff-appointments-table th:nth-child(2) { width: 23%; }
.staff-appointments-table th:nth-child(3) { width: 13%; }
.staff-appointments-table .compact { display: block; margin-top: 3px; font-weight: 400; }
.staff-appointment-state { font-weight: 650; }
.staff-appointments-table .staff-appointment-attention { color: #852c26; }
.staff-appointments-table [data-appointment-retry] { margin-top: 10px; }
.staff-appointment-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.staff-appointment-pagination .button { min-height: 36px; }
.staff-arrangement-shell #main { margin-inline-start: 0; }
.arrangement-heading { display: grid; justify-items: start; gap: 6px; margin-bottom: 17px; }
.arrangement-heading h1 { font-size: 1.75rem; }
.arrangement-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.arrangement-column { display: grid; gap: 18px; min-width: 0; }
.arrangement-patient { display: flex; align-items: baseline; gap: 10px; overflow-wrap: anywhere; }
.arrangement-patient strong { font-size: 1.25rem; }
.staff-arrangement dd { overflow-wrap: anywhere; }
.staff-arrangement dd .pre { margin-top: 4px; }
.arrangement-search input {
  width: min(100%, 380px); min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit;
}
.arrangement-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.copy-phone { padding: 2px 0; border: 0; background: transparent; color: var(--action); font: inherit; font-size: .875rem; font-weight: 650; }
.arrangement-list-label, .arrangement-confirm-head, .arrangement-confirm-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.arrangement-candidates { display: grid; gap: 8px; }
.arrangement-candidate {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  overflow-wrap: anywhere; cursor: pointer;
}
.arrangement-candidate:has(:checked) { border-color: var(--action); background: var(--wash); }
.arrangement-candidate label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.arrangement-candidate input { accent-color: var(--action); }
.arrangement-candidate div span, .arrangement-candidate label .compact { display: block; }
.arrangement-candidate .staff-appointment-attention { color: #852c26; }
.arrangement-phone { justify-self: end; }
.arrangement-duration { display: flex; align-items: center; min-height: 44px; font-size: 1rem; }
.arrangement-confirm .notice { position: static; margin: 0; }
.arrangement-confirm-actions .check { align-items: center; cursor: pointer; }
.arrangement-confirm-actions .check input { margin-top: 0; }
.arrangement-pagination .button { min-height: 36px; }
.staff-visit-heading, .staff-visit-heading > div, .staff-visit-actions, .staff-visit-therapist-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.staff-visit-heading { width: 100%; }
.staff-follow-up-notice { margin-bottom: 18px; }
.staff-follow-up-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 12px; margin-top: 18px; }
.staff-visit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.staff-visit-therapist { grid-column: 1 / -1; }
.staff-visit-grid dd { overflow-wrap: anywhere; }
.staff-visit-information .booking-summary { align-items: center; }
.staff-visit-information [data-read] { display: inline-flex; align-items: center; gap: 4px; }
.staff-edit-icon {
  display: inline-grid; place-items: center; min-width: 38px; min-height: 38px; padding: 0;
  color: var(--action); border: 0; border-radius: 8px; background: transparent;
}
.staff-edit-icon:hover { background: var(--wash); }
.staff-visit [data-edit-actions] { margin-top: 8px; }
.staff-visit-information input:is([type="date"], [type="time"]) {
  max-width: 100%; min-height: 40px; padding: 5px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); font: inherit;
}
.staff-danger { color: #852c26; border-color: #be716a; }
.staff-danger:hover { background: #fbece9; }
.staff-danger-primary { color: #fff; border-color: #852c26; background: #852c26; font-weight: 650; }
.staff-cancel-dialog { width: min(calc(100% - 32px), 470px); color: var(--ink); }
.staff-cancel-dialog::backdrop { background: #173e3666; }
.staff-cancel-dialog .actions { justify-content: end; }
.staff-visit .staff-appointment-attention { color: #852c26; }
@media (max-width: 720px) {
  .staff-visit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .arrangement-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 550px) {
  .arrangement-candidate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arrangement-filters { grid-template-columns: minmax(0, 1fr); }
  .arrangement-phone { justify-self: start; }
}
@media (max-width: 850px) {
  .staff-shell { --staff-sidebar-width: 156px; }
  .staff-queue :is(th, td), .staff-queue header { padding-inline: 15px; }
}
@media (max-width: 680px) {
  .staff-sidebar { position: sticky; width: 100%; flex-direction: row; padding: 6px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .staff-shell #main { margin-inline-start: 0; }
  .staff-workbench .staff-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .staff-shell .brand { gap: 6px; }
  .staff-header-label { padding-inline-start: 7px; margin-inline-start: 1px; font-size: .875rem; }
}
@media (max-width: 480px) {
  .staff-shell .brand > [aria-hidden] { display: none; }
  .staff-shell .top { gap: 8px; }
  .staff-shell #account .button { padding-inline: 8px; }
}
.dispatch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 16px; align-items: start; }
.dispatch-layout > section { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .dispatch-layout { grid-template-columns: minmax(0, 1fr); }
}
.patient-booking:is([data-active-step="1"], [data-active-step="2"]) > :is(.patient-hero, .patient-progress) { display: none; }
.therapist-booking .patient-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.therapist-booking[data-active-step="3"] > :is(.patient-hero, .patient-progress) { display: none; }
.patient-address-title { margin: 10px 4px 18px; font-size: clamp(1.65rem, 7vw, 2rem); line-height: 1.25; }
.patient-address-title:focus { outline: none; }
.patient-address-fields { display: grid; gap: 17px; }
.patient-address-fields small { margin-inline-start: 4px; font-size: .78rem; font-weight: 400; }
.patient-step-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; margin-top: 4px; }
.patient-step-actions .button { min-height: 49px; border-radius: 10px; font-size: .95rem; }
.patient-address-popup {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  box-shadow: 0 5px 16px #2a60480e;
}
.patient-address-popup:has([role="listbox"]:not([hidden])) { padding: 0; overflow: hidden; }
.patient-address-popup [role="listbox"] { width: 100%; max-height: min(240px, 36vh); overflow: auto; list-style: none; margin: 0; padding: 0; }
.patient-address-popup [role="option"] { display: grid; gap: 3px; min-height: 48px; padding: 10px 13px; cursor: pointer; overflow-wrap: anywhere; }
.patient-address-popup [role="option"] + [role="option"] { border-top: 1px solid var(--line); }
.patient-address-popup [role="option"]:is(:hover, [aria-selected="true"]) { background: var(--wash); }
.patient-address-popup [role="option"] strong { font-size: .93rem; }
.patient-address-popup [role="option"] span { color: var(--muted); font-size: .82rem; }
.patient-address-search [data-address-selected] { margin: 6px 0 0; color: var(--action); }
.patient-condition-title {
  margin: 10px 4px 19px;
  font-size: clamp(1.0625rem, 5.45vw, 1.7rem);
  line-height: 1.45;
}
.patient-condition-title:focus { outline: none; }
.patient-condition-form, .patient-condition-options { display: grid; gap: 10px; }
.patient-condition-options { padding: 0; border: 0; }
.patient-condition-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 21px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.patient-condition-option:has(:checked) { border-color: var(--action); background: #e9f5ee; }
.patient-condition-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--wash); color: var(--action); }
.patient-condition-text { display: grid; gap: 3px; min-width: 0; }
.patient-condition-text strong { font-size: 1rem; line-height: 1.35; }
.patient-condition-text > span { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.patient-condition-option input { width: 21px; height: 21px; margin: 0; accent-color: var(--action); cursor: pointer; }
.patient-condition-note { padding-inline: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.patient-condition-note summary { min-height: 44px; align-content: center; cursor: pointer; font-size: .9rem; }
.patient-condition-note textarea { display: block; min-height: 75px; margin-bottom: 10px; resize: vertical; }
.patient-condition-form > .check { min-height: 44px; padding: 3px 4px; }
.therapist-avatar-panel > p:first-child { color: var(--muted); text-align: center; }
.therapist-photo-picker { position: relative; width: min(100%, 320px); margin-inline: auto; padding: 10px 0 46px; }
.therapist-camera {
  display: grid;
  place-items: center;
  width: min(100%, 204px);
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 auto;
  padding: 5px;
  border: 2px dashed #79a795;
  border-radius: 50%;
  background: #f4faf6;
  color: var(--action);
  font: inherit;
  font-weight: 650;
}
.therapist-camera span { display: grid; justify-items: center; gap: 9px; }
.therapist-camera svg { width: 38px; height: 38px; }
.therapist-camera img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.therapist-album { position: absolute; right: 0; bottom: 0; gap: 7px; white-space: nowrap; }
.therapist-avatar-status { min-height: 1.4em; text-align: center; }
.therapist-specialty-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; border: 0; }
.therapist-specialty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-weight: 650;
  cursor: pointer;
}
.therapist-specialty:has(:checked) { border-color: var(--action); background: #e9f5ee; }
.therapist-specialty input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: var(--action); cursor: pointer; }
.therapist-application-photo { display: block; border-radius: 50%; object-fit: cover; }
.patient-field { display: grid; gap: 6px; min-width: 0; font-size: .9125rem; font-weight: 650; }
.patient-input {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 51px;
  padding: 0 12px;
  color: #53776a;
  background: #f8fbf9;
  border: 1px solid #d5e4dc;
  border-radius: 11px;
  cursor: text;
}
.patient-input:focus-within { outline: 2px solid var(--action); outline-offset: 1px; }
.patient-input input {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.patient-input input::placeholder { color: #5d746a; opacity: 1; }
.password-form { display: grid; gap: 21px; margin-top: 6px; }
.password-field { display: grid; gap: 7px; }
.password-field label { font-weight: 650; }
.password-input {
  grid-template-columns: minmax(0, 1fr) 44px; min-height: 53px; gap: 4px; padding-inline: 13px 3px;
  background: var(--card); border-color: #e1ebe5;
}
.password-input:has([aria-invalid="true"]) { border-color: #be716a; }
.password-input input::-ms-reveal { display: none; }
.password-input button {
  display: grid; place-items: center; width: 44px; min-height: 44px;
  padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--action);
}
.password-input button:hover { background: var(--wash); }
.password-input button[aria-pressed="false"] svg:last-child,
.password-input button[aria-pressed="true"] svg:first-child { display: none; }
.password-error { color: #852c26; }
.password-contact { text-align: center; color: var(--muted); }
.password-contact a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 650; }
.password-form [type="submit"] { min-height: 53px; }
.patient-input input[type="date"] { cursor: pointer; }
.patient-input input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.patient-input input[type="date"]::-webkit-calendar-picker-indicator {
  background: linear-gradient(45deg, transparent 40%, #53776a 42% 62%, transparent 64%) left 5px center / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 40%, #53776a 42% 62%, transparent 64%) right 5px center / 6px 6px no-repeat;
  cursor: pointer;
}
.patient-date-hint { display: none; pointer-events: none; color: #5d746a; font-size: 16px; font-weight: 400; }
.patient-input input[data-empty]:not(:focus)::-webkit-datetime-edit { color: transparent; }
.patient-input input[data-empty]:not(:focus) + .patient-date-hint { display: block; position: absolute; left: 41px; }
.patient-page .patient-continue {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  padding-inline: 40px;
  border-radius: 11px;
  font-size: 1rem;
}
.patient-continue svg { position: absolute; right: 15px; }
.patient-continue:hover { background: #0f573f; }
.patient-privacy { margin-top: 11px; }
.patient-privacy summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  cursor: pointer;
}
.patient-privacy summary svg { width: 17px; height: 17px; }
.patient-privacy summary::-webkit-details-marker { display: none; }
.patient-privacy[open] { padding: 0 12px 12px; }
.patient-privacy .spaced { margin-top: 0; }
@supports not selector(input::-webkit-datetime-edit) {
  .patient-input input[data-empty]:not(:focus) + .patient-date-hint { display: none; }
}
.patient-page .notice { position: sticky; bottom: 12px; z-index: 10; }
@media (max-width: 690px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 12px 0; }
}
