/* Vocia — an editorial, calm workspace with precise clinical information hierarchy.
   Inter 4.1 is served locally; see fonts/Inter-LICENSE.txt and fonts/SOURCE.txt. */
@font-face {
  font-family: 'Inter Variable';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #1b2c2b;
  --muted: #5c6c6a;
  --subtle: #687875;
  --green: #087f63;
  --green-dark: #066a53;
  --green-light: #e9f7f0;
  --mint: #66dfbb;
  --paper: #f5f4f0;
  --white: #fff;
  --line: #dce4df;
  --line-strong: #83968e;
  --nav: #112623;
  --nav-text: #bed0ca;
  --amber: #8a5107;
  --amber-bg: #fff4dd;
  --purple: #6545a4;
  --purple-bg: #f2edff;
  --danger: #a33e38;
  --radius: 16px;
  --shadow: 0 4px 18px rgb(24 48 39 / 4%), 0 1px 3px rgb(24 48 39 / 3%);
  --sidebar: 256px;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 450 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; font-feature-settings: 'calt' 1, 'liga' 1; }
button, input, select, textarea { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); }
h1 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.18; font-weight: 650; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: 26px; line-height: 1.3; font-weight: 650; letter-spacing: -.035em; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 650; letter-spacing: -.025em; }
svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: #c4f2df; color: #123d2f; }
.hidden, [hidden] { display: none !important; }

/* Shell and navigation */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: 0 0 var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 30px 20px 0; background: var(--nav); color: #f1f8f4; overflow: hidden; }
.sidebar > .brand, .clinic-switch, .sidebar > .nav-label, .sidebar-bottom { flex-shrink: 0; }
.sidebar :focus-visible { outline-color: #83e7c6; }
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; padding: 0 12px; font-size: 36px; line-height: 1.3; font-weight: 740; letter-spacing: -1.9px; color: #f6fbf8; }
.brand-dot { color: var(--mint); margin-left: -11px; }
.brand-symbol { display: flex; align-items: center; gap: 3px; height: 30px; width: 28px; }
.brand-symbol i { display: block; width: 4px; height: 13px; background: var(--mint); border-radius: 4px; transform: rotate(15deg); }
.brand-symbol i:nth-child(2) { height: 27px; }
.brand-symbol i:nth-child(3) { height: 22px; }
.brand-symbol i:nth-child(4) { height: 10px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.clinic-switch { display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 28px; padding: 12px; background: #1c3530; border: 1px solid #365047; border-radius: 12px; color: #eff8f3; text-align: left; }
.clinic-switch:hover { background: #234238; border-color: #597769; }
.clinic-monogram { display: grid; place-items: center; width: 38px; height: 40px; flex-shrink: 0; border: 1px solid #466b5a; border-radius: 9px; background: #294e3d; color: #ceefd6; font-size: 19px; font-weight: 650; }
.clinic-switch strong { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; }
.clinic-switch small { display: block; margin-top: 3px; font-size: 12px; color: #b4c9c0; }
.switch-chevrons { margin-left: auto; color: #b4c9c0; font-size: 15px; line-height: 9px; }
.nav-label, .nav-section-label { padding: 26px 12px 10px; color: #a2bdb0; font-size: 12px; font-weight: 650; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
.nav-section-label { margin-top: 8px; padding-top: 17px; border-top: 1px solid #29443a; }
.nav-links { display: grid; align-content: start; flex: 1; min-height: 0; gap: 4px; padding-right: 3px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #60806c transparent; }
.daily-nav, .settings-links { display: grid; gap: 4px; }
.settings-nav { min-width: 0; margin-top: 19px; padding-top: 13px; border-top: 1px solid #365047; }
.settings-nav > summary { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; color: #bed0ca; font-size: 13px; font-weight: 550; cursor: pointer; list-style: none; }
.settings-nav > summary::-webkit-details-marker { display: none; }
.settings-nav > summary:hover { color: #fff; background: #203c32; }
.settings-nav > summary [data-icon] { display: flex; }
.settings-nav > summary svg { width: 18px; height: 18px; }
.settings-chevron { width: 7px; height: 7px; margin: 0 2px 3px auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .16s; }
.settings-nav[open] > summary { color: #eff8f3; }
.settings-nav[open] .settings-chevron { margin-top: 5px; transform: rotate(225deg); }
.settings-links { margin-top: 8px; }
.settings-links .nav-item { padding-left: 14px; font-size: 12px; }
.settings-links .nav-section-label { margin-top: 10px; padding-top: 15px; font-size: 12px; letter-spacing: .11em; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 10px 12px; background: transparent; border: 1px solid transparent; border-radius: 9px; color: var(--nav-text); font-size: 13px; line-height: 1.45; font-weight: 500; text-align: left; transition: background .16s, color .16s, border-color .16s; }
.nav-item > [data-icon] { display: flex; align-items: center; }
.nav-item svg { width: 18px; height: 18px; color: #a7c2b5; }
.nav-item:hover { background: #203c32; color: #fff; }
.nav-item.active, .nav-item[aria-current=page] { background: #234b3c; border-color: #3c6b55; color: #f1fff7; font-weight: 600; box-shadow: inset 3px 0 0 var(--mint); }
.nav-item.active svg, .nav-item[aria-current=page] svg { color: #8ee4bf; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 6px; background: #c8ecd7; color: #164d35; font-size: 12px; font-weight: 650; text-align: center; }
.nav-count.muted { background: #2f4b3f; color: #d0dfd6; }
.sidebar-bottom { margin-top: auto; padding-top: 26px; }
.prototype-note { margin-bottom: 19px; padding: 14px; border: 1px solid #365347; border-radius: 12px; background: #1b352c; color: #dfede5; font-size: 12px; line-height: 1.6; }
.tiny-status { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.prototype-note .tiny-status { background: #82dfad; }
.prototype-note p { margin-top: 7px; font-size: 12px; line-height: 1.65; color: #b7cec0; }
.prototype-note button { display: flex; justify-content: space-between; width: 100%; padding: 12px 0 0; background: none; font-size: 12px; color: #97e6bb; font-weight: 600; }
.user-profile { width: 100%; background: none; color: inherit; text-align: left; display: flex; align-items: center; gap: 10px; padding: 19px 3px; border-top: 1px solid #314a3e; }
.avatar { display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; font-size: 13px; font-weight: 600; }
.user-avatar { width: 36px; height: 36px; background: #d3e2d8; color: #294b37; border: 1px solid #9fbdab; }
.user-profile strong { display: block; max-width: 145px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.user-profile small { display: block; margin-top: 3px; font-size: 12px; color: #b2c9ba; }
.user-profile > span:last-child { margin-left: auto; color: #b0c6b8; }
.user-profile svg { width: 18px; }
.sidebar .user-profile:hover { background: #1c382d; }
.main-wrap { width: calc(100% - var(--sidebar)); min-width: 0; margin-left: var(--sidebar); background: radial-gradient(ellipse at 94% 0, #eaf1eb 0, transparent 45%), var(--paper); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; padding: 0 40px; border-bottom: 1px solid var(--line); background: #fcfcf9; }
.breadcrumb { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { font-weight: 600; color: #304840; }
.breadcrumb-divider { color: #71837a; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.topbar .topbar-signout { min-height: 44px; margin: 0; padding: 8px 0 8px 4px; color: var(--muted); font-size: 13px; text-decoration: none; }
.topbar .topbar-signout:hover { color: var(--green-dark); text-decoration: underline; }
.environment-pill, .workspace-badge { display: inline-flex; align-items: center; gap: 7px; color: #36664e; font-size: 12px; font-weight: 550; }
.environment-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.workspace-badge { padding: 6px 10px; border: 1px solid #cce0d2; border-radius: 7px; background: #eff7f0; }
.topbar-rule { width: 1px; height: 23px; background: var(--line); }
.small-avatar { width: 34px; height: 34px; background: #e1eade; color: #365640; font-size: 12px; border: 1px solid #c9d8c8; }
main { max-width: 1600px; margin: auto; padding: 28px 40px 0; }
.demo-banner { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border: 1px solid #d0e4d7; border-radius: 10px; background: #eef6f0; color: #496653; }
.demo-banner svg { width: 18px; height: 18px; }
.demo-banner p { flex: 1; font-size: 12px; line-height: 1.7; }
.demo-banner strong { color: #2b5b40; font-weight: 650; }
.demo-tag { padding: 4px 7px; border: 1px solid #bdd6c6; border-radius: 5px; font-size: 12px; font-weight: 650; letter-spacing: .08em; color: #3f6750; white-space: nowrap; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 37px 0 30px; }
.eyebrow, .workspace-kicker { margin-bottom: 12px; font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .13em; color: #426e55; text-transform: uppercase; }
.eyebrow::before { display: inline-block; content: ''; width: 22px; height: 2px; margin: 0 9px 3px 0; background: var(--green); }
.page-heading p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.today-display { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #d2ded5; border-radius: 9px; background: #fff; color: #4b6856; font-size: 12px; white-space: nowrap; }
.today-display svg { width: 17px; height: 17px; }

/* Summary and intake */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { position: relative; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #526a5b; font-size: 13px; line-height: 1.5; }
.stat-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: #f0f4ef; color: #55765d; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-value { margin-top: 9px; color: #294438; font-size: 38px; font-weight: 650; letter-spacing: -.055em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-caption { display: flex; align-items: flex-start; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.stat-caption .status-dot { margin-top: 7px; }
.stat-card.ready .stat-value { color: #086149; }
.stat-card.ready .stat-icon { background: var(--green-light); color: #086149; }
.stat-card.documents .stat-value { color: var(--amber); }
.stat-card.documents .stat-icon { background: var(--amber-bg); color: var(--amber); }
.stat-card.review .stat-value { color: var(--purple); }
.stat-card.review .stat-icon { background: var(--purple-bg); color: var(--purple); }
.workspace-heading, .activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.workspace-heading h2, .activity-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.section-count { padding: 3px 7px; border-radius: 6px; background: #e4eee4; color: #44664c; font-size: 12px; font-weight: 600; }
.workspace-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.workflow-label { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #526e58; }
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); align-items: start; gap: 22px; }
.request-panel, .detail-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.list-toolbar { padding: 19px 18px 17px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.filter-tab { min-height: 36px; padding: 8px 10px; border-radius: 7px; background: transparent; color: #596e5e; font-size: 12px; font-weight: 550; white-space: nowrap; }
.filter-tab[aria-selected=true] { background: #e9f6ed; color: #126745; box-shadow: inset 0 0 0 1px #cce6d4; }
.filter-tab:hover { background: #f0f5ef; }
.tab-count { margin-left: 4px; color: inherit; font-size: 12px; }
.search-box { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fcfdfb; color: #5b7563; }
.search-box svg { width: 18px; height: 18px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: #294d38; font-size: 13px; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box:focus-within { outline: 3px solid var(--green); outline-offset: 2px; border-color: transparent; }
.search-key { padding: 0 4px; border: 1px solid #c5d3c7; border-radius: 4px; color: #536f5a; font-size: 13px; }
.list-column-labels { display: flex; align-items: center; justify-content: space-between; padding: 12px 21px; border-block: 1px solid #e4ebe5; background: #f8faf6; color: #5f7264; font-size: 12px; font-weight: 600; letter-spacing: .11em; }
.request-list { min-height: 340px; }
.request-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 20px 19px; border-bottom: 1px solid #e7ede6; background: #fff; text-align: left; transition: background .16s; }
.request-item:hover { background: #f7faf6; }
.request-item.selected { background: #edf7f0; }
.request-item.selected::before { position: absolute; content: ''; left: 0; top: 17px; bottom: 17px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.patient-avatar { width: 39px; height: 39px; border: 1px solid #d7e4d5; background: #eaf2e5; color: #527149; font-size: 12px; }
.patient-avatar.tone-1 { border-color: #e9d8bf; background: #f7eee0; color: #815d2d; }
.patient-avatar.tone-2 { border-color: #e0d4ee; background: #f0e9fa; color: #795597; }
.patient-avatar.tone-3 { border-color: #cfe4de; background: #e8f4ef; color: #397462; }
.request-copy { flex: 1; min-width: 0; }
.patient-name { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.patient-reason { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.request-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.request-state { flex-shrink: 0; align-self: center; text-align: right; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge.ready { background: var(--green-light); color: #086149; }
.badge.documents { background: var(--amber-bg); color: var(--amber); }
.badge.review { background: var(--purple-bg); color: var(--purple); }
.badge.booked { background: #e7f5f8; color: #086272; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.request-time { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.request-chevron { margin-left: 1px; color: #6a8470; font-size: 19px; }
.list-footer { display: flex; align-items: center; gap: 8px; padding: 15px 18px; background: #fafbf8; color: #60755e; font-size: 12px; line-height: 1.65; }
.list-footer svg { width: 15px; height: 15px; }
.detail-header { padding: 24px 24px 21px; border-bottom: 1px solid var(--line); }
.detail-eyebrow { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; color: #627a65; font-size: 12px; font-weight: 550; letter-spacing: .11em; }
.detail-identification { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-identification .avatar { width: 48px; height: 48px; font-size: 14px; }
.detail-identification h3 { font-size: 23px; font-weight: 650; letter-spacing: -.04em; }
.detail-patient-meta { margin-top: 5px; color: #5d745f; font-size: 12px; }
.detail-identification .badge { margin-left: auto; }
.request-summary { display: flex; align-items: flex-start; gap: 9px; margin-top: 21px; padding: 13px 14px; border: 1px solid #d9e9dc; border-radius: 9px; background: #f1f8f0; color: #4c6b4c; font-size: 13px; line-height: 1.7; }
.request-summary svg { width: 17px; height: 17px; margin-top: 2px; }
.request-summary strong { color: #365b37; font-weight: 600; }
.detail-body { padding: 23px 24px 25px; }
.detail-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.detail-section-header h3 { color: #3a5c3e; font-size: 15px; font-weight: 650; }
.micro-label { color: #5e775f; font-size: 12px; }
.checklist { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.check-item { display: flex; align-items: flex-start; gap: 10px; }
.check-symbol { display: grid; place-items: center; width: 21px; height: 21px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; background: #e7f3e7; color: #41773b; }
.check-symbol svg { width: 13px; height: 13px; stroke-width: 2; }
.check-symbol.missing { background: var(--amber-bg); color: var(--amber); }
.check-symbol.review { background: var(--purple-bg); color: var(--purple); }
.check-label { display: block; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.5; }
.check-description { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.section-divider { height: 1px; margin: 24px 0 22px; background: var(--line); }
.document-list { display: grid; gap: 9px; }
.document-item { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid #dce7d8; border-radius: 9px; background: #fbfcf8; }
.document-icon { display: grid; place-items: center; width: 30px; height: 34px; flex-shrink: 0; border-radius: 6px; background: #edf4e8; color: #607e4e; }
.document-icon svg { width: 17px; height: 17px; }
.document-copy { flex: 1; min-width: 0; }
.document-name { color: var(--ink); font-size: 12px; line-height: 1.5; font-weight: 550; }
.document-detail { margin-top: 4px; color: #657b5d; font-size: 12px; line-height: 1.6; }
.document-status { padding: 3px 6px; border-radius: 5px; background: #e9f4e4; color: #49713b; font-size: 12px; line-height: 1.5; }
.document-status.missing { background: var(--amber-bg); color: var(--amber); }
.slots { display: flex; flex-wrap: wrap; gap: 9px; }
.slot-button { flex: 1; min-width: 135px; padding: 12px; border: 1px solid #a0b59a; border-radius: 9px; background: #fbfdf9; color: #395e2d; font-size: 13px; line-height: 1.6; text-align: left; }
.slot-button span { display: block; margin-bottom: 5px; color: #5c7751; font-size: 12px; }
.slot-button.selected { border-color: #39863b; background: #edf7e8; box-shadow: 0 0 0 1px #39863b; color: #2a612c; }
.slot-button:hover { border-color: #3d7c3e; background: #f3f9ee; }
.booking-rule-note, .detail-action-hint { margin-top: 12px; color: #5f7855; font-size: 12px; line-height: 1.75; }
.detail-action-hint { text-align: center; }
.detail-actions { display: grid; gap: 10px; margin-top: 22px; }
.rule-alert { padding: 14px; border: 1px solid #ead5ae; border-radius: 9px; background: var(--amber-bg); color: #795317; font-size: 13px; line-height: 1.75; }
.rule-alert.review { border-color: #ded0f0; background: var(--purple-bg); color: var(--purple); }
.empty-state { padding: 46px 28px; color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; }
.empty-state svg { display: block; width: 31px; height: 31px; margin: 0 auto 15px; color: #5c8066; }
.empty-state strong { display: block; margin-bottom: 8px; color: #3f6145; font-size: 16px; font-weight: 600; }

/* Shared actions, forms and dialog surfaces */
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; line-height: 1.5; font-weight: 600; text-align: center; transition: background .16s, border-color .16s, box-shadow .16s; }
.primary-button { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 2px 5px rgb(8 127 99 / 13%); }
.primary-button:hover:not(:disabled) { border-color: var(--green-dark); background: var(--green-dark); box-shadow: 0 3px 8px rgb(8 127 99 / 18%); }
.secondary-button { border-color: #9daf9f; background: #fff; color: #365d3c; }
.secondary-button:hover:not(:disabled) { border-color: #527d54; background: #f3f8ef; }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.danger-button { color: var(--danger); border-color: #c99f98; background: #fffafa; }
.danger-button:hover:not(:disabled) { border-color: var(--danger); background: #fff0ee; }
.text-button { display: block; margin: 7px auto 0; padding: 13px 0; background: none; color: #366c4b; font-size: 13px; font-weight: 550; text-decoration: underline; text-underline-offset: 4px; }
.auth-form, .staff-form, .security-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; color: #3b5a40; font-size: 13px; font-weight: 600; line-height: 1.6; }
.field input, .field select, .field textarea, .conversation-compose input, .conversation-compose textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; outline-offset: 3px; background: #fff; color: #24482f; font-size: 14px; font-weight: 450; line-height: 1.65; transition: border-color .16s, box-shadow .16s; }
.field input::placeholder, .field textarea::placeholder, .conversation-compose textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover:not(:disabled), .field select:hover:not(:disabled), .field textarea:hover:not(:disabled) { border-color: #517b58; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .conversation-compose input:focus-visible, .conversation-compose textarea:focus-visible { border-color: var(--green); box-shadow: 0 0 0 4px #087f6310; }
.field select { appearance: auto; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:disabled, .field select:disabled { opacity: .65; cursor: not-allowed; background: #f4f6f1; }
.form-message { color: #954a25; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.form-message:empty { display: none; }
.form-help, .section-note, .muted-note, .speech-note { color: #60765f; font-size: 12px; font-weight: 450; line-height: 1.8; }
.section-note { margin: 14px 0; }
.speech-note { margin: 10px 0 17px; }
.form-help { display: block; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; color: #4c684d; font-size: 13px; line-height: 1.75; font-weight: 450; cursor: pointer; }
.checkbox-field input, .checkbox-field input[type=checkbox] { width: 19px; height: 19px; min-width: 19px; margin: 3px 0 0; accent-color: var(--green); flex-shrink: 0; }
.file-input { width: 100%; padding: 12px 0; color: #476b45; font-size: 13px; }
.file-input::file-selector-button { margin-right: 12px; padding: 10px 13px; border: 1px solid #9caf98; border-radius: 8px; background: #f3f8ed; color: #365d2d; font: inherit; cursor: pointer; }
.synthetic-intake { margin-top: 17px; }
.booking-management { grid-template-columns: 1fr 1fr; }
.toast { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 14px 17px; border: 1px solid #b5d8be; border-radius: 10px; background: #edf9ed; color: #366639; font-size: 14px; line-height: 1.65; }
.toast.error { border-color: #e6bba9; background: #fff1e9; color: #914628; }
.toast button { margin-left: auto; padding: 0 4px; background: none; color: inherit; font-size: 19px; }
.action-dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 30px; border: 1px solid #cfddce; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 100px #0a281e40; overflow: auto; }
.action-dialog::backdrop { background: rgb(9 32 24 / 48%); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 15px; top: 10px; width: 36px; height: 36px; padding: 0; border-radius: 8px; background: #f3f7f0; color: #4e704b; font-size: 25px; line-height: 1; }
.dialog-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 19px; border-radius: 12px; background: #e7f4e5; color: #3c7e39; }
.action-dialog h2 { margin-bottom: 13px; padding-right: 20px; font-size: 25px; font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.action-dialog p { color: #567052; font-size: 14px; line-height: 1.8; }
.dialog-facts { margin: 21px 0; padding: 16px 18px; border: 1px solid #e0e9da; border-radius: 10px; background: #f6f9f2; color: #4f6e44; font-size: 14px; line-height: 1.9; }
.dialog-facts strong { color: #365d2c; font-weight: 600; }
.dialog-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dialog-fine-print { margin-top: 15px; color: #61795b; font-size: 12px !important; line-height: 1.8 !important; }

/* Authentication */
.auth-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(40px, 7vw, 110px); width: min(1120px, 100%); }
.auth-story { max-width: 570px; color: #f3faf4; }
.auth-story .auth-brand { margin-bottom: 38px; color: #f3faf4; }
.auth-story .auth-kicker { margin-bottom: 18px; color: #a8e4bb; }
.auth-story-title { margin-bottom: 21px; color: #f3faf4; font-size: clamp(39px, 4.5vw, 58px); line-height: 1.09; font-weight: 570; letter-spacing: -.055em; white-space: pre-line; }
.auth-story-note { max-width: 475px; color: #c2d9c9; font-size: 15px; line-height: 1.9; }
.auth-orbit { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 200px; height: 200px; margin: 45px 0 14px 25px; border: 1px solid #81b49266; border-radius: 50%; box-shadow: 0 0 0 19px #81b4920c, 0 0 0 20px #81b49233; }
.auth-orbit::before { position: absolute; content: ''; inset: 24px; border: 1px solid #81b49250; border-radius: 50%; }
.auth-orbit i { display: block; width: 7px; height: 42px; border-radius: 8px; background: #91e6b0; transform: rotate(10deg); }
.auth-orbit i:nth-child(2) { height: 79px; }
.auth-orbit i:nth-child(3) { height: 63px; }
.auth-orbit i:nth-child(4) { height: 30px; }
.auth-shell .auth-card { width: 100%; justify-self: end; }
.auth-screen { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; isolation: isolate; padding: 56px 24px; overflow: hidden; background: radial-gradient(ellipse at 13% 9%, #234b3a 0, transparent 53%), radial-gradient(ellipse at 89% 87%, #1e4436 0, transparent 45%), #10251e; }
.auth-screen::before { position: absolute; z-index: -1; content: ''; width: 760px; height: 760px; left: -375px; top: 25%; border: 1px solid #52756166; border-radius: 50%; box-shadow: 0 0 0 75px #5275610a, 0 0 0 76px #52756133, 0 0 0 158px #52756108, 0 0 0 159px #52756122; }
.auth-screen::after { position: absolute; z-index: -1; content: ''; width: 330px; height: 330px; right: -130px; top: -170px; border: 1px solid #88ba962b; border-radius: 50%; box-shadow: 0 0 0 42px #88ba9612; }
.auth-card { width: min(100%, 490px); padding: 40px; border: 1px solid #d7e5d5; border-radius: 22px; background: #fff; box-shadow: 0 28px 90px #001b1245; }
.auth-brand { margin-bottom: 29px; color: #154d33; font-size: 44px; line-height: 1.1; letter-spacing: -2.7px; font-weight: 750; }
.auth-kicker { margin-bottom: 13px; color: #3e754c; font-size: 12px; line-height: 1.7; font-weight: 650; letter-spacing: .11em; }
.auth-card h1 { margin-bottom: 14px; font-size: 30px; line-height: 1.25; letter-spacing: -.04em; }
.auth-description, .auth-card > p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.auth-notice { margin: 22px 0; padding: 13px 15px; border: 1px solid #dddfc8; border-radius: 9px; background: #f8f8ef; color: #686a3f; font-size: 12px; line-height: 1.8; }
.auth-form > .primary-button { width: 100%; min-height: 47px; margin-top: 3px; font-size: 14px; }
.auth-form .field input { min-height: 48px; font-size: 15px; }

/* Receptionist and conversation */
.secondary-view { margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.secondary-view > h2 { padding: 27px 28px 10px; font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: -.04em; }
.secondary-intro { max-width: 1000px; padding: 0 28px 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.secondary-view > .secondary-button { margin: 0 28px 5px; }
.secondary-view > .conversation-privacy { margin: 0 28px 23px; }
.secondary-view > .connection-card { margin: 22px 28px; }
.secondary-view > .form-message { margin: 14px 28px; }
.secondary-view > h3 { margin: 28px 28px 6px; font-size: 20px; }

/* Today and guided setup keep daily work separate from configuration. */
.secondary-view:has(> .today-view) { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.today-view { display: grid; gap: 24px; }
.today-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 5px 0 2px; }
.today-heading h1, .today-heading h2 { padding: 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.045em; }
.today-heading p:not(.workspace-kicker) { max-width: 650px; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.today-heading .workspace-kicker { margin: 0 0 10px; }
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.today-grid.today-stats, .today-grid.today-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.today-heading .secondary-intro { padding: 0; }
.today-card.today-stat h2 { font-size: 15px; letter-spacing: -.01em; }
.today-card.today-stat { padding: 20px; }
.today-stat .text-button { margin: 12px 0 0; padding: 0; min-height: 36px; justify-content: flex-start; text-align: left; }
.today-channels { margin-top: 18px; }
.today-channels .today-card { box-shadow: none; padding: 18px; }
.setup-panel { display: grid; gap: 18px; padding: 28px; }
.setup-panel > h2 { font-size: 30px; }
.setup-panel > .secondary-intro { padding: 0; }
.setup-progress { margin-bottom: 0; }
.setup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.setup-callback { display: block; overflow-wrap: anywhere; word-break: break-word; margin: 12px 0; padding: 12px; border-radius: 8px; background: var(--paper); font-size: 13px; }
.today-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.today-card h3 { margin-bottom: 9px; font-size: 18px; }
.today-card > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.today-card .today-number { display: block; margin: 13px 0 5px; color: var(--ink); font-size: 36px; font-weight: 650; line-height: 1.2; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.today-card > .primary-button, .today-card > .secondary-button { margin-top: 18px; }
.today-card .section-note { margin-bottom: 0; }
.today-card.full-width { grid-column: 1 / -1; }
.channel-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.channel-status:last-child { padding-bottom: 0; border-bottom: 0; }
.channel-status strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.channel-status p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.channel-status > p { grid-column: 1 / -1; }
.channel-status > .badge { align-self: start; }
.channel-status > button { grid-column: 1 / -1; justify-self: start; margin-top: 5px; }
.next-action-list { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.next-action-list > * { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.next-action-list > :last-child { padding-bottom: 0; border-bottom: 0; }
.next-action-list > * > div { flex: 1; min-width: 0; }
.next-action-list strong { display: block; font-size: 14px; font-weight: 600; }
.next-action-list p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.next-action-list .primary-button, .next-action-list .secondary-button { flex-shrink: 0; }
.setup-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 23px; padding: 0; list-style: none; }
.setup-progress > * { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8f4; color: var(--muted); font-size: 12px; font-weight: 550; }
.setup-progress .current, .setup-progress [aria-current=step] { border-color: #8fc7ad; background: var(--green-light); color: #075e49; font-weight: 650; }
.setup-progress [aria-current=step]:hover:not(:disabled) { border-color: #72ae93; background: #d9eee2; color: #075e49; box-shadow: none; }
.setup-progress .complete { border-color: #c9dfd0; background: #f0f8f2; color: #356b4d; }
.setup-step { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.setup-step h3 { margin-bottom: 10px; font-size: 20px; }
.setup-step > p { max-width: 750px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.setup-form { display: grid; gap: 20px; width: 100%; max-width: 700px; margin-top: 23px; }
.setup-form .field { font-size: 14px; }
.setup-form .field input, .setup-form .field select { min-height: 46px; }
.setup-form .security-actions, .setup-form .dialog-buttons { margin-top: 4px; }
.setup-form > .primary-button, .setup-form > .secondary-button { justify-self: start; }
.setup-readiness { margin: 9px 0 15px; font-size: 15px; font-weight: 650; line-height: 1.6; }
.setup-readiness.ready { color: #17674f; }
.setup-readiness.warning { color: #6c674b; }
.setup-connection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.setup-connection-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf8; }
.setup-connection-card h3 { font-size: 19px; }
.setup-connection-card .section-note { margin: 0 0 20px; line-height: 1.7; }
.setup-connection-card button { margin-top: auto; }
.administrator-setup > summary { font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.administrator-setup[open] > summary { margin-bottom: 22px; color: var(--ink); }
.administrator-setup > .setup-step { margin-top: 20px; background: #fafbf8; box-shadow: none; }
.onboarding-form { display: grid; gap: 24px; }
.onboarding-clinic-picker { max-width: 500px; margin-bottom: 22px; }
.onboarding-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.onboarding-contact-grid .field, .onboarding-form .field { min-width: 0; font-size: 14px; }
.onboarding-form input, .onboarding-form select { min-height: 46px; font-size: 16px; }
.onboarding-practitioner { min-width: 0; margin: 16px 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
.onboarding-provider-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.onboarding-provider-heading h4 { margin: 0; font-size: 18px; }
.onboarding-hours { display: grid; gap: 14px; margin: 20px 0; }
.onboarding-hour-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) minmax(100px, 1fr) minmax(100px, 1fr) auto; align-items: end; gap: 12px; }
.onboarding-hour-row button { min-height: 46px; }
.onboarding-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.onboarding-inline-actions input[type=file] { width: 100%; max-width: 420px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 14px; }
.onboarding-preview { padding: 14px 18px; border: 1px solid #c6ddce; border-radius: 10px; background: #f0f7f1; color: #345e46; line-height: 1.7; }
.onboarding-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.call-preferences-form { max-width: 850px; }
.call-staff-list { min-width: 0; }
.call-staff-card { margin: 0 0 16px; }
.call-staff-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.call-staff-fields > :last-child { grid-column: 1 / -1; }
.call-menu-preview h4 { margin: 0 0 12px; font-size: 16px; }
.call-menu-preview ul { margin: 0; padding-left: 22px; }
.clinic-policy-form { max-width: 850px; }
.clinic-policy-tasks { display: grid; gap: 12px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.clinic-policy-tasks legend { padding: 0 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .setup-connection-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .onboarding-contact-grid { grid-template-columns: 1fr; }
  .call-staff-fields { grid-template-columns: 1fr; }
  .onboarding-practitioner { padding: 17px; }
  .onboarding-hour-row { grid-template-columns: 1fr 1fr; }
  .onboarding-hour-row .field:first-child { grid-column: 1 / -1; }
  .onboarding-footer .primary-button { width: 100%; }
}
.setup-summary { display: grid; gap: 12px; margin: 20px 0; padding: 20px; border: 1px solid #d0e4d7; border-radius: 11px; background: #f3f9f4; color: #375f45; }
.setup-summary h3 { margin: 0; font-size: 17px; }
.setup-summary p, .setup-summary li { color: #496653; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.setup-summary ul { margin: 0; padding-left: 19px; }
.setup-summary dl { display: grid; grid-template-columns: minmax(110px, .6fr) minmax(0, 1fr); gap: 9px 18px; margin: 0; font-size: 13px; }
.setup-summary dt { color: var(--muted); }
.setup-summary dd { margin: 0; overflow-wrap: anywhere; }
.setup-secret-note { margin: 16px 0; padding: 13px 15px; border-left: 3px solid #8cae9a; border-radius: 0 8px 8px 0; background: #f3f7f2; color: #52694f; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.clinic-panel { display: grid; gap: 24px; padding: 28px; }
.clinic-panel > h2 { margin: 0; font-size: 30px; letter-spacing: -.9px; }
.clinic-panel > .workspace-kicker, .clinic-panel > .secondary-intro { margin: 0; padding: 0; }
.clinic-panel > .secondary-button { justify-self: start; }
.clinic-panel .today-card > h3 { margin: 0 0 12px; font-size: 21px; }
.clinic-connection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 18px; margin: 22px 0; }
.clinic-connection-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf9; }
.clinic-card-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.clinic-card-heading h4 { flex: 1; min-width: 140px; font-size: 17px; line-height: 1.5; }
.clinic-capabilities { padding-left: 20px; margin: 16px 0; color: #3f6652; font-size: 13px; line-height: 1.9; }
.clinic-panel .setup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.clinic-directory { display: grid; gap: 10px; margin-top: 21px; }
.clinic-directory-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 17px; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: #fff; }
.clinic-directory-row[aria-pressed=true] { border-color: #7fab96; background: #f1f8f2; }
.clinic-directory-row strong, .clinic-directory-row small { display: block; }
.clinic-directory-row small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.clinic-profile-editor { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.clinic-profile-editor > summary, .clinic-mappings > summary { cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.7; }
.clinic-profile-editor > .secondary-button { margin-top: 22px; }
.clinic-mappings { margin-top: 24px; }
.clinic-operation { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.clinic-operation:last-child { border-bottom: 0; }
.clinic-operation > div { flex: 1; min-width: min(100%, 200px); }
.clinic-operation strong { font-size: 14px; }
@media (max-width: 620px) { .clinic-panel { padding: 20px; gap: 20px; } .clinic-panel > h2 { font-size: 25px; } .clinic-connection-card { padding: 18px; } .clinic-operation > .secondary-button { width: 100%; } }
.staff-content, .receptionist-content, .controls-content { padding: 0 28px 30px; }
.receptionist-content { max-width: 1060px; margin: auto; }
.receptionist-content.conversation-active { padding-top: 24px; }
.conversation-details { margin-block: 12px 16px; }
.conversation-details .conversation-privacy { margin-top: 12px; }
.receptionist-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 38px; margin-bottom: 30px; padding: 36px; border: 1px solid #dce8dc; border-radius: 18px; background: linear-gradient(120deg, #f7fbf4, #edf6ec); overflow: hidden; }
.receptionist-hero-copy { position: relative; z-index: 1; max-width: 650px; }
.receptionist-kicker { margin-bottom: 13px; color: #3d7549; font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.receptionist-hero h2, .receptionist-hero h1 { white-space: pre-line; padding: 0; color: #24472c; font-size: clamp(28px, 3vw, 38px); line-height: 1.17; letter-spacing: -.045em; }
.receptionist-lead { margin-top: 16px; color: #486e47; font-size: 15px; line-height: 1.85; }
.receptionist-orb { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; width: 190px; height: 190px; margin: 15px auto; border: 1px solid #bad7b7; border-radius: 50%; background: radial-gradient(circle, #def3d9, #f3f9ed 69%); box-shadow: 0 0 0 19px #eaf5e4, 0 0 0 20px #cde0c6, 0 0 0 39px #f2f8ee; }
.receptionist-orb::before { position: absolute; content: ''; inset: 22px; border: 1px solid #9ec7a3; border-radius: 50%; }
.receptionist-orb i, .receptionist-orb span { position: relative; z-index: 1; display: block; width: 7px; height: 45px; border-radius: 7px; background: #27834e; }
.receptionist-orb i:nth-child(2), .receptionist-orb span:nth-child(2) { height: 70px; }
.receptionist-orb i:nth-child(3), .receptionist-orb span:nth-child(3) { height: 88px; }
.receptionist-orb i:nth-child(4), .receptionist-orb span:nth-child(4) { height: 59px; }
.receptionist-orb i:nth-child(5), .receptionist-orb span:nth-child(5) { height: 31px; }
.receptionist-feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 28px; }
.receptionist-feature-list > *, .receptionist-feature-card { padding: 18px; border: 1px solid #dce7d6; border-radius: 12px; background: #fff; }
.receptionist-feature-list h3, .receptionist-feature-card h3 { margin: 10px 0 7px; color: #3b633a; font-size: 15px; }
.receptionist-feature-list p, .receptionist-feature-card p { color: #5c7756; font-size: 13px; line-height: 1.75; }
.conversation-mode { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid #cfe3c7; border-radius: 10px; background: #eff8e9; color: #3e7339; }
.conversation-mode > svg { width: 19px; height: 19px; }
.conversation-mode strong { flex: 1; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.conversation-privacy { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #e6d8b5; border-radius: 10px; background: #fff8e8; color: #7c5d26; font-size: 13px; line-height: 1.8; }
.conversation-start { display: grid; gap: 20px; padding: 8px 0; }
.conversation-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 0 22px; }
.conversation-heading strong { color: #365e31; font-size: 16px; font-weight: 650; }
.conversation-heading p { margin-top: 5px; color: #5b7755; font-size: 13px; }
.conversation-messages { display: grid; gap: 17px; max-height: 600px; padding: 7px 3px 17px; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.conversation-message { min-width: 190px; max-width: 87%; justify-self: start; padding: 19px 21px; border: 1px solid #dbe7d5; border-radius: 15px 15px 15px 4px; background: #f4f9ef; overflow-wrap: anywhere; }
.conversation-message.caller { justify-self: end; border-color: #2c6943; border-radius: 15px 15px 4px 15px; background: #245e3c; color: #f5fff4; }
.message-speaker { display: block; margin-bottom: 9px; color: #57774a; font-size: 12px; font-weight: 650; }
.caller .message-speaker { color: #d1ebcb; }
.message-text { color: var(--ink); font-size: 15px; line-height: 1.85; white-space: pre-wrap; }
.caller .message-text { color: #f5fff4; }
.message-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.caller .message-foot { color: #d0e7c9; }
.read-aloud { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 0; background: none; color: #426e35; font-size: 12px; font-weight: 550; }
.read-aloud svg { width: 14px; height: 14px; }
.read-aloud:disabled { cursor: not-allowed; opacity: .5; }
.conversation-choices { display: flex; flex-wrap: wrap; gap: 9px; padding: 9px 0 18px; }
.choice-button { font-size: 13px; line-height: 1.7; text-align: left; }
.conversation-compose { display: flex; align-items: flex-end; gap: 10px; padding-top: 19px; border-top: 1px solid var(--line); }
.conversation-compose input, .conversation-compose textarea { flex: 1; resize: vertical; }
.conversation-compose textarea { min-height: 92px; }
.conversation-compose .primary-button { min-width: 86px; }
.conversation-complete { margin-top: 17px; padding: 15px 17px; border: 1px solid #c8e0bb; border-radius: 10px; background: #eff8e8; color: #426c32; font-size: 13px; line-height: 1.8; }
.voice-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin: 21px 0; padding: 17px; border: 1px solid #ccdcca; border-radius: 12px; background: #f5f9f0; }
.voice-controls .checkbox-field { width: 100%; color: #3f6340; }
.voice-controls p { margin: 0; color: #42693f; font-size: 13px; }
.intake-note { margin: 15px 0; padding: 15px 18px; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: #f0f7ea; color: #3d6333; font-size: 14px; line-height: 1.8; }

.receptionist-hero.compact { grid-template-columns: minmax(0, 1fr) 105px; gap: 28px; padding: 24px 28px; margin-bottom: 24px; }
.receptionist-hero.compact h2 { font-size: 27px; }
.receptionist-hero.compact .receptionist-lead { margin-top: 10px; font-size: 14px; }
.receptionist-hero.compact .receptionist-orb { width: 96px; height: 96px; margin: 5px auto; box-shadow: 0 0 0 10px #eaf5e4, 0 0 0 11px #cde0c6; }
.receptionist-hero.compact .receptionist-orb::before { inset: 12px; }
.receptionist-hero.compact .receptionist-orb i { transform: scale(.55); margin-inline: -2px; }
.receptionist-feature > svg { width: 23px; height: 23px; color: var(--green); }
/* Staff, secondary records, integrations and privacy */
.staff-content .controls-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 0; }
.staff-content .controls-section-heading > .secondary-button { margin: 0; }
.staff-list { border: 1px solid #d8e3d4; border-radius: 12px; overflow: hidden; }
.staff-row { display: flex; align-items: center; gap: 14px; padding: 18px; border-top: 1px solid #e4ece0; background: #fff; }
.staff-row:first-child { border-top: 0; }
.staff-copy { flex: 1; min-width: 0; }
.staff-copy strong { color: #365c32; font-size: 14px; font-weight: 600; }
.staff-copy p { margin-top: 5px; color: #5e7856; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.staff-row > .secondary-button { min-height: 39px; padding: 8px 12px; font-size: 12px; }
.staff-status { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; border-radius: 6px; background: #e8f4e2; color: #447335; font-size: 12px; font-weight: 550; white-space: nowrap; }
.staff-status.inactive { background: #faede4; color: #925a31; }
.secondary-row { display: flex; align-items: center; gap: 15px; padding: 21px 28px; border-top: 1px solid var(--line); }
.secondary-row h3 { font-size: 16px; font-weight: 600; }
.secondary-row p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.secondary-row > .badge { margin-left: auto; }
.simulated-label { margin-left: auto; padding: 5px 8px; border: 1px solid #c6ddbd; border-radius: 6px; background: #f0f8e8; color: #52763e; font-size: 12px; white-space: nowrap; }
.connection-card { margin: 22px 0; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.connection-card h3 { margin: 0 0 13px; color: #294c32; font-size: 19px; }
.connection-card p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.connection-card p + p { margin-top: 6px; }
.connection-card button { margin: 10px 9px 3px 0; }
.connection-card .staff-form { margin-top: 20px; }
.connection-card .section-note, .connection-card .form-help { color: #5e7956; font-size: 12px; }
.connection-card details, .source-details { margin-top: 20px; line-height: 1.8; }
.source-details summary, .connection-card summary { cursor: pointer; color: #3d6c37; font-weight: 600; }
.connection-card summary { padding: 2px 0; }
.connection-card li { margin: 5px 0; }
.section-note a, .connection-card a, .source-link { color: #246439; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.connection-card a:hover, .source-link:hover { color: #0d4825; }

/* Source review, release controls and audit */
.role-preview { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; padding: 16px 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.role-preview label { display: block; color: #3b5c43; font-size: 13px; font-weight: 600; }
.role-preview p { margin-top: 5px; color: #61745f; font-size: 12px; line-height: 1.7; }
.role-preview select { max-width: 360px; min-width: 240px; min-height: 44px; padding: 10px 32px 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: #31593c; font-size: 13px; }
.source-review { padding: 13px 14px; border: 1px solid #d4e2cf; border-radius: 9px; background: #f5f9f0; color: #486b3d; font-size: 13px; }
.source-review summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
.source-note, .review-step-note { margin-top: 11px; color: #5d7954; font-size: 12px; line-height: 1.8; }
.source-text { margin: 13px 0; padding: 14px; border: 1px solid #dce6d5; border-radius: 7px; background: #fff; color: #3c5d3d; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.extracted-fields { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1fr); gap: 9px 16px; margin: 13px 0 0; font-size: 12px; line-height: 1.7; }
.extracted-fields dt { color: #5c7955; }
.extracted-fields dd { margin: 0; color: #35583c; overflow-wrap: anywhere; }
.document-review-actions { display: grid; gap: 12px; margin-top: 16px; }
.release-gate { display: flex; gap: 16px; padding: 21px; border: 1px solid #ead3a2; border-radius: 12px; background: var(--amber-bg); color: #7c581b; }
.release-icon { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; border-radius: 10px; background: #f5e0b5; color: #7f5513; }
.release-gate h3 { color: #795115; font-size: 18px; line-height: 1.45; }
.release-gate p { margin-top: 7px; color: #7d5c25; font-size: 13px; line-height: 1.8; }
.controls-block { padding: 24px 1px 0; }
.controls-block h3, .controls-section-heading h3 { color: #3a5d3e; font-size: 18px; line-height: 1.5; font-weight: 650; }
.release-blockers { display: grid; gap: 9px; margin: 13px 0 0; padding-left: 20px; color: #526f4d; font-size: 13px; line-height: 1.8; }
.controls-section-heading { position: relative; padding: 28px 0 18px; }
.controls-section-heading p { max-width: 760px; margin-top: 7px; color: #5e7957; font-size: 13px; line-height: 1.8; }
.controls-section-heading > .secondary-button { margin-top: 14px; }
.requirements-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.requirement-card { padding: 20px; border: 1px solid #dce6d5; border-radius: 12px; background: #fcfdf9; }
.requirement-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.requirement-header h4 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.5; }
.requirement-status { padding: 4px 7px; border-radius: 5px; background: #fff1d7; color: #875917; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.requirement-status.implemented { background: #e7f4df; color: #3d722b; }
.requirement-status.blocked { background: #fbeae0; color: #9b532d; }
.requirement-summary, .requirement-evidence, .requirement-next { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.requirement-evidence { display: grid; gap: 6px; padding-left: 18px; }
.requirement-next { margin-top: 14px; padding-top: 13px; border-top: 1px solid #dfe8d8; }
.requirement-next strong { color: #3e6732; font-size: 12px; font-weight: 650; }
.requirement-next p { margin-top: 5px; }
.source-link { display: inline-block; margin-top: 15px; font-size: 12px; line-height: 1.75; }
.controls-audit { margin-top: 12px; }
.audit-integrity { margin-bottom: 15px; padding: 14px 16px; border: 1px solid #cde1c0; border-radius: 9px; background: #eff7e7; color: #4b7436; font-size: 13px; line-height: 1.8; }
.audit-events { overflow: hidden; border: 1px solid #d9e5d1; border-radius: 11px; }
.audit-event { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border-top: 1px solid #e1ebd9; background: #fff; }
.audit-event:first-child { border-top: 0; }
.audit-sequence { flex-shrink: 0; padding: 4px 6px; border-radius: 5px; background: #f1f7e9; color: #527741; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.audit-event-copy { flex: 1; min-width: 0; }
.audit-event-copy strong { color: #416b35; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.audit-event-copy p, .audit-event-copy .audit-reason { margin-top: 5px; color: #5f7d52; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.audit-event-state { display: grid; justify-items: end; flex-shrink: 0; gap: 8px; }
.audit-event-state time { color: #637f55; font-size: 12px; font-variant-numeric: tabular-nums; }
.audit-outcome { display: inline-flex; padding: 4px 7px; border-radius: 5px; background: #edf6e4; color: #49772f; font-size: 12px; }
.audit-outcome.denied, .audit-outcome.failed { background: #fcece2; color: #975c31; }
.controls-retry { margin: 0 28px 28px; }

/* Staff account security and MFA */
.security-panel { padding: 28px 28px 30px; }
.security-panel > h2 { font-size: 30px; }
.security-summary { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 17px; margin-bottom: 23px; }
.security-summary > div { flex: 1; min-width: 180px; }
.security-summary > .badge { flex-shrink: 0; }
.security-status-card { padding: 21px; border: 1px solid #d6e5cf; border-radius: 13px; background: #f7fbf2; }
.security-status-card h3 { margin-bottom: 9px; color: #3f6634; font-size: 17px; }
.security-status-card p { color: #5b7850; font-size: 13px; line-height: 1.8; }
.security-form { max-width: 580px; margin: 22px 0; }
.security-form input { min-height: 46px; }
.security-form input[inputmode=numeric], .auth-form input[inputmode=numeric] { font-size: 19px; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.security-setup { display: grid; justify-items: start; gap: 19px; padding: 23px; border: 1px solid #d4e4cb; border-radius: 13px; background: #f8fbf4; }
.security-qr { display: inline-grid; place-items: center; max-width: 100%; padding: 16px; border: 1px solid #cbdac6; border-radius: 12px; background: #fff; }
.security-qr img, .security-qr svg { display: block; width: 224px; max-width: 100%; height: auto; background: #fff; image-rendering: pixelated; }
img.security-qr { display: block; width: 256px; max-width: 100%; height: auto; padding: 16px; background: #fff; image-rendering: pixelated; }
.security-backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; width: 100%; max-width: 540px; margin: 15px 0; padding: 19px; border: 1px solid #cbdcc2; border-radius: 10px; background: #fff; color: #34582f; font: 14px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; list-style-position: inside; }
.security-backup-codes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; width: 100%; margin: 0; padding: 0; list-style: none; }
div.security-backup-codes { display: block; }
.security-backup-codes li { list-style: none; overflow-wrap: anywhere; }
.security-backup-codes code { color: inherit; font: inherit; }
.security-method code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.security-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.security-note { max-width: 820px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.security-method { display: block; margin-top: 20px; padding: 20px; border: 1px solid #dce8d3; border-radius: 12px; background: #fff; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.security-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 17px 0; border-bottom: 1px solid #e2ebd9; }
.security-row:last-child { border-bottom: 0; }
.security-row p { color: #617a54; font-size: 13px; line-height: 1.8; }
.security-row strong { color: #3c6432; font-size: 14px; }

/* Activity, footer and loading */
.activity-section { margin-top: 32px; }
.activity-heading > span { color: #60745c; font-size: 12px; }
.activity-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 21px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 0 21px; border-right: 1px solid var(--line); }
.activity-item:last-child { border-right: 0; }
.activity-marker { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 50%; background: #edf6e6; color: #4c7839; }
.activity-marker svg { width: 16px; height: 16px; }
.activity-title { color: var(--ink); font-size: 13px; line-height: 1.6; font-weight: 550; }
.activity-detail { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.activity-time { margin-top: 7px; color: #667d59; font-size: 12px; }
.page-footer { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 22px 0; border-top: 1px solid #dce5d6; color: #637a58; font-size: 12px; line-height: 1.7; }
.footer-brand { color: #3e6536; font-size: 21px; font-weight: 750; letter-spacing: -.9px; }
.footer-demo { margin-left: auto; }
.loading-skeleton { height: 62px; margin: 18px; border-radius: 9px; background: linear-gradient(90deg, #f1f6eb, #f9fcf6, #f1f6eb); }
.loading-spinner { width: 14px; height: 14px; border: 2px solid #ffffff60; border-top-color: currentColor; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Layout adapts without shrinking the reading size or removing navigation labels. */
@media (min-width: 1600px) {
  main { padding-inline: 48px; }
  .topbar { padding-inline: 48px; }
}
@media (max-width: 1250px) {
  :root { --sidebar: 232px; }
  .sidebar { padding-inline: 15px; }
  main { padding-inline: 27px; }
  .topbar { padding-inline: 27px; }
  .nav-item { font-size: 13px; padding-inline: 10px; gap: 9px; }
  .intake-layout { gap: 16px; }
  .request-item { padding-inline: 15px; gap: 9px; }
  .request-chevron { display: none; }
  .detail-header, .detail-body { padding-inline: 20px; }
  .filter-tab { padding-inline: 7px; }
  .stat-card { padding: 17px; }
  .stat-top { font-size: 12px; }
  .stat-caption { font-size: 12px; }
}
@media (max-width: 1080px) {
  .today-grid.today-channels { grid-template-columns: 1fr; }
  .auth-shell { gap: 40px; }
  .auth-story-title { font-size: 42px; }
  .intake-layout { grid-template-columns: 1fr; }
  .request-list { min-height: 0; }
  .request-panel { max-height: 560px; overflow: auto; }
  .detail-panel { min-height: 420px; }
  .request-item { padding: 17px 20px; }
  .activity-list { grid-template-columns: 1fr; gap: 19px; }
  .activity-item { border-right: 0; }
  .requirements-grid { grid-template-columns: 1fr; }
  .today-display { display: none; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 34px; }
  .stat-icon { width: 28px; height: 28px; }
  .footer-demo { display: none; }
  .receptionist-hero { grid-template-columns: minmax(0, 1fr) 160px; gap: 28px; padding: 28px; }
  .receptionist-orb { width: 140px; height: 140px; box-shadow: 0 0 0 14px #eaf5e4, 0 0 0 15px #cde0c6; }
  .receptionist-orb::before { inset: 15px; }
  .receptionist-orb i, .receptionist-orb span { transform: scale(.8); margin-inline: -1px; }
  .receptionist-feature-list { grid-template-columns: 1fr; }
  .role-preview { align-items: flex-start; flex-direction: column; gap: 12px; }
  .role-preview select { width: 100%; max-width: none; }
  .staff-row { flex-wrap: wrap; }
  .staff-copy { min-width: 170px; }
}
@media (max-width: 800px) {
  :root { --sidebar: 0px; }
  html { scroll-padding-top: 20px; }
  .auth-shell { grid-template-columns: 1fr; gap: 30px; max-width: 510px; }
  .auth-story .auth-brand { margin-bottom: 25px; }
  .auth-story-title { font-size: 37px; margin-bottom: 15px; }
  .auth-story-note { font-size: 14px; }
  .auth-orbit { display: none; }
  .app-shell { flex-direction: column; }
  .sidebar { position: relative; inset: auto; width: 100%; padding: 20px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 15px; overflow: visible; }
  .brand { padding: 0; font-size: 31px; }
  .brand-symbol { transform: scale(.9); }
  .clinic-switch { width: auto; max-width: 60%; margin: 0 0 0 auto; padding: 9px 11px; }
  .clinic-switch small { font-size: 12px; }
  .clinic-monogram { width: 32px; height: 34px; font-size: 17px; }
  .switch-chevrons, .nav-label, .sidebar-bottom { display: none; }
  .nav-links { display: flex; flex: 0 0 100%; width: 100%; min-height: auto; align-items: center; flex-wrap: wrap; gap: 5px; overflow: visible; padding: 3px 0 7px; }
  .daily-nav { display: flex; width: 100%; gap: 5px; padding-bottom: 7px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #60806c transparent; }
  .settings-nav { width: 100%; margin-top: 2px; padding-top: 4px; }
  .settings-nav > summary { min-height: 40px; padding: 9px 11px; font-size: 12px; }
  .settings-chevron { margin-left: 2px; }
  .settings-links { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 4px; }
  .settings-links .nav-item { min-width: 0; white-space: normal; }
  .nav-section-label { display: none; }
  .nav-item { flex-shrink: 0; min-height: 41px; padding: 9px 11px; font-size: 12px; white-space: nowrap; }
  .nav-count { min-width: 19px; padding: 1px 5px; font-size: 12px; }
  .main-wrap { width: 100%; margin: 0; }
  .topbar { height: 59px; padding-inline: 22px; }
  .topbar-right { gap: 11px; }
  .topbar-rule, .small-avatar { display: none; }
  main { padding: 22px 20px 0; }
  .page-heading { padding: 29px 0 24px; }
  .page-heading p { max-width: 520px; font-size: 14px; }
  .eyebrow, .workspace-kicker { font-size: 12px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 26px; }
  .stat-card { padding: 19px; }
  .stat-caption { font-size: 12px; }
  .demo-banner { align-items: flex-start; }
  .demo-banner svg { margin-top: 3px; }
  .demo-tag { display: none; }
  .workspace-heading h2, .activity-heading h2 { font-size: 18px; }
  .workflow-label { display: none; }
  .secondary-view { margin-top: 21px; }
  .secondary-view > h2 { padding: 23px 21px 10px; font-size: 26px; }
  .secondary-intro { padding: 0 21px 22px; }
  .staff-content, .receptionist-content, .controls-content { padding: 0 21px 25px; }
  .security-panel { padding: 24px 21px 25px; }
  .security-panel > h2 { font-size: 26px; }
  .secondary-view > .conversation-privacy { margin-inline: 21px; }
  .secondary-view > .secondary-button { margin-inline: 21px; }
  .secondary-view > .connection-card { margin: 19px 21px; }
  .secondary-view > h3 { margin-inline: 21px; }
  .connection-card { padding: 21px; }
  .today-view { gap: 20px; }
  .today-heading { gap: 14px; }
  .today-grid { gap: 16px; }
  .today-card, .setup-step { padding: 22px; }
  .security-summary { align-items: flex-start; }
  .security-setup { padding: 19px; }
  .audit-event-state { max-width: 112px; }
  .audit-event-state time { text-align: right; line-height: 1.6; }
}
@media (max-width: 520px) {
  .today-grid.today-stats { grid-template-columns: 1fr; }
  .setup-panel { padding: 20px; }
  .setup-panel > h2 { font-size: 26px; }
  .topbar .environment-pill, .breadcrumb > span:first-child, .breadcrumb-divider { display: none; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .auth-story > :not(.auth-brand) { display: none; }
  .auth-story .auth-brand { margin: 0; font-size: 34px; }
  .auth-shell { gap: 24px; }
  .sidebar { padding: 17px 15px 11px; gap: 12px; }
  .brand { font-size: 29px; }
  .clinic-switch { max-width: 57%; padding: 7px 9px; gap: 8px; }
  .clinic-switch strong { font-size: 12px; }
  .clinic-switch small { display: none; }
  .clinic-monogram { width: 29px; height: 31px; }
  .topbar { padding-inline: 17px; }
  .breadcrumb { gap: 9px; font-size: 12px; }
  .environment-pill { font-size: 12px; }
  main { padding: 18px 14px 0; }
  .demo-banner { padding: 12px; gap: 8px; }
  .demo-banner p { font-size: 12px; }
  .page-heading { padding-block: 26px 23px; }
  h1 { font-size: 29px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-top { font-size: 12px; }
  .stat-icon { width: 26px; height: 26px; }
  .stat-value { font-size: 34px; }
  .stat-caption { font-size: 12px; }
  .request-item { flex-wrap: wrap; padding: 17px 16px; gap: 10px; }
  .request-copy { min-width: 170px; }
  .request-state { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 0 49px; text-align: left; }
  .request-time { margin: 0; }
  .patient-name { font-size: 14px; }
  .request-meta { font-size: 12px; }
  .list-column-labels { padding-inline: 17px; }
  .list-column-labels > :last-child { display: none; }
  .detail-header, .detail-body { padding-inline: 18px; }
  .detail-identification h3 { font-size: 22px; }
  .detail-identification .badge { margin-left: 60px; }
  .detail-eyebrow { font-size: 12px; }
  .micro-label { text-align: right; }
  .document-item { flex-wrap: wrap; }
  .document-status { margin-left: 39px; }
  .booking-management { grid-template-columns: 1fr; }
  .auth-screen { padding: 26px 16px; }
  .auth-card { padding: 29px 24px; border-radius: 18px; }
  .auth-brand { font-size: 40px; }
  .auth-card h1 { font-size: 28px; }
  .action-dialog { padding: 25px 20px; border-radius: 16px; }
  .dialog-buttons { flex-direction: column-reverse; }
  .dialog-buttons button { width: 100%; }
  .secondary-view > h2 { padding-inline: 18px; font-size: 24px; }
  .secondary-intro { padding-inline: 18px; }
  .staff-content, .receptionist-content, .controls-content, .security-panel { padding-inline: 18px; }
  .secondary-row { flex-wrap: wrap; padding: 18px; }
  .secondary-row > .badge, .secondary-row > .simulated-label { margin-left: 0; }
  .connection-card { padding: 18px; }
  .today-grid { grid-template-columns: 1fr; }
  .today-card, .setup-step { padding: 20px; }
  .today-heading h1, .today-heading h2 { font-size: 29px; }
  .today-heading p:not(.workspace-kicker) { font-size: 14px; }
  .next-action-list > * { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .next-action-list .primary-button, .next-action-list .secondary-button { width: 100%; }
  .setup-progress { gap: 7px; }
  .setup-progress > * { padding-inline: 9px; }
  .setup-summary { padding: 17px; }
  .setup-summary dl { grid-template-columns: 1fr; gap: 4px; }
  .setup-summary dd + dt { margin-top: 8px; }
  .setup-form > .primary-button, .setup-form > .secondary-button { width: 100%; }
  .secondary-view > .connection-card { margin-inline: 16px; }
  .connection-card button { width: 100%; margin-right: 0; }
  .staff-content .controls-section-heading { align-items: flex-start; flex-direction: column; }
  .staff-row { padding: 16px; gap: 10px; }
  .staff-copy { min-width: 150px; }
  .staff-row > .secondary-button { width: 100%; margin-top: 4px; }
  .conversation-heading { align-items: flex-start; }
  .conversation-message { max-width: 95%; min-width: 160px; padding: 16px; }
  .message-text { font-size: 14px; }
  .message-foot { flex-wrap: wrap; gap: 9px; }
  .conversation-compose { flex-wrap: wrap; }
  .conversation-compose .primary-button { width: 100%; }
  .conversation-compose input, .conversation-compose textarea { font-size: 16px; }
  .voice-controls { align-items: stretch; padding: 15px; }
  .voice-controls button { width: 100%; }
  .receptionist-hero { grid-template-columns: 1fr; padding: 24px; gap: 23px; }
  .receptionist-hero .receptionist-orb { display: none; }
  .receptionist-orb { grid-row: 1; width: 126px; height: 126px; margin-block: 20px; }
  .receptionist-hero h2, .receptionist-hero h1 { font-size: 30px; }
  .receptionist-lead { font-size: 14px; }
  .release-gate { padding: 17px; gap: 11px; }
  .requirement-card { padding: 17px; }
  .requirement-header { flex-wrap: wrap; gap: 9px; }
  .audit-event { flex-wrap: wrap; padding: 15px; gap: 10px; }
  .audit-event-state { display: flex; align-items: center; justify-content: space-between; max-width: none; width: 100%; margin-left: 40px; }
  .security-backup-codes, .security-backup-codes ul { grid-template-columns: 1fr; font-size: 14px; }
  .receptionist-hero.compact { grid-template-columns: 1fr; padding: 21px; }
  .receptionist-hero.compact .receptionist-orb { display: none; }
  .security-actions { align-items: stretch; flex-direction: column; }
  .security-actions button { width: 100%; }
  .security-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-footer { flex-wrap: wrap; gap: 7px 13px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.staff-safety-alerts { display:flex; align-items:center; gap:16px; margin:18px 0; padding:20px; background:#fff2ed; border:1px solid #c26243; border-radius:12px; color:#672d1f; }
.staff-safety-alerts[hidden] { display:none; }
.staff-safety-alerts > svg { width:25px; height:25px; flex-shrink:0; }
.staff-safety-alerts > div { flex:1; }
.staff-safety-alerts p { margin:6px 0 0; line-height:1.5; }
.safety-case { border-left:4px solid #c26243; }
.safety-case-label { display:block; color:#8c351f; margin-bottom:8px; }
@media (max-width:800px) { .staff-safety-alerts { align-items:flex-start; flex-wrap:wrap; } .staff-safety-alerts > div { min-width:180px; } }
@media (min-width: 801px) and (max-height: 900px) {
  .prototype-note p { display: none; }
  .prototype-note { margin-bottom: 12px; padding: 12px; }
  .sidebar-bottom { padding-top: 16px; }
  .user-profile { padding-block: 15px; }
}
