mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 04:57:22 +01:00
* chore: add a formatter, matching the style this repo already writes singleQuote=false was chosen by counting this repo's own imports, not by fleet decree. The fleet is genuinely split and the two repos that already had a .prettierrc disagreed with each other, so there was no standard to restore. Quote style does not cross repo boundaries; having a gate does. Markdown is ignored for now — prettier rewraps prose, which would bury the real diff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format with prettier (304 files) Mechanical. No behaviour change. This SHA is listed in .git-blame-ignore-revs so `git blame` skips it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: teach git blame to skip the reformat Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format the two files the reformat pass missed prettier --check flagged app/shared.module.css and lib/domain/clinicians.test.ts on a branch whose whole point was that everything had been formatted. Re-running the same command with the same version fixes both, so the rollout's write step did not finish what it reported. The rollout now runs --check straight after --write and refuses to open a PR unless it comes back clean, so a partial reformat fails at the source instead of in CI. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1067 lines
22 KiB
CSS
1067 lines
22 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;
|
|
}
|
|
|
|
/* Groups the notification bell + user dropdown on the right of .header —
|
|
shared by both portal and admin, which is the point: one definition. */
|
|
.headerActions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.main {
|
|
padding: 2.5rem;
|
|
flex: 1;
|
|
}
|
|
|
|
/* ─── Page header ────────────────────────────────────────────────────────── */
|
|
|
|
.pageEyebrow {
|
|
font-size: 0.68rem;
|
|
letter-spacing: 0.22em;
|
|
text-transform: uppercase;
|
|
color: var(--teal);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Sharper scale contrast against the micro-labels around it (breadcrumb,
|
|
card titles, eyebrows) — the single biggest lever for a page reading as
|
|
confident rather than uniformly soft. Size up, tighten the line, keep the
|
|
Cormorant serif + teal italic emphasis: that pairing is the brand, not
|
|
the part that needed to change. */
|
|
.pageTitle {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 2.6rem;
|
|
font-weight: 300;
|
|
line-height: 1.08;
|
|
letter-spacing: -0.01em;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.pageTitle em {
|
|
font-style: italic;
|
|
color: var(--teal);
|
|
}
|
|
|
|
.pageSub {
|
|
font-size: 0.82rem;
|
|
color: var(--muted);
|
|
margin-bottom: 2.25rem;
|
|
max-width: 34rem;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* ─── Dark banner ────────────────────────────────────────────────────────────
|
|
The ink card that carries a headline result or confirmation (dashboard's
|
|
assessment/CTA hero, the assessment "saved" confirmation). Two independent
|
|
definitions of this same idea used to drift — different padding, different
|
|
title size — every time either one was touched. One definition; each call
|
|
site composes it and adds only its own layout (a head row, an actions
|
|
row) on top, since content shape genuinely differs page to page. */
|
|
|
|
.darkBanner {
|
|
background: var(--ink);
|
|
border-radius: var(--radius-xl);
|
|
padding: 1.75rem 2rem;
|
|
}
|
|
|
|
.darkBannerEyebrow {
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: var(--white-55);
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.darkBannerTitle {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 1.7rem;
|
|
font-weight: 300;
|
|
color: var(--white);
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.darkBannerBody {
|
|
font-size: 0.85rem;
|
|
color: var(--faint);
|
|
line-height: 1.7;
|
|
max-width: 540px;
|
|
}
|
|
|
|
.darkBannerLink {
|
|
font-size: 0.75rem;
|
|
text-decoration: none;
|
|
letter-spacing: 0.06em;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.darkBannerLink:hover,
|
|
.darkBannerLink:focus-visible {
|
|
color: var(--white);
|
|
outline: none;
|
|
}
|
|
|
|
.darkBannerLinkPrimary {
|
|
composes: darkBannerLink;
|
|
color: var(--teal-on-dark);
|
|
}
|
|
|
|
.darkBannerLinkMuted {
|
|
composes: darkBannerLink;
|
|
color: var(--white-58);
|
|
}
|
|
|
|
/* ─── 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);
|
|
/* A ghost button needs a border the eye actually registers — --border
|
|
(a pale beige, ~1.3:1 against white) reads as no border at all until
|
|
hover. --ink2 at 1px gives it a real edge without going as heavy as a
|
|
filled button. */
|
|
border: 1px solid var(--ink2);
|
|
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.7rem;
|
|
color: var(--muted);
|
|
letter-spacing: 0.16em;
|
|
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.75rem;
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|