/* PersonalDr Health Book — Demo Shell Styles */
/* Instrument Sans (locked type), self-hosted woff2, Latin subset (Design round S1, Oct 8, 2026). SIL OFL 1.1. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/instrument-sans-700.woff2") format("woff2"); }
:root {
  --black: #0A0A0A;
  --cream: #F5F1EA;
  /* Design round M1 (Oct 8): teal used under white text / for text and links = #0A7A70 (white 5.21:1, cream 4.63:1).
     The bright brand teal #0F9B8E stays only for the wordmark, spine, focus rings, progress bars, icons, text ≥ 24px. */
  --teal: #0A7A70;
  --teal-dark: #0A7A70;
  --teal-bright: #0F9B8E;
  --teal-light: #E6F5F3;
  --white: #FFFFFF;
  --gray-100: #F7F5F2;
  --gray-200: #E8E4DE;
  --gray-400: #A39E96;
  --gray-600: #6B6660;
  --gray-800: #3D3A36;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.08);
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

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

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Demo banner — persistent on every page */
.demo-banner {
  display: none; /* product UI — banner removed (unused gold rule deleted, Design round M4) */
  background: var(--black);
  color: var(--cream);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
/* Health Book wordmark (LOCKED 2026-09-30, brand/health-book-wordmark-transparent.svg).
   The SVG already includes the required clear space (1 × H cap height, ~15px at this size) on every side.
   Height 60px → ink ≈ 170px wide, above the 160px on-screen minimum. Small negative margins let that built-in
   clear space overlap the header's padding so the header height stays close to what it was. */
.logo-hb { gap: 0; line-height: 0; flex-shrink: 0; }
.logo-hb .hb-wordmark { display: block; height: 60px; width: auto; margin: -10px 0 -10px -15px; }
/* Tiny mock bars (demo video tile): below the wordmark minimum, so icon only (brand/health-book-icon-cream-small.svg). */
.logo-hb-icon { gap: 0; line-height: 0; }
.logo-hb-icon .hb-icon-sm { display: block; width: 28px; height: 28px; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.85rem;
}
.nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--gray-800);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  text-decoration: none;
}
.user-chip {
  font-size: 0.85rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 1.5rem 1.25rem;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.6;
}
.site-footer strong { color: var(--cream); }

/* Typography */
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 650; margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.lead { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 1.5rem; }
.muted { color: var(--gray-600); font-size: 0.9rem; }
.small { font-size: 0.8rem; color: var(--gray-600); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); color: white; }
.btn-secondary { background: white; color: var(--black); border-color: var(--gray-200); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

/* Cards — Credit Karma–like */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }
.card-clickable { cursor: pointer; text-decoration: none; color: inherit; }
.card-clickable:hover { text-decoration: none; color: inherit; }
.card-icon {
  width: 40px; height: 40px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.card-title { font-weight: 650; font-size: 1.05rem; }
.card-desc { color: var(--gray-600); font-size: 0.9rem; flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--teal-dark); font-weight: 600; margin-top: 0.25rem; }
.card-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Role picker */
.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 560px) {
  .role-picker { grid-template-columns: 1fr; }
}
.role-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.role-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.role-card .role-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.role-card h2 { margin-bottom: 0.35rem; }

/* Welcome choices */
.welcome-choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

/* Forms */
.form-section {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.form-group .hint { font-weight: 400; color: var(--gray-600); font-size: 0.8rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="password"], select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--black);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}
textarea { min-height: 100px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.checkbox-row {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.checkbox-row input { margin-top: 0.2rem; }

/* Service / list items */
.list-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.list-item:hover { border-color: var(--teal); }
.price { font-weight: 700; color: var(--teal-dark); font-size: 1.1rem; white-space: nowrap; }

/* Payment demo */
.payment-box {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 440px;
}
.payment-summary {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.payment-row {
  display: flex; justify-content: space-between;
  margin: 0.35rem 0;
}
.payment-total {
  font-weight: 700; font-size: 1.15rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 0.5rem; margin-top: 0.5rem;
}
.fake-card-fields { margin-top: 1rem; }

/* Messaging */
.thread-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  min-height: 420px;
}
@media (max-width: 700px) {
  .thread-layout { grid-template-columns: 1fr; }
}
.thread-list {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.thread-item {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.thread-item:hover, .thread-item.active {
  background: var(--teal-light);
  text-decoration: none;
  color: inherit;
}
.thread-item .name { font-weight: 650; font-size: 0.95rem; }
.thread-item .preview { font-size: 0.8rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item .time { font-size: 0.7rem; color: var(--gray-400); }
.thread-panel {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.thread-header {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 650;
}
.messages {
  flex: 1;
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
}
.bubble {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
}
.bubble.them { background: var(--gray-100); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--teal); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .when { font-size: 0.7rem; opacity: 0.7; margin-top: 0.25rem; }
.compose {
  border-top: 1px solid var(--gray-200);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
}
.compose input { flex: 1; }

/* Upload dropzone */
.dropzone {
  border: 2px dashed var(--gray-400);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--teal);
  background: var(--teal-light);
}
.dropzone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-list { margin-top: 1rem; }
.upload-file {
  display: flex; align-items: center; gap: 0.75rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

/* Appointments / calendar */
.appt-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}
.appt-time { font-weight: 700; color: var(--teal-dark); }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}
.slot {
  padding: 0.6rem;
  text-align: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.slot:hover, .slot.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
}
.slot.disabled { opacity: 0.4; cursor: not-allowed; }

/* History / timeline */
.timeline { border-left: 2px solid var(--gray-200); margin-left: 0.75rem; padding-left: 1.25rem; }
.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.15rem;
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--cream);
}

/* Patient table / list */
.patient-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.patient-row:hover { border-color: var(--teal); text-decoration: none; color: inherit; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.patient-info { flex: 1; min-width: 0; }
.badge-new {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Alerts / toast */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-info { background: var(--teal-light); color: var(--teal-dark); border: 1px solid #B8E0DB; }
.alert-warn { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: white;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 2000;
  box-shadow: var(--shadow-md);
  display: none;
}
.toast.show { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Utility */
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}
.hero h1 { font-size: 2rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-num { font-size: 1.75rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 0.8rem; color: var(--gray-600); }

/* Progress indicator (onboarding) */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 600;
}
.progress-step .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.progress-step.active { color: var(--teal-dark); }
.progress-step.active .dot {
  background: var(--teal);
  color: white;
}
.progress-step.done .dot {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.progress-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.progress-track {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.progress-track-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.25s ease;
}

/* Onboarding steps */
.onboard-step { display: none; }
.onboard-step.active { display: block; }
.skip-link {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: 1.5rem;
}
.service-pick {
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: border-color 0.15s, background 0.15s;
}
.service-pick:hover, .service-pick.selected {
  border-color: var(--teal);
  background: var(--teal-light);
}
.service-pick.selected { box-shadow: 0 0 0 1px var(--teal); }

/* Notification strip */
.notif-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.notif-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.notif-chip:hover {
  border-color: var(--teal);
  text-decoration: none;
  color: var(--black);
}
.notif-chip .notif-icon { font-size: 1rem; }

/* Visit detail */
.visit-hero {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.visit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.visit-meta strong { color: var(--black); }
.visit-section {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.visit-section ul {
  margin: 0.5rem 0 0 1.25rem;
  color: var(--gray-800);
}
.visit-section li { margin-bottom: 0.35rem; }


/* Auth */
.auth-wrap { max-width: 420px; margin: 0 auto; }
.auth-card { margin-top: 0.5rem; }
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.25rem 0; color: var(--gray-400); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--gray-200);
}
.auth-social { max-width: 420px; margin: 0 auto; }

/* Plans */
.billing-toggle {
  display: inline-flex;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.25rem;
  margin: 0 auto 1.5rem;
  gap: 0.25rem;
}
.billing-toggle { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.billing-opt {
  border: none; background: transparent; cursor: pointer;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-family: inherit; font-size: 0.9rem;
  color: var(--gray-600);
}
.billing-opt.active { background: var(--teal); color: white; }
.billing-save {
  display: inline-block; margin-left: 0.35rem;
  font-size: 0.7rem; font-weight: 700;
  background: var(--teal-light); color: var(--teal-dark);
  padding: 0.1rem 0.4rem; border-radius: 4px;
}
.billing-opt.active .billing-save { background: rgba(255,255,255,0.25); color: white; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; }
}
.plan-grid-compact .plan-card { padding: 1rem; }
.plan-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative;
}
.plan-card.plan-featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.plan-card.selected {
  border-color: var(--teal);
  background: var(--teal-light);
}
.plan-card.plan-coming { opacity: 0.85; }
.plan-card h2, .plan-card h3 { margin-bottom: 0; }
.plan-price { font-size: 1.65rem; font-weight: 700; color: var(--teal-dark); margin: 0.25rem 0; }
.plan-period { font-size: 0.95rem; font-weight: 600; color: var(--gray-600); margin-left: 0.15rem; }
.plan-bullets {
  margin: 0.5rem 0 1rem 1.1rem;
  color: var(--gray-800);
  font-size: 0.9rem;
  flex: 1;
}
.plan-bullets li { margin-bottom: 0.35rem; }
.price-lock {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}
.badge-soon { background: #EEF2FF; color: #3730A3; }
.price-soft { font-size: 0.9rem; font-weight: 650; color: var(--teal-dark); }
.episodic-panel {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.episodic-panel summary {
  cursor: pointer; font-weight: 650; color: var(--gray-800);
}
.episodic-list { margin-top: 1rem; }
.disclaimer-list {
  margin: 0.5rem 0 1rem 1.15rem;
  color: var(--gray-800);
  font-size: 0.9rem;
}
.disclaimer-list li { margin-bottom: 0.5rem; }
.text-right { text-align: right; }
.hint { font-weight: 400; color: var(--gray-600); font-size: 0.8rem; }

/* ——— Zoom Meeting SDK Client View stub (UI only; no Zoom network) ——— */
.telehealth-page main.telehealth-main {
  max-width: 1100px;
  padding-bottom: 1.5rem;
}
.telehealth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.telehealth-meta-row h1 {
  font-size: 1.35rem;
  margin: 0;
}
.telehealth-meta-row .lead {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}
.sample-session-note {
  font-size: 0.72rem;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  margin: 0.75rem 0 0;
  text-align: center;
}
.zoom-visit-shell {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.zoom-visit-shell .visit-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  gap: 0.75rem;
}
.zoom-visit-shell .visit-shell-bar .logo { font-size: 0.95rem; }
.zoom-visit-shell .visit-shell-bar .logo-mark {
  width: 26px; height: 26px; font-size: 0.7rem; border-radius: 6px;
}
.zoom-visit-shell .hb-label {
  font-size: 0.72rem; color: var(--gray-600); font-weight: 500; margin-left: 0.15rem;
}
.visit-meta-chip {
  font-size: 0.75rem;
  color: var(--gray-800);
  background: var(--gray-100);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.zoom-stage {
  background:
    radial-gradient(ellipse at 60% 30%, #2a3540 0%, transparent 50%),
    linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex;
  flex-direction: column;
  height: min(62vh, 560px);
  min-height: 420px;
  position: relative;
}
.zoom-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  background: #242424;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
  z-index: 5;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.zoom-wordmark {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.zoom-wordmark .z-icon {
  width: 20px; height: 20px;
  background: #0B5CFF;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: white;
}
.zoom-meeting-info { font-size: 0.7rem; color: #b0b0b0; }
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(11, 92, 255, 0.18);
  border: 1px solid rgba(11, 92, 255, 0.45);
  color: #8eb6ff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.ai-chip:hover, .ai-chip[aria-expanded="true"] {
  background: rgba(11, 92, 255, 0.32);
  color: #c5d9ff;
}
.ai-chip .spark { font-size: 0.75rem; }
.zoom-video-area {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.zoom-clinician, .zoom-primary {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.avatar-lg {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.75rem; color: white;
  letter-spacing: 0.02em;
}
.avatar-zoom {
  background: linear-gradient(135deg, #3d5a80, #1b2838);
  border: 2px solid rgba(255,255,255,0.2);
}
.avatar-patient-zoom {
  background: linear-gradient(135deg, #0A7A70, #086158);
  border: 2px solid rgba(255,255,255,0.25);
}
.tile-name {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 600;
}
.zoom-name-tag {
  position: absolute;
  bottom: 72px;
  left: 14px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  z-index: 3;
}
.zoom-self {
  position: absolute;
  bottom: 72px;
  right: 14px;
  width: 148px;
  height: 108px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  z-index: 3;
  background: linear-gradient(160deg, #2c3e50, #1a252f);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.zoom-self .avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #0A7A70, #086158);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.zoom-self.role-clinician .avatar {
  background: linear-gradient(135deg, #3d5a80, #1b2838);
}
.zoom-self .self-tag {
  position: absolute;
  bottom: 6px; left: 8px;
  font-size: 0.62rem; color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 1px 6px; border-radius: 3px;
}
.zoom-toolbar {
  flex-shrink: 0;
  background: #242424;
  border-top: 1px solid #333;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  z-index: 5;
  flex-wrap: wrap;
}
.z-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 56px;
  padding: 0.35rem 0.45rem;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 0.6rem;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.z-btn:hover { background: rgba(255,255,255,0.06); }
.z-btn.active .ico { background: #E53935; }
.z-btn .ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #3a3a3a;
  display: flex; align-items: center; justify-content: center;
}
.z-btn .ico svg {
  width: 15px; height: 15px; fill: #e8e8e8;
}
.z-btn.end .ico {
  background: #E53935;
  width: 64px;
  border-radius: 8px;
}
.z-btn.end { color: #ffcdd2; }
.z-btn.end:hover .ico { background: #c62828; }
.z-sep {
  width: 1px; height: 30px;
  background: #444;
  margin: 0 0.3rem;
}
.zoom-summary-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88%);
  background: #1e1e1e;
  border-left: 1px solid #3a3a3a;
  z-index: 20;
  display: none;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.35);
}
.zoom-summary-drawer.open { display: flex; }
.zoom-summary-drawer .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #333;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.zoom-summary-drawer .drawer-head .sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: #8eb6ff;
  margin-top: 0.15rem;
}
.drawer-close {
  background: transparent;
  border: none;
  color: #b0b0b0;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.drawer-close:hover { color: #fff; background: #333; }
.zoom-summary-drawer .drawer-body {
  padding: 0.85rem 1rem;
  overflow-y: auto;
  color: #d0d0d0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.zoom-summary-drawer .drawer-body h3 {
  color: #fff;
  font-size: 0.78rem;
  margin: 0.75rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.zoom-summary-drawer .drawer-body h3:first-child { margin-top: 0; }
.zoom-summary-drawer ul {
  margin: 0 0 0 1rem;
  padding: 0;
}
.zoom-summary-drawer li { margin-bottom: 0.4rem; }
.drawer-fabricated {
  margin-top: 1rem;
  font-size: 0.68rem;
  color: #888;
  border-top: 1px solid #333;
  padding-top: 0.65rem;
}
.participants-panel {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  z-index: 4;
}
.locked-path-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid #B8E0DB;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* ——— Video visit flow (Zoom Meeting SDK Client View) — pre-join → in-call → post-visit ——— */
.phi-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #FFF7E0;
  border: 1px solid #F0D48A;
  color: #5C4712;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  margin: 0 0 1rem;
}
.phi-note strong { color: #3F300A; white-space: nowrap; }
.phi-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5C4712;
  background: #FFF1C2;
  border: 1px solid #F0D48A;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.vv-screen[hidden], .vv-connecting[hidden], .vv-demo-banner[hidden], .vv-device-row [hidden], .vv-preview [hidden], #vv-mock[hidden] { display: none !important; }
.vv-steps {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--gray-600);
  margin: 0 0 0.9rem;
}
.vv-steps span {
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
}
.vv-steps span.on { background: var(--teal-light); color: var(--teal-dark); border-color: #B8E0DB; font-weight: 650; }
.vv-prejoin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.3fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 760px) { .vv-prejoin-grid { grid-template-columns: 1fr; } }
.vv-prejoin-grid .card:hover { border-color: var(--gray-200); box-shadow: var(--shadow); }
.vv-appt-row { display: flex; gap: 0.75rem; align-items: center; }
.vv-appt-row .avatar-lg { width: 52px; height: 52px; font-size: 1rem; flex-shrink: 0; }
.vv-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; font-size: 0.88rem; margin-top: 0.5rem; }
.vv-dl dt { color: var(--gray-600); }
.vv-dl dd { font-weight: 550; }
.vv-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vv-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.vv-preview .vv-preview-empty { color: #bdbdbd; font-size: 0.85rem; text-align: center; padding: 1rem; }
.vv-preview .vv-preview-empty .avatar-lg { margin: 0 auto 0.6rem; width: 72px; height: 72px; font-size: 1.2rem; }
.vv-preview .self-tag {
  position: absolute; bottom: 8px; left: 10px;
  font-size: 0.7rem; color: #fff; background: rgba(0,0,0,0.55);
  padding: 2px 8px; border-radius: 4px;
}
.vv-device-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.65rem; }
.vv-meter { flex: 1; min-width: 120px; height: 8px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.vv-meter > i { display: block; height: 100%; width: 0%; background: var(--teal); transition: width 0.08s linear; }
.vv-status { font-size: 0.8rem; color: var(--gray-600); }
.vv-status.ok { color: var(--teal-dark); font-weight: 600; }
.vv-status.warn { color: #9A5B00; }
.vv-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 0.7rem 0.8rem; margin-top: 0.85rem;
  font-size: 0.9rem; cursor: pointer;
}
.vv-consent input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; }
.vv-consent .small { display: block; margin-top: 0.15rem; }
.vv-join-row { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.85rem; flex-wrap: wrap; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.vv-demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  background: #EEF4FF; border: 1px solid #C7D7FE; color: #1E3A8A;
  border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; margin-bottom: 0.75rem; font-size: 0.85rem;
}
.vv-demo-banner strong { color: #172554; }
.vv-demo-banner .small { color: #3B4B7A; }
.vv-connecting {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--gray-800); padding: 0.75rem 0;
}
.vv-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--teal-light); border-top-color: var(--teal);
  animation: vv-spin 0.8s linear infinite;
}
@keyframes vv-spin { to { transform: rotate(360deg); } }
/* Client View mounts here. Note: Zoom Client View is full-page by design and overlays the page once joined. */
.vv-zoom-mount { min-height: 0; }
.zoom-self video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.vv-demo-label {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  background: rgba(15, 155, 142, 0.85); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: 4px;
}
.vv-post-card { max-width: 680px; margin: 0 auto; }
.vv-post-card:hover { border-color: var(--gray-200); box-shadow: var(--shadow); }
.vv-post-card ul { margin: 0.25rem 0 0 1.1rem; font-size: 0.92rem; }
.vv-post-card li { margin-bottom: 0.3rem; }
.vv-placeholder {
  border: 1px dashed var(--gray-400); border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem; background: var(--gray-100); font-size: 0.88rem; color: var(--gray-800);
}

/* ——— Provider in-call chart panel (Labs · History · Results · Notes) ———
   Demo mode / pre-Zoom: CSS grid, video ~60% + panel ~40%. Collapsing only changes the grid,
   so the video element is never moved or re-rendered.
   Zoom mode (body[data-vv-mode="zoom"]): Client View runs in its own iframe (zoom-frame.html) in the left column,
   so the same split view applies — nothing overlaps Zoom's controls. Draggable divider sets --vv-split.
   ≤900px: panel becomes an off-canvas drawer. */
body[data-vv-role="provider"][data-vv-screen="incall"] main.telehealth-main { max-width: 1440px; }
.vv-incall-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.6rem; flex-wrap: wrap;
}
.vv-chart-toggle[aria-expanded="true"] { border-color: var(--teal); color: var(--teal-dark); }
.vv-incall-layout {
  --vv-split: 60%;
  display: grid;
  grid-template-columns: minmax(0, var(--vv-split)) 16px minmax(300px, 1fr);
  gap: 0;
  align-items: start;
}
.vv-incall-video { min-width: 0; grid-column: 1; grid-row: 1; }
.vv-split-divider { grid-column: 2; grid-row: 1; align-self: stretch; cursor: col-resize; position: relative; touch-action: none; outline: none; }
.vv-split-divider::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px;
  border-radius: 2px; background: var(--gray-200); transition: background .15s;
}
.vv-split-divider::after { /* grip */
  content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 36px; margin: -18px 0 0 -2px;
  border-radius: 2px; background: var(--gray-400);
}
.vv-split-divider:hover::before, .vv-split-divider:focus-visible::before, body.vv-resizing .vv-split-divider::before { background: var(--teal); }
body.vv-resizing, body.vv-resizing * { cursor: col-resize !important; user-select: none; }
body.vv-resizing .vv-zoom-frame { pointer-events: none; }   /* iframe would swallow pointermove */
.vv-chart-panel { grid-column: 3; grid-row: 1; }
body[data-chart="closed"] .vv-incall-layout { grid-template-columns: minmax(0, 1fr); }
body[data-chart="closed"] .vv-chart-panel, body[data-chart="closed"] .vv-split-divider { display: none; }

.vv-chart-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(min(62vh, 560px) + 110px);
  height: calc(min(62vh, 560px) + 110px);
  overflow: hidden;
}
body[data-vv-mode="demo"] .vv-chart-panel { margin-top: 0; }
.vv-chart-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--gray-200);
}
.vv-chart-who { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.vv-chart-who .avatar-lg { width: 38px; height: 38px; font-size: 0.8rem; flex-shrink: 0; border-width: 1px; }
.vv-chart-who .card-title { font-size: 0.98rem; line-height: 1.2; }
.vv-chart-close {
  background: transparent; border: 1px solid var(--gray-200); border-radius: 6px;
  width: 30px; height: 30px; cursor: pointer; color: var(--gray-800); font-size: 1rem; line-height: 1;
}
.vv-chart-close:hover { border-color: var(--teal); color: var(--teal-dark); }
.vv-chart-tabs {
  display: flex; gap: 0.2rem; padding: 0.45rem 0.6rem 0; border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.vv-chart-tabs [role="tab"] {
  font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--gray-600);
  background: transparent; border: 1px solid transparent; border-bottom: none;
  padding: 0.45rem 0.8rem; border-radius: 8px 8px 0 0; cursor: pointer; margin-bottom: -1px;
}
.vv-chart-tabs [role="tab"]:hover { color: var(--teal-dark); }
.vv-chart-tabs [role="tab"][aria-selected="true"] {
  background: var(--white); color: var(--teal-dark); border-color: var(--gray-200);
  box-shadow: inset 0 2px 0 var(--teal);
}
.vv-chart-tabs [role="tab"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.vv-chart-body { flex: 1; overflow-y: auto; padding: 0.85rem; font-size: 0.86rem; }
.vv-chart-pane[hidden] { display: none; }
.vv-chart-pane h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-800); margin: 0.9rem 0 0.4rem; }
.vv-chart-pane h3:first-child { margin-top: 0; }
.vv-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.vv-pane-head h3 { margin: 0; }
.vv-chart-foot {
  font-size: 0.68rem; color: var(--gray-600); border-top: 1px solid var(--gray-200);
  padding: 0.4rem 0.85rem; background: var(--gray-100); text-align: center;
}
.vv-table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.vv-lab-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.vv-lab-table th, .vv-lab-table td { padding: 0.4rem 0.5rem; text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.vv-lab-table th { background: var(--gray-100); font-weight: 650; color: var(--gray-800); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.vv-lab-table tr:last-child td { border-bottom: none; }
.vv-lab-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.vv-lab-table tr.abn td { background: #FFF6F5; }
.vv-lab-table tr.abn td.num { color: #B42318; }
.vv-flag { display: inline-block; min-width: 1.4rem; text-align: center; font-weight: 800; font-size: 0.7rem; border-radius: 4px; padding: 0.05rem 0.3rem; }
.vv-flag-low { background: #FEE4E2; color: #B42318; }
.vv-flag-high { background: #FEF0C7; color: #93370D; }
.vv-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.vv-list li { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: 0.05rem; }
.vv-list li:last-child { border-bottom: none; }
.vv-result { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.55rem 0.65rem; margin-bottom: 0.5rem; }
.vv-result p { margin-top: 0.25rem; }
.vv-result-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.vv-pill { font-size: 0.68rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.vv-pill.ok { background: var(--teal-light); color: var(--teal-dark); }
.vv-pill.warn { background: #FEF0C7; color: #93370D; }
.vv-draft-label {
  font-size: 0.7rem; font-weight: 700; color: #93370D; background: #FEF0C7;
  border: 1px solid #F5C77E; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap;
}
.vv-soap label { display: block; font-weight: 650; font-size: 0.8rem; margin: 0.55rem 0 0.2rem; color: var(--gray-800); }
.vv-soap label:first-child { margin-top: 0; }
.vv-soap textarea {
  width: 100%; font-family: inherit; font-size: 0.85rem; line-height: 1.4;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.45rem 0.55rem;
  resize: vertical; background: #FFFEFB;
}
.vv-soap textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
.vv-soap-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.4rem; flex-wrap: wrap; }
.vv-prior { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 0.45rem; background: var(--gray-100); }
.vv-prior summary { cursor: pointer; padding: 0.45rem 0.6rem; font-size: 0.82rem; }
.vv-prior pre { white-space: pre-wrap; font-family: inherit; font-size: 0.82rem; padding: 0 0.6rem 0.55rem; color: var(--gray-800); margin: 0; }
.vv-chart-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,0.35); z-index: 2147482999; }
.vv-chart-backdrop[hidden] { display: none; }

/* Narrow screens: panel becomes a drawer over the video */
@media (max-width: 900px) {
  .vv-incall-layout, body[data-chart="closed"] .vv-incall-layout { grid-template-columns: minmax(0, 1fr); }
  .vv-chart-panel, body[data-chart="closed"] .vv-chart-panel {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0;
    width: min(92vw, 440px); height: auto; max-height: none;
    border-radius: 14px 0 0 14px; z-index: 2147483000;
    transform: translateX(0); transition: transform 0.2s ease, visibility 0.2s;
  }
  body[data-chart="closed"] .vv-chart-panel { transform: translateX(105%); visibility: hidden; }
}

/* Zoom frame (split view). The frame and the panel share one height that fits the viewport under the in-call bar. */
.vv-zoom-frame { display: block; width: 100%; height: 100%; border: 0; border-radius: 12px; background: #1a1a1a; }
body[data-vv-frame] .vv-zoom-mount, body[data-vv-mode="zoom"] .vv-zoom-mount {
  height: max(520px, calc(100dvh - 64px)); border-radius: 12px; overflow: hidden; background: #1a1a1a;
}
/* While loading, the frame stays visible: Zoom shows its own preview screen and the user presses Zoom's "Join". */
body[data-vv-frame][data-vv-role="provider"] .vv-chart-panel,
body[data-vv-mode="zoom"][data-vv-role="provider"] .vv-chart-panel { height: max(520px, calc(100dvh - 64px)); max-height: none; }
@media (max-width: 900px) {
  .vv-split-divider { display: none; }
  body[data-vv-mode="zoom"] .vv-zoom-mount { height: max(420px, calc(100dvh - 64px)); }
  body[data-vv-mode="zoom"][data-vv-role="provider"] .vv-chart-panel { height: auto; }
}
/* Keep the "Draft – not saved to chart" label visible while scrolling the note */
#vv-pane-notes > .vv-pane-head {
  position: sticky; top: -0.85rem; z-index: 1; background: var(--white);
  margin: -0.85rem -0.85rem 0.5rem; padding: 0.6rem 0.85rem 0.45rem; border-bottom: 1px solid var(--gray-200);
}
/* Provider: patient test link (demo only) */
.vv-patient-link { padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--gray-200); background: var(--teal-light); font-size: 0.8rem; }
.vv-patient-link[hidden] { display: none; }
.vv-patient-link label { display: block; margin-bottom: 0.3rem; color: var(--gray-800); }
.vv-patient-link-row { display: flex; gap: 0.4rem; }
.vv-patient-link-row input {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem;
  border: 1px solid #B8E0DB; border-radius: 6px; padding: 0.35rem 0.5rem; background: var(--white); color: var(--gray-800);
}
.vv-patient-link .small { margin-top: 0.3rem; }

/* ——— Patient health journal (patient-journal.html) — DEMO, no PHI ——— */
.hbj-main { max-width: 860px; }
.hbj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.hbj-top-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.hbj-lang { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--gray-800); }
.hbj-lang select, .hbj-vital select, .hbj-vital input {
  font: inherit; font-size: 0.9rem; padding: 0.4rem 0.55rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white);
}
/* Persistent not-monitored line (legal item 1) */
.hbj-notice {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 0.6rem; align-items: flex-start;
  background: #FFF8E6; border: 1px solid #F5D38A; color: #3F300A; border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem; margin: 0.75rem 0 1rem; font-size: 0.86rem; line-height: 1.4; box-shadow: var(--shadow);
}
.hbj-notice-ico {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #93370D; color: #fff;
  font: 700 0.75rem/20px Georgia, serif; text-align: center; margin-top: 1px;
}
.hbj-review {
  display: inline-block; margin-left: 0.4rem; font-size: 0.68rem; font-weight: 700; color: #6941C6; background: #F4EBFF;
  border: 1px solid #D9C5FB; border-radius: 999px; padding: 0.05rem 0.5rem; vertical-align: middle; white-space: nowrap;
}
/* Oct 6: long Spanish review badges overflowed a 390 px phone (page 541 px wide). Let them wrap on narrow screens. */
@media (max-width: 600px) { .hbj-review { white-space: normal; max-width: 100%; border-radius: 10px; } }
.hbj-note-fs legend .hbj-review { margin-left: 0.3rem; }
.hbj-review-inline { color: #6941C6; font-weight: 600; }
.hbj-card { margin-bottom: 1rem; }
.hbj-card:hover { border-color: var(--gray-200); box-shadow: var(--shadow); transform: none; }
.hbj-card h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.hbj-h3 { font-size: 0.95rem; margin: 1.1rem 0 0.45rem; }
.hbj-choices { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hbj-choice, .hbj-chip, .hbj-mood, .hbj-sev button, .hbj-seg button {
  font: inherit; cursor: pointer; background: var(--white); color: var(--gray-800);
  border: 1.5px solid var(--gray-200); border-radius: 999px; transition: border-color .12s, background .12s;
}
.hbj-choice { padding: 0.55rem 1.1rem; font-weight: 600; }
.hbj-choice-sm { padding: 0.4rem 0.9rem; font-size: 0.88rem; }
.hbj-choice[aria-pressed="true"], .hbj-chip[aria-pressed="true"], .hbj-mood[aria-pressed="true"],
.hbj-sev button[aria-pressed="true"], .hbj-seg button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.hbj-choice:hover, .hbj-chip:hover, .hbj-mood:hover, .hbj-sev button:hover, .hbj-seg button:hover { border-color: var(--teal); }
.hbj-choice:focus-visible, .hbj-chip:focus-visible, .hbj-mood:focus-visible, .hbj-sev button:focus-visible, .hbj-seg button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hbj-check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.5rem 0; font-size: 0.92rem; cursor: pointer; }
.hbj-check input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; }
.hbj-notice-box { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; font-size: 0.92rem; }
.hbj-terms { margin: 0.75rem 0 1rem; }
.hbj-block { color: #B42318; font-weight: 600; }
.hbj-reaccept { border-color: #F5D38A; background: #FFFCF2; }
.hbj-reaccept .btn { margin-top: 0.6rem; }
.hbj-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 1rem; flex-wrap: wrap; }
.hbj-tabs [role="tab"] {
  font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--gray-600); background: transparent; cursor: pointer;
  border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; padding: 0.55rem 1rem; margin-bottom: -1px;
}
.hbj-tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--teal-dark); border-color: var(--gray-200); box-shadow: inset 0 2px 0 var(--teal); }
.hbj-entry fieldset { border: none; border-top: 1px solid var(--gray-200); padding: 0.9rem 0 0.4rem; margin: 0; }
.hbj-entry fieldset:first-of-type { border-top: none; padding-top: 0.25rem; }
.hbj-entry legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 0.35rem; }
.hbj-moods { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0.35rem; margin: 0.35rem 0 0.25rem; }
.hbj-mood { border-radius: 10px; padding: 0.6rem 0; font-weight: 700; font-size: 1rem; }
.hbj-q { margin: 0.85rem 0 0.4rem; font-size: 0.92rem; font-weight: 600; }
.hbj-syms { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }
.hbj-sym { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.hbj-sym.on { background: var(--teal-light); border-radius: 999px; padding-right: 0.3rem; }
.hbj-chip { padding: 0.42rem 0.85rem; font-size: 0.88rem; }
.hbj-sev, .hbj-seg { display: inline-flex; gap: 0.25rem; }
.hbj-sev button, .hbj-seg button { padding: 0.25rem 0.65rem; font-size: 0.78rem; }
.hbj-med { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--gray-200); font-size: 0.92rem; flex-wrap: wrap; }
.hbj-med:last-child { border-bottom: none; }
.hbj-vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-top: 0.4rem; }
.hbj-bp { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1fr; gap: 0.6rem; align-items: end; }
.hbj-bp-label { font-weight: 600; font-size: 0.85rem; padding-bottom: 0.5rem; }
.hbj-vital { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; color: var(--gray-800); }
.hbj-vital input, .hbj-vital select { width: 100%; }
.hbj-entry textarea { width: 100%; font: inherit; font-size: 0.92rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.55rem 0.65rem; resize: vertical; }
.hbj-entry textarea:focus, .hbj-vital input:focus, .hbj-vital select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
.hbj-save-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.9rem; flex-wrap: wrap; }
.hbj-save-row .small { color: #B42318; }
.hbj-pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.hbj-trend { width: 100%; height: auto; display: block; }
.hbj-grid { stroke: var(--gray-200); stroke-width: 1; }
.hbj-axis { font-size: 10px; fill: var(--gray-600); font-family: var(--font); }
.hbj-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hbj-dot { fill: var(--white); stroke: var(--teal-dark); stroke-width: 2; }
.hbj-entries { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.hbj-entry-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; margin-bottom: 0.5rem; background: var(--white); }
.hbj-entry-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.hbj-mood-pill { font-size: 0.75rem; font-weight: 700; background: var(--teal-light); color: var(--teal-dark); border-radius: 999px; padding: 0.1rem 0.55rem; white-space: nowrap; }
.hbj-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 0.75rem; margin-top: 0.35rem; font-size: 0.84rem; }
.hbj-dl dt { color: var(--gray-600); }
.hbj-rem-state { font-weight: 600; margin-bottom: 0.6rem; }
.hbj-rem-state.on { color: var(--teal-dark); }
.hbj-rem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 220px)); gap: 0.6rem; }
.hbj-push-preview { border-top: 1px solid var(--gray-200); margin-top: 1rem; padding-top: 0.6rem; }
.hbj-consents { list-style: none; padding: 0; margin: 0.4rem 0 0; font-size: 0.8rem; }
.hbj-consents li { padding: 0.3rem 0; border-bottom: 1px solid var(--gray-200); }
.hbj-frompush { background: var(--teal-light); color: var(--teal-dark); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.hbj-booking-note { background: var(--teal-light); color: var(--teal-dark); border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; font-size: 0.9rem; font-weight: 600; margin: 0.5rem 0 1rem; }
/* Overlays */
body.hbj-locked { overflow: hidden; }
.hbj-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.hbj-dim { background: rgba(10, 10, 10, 0.45); }
.hbj-modal { background: var(--white); border-radius: 14px; max-width: 520px; width: 100%; padding: 1.4rem 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hbj-modal h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.hbj-modal .hbj-legal { display: block; }
.hbj-state-msg { margin-top: 0.75rem; background: #FFF8E6; border: 1px solid #F5D38A; border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; font-size: 0.88rem; color: #3F300A; }
.hbj-push-sample { display: flex; align-items: center; gap: 0.55rem; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 12px; padding: 0.55rem 0.7rem; margin-top: 0.8rem; font-size: 0.9rem; }
.hbj-push-sample img { border-radius: 7px; }
/* Red-flag: full screen (legal item 4) */
.hbj-redflag { background: #B42318; color: #fff; align-items: flex-start; }
.hbj-rf-inner { max-width: 640px; width: 100%; margin: 0 auto; padding: 2rem 0.5rem 2.5rem; text-align: center; }
.hbj-rf-kicker { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: .05em; background: rgba(255,255,255,.18); border-radius: 999px; padding: 0.15rem 0.6rem; margin-bottom: 0.9rem; }
.hbj-redflag h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.1; margin-bottom: 0.9rem; }
.hbj-rf-body { font-size: 1.12rem; line-height: 1.5; margin-bottom: 1.4rem; }
.hbj-redflag .hbj-review { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.hbj-rf-911 {
  display: block; background: #fff; color: #B42318; font-size: 1.6rem; font-weight: 800; border-radius: 16px; padding: 1.05rem 1rem;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); margin: 0 auto 1.25rem; max-width: 420px;
}
.hbj-rf-911:hover { text-decoration: none; background: #FFF1F0; }
.hbj-rf-911:focus-visible, .hbj-rf-btn:focus-visible, .hbj-rf-save:focus-visible { outline: 3px solid #FFD84D; outline-offset: 3px; }
.hbj-rf-988 { background: rgba(0,0,0,.18); border-radius: 14px; padding: 1rem; margin: 0 auto 1.25rem; max-width: 520px; font-size: 1rem; }
.hbj-rf-988-btns { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.7rem; flex-wrap: wrap; }
.hbj-rf-btn { background: #fff; color: #B42318; font-weight: 800; font-size: 1.05rem; border-radius: 12px; padding: 0.65rem 1.2rem; text-decoration: none; }
.hbj-rf-btn:hover { text-decoration: none; background: #FFF1F0; }
.hbj-rf-notice { display: flex; gap: 0.6rem; text-align: left; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 0.75rem 0.9rem; font-size: 0.9rem; margin: 0 auto 1.25rem; max-width: 560px; }
.hbj-rf-notice .hbj-notice-ico { background: #fff; color: #B42318; }
.hbj-rf-save { font: inherit; font-weight: 700; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); border-radius: 12px; padding: 0.65rem 1.4rem; cursor: pointer; }
.hbj-rf-save:hover { background: rgba(255,255,255,.12); }
/* Simulated phone permission prompt (iOS-style alert) */
.hbj-ios-alert { background: rgba(250,250,250,.97); border-radius: 14px; width: 280px; text-align: center; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); font-family: -apple-system, "SF Pro Text", var(--font); }
.hbj-ios-sim { font-size: 0.65rem; color: var(--gray-600); padding-top: 0.6rem; }
.hbj-ios-alert h2 { font-size: 1rem; padding: 0.4rem 1rem 0.2rem; }
.hbj-ios-alert p { font-size: 0.8rem; padding: 0 1rem 0.9rem; color: var(--gray-800); }
.hbj-ios-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #D1D1D6; }
.hbj-ios-btns button { font: inherit; font-size: 1rem; color: #0A84FF; background: none; border: none; padding: 0.7rem; cursor: pointer; }
.hbj-ios-btns button + button { border-left: 1px solid #D1D1D6; }
/* Simulated push on a phone lock screen */
.hbj-phone {
  position: relative; width: 320px; height: 620px; border-radius: 44px; border: 10px solid #111; overflow: hidden;
  background: linear-gradient(160deg, #1F4E5F 0%, #0F2E3A 55%, #0B1D26 100%); color: #fff; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.hbj-phone-notch { width: 110px; height: 26px; background: #111; border-radius: 0 0 16px 16px; margin: 0 auto; }
.hbj-phone-sim { font-size: 0.62rem; opacity: .7; margin-top: 0.4rem; }
.hbj-phone-date { font-size: 0.95rem; margin-top: 1.4rem; opacity: .9; }
.hbj-phone-time { font-size: 4.2rem; font-weight: 600; line-height: 1; letter-spacing: -1px; }
.hbj-push {
  display: flex; gap: 0.6rem; align-items: center; text-align: left; margin: 2.2rem 0.7rem 0; padding: 0.7rem 0.8rem; border-radius: 18px;
  background: rgba(245, 241, 234, 0.88); color: var(--black); text-decoration: none; backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.hbj-push:hover { text-decoration: none; background: rgba(245, 241, 234, 0.96); }
.hbj-push:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.hbj-push img { border-radius: 9px; flex-shrink: 0; }
.hbj-push-text { display: flex; flex-direction: column; font-size: 0.88rem; flex: 1; min-width: 0; }
.hbj-push-top { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--gray-600); letter-spacing: .02em; }
.hbj-push-top strong { color: var(--gray-800); }
.hbj-phone-close { position: absolute; top: 34px; right: 14px; background: rgba(255,255,255,.2); color: #fff; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; }
@media (max-width: 640px) {
  .hbj-moods { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hbj-bp { grid-template-columns: 1fr 1fr; }
  .hbj-bp-label { grid-column: 1 / -1; padding-bottom: 0; }
}
/* Provider chart panel: Journal tab */
.vv-jr-sub { font-size: 0.78rem; color: var(--gray-600); margin-bottom: 0.5rem; }
.vv-jr-trend { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.3rem 0.4rem; margin-bottom: 0.6rem; background: var(--white); }
.vv-jr-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.vv-jr-list li { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--gray-200); font-size: 0.8rem; }
.vv-jr-list li:last-child { border-bottom: none; }
.vv-jr-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.vv-jr-top span { color: var(--gray-600); white-space: nowrap; }
.vv-jr-list .small { display: block; }

/* ---------- Staging cloud sign-in (Identity Platform) + status bar (Oct 1, 2026) ---------- */
.hb-cloud-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: flex-end; padding: .35rem 1.25rem; background: var(--teal-light); color: var(--teal-dark); font-size: .8rem; border-bottom: 1px solid rgba(12,122,112,.15); }
.hb-cloud-env { margin-right: auto; font-weight: 600; }
.hb-cloud-out { background: none; border: 1px solid var(--teal); color: var(--teal-dark); border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; cursor: pointer; }
.hb-cloud-out:hover { background: #fff; }
.hb-auth-staging { display: inline-block; background: #FFF4D6; color: #6B4E00; border: 1px solid #F0DCA0; border-radius: 999px; padding: .2rem .75rem; font-size: .78rem; font-weight: 600; margin-bottom: .75rem; }
.hb-auth-msg { min-height: 1.2em; font-size: .9rem; margin: .25rem 0 .75rem; color: var(--teal-dark); }
.hb-auth-msg.is-err { color: #A4262C; }
.hb-auth-msg.is-ok { color: var(--teal-dark); }
.hb-auth-h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.hb-totp-input { font-size: 1.4rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.hb-enroll-grid { display: grid; grid-template-columns: 168px 1fr; gap: 1rem; align-items: center; margin: .75rem 0 1rem; }
.hb-qr { width: 168px; height: 168px; background: #fff; border: 1px solid #e5e0d6; border-radius: 10px; padding: 6px; }
.hb-qr svg { width: 100%; height: 100%; display: block; }
.hb-secret { display: block; font-size: .9rem; word-break: break-all; background: var(--cream); padding: .4rem .55rem; border-radius: 6px; letter-spacing: .04em; }
@media (max-width: 520px) { .hb-enroll-grid { grid-template-columns: 1fr; } }
.hbj-cloud-status { font-size: .85rem; margin: 0 0 .75rem; padding: .45rem .75rem; border-radius: 8px; background: var(--teal-light); color: var(--teal-dark); }
.hbj-cloud-status.is-err { background: #FDECEC; color: #A4262C; }
.vv-jr-source { margin-top: -.25rem; }

/* Staging sign-in hides social providers (hidden attr must beat .stack display) */
.auth-social[hidden], .auth-divider[hidden] { display: none !important; }

/* Appointment-bound video visit (cloud mode, API v0.3.0) */
.vv-cloud-appt { border-top: 1px solid var(--line, #e5e0d8); padding-top: .75rem; }
.vv-cloud-appt p { margin: .35rem 0; }
.vv-appt-meeting { font-size: .85rem; color: #0A7A70; font-weight: 600; }
.vv-appt-select { width: 100%; margin-top: .4rem; padding: .4rem; border-radius: 8px; border: 1px solid var(--line, #d9d3c9); font: inherit; }
#vv-complete-msg, #vv-appt-msg { margin-top: .6rem; }
/* Oct 2, 2026: legal wording changed for clinician alerts, pending Legal review */
.hbj-legal-draft { color: #9A3412; background: #FFF4E5; border-color: #F5B971; margin-left: 6px; }
.hbj-redflag .hbj-legal-draft { color: #fff; background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.6); }
/* ---------- Clinician journal alerts (provider-alerts.html, Oct 2, 2026) ---------- */
.hba-main { max-width: 980px; }
.hba-demo { font-size: 0.7rem; vertical-align: middle; }
.hba-notice { background: #FFF8E6; border: 1px solid #F5D78E; border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; }
.hba-banner { background: #B42318; color: #fff; font-weight: 700; border-radius: 10px; padding: 0.6rem 0.9rem; margin-top: 0.6rem; }
.hba-section { margin-top: 1.6rem; }
.hba-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hba-count { display: inline-block; min-width: 1.6rem; text-align: center; background: #B42318; color: #fff; border-radius: 999px; font-size: 0.85rem; padding: 0.05rem 0.5rem; vertical-align: middle; }
.hba-badge { display: inline-block; min-width: 1.2rem; text-align: center; background: #B42318; color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.45rem; margin-left: 0.3rem; vertical-align: middle; line-height: 1.4; }
.hba-badge-new { background: var(--teal-dark, #0E6B6B); }
.hba-badge[hidden] { display: none; }   /* Oct 6: zero-count badges were showing "0" (display rule beat [hidden]) */
.hba-alert { display: flex; gap: 0.9rem; background: #fff; border: 1px solid #E4E7EC; border-left: 6px solid #B42318; border-radius: 12px; padding: 0.9rem 1rem; margin: 0.7rem 0; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.hba-alert-lvl { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #B42318; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hba-lvl-crisis { border-left-color: #6941C6; } .hba-lvl-crisis .hba-alert-lvl { background: #6941C6; }
.hba-lvl-urgent { border-left-color: #DC6803; } .hba-lvl-urgent .hba-alert-lvl { background: #DC6803; }
.hba-acked { opacity: 0.65; border-left-color: #98A2B3; } .hba-acked .hba-alert-lvl { background: #98A2B3; }
.hba-alert-body { flex: 1; }
.hba-alert-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hba-pill { font-size: 0.72rem; font-weight: 700; background: #FEE4E2; color: #912018; border-radius: 999px; padding: 0.05rem 0.55rem; }
.hba-lvl-crisis .hba-pill { background: #F4EBFF; color: #53389E; } .hba-lvl-urgent .hba-pill { background: #FEF0C7; color: #93370D; }
.hba-rules { margin: 0.4rem 0; padding-left: 1.1rem; font-size: 0.9rem; }
.hba-ack-note { color: #475467; }
.hba-sum { background: #fff; border: 1px solid #E4E7EC; border-radius: 12px; padding: 0.9rem 1rem; margin: 0.7rem 0; }
.hba-sum-list { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; }
.hba-sched { color: #93370D; }
.hba-empty { color: #475467; background: #F9FAFB; border: 1px dashed #D0D5DD; border-radius: 10px; padding: 0.8rem; }
.hba-stat { text-decoration: none; color: inherit; } .hba-stat:hover { border-color: #B42318; }
.hba-unassigned { font-size: 0.72rem; font-weight: 700; background: #FFFAEB; color: #B54708; border: 1px solid #FEC84B; border-radius: 999px; padding: 0.05rem 0.55rem; }
.hba-redflag-banner { background: #B42318; color: #fff; padding: 0.6rem 1.25rem; font-size: 0.95rem; text-align: center; position: sticky; top: 0; z-index: 50; }
.hba-redflag-banner a { color: #fff; text-decoration: underline; font-weight: 700; }
.hba-ack-form { display: grid; gap: 0.5rem; margin-top: 0.6rem; background: #F9FAFB; border: 1px solid #E4E7EC; border-radius: 10px; padding: 0.7rem; }
.hba-ack-form label { display: grid; gap: 0.25rem; } .hba-ack-form textarea, .hba-ack-form select { font: inherit; padding: 0.35rem; border: 1px solid #D0D5DD; border-radius: 6px; }
.hba-ack-err { color: #B42318; } .hba-log { margin-top: 0.4rem; } .hba-log ul { margin: 0.3rem 0; padding-left: 1.1rem; }
/* care team / practice directory / chart (v0.6.0) */
.hbc-list { list-style: none; padding: 0; margin: 0; } .hbc-search { display: flex; gap: 0.5rem; margin: 0.6rem 0; } .hbc-search input { flex: 1; font: inherit; padding: 0.45rem 0.6rem; border: 1px solid #D0D5DD; border-radius: 8px; }
.hbc-rel { background: #E6F4F1; color: #0E6B6B; } .hbc-h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.hbc-access { background: #ECFDF3; border: 1px solid #ABEFC6; border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0.6rem 0 1rem; }
.hbc-access-md { background: #FFFAEB; border-color: #FEC84B; }
.hbc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; } @media (max-width: 760px) { .hbc-grid { grid-template-columns: 1fr; } }
.hbp-team { margin-top: 0.3rem; }

/* ---- v0.7.0: blocking alert screen, location, break glass, access review, patient notices (Oct 2, Legal round 2) ---- */
.hba-blocker { position: fixed; inset: 0; z-index: 2000; background: rgba(40, 10, 10, .72); overflow-y: auto; padding: 32px 16px; }
.hba-blocker .hba-blocker-inner { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 14px; border-top: 8px solid #b42318; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.hba-blocker h2 { color: #8f1d13; margin: 0 0 6px; font-size: 1.35rem; }
.hba-blocker .hba-alert { margin-top: 14px; }
.hba-blocker-docked { position: sticky; top: 0; inset: auto; background: rgba(40,10,10,.08); padding: 10px 16px; max-height: 55vh; }
.hba-blocker-docked .hba-blocker-inner { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
body.hba-blocked { overflow: hidden; }
.hba-location { background: #fff4e5; border: 1px solid #f5c27a; border-radius: 8px; padding: 6px 10px; }
.hba-phone strong { letter-spacing: .02em; }
.hbc-join-form, .hbc-glass-form { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; background: #f6f8f7; border: 1px solid #d9e2de; border-radius: 10px; max-width: 560px; }
.hbc-glass { border: 2px solid #b42318; background: #fff5f4; border-radius: 12px; padding: 14px 16px; }
.hbc-glass h2 { color: #8f1d13; font-size: 1.1rem; margin: 0 0 6px; }
.hbc-access-glass { background: #fff1f0; border-color: #e6a19a; color: #7a1a12; }
.hbr-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hbr-table th, .hbr-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e5ebe8; vertical-align: top; }
.hbr-flag { color: #8f1d13; font-weight: 600; }
.hbr-ok { color: #1f6f4a; }
.hbp-notice { background: #eef7f3; border: 1px solid #b7dccb; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.hbp-team li { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.hba-location .muted { font-size: inherit; }
.hba-viewonly { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.hba-backup-note { background: #eef2ff; border-color: #c7d2fe; }
.hbp-removed { margin-top: .75rem; }
.hba-ack-form[hidden] { display: none; }

/* ===== Clinician nav: same 5 tabs on every clinician page (Oct 6, 2026) ===== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hb-clin-nav a { display: inline-flex; align-items: center; gap: 0.35rem; position: relative; }
.hb-clin-nav .hbn-ico { width: 18px; height: 18px; flex-shrink: 0; }
.hb-clin-nav a.active { font-weight: 700; box-shadow: inset 0 -3px 0 var(--teal); }
.hbn-lang { font: inherit; font-size: 0.8rem; border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-800); border-radius: 999px; padding: 0.3rem 0.7rem; cursor: pointer; }
.hbn-lang:hover { background: var(--teal-light); }
.hbn-review-row { padding: 0.35rem 1.25rem 0; text-align: right; }
@media (max-width: 640px) {
  body.hb-clin { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.hb-clin .site-header { padding: 0.5rem 0.9rem; gap: 0.5rem; flex-wrap: nowrap; }
  body.hb-clin .site-header .user-chip { font-size: 0.75rem; padding: 0.25rem 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
  body.hb-clin .site-header .logo-hb .hb-wordmark { height: 52px; }
  .hb-clin-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; flex-wrap: nowrap;
    background: var(--white); border-top: 1px solid var(--gray-200); box-shadow: 0 -2px 10px rgba(10,10,10,.06); padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .hb-clin-nav a { flex-direction: column; gap: 2px; justify-content: center; padding: 6px 2px; font-size: 0.7rem; line-height: 1.1; border-radius: 10px; text-align: center; min-height: 52px; }
  .hb-clin-nav .hbn-ico { width: 22px; height: 22px; }
  .hb-clin-nav a.active { box-shadow: inset 0 3px 0 var(--teal); }
  .hb-clin-nav .hba-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
  body.hb-clin .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hbn-lang { font-size: 0.72rem; padding: 0.2rem 0.55rem; }
  .hbn-review-row { padding: 0.35rem 0.9rem 0; text-align: left; }
}

/* ===== Clinician calendar (Oct 6, 2026) ===== */
.hbcal-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hbcal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 0.4rem; }
.hbcal-nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.hbcal-arrow { font-size: 1.15rem; line-height: 1; min-width: 40px; }
.hbcal-month { font-size: 1.25rem; margin: 0 0 0 0.4rem; }
.hbcal-views, .hbp-filter { display: inline-flex; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); padding: 3px; }
.hbcal-views button, .hbp-filter button { font: inherit; font-size: 0.9rem; border: 0; background: transparent; padding: 0.4rem 0.95rem; border-radius: 999px; cursor: pointer; color: var(--gray-800); min-height: 36px; }
.hbcal-views button.active, .hbp-filter button.active { background: var(--teal); color: #fff; font-weight: 600; }
.hbcal-monthwrap { display: block; }
@media (min-width: 900px) { .hbcal-monthwrap.hbcal-open { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; } }
.hbcal-grid { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.hbcal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hbcal-wd { background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.hbcal-wdc { font-size: 0.75rem; font-weight: 600; color: var(--gray-600); text-align: center; padding: 0.35rem 0; text-transform: uppercase; letter-spacing: .03em; }
.hbcal-cell { border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); min-width: 0; }
.hbcal-row .hbcal-cell:nth-child(7) { border-right: 0; }
.hbcal-row:last-child .hbcal-cell { border-bottom: 0; }
.hbcal-day { display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 100%; min-height: 96px; padding: 4px 5px 6px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; position: relative; }
.hbcal-day:hover { background: var(--teal-light); }
.hbcal-day:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.hbcal-out { background: var(--gray-100); color: var(--gray-400); }
.hbcal-num { font-size: 0.85rem; font-weight: 600; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.hbcal-today .hbcal-num { background: var(--teal); color: #fff; }
.hbcal-sel { background: #d7efec; box-shadow: inset 0 0 0 2px var(--teal); }
.hbcal-count { display: none; }
.hbcal-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hbcal-chip { font-size: 0.72rem; background: var(--teal-light); color: var(--teal-dark); border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbcal-chip-completed { background: var(--gray-100); color: var(--gray-600); }
.hbcal-chip-cancelled, .hbcal-chip-no_show { background: #fdecea; color: #8f1d13; text-decoration: line-through; }
.hbcal-chip-requested { background: #fff4e5; color: #8a4b00; }
.hbcal-more { font-size: 0.7rem; color: var(--gray-600); padding-left: 2px; }
.hbcal-daypanel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.9rem 1rem; margin-top: 1rem; box-shadow: var(--shadow); }
@media (min-width: 900px) { .hbcal-open .hbcal-daypanel { margin-top: 0; position: sticky; top: 44px; max-height: calc(100vh - 60px); overflow-y: auto; } }
.hbcal-day-head { display: grid; grid-template-columns: 1fr auto; column-gap: 0.5rem; align-items: start; margin-bottom: 0.6rem; }
.hbcal-day-head h3 { font-size: 1.05rem; margin: 0; grid-column: 1; }
.hbcal-day-head > .small { grid-column: 1; grid-row: 2; }
.hbcal-day-head .hbcal-close { grid-column: 2; grid-row: 1 / span 2; }
.hbcal-close { border: 0; background: var(--gray-100); width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hbcal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.hbcal-appt { border: 1px solid var(--gray-200); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 0.55rem 0.7rem; background: var(--white); }
.hbcal-appt.hbcal-vt-phone { border-left-color: #6b5bd2; }
.hbcal-appt.hbcal-vt-in_person { border-left-color: #c47f00; }
.hbcal-appt.hbcal-past { opacity: 0.8; }
.hbcal-appt-time { font-size: 0.85rem; }
.hbcal-appt-who { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin: 2px 0; }
.hbcal-links { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hbcal-st { font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--teal-light); color: var(--teal-dark); }
.hbcal-st-completed { background: var(--gray-100); color: var(--gray-600); }
.hbcal-st-cancelled, .hbcal-st-no_show { background: #fdecea; color: #8f1d13; }
.hbcal-st-requested { background: #fff4e5; color: #8a4b00; }
.hbcal-st-checked_in, .hbcal-st-in_progress { background: #e7f0ff; color: #1d4ed8; }
.hbcal-agenda-day { margin-top: 1rem; }
.hbcal-agenda-day .section-label { margin-bottom: 0.5rem; }
@media (max-width: 640px) {
  .hbcal-toolbar { flex-direction: column; align-items: stretch; }
  .hbcal-nav { justify-content: space-between; }
  .hbcal-month { order: -1; flex: 1 0 100%; margin: 0; text-align: center; }
  .hbcal-views { align-self: center; }
  .hbcal-day { min-height: 52px; padding: 3px 2px; align-items: center; gap: 1px; }
  .hbcal-num { font-size: 0.82rem; width: 24px; height: 24px; }
  .hbcal-chips { display: none; }
  .hbcal-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--teal-light); color: var(--teal-dark); font-size: 0.7rem; font-weight: 700; }
  .hbcal-sel .hbcal-count { background: var(--teal); color: #fff; }
  .hbcal-wdc { font-size: 0.68rem; }
  .hbcal-daypanel { border-radius: 16px 16px var(--radius) var(--radius); border-top: 4px solid var(--teal); scroll-margin-top: 48px; }
  .hbcal-links .btn { flex: 1 1 auto; text-align: center; }
}

/* ===== Clinician Patients page (Oct 6, 2026) ===== */
.hbp-filter { margin: 0.8rem 0 0.6rem; flex-wrap: wrap; }
.hbp-search { display: flex; gap: 0.5rem; margin: 0.4rem 0; }
.hbp-search input { flex: 1 1 auto; min-width: 0; font: inherit; padding: 0.55rem 0.75rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); }
.hbp-msg { min-height: 1.2em; margin: 0.4rem 0; font-size: 0.92rem; }
.hbp-msg-ok { color: var(--teal-dark); font-weight: 600; }
.hbp-msg-err { color: #8f1d13; font-weight: 600; }
.hbp-list { list-style: none; margin: 0.4rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.hbp-row { display: flex; align-items: center; gap: 0.75rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.65rem 0.6rem 0.65rem 0.8rem;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: background .15s, box-shadow .15s; }
.hbp-row-menu, .hbp-pressed { background: var(--teal-light); box-shadow: inset 0 0 0 2px var(--teal); }
.hbp-info { flex: 1 1 auto; min-width: 0; }
.hbp-name { font-size: 1rem; margin: 0; }
.hbp-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.hbp-more { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--white); font-size: 1.35rem; line-height: 1; cursor: pointer; color: var(--gray-800); }
.hbp-more:hover, .hbp-more[aria-expanded="true"] { background: var(--teal-light); border-color: var(--teal); }
.hbp-empty { list-style: none; }
.hbp-hint { margin-top: 0.6rem; }
.hbp-menu { position: absolute; z-index: 1500; min-width: 220px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 10px 30px rgba(10,10,10,.18); padding: 6px; }
.hbp-menu-title { font-size: 0.78rem; color: var(--gray-600); padding: 4px 10px 6px; margin: 0; border-bottom: 1px solid var(--gray-200); margin-bottom: 4px; }
.hbp-menu [role=menuitem] { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.95rem; border: 0; background: transparent; padding: 0.6rem 0.75rem; border-radius: 8px; cursor: pointer; color: var(--black); text-decoration: none; min-height: 44px; }
.hbp-menu [role=menuitem]:hover, .hbp-menu [role=menuitem]:focus { background: var(--teal-light); outline: none; }
.hbp-menu [role=menuitem][disabled] { color: var(--gray-600); cursor: default; background: transparent; }
.hbp-dialog { border: 0; border-radius: 14px; padding: 1.1rem 1.2rem; max-width: 460px; width: calc(100% - 2rem); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hbp-dialog::backdrop { background: rgba(10,10,10,.45); }
.hbp-dialog h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.hbp-dialog select { display: block; width: 100%; font: inherit; padding: 0.5rem; margin: 0.3rem 0 0.5rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.hbp-d-err { color: #8f1d13; min-height: 1em; }
.hbp-d-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hb-followups-h { font-size: 1.2rem; margin-bottom: 0.6rem; }

/* ===== Patient: header plan badge + message icon, booking, My plan (Oct 6, 2026) ===== */
.hbh-brand { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.hbh-plan { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; font-weight: 700; letter-spacing: .02em; padding: 0.22rem 0.65rem; border-radius: 999px;
  background: var(--black); color: #FFFFFF; text-decoration: none; white-space: nowrap; }
.hbh-plan:hover { text-decoration: none; filter: brightness(1.15); }
.hbh-plan-fast_access { background: var(--teal-dark); color: #fff; }
.hbh-msg { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gray-800); border: 1px solid var(--gray-200); background: var(--white); flex-shrink: 0; }
.hbh-msg:hover { background: var(--teal-light); color: var(--teal-dark); text-decoration: none; }
.hbh-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 999px; background: #B42318; color: #fff; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.hbh-review-row { margin: -0.4rem 0 0.8rem; }
.notif-book { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 600; }
.notif-book:hover { background: var(--teal-dark); color: #fff; }
@media (max-width: 640px) {
  .site-header .hbh-brand .hb-wordmark { height: 50px; }
  .site-header .user-chip { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.hbb-progress { list-style: none; display: flex; gap: 0.25rem; margin: 1rem 0; padding: 0; counter-reset: s; }
.hbb-progress li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--gray-600); text-align: center; position: relative; }
.hbb-progress li::after { content: ""; position: absolute; top: 14px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--gray-200); }
.hbb-progress li:last-child::after { display: none; }
.hbb-progress li.done::after { background: var(--teal); }
.hbb-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 2px solid var(--gray-200); font-weight: 700; font-size: 0.8rem; }
.hbb-progress li.done .hbb-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.hbb-progress li.now .hbb-dot { border-color: var(--teal); color: var(--teal-dark); }
.hbb-progress li.now { color: var(--black); font-weight: 600; }
.hbb-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.hbb-chip { font: inherit; font-size: 0.85rem; border: 1px solid var(--teal); background: var(--teal-light); color: var(--teal-dark); border-radius: 999px; padding: 0.25rem 0.75rem; cursor: pointer; }
.hbb-chip .small { color: var(--gray-600); margin-left: 0.25rem; text-decoration: underline; }
.hbb-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.hbb-panel h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.hbb-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .hbb-choices { grid-template-columns: 1fr; } }
.hbb-choice { display: flex; gap: 0.75rem; align-items: flex-start; text-align: left; font: inherit; border: 2px solid var(--gray-200); background: var(--white); border-radius: var(--radius); padding: 0.9rem 1rem; cursor: pointer; min-height: 72px; }
.hbb-choice:hover, .hbb-choice.selected { border-color: var(--teal); background: var(--teal-light); }
.hbb-choice strong { display: block; font-size: 1.02rem; }
.hbb-choice .small { display: block; margin-top: 2px; }
.hbb-ico { font-size: 1.4rem; line-height: 1; width: 2rem; text-align: center; }
.hbb-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.hbb-meter { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; margin-bottom: 0.8rem; background: var(--gray-100); }
.hbb-meter-top { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; align-items: baseline; }
.hbb-bar { height: 10px; border-radius: 999px; background: var(--gray-200); overflow: hidden; margin: 0.5rem 0; }
.hbb-bar span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.hbb-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0; text-align: center; }
.hbb-nums dt { font-size: 0.75rem; color: var(--gray-600); }
.hbb-nums dd { font-size: 1.35rem; font-weight: 700; margin: 0; }
.hbb-ok { border-left: 4px solid var(--teal); background: var(--teal-light); padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); }
.hbb-stop { border-left: 4px solid #B42318; background: #fdecea; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); color: #5c1610; }
.hbb-stop-reason { font-size: 1.05rem; font-weight: 600; margin-top: 0.2rem; }
.hbb-addon { margin-top: 0.9rem; }
.hbb-addon .small { margin-top: 0.35rem; }
.hbb-addon-flag { background: #fff4e5; border: 1px solid #f5c27a; border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; }
.hbb-noaddon { margin-top: 0.8rem; background: var(--gray-100); padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); }
.hbb-days { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.3rem; margin-bottom: 0.6rem; }
.hbb-day { font: inherit; font-size: 0.85rem; white-space: nowrap; border: 1px solid var(--gray-200); background: var(--white); border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer; min-height: 40px; }
.hbb-day.selected { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.hbb-summary { display: grid; gap: 0.5rem; margin: 0 0 0.8rem; }
.hbb-summary > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 0.45rem; }
.hbb-summary dt { color: var(--gray-600); font-size: 0.85rem; }
.hbb-summary dd { margin: 0; font-weight: 600; }
.hbb-staging { background: #fff4e5; border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; }
.hbb-done { text-align: center; padding: 0.5rem 0; }
.hbb-done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 1.8rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.hbb-done .hbb-actions { justify-content: center; }
@media (max-width: 560px) { .hbb-plabel { font-size: 0.66rem; } .hbb-progress li::after { left: calc(50% + 15px); right: calc(-50% + 15px); } .hbb-summary > div { grid-template-columns: 1fr; gap: 0.1rem; } }
.hbmp-current .hbmp-name { font-size: 1.6rem; margin: 0.1rem 0; }
.hbmp-price { font-weight: 600; }
.hbmp-lock { font-size: 0.75rem; font-weight: 600; background: #fff4e5; color: #8a4b00; border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.3rem; }
.hbmp-h3 { font-size: 1.05rem; margin: 0.9rem 0 0.5rem; }
.hbmp-h2 { font-size: 1.25rem; margin: 1.5rem 0 0.6rem; }
.hbmp-inc { margin: 0 0 0 1.1rem; }
.hbmp-inc li { margin: 0.2rem 0; }
.hbmp-inc li.hbmp-no { color: var(--gray-600); }
#hbmp-usage, #hbmp-renewal { margin-top: 1rem; }
.hbmp-left { font-weight: 700; color: var(--teal-dark); }
.hbmp-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.hbmp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.hbmp-table th, .hbmp-table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--gray-200); text-align: center; vertical-align: middle; }
.hbmp-table th[scope=row] { text-align: left; font-weight: 500; color: var(--gray-800); }
.hbmp-table thead th { font-size: 1rem; }
.hbmp-table .hbmp-mine { background: var(--teal-light); }
.hbmp-yours { display: block; font-size: 0.7rem; font-weight: 600; color: var(--teal-dark); }
.hbmp-demo { margin-top: 1.4rem; border: 1px dashed var(--gray-400); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; background: var(--white); }
.hbmp-demo summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.hbmp-demo-body { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; padding: 0.6rem 0 0.2rem; font-size: 0.9rem; }
.hbmp-demo-body select { font: inherit; padding: 0.3rem; margin-left: 0.3rem; }
@media (max-width: 640px) {
  .site-header.hbh { padding: 0.5rem 0.9rem; row-gap: 0.35rem; column-gap: 0.5rem; }
  .site-header.hbh .hbh-brand { order: 0; flex: 1 1 auto; flex-wrap: nowrap; }
  .site-header.hbh .hbh-msg { order: 1; }
  .site-header.hbh .user-chip { order: 2; }
  .site-header.hbh .nav-links { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -0.4rem; }
  .site-header.hbh .nav-links a { white-space: nowrap; padding: 0.4rem 0.6rem; }
}
@media (max-width: 480px) { .site-header.hbh .user-chip { display: none; } }

/* ===== Oct 6 — onboarding: full intake, compare plans, single visits, demo checkout, welcome + tour (DEMO – NO PHI) ===== */
.hbi-demo { margin: 0 0 0.6rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.hbi-req { font-weight: 600; color: var(--teal-dark); font-size: 0.8rem; }
.hbi-err { color: #b00020; font-size: 0.85rem; margin: 0.25rem 0 0; min-height: 0; }
.hbi-err:empty { display: none; }
.hbi-invalid textarea, .hbi-invalid input[type=text] { border-color: #b00020; box-shadow: 0 0 0 1px #b00020; }
.hbi-nomeds { margin-top: 0.45rem; }
.hbi-meds textarea:disabled { background: var(--gray-100); color: var(--gray-600); }
.hbi-summary { font-weight: 600; }
.hbc-toggle-row { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.hbc-toggle-row .billing-toggle { margin: 0; }
.hbc-open { min-height: 40px; }
.hbc-dialog { width: min(920px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: 16px; padding: 1rem 1.1rem 0.8rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hbc-dialog::backdrop { background: rgba(10,10,10,.45); }
.hbc-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.hbc-head h2 { margin: 0; font-size: 1.3rem; flex: 1 1 auto; }
.hbc-billing { margin-bottom: 0.7rem; }
.hbc-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 12px; }
.hbc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.hbc-table th, .hbc-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--gray-200); text-align: center; vertical-align: middle; }
.hbc-table th[scope=row] { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--white); min-width: 9.5rem; }
.hbc-table thead th { font-size: 1rem; background: var(--gray-100); }
.hbc-table thead th .card-badge { position: static; display: block; width: max-content; margin: 0.2rem auto 0; font-size: 0.65rem; }
.hbc-table .hbc-col-vip_plan, .hbc-table td:nth-child(3) { background: #f2faf8; }
.hbc-wc, .hbc-table thead .hbc-col-white_coat { color: var(--gray-600); }
.hbc-yes { color: var(--teal-dark); font-weight: 700; }
.hbc-no { color: var(--gray-400); }
.hbc-price-row th, .hbc-price-row td { border-bottom: 0; border-top: 2px solid var(--gray-400); background: var(--gray-100); padding-top: 0.7rem; padding-bottom: 0.7rem; }
.hbc-price-row td > * { display: block; margin: 0.1rem auto; width: max-content; }
.hbc-price { font-size: 1.1rem; }
.hbc-soon { color: var(--gray-600); }
.hbs { margin-top: 1.6rem; }
.hbs-title { font-size: 1.3rem; margin: 0 0 0.2rem; display: inline-block; margin-right: 0.5rem; }
.hbs-list { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.hbs-item { display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hbs-main { flex: 1 1 260px; }
.hbs-main h3 { margin: 0; font-size: 1.05rem; }
.hbs-main p { margin: 0.15rem 0 0; }
.hbs-price { margin-top: 0.35rem !important; }
.hbs-example { background: #fde8ec; color: #8a0f2a; }
.hbs-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.hbs-actions select { font: inherit; font-size: 0.85rem; padding: 0.35rem; border-radius: 8px; border: 1px solid var(--gray-400); min-height: 36px; }
.hbs-cart { color: var(--teal-dark); font-weight: 600; margin-top: 0.5rem; }
.hbs-cart:empty { display: none; }
.hbco-test { background: repeating-linear-gradient(45deg, #fff4e5, #fff4e5 10px, #ffe9c7 10px, #ffe9c7 20px); border: 2px dashed #c77700; color: #6b3b00; border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0.4rem 0 0.9rem; font-size: 0.92rem; }
.hbco-box { max-width: 560px; }
.hbco-h2 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.hbco-card { border: 1px solid var(--gray-200); border-radius: 12px; padding: 0.7rem 0.9rem 0.2rem; margin: 1rem 0 0; }
.hbco-card legend { font-weight: 600; padding: 0 0.3rem; }
.hbco-testchip { background: #c77700; color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 4px; padding: 0.05rem 0.35rem; margin-left: 0.3rem; }
.hbco-consent { margin-top: 1rem; border: 1px solid #c77700; background: #fffaf2; border-radius: 12px; padding: 0.6rem 0.8rem; }
.hbco-draft { margin: 0 0 0.4rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #8a4b00; }
.hbco-consent .checkbox-row { align-items: flex-start; }
.hbco-consent .checkbox-row input { margin-top: 0.25rem; flex: 0 0 auto; width: 20px; height: 20px; }
.hbw-banner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, var(--teal-light), #fff); border: 1px solid var(--teal); border-radius: 16px; padding: 1rem 1.1rem; margin: 0 0 1.2rem; position: relative; }
.hbw-text { flex: 1 1 300px; }
.hbw-text h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.hbw-text p { margin: 0; }
.hbw-actions { display: flex; gap: 0.5rem; align-items: center; }
.hbw-x { position: absolute; top: 0.4rem; right: 0.5rem; }
.hbt { position: fixed; inset: 0; z-index: 2000; }
.hbt-shade { position: absolute; inset: 0; }
.hbt-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 4px var(--teal), 0 0 0 9999px rgba(10,10,10,.55); transition: all .2s ease; pointer-events: none; }
.hbt-pop { position: fixed; width: min(340px, calc(100vw - 16px)); background: var(--white); border-radius: 14px; padding: 0.9rem 1rem 0.8rem; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.hbt-pop h2 { font-size: 1.1rem; margin: 0 1.6rem 0.3rem 0; }
.hbt-pop p { margin: 0 0 0.5rem; }
.hbt-step { color: var(--teal-dark); font-weight: 700; margin: 0 0 0.2rem !important; }
.hbt-btns { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.5rem; }
.hbt-sp { flex: 1; }
.hbt-x { position: absolute; top: 0.4rem; right: 0.4rem; }
.hbh-menu-wrap { position: relative; }
.hbh-menu-btn { display: inline-flex; align-items: center; gap: 0.25rem; border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0; min-height: 40px; }
.hbh-menu-btn .user-chip { display: inline-block; }
.hbh-caret { font-size: 0.75rem; color: var(--gray-600); }
.hbh-ini { display: none; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); font-weight: 700; font-size: 0.85rem; align-items: center; justify-content: center; }
.hbh-menu { right: 0; top: calc(100% + 6px); }
@media (max-width: 640px) { .site-header.hbh .hbh-menu-wrap { order: 2; } }
@media (max-width: 480px) { .site-header.hbh .hbh-menu-btn .user-chip { display: none; } .hbh-ini { display: inline-flex; } .hbc-dialog { padding: 0.8rem 0.6rem; } .hbw-actions { width: 100%; } .hbw-actions .btn-primary { flex: 1; } }

/* ===== Oct 6 (2:40 PM) — membership consent (Legal v0), account / cancel, billing stubs, email previews (DEMO – NO PHI) ===== */
/* Florida 624.27 (Legal Oct 8): contrasting color, ≥ 12 pt → rendered at ≥ 16px and never smaller than body text, everywhere. */
.hb-notins { color: #8a0f2a; background: #fde8ec; font-size: max(1rem, 16px) !important; font-weight: 800; padding: 0 0.25rem; border-radius: 4px; line-height: 1.5; }
.hb-notins-line { margin: 0.6rem 0; }
.hbco-c-h { font-size: 1.05rem; margin: 0 0 0.35rem; }
.hbco-consent p#hbco-disclaimer { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.hbco-annual { background: #eef4ff; border: 1px solid #9db5e8; border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.9rem; margin: 0.8rem 0 0; }
.hbco-paybox { margin-top: 1rem; border: 2px solid var(--teal); border-radius: 12px; padding: 0.75rem 0.85rem; background: #f6fbfa; }
.hbco-agree { align-items: flex-start; font-weight: 600; }
.hbco-agree input { margin-top: 0.25rem; flex: 0 0 auto; width: 20px; height: 20px; }
.hbco-when { margin: 0.45rem 0 0.6rem; font-size: 0.9rem; }
#hbco-pay[disabled] { opacity: 0.55; cursor: not-allowed; }
.hbc-annual-note { background: #eef4ff; border-radius: 8px; padding: 0.35rem 0.6rem; margin-top: 0.6rem; }
.hbbill-banner { border: 2px solid #c77700; background: #fff8ec; border-radius: 14px; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.hbbill-banner.is-paused { border-color: #b00020; background: #fff1f3; }
.hbbill-banner h2 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.hbbill-banner p { margin: 0 0 0.45rem; }
.hb-emergency { color: #8a0f2a; }
.hbacct-card { margin-bottom: 1rem; }
.hbacct-card h2 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.hbacct-dl { margin-bottom: 0.9rem; }
.hbacct-done { border-top: 1px solid var(--gray-200); padding-top: 0.7rem; }
.hbacct-done h3 { margin: 0 0 0.3rem; color: var(--teal-dark); }
.hbacct-outbox { margin: 0 0 0 1.1rem; }
.hbacct-outbox li { margin: 0.3rem 0; }
.hbem-banner { background: repeating-linear-gradient(45deg, #fff4e5, #fff4e5 10px, #ffe9c7 10px, #ffe9c7 20px); border: 2px dashed #c77700; border-radius: 10px; padding: 0.6rem 0.8rem; color: #6b3b00; }
.hbem { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 1rem 1.1rem; margin: 0.8rem 0 1rem; max-width: 720px; }
.hbem-meta { display: grid; gap: 0.3rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 0.6rem; margin: 0 0 0.8rem; font-size: 0.9rem; }
.hbem-meta > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem; }
.hbem-meta dt { color: var(--gray-600); }
.hbem-meta dd { margin: 0; font-weight: 600; }
.hbem-body h3 { font-size: 1rem; margin: 1rem 0 0.3rem; }
.hbem-body ul { margin: 0 0 0.5rem 1.2rem; }
.hbem-body p { margin: 0 0 0.5rem; }
@media (max-width: 480px) { .hbem-meta > div { grid-template-columns: 1fr; gap: 0; } }
.hbc-dialog { margin: auto; inset: 0; position: fixed; }
@media (max-width: 600px) {
  .hbc-dialog { width: calc(100vw - 0.8rem); padding: 0.7rem 0.45rem; }
  .hbc-table { min-width: 0; font-size: 0.74rem; table-layout: fixed; }
  .hbc-table th, .hbc-table td { padding: 0.4rem 0.25rem; }
  .hbc-table th[scope=row] { min-width: 0; width: 29%; position: static; }
  .hbc-table thead th { font-size: 0.8rem; }
  .hbc-table thead th .card-badge { font-size: 0.55rem; padding: 0.05rem 0.3rem; }
  .hbc-price { font-size: 0.9rem; }
  .hbc-price-row td > * { width: auto; }
  .hbc-head h2 { font-size: 1.15rem; }
}
/* Oct 6 (3:00 PM) — Standard / Member rate (never "Annual") */
.hb-member-opt { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.hb-member-opt .billing-save { display: block; font-size: 0.72rem; font-weight: 600; margin: 0.1rem 0 0; }
.plan-member-rate { font-weight: 600; color: var(--teal-dark); }
.plan-member-terms, .hbc-member-note, .hbco-member-note { color: #6b3b00; }
.hbc-member-note { background: #fff4e5; border-radius: 8px; padding: 0.35rem 0.6rem; margin-top: 0.6rem; }
.hbco-member-note { margin: 0 0 0.6rem; }

/* ---------- Oct 7: Medicare screening (patient-medicare.js) + Membership Terms placeholder ---------- */
.hbmc-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.hbmc-legend { font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--black); padding: 0; margin-bottom: 0.35rem; }
.hbmc-draft { margin-top: 0.15rem; }
.hbmc-opts { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.hbmc-opt { display: flex; align-items: center; gap: 0.55rem; min-width: 8.5rem; min-height: 52px; padding: 0.6rem 1.1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.hbmc-opt input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal); margin: 0; }
.hbmc-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-light); }
.hbmc-opt:has(input:focus-visible) { outline: 3px solid var(--teal-dark); outline-offset: 2px; }
.hbmc-q.hbi-invalid .hbmc-opt { border-color: #b00020; }
.hbi-medicare { border-left: 4px solid var(--teal); }
.hbmc-gate { max-width: 560px; }
.hbmc-gate .btn-block { margin-top: 1rem; }
.hbmc-block { max-width: 620px; margin: 1.5rem auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem 1.5rem; text-align: center; }
.hbmc-block h1 { font-size: 1.5rem; margin: 0.5rem 0 0.75rem; outline: none; }
.hbmc-block-text { font-size: 1.08rem; line-height: 1.55; color: var(--gray-800); margin: 0 auto 1rem; max-width: 34rem; }
.hbmc-block-ico { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--teal-light); color: var(--teal-dark); font-weight: 800; font-size: 1.4rem; font-family: Georgia, serif; }
.hbmc-actions { margin-top: 1.25rem; }
.hbterms { max-width: 760px; }
.hbterms-clause { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); }
.hbterms-pending { border: 2px dashed #8a4b00; background: #fff7ea; }
.hbterms-pending-label { display: inline-block; margin: 0 0 0.5rem; padding: 0.2rem 0.5rem; background: #8a4b00; color: var(--white); font-weight: 800; font-size: 0.85rem; border-radius: 4px; }
.hbterms-clause h2 { margin: 0.25rem 0 0.5rem; font-size: 1.15rem; }
.hbco-terms-link { margin: 0.5rem 0 0; }
@media (max-width: 480px) { .hbmc-opt { flex: 1 1 0; min-width: 0; justify-content: center; } .hbmc-block { padding: 1.25rem 1rem; margin: 1rem 0; } }

/* ---------- Oct 7 (round 2): Medicare helper text, age-65 confirmation, decline buttons, re-ask card, clinician flag ---------- */
.hbmc-help { margin: 0.1rem 0 0.35rem; color: var(--gray-800); font-size: 0.95rem; line-height: 1.5; max-width: 46rem; }
.hbmc-card .hbmc-q + .hbmc-q { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.hbmc-age { padding: 0.25rem 0; }
.hbmc-age-text { font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: var(--black); margin: 0.25rem 0 1rem; }
.hbmc-age-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hbmc-age-btns .btn { min-height: 48px; }
.hbmc-block-text a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; word-break: break-word; }
.hbmc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.hbmc-actions .btn { min-height: 48px; }
.hbmc-reask { border-left: 4px solid var(--teal); margin: 1rem 0; }
.hbmc-ra-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hbmc-ra-head h2 { margin: 0; font-size: 1.2rem; }
.hbmc-ra-reason { color: var(--gray-600); margin: 0.35rem 0 0.75rem; }
.hbmc-reask form .btn { margin-top: 0.9rem; }
.hbmc-ra-done { font-weight: 600; color: var(--teal-dark); margin: 0.25rem 0; }
.hbmc-reask-member { border-left-color: #8a4b00; padding: 0; }
.hbmc-reask-member .hbmc-block { margin: 0; box-shadow: none; border: 0; text-align: left; }
.hbmc-reask-member .hbmc-block-ico { margin: 0 0 0.25rem; }
.hbmc-reask-member h1 { font-size: 1.25rem; }
.hbmc-member .hbmc-block-text { margin-left: 0; }
.hbmc-refund { margin-top: 0.25rem; }
.hbmc-noaddon { color: #8a4b00; font-weight: 600; }
.hbmc-flag-row { margin: 0.25rem 0 0; }
.hbmc-flag { display: inline-block; background: #fff1e0; color: #7a3e00; border: 1px solid #e0a35c; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.8rem; font-weight: 700; }
.hbmc-clin-banner { background: #fff7ea; border: 2px solid #e0a35c; border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin: 0 0 1rem; color: #4a2700; }
.hbmc-clin-banner ul { margin: 0.35rem 0 0.5rem 1.1rem; }
@media (max-width: 480px) { .hbmc-age-btns .btn, .hbmc-actions .btn { flex: 1 1 100%; } }

/* Oct 7 r2: keep the phone number on one line */
#hbmc-phone, .hbmc-tel { white-space: nowrap; }

/* ===== Oct 7 r3 — Medicare: booking closed, member change, clinician transition visits, review flag ===== */
.hbmc-bk-closed { text-align: left; padding: 1.5rem; border-radius: var(--radius); }
.hbmc-bk-closed h1 { font-size: 1.6rem; margin: 0 0 0.6rem; }
.hbmc-bk-links { justify-content: flex-start; }
.hbmc-book-closed { opacity: 0.85; border-style: dashed; }
.hbmc-rc-same { background: var(--teal-light); border-radius: var(--radius); padding: 0.5rem 0.8rem; margin: 0 0 0.75rem; }
.hbmc-reask-member .hbmc-block { margin: 0; box-shadow: none; border: 0; padding: 0.5rem 0; }
.hbmc-reask-member .hbmc-actions { justify-content: flex-start; }
.hbmc-member-text a, .hbmc-block-text a { font-weight: 700; }
.hbmc-flag-review { background: #fdecef; color: #8a1029; border-color: #e58a9b; }
.hbmc-clin-banner > ul > li { margin-bottom: 0.9rem; }
.hbmc-clin-text { margin: 0 0 0.3rem; }
.hbmc-clin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0; }
.hbmc-clin-actions .btn { min-height: 44px; }
.hbmc-tr-list { margin: 0.4rem 0; padding-left: 1.1rem; }
.hbmc-tr { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem 1.1rem; margin-top: 0.6rem; color: var(--black); }
.hbmc-tr h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.hbmc-tr fieldset { border: 0; padding: 0; margin: 0.6rem 0; }
.hbmc-tr legend { font-weight: 700; margin-bottom: 0.3rem; }
.hbmc-tr .hbmc-opts, .hbmc-tr-types { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hbmc-tr .hbmc-opt { min-width: 0; font-size: 0.98rem; }
.hbmc-tr-row { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.75rem; align-items: center; max-width: 30rem; }
.hbmc-tr-row select { min-height: 44px; }
.hbmc-tr .hbmc-actions { justify-content: flex-start; }
.hbmc-tr-done, .hbmc-cleared { background: #e8f6f1; border: 1px solid #8ccfb8; color: #0b5640; border-radius: var(--radius); padding: 0.55rem 0.8rem; font-weight: 600; }
.hbmc-tr-nocharge { font-weight: 700; color: var(--teal-dark); }
.hbmc-appts-closed { background: #fff6e8; border: 1px solid #e0a35c; border-radius: var(--radius); padding: 0.6rem 0.8rem; }
.hbmc-medicare-tel { font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) { .hbmc-tr .hbmc-opt { flex: 1 1 100%; } .hbmc-tr-row { grid-template-columns: 1fr; } .hbmc-bk-closed { padding: 1.1rem; } .hbmc-bk-links .btn { flex: 1 1 100%; } }
.card.hbmc-reask.hbmc-reask-member { padding: 1.1rem 1.4rem; }
.hbmc-reask-member .hbmc-block-text { max-width: 46rem; }
.hbmc-bk-closed .hb-emergency { margin: 0.8rem 0 1rem; }

/* ---- Medicare round 4 (Oct 7, 2026, Legal Director) — DEMO – NO PHI ---- */
.hbmc-bk-msg { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.hbmc-bk-msg-note { font-size: 0.85rem; line-height: 1.3; }
.hbmc-confirm .hbmc-age-btns { justify-content: flex-start; }
.hbmc-reconsent .hbmc-rcn-box { border: 1px solid var(--border, #d8dee6); border-radius: var(--radius); padding: 0.9rem 1rem; margin: 0.75rem 0; background: #fbfcfe; }
.hbmc-reconsent .hbmc-rcn-box h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.hbmc-reconsent .hb-notins { color: #8a1029; }
.hbmc-reconsent .hbmc-actions { justify-content: flex-start; }
.hbmc-refund-stub .hbco-testchip { margin-right: 0.25rem; }
.hbmc-flag-md { background: #eef0ff; color: #2b2f8a; border-color: #9aa1e6; }
.hbmc-md { background: #f4f5ff; border: 1px solid #c7cbf2; border-radius: var(--radius); padding: 0.5rem 0.75rem; margin: 0.5rem 0; }
.hbmc-wait { color: #7a3e00; }
.hbmc-confirmed { color: #0b5640; }
.hbmc-clin-actions .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.hbmc-tr-purpose { background: #fff8e8; border-left: 3px solid #e0a35c; padding: 0.4rem 0.6rem; }
.hbmc-clr-other-row { grid-template-columns: auto 1fr; }
@media (max-width: 480px) { .hbmc-bk-msg { flex: 1 1 100%; } .hbmc-bk-msg .btn { width: 100%; } .hbmc-clr-other-row { grid-template-columns: 1fr; } }

/* Oct 7 follow-up (2:55 PM): Medical director review "Mark reviewed" (demo) */
.hbmc-md .hbmc-clin-actions { margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.hbmc-md-done { color: #0b5640; font-weight: 600; background: #eef8f3; border: 1px solid #b9dfcc; border-radius: var(--radius); padding: 0.4rem 0.65rem; margin: 0.5rem 0; }

/* ---- Oct 8, 2026: plan table (catalog v1.4), lab pop-up, kit fee lines ---- */
.hbc-dialog { position: fixed; }
.hbc-ast { margin-left: 0.2rem; min-width: 28px; min-height: 28px; padding: 0 0.35rem; border: 1px solid var(--teal-dark); border-radius: 999px; background: var(--white); color: var(--teal-dark); font-weight: 800; font-size: 1rem; line-height: 1; cursor: pointer; vertical-align: middle; }
.hbc-ast:hover, .hbc-ast[aria-expanded=true] { background: var(--teal-dark); color: var(--white); }
.hbc-ast:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.hbc-pop { position: absolute; z-index: 5; background: var(--white); border: 1px solid var(--gray-400); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 0.75rem 0.85rem; font-size: 0.9rem; line-height: 1.45; text-align: left; }
.hbc-pop p { margin: 0 0 0.5rem; }
.hbc-pop:focus { outline: 3px solid var(--teal); outline-offset: 2px; }
.hbc-kit-row th, .hbc-kit-row td { background: var(--gray-100); font-size: 0.85rem; }
.hbc-yr-eq { display: block; }
.hbc-per { white-space: nowrap; }
.plan-kit { margin: 0.35rem 0 0.4rem; padding: 0.35rem 0.5rem; border-radius: 8px; background: var(--gray-100); color: var(--gray-800, #333); }
.plan-soon-note { margin: 0.2rem 0; }
.hb-draft-legal { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #8a4b00; }
.hbco-kitline { margin: 0.4rem 0 0.25rem; font-size: 0.95rem; }
.hbco-glucose { margin: 0 0 0.6rem; font-size: 0.95rem; }
.hbco-draft-note { color: #8a4b00; }
.hbmp-then { margin: 0.25rem 0 0; }
@media (max-width: 520px) {
  .hbc-price-row td > * { width: auto; max-width: 100%; }
  .hbc-price { font-size: 0.9rem; white-space: normal; }
  .hbc-kit-row td, .hbc-kit-row th, .hbc-price-row th { font-size: 0.74rem; }
}
.hbco-box .payment-row { gap: 0.75rem; }
.hbco-box .payment-row > span:last-child { white-space: nowrap; }
#hbco-yr-cancel { margin-top: 0.5rem; }

/* ---------- Oct 8 (late): single visits — member vs non-member columns; checkout billing switch; tax note; WC preview ---------- */
.hbs-card { display: block; }
.hbs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.hbs-col { border: 1px solid var(--gray-200); border-radius: 10px; padding: 0.6rem 0.75rem; background: var(--white); }
.hbs-col-member { background: #f2faf8; border-color: #bfe3da; }
.hbs-col-non { background: #fbf8f2; }
.hbs-col-h { margin: 0 !important; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-600); }
.hbs-col-p { margin: 0.2rem 0 0 !important; }
.hbs-col .hbs-actions { margin-top: 0.45rem; }
.hbco-billing { display: grid; gap: 0.4rem; margin: 0 0 0.9rem; }
.hbco-bill-l { margin: 0; font-weight: 600; }
.hbco-bill-opt { text-align: left; font: inherit; padding: 0.55rem 0.75rem; border: 1.5px solid var(--gray-300, #cfd4d8); border-radius: 10px; background: var(--white); cursor: pointer; min-height: 44px; }
.hbco-bill-opt span { display: block; color: var(--gray-600); }
.hbco-bill-opt.active { border-color: var(--teal, #0d8a74); background: #f2faf8; box-shadow: inset 0 0 0 1px var(--teal, #0d8a74); }
.hbco-bill-opt:focus-visible { outline: 3px solid var(--teal-dark, #0a6b5a); outline-offset: 2px; }
.hbco-taxnote { margin: 0.35rem 0 0.6rem; }
.hbco-preview-note { background: #fff6e0; border: 1px solid #f0d8a0; border-radius: 10px; padding: 0.6rem 0.8rem; font-weight: 600; }
.hb-yearly-hint { text-align: center; margin: 0.35rem 0 0; }
/* Oct 8: ECG add-on on in-person visits */
.hbb-ecg { border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0.8rem 0; }
.hbb-ecg.on { border-color: var(--teal, #0d8a74); background: #f2faf8; }
.hbb-ecg legend { font-weight: 700; padding: 0 0.3rem; }
.hbb-ecg .checkbox-row { display: flex; gap: 0.5rem; align-items: flex-start; min-height: 44px; }
.hbb-ecg .checkbox-row input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: none; }
.hbb-ecg-status { margin: 0.35rem 0 0; font-weight: 600; }
.hbb-ecg-status.incl { color: var(--teal-dark, #0a6b5a); }
.hbb-ecg-status.over { color: #8a4b00; }
.hbb-ecg-hint { margin: 0.8rem 0 0; background: #f6f8fa; border-radius: 10px; padding: 0.55rem 0.75rem; }
.hbcal-ecg { color: #8a1c3a; font-weight: 600; margin-top: 0.15rem; }
/* Oct 8 (Legal): renewal reminder + 12-month rule note */
.hb-renewal { border: 2px solid #c98a00; background: #fff8e6; }
.hb-renewal h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.hb-renewal-by { font-size: 1.02rem; margin: 0.4rem 0 0.7rem; }
.hb-renewal .row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hb-renewal-done { background: #eef8f4; border: 1px solid #bfe3da; border-radius: 10px; padding: 0.6rem 0.8rem; }
.hbacct-rule12 { background: #fff8e6; border: 1px solid #f0d8a0; border-radius: 10px; padding: 0.55rem 0.75rem; }
.hbco-ecg { font-size: 0.9rem; margin: 0.35rem 0 0; }
.hb-renewal { margin-bottom: 1rem; }
/* Oct 8 (11:16): lab pop-up — two ways to pay + White Coat home draw */
.hbc-pop p { margin: 0 0 0.45rem; }
.hbc-lab-ways-h { font-weight: 600; }
.hbc-lab-ways { margin: 0 0 0.5rem 1.2rem; padding: 0; }
.hbc-lab-ways li { margin: 0 0 0.25rem; }
.hbc-wc-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: #1d1d1f; color: #f5d27a; border-radius: 999px; padding: 0.05rem 0.45rem; margin-right: 0.15rem; }
.hbc-lab-draft { margin: 0 0 0.5rem !important; }
/* White Coat message response time (Legal, Oct 8): same sentence + DRAFT label on the plan card, Compare, Terms, preview, My plan */
.hb-wc-msg { display: block; margin: 0.35rem 0 0; font-size: 0.85rem; line-height: 1.45; color: #374151; font-weight: 400; }
.hbc-wc-msg { margin: 0.6rem 0 0; padding: 0.5rem 0.7rem; border-left: 3px solid #6366f1; background: #f5f6ff; border-radius: 6px; overflow-wrap: anywhere; }
.hbc-wc-ref { color: #4338ca; font-weight: 700; margin-left: 1px; }
.hbco-box ~ .hb-wc-msg, #hbco-preview-wcmsg { margin: 0.5rem 0; font-size: 0.9rem; }
#terms-wc-msg .hb-wc-msg { font-size: 1rem; color: inherit; }

/* =====================================================================================================================
   DESIGN ROUND — Oct 8, 2026 (Design Guru review M1–M7, S1–S9 + Legal Director conditions, 11:36 AM)
   ===================================================================================================================== */
h1 { font-weight: 600; letter-spacing: -0.02em; }
.btn-primary:hover { background: #086158; }
/* M1 contrast: gray text → #6B6660 (no opacity on text); message bubble / times readable */
.thread-item .time, .thread-item .preview, .hbcal-out, .hbc-no, .auth-divider { color: var(--gray-600); }
.bubble .when { opacity: 1; color: var(--gray-600); }
.bubble.me .when, .bubble.me { color: #FFFFFF; }
.progress-step .dot { color: var(--gray-800); }
.plan-card.plan-coming { opacity: 1; }
.plan-card.plan-coming .plan-amount { color: var(--gray-800); }
/* N6 / M1: disabled controls are clearly disabled and still readable */
.btn[disabled], .btn[aria-disabled="true"], #hbco-pay[disabled], .hbmc-clin-actions .btn[disabled] { opacity: 1; background: #E8E4DE; border-color: #E8E4DE; color: var(--gray-600); cursor: not-allowed; }
.slot.disabled { opacity: 1; color: var(--gray-600); background: var(--gray-100); }
.site-footer { color: #A39E96; }
.site-footer a { color: #A39E96 !important; }
.site-footer .hb-footer-privacy a { color: var(--cream) !important; }
/* S9: footer link rows ≥ 44px to tap */
.site-footer p:has(> a) { min-height: 44px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.25rem; }
.site-footer p > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; }
/* buttons: ≥ 44px tall everywhere (M7) */
.btn, .btn-sm { min-height: 44px; }

/* ---------- M2 test-release bar (non-dismissible; hb-release.js) ---------- */
.hb-testbar { height: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 0.75rem; background: #0A0A0A; color: #F5F1EA;
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; letter-spacing: 0.01em; position: relative; z-index: 1001; }
@media (max-width: 360px) { .hb-testbar { font-size: 13px; } }
/* ---------- M2 internal labels hidden from patients in the fake-data test release (html.hb-tr; ?review=1 shows them) ---------- */
.hb-tr .phi-chip, .hb-tr .phi-note, .hb-tr .hba-demo, .hb-tr .hb-draft-legal, .hb-tr .hbco-draft, .hb-tr .hbmc-draft,
.hb-tr .hbj-legal-draft, .hb-tr .hbj-rf-kicker, .hb-tr .sample-session-note, .hb-tr .hb-internal, .hb-tr .hbs-example, .hb-tr .vv-demo-banner, .hb-tr .vv-draft-label,
.hb-tr .hbi-demo, .hb-tr .hbem-source, .hb-tr .hbco-draft-note, .hb-tr .hbco-testchip, .hb-tr .hbmc-refund-stub .hbco-testchip { display: none !important; }
html:not(.hb-tr) .hb-tr-only { display: none !important; }
/* test tools (demo controls, reset, reminder preview): hidden from patients; ?review=1 / ?testtools=1 shows them */
html:not(.hb-tools) .hb-testtool, html:not(.hb-tools) .hbmp-demo, html:not(.hb-tools) #hbj-reset, html:not(.hb-tools) .hbj-push-preview, html:not(.hb-tools) #acct-demo { display: none !important; }
/* S6: Google / Apple sign-in don't work yet → hidden in the test version */
.hb-testrel .auth-divider, .hb-testrel .auth-social { display: none !important; }
/* "Prices not final" / "Test mode" lines (test release only) */
.hb-notfinal { font-size: 0.85rem; color: var(--gray-600); margin: 0.4rem 0 0; }
.hb-testpay { font-size: 0.9rem; color: var(--gray-800); margin: 0.5rem 0 0; text-align: center; }

/* ---------- M3 + M4 header ---------- */
.hbh-plan { background: #E6F5F3; color: #0A7A70; border: 1px solid #B9E2DD; }
.hbh-plan > span[aria-hidden] { color: #0A7A70; }
.hbh-plan-fast_access { background: #E6F5F3; color: #0A7A70; }
.hbh-plan:hover { filter: none; background: #D5EEEA; }
@media (max-width: 640px) {
  .site-header .hbh-brand .hb-wordmark, .site-header .logo-hb .hb-wordmark, body.hb-clin .site-header .logo-hb .hb-wordmark { height: 57px; }   /* ink ≈ 162px wide (locked minimum 160px) */
  .site-header .hbh-plan { display: none; }   /* plan shows on My plan / Account instead */
  .site-header.hbh { flex-wrap: nowrap; }
  .site-header.hbh .hbh-menu-btn .user-chip { display: none; }
  .site-header.hbh .hbh-ini { display: inline-flex; width: 44px; height: 44px; }
  .site-header .user-chip { display: none; }
}

/* ---------- M5 one patient nav (patient-nav.js) ---------- */
.hb-pnav { display: flex; gap: 0.25rem; align-items: center; flex-wrap: nowrap; }
.hb-pnav > a, .hb-pnav .hbn-more { display: inline-flex; align-items: center; gap: 0.4rem; position: relative; min-height: 44px; padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--gray-800); font: inherit; font-size: 0.92rem; font-weight: 500; background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.hb-pnav > a:hover, .hb-pnav .hbn-more:hover, .hb-pnav > a.active, .hb-pnav .hbn-more.active { background: var(--teal-light); color: var(--teal-dark); text-decoration: none; }
.hb-pnav > a.active, .hb-pnav .hbn-more.active { font-weight: 700; }
.hb-pnav .hbn-ico { width: 18px; height: 18px; flex-shrink: 0; }
.hbn-badge { min-width: 18px; height: 18px; border-radius: 999px; background: #B42318; color: #fff; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.hbn-more-wrap { position: relative; }
.hbn-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 950; min-width: 200px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: var(--shadow-md); padding: 0.35rem; display: flex; flex-direction: column; }
.hbn-more-menu[hidden] { display: none; }
.hbn-more-menu a { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 0.75rem; border-radius: 8px; color: var(--black); font-weight: 500; text-decoration: none; }
.hbn-more-menu a:hover, .hbn-more-menu a.active { background: var(--teal-light); color: var(--teal-dark); text-decoration: none; }
.hbn-more-menu .hbn-ico { width: 22px; height: 22px; }
@media (max-width: 640px) {
  body.hb-pnav-on { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .site-header .hb-pnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; order: 9; flex: none; overflow: visible;
    background: var(--white); border-top: 1px solid var(--gray-200); box-shadow: 0 -2px 10px rgba(10,10,10,.06); padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .hb-pnav > a, .hb-pnav .hbn-more { flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; width: 100%; padding: 6px 2px; font-size: 12px; line-height: 1.1; border-radius: 10px; text-align: center; white-space: nowrap; }
  .hb-pnav .hbn-ico { width: 22px; height: 22px; }
  .hb-pnav > a.active, .hb-pnav .hbn-more.active { box-shadow: inset 0 3px 0 var(--teal-bright); background: transparent; }
  .hbn-more-wrap { display: flex; }
  .hb-pnav .hbn-badge { position: absolute; top: 4px; left: calc(50% + 6px); }
  .hbn-more-menu { position: fixed; right: 8px; left: auto; top: auto; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); min-width: 220px; }
  body.hb-pnav-on .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- M6 journal: pinned one-liner (Legal conditions) ---------- */
.hbj-pin { position: sticky; top: 0; z-index: 20; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; background: #FFF8E6; border: 1px solid #F5D38A; color: #3F300A;
  border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; margin: 0.75rem 0 1rem; font-size: 1rem; line-height: 1.45; box-shadow: var(--shadow); }
.hbj-pin-text { font-size: 1rem; }
.hbj-pin-more { font: inherit; font-size: 1rem; font-weight: 700; color: #0A7A70; background: none; border: 0; padding: 0 0.15rem; min-height: 44px; text-decoration: underline; cursor: pointer; }
.hbj-pin .hbj-review { font-size: 0.75rem; }
.hbj-gate { border: 2px solid #F5D38A; }
.hbj-gate .hbj-notice-box { font-size: 1rem; line-height: 1.5; }
.hbj-understand { margin-top: 0.75rem; }
.hbj-understand[aria-pressed="true"]::before { content: "✓ "; }
.hbj-notice-full { font-size: 1rem; line-height: 1.55; }
/* S1: notice icon was a Georgia "i" */
.hbj-notice-ico { font: 700 0.75rem/20px var(--font); }

/* ---------- M7 journal tap targets ≥ 44px, 8px gaps ---------- */
.hbj-choices { gap: 0.5rem; }
.hbj-choice, .hbj-choice-sm, .hbj-chip, .hbj-mood, .hbj-sev button, .hbj-seg button, .hbj-tabs [role="tab"] { min-height: 44px; }
.hbj-choice-sm { padding: 0.55rem 1rem; font-size: 1rem; }
.hbj-chip { padding: 0.55rem 0.95rem; font-size: 1rem; }
.hbj-syms { gap: 0.5rem; }
.hbj-sev, .hbj-seg { gap: 0.5rem; }
.hbj-sev button, .hbj-seg button { padding: 0.5rem 0.85rem; font-size: 0.95rem; }
.hbj-lang select, .hbj-vital select, .hbj-vital input, .hbj-entry textarea { min-height: 44px; font-size: 16px; }
.hbj-check, label.hb-check-row { min-height: 44px; align-items: center; padding: 0.25rem 0; }
.hbj-check input, label.hb-check-row input[type="checkbox"], .vv-consent input[type="checkbox"], main input[type="checkbox"] { width: 24px; height: 24px; margin-top: 0; accent-color: var(--teal); flex-shrink: 0; }
main label:has(> input[type="checkbox"]) { min-height: 44px; display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.hbj-med { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; margin: 0.5rem 0 0.9rem; }
@media (max-width: 640px) {
  .hbj-seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .hbj-seg button { width: 100%; padding: 0.5rem 0.25rem; }
  .hbj-sev { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 0.4rem; }
  .hbj-moods { gap: 0.5rem; }
}

/* ---------- S2 line icons (one set, 1.75px stroke) ---------- */
.hb-ico-tile { width: 32px; height: 32px; border-radius: 9px; background: #E6F5F3; color: #0A0A0A; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hb-ico-tile svg, .hb-ico svg { width: 20px; height: 20px; }
.card-icon.hb-ico-tile { width: 40px; height: 40px; font-size: 0; }
.card-icon.hb-ico-tile svg { width: 22px; height: 22px; }
.role-icon.hb-ico-tile { width: 48px; height: 48px; margin: 0 auto 0.6rem; }
.role-icon.hb-ico-tile svg { width: 26px; height: 26px; }
.notif-icon svg { width: 20px; height: 20px; display: block; }

/* ---------- S3 empty journal history ---------- */
.hbj-empty { text-align: center; padding: 1.75rem 1rem; }
.hbj-empty h2 { margin-bottom: 0.35rem; }
.hbj-empty p { color: var(--gray-600); margin-bottom: 1rem; }

/* ---------- S7 start page: two buttons ---------- */
.hb-start-btns { display: flex; flex-direction: column; gap: 0.75rem; max-width: 420px; margin: 1.5rem auto 0; }
.hb-start-btns .btn { min-height: 52px; font-size: 1.05rem; }

/* ---------- Message handling hours (Legal, Oct 8): after-hours line, reply-by, clinician due time ---------- */
.hb-afterhours { margin: 0.5rem 0; padding: 0.6rem 0.8rem; border-left: 4px solid #0A7A70; background: #E6F5F3; color: #0A0A0A; font-size: 1rem; line-height: 1.45; border-radius: 6px; }
.hb-replyby, .hb-due { font-size: 0.85rem; margin-top: 0.3rem; font-weight: 600; }
.bubble.me .hb-replyby { color: #FFFFFF; }
.hb-due { color: #8A3B00; }
.bubble .hb-due { color: #8A3B00; }
.hb-due-inbox { font-size: 0.8rem; }
.hb-replyby-confirm { margin: 0.5rem 0 0; font-size: 0.95rem; color: #0A0A0A; }

/* ---------- M7 tap-size sweep (≥ 44px; contrast audit clean) ---------- */
.site-header .logo-hb { min-height: 44px; display: inline-flex; align-items: center; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { min-height: 44px; box-sizing: border-box; }
input[type="radio"] { width: 24px; height: 24px; }
.billing-opt, .hbh-plan, .hbh-menu-btn, .notif-chip { min-height: 44px; }
.hbw-x, .hbcal-close { min-width: 44px; min-height: 44px; }
/* standalone text links (not inside a sentence): 44px tall row */
.hb-tap-link, .auth-alt a, .muted > a:only-child, p.small > a:only-child, .hbco-terms-link a, .hbv-back, a.hbv-back { display: inline-flex; align-items: center; min-height: 44px; }
.hb-tap-link { min-width: 44px; justify-content: center; }
.hbs-opt select, .hbs-item select { min-height: 44px !important; }
@media (max-width: 640px) {
  .site-header.hbh .nav-links.hb-pnav, .nav-links.hb-pnav { margin: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .hb-pnav > a, .hb-pnav .hbn-more { min-width: 0; padding-left: 2px; padding-right: 2px; }
  .hb-pnav .hbn-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Oct 8 12:29 PM additions: Medicare line, kit fee cost cap, yearly save label, good faith estimate */
.hbmc-line { font-size: 1rem; line-height: 1.5; margin: 0.5rem 0 0.75rem; padding: 0.6rem 0.75rem; border-left: 4px solid #0A7A70; background: #F3F8F7; color: #1F1D1B; }
.hb-kitcap { margin: 0.25rem 0 0.5rem; color: #4A4642; }
.hbco-yearly-save { display: inline-block; margin-top: 0.25rem; font-weight: 600; color: #0A7A70; }
.hbgfe { border: 1px solid #D8D2CA; border-radius: 10px; padding: 1rem; background: #fff; margin: 0 0 1rem; }
.hbgfe-label { display: inline-block; margin: 0 0 0.75rem; padding: 0.25rem 0.6rem; border-radius: 6px; background: #FFF4E5; color: #8A3B00; font-weight: 700; font-size: 0.95rem; }
.hbgfe-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hbgfe-table th, .hbgfe-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid #E6E1DA; vertical-align: top; }
.hbgfe-table thead th { font-size: 0.9rem; color: #4A4642; }
.hbgfe-table .hbgfe-num { text-align: right; white-space: nowrap; }
.hbgfe-total th, .hbgfe-total td { font-weight: 700; border-bottom: 0; font-size: 1.05rem; }
.hbgfe-usd { margin: 0.25rem 0; }
.hbgfe-agree { margin: 0.75rem 0 0.25rem; }
.hbco-gfe-ref { font-size: 0.95rem; padding: 0.5rem 0.75rem; background: #F3F8F7; border-radius: 8px; }
.hbacct-docs { list-style: none; padding: 0; margin: 0; }
.hbacct-doc { padding: 0.75rem 0; border-bottom: 1px solid #E6E1DA; }
.hbacct-doc p { margin: 0.2rem 0; }
.hbacct-doc-links .btn, .hbgfe-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .hbgfe-table thead { position: absolute; left: -9999px; }
  .hbgfe-table, .hbgfe-table tbody, .hbgfe-table tr, .hbgfe-table td { display: block; width: 100%; }
  .hbgfe-table tbody td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #F0ECE6; text-align: right; }
  .hbgfe-table tbody td::before { content: attr(data-label); font-weight: 600; color: #4A4642; text-align: left; }
  .hbgfe-table tfoot, .hbgfe-table tfoot tr { display: flex; width: 100%; justify-content: space-between; }
  .hbgfe-table tfoot th, .hbgfe-table tfoot td { display: block; }
}
@media print {
  .site-header, .hb-pnav, .site-footer, .hb-noprint, .hb-tour, #hbn-tab-more { display: none !important; }
  .hbgfe { border: 1px solid #999; }
}

/* ---- Oct 8: visit charges (clinician "Services provided", patient review card, receipts, Charges list) + fee schedule ---- */
.hbch-table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0.5rem 0; }
.hbch-table th, .hbch-table td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid #E6E1DA; vertical-align: top; }
.hbch-table thead th { font-size: 0.9rem; color: #4A4642; }
.hbch-table .hbch-amt { text-align: right; white-space: nowrap; }
.hbch-table tfoot th, .hbch-table tfoot td { font-weight: 700; border-bottom: 0; font-size: 1.05rem; }
.hbch-incl { color: #1F5E55; }
.hbch-charge { color: #6B3A10; font-weight: 600; }
.hbch-lock { display: inline-block; font-size: 0.8rem; font-weight: 600; color: #6B3A10; background: #FFF4E5; border-radius: 6px; padding: 0 0.35rem; }
.hbch-status { display: inline-block; font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 0.1rem 0.6rem; background: #EEF2F1; color: #1F3B37; }
.hbch-status[data-status="sent"], .hbch-status[data-status="scheduled"], .hbch-status[data-status="approved"] { background: #FFF4E5; color: #6B3A10; }
.hbch-status[data-status="paid"], .hbch-status[data-status="included"] { background: #E5F3EF; color: #1F5E55; }
.hbch-status[data-status="questioned"], .hbch-status[data-status="held"], .hbch-status[data-status="disputed"], .hbch-status[data-status="failed"] { background: #FDECEC; color: #8A1F1F; }
.hbch-status[data-status="voided"], .hbch-status[data-status="declined"], .hbch-status[data-status="refunded"] { background: #F0EEEA; color: #4A4642; }
.hbch-panel h2, .hbch-card h2 { margin-top: 0; }
.hbch-panel h3, .hbch-sent h3, .hbch-draft h3 { font-size: 1.05rem; margin: 1rem 0 0.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.hbch-big { font-weight: 700; }
.hbch-testbar { text-align: left; background: #FFF8E1; border: 1px solid #F0D58A; border-radius: 8px; padding: 0.4rem 0.75rem; margin: 0.25rem 0 0.75rem; }
.hbch-ctx select, .hbch-f select, .hbch-f input, .hbch-f textarea { width: 100%; min-height: 44px; padding: 0.45rem 0.6rem; border: 1px solid #CFC8BD; border-radius: 8px; font: inherit; background: #fff; box-sizing: border-box; }
.hbch-ctx label, .hbch-f > span { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.hbch-fs { border: 1px solid #E6E1DA; border-radius: 10px; padding: 0.75rem; margin: 0.75rem 0; min-width: 0; }
.hbch-fs legend { font-weight: 700; padding: 0 0.25rem; }
.hbch-addrow { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 3fr) auto; gap: 0.5rem; align-items: end; }
.hbch-addrow .btn, .hbch-actions .btn { min-height: 44px; }
.hbch-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.6rem 0; }
.hbch-actions .hbch-testpay { flex-basis: 100%; text-align: left; margin: 0; }
.hbch-reason { display: block; margin: 0.5rem 0; }
.hbch-err { color: #8A1F1F; min-height: 0; }
.hbch-urgent { background: #E5F3EF; border-radius: 8px; padding: 0.4rem 0.75rem; }
.hbch-notice { font-weight: 700; background: #FFF4E5; border-left: 4px solid #C77700; padding: 0.6rem 0.75rem; border-radius: 6px; }
.hbch-audit { margin: 0.4rem 0; font-size: 0.9rem; }
.hbch-audit summary { cursor: pointer; min-height: 32px; }
.hbch-audit ol { padding-left: 1.25rem; margin: 0.25rem 0; }
.hbch-card { margin: 0.75rem 0; }
.hbch-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0.5rem 0; }
.hbch-period { font-size: 1.05rem; }
.hbch-clock { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1rem; padding: 0.5rem 0.75rem; border: 1px dashed #CFC8BD; border-radius: 8px; }
.hbch-clock .btn { min-height: 44px; }
.hbch-rows { list-style: none; padding: 0; margin: 0; }
.hbch-row { margin: 0.6rem 0; }
.hbch-row p { margin: 0.2rem 0; }
.hbch-row-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.hbch-countdown { font-weight: 700; color: #6B3A10; }
.hbch-notif { margin: 0 0 0.75rem; border-left: 4px solid #C77700; }
.hbch-notif p { margin: 0.2rem 0; }
.hbch-autobox { margin: 0.75rem 0; padding: 0.6rem 0.75rem; border: 1px solid #E6E1DA; border-radius: 8px; }
.hbch-switch input { width: 22px; height: 22px; }
.hbch-log { padding-left: 1.25rem; }
.hbmp-allow { padding-left: 1.25rem; }
.hb-fees-wrap { overflow-x: auto; }
.hb-fees-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hb-fees-table th, .hb-fees-table td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid #E6E1DA; vertical-align: top; }
.hb-fees-table tbody th span { display: block; font-weight: 400; }
.hb-fees-h { font-size: 1.15rem; }
@media (max-width: 640px) {
  .hbch-addrow, .hbch-filters { grid-template-columns: minmax(0, 1fr); }
  .hbch-table thead { position: absolute; left: -9999px; }
  .hbch-table, .hbch-table tbody, .hbch-table tr, .hbch-table td { display: block; width: 100%; box-sizing: border-box; }
  .hbch-table tbody tr { border-bottom: 1px solid #E6E1DA; padding: 0.25rem 0; }
  .hbch-table tbody td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 0; text-align: right; padding: 0.3rem 0.25rem; }
  .hbch-table tbody td::before { content: attr(data-label); font-weight: 600; color: #4A4642; text-align: left; flex: 0 0 auto; }
  .hbch-table tbody td.hbch-rmcell::before { content: ""; }
  .hbch-table tfoot, .hbch-table tfoot tr { display: flex; width: 100%; justify-content: space-between; }
  .hbch-table tfoot th, .hbch-table tfoot td { display: block; }
  .hb-fees-table thead { position: absolute; left: -9999px; }
  .hb-fees-table, .hb-fees-table tbody, .hb-fees-table tr, .hb-fees-table td, .hb-fees-table tbody th { display: block; width: 100%; box-sizing: border-box; }
  .hb-fees-table tbody tr { border-bottom: 2px solid #E6E1DA; padding: 0.3rem 0; }
  .hb-fees-table tbody td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 0; text-align: right; padding: 0.2rem 0.25rem; }
  .hb-fees-table tbody td::before { content: attr(data-label); font-weight: 600; color: #4A4642; text-align: left; }
}
@media print { .hbch-clock, .hbch-actions, .hbch-testbar { display: none !important; } }
@media (max-width: 640px) {
  .hbch-table tbody td > .hbch-v { flex: 1 1 auto; min-width: 0; text-align: right; overflow-wrap: anywhere; }
  .hbch-table tbody td::before { flex: 0 0 34%; }
  .hbch-fs legend { float: left; width: 100%; margin-bottom: 0.5rem; }
  .hbch-fs legend + * { clear: both; }
}
/* Oct 8: adults only — eligibility line on plan cards, Compare and checkout */
.hb-elig-line { font-size: 1rem; font-weight: 600; color: #1F3B37; margin: 0.4rem 0; }
.hb-wc-adult { color: #1F3B37; margin: 0.25rem 0; }
.hbco-dob { margin: 0.75rem 0; }
.hbco-dob input { width: 100%; min-height: 44px; box-sizing: border-box; }
/* Oct 8: White Coat waiting list (free; no payment) */
.badge-wl { background: #E6F2EF; color: #0B5D52; border: 1px solid #9FCFC5; }
.plan-waitlist .hb-wl-card { background: #F4FAF8; border: 1px solid #CFE6E0; border-radius: 10px; padding: 0.75rem 0.85rem; margin: 0.6rem 0; }
.hb-wl-card p { margin: 0.35rem 0; }
.hb-wl-body { font-weight: 600; color: #1F3B37; }
.hb-wl-notmember, .hb-wl-elig { color: #2E3B39; }
/* White Coat small print (Legal, Oct 8 9:45 PM): on the card, above the button, ≥ 14px, #2E3B39 on #F4FAF8 ≈ 11:1 (WCAG AA ≥ 4.5:1) */
.hb-wl-promise { font-size: 0.875rem; color: #2E3B39; margin: 0.35rem 0; }
.hb-wl-join { margin-top: 0.75rem; }
.hbc-wl-join { display: block; font-weight: 600; margin-top: 0.25rem; }
.hb-wl-root { max-width: 720px; margin: 0 auto; }
.hb-wl-form .form-group { margin-bottom: 0.9rem; }
.hb-wl-form input[type=text], .hb-wl-form input[type=email], .hb-wl-form input[type=tel], .hb-wl-form input[type=date], .hb-wl-form select { width: 100%; min-height: 44px; box-sizing: border-box; }
.hb-wl-yn { border: 0; padding: 0; }
.hb-wl-yn legend { font-weight: 600; margin-bottom: 0.3rem; }
.hb-wl-radio { display: flex; gap: 0.5rem; align-items: flex-start; min-height: 44px; padding: 0.35rem 0; }
.hb-wl-check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.6rem 0; line-height: 1.45; }
.hb-wl-check input { min-width: 22px; min-height: 22px; margin-top: 0.15rem; }
.hb-wl-privacy { border-top: 1px solid #E3E0D8; padding-top: 0.7rem; margin-top: 0.9rem; }
.hb-wl-ok { background: #E6F2EF; color: #0B5D52; }
.hb-wl-actions .btn { margin: 0.25rem 0.25rem 0.25rem 0; }
.hb-wl-review { border: 1px solid #CFE6E0; background: #F4FAF8; border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0.6rem 0; }
.hb-wl-review.is-due { border-color: #E0A100; background: #FFF7E0; }
.hb-wl-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.6rem 0; }
.hb-wl-toolbar select { min-height: 40px; }
.hb-wl-msg { background: #EEF6FF; border-radius: 8px; padding: 0.5rem 0.75rem; }
.hb-wl-tablewrap { overflow-x: auto; }
.hb-wl-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hb-wl-table th, .hb-wl-table td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #E3E0D8; vertical-align: top; }
.hb-wl-table tr.is-next { background: #F4FAF8; }
.hb-wl-next, .hb-wl-first { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0 0.45rem; background: #0B5D52; color: #fff; }
.hb-wl-first { background: #8A5A00; }
.hb-wl-acts .btn { margin: 0.15rem 0.15rem 0.15rem 0; }
.hb-wl-skip, .hb-wl-preview { margin: 1rem 0; }
.hb-wl-skipnote { background: #FFF7E0; border-left: 4px solid #E0A100; padding: 0.5rem 0.7rem; }
.hb-wl-skip fieldset { border: 0; padding: 0; }
.hb-wl-pv { font-size: 0.8rem; font-weight: 600; color: #8A5A00; margin-left: 0.4rem; }
.hb-wl-email, .hb-wl-sms { border: 1px dashed #B9B4A8; border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.6rem 0; background: #fff; }
.hb-wl-invite-note { background: #F4FAF8; border: 1px solid #CFE6E0; border-radius: 8px; padding: 0.5rem 0.75rem; }
#wla-link { word-break: break-all; }
@media (max-width: 640px) {
  .hb-wl-table thead { display: none; }
  .hb-wl-table, .hb-wl-table tbody, .hb-wl-table tr, .hb-wl-table td { display: block; width: 100%; box-sizing: border-box; }
  .hb-wl-table tr { border: 1px solid #E3E0D8; border-radius: 10px; margin-bottom: 0.6rem; padding: 0.3rem 0.4rem; }
  .hb-wl-table td { border: 0; padding: 0.25rem 0.3rem; }
  .hb-wl-table td::before { content: attr(data-label) ": "; font-weight: 600; }
  .hb-wl-acts::before { display: none; }
}

/* Oct 8: bank transfer (ACH) preview — payment choice, fake bank sign-in/review, manual-refund flags */
.hbco-paymethod { border: 0; padding: 0; margin: 1rem 0 0; }
.hbco-paymethod legend { font-weight: 600; margin-bottom: 0.4rem; }
.hbco-paymethod .hbco-billing-opts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hbco-bank select { width: 100%; min-height: 44px; }
.hbco-bankauth { border-top: 1px solid var(--gray-200); margin-top: 0.6rem; padding-top: 0.4rem; }
.hbco-stripe-ph { border: 1px dashed var(--gray-300, #b8c2cc); border-radius: 8px; padding: 0.4rem 0.6rem; color: var(--gray-700, #3d4852); background: #fff; }
.hbco-kitships { margin: 0.4rem 0; }
.hbco-banklinkfirst { font-weight: 600; }
.hb-refund-flags { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 0.6rem; }
.hb-refund-flag { border: 2px solid #b45309; border-radius: 10px; padding: 0.5rem 0.75rem; background: #fffbeb; }
.hb-refund-flag p { margin: 0.2rem 0; }
.hb-refund-flag.is-sent { border-color: var(--gray-200); background: #fff; }
.hb-flag-tag { color: #92400e; }

/* ---------- Oct 8: overnight automated assistant (hb-assistant.js) ---------- */
.hb-asst-line { font-size: 1rem; line-height: 1.45; margin: 0.5rem 0 0.4rem; padding: 0.6rem 0.75rem; border-left: 4px solid #5B6B8C; background: #F1F3F8; color: #1F2633; border-radius: 6px; }
.bubble.hb-asst { background: #F1F3F8; color: #1F2633; border: 1px solid #C9D0DE; max-width: 85%; }
.bubble.hb-asst-emerg { background: #FDECEC; border-color: #B42318; color: #4A0E0A; }
.hb-asst-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.hb-asst-ava { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; overflow: hidden; display: inline-block; }
.hb-asst-ava svg { width: 36px; height: 36px; display: block; }
.hb-asst-who { display: flex; flex-direction: column; line-height: 1.2; }
.hb-asst-name { font-size: 0.9rem; }
.hb-asst-label { font-size: 0.8rem; font-weight: 700; color: #3D4A63; }
.hb-asst-emerg .hb-asst-label { color: #7A1A12; }
.hb-asst-text { font-size: 0.95rem; line-height: 1.45; }
.hb-asst-911 { display: inline-block; margin: 0.35rem 0.35rem 0 0; padding: 0.3rem 0.7rem; border-radius: 999px; background: #B42318; color: #fff !important; font-weight: 700; text-decoration: none; }
.hb-asst-es { margin-top: 0.3rem; }
.hb-asst-handoffs { border-bottom: 1px solid var(--gray-200, #E5E7EB); padding: 0.75rem; max-height: 46vh; overflow-y: auto; }
.hb-asst-h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.hb-asst-handoff { border: 1px solid #C9D0DE; background: #F7F8FB; border-radius: 10px; padding: 0.7rem 0.8rem; margin-bottom: 0.6rem; }
.hb-asst-handoff.is-redflag { border-color: #B42318; background: #FFF6F5; }
.hb-asst-handoff-top { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline; }
.hb-asst-status { font-size: 0.8rem; color: #555; }
.hb-asst-due { color: #8A3B00; margin: 0.35rem 0; }
.hb-asst-rf { font-size: 0.9rem; color: #7A1A12; margin: 0.35rem 0; }
.hb-asst-details { display: grid; grid-template-columns: 1fr; gap: 0.2rem; margin: 0.4rem 0; font-size: 0.88rem; }
.hb-asst-details div { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem; }
.hb-asst-details dt { color: #555; font-weight: 600; }
.hb-asst-details dd { margin: 0; }
@media (max-width: 600px) { .hb-asst-details div { grid-template-columns: 1fr; gap: 0; } .bubble.hb-asst { max-width: 95%; } }
.hba-from-msg { color: #3D4A63; }

/* ---------- Oct 8: CFO month-end report (provider-month-end.html) ---------- */
.me-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.75rem 0; }
.me-toolbar input[type=month] { padding: 0.35rem 0.5rem; border: 1px solid var(--gray-300, #D1D5DB); border-radius: 8px; font: inherit; }
.me-h2 { font-size: 1.15rem; margin: 0.5rem 0; }
.me-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0.5rem 0 0.9rem; }
.me-kpi { background: #fff; border: 1px solid var(--gray-200, #E5E7EB); border-radius: 10px; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.2rem; }
.me-kpi span { font-size: 0.82rem; color: #555; }
.me-kpi strong { font-size: 1.25rem; }
.me-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
.me-table th, .me-table td { padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--gray-200, #E5E7EB); text-align: left; }
.me-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.me-table thead th { font-size: 0.8rem; color: #444; vertical-align: bottom; }
.me-table tr.me-total th, .me-table tr.me-total td { font-weight: 700; border-top: 2px solid #333; }
.me-ok { color: #1B6B3A; } .me-bad { color: #B42318; font-weight: 700; }
.me-notes { margin-top: 0.75rem; padding-left: 1.1rem; }
.me-notes li { margin-bottom: 0.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 640px) { .me-kpis { grid-template-columns: 1fr; } .me-table { font-size: 0.82rem; } .me-table th, .me-table td { padding: 0.35rem 0.4rem; } }
@media (max-width: 640px) {
  .me-table thead { display: none; }
  .me-table, .me-table tbody, .me-table tr, .me-table th, .me-table td { display: block; width: 100%; box-sizing: border-box; }
  .me-table tr { border: 1px solid var(--gray-200, #E5E7EB); border-radius: 10px; margin-bottom: 0.6rem; padding: 0.3rem 0.5rem; }
  .me-table th[scope=row] { border: 0; font-size: 1rem; padding: 0.3rem 0; }
  .me-table td { border: 0; display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.2rem 0; text-align: right; }
  .me-table td::before { content: attr(data-label); font-weight: 600; text-align: left; color: #444; }
  .me-table tr.me-total { border: 2px solid #333; }
  .me-table tr.me-total th, .me-table tr.me-total td { border-top: 0; }
}

/* Oct 8 Legal: automated-thread banner (not under clinician name) */
.hb-asst-banner{margin:.75rem 0;padding:.65rem .85rem;background:#f3f6f4;border-left:3px solid #2a6b5a;border-radius:6px;max-width:36rem}
.hb-asst-banner-text{margin:0;font-size:.92rem;color:#1a2e28}
.hb-asst-rf-notseen{margin:.5rem 0 0;font-weight:600}

/* Compare memberships table = plan selection (Director, Oct 8 11:04 PM): one component on My plan, onboarding and /patient-plans.
   Buttons in the bottom row; White Coat's bottom cell carries Legal's card text above its button. */
.hbmp-act-row td { vertical-align: bottom; border-bottom: 0; padding-top: 0.8rem; padding-bottom: 0.9rem; }
.hbmp-act-row .btn { white-space: normal; }
.hbmp-table { table-layout: fixed; min-width: 700px; }
.hbmp-table thead th:first-child, .hbmp-table tbody th[scope=row] { width: 22%; }
.hbmp-table .hbmp-act-wc { text-align: left; }
.hbmp-table-wrap { -webkit-overflow-scrolling: touch; }
.hbmp-table th[scope=row] { position: sticky; left: 0; background: var(--white); z-index: 1; }
.hbmp-act-wc .hb-wl-card { background: #F4FAF8; border: 1px solid #CFE6E0; border-radius: 10px; padding: 0.6rem 0.7rem 0.45rem; margin: 0 0 0.35rem; font-size: 0.88rem; }
.hbmp-act-wc .hb-wl-card p { margin: 0.3rem 0; }
.hbmp-act-wc .hb-wl-join { display: block; text-align: center; }
.hbmp-wl-title { font-size: 0.95rem; }
.hbmp-table[data-billing="monthly"] tr[data-row="monthly"] th, .hbmp-table[data-billing="monthly"] tr[data-row="monthly"] td,
.hbmp-table[data-billing="yearly"] tr[data-row="monthly"] th, .hbmp-table[data-billing="yearly"] tr[data-row="monthly"] td { font-weight: 700; box-shadow: inset 0 2px 0 var(--teal), inset 0 -2px 0 var(--teal); }
#hb-plan-table { margin-top: 0.5rem; }
#hb-plan-table .hb-elig-line { margin-top: 0.9rem; }
.hbmp-cmp { position: relative; }
.hbmp-under { margin-top: 0.8rem; }
.hbmp-under .hb-adults-line, .hbmp-under .hb-elig-line { margin: 0.5rem 0; font-weight: 600; }
.hbmp-under-wl { background: #F4FAF8; border: 1px solid #CFE6E0; border-radius: 10px; padding: 0.5rem 0.75rem; margin: 0.5rem 0; }
.hbmp-under-wl p { margin: 0; }
.hbmp-table .hbc-yes { white-space: nowrap; }
.hbpt-msgs { margin-top: 0.8rem; }
.hbpt-msgs .hb-wc-msg, .hbpt-msgs .hb-plan-msg { display: block; margin: 0 0 0.5rem; padding: 0.5rem 0.7rem; border-left: 3px solid #6366f1; background: #f5f6ff; border-radius: 6px; }
@media (max-width: 600px) {   /* phone: swipe sideways; the row labels stay put and the next plan always peeks in */
  .hbmp-table { min-width: 600px; font-size: 0.85rem; }
  .hbmp-table thead th:first-child, .hbmp-table tbody th[scope=row] { width: 6.6rem; font-size: 0.8rem; box-shadow: 2px 0 4px rgba(0,0,0,0.06); }
  .hbmp-table th, .hbmp-table td { padding: 0.5rem 0.45rem; }
}
/* Director, Oct 8 11:35 PM: less empty space beside the White Coat waiting-list cell — give that column more width (no words changed);
   Fast Access / VIP buttons sit at the bottom of their cells, level with "Join the waiting list". */
.hbmp-table thead th[data-plan="white_coat"] { width: 34%; }
.hbmp-table .hbmp-act-row td { vertical-align: bottom; }
@media (max-width: 600px) { .hbmp-table { min-width: 680px; } }

/* plan-table labs "*": the round 28px look, inside a 44 × 44 px tap target (design rule) */
.hbc-ast.hbc-ast-hit { min-width: 44px; min-height: 44px; margin: -8px -6px -8px 0.1rem; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.hbc-ast-hit .hbc-ast-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; border: 1px solid var(--teal-dark); border-radius: 999px; background: var(--white); color: var(--teal-dark); font-weight: 800; font-size: 1rem; line-height: 1; }
.hbc-ast.hbc-ast-hit:hover, .hbc-ast.hbc-ast-hit[aria-expanded=true] { background: transparent; }
.hbc-ast-hit:hover .hbc-ast-dot, .hbc-ast-hit[aria-expanded=true] .hbc-ast-dot { background: var(--teal-dark); color: var(--white); }
.hbc-ast.hbc-ast-hit { margin: -8px -10px -8px -4px; }
@media (min-width: 601px) { .hbmp-table tr[data-row="labs"] th { white-space: nowrap; } }

/* Dario, Oct 9 9:57 AM: White Coat bottom cell = small print + button only (no green card); equal plan columns again */
.hbmp-table thead th[data-plan="white_coat"] { width: auto; }
.hbmp-table .hbmp-act-wc { text-align: center; }
.hbmp-wl-cell .hb-wl-promise { margin: 0 0 0.4rem; font-size: 0.9rem; }
/* Dario, Oct 9 9:59 AM: "Join the waiting list" in the plan table = the same filled teal button as "Choose Fast Access" / "Choose VIP Plan" */
.hbmp-table .hbmp-act-wc .hb-wl-join { display: inline-flex; align-items: center; justify-content: center; margin-top: 0; width: auto; }
/* waiting-list page: not-a-membership paragraph before the form (Legal, Oct 9) */
.hb-wl-intro-nm { background: #F4FAF8; border: 1px solid #CFE6E0; border-radius: 10px; padding: 0.55rem 0.75rem; margin: 0.6rem 0; }

/* ---------- Oct 14: inactivity sign-out warning + clinician account pages ---------- */
.hb-idle-warn{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;max-width:560px;width:calc(100% - 32px);background:#fff;border:2px solid var(--navy,#1f3a5f);border-radius:12px;padding:16px 18px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.hb-idle-warn p{margin:0 0 10px}
.hb-test-only{background:#fff4d6;border:2px solid #c98a00;border-radius:10px;padding:12px 14px;margin:12px 0;font-weight:600}
.hbx-table{width:100%;border-collapse:collapse;font-size:.95rem}
.hbx-table th,.hbx-table td{border-bottom:1px solid #e3e3e3;padding:8px 6px;text-align:left;vertical-align:top}
.hbx-pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:600;background:#eef2f7}
.hbx-pill.is-active{background:#e1f3e6;color:#1d6b35}.hbx-pill.is-locked{background:#fde2e1;color:#9b1c1c}.hbx-pill.is-disabled{background:#eee;color:#555}.hbx-pill.is-invited{background:#fff1cc;color:#7a5600}
.hbx-pill.is-sensitive{background:#fde2e1;color:#9b1c1c}
.hbx-actions{display:flex;flex-wrap:wrap;gap:6px}
.hbx-msg{min-height:1.4em}.hbx-msg.is-err{color:#9b1c1c}.hbx-msg.is-ok{color:#1d6b35}
.hbx-alert{border-left:4px solid #9b1c1c;background:#fff6f5;padding:8px 12px;margin:6px 0}
.hbx-doc{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:1px solid #e3e3e3;border-radius:10px;padding:12px;margin:8px 0}
/* Oct 14: oxygen + pulse readings chart */
.hbj-line.hbj-pulse { stroke: #b4572e; } .hbj-dot.hbj-pulse { stroke: #b4572e; } text.hbj-pulse { fill: #b4572e; } text.hbj-spo2 { fill: var(--teal-dark); }
.hbj-device-help { margin-top: 8px; }
