/* Trueline, the one stylesheet (ADR 0064). Trueline's palette with Link Blue #0066CC as the one action
   colour, set in Inter, with Inter Tight 600 for headings and numbers; every value is a token from the
   design's tokens.json, light and dark. The console and the patient app follow the system theme;
   body.kiosk stays light. The colours keep their M1 meanings: blue the EHR and information, green the
   prescriber and done, purple (the kit's Violet) Osler, red stop, cream (warning) needs attention soon,
   a navy lock (held) a fixed rule, bronze the pharmacy. The Aurora gradient is one line under the band.
   Inter: Copyright 2016 The Inter Project Authors; Inter Tight: Copyright 2022 The Inter Project
   Authors; SIL Open Font License 1.1 (fonts/OFL.txt), the latin files of @fontsource/inter 5.3.0 and
   @fontsource/inter-tight 5.3.0, served from /static/fonts. Nothing loads from elsewhere.
   The check, octagon-x and chevron-down paths below are Lucide's (lucide.dev), ISC License:
   Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT).
   All other copyright (c) for Lucide are held by Lucide Contributors 2022. Permission to use, copy,
   modify, and/or distribute this software for any purpose with or without fee is hereby granted,
   provided that the above copyright notice and this permission notice appear in all copies.
   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
   SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
   AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
   NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
   OF THIS SOFTWARE. */
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("fonts/inter-latin-400-normal.woff2") format("woff2") }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("fonts/inter-latin-500-normal.woff2") format("woff2") }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("fonts/inter-latin-600-normal.woff2") format("woff2") }
@font-face { font-family:"Inter Tight"; font-style:normal; font-weight:600; font-display:swap; src:url("fonts/inter-tight-latin-600-normal.woff2") format("woff2") }

/* Colour tokens, light. body.kiosk declares them again, so the kiosk's own values beat the dark ones
   it would inherit: the kiosk stays light (its QR code must be dark on light). Each role has a text,
   a tint, a border and a bar (a strong line: an error edge, a tab underline, never a left accent). */
:root, body.kiosk {
  color-scheme: light;
  --brand-navy:#0C1436; --brand-midnight:#23357E; --brand-action:#0066CC; --brand-action-hover:#0055AA;
  --page:#FFFFFF; --surface:#FFFFFF; --sunken:#F5F5F7; --panel:#F5F5F7; --border:#E5E5EA; --border-soft:#EEEEF0;
  --border-input:#6E6E73;
  --ink:#0B0B0F; --heading:#0B0B0F; --muted:#6E6E73; --placeholder:#6E6E73; --disabled-text:#AEAEB2;
  --input-bg:#FFFFFF; --row-hover:#F5F5F7; --selection-bg:#0C1436; --selection-text:#FFFFFF; --selected-bg:#0C1436;
  --selected-text:#FFFFFF;
  --header-bg:#0C1436; --header-bg-top:#23357E; --header-text:#FFFFFF; --header-text-muted:#AEAEB2; --header-hover:#23357E;
  --header-control-border:#AEAEB2; --header-env-bg:#F5F5F7; --header-env-text:#0C1436;
  --focus-ring:#0066CC; --focus-ring-on-band:#FFFFFF; --qr-dark:#000000; --qr-light:#FFFFFF;
  --ehr-text:#0066CC; --ehr-tint:#EEF5FC; --ehr-border:#A6C8EC; --ehr-bar:#0066CC; --ehr-solid:#0066CC;
  --ehr-solid-hover:#0055AA; --ehr-on-solid:#FFFFFF;
  --info-text:#0066CC; --info-tint:#EEF5FC; --info-border:#A6C8EC; --info-bar:#0066CC;
  --provider-text:#1A7F45; --provider-tint:#EEF7F1; --provider-border:#9CCFB1; --provider-bar:#1A7F45;
  --provider-solid:#1A7F45; --provider-solid-hover:#146B3A; --provider-on-solid:#FFFFFF;
  --success-text:#1A7F45; --success-tint:#EEF7F1; --success-border:#9CCFB1; --success-bar:#1A7F45;
  --ai-text:#5B3FD9; --ai-tint:#F4F1FF; --ai-border:#C3B6FF; --ai-bar:#7A5CFF;
  --pharmacy-text:#7A4710; --pharmacy-tint:#FAF4EC; --pharmacy-border:#C9A47A; --pharmacy-bar:#9A6B2F;
  --warning-text:#B25000; --warning-tint:#FFF6EB; --warning-border:#F0C08C; --warning-bar:#B25000;
  --danger-text:#D70015; --danger-tint:#FEF0F1; --danger-border:#F5A8B0; --danger-bar:#D70015; --danger-solid:#D70015;
  --danger-solid-hover:#B00012; --danger-on-solid:#FFFFFF;
  --held-text:#0C1436; --held-tint:#F1F3F9; --held-border:#23357E; --held-bar:#23357E;
  --neutral-text:#4A4A52; --neutral-tint:#F5F5F7; --neutral-border:#D1D1D6; --neutral-bar:#6E6E73;
  --shadow-popover:0 8px 24px rgba(12, 20, 54, 0.14);
  /* The M1 names, for one release, so today's rules and inline styles restyle with no markup change.
     They sit here, not on :root alone, so the kiosk resolves them against its own light values. */
  --paper:var(--page); --rule:var(--border); --rule-soft:var(--border-soft); --ehr:var(--brand-action);
  --ehr-t:var(--ehr-tint); --prov:var(--provider-bar); --prov-t:var(--provider-tint); --ai:var(--ai-text);
  --ai-t:var(--ai-tint); --pharm:var(--pharmacy-text); --pharm-t:var(--pharmacy-tint); --flag:var(--danger-text);
  --flag-t:var(--danger-tint); --mono:var(--font-mono);
}
/* Type, spacing, radii, sizes, focus and motion: the same in both themes. The Aurora gradient is the
   kit's, warm to cool; it is drawn only as the band's bottom line, never as stripes, text or a fill. */
:root {
  --font-sans:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display:"Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono:ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --aurora:linear-gradient(90deg, #FF8A00 0%, #FF2D6F 30%, #C13CFF 55%, #7A5CFF 78%, #0A84FF 100%);
  --numeric:tabular-nums lining-nums; --weight-regular:400; --weight-medium:500; --weight-semibold:600;
  --console-h1:600 28px/34px; --console-h2:600 20px/26px; --console-h3:600 16px/22px;
  --console-body:400 15px/23px; --console-table:400 14px/20px; --console-label:500 14px/20px;
  --console-meta:500 13px/18px; --console-table-head:600 13px/18px; --console-chip:600 13px/16px;
  --console-button:600 15px/1; --console-nav:500 15px/1; --console-banner-name:600 24px/30px;
  --console-tile-number:600 32px/36px; --patient-h1:600 28px/34px; --patient-h2:600 22px/28px;
  --patient-h3:600 18px/24px; --patient-body:400 17px/26px; --patient-label:500 17px/24px; --patient-hint:400 15px/22px;
  --patient-input:400 17px/24px; --patient-button:600 17px/1; --patient-chip:600 14px/18px;
  --kiosk-greeting:600 40px/48px; --kiosk-h1:600 34px/40px; --kiosk-question:600 22px/30px; --kiosk-body:400 18px/27px;
  --kiosk-hint:400 16px/24px; --kiosk-input:400 20px/28px; --kiosk-button:600 20px/1; --kiosk-step:600 16px/20px;
  --space-4:4px; --space-8:8px; --space-12:12px; --space-16:16px; --space-20:20px; --space-24:24px; --space-32:32px;
  --space-40:40px; --space-48:48px; --space-64:64px;
  --radius-sm:4px; --radius-md:6px; --radius-lg:10px; --radius-pill:999px;
  --control-h:40px; --control-h-sm:32px; --control-h-lg:48px; --patient-control-h:52px; --kiosk-control-h:64px;
  --kiosk-field-h:56px; --checkbox:20px; --checkbox-touch:24px; --row-min-h:44px; --header-h:56px; --nav-h:48px;
  --kiosk-bar-h:72px; --container:1280px; --container-narrow:720px; --kiosk-column:724px; --qr-kiosk:280px;
  --qr-console:200px; --icon:16px;
  --focus-width:2px; --focus-width-kiosk:3px; --focus-offset:2px;
  --motion-fast:120ms ease-out;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand-navy:#0C1436; --brand-midnight:#23357E; --brand-action:#4DA3FF; --brand-action-hover:#7DBBFF;
    --page:#070B1F; --surface:#0C1436; --sunken:#0A1029; --panel:#172050; --border:#26305C; --border-soft:#1A2249;
    --border-input:#7A81A3;
    --ink:#F5F5F7; --heading:#FFFFFF; --muted:#AEAEB2; --placeholder:#8E8E93; --disabled-text:#5C6384;
    --input-bg:#0A1029; --row-hover:#121B45; --selection-bg:#4DA3FF; --selection-text:#0C1436; --selected-bg:#4DA3FF;
    --selected-text:#0C1436;
    --header-bg:#0C1436; --header-bg-top:#23357E; --header-text:#FFFFFF; --header-text-muted:#AEAEB2; --header-hover:#23357E;
    --header-control-border:#AEAEB2; --header-env-bg:#F5F5F7; --header-env-text:#0C1436;
    --focus-ring:#4DA3FF; --focus-ring-on-band:#FFFFFF; --qr-dark:#000000; --qr-light:#FFFFFF;
    --ehr-text:#6CB4FF; --ehr-tint:#0E1F47; --ehr-border:#24467E; --ehr-bar:#4DA3FF; --ehr-solid:#4DA3FF;
    --ehr-solid-hover:#7DBBFF; --ehr-on-solid:#0C1436;
    --info-text:#6CB4FF; --info-tint:#0E1F47; --info-border:#24467E; --info-bar:#4DA3FF;
    --provider-text:#5DD08F; --provider-tint:#0B2A22; --provider-border:#1F6B45; --provider-bar:#3DBE77;
    --provider-solid:#4CC883; --provider-solid-hover:#6FD69C; --provider-on-solid:#06140E;
    --success-text:#5DD08F; --success-tint:#0B2A22; --success-border:#1F6B45; --success-bar:#3DBE77;
    --ai-text:#B3A3FF; --ai-tint:#1D1946; --ai-border:#4B3FA0; --ai-bar:#9C88FF;
    --pharmacy-text:#E2B47E; --pharmacy-tint:#291E11; --pharmacy-border:#6E5029; --pharmacy-bar:#C99459;
    --warning-text:#FFB366; --warning-tint:#2D1E0A; --warning-border:#7A4F1A; --warning-bar:#E08A2E;
    --danger-text:#FF8A8A; --danger-tint:#3A1218; --danger-border:#8E2F3A; --danger-bar:#FF6B6B; --danger-solid:#FF8A8A;
    --danger-solid-hover:#FFA8A8; --danger-on-solid:#2B0A08;
    --held-text:#C9D0EA; --held-tint:#161F48; --held-border:#8E99C8; --held-bar:#8E99C8;
    --neutral-text:#C7C7CC; --neutral-tint:#161D40; --neutral-border:#2E375F; --neutral-bar:#8E8E93;
    --shadow-popover:0 8px 24px rgba(0, 0, 0, 0.50);
  }
}
/* The few icons CSS draws (the img-src policy allows data:): masks painted in the colour of what
   carries them, and the select's chevron, muted for light fields and pale for dark ones and the band.
   Part B draws every other icon inline (src/web/icons.ts). */
:root {
  --icon-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --icon-octagon-x:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
  --chevron-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chevron-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AEAEB2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { margin:0; background:var(--page); color:var(--ink); font:400 15px/23px var(--font-sans); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale }
a { color:var(--brand-action); text-underline-offset:2px }
a:hover { color:var(--brand-action-hover) }
h1 { font:600 28px/34px var(--font-display); color:var(--heading); margin:0 0 8px }
h2 { font:600 20px/26px var(--font-display); color:var(--heading); margin:0 0 10px }
h3 { font:600 16px/22px var(--font-display); color:var(--ink); margin:14px 0 6px }
p { margin:0 0 10px }
b, strong { font-weight:600 }
code { font-family:var(--font-mono); font-variant-numeric:slashed-zero; font-size:.88em; background:var(--sunken); padding:1px 5px; border-radius:var(--radius-sm); overflow-wrap:anywhere }
::selection { background:var(--selection-bg); color:var(--selection-text) }
.muted { color:var(--muted) }
.small { font-size:13px; line-height:18px }
.sub, .meta { display:block; font:500 13px/18px var(--font-sans); color:var(--muted) }
.nowrap { white-space:nowrap }
.num { text-align:right; font-variant-numeric:tabular-nums lining-nums }
.id { font-family:var(--font-mono); font-variant-numeric:slashed-zero }
.total { font:600 15px/22px var(--font-display); color:var(--heading); font-variant-numeric:tabular-nums lining-nums }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
.skip { position:absolute; left:12px; top:-60px; z-index:20; padding:10px 14px; border-radius:var(--radius-md); background:var(--surface); font-weight:600 }
.skip:focus { top:12px }
:focus-visible { outline:var(--focus-width) solid var(--focus-ring); outline-offset:var(--focus-offset) }
.clinic-top :focus-visible { outline-color:currentColor }

/* console shell: the navy band, Midnight to Navy, with the Aurora as one continuous line along its foot;
   then the section nav. The reverse logo is linked home at 22px, its width from its own proportions,
   with the kit's clear space (the wordmark's x-height, about 13px here) on every side. */
.top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px; min-height:var(--header-h); padding:8px 24px; background:linear-gradient(160deg, var(--header-bg-top) 0%, var(--header-bg) 70%); border-bottom:3px solid var(--header-bg); border-image:var(--aurora) 1; color:var(--header-text) }
.top :focus-visible { outline-color:var(--focus-ring-on-band) }
.top .muted { color:var(--header-text-muted) }
.masthead { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px }
.brand { display:inline-flex; align-items:center; padding:5px 0; color:var(--header-text); text-decoration:none }
.brand img { display:block; height:22px; width:auto }
.env { display:inline-flex; align-items:center; height:24px; padding:0 8px; border-radius:var(--radius-sm); background:var(--header-env-bg); color:var(--header-env-text); font:600 13px/1 var(--font-sans); white-space:nowrap }
.ctx { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; font-size:14px }
.ctx form { margin:0 }
.clinic-badge, .who { font-weight:600; color:var(--header-text) }
.switcher { display:flex; gap:6px; align-items:center }
.top select { width:auto; min-height:36px; padding-block:0; border-color:var(--header-control-border); background-color:var(--header-hover); background-image:var(--chevron-dark); color:var(--header-text) }
.search-top input { width:320px; max-width:100%; min-height:36px; border-color:var(--header-control-border); background-color:var(--surface) }
.clinic-menu > summary, .user-menu > summary { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 12px; border:1px solid var(--header-control-border); border-radius:var(--radius-md); color:var(--header-text); font:600 14px/1 var(--font-sans) }
.user-menu > summary { border-color:transparent }
.tabs { display:flex; gap:4px; overflow-x:auto; min-height:var(--nav-h); padding:0 16px; background:var(--surface); border-bottom:1px solid var(--border) }
.tabs a, .chart-tabs a, .tabs .more > summary { display:inline-flex; align-items:center; gap:6px; padding:0 14px; font:500 15px/20px var(--font-sans); color:var(--muted); text-decoration:none; white-space:nowrap; box-shadow:inset 0 -3px 0 transparent }
.tabs a:hover, .chart-tabs a:hover, .tabs .more > summary:hover { color:var(--heading) }
.tabs a[aria-current="page"], .chart-tabs a[aria-current="page"] { color:var(--heading); font-weight:600; box-shadow:inset 0 -3px 0 var(--brand-action) }
.tabs .more > summary { min-height:var(--nav-h) }
/* The tabs scroll sideways, and a scroll container clips whatever lies outside it: the ring goes
   inside the tab. It clips an absolutely placed menu too, so a nav that holds More (six items at
   most) does not scroll; where it is too narrow it wraps, each row still a 48px target. */
.tabs a:focus-visible, .chart-tabs a:focus-visible, .tabs .more > summary:focus-visible { outline-offset:-4px }
.tabs:has(> .more) { overflow:visible; flex-wrap:wrap }
.tabs:has(> .more) > a { min-height:var(--nav-h) }
/* More, the clinic switcher and the user menu: a <details> popover, no script. Only these lift. */
.more, .clinic-menu, .user-menu { position:relative }
.more > summary, .clinic-menu > summary, .user-menu > summary, .menu-phone > summary { list-style:none; cursor:pointer }
.more > summary::-webkit-details-marker, .clinic-menu > summary::-webkit-details-marker, .user-menu > summary::-webkit-details-marker, .menu-phone > summary::-webkit-details-marker { display:none }
.more[open] > .menu, .clinic-menu[open] > .menu, .user-menu[open] > .menu { position:absolute; top:100%; left:0; z-index:10; min-width:240px; padding:8px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-popover) }
.clinic-menu[open] > .menu, .user-menu[open] > .menu { left:auto; right:0 }
.menu a, .menu button { display:flex; align-items:center; width:100%; min-height:40px; padding:0 10px; border:0; border-radius:var(--radius-md); background:none; color:var(--ink); font:500 15px/20px var(--font-sans); text-align:left; text-decoration:none; cursor:pointer }
.menu a:hover, .menu button:hover { background:var(--sunken); color:var(--heading) }
.menu [aria-current] { background:var(--ehr-tint); color:var(--heading); font-weight:600 }
.menu h3 { margin:8px 10px 4px; font:600 13px/18px var(--font-sans); color:var(--muted) }
.page-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px 24px; margin:0 0 16px }
.page-head .meta { font:400 15px/22px var(--font-sans) }
.crumb { display:inline-flex; align-items:center; gap:6px; margin:0 0 8px; font:500 14px/20px var(--font-sans) }
.wrap { max-width:1060px; margin:0 auto; padding:24px 16px 48px }
.wrap.wide { max-width:1240px }
.wrap.narrow { max-width:720px }

/* Cards are flat: a hairline, no shadow. A role card changes only its edge, on all four sides. */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; margin:0 0 16px }
.card.held { border-color:var(--held-border) }
.card.concern-moderate { border-color:var(--warning-border) }
.narrow-card { max-width:520px; margin:24px auto }
.hint { background:var(--sunken); border:1px dashed var(--border-input); border-radius:var(--radius-lg) }
p.hint { padding:10px 14px }
.grid2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px }
.grid2.tight { gap:10px 14px }
.grid3 { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px }
.login { align-items:start; margin-top:12px }
@media (max-width:820px) { .grid2, .grid3 { grid-template-columns:minmax(0,1fr) } }

/* forms */
.stack { display:grid; gap:12px }
.stack.tight { gap:6px }
label { display:grid; gap:4px; font-size:14px; font-weight:500 }
label.check { display:flex; gap:8px; align-items:flex-start; font-weight:400 }
label:has(> input[type=radio]), label:has(> input[type=checkbox]) { display:flex; align-items:center; gap:10px }
input, select, textarea { font:400 15px/22px var(--font-sans); min-height:var(--control-h); padding:8px 12px; border:1px solid var(--border-input); border-radius:var(--radius-md); background:var(--input-bg); color:var(--ink); min-width:0; width:100% }
input::placeholder, textarea::placeholder { color:var(--placeholder) }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color:var(--brand-action); outline-offset:1px }
input[type=checkbox], input[type=radio] { width:var(--checkbox); height:var(--checkbox); min-height:0; padding:0; margin:0; flex:none; accent-color:var(--brand-action) }
@media (pointer: coarse) { input, select, textarea { font-size:max(16px, 1em) } }
select { appearance:none; padding-right:36px; background:var(--input-bg) var(--chevron-light) no-repeat right 12px center / 16px 16px; cursor:pointer }
textarea { min-height:88px; resize:vertical }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border:2px solid var(--danger-bar) }
input:disabled, select:disabled, textarea:disabled { background-color:var(--sunken); color:var(--disabled-text); cursor:not-allowed }
.help { display:block; font:400 13px/18px var(--font-sans); color:var(--muted) }
.field-error { display:flex; align-items:center; gap:6px; margin:4px 0 0; font:600 13px/18px var(--font-sans); color:var(--danger-text) }
/* A number with its unit inside the field: <span class="unit"><input …><span>lb</span></span> */
.unit { position:relative; display:block }
.unit input { padding-right:56px; text-align:right; font-variant-numeric:tabular-nums lining-nums }
.unit > span { position:absolute; right:12px; top:50%; transform:translateY(-50%); font:400 14px/20px var(--font-sans); color:var(--muted); pointer-events:none }
.inline { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 }
.inline input.price, input.price { width:90px; font-variant-numeric:tabular-nums lining-nums; text-align:right }
.row-form { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin-top:12px }
.row-form label { flex:1 1 160px }
.search { display:flex; gap:8px; margin:12px 0; max-width:480px }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:var(--control-h); padding:0 16px; font:600 15px/1 var(--font-sans); border-radius:var(--radius-md); border:1px solid var(--border-input); background:var(--surface); color:var(--heading); cursor:pointer; text-decoration:none; white-space:nowrap; transition:background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast) }
.btn:hover { background:var(--sunken); color:var(--heading) }
.btn > svg { flex:none }
.btn.sm { min-height:var(--control-h-sm); padding:0 12px; font-size:14px }
.btn.lg { min-height:var(--control-h-lg); padding:0 22px; font-size:16px }
.btn.primary { background:var(--ehr-solid); border-color:var(--ehr-solid); color:var(--ehr-on-solid) }
.btn.primary:hover { background:var(--ehr-solid-hover); border-color:var(--ehr-solid-hover); color:var(--ehr-on-solid) }
/* Green fills only the two buttons that create a prescription (part B gives them the class). */
.btn.sign { background:var(--provider-solid); border-color:var(--provider-solid); color:var(--provider-on-solid) }
.btn.sign:hover { background:var(--provider-solid-hover); border-color:var(--provider-solid-hover); color:var(--provider-on-solid) }
/* Danger is an outline that opens a confirm step; only the confirm step is solid red. */
.btn.danger { background:var(--surface); border-color:var(--danger-border); color:var(--danger-text) }
.btn.danger:hover { background:var(--danger-tint); color:var(--danger-text) }
.btn.danger.confirm { background:var(--danger-solid); border-color:var(--danger-solid); color:var(--danger-on-solid) }
.btn.danger.confirm:hover { background:var(--danger-solid-hover); border-color:var(--danger-solid-hover); color:var(--danger-on-solid) }
.btn.ghost { background:transparent; border-color:transparent; color:var(--brand-action) }
.btn.ghost:hover { background:var(--ehr-tint); color:var(--brand-action-hover) }
/* On the navy band, and on a clinic's own bar (in its text colour) */
.top .btn, .btn.on-band { min-height:36px; background:transparent; border-color:var(--header-control-border); color:var(--header-text) }
.top .btn:hover, .btn.on-band:hover { background:var(--header-hover); color:var(--header-text) }
.btn.light { color:inherit; border-color:currentColor; background:transparent }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover, .btn:disabled, .btn:disabled:hover { background:var(--sunken); border-color:var(--border); color:var(--disabled-text); cursor:not-allowed }
/* Role colours for chips, tags, alerts and flashes: a tint, an edge and a text colour per role.
   Colour never works alone: each also carries a word, and in part B's markup an icon. */
.chip, .chip.neutral, .tag { --tint:var(--neutral-tint); --edge:var(--neutral-border); --text:var(--neutral-text) }
.flash, .alert, .chip.info, .tag.blue { --tint:var(--info-tint); --edge:var(--info-border); --text:var(--info-text) }
.flash.ok, .alert.success, .chip.success, .tag.green { --tint:var(--success-tint); --edge:var(--success-border); --text:var(--success-text) }
.alert.provider, .chip.provider { --tint:var(--provider-tint); --edge:var(--provider-border); --text:var(--provider-text) }
.flash.warn, .alert.warning, .chip.warning, .tag.amber { --tint:var(--warning-tint); --edge:var(--warning-border); --text:var(--warning-text) }
.flash.err, .alert.danger, .chip.danger, .tag.red { --tint:var(--danger-tint); --edge:var(--danger-border); --text:var(--danger-text) }
.alert.held, .chip.held { --tint:var(--held-tint); --edge:var(--held-border); --text:var(--held-text) }
.chip.ai, .tag.purple { --tint:var(--ai-tint); --edge:var(--ai-border); --text:var(--ai-text) }
.chip.pharmacy { --tint:var(--surface); --edge:var(--pharmacy-border); --text:var(--pharmacy-text) }
/* An alert: <div class="alert warning" role="alert"><svg …/><div><p class="title">…</p><p>…</p></div>
   <a class="btn sm">…</a></div>. The action wraps under the words when narrow. A flash is one too. */
.flash, .alert { padding:12px 16px; border:1px solid var(--edge); border-radius:var(--radius-lg); background:var(--tint); color:var(--ink); margin:0 0 16px; font-size:14px }
/* A status line a script fills (checkout, the merchant check) paints nothing while it is empty. It
   stays in the page, not display:none, so it is still the live region when the words arrive. */
.flash:empty { margin:0; padding:0; border:0; background:none }
.alert { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px 12px; padding:14px 16px; line-height:21px }
.alert > svg { flex:none; width:20px; height:20px; color:var(--text) }
.alert > div { flex:1 1 260px; min-width:0 }
.alert p { margin:0 }
.alert .title { font:600 15px/21px var(--font-sans); color:var(--text) }
/* A standing instruction, not an event; and the calm notice patients see (cream, never red). */
.notice { position:relative; padding:12px 16px; border-radius:var(--radius-lg); background:var(--sunken); color:var(--ink); margin:0 0 12px; font-size:14px }
.notice:has(> svg:first-child) { padding-left:42px }
.notice > svg:first-child { position:absolute; left:16px; top:15px; width:16px; height:16px; color:var(--heading) }
.calm { position:relative; margin:0 0 16px; padding:16px 20px 16px 52px; border:1px solid var(--warning-border); border-radius:var(--radius-lg); background:var(--warning-tint); color:var(--ink); font-size:18px; line-height:27px }
.calm > svg:first-child { position:absolute; left:20px; top:20px; width:20px; height:20px; color:var(--heading) }
.calm .title { display:block; margin:0 0 6px; font:600 20px/26px var(--font-sans); color:var(--heading) }

/* tables and tags */
.tbl { overflow-x:auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); margin:0 0 16px }
.card .tbl { border:0; margin:0 -6px }
table.t { border-collapse:collapse; width:100%; font:400 14px/20px var(--font-sans); font-variant-numeric:tabular-nums lining-nums }
.t th { text-align:left; font:600 13px/18px var(--font-sans); color:var(--muted); background:var(--sunken); border-bottom:1px solid var(--rule); padding:10px 12px; white-space:nowrap }
.t th.num { text-align:right }
.t td { height:var(--row-min-h); border-bottom:1px solid var(--border-soft); padding:12px; vertical-align:top }
.t tbody tr:hover td { background:var(--row-hover) }
.t tr:last-child td { border-bottom:0 }
.t.compact td { padding:7px 10px }
.t td.why { font-size:13px; color:var(--muted); max-width:420px }
/* A .reflow table is lines on a phone, one cell to a line, so long values keep whole words and the page
   never scrolls sideways (Privacy's "Shared with Osler"). Wide console tables sit in .tbl instead. */
@media (max-width:639px) { .t.reflow, .t.reflow tbody, .t.reflow tr, .t.reflow td { display:block } .t.reflow tr { padding:6px 0; border-bottom:1px solid var(--border-soft) } .t.reflow tr:last-child { border-bottom:0 } .t.reflow td { height:auto; padding:2px 10px; border:0 } }
/* Status chips (and today's tags): a pill with a role edge, tint and text; part B adds a 14px icon. */
.tag, .chip, .filter { display:inline-flex; align-items:center; gap:6px; min-height:24px; padding:2px 10px; border:1px solid var(--edge); border-radius:var(--radius-pill); background:var(--tint); color:var(--text); font:600 13px/18px var(--font-sans); white-space:nowrap; text-decoration:none; vertical-align:middle }
.tag > svg, .chip > svg { flex:none; width:14px; height:14px }
/* Filter chips, and today's chip links on the access log: a 32px outline pill; chosen is navy. */
.filter, a.chip { min-height:32px; padding:0 14px; margin:0 6px 6px 0; border-color:var(--border-input); background:var(--surface); color:var(--ink); font-weight:500; font-size:14px }
.filter:hover, a.chip:hover { border-color:var(--brand-action); color:var(--ink) }
.chip.on, .filter.on, .filter[aria-current], .filter[aria-pressed="true"] { background:var(--selected-bg); border-color:var(--selected-bg); color:var(--selected-text) }
.filter.zero { color:var(--muted) }
.filters { margin:10px 0 }
.badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:var(--radius-pill); background:var(--ehr-tint); color:var(--ehr-text); font:600 13px/1 var(--font-sans); font-variant-numeric:tabular-nums lining-nums }

/* home */
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:16px; margin:16px 0 24px }
.tile { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 20px; text-decoration:none; color:var(--ink); display:grid; gap:4px }
.tile:hover { border-color:var(--brand-action); color:var(--ink) }
.tile b { font:600 32px/36px var(--font-display); color:var(--heading); font-variant-numeric:tabular-nums lining-nums }
.tile span { font:500 14px/20px var(--font-sans); color:var(--ink) }
.tile .sub { font:500 13px/18px var(--font-sans); color:var(--muted) }
.tile.warn { border-color:var(--warning-border); background:var(--warning-tint) }
.tile.warn b { color:var(--warning-text) }
.choices { list-style:none; padding:0; display:grid; gap:8px }
.choice { display:grid; width:100%; text-align:left; gap:2px; padding:12px 14px; border:1px solid var(--rule); border-radius:10px; background:var(--paper); color:var(--ink); font:inherit; cursor:pointer; text-decoration:none }
.choice span { color:var(--muted); font-size:13.5px }
.choice:hover { border-color:var(--ehr) }
.choices form { margin:0 }

/* case view */
.case-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-bottom:12px }
.case-status { display:flex; flex-direction:column; align-items:flex-end; gap:4px }
.case-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:16px; align-items:start }
@media (max-width:900px) { .case-grid { grid-template-columns:minmax(0,1fr) } .case-status { align-items:flex-start } }
.kv { display:grid; grid-template-columns:minmax(120px, 34%) 1fr; gap:6px 14px; margin:0; font-size:14px }
.kv dt { color:var(--muted) }
.kv dd { margin:0; overflow-wrap:anywhere }
.flags ul { list-style:none; padding:0; margin:0; display:grid; gap:8px }
.flags li { font-size:14px }
.flags li.sev-high { font-weight:600 }
.flags li.sev-moderate { font-weight:500 }
.card.flags, .card.concern-high { border-color:var(--danger-bar) }
.card.ai, .card.osler { border-color:var(--ai-border) }
.ai-label { font:600 13px/18px var(--font-sans); color:var(--ai-text); background:var(--ai-tint); border:1px dashed var(--ai-border); border-radius:var(--radius-sm); padding:1px 6px; vertical-align:2px; white-space:nowrap }
.ai-note { font-size:13px; background:var(--ai-t); border-radius:8px; padding:8px 12px; color:var(--ink) }
.card.decide, .card.provider { border-color:var(--provider-bar) }
fieldset.sugg { border:1px solid var(--rule); border-radius:10px; padding:10px 12px; margin:0; display:grid; gap:8px }
fieldset.sugg legend { padding:0 6px; font-weight:600 }
.choices-row { display:flex; gap:14px; flex-wrap:wrap }
.choices-row label { display:flex; gap:6px; align-items:center; font-weight:500 }
/* The segmented decision: three real radios drawn as one 40px control, with no default. Where :has()
   works, the radio hides and the chosen segment shows a check; elsewhere the radios stay visible. */
.seg { display:inline-flex; flex-wrap:wrap; max-width:100%; border:1px solid var(--border-input); border-radius:var(--radius-md); overflow:hidden }
.seg label { display:flex; align-items:center; gap:8px; min-height:var(--control-h); padding:0 16px; color:var(--heading); font:600 15px/1 var(--font-sans); cursor:pointer }
.seg label + label { border-left:1px solid var(--border-input) }
@supports selector(:has(*)) {
  .seg input { position:absolute; width:1px; height:1px; opacity:0 }
  .seg label:has(input:focus-visible) { outline:var(--focus-width) solid var(--focus-ring); outline-offset:-3px }
  .seg label:has(input:checked)::before { content:""; width:16px; height:16px; background:currentColor; -webkit-mask:var(--icon-check) center / contain no-repeat; mask:var(--icon-check) center / contain no-repeat }
  .seg label:has(input[value="approve"]:checked) { background:var(--provider-tint); color:var(--provider-text) }
  .seg label:has(input[value="change"]:checked) { background:var(--ehr-tint); color:var(--ehr-text) }
  .seg label:has(input[value="decline"]:checked) { background:var(--panel); color:var(--heading) }
  /* "Prescribe instead" shows only for Change; without :has() it always shows (today's behaviour). */
  fieldset.sugg .change-fields { display:none }
  fieldset.sugg:has(input[value="change"]:checked) .change-fields { display:grid; gap:8px }
}
.sugg-list { list-style:none; padding:0; display:grid; gap:10px }
.refused { margin-top:14px; border-top:1px dashed var(--flag); padding-top:10px }
.refused ul { padding-left:18px }
.card.rx { border-color:var(--provider-bar) }
.rx ul { padding-left:18px }
details.add summary { cursor:pointer; font-size:14px; font-weight:600 }
details.add { display:grid; gap:8px }
ul.checks { list-style:none; padding:0; display:grid; gap:6px; font-size:14px }
ul.checks li { position:relative; padding-left:24px }
ul.checks li::before { content:""; position:absolute; left:0; top:2px; width:16px; height:16px; background:var(--danger-text); -webkit-mask:var(--icon-octagon-x) center / contain no-repeat; mask:var(--icon-octagon-x) center / contain no-repeat }
ul.checks li.yes::before { background:var(--success-text); -webkit-mask-image:var(--icon-check); mask-image:var(--icon-check) }

/* catalog and acknowledgments: a tier's edge is a fixed rule (held), never red */
.tier h2 { display:flex; gap:8px; align-items:baseline }
.tier-never_sellable { border-color:var(--held-border) }
.tier-clinic_opt_in { border-color:var(--held-border) }
.ack.signed { border-color:var(--success-bar) }
.warning-text { background:var(--warning-tint); border:1px solid var(--warning-border); padding:10px 14px; border-radius:var(--radius-lg); font-size:14px; margin:8px 0 12px }
.warning-text p:last-child { margin:0 }
.code-hint { font-size:1.1em; letter-spacing:.12em }

/* intake host */
.frame-wrap { border:1px solid var(--ai); border-radius:12px; overflow:hidden; background:#fff }
.frame-wrap iframe { display:block; width:100%; height:760px; border:0 }
/* the kiosk address on the console's kiosk-start page: one unbroken run that wraps anywhere */
.kiosk-url { font-family:var(--font-mono); font-size:16px; line-height:24px; overflow-wrap:anywhere }

/* the patient banner, sticky on every page about one patient, and the chart's tabs under it */
.pt-banner { position:sticky; top:0; z-index:5; padding:16px 24px; background:var(--surface); border-bottom:1px solid var(--border) }
.pt-banner .name { font:600 24px/30px var(--font-display); color:var(--heading) }
.pt-banner .facts { font-size:15px; font-variant-numeric:tabular-nums lining-nums }
.pt-banner .chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px }
/* The tabs scroll sideways and never wrap. The shadow is CSS only: the two surface-coloured covers
   scroll with the tabs (local) and hide the two edge shadows (scroll) while there is nothing to see. */
.chart-tabs { display:flex; gap:4px; min-height:var(--nav-h); padding:0 16px; overflow-x:auto; white-space:nowrap; border-bottom:1px solid var(--border); background:linear-gradient(90deg, var(--surface) 30%, transparent) left / 40px 100% no-repeat local, linear-gradient(270deg, var(--surface) 30%, transparent) right / 40px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .22), transparent) left / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .22), transparent) right / 14px 100% no-repeat scroll, var(--surface) }
/* Osler records: chips first, then the title and when it happened; long text in a scroll box */
.record { padding:14px 0; border-bottom:1px solid var(--border-soft) }
.record:last-child { border-bottom:0 }
.record .chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 6px }
.record .title { font:600 16px/22px var(--font-sans) }
.transcript { max-height:300px; overflow:auto; padding:12px 14px; background:var(--sunken); border:1px solid var(--border); border-radius:var(--radius-md); white-space:pre-wrap; overflow-wrap:anywhere }
.empty { display:grid; justify-items:start; gap:4px; padding:24px; color:var(--muted); font-size:15px; line-height:22px }
.empty > svg { width:24px; height:24px }
.empty .title { font:600 16px/22px var(--font-sans); color:var(--ink) }
/* QR codes are never inverted: the SVG draws its own white quiet zone, in every theme. */
svg.qr { display:block; max-width:100%; height:auto }
.qr-panel { display:flex; flex-wrap:wrap; align-items:center; gap:32px; padding:32px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg) }
.qr-panel svg.qr { width:var(--qr-kiosk) }

/* patient app: the clinic's own bar (its brand colour; text white, or --on-brand where part B sets
   it for a light colour), then the same system as the console, set larger */
.clinic-top { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:4px 16px; min-height:var(--header-h); padding:6px 16px; background:var(--brand, var(--brand-navy)); color:var(--on-brand, #fff) }
.clinic-name { color:inherit; font:600 18px/24px var(--font-sans); text-decoration:none }
.clinic-name:hover { color:inherit }
.pnav { display:flex; flex-wrap:wrap; align-items:center; column-gap:14px; row-gap:6px; margin-left:auto; font-size:15px }
.pnav a { display:inline-flex; align-items:center; min-height:44px; color:inherit }
.pnav a:hover { color:inherit }
.pnav a[aria-current] { box-shadow:inset 0 -3px 0 currentColor; font-weight:600 }
.pnav form { margin:0 }
.menu-phone > summary { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:1px solid currentColor; border-radius:var(--radius-md); font-weight:600 }
body.patient { font-size:17px; line-height:26px }
body.patient h1 { font-size:28px; line-height:34px }
@media (min-width:640px) { body.patient h1 { font-size:30px; line-height:36px } }
body.patient h2 { font-size:22px; line-height:28px }
body.patient h3 { font-size:18px; line-height:24px }
body.patient label { font-size:17px; line-height:24px }
body.patient .small, body.patient .sub, body.patient .help, body.patient .field-error, body.patient .pfoot { font-size:15px; line-height:22px }
body.patient input, body.patient select, body.patient textarea { min-height:var(--patient-control-h); font-size:17px }
body.patient input[type=checkbox], body.patient input[type=radio] { width:var(--checkbox-touch); height:var(--checkbox-touch); min-height:0 }
body.patient .btn { min-height:var(--patient-control-h); padding:0 22px; font-size:17px; white-space:normal; text-align:center }
body.patient .btn.sm { min-height:44px; padding:0 14px; font-size:15px }
/* A patient's pill wraps inside its card (the care plan's "Recommended by your prescriber, awaiting
   approval" ran past a 390px phone); the console's table pills stay on one line. */
body.patient .tag, body.patient .chip { font-size:14px; white-space:normal }
body.patient .flash, body.patient .alert, body.patient .notice { font-size:16px; line-height:24px }
/* A checkbox row on a patient screen is the whole tap target; checked, it takes the EHR tint. */
body.patient label.check { min-height:var(--patient-control-h); padding:12px 14px; border:1px solid var(--border-input); border-radius:var(--radius-md); background:var(--surface) }
body.patient label.check:has(input:checked) { border-color:var(--brand-action); background:var(--ehr-tint) }
@media (max-width:639px) { body.patient .actions .btn.primary, body.patient form > .btn.primary { width:100% } }
.steps { display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:12px 16px 0; margin:0 auto; max-width:720px; counter-reset:s }
.steps li { counter-increment:s; font:600 14px/18px var(--font-sans); color:var(--muted); border:1px solid var(--rule); border-radius:999px; padding:3px 10px; background:var(--surface) }
.steps li::before { content:counter(s) ". " }
.steps li.done { color:var(--prov); border-color:var(--prov) }
.steps li.now { color:var(--paper); background:var(--ink); border-color:var(--ink) }
.hero h1 { font-size:1.9rem }
.actions { display:flex; gap:8px; flex-wrap:wrap }
.consent { border:1px solid var(--rule); border-radius:10px; padding:12px 14px }
.consent.signed { border-color:var(--success-bar) }
.consent-body { font-size:15px; max-height:220px; overflow:auto; background:var(--paper); padding:8px 12px; border-radius:6px; margin-bottom:8px }
.visit { border-top:1px solid var(--rule); padding-top:10px; margin-top:10px }
.pfoot { max-width:720px; margin:0 auto; padding:0 16px 40px; font-size:13px; color:var(--muted) }
/* The platform's one line in the clinic's app: plain words on a line of their own, never a logo. */
.pfoot .powered { display:block; margin-top:8px }

.payload { margin:0; display:grid; gap:2px; font:13px/18px var(--font-mono) }
.payload div { overflow-wrap:anywhere }
.payload span { color:var(--muted) }
.tier-research_use_only { border-color:var(--held-border) }
/* PI-6 patient messages */
.msg { padding:10px 0; border-bottom:1px solid var(--rule) }
.msg:last-child { border-bottom:0 }
.msg.system { padding:10px 12px; margin:6px 0; background:var(--danger-tint); border:1px solid var(--danger-border); border-radius:var(--radius-md) }
.msg.flagged .pre { font-weight:500 }
.pre { white-space:pre-wrap; margin:4px 0 0 }
ul.plain { list-style:none; padding:0; margin:0 }
ul.plain li { padding:6px 0 }

/* The kiosk, the clinic's iPad: light whatever the system theme (its tokens above), larger again, one
   724px column. Part B renders it as body.patient.kiosk, so these rules come after the patient ones. */
body.kiosk { font-size:18px; line-height:27px }
body.kiosk :focus-visible { outline-width:var(--focus-width-kiosk) }
body.kiosk h1 { font-size:34px; line-height:40px }
body.kiosk .greeting { font:600 40px/48px var(--font-display); color:var(--heading) }
body.kiosk .question { margin:0 0 6px; font:600 22px/30px var(--font-display); color:var(--heading) }
body.kiosk .help, body.kiosk .muted, body.kiosk .field-error { font-size:16px; line-height:24px }
body.kiosk label { font-size:18px; line-height:26px; font-weight:600 }
body.kiosk input, body.kiosk select, body.kiosk textarea { min-height:var(--kiosk-field-h); font-size:20px }
body.kiosk .btn { min-height:var(--kiosk-control-h); padding:0 28px; font-size:20px }
body.kiosk .wrap { max-width:calc(var(--kiosk-column) + 32px) }
body.kiosk label.check { min-height:var(--kiosk-control-h) }
.kiosk-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; min-height:var(--kiosk-bar-h); padding:0 48px; background:var(--brand, var(--brand-navy)); color:var(--on-brand, #fff) }
.kiosk-bar .name { font:600 22px/28px var(--font-sans) }
body.kiosk .kiosk-bar .btn { min-height:var(--control-h-lg); padding:0 18px; font-size:18px }
/* "Step 3 of 7 · Health screening" is the progress; the 7-segment bar under it is aria-hidden. */
.progress { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:4px; margin:8px 0 24px }
.progress > span { height:8px; border-radius:4px; background:var(--border) }
.progress > .done, .progress > .now { background:var(--selected-bg) }
/* Kiosk answers: a real radio per label, no default. The radio stays visible as the circle cue, so a
   browser without :has() still shows the choice; :has() adds the navy fill. Not the chart's
   dl.kv.answers, which stays a key-value list. */
.answers:not(.kv) { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px }
.answers:not(.kv) label { display:flex; align-items:center; gap:12px; min-height:var(--kiosk-control-h); padding:0 20px; border:2px solid var(--border-input); border-radius:var(--radius-md); background:var(--surface); color:var(--heading); font:600 20px/1.2 var(--font-sans); cursor:pointer }
.answers:not(.kv) input { width:24px; height:24px; margin:0; accent-color:var(--selected-bg) }
.answers:not(.kv) label:has(input:checked) { background:var(--selected-bg); border-color:var(--selected-bg); color:var(--selected-text) }
.answers:not(.kv) label:has(input:checked) input { accent-color:var(--selected-text) }
.answers:not(.kv) label:has(input:focus-visible) { outline:3px solid var(--focus-ring); outline-offset:2px }
.answers[aria-invalid="true"] label { border-color:var(--danger-bar) }
/* A phone (the demo review of 2026-11-09): one column, so "Somewhere else" fits its card at 390px and
   narrower. The kiosk's iPad (820px) keeps the two columns above. */
@media (max-width:480px) { .answers:not(.kv) { grid-template-columns:minmax(0, 1fr) } }

@media (prefers-color-scheme: dark) {
  select { background-image:var(--chevron-dark) }
  body.kiosk select { background-image:var(--chevron-light) }
}

/* The Osler question (ADR 0049 as amended 2026-11-09): yes or no as the kiosk's answer cards (.answers
   above, a real radio per label, no default), an "Optional" chip, and the authorization's full text
   under a disclosure. The same markup serves the patient app's consents step. */
.osler-choice .answers { margin:12px 0 }
.osler-choice details { margin:8px 0 }
.osler-choice summary { cursor:pointer; font-weight:600; color:var(--brand-action) }


/* Part B: one section per card, in the plan's order (docs/cards/UX-B-plan.md). Each card writes its
   rules only between its own two markers below, so cards built at the same time never edit the same
   lines. A section holds only the page layout A3 lacks: A3's classes come first (.card.provider,
   .pt-banner, .chart-tabs, .record, .qr-panel, .answers, .tiles, .filters, .seg …). Every section obeys
   the theme layer's rules, which tests/unit/ux1-theme.test.ts checks across the whole file:
   - no .flash rule that sets padding, margin, background or border: these sections come after
     .flash:empty, and the empty status line must paint no box;
   - no gradient, no border-left: 3px, no text-transform: uppercase;
   - box-shadow only inset … or var(--shadow-popover);
   - colours as tokens, not hex values; monospace only through .id. */
/* ── UX-B2a: Console shell: band, menus, nav with More ── */
/* ── end UX-B2a ── */


/* ── UX-B2b: Patient and kiosk shell; refusals in the shell; flash wording ── */
/* ── end UX-B2b ── */


/* ── UX-B3a: Home (prescriber): alerts for you, tiles, waiting for you, footer ── */
/* ── end UX-B3a ── */


/* ── UX-B3b: Home: new intakes to check, care-plan drafts to sign ── */
/* ── end UX-B3b ── */


/* ── UX-B3c: Home (MA): messages, orders to move, today's schedule ── */
/* ── end UX-B3c ── */


/* ── UX-B4: Review queue and case page ── */
/* ── end UX-B4 ── */


/* ── UX-B5a: Patient banner and chart tabs at the top ── */
/* ── end UX-B5a ── */


/* ── UX-B5b: Chart Summary ── */
/* ── end UX-B5b ── */


/* ── UX-B6a: Osler records list ── */
/* ── end UX-B6a ── */


/* ── UX-B6b: Osler record page and acknowledging it ── */
/* ── end UX-B6b ── */


/* ── UX-B7: Approval review, GET /orders/:id/approve ── */
/* ── end UX-B7 ── */


/* ── UX-B8: Kiosk start in the console ── */
/* ── end UX-B8 ── */


/* ── UX-B9a: Kiosk shell, waiting screen, form, check and sign ── */
/* ── end UX-B9a ── */


/* ── UX-B9b: Kiosk forms, the optional Osler choice, done with the QR ── */
/* ── end UX-B9b ── */


/* ── UX-B10a: Checkout and the order page ── */
/* ── end UX-B10a ── */


/* ── UX-B10b: Patient Home, the 911 notice, Privacy by title ── */
/* ── end UX-B10b ── */
