mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 05:37:46 +01:00
Two real gaps, both already half-built. DOCTOR CHOICE ALREADY EXISTED — CareTeamCard on the profile page, and /api/care-team already let a patient pick without an admin round trip. What was missing was the other half of that sentence: the doctor's own say. A clinician could not signal "I am full right now", so the only way to protect a calendar from new patients was for Manuel to manually turn people away. profiles.acceptingPatients is self-service — a clinician sets their own, nobody sets it for them, and there is no admin override route. Enforcement is ONE function, canPatientChooseClinician(), called at both places a patient actually chooses a doctor: adding them to the care team, and booking a first slot with them. Two different doors, one rule, so "not accepting" means the same thing at both. The rule is deliberately narrow: closing intake protects a calendar from NEW patients, and must never look like a doctor dropping someone mid-treatment. An existing relationship — care-team membership, or ANY prior booking, even one still pending — always continues. A dual-role clinician can always choose themselves. A closed clinician is never hidden from the roster; hiding a person reads as the clinic disowning them, and an existing patient must still be able to find their own doctor in the list. Staff booking on a patient's behalf may override — the clinic picking up the phone is the exception being made, not a patient finding a workaround. Surfaced everywhere the roster already renders: a "Not accepting new patients" badge in warn tone (never danger — this is a normal practice state, not a fault) in the care-team picker and the booking picker, the Choose button disabled with the server's own reason as its tooltip, and the Confirm button on a closed doctor's slot honestly relabelled rather than left to fail after the fact. THE AI ASSISTANT ALREADY EXISTED, on one side. #53 wired threadkit's model seam into thread conversations — consent-gated, participant-visibility-scoped, prompted to defer every clinical question — and put an "Ask assistant" button on the ADMIN thread view. The API route was already generic (requireSession, any participant may call it); only the patient's own thread page never grew the button. "They all can brainstorm solutions together" needed the same control on both sides of the same thread, not a new capability. Mirrors the admin handler exactly: on demand only, posts into the shared thread so the clinician sees precisely what the patient saw, and turns the 451 legal-gate response into an actionable note ("turn on AI in your privacy settings") rather than a dead button. Also: two definitions of "the clinician roster" existed (care-team.ts and scheduling-data.ts) for different reasons — one needs email for availability rules and orders by account age, the other doesn't. Not merged; both note the duplication and the rule that would trigger unifying them (a third caller). The checkbox-toggle CSS pattern DID have two definitions with no reason (portal-only, needed on admin too) — moved to shared.module.css, both sides compose from it now. +19 tests. 1264 passing; build green. Migration 0011 is additive-only, one boolean column. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
971 lines
20 KiB
CSS
971 lines
20 KiB
CSS
/* ─── Shared app primitives ──────────────────────────────────────────────────
|
|
SSOT for every visual pattern the patient portal AND the admin panel share:
|
|
shell, page header, cards, buttons, badges, stats, progress bars, empty
|
|
states, form basics, message threads, document lists, error boundaries.
|
|
|
|
portal.module.css and admin.module.css re-export these via `composes` so
|
|
pages keep a single styles import. Variants that override base properties
|
|
(padding, background) are defined HERE beside the base — cross-file
|
|
`composes` has unspecified order when both files set the same property.
|
|
Form field/label/input live in forms.module.css (older SSOT, unchanged). */
|
|
|
|
/* ─── Shell ──────────────────────────────────────────────────────────────── */
|
|
|
|
.mainWrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
/* Shells place this in a grid column — without this, any nowrap scroll row
|
|
(day tabs) widens the grid track and the whole page overflows instead of
|
|
the row scrolling internally (grid items default to min-width: auto). */
|
|
min-width: 0;
|
|
/* Soft teal wash below the header — quiet depth instead of a flat panel */
|
|
background:
|
|
linear-gradient(180deg, var(--teal-6) 0%, transparent 220px),
|
|
var(--off);
|
|
}
|
|
|
|
.header {
|
|
height: 56px;
|
|
background: var(--white-90);
|
|
backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 2.5rem;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: var(--z-sticky);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.main {
|
|
padding: 2.5rem;
|
|
flex: 1;
|
|
}
|
|
|
|
/* ─── Page header ────────────────────────────────────────────────────────── */
|
|
|
|
.pageEyebrow {
|
|
font-size: 0.68rem;
|
|
letter-spacing: 0.18em;
|
|
text-transform: uppercase;
|
|
color: var(--teal);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.pageTitle {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 2.2rem;
|
|
font-weight: 300;
|
|
line-height: 1.15;
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.pageTitle em {
|
|
font-style: italic;
|
|
color: var(--teal);
|
|
}
|
|
|
|
.pageSub {
|
|
font-size: 0.82rem;
|
|
color: var(--muted);
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
/* Title/sub block + primary action side by side */
|
|
.pageHeader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 2rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* ─── Cards ──────────────────────────────────────────────────────────────── */
|
|
|
|
.card {
|
|
background: var(--white);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-xl);
|
|
padding: 1.75rem;
|
|
box-shadow: var(--shadow-xs);
|
|
}
|
|
|
|
.cardMb {
|
|
composes: card;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Card above a list */
|
|
.cardGap {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Variants that override base properties live beside the base (order-safe) */
|
|
.cardMuted {
|
|
composes: card;
|
|
background: var(--off);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.cardWarn {
|
|
composes: card;
|
|
border-left: 3px solid var(--warn);
|
|
}
|
|
|
|
.cardTight {
|
|
composes: card;
|
|
padding: 1.25rem 1.75rem;
|
|
}
|
|
|
|
.cardTitle {
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.15em;
|
|
text-transform: uppercase;
|
|
color: var(--teal);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.cardTitleFlush {
|
|
composes: cardTitle;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Muted variant — section labels between cards */
|
|
.sectionLabel {
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
/* ─── Buttons ────────────────────────────────────────────────────────────── */
|
|
|
|
.btnPrimary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
background: var(--ink);
|
|
color: var(--white);
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
padding: 0.7rem 1.4rem;
|
|
min-height: 2.75rem;
|
|
font-family: var(--font-dm-sans), sans-serif;
|
|
font-size: 0.75rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.btnPrimary:hover,
|
|
.btnPrimary:focus-visible {
|
|
background: var(--teal);
|
|
color: var(--white);
|
|
outline: none;
|
|
}
|
|
|
|
.btnPrimary:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.btnSm {
|
|
padding: 0.5rem 1rem;
|
|
min-height: 2.25rem;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.btnBlock {
|
|
width: 100%;
|
|
}
|
|
|
|
.btnSecondary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
background: transparent;
|
|
color: var(--ink2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.7rem 1.4rem;
|
|
min-height: 2.75rem;
|
|
font-family: var(--font-dm-sans), sans-serif;
|
|
font-size: 0.75rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast), border-color var(--transition-fast);
|
|
}
|
|
|
|
.btnSecondary:hover,
|
|
.btnSecondary:focus-visible {
|
|
background: var(--off);
|
|
border-color: var(--ink2);
|
|
outline: none;
|
|
}
|
|
|
|
.btnSecondary:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
/* Inline text button (retry links, quiet actions) */
|
|
.btnText {
|
|
color: var(--teal);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: inherit;
|
|
padding: 0;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.btnText:hover,
|
|
.btnText:focus-visible {
|
|
color: var(--teal-dark);
|
|
outline: none;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ─── Badges / pills ─────────────────────────────────────────────────────── */
|
|
|
|
.pill {
|
|
display: inline-block;
|
|
font-size: 0.68rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
padding: 0.25rem 0.65rem;
|
|
border-radius: var(--radius-pill);
|
|
white-space: nowrap;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.pillTeal {
|
|
composes: pill;
|
|
color: var(--teal);
|
|
background: var(--teal-10);
|
|
}
|
|
|
|
.pillGold {
|
|
composes: pill;
|
|
color: var(--gold);
|
|
background: var(--gold-12);
|
|
}
|
|
|
|
/* ─── Stat numbers (Cormorant display scale) ─────────────────────────────── */
|
|
|
|
.statValue {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-weight: 300;
|
|
line-height: 1;
|
|
}
|
|
|
|
.statSm { font-size: 1.4rem; }
|
|
.statMd { font-size: 1.6rem; }
|
|
.statLg { font-size: 2.2rem; }
|
|
.statXl { font-size: 3rem; }
|
|
|
|
/* ─── Progress bars ──────────────────────────────────────────────────────── */
|
|
|
|
.progressTrack {
|
|
height: 5px;
|
|
background: var(--light);
|
|
border-radius: var(--radius-2xs);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progressFill {
|
|
height: 100%;
|
|
background: var(--teal);
|
|
border-radius: var(--radius-2xs);
|
|
transition: width var(--transition-normal) ease;
|
|
}
|
|
|
|
.progressLabel {
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
margin: 0;
|
|
}
|
|
|
|
/* ─── Empty states ───────────────────────────────────────────────────────── */
|
|
|
|
.emptyState {
|
|
text-align: center;
|
|
padding: 3rem 2rem;
|
|
color: var(--muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.emptyTitle {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 1.35rem;
|
|
font-weight: 500;
|
|
color: var(--ink);
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
|
|
.emptyBody {
|
|
color: var(--muted);
|
|
font-size: 0.85rem;
|
|
max-width: 420px;
|
|
margin: 0 auto;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.emptyAction {
|
|
composes: btnPrimary;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* ─── Success check circle ───────────────────────────────────────────────── */
|
|
|
|
.checkCircle {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
border-radius: var(--radius-full);
|
|
background: var(--teal-10);
|
|
color: var(--teal);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ─── Form basics (textarea-level; field/label/input → forms.module.css) ── */
|
|
|
|
.formStack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.formTextarea {
|
|
width: 100%;
|
|
padding: 0.65rem 0.9rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
color: var(--ink);
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
box-sizing: border-box;
|
|
transition: border-color var(--transition-fast);
|
|
}
|
|
|
|
.formTextarea:focus {
|
|
outline: none;
|
|
border-color: var(--teal);
|
|
}
|
|
|
|
.formTextareaLg {
|
|
composes: formTextarea;
|
|
min-height: 120px;
|
|
}
|
|
|
|
.formError {
|
|
font-size: 0.75rem;
|
|
color: var(--danger);
|
|
margin: 0;
|
|
}
|
|
|
|
.formErrorTop {
|
|
composes: formError;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.formHint {
|
|
font-size: 0.82rem;
|
|
color: var(--muted);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* ─── Checkbox / toggle row ───────────────────────────────────────────────── */
|
|
/* Was defined once, in the portal only (AI-consent toggle). Moved here so a
|
|
second toggle — a clinician's own "accepting new patients" — is the SAME
|
|
visual pattern instead of a second definition drifting from the first. */
|
|
|
|
.checkboxRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 0.85rem;
|
|
color: var(--ink2);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkboxInput {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
accent-color: var(--teal);
|
|
}
|
|
|
|
.checkboxHint {
|
|
font-size: 0.75rem;
|
|
color: var(--muted);
|
|
margin: 0.5rem 0 1rem;
|
|
}
|
|
|
|
.checkboxHint:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.formActions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* ─── Lists / meta text ──────────────────────────────────────────────────── */
|
|
|
|
.listStack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.meta {
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.metaSm {
|
|
font-size: 0.72rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
/* ─── Document list ──────────────────────────────────────────────────────── */
|
|
|
|
.docList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.docRow {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.docTitle {
|
|
font-size: 0.9rem;
|
|
color: var(--ink);
|
|
margin: 0 0 0.15rem;
|
|
}
|
|
|
|
.docMeta {
|
|
font-size: 0.75rem;
|
|
color: var(--muted);
|
|
margin: 0;
|
|
}
|
|
|
|
.docLink {
|
|
color: var(--teal);
|
|
font-size: 0.8rem;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.docLink:hover,
|
|
.docLink:focus-visible {
|
|
color: var(--teal-dark);
|
|
text-decoration: underline;
|
|
outline: none;
|
|
}
|
|
|
|
/* ─── Message thread ─────────────────────────────────────────────────────── */
|
|
|
|
.msgList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.msgRow {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.msgRowEnd {
|
|
composes: msgRow;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.msgBubble {
|
|
max-width: 75%;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: var(--radius-xl);
|
|
font-size: 0.88rem;
|
|
line-height: 1.55;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.msgBubbleAccent {
|
|
composes: msgBubble;
|
|
background: var(--teal);
|
|
color: var(--white);
|
|
border-bottom-right-radius: var(--radius-xs);
|
|
}
|
|
|
|
.msgBubbleNeutral {
|
|
composes: msgBubble;
|
|
background: var(--light);
|
|
color: var(--ink);
|
|
border-bottom-left-radius: var(--radius-xs);
|
|
}
|
|
|
|
.msgMeta {
|
|
font-size: 0.68rem;
|
|
color: var(--muted);
|
|
padding: 0 0.25rem;
|
|
}
|
|
|
|
.composeForm {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* Inline compose row — textarea beside the send button (thread views) */
|
|
.composeRow {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.composeTextarea {
|
|
composes: formTextarea;
|
|
flex: 1;
|
|
resize: none;
|
|
min-height: 64px;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.sendBtn {
|
|
composes: btnPrimary;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.unreadDot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--teal);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.backLink {
|
|
font-size: 0.78rem;
|
|
color: var(--teal);
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
margin-bottom: 1rem;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.backLink:hover,
|
|
.backLink:focus-visible {
|
|
color: var(--teal-dark);
|
|
outline: none;
|
|
}
|
|
|
|
.msgRead {
|
|
color: var(--teal);
|
|
}
|
|
|
|
/* ─── Legal-gate notice (HTTP 451 surfaces) ──────────────────────────────── */
|
|
|
|
.legalNotice {
|
|
border: 1px solid var(--gold-30);
|
|
background: var(--gold-6);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1rem 1.25rem;
|
|
font-size: 0.82rem;
|
|
line-height: 1.6;
|
|
color: var(--ink2);
|
|
}
|
|
|
|
.legalNoticeTitle {
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--gold);
|
|
margin: 0 0 0.4rem;
|
|
}
|
|
|
|
.legalNoticeLaw {
|
|
margin: 0.4rem 0 0;
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.legalNoticeLink {
|
|
color: var(--teal);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.legalNoticeLink:hover,
|
|
.legalNoticeLink:focus-visible {
|
|
text-decoration: underline;
|
|
outline: none;
|
|
}
|
|
|
|
/* AI output — rendered as preformatted prose */
|
|
.aiOutput {
|
|
font-size: 0.85rem;
|
|
line-height: 1.7;
|
|
color: var(--ink2);
|
|
white-space: pre-wrap;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ─── Header breadcrumb (portal + admin shells) ──────────────────────────── */
|
|
|
|
.breadcrumb {
|
|
font-size: 0.72rem;
|
|
color: var(--muted);
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* ─── Role switch (dual-role clinician⇄patient) ──────────────────────────── */
|
|
/* Sidebar link that swaps between the patient portal and the clinician area.
|
|
Same treatment in both shells so switching always looks like switching. */
|
|
|
|
.roleSwitch {
|
|
display: block;
|
|
margin-top: auto;
|
|
padding: 0.65rem 0.75rem;
|
|
border-top: 1px solid var(--white-10);
|
|
font-size: 0.68rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--white-58);
|
|
text-decoration: none;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.roleSwitch:hover,
|
|
.roleSwitch:focus-visible {
|
|
color: var(--white-90);
|
|
outline: none;
|
|
}
|
|
|
|
/* ─── Error boundary ─────────────────────────────────────────────────────── */
|
|
|
|
.errorPage {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 60vh;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.errorTitle {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 1.5rem;
|
|
font-weight: 500;
|
|
color: var(--ink);
|
|
margin: 0;
|
|
}
|
|
|
|
.errorBody {
|
|
color: var(--muted);
|
|
max-width: 420px;
|
|
margin: 0;
|
|
}
|
|
|
|
.errorActions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 0.5rem;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.errorRetry {
|
|
composes: btnPrimary;
|
|
}
|
|
|
|
.errorHome {
|
|
color: var(--teal);
|
|
font-size: 0.875rem;
|
|
text-decoration: none;
|
|
padding: 0.6rem 0;
|
|
}
|
|
|
|
.errorHome:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ─── Clinical measurements ──────────────────────────────────────────────── */
|
|
|
|
.mCategory {
|
|
margin-bottom: 1.75rem;
|
|
}
|
|
|
|
.mCategoryTitle {
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
margin: 0 0 0.6rem;
|
|
}
|
|
|
|
.mRow {
|
|
display: grid;
|
|
grid-template-columns: minmax(9rem, 1.6fr) minmax(6rem, auto) minmax(5rem, auto) minmax(6rem, 1fr) auto;
|
|
align-items: baseline;
|
|
gap: 0.5rem 1rem;
|
|
padding: 0.6rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
width: 100%;
|
|
text-align: left;
|
|
background: none;
|
|
border-left: none;
|
|
border-right: none;
|
|
border-top: none;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.mRow:hover,
|
|
.mRow:focus-visible {
|
|
background: var(--teal-6);
|
|
outline: none;
|
|
}
|
|
|
|
.mLabel {
|
|
font-size: 0.88rem;
|
|
color: var(--ink);
|
|
}
|
|
|
|
/* A measured number is the thing the eye should land on first. */
|
|
.mValue {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-weight: 300;
|
|
font-size: 1.35rem;
|
|
line-height: 1;
|
|
color: var(--ink);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mUnit {
|
|
font-family: var(--font-dm-sans), sans-serif;
|
|
font-size: 0.72rem;
|
|
color: var(--muted);
|
|
margin-left: 0.3rem;
|
|
}
|
|
|
|
.mRange {
|
|
font-size: 0.75rem;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mDate {
|
|
font-size: 0.72rem;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Status is carried by a word as well as a colour — colour alone excludes
|
|
anyone who cannot distinguish these two, on a page about their health. */
|
|
.mStatus {
|
|
composes: pill;
|
|
}
|
|
|
|
.mStatusWithin {
|
|
composes: mStatus;
|
|
color: var(--teal);
|
|
background: var(--teal-10);
|
|
}
|
|
|
|
.mStatusOut {
|
|
composes: mStatus;
|
|
color: var(--warn);
|
|
background: var(--warn-10);
|
|
}
|
|
|
|
.mStatusAlert {
|
|
composes: mStatus;
|
|
color: var(--danger);
|
|
background: var(--danger-10);
|
|
}
|
|
|
|
.mStatusUnrated {
|
|
composes: mStatus;
|
|
color: var(--muted);
|
|
background: var(--muted-10);
|
|
}
|
|
|
|
.mTrend {
|
|
font-size: 0.75rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mTrendImproving { color: var(--teal); }
|
|
.mTrendWorsening { color: var(--warn); }
|
|
.mTrendSteady { color: var(--muted); }
|
|
|
|
.mDetail {
|
|
padding: 0.9rem 0 1.1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.mDetailNote {
|
|
font-size: 0.8rem;
|
|
color: var(--muted);
|
|
margin: 0 0 0.6rem;
|
|
max-width: 46rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.mHistoryRow {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.3rem 0;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.mHistoryMeta {
|
|
color: var(--muted);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.mAlertBanner {
|
|
border: 1px solid var(--danger);
|
|
background: var(--danger-10);
|
|
border-radius: var(--radius-lg);
|
|
padding: 0.9rem 1.1rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.mAlertTitle {
|
|
font-size: 0.8rem;
|
|
color: var(--danger);
|
|
margin: 0 0 0.35rem;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.mAlertItem {
|
|
font-size: 0.82rem;
|
|
color: var(--ink);
|
|
margin: 0;
|
|
}
|
|
|
|
.mEntryGrid {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr auto;
|
|
gap: 0.6rem;
|
|
align-items: end;
|
|
margin-bottom: 0.6rem;
|
|
}
|
|
|
|
.mToolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.mDerived {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1.5rem;
|
|
padding: 0.9rem 1.1rem;
|
|
background: var(--off);
|
|
border-radius: var(--radius-lg);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.mDerivedItem {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.mDerivedLabel {
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
|
|
/* ─── Responsive (all media rules at file end) ───────────────────────────── */
|
|
|
|
@media (max-width: 767px) {
|
|
.header {
|
|
padding: 0 1.25rem;
|
|
}
|
|
|
|
.main {
|
|
padding: 1.5rem 1.25rem;
|
|
}
|
|
|
|
.pageTitle {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.pageSub {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.pageHeader {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.card {
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.msgBubble {
|
|
max-width: 88%;
|
|
}
|
|
|
|
/* The five-column reading line collapses to label-over-value: a clinical
|
|
table that scrolls sideways on a phone is a table nobody reads on a phone. */
|
|
.mRow {
|
|
grid-template-columns: 1fr auto;
|
|
gap: 0.25rem 0.75rem;
|
|
}
|
|
|
|
.mRange,
|
|
.mDate {
|
|
grid-column: 1 / -1;
|
|
text-align: left;
|
|
}
|
|
|
|
.mEntryGrid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|