:root {
  color-scheme: light;
  --paper: #f4f7f4;
  --white: #fff;
  --ink: #15342d;
  --muted: #4f645e;
  --line: #dce6df;
  --green: #215747;
  --mint: #e1f2e9;
  --cream: #f6edde;
  --lilac: #eeebf7;
  --gutter: clamp(20px, 5vw, 64px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
button, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #427f65; outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.03; letter-spacing: -.058em; font-weight: 760; }
h2 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.18; letter-spacing: -.032em; font-weight: 730; }
h2 + p { margin-top: 8px; color: var(--muted); }
small { color: var(--muted); font-size: 14px; }
.wrap { width: min(100%, 1280px); padding-inline: var(--gutter); margin-inline: auto; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 32px; line-height: 1; letter-spacing: -.08em; font-weight: 750; }
.logo span { margin-top: 9px; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.quiet-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; text-decoration: underline; text-underline-offset: .22em; color: var(--green); font-size: 15px; font-weight: 720; }
.quiet-link:hover { text-decoration-thickness: 2px; }
.eyebrow, .section-label { font-size: 13px; font-weight: 760; letter-spacing: .11em; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #49896c; margin-right: 5px; }
.chooser { flex: 1; }
.chooser-heading { padding-block: clamp(52px, 8vw, 94px) clamp(35px, 5vw, 56px); max-width: 800px; }
.chooser-heading h1, .page-title h1 { margin-block: 9px 14px; }
.chooser-heading > p:last-child { font-size: clamp(18px, 2.3vw, 22px); color: var(--muted); max-width: 620px; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 19px; padding: clamp(20px, 3vw, 32px); }
.role-card { display: flex; flex-direction: column; align-items: start; }
.role-icon { display: grid; flex: none; place-items: center; width: 51px; height: 51px; border-radius: 14px; color: var(--green); }
.role-icon svg, .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.mint { background: var(--mint); }
.cream { background: var(--cream); }
.lilac { background: var(--lilac); }
.role-card .role-icon { margin-bottom: 26px; }
.role-card h2 { margin-top: 6px; font-size: 32px; }
.role-card > p:not(.eyebrow) { margin-bottom: 26px; }
.role-card .btn { margin-top: auto; width: 100%; justify-content: space-between; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 11px 17px; border: 1px solid transparent; border-radius: 11px; background: var(--green); color: var(--white); font-size: 15px; font-weight: 740; line-height: 1.3; text-align: center; text-decoration: none; }
.btn:hover { background: #153f34; }
.btn.secondary, .btn.btn-secondary { background: var(--white); color: var(--green); border-color: #b9cfc3; }
.btn.secondary:hover, .btn.btn-secondary:hover { background: #eaf5ee; }
.btn.text-button { background: transparent; color: var(--green); padding-inline: 10px; }
.btn.text-button:hover { background: var(--mint); }
.btn.danger { background: #924134; }
.btn.danger:hover { background: #6f3026; }
.demo-note { margin-block: 26px 40px; max-width: 850px; color: var(--muted); }
.demo-note strong { color: var(--ink); }
.footer { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 25px; font-size: 14px; color: var(--muted); }
.workspace { flex: 1; padding-bottom: 44px; }
.workspace-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-block: 28px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.role-identity, .conversation-head { display: flex; align-items: center; gap: 12px; }
.role-identity strong, .role-identity small { display: block; }
.avatar { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 15px; font-weight: 760; }
.workspace-nav nav { display: flex; flex-wrap: wrap; gap: 4px; }
.workspace-nav nav a { padding: 10px 13px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 16px; text-decoration: none; }
.workspace-nav nav a:hover, .workspace-nav nav a[aria-current] { color: var(--green); background: var(--mint); }
.page-title { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-block: clamp(32px, 5vw, 56px) 34px; }
.page-title h1 { font-size: clamp(40px, 5.5vw, 62px); }
.lede { color: var(--muted); font-size: 18px; max-width: 650px; }
.section-label { margin-bottom: 12px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; gap: 24px; }
.stack { display: grid; gap: 15px; }
.visit-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.visit-heading h2 { margin-top: 4px; }
.visit-date { width: 62px; min-height: 84px; display: grid; align-content: center; justify-items: center; border-radius: 13px; background: var(--mint); color: var(--green); line-height: 1; }
.visit-date strong { font-size: 28px; letter-spacing: -.055em; margin-block: 4px; }
.visit-date span { font-size: 10px; letter-spacing: .09em; font-weight: 760; }
.badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; border-radius: 999px; padding: 5px 11px; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 760; line-height: 1.25; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.visit-card .actions-row:empty { display: none; }
.visit-reminder { margin-top: 14px; color: var(--muted); }
.shortcut { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; }
.shortcut:hover { border-color: #a8c8b7; background: #fbfefa; }
.shortcut h2 { font-size: 20px; }
.shortcut p { font-size: 15px; margin-top: 4px; }
.shortcut-arrow { margin-left: auto; color: var(--green); }
.help-card .role-icon { margin-bottom: 14px; }
.help-card a, .appointment-detail a { margin-top: 18px; }
.notice { padding: 12px 17px; margin-top: 24px; border-radius: 11px; background: var(--mint); color: var(--green); font-weight: 690; }
.edit-card form { margin-top: 24px; }
.field { display: grid; gap: 6px; color: var(--ink); font-size: 16px; font-weight: 700; }
.field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9cfc3; border-radius: 9px; background: var(--white); font-weight: 500; }
.field textarea { resize: vertical; }
.date-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.date-strip button { display: grid; justify-items: start; min-width: 77px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 15px; }
.date-strip button[aria-pressed="true"] { border-color: #8bb39e; background: var(--mint); }
.date-strip span { font-size: 13px; color: var(--muted); }
.list-card { padding: 0; overflow: hidden; }
.list-head, .list-empty { padding: 22px 24px; }
.list-head p { color: var(--muted); margin-top: 5px; }
.schedule-row { display: grid; width: 100%; grid-template-columns: minmax(67px, .42fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 23px; border: 0; border-top: 1px solid var(--line); border-left: 4px solid transparent; text-align: left; background: var(--white); }
.schedule-row[aria-pressed="true"], .schedule-row:hover { background: #edf7f0; }
.schedule-row[aria-pressed="true"] { border-left-color: #428569; }
.schedule-row:focus-visible { outline-offset: -4px; }
.schedule-row small { display: block; }
.schedule-row time { color: var(--green); font-size: 15px; font-weight: 720; }
.detail-list { display: grid; gap: 11px; margin-block: 22px; }
.detail-list div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 14px; }
.detail-list dd { margin: 0; font-size: 16px; font-weight: 650; }
.roster-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; padding: 19px 24px; }
.roster-row + .roster-row { border-top: 1px solid var(--line); }
.roster-row h2 { font-size: 21px; }
.roster-row p { margin-top: 4px; font-size: 15px; }
.roster-row > div { flex: 1 1 155px; }
.conversation { max-width: 820px; }
.conversation-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.conversation-head h2 { font-size: 22px; }
.conversation-head p { margin-top: 3px; }
.thread { display: grid; gap: 14px; margin-block: 22px; padding: 0; list-style: none; }
.thread li { justify-self: start; max-width: 84%; min-width: 120px; padding: 12px 16px; border-radius: 14px; background: #edf1ef; overflow-wrap: anywhere; }
.thread li.own { justify-self: end; background: var(--mint); }
.thread strong { display: block; font-size: 13px; color: var(--green); margin-bottom: 4px; }
.thread p { white-space: pre-wrap; }
.video-preview { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 235px; background: #17382f; color: #dcefe5; border-radius: 13px; margin-bottom: 24px; }
.video-avatar { display: grid; place-items: center; width: 72px; height: 72px; background: #2b5b4d; color: #f4fff8; border-radius: 50%; font-size: 25px; font-weight: 740; }
.intake-layout { display: grid; grid-template-columns: minmax(215px, .65fr) minmax(0, 1.65fr); gap: 24px; align-items: start; }
.intake-rail, .intake-wizard { border: 1px solid var(--line); border-radius: 19px; padding: clamp(20px, 3vw, 34px); background: var(--white); }
.intake-rail { background: #e9f4ed; }
.intake-rail h2, .intake-wizard h2 { margin-top: 5px; }
.intake-rail ol { display: grid; gap: 12px; list-style: none; padding: 0; margin-block: 21px; }
.intake-rail li { display: flex; gap: 10px; align-items: center; }
.intake-rail li span, .intake-complete { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #dceae1; font-size: 14px; font-weight: 760; }
.intake-rail li[aria-current] { font-weight: 740; }
.intake-rail li[aria-current] span { background: var(--green); color: var(--white); }
.intake-helper { color: var(--muted); font-size: 15px; }
.intake-question { padding: 0; border: 0; margin: 22px 0 0; min-width: 0; }
.intake-question legend { font-weight: 720; margin-bottom: 8px; }
.intake-options, .intake-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.intake-options label, .intake-confirm { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer; }
.intake-options label:has(input:checked) { background: var(--mint); border-color: #8bb39e; }
.intake-options input, .intake-confirm input { flex: none; width: 17px; height: 17px; accent-color: var(--green); }
.intake-confirm { margin-top: 18px; }
.intake-answers > div { border-bottom: 1px solid var(--line); padding: 7px 0; }
.intake-answers dt { font-weight: 730; }
.intake-answers dd { margin: 0; color: var(--muted); }
.intake-success { max-width: 680px; }
.intake-complete { width: 48px; height: 48px; font-size: 21px; margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 3; background: var(--ink); color: white; padding: 10px 14px; transform: translateY(-150%); }
.skip:focus { transform: none; }
@media (max-width: 840px) {
  .role-grid { grid-template-columns: 1fr; }
  .role-card .btn { width: auto; }
  .layout-grid, .intake-layout { grid-template-columns: 1fr; }
}
@media (max-width: 530px) {
  .topbar-inner { min-height: 66px; }
  .logo span { display: none; }
  .workspace-nav nav { gap: 2px; }
  .workspace-nav nav a { padding-inline: 8px; font-size: 15px; }
  .visit-heading, .schedule-row { grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; }
  .visit-heading .badge, .schedule-row .badge { grid-column: 2; }
  .intake-options, .intake-answers { grid-template-columns: 1fr; }
  .intake-rail ol { display: flex; flex-wrap: wrap; font-size: 14px; }
  .thread li { max-width: 96%; }
}
