:root {
  --navy: #0B1D3A;
  --gold: #B8924A;
  --cream: #FAF7F0;
  --sand: #F3EEE3;
  --line: #E8E2D6;
  --ink: #3E4152;
  --muted: #5A5A6E;
  --panel: #020A16;
  --card: #FFFFFF;
  --green-bg: #E4EFE6; --green-fg: #3F7350;
  --yellow-bg: #FBEBDC; --yellow-fg: #9A4A12;
  --red-bg: #F7E3DE; --red-fg: #A1412F;
  --grey-bg: #ECEAE5; --grey-fg: #66645E;
  --dev: #2B2F3A;
  /* Audit Nov 29, 2026 (contrast): gold for text on light backgrounds (5.0:1; --gold is 2.7–2.9:1 there and stays for
     the brand on navy), and a border for inputs and answer choices that reaches 3:1. */
  --gold-ink: #8A6A2E;
  --line-strong: #948C7C;
  --dot-yellow: #E0A526; --dot-orange: #E8771E; --dot-red: #A8382B;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 15px/1.5 "DM Sans", system-ui, sans-serif; }
button, select, textarea { font: inherit; }

/* Development bar: makes it obvious this build has no sign-in */
.devbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 8px 24px; background: var(--dev); color: #D9DCE3; font-size: 13px; }
.devtag { background: #F2CFA9; color: #5A2E06; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.devnote { flex: 1 1 220px; }
.devfield { display: flex; align-items: center; gap: 8px; }
.devfield select { background: #3A3F4C; color: #fff; border: 1px solid #555B6B; border-radius: 6px; padding: 4px 8px; max-width: 70vw; }
.seg { display: inline-flex; border: 1px solid #555B6B; border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; color: #D9DCE3; border: 0; padding: 5px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #F2CFA9; color: #3A2208; font-weight: 600; }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding: 18px 24px; background: var(--navy); color: var(--cream); }
.brand { font-family: "Playfair Display", serif; font-size: 24px; }
.brand span { color: var(--gold); }
.who { color: #D9DCE3; font-size: 14px; }
.who strong { color: var(--cream); font-weight: 600; }

.tabs { display: flex; gap: 4px; padding: 0 24px; background: var(--navy); overflow-x: auto; }
.tabs button { background: transparent; border: 0; color: #B7BCC8; padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs button[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--gold); }
.tabs .dot { width: 9px; height: 9px; border-radius: 50%; }
.tabs .soon { color: #6E7486; cursor: default; font-size: 13px; }

main { padding: 20px 24px 48px; max-width: 1360px; margin: 0 auto; }
h2 { font-family: "Playfair Display", serif; font-weight: 500; color: var(--navy); font-size: 19px; margin: 0 0 10px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }

.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.c-green { background: var(--green-bg); color: var(--green-fg); }
.c-yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.c-red { background: var(--red-bg); color: var(--red-fg); }
.c-grey { background: var(--grey-bg); color: var(--grey-fg); }
.c-none { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.dot.c-none { background: transparent; border: 1px solid #9C9A93; }
.dot.c-green { background: var(--green-fg); } .dot.c-yellow { background: var(--dot-yellow); } .dot.c-red { background: var(--dot-red); } .dot.c-grey { background: #9C9A93; }

/* Member view */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; margin-bottom: 18px; }
.verdict .pill { margin-top: 6px; font-size: 13px; padding: 4px 12px; justify-self: start; }
.verdict .headline { font-family: "Playfair Display", serif; font-size: 21px; line-height: 1.4; color: var(--navy); margin: 0; }
.verdict .headline p { margin: 0 0 6px; }
.risk { grid-column: 2; background: var(--sand); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.risk p { margin: 0 0 4px; }
.risk small { color: var(--muted); display: block; margin-top: 6px; }

.layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(260px, 340px) minmax(280px, 1fr); gap: 18px; align-items: start; }
.avatar { background: var(--panel); border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; position: relative; container-type: size; }
/* The stage is the 1365×1024 image scaled to cover the frame (centered, 30% from the top), so pins placed in image % stay on their body site. */
.avatar .stage {
  position: absolute;
  width: max(100cqw, 100cqh * 1365 / 1024); height: max(100cqh, 100cqw * 1024 / 1365);
  left: calc((100cqw - max(100cqw, 100cqh * 1365 / 1024)) * .5); top: calc((100cqh - max(100cqh, 100cqw * 1024 / 1365)) * .3);
}
.avatar img { width: 100%; height: 100%; display: block; }
.apin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.apin.c-green { background: var(--green-fg); } .apin.c-yellow { background: var(--dot-yellow); } .apin.c-red { background: var(--dot-red); } .apin.c-grey { background: #9C9A93; }

/* VO₂ gauge (Dec 1, 2026): blended colours on a light card, as in the iPhone app. */
.gauge-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; padding: 14px 14px 12px; text-align: center; }
.gauge-dial { max-width: 260px; margin: 0 auto; color: var(--navy); }
.gauge { width: 100%; display: block; }
.gauge-ends { display: flex; justify-content: space-between; padding: 0 2%; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gauge-word { font-family: "Playfair Display", serif; color: var(--navy); font-size: 22px; margin-top: 4px; }
.gauge-note { color: var(--muted); }
.rv-vo2 { text-align: center; }
.rv-vo2 h3 { text-align: left; }
.rv-vo2 .gauge-dial { max-width: 90%; }
.pins { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink); }
.pins li { display: inline-flex; align-items: center; gap: 6px; }
.pins .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .label { font-weight: 600; color: var(--navy); }
.rows .value { grid-column: 1; font-size: 15px; }
.rows .meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.rows .pill { grid-row: 1 / span 2; grid-column: 2; align-self: center; min-width: 70px; text-align: center; }

.plan { display: grid; gap: 12px; }
.plan .slot h3 { margin-bottom: 4px; }
.plan .slot p { margin: 0 0 6px; }
.empty { color: var(--muted); font-style: italic; }
.review { text-align: center; padding: 48px 24px; }
.review p { max-width: 520px; margin: 8px auto 0; color: var(--muted); }

/* Merged plan */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.plan-sec .list li { margin-bottom: 6px; }
.prio { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.prio:first-of-type { border-top: 0; }
.prio p { margin: 2px 0; }
.prio-n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.constraints { background: var(--yellow-bg); border-radius: 8px; padding: 8px 12px; margin-top: 8px; }

/* Provider view */
.pgrid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.2fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 14px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--sand); color: var(--navy); }
.badge.ok { background: var(--green-bg); color: var(--green-fg); }
.badge.no { background: var(--red-bg); color: var(--red-fg); }
.list { margin: 0; padding-left: 18px; }
.list li { margin-bottom: 4px; }
.todo li { color: var(--red-fg); }
.pslot { border-top: 1px solid var(--line); padding: 10px 0; }
.pslot:first-of-type { border-top: 0; }
.pslot .k { font-weight: 700; color: var(--navy); }
.pslot .sub { font-size: 12.5px; color: var(--muted); }
.pslot p { margin: 4px 0; }
.pslot .who-sees { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
table.trace { width: 100%; border-collapse: collapse; font-size: 13px; }
.trace th, .trace td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.trace th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.trace code { font-size: 12px; color: var(--navy); }
.trace details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.trace pre { white-space: pre-wrap; word-break: break-word; font-size: 11.5px; background: var(--sand); padding: 6px; border-radius: 6px; margin: 4px 0 0; }
.o-met { color: var(--green-fg); font-weight: 700; }
.o-not_met { color: var(--muted); }
.o-cannot_evaluate { color: var(--red-fg); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
textarea.json { width: 100%; min-height: 360px; font: 12.5px/1.45 ui-monospace, Menlo, monospace; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #FCFAF5; color: var(--ink); }
.actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.btn { border: 1px solid var(--navy); background: var(--navy); color: var(--cream); border-radius: 8px; padding: 7px 14px; cursor: pointer; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--navy); }
.err { color: var(--red-fg); font-size: 13px; }
.note { font-size: 12.5px; color: var(--muted); }
.edited { background: #F2CFA9; color: #5A2E06; }

@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr 1fr; }
  .avatar-col { grid-column: 1 / -1; order: -1; }
  .avatar { aspect-ratio: 16 / 9; }
  .pgrid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  main { padding: 16px 16px 40px; }
  .devbar, .top, .tabs { padding-left: 16px; padding-right: 16px; }
  .layout { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .risk { grid-column: 1; }
  .verdict .headline { font-size: 19px; }
  .trace .hide-sm { display: none; }
}

/* Exercise pick list (provider workspace) */
fieldset.picks { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 10px 0 6px; }
fieldset.picks legend { font-weight: 700; color: var(--navy); padding: 0; display: flex; gap: 8px; align-items: center; }
label.pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
label.pick input { margin: 0; transform: translateY(1px); }
label.pick .sub { font-size: 12.5px; color: var(--muted); }
label.pick.off { color: var(--muted); cursor: not-allowed; }

/* Provider review and publishing */
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.rv .meta-line h3 { margin: 0; }
.rv-item p { margin: 4px 0; }
.rv-item .struck { text-decoration: line-through; color: var(--muted); }
.rv-form { display: grid; gap: 6px; margin-top: 6px; }
.rv-input, .rv-note { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #FCFAF5; color: var(--ink); }
.rv-added { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.rv-added h4 { margin: 0 0 6px; font-size: 13px; color: var(--navy); }
.rv-added .actions .rv-input { flex: 1 1 200px; width: auto; }
.badge.rv-waiting, .badge.rv-draft { background: var(--sand); color: var(--navy); }
.badge.rv-ready { background: #F9EEDA; color: #6B4A12; }
.badge.rv-reviewed { background: #E4ECF7; color: #1F3A63; }
.sec-actions { flex-wrap: wrap; align-items: center; gap: 10px; }
.fr-release { margin-top: 12px; align-items: center; gap: 10px; }
.badge.rv-published { background: var(--green-bg); color: var(--green-fg); }
.badge.rv-update_needed { background: var(--red-bg); color: var(--red-fg); }
.released-note { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.release-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-title { font-size: 18px; margin: 4px 0 10px; }
.print h1 { font-family: "Playfair Display", serif; font-weight: 500; font-size: 26px; margin: 0 0 4px; }
.print-sec { border-top: 1px solid var(--line); padding: 10px 0; }
.print-sec h2 { margin: 0 0 4px; font-size: 17px; }

@media print {
  .devbar, .tabs, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 6px 0; break-inside: avoid; }
  .plan-grid { display: block; }
}

/* Typed entry and worklist */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; }
.fld { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.fld.wide { grid-column: 1 / -1; }
.fld select { font: inherit; font-size: 14px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #FCFAF5; }
.btn.devbtn { margin-left: auto; color: #D9DCE3; border-color: #5A6278; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; text-align: left; }
.wl td { font-size: 13.5px; }
.wl-alerts { list-style: none; margin: 6px 0 0; padding: 6px 8px; border-left: 3px solid #A23B2A; background: #FBEDEA; color: #6E1F14; font-size: 12.5px; border-radius: 4px; }
.wl-alerts li + li { margin-top: 4px; }
.mode-grid { display: grid; gap: 6px; }
.mode-group { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 8px; }
.mode-group .actions { margin-top: 0; }
.mode-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) { .mode-group { grid-template-columns: 1fr; } }
.rows-table td { padding: 4px; }
.rows-table input.rv-input { min-width: 90px; }
.with-unit { display: flex; gap: 6px; align-items: center; }
.with-unit .rv-input { flex: 1 1 auto; min-width: 0; }
.with-unit .unit-sel { flex: 0 0 auto; }

/* Enter results: list of entry screens on the left, the chosen screen on the right */
.intake-split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.intake-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 14px 10px 14px 14px; }
.intake-side h3 { margin: 0 0 6px; }
.side-group { display: grid; gap: 1px; padding: 8px 0 4px; border-top: 1px solid var(--line); }
.side-group:first-of-type { border-top: 0; }
.side-group .mode-label { padding: 0 8px 3px; }
.side-item { text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 5px 8px; font-size: 14px; color: var(--ink); cursor: pointer; line-height: 1.3; }
.side-item:hover { background: var(--sand); }
.side-item[aria-current="true"] { background: var(--navy); color: var(--cream); font-weight: 600; }
.intake-phone-pick { display: none; }
@media (max-width: 820px) {
  .intake-split { grid-template-columns: 1fr; }
  .intake-side { display: none; }
  .intake-phone-pick { display: grid; }
}

/* Provider workspace: the pillar's data on the left, what goes to the member on the right */
.ws-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.ws-right { }
.ws-status p { margin: 6px 0; }
.ws-data h3 { margin: 0 0 4px; }
.dgroup { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.dgroup:first-of-type { border-top: 0; }
.dgroup h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dgroup .note { margin: -4px 0 8px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dtile { position: relative; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 8px 10px 9px; background: var(--card); display: grid; gap: 2px; align-content: start; }
.dtile.wide { grid-column: 1 / -1; }
.dtile.b-green { border-left-color: var(--green-fg); } .dtile.b-yellow { border-left-color: #D08A4E; } .dtile.b-red { border-left-color: #C0604E; } .dtile.b-grey { border-left-color: #9C9A93; }
.dt-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.dt-value { font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.dtile.wide .dt-value { font-size: 15px; }
.dt-value.na { font-size: 14px; font-weight: 600; color: var(--grey-fg); }
.dt-meta { font-size: 12px; color: var(--muted); }
.dtile.missing { background: var(--grey-bg); border-style: dashed; border-left-style: solid; }
.dt-enter { justify-self: start; margin-top: 4px; border: 1px solid var(--navy); background: var(--navy); color: var(--cream); border-radius: 6px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dt-enter.quiet { position: absolute; top: 6px; right: 8px; margin: 0; background: transparent; border: 0; color: var(--muted); padding: 0; font-weight: 500; text-decoration: underline; opacity: 0; }
.dtile:hover .dt-enter.quiet, .dt-enter.quiet:focus { opacity: 1; }
.only-you { background: var(--sand); border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: 13.5px; }
.only-you > span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.only-you p { margin: 2px 0; }
.mp-group { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.mp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mp-head h4 { margin: 0; font-size: 15px; color: var(--navy); }
.mp-item { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mp-item:last-of-type { border-bottom: 0; }
.mp-item p { margin: 3px 0; }
.mp-item .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mp-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--navy); }
.mp-publish { border-top: 1px solid var(--line); padding-top: 12px; align-items: center; }
.ws-engine > summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.ws-engine[open] > summary { margin-bottom: 8px; }
.back-btn { justify-self: start; }
@media (max-width: 980px) { .ws-grid { grid-template-columns: 1fr; } .ws-right { position: static; } }

/* Result tiles: the name sits on a band in the result's color */
.dtile { padding: 0; border-left-width: 1px; overflow: hidden; }
.dtile .dt-label { display: flex; justify-content: space-between; gap: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--sand); }
.dtile.h-green .dt-label { background: #2E9E5B; color: #fff; }
.dtile.h-yellow .dt-label { background: #F5C518; color: #3A2A00; }
.dtile.h-red .dt-label { background: #D9412F; color: #fff; }
.dtile.h-grey .dt-label, .dtile.h-missing .dt-label { background: #CFCCC4; color: #4A4843; }
.dt-word { font-weight: 600; opacity: .9; }
.dt-body { display: grid; gap: 2px; padding: 6px 10px 9px; position: relative; }
.dt-goal { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.dtile.can-trend { cursor: pointer; }
.dtile.can-trend:hover, .dtile.can-trend:focus-visible { box-shadow: 0 0 0 2px var(--navy); outline: none; }
.dtile.open { box-shadow: 0 0 0 2px var(--gold); }
.dt-trendhint { color: var(--navy); text-decoration: underline; }
.dt-enter.quiet { top: 6px; right: 8px; }
.dtile.h-missing { background: var(--grey-bg); border-style: dashed; }
/* Trend */
.trend { grid-column: 1 / -1; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #FCFAF5; }
.trend-svg { width: 100%; height: auto; display: block; margin: 6px 0; }
.tr-grid { stroke: var(--line); stroke-width: 1; }
.tr-axis { font-size: 11px; fill: var(--muted); }
.tr-line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.tr-dot { fill: var(--navy); stroke: #FCFAF5; stroke-width: 2; }
.tr-hit { fill: transparent; }
.tr-pt:hover .tr-dot { fill: var(--gold); }
.tr-goal { stroke: #2E9E5B; stroke-width: 1.5; stroke-dasharray: 5 4; }
.tr-goal-label { font-size: 11px; fill: #23784A; font-weight: 600; }
.tr-val { font-size: 12px; fill: var(--ink); font-weight: 700; }
.trend-table { margin-top: 4px; }
/* Typed lab grid */
.seg-light { display: inline-flex; justify-self: start; border: 1px solid var(--navy); border-radius: 8px; overflow: hidden; }
.seg-light button { background: transparent; border: 0; padding: 6px 14px; cursor: pointer; color: var(--navy); font-weight: 600; }
.seg-light button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.lab-cell { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.lab-cell .with-unit .rv-input { min-width: 70px; }
.unit-fixed { font-size: 13px; color: var(--muted); white-space: nowrap; padding: 0 4px; }

/* Summary card */
.risk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 6px; }
.risk-chip { font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 8px; }
.risk-chip.h-green { background: #2E9E5B; color: #fff; } .risk-chip.h-yellow { background: #F5C518; color: #3A2A00; } .risk-chip.h-red { background: #D9412F; color: #fff; } .risk-chip.h-grey { background: #CFCCC4; color: #4A4843; }
.action-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.action-list li { display: flex; gap: 8px; align-items: baseline; }
.action-list .dot, .rp-results .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; transform: translateY(-1px); }
/* Member report preview */
.rp-paper { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px 14px 10px; margin-top: 8px; box-shadow: 0 1px 3px rgba(11,29,58,.06); }
.rp-doc-title { font-family: "Playfair Display", serif; font-size: 18px; color: var(--navy); padding: 10px 0 2px; }
.rp-section { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.rp-section:first-of-type { border-top: 0; }
.rp-section .mp-head h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rp-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 8px; margin: 2px -8px; border-radius: 8px; border-left: 3px solid transparent; }
.rp-item.is-ok { border-left-color: #2E9E5B; background: #F1F8F3; }
.rp-item.is-no { border-left-color: #D9412F; background: #FBF0EE; }
.rp-item.is-stale { border-left-color: #F5C518; }
.rp-title { font-weight: 700; color: var(--navy); font-size: 14px; }
.rp-text p { margin: 2px 0; }
.rp-flag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--navy); background: var(--sand); padding: 1px 7px; border-radius: 5px; margin-top: 3px; }
.rp-flag.warn { background: #FFF3C4; color: #6B4A00; }
.rp-only { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rp-only summary { cursor: pointer; font-size: 12px; }
.rp-only p { margin: 3px 0; background: var(--sand); padding: 4px 8px; border-radius: 6px; }
.rp-actions { display: flex; gap: 4px; }
.rp-btn { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1; color: var(--muted); }
.rp-btn.ok:hover, .rp-btn.ok.on { border-color: #2E9E5B; color: #fff; background: #2E9E5B; }
.rp-btn.no:hover, .rp-btn.no.on { border-color: #D9412F; color: #fff; background: #D9412F; }
.rp-btn.edit:hover { border-color: var(--navy); color: var(--navy); }
.rp-btn:disabled { opacity: .5; }
.rp-results p { display: flex; gap: 8px; align-items: baseline; margin: 4px 0; font-size: 14px; }
.rp-results p.note { display: block; }
/* Report fills in from the review queue */
.rp-section h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rp-item.in-report { border-left-color: transparent; background: transparent; }
.rp-item.in-report:hover { background: #FAF7F0; }
.rp-actions.quiet { opacity: .35; transition: opacity .15s; }
.rp-item:hover .rp-actions.quiet, .rp-actions.quiet:focus-within { opacity: 1; }
.rp-empty { color: var(--muted); font-style: italic; font-size: 13.5px; margin: 4px 0; }
.rp-where { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.mp.queue .rp-item { border: 1px solid var(--line); margin: 8px 0; background: #fff; }
.mp.queue .rp-item.is-stale { border-left: 3px solid #F5C518; }
.rp-out { margin-top: 10px; }
.rp-out summary { cursor: pointer; font-weight: 600; color: var(--muted); }
@keyframes rpMoved { from { background: #DDF1E4; } to { background: transparent; } }
.rp-item.just-moved { animation: rpMoved 1.6s ease-out; }
.dtile.span2 { grid-column: span 2; }
@media (max-width: 520px) { .dtile.span2 { grid-column: 1 / -1; } }
.cac-art table { border-collapse: collapse; margin: 6px 0 2px; font-size: 13px; }
.cac-art table { border: 1px solid var(--line); border-radius: 6px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.cac-art th, .cac-art td { text-align: center; padding: 3px 12px; min-width: 44px; color: var(--muted); }
.cac-art th { font-size: 11.5px; font-weight: 600; background: var(--sand); cursor: help; }
.cac-art td { font-size: 14px; }
.cac-art .has { color: var(--navy); font-weight: 700; }
.cac-art td.has { background: #FFF6D6; }
.ws-extra { margin-top: 12px; }
.ws-extra > .card { border: 1px solid var(--line); box-shadow: none; padding: 10px 12px; }
.ws-extra h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Side navigation */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; max-width: 1600px; margin: 0 auto; }
.shell main { max-width: none; margin: 0; min-width: 0; }
.tabs { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 24px; background: var(--navy); height: 100vh; overflow-y: auto; overflow-x: hidden; }
.tabs button { display: grid; gap: 1px; justify-items: start; text-align: left; width: 100%; padding: 7px 10px; border: 0; border-left: 3px solid transparent; border-bottom: 0; border-radius: 0 6px 6px 0; color: #C3C8D3; white-space: normal; }
.tabs button:hover { background: rgba(255,255,255,.06); color: var(--cream); }
.tabs button[aria-selected="true"] { background: rgba(184,146,74,.16); border-left-color: var(--gold); color: var(--cream); }
.nav-main { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.nav-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8C93A4; padding: 14px 10px 4px; font-weight: 700; }
.nav-status { font-size: 11.5px; padding-left: 17px; color: #9AA1B2; }
.tabs button:first-child .nav-status { padding-left: 0; }
/* Review stage: grey words only; colour in the side menu is the results rating (Dec 1, 2026). */
.nav-status.s-act { color: #C9CED9; font-weight: 700; }
.nav-status.s-done, .nav-status.s-sent { color: #9AA1B2; }
.nav-status.s-wait { color: #8C93A4; font-style: italic; }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .tabs { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 0 12px; }
  .tabs button { width: auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; }
  .tabs button[aria-selected="true"] { border-bottom-color: var(--gold); background: transparent; }
  .nav-head { display: none; }
  .nav-status { padding-left: 0; }
}

/* Full report */
.report-page { max-width: 900px; }
.card.paper { padding: 28px 34px; }
.story h1 { font-family: "Playfair Display", serif; font-weight: 500; font-size: 30px; color: var(--navy); margin: 2px 0 2px; }
.st-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-ink); font-weight: 700; }
.st-sec { border-top: 1px solid var(--line); padding: 18px 0 8px; }
.st-sec > h2 { font-family: "Playfair Display", serif; font-weight: 500; font-size: 21px; color: var(--navy); margin: 0 0 10px; }
.st-lead { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0; }
.st-overview-edit { font-size: 16px; line-height: 1.55; }
.st-overview .actions { align-items: center; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.st-chip.ok { background: #E3F3E9; color: #1F6E41; }
.st-prio { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; }
.st-prio h3, .st-sub h3, .st-when h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.st-prio p, .st-item p { margin: 3px 0; }
.st-helps { font-size: 13px; color: var(--green-fg); font-weight: 600; }
.st-links { margin: 0; padding-left: 18px; }
.st-links li { margin: 4px 0; }
.st-sub { padding: 6px 0 10px; }
.st-item { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.st-item:last-child { border-bottom: 0; }
.st-when { padding: 4px 0 8px; }
.st-when h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.st-sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-sched li { display: grid; grid-template-columns: 10px 76px 1fr; gap: 10px; align-items: baseline; font-size: 14.5px; }
.st-sched .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.st-date { color: var(--muted); font-size: 13px; font-weight: 600; }
.st-area { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 8px 0; }
.st-area-name { display: flex; justify-content: space-between; padding: 5px 12px; font-weight: 700; font-size: 13.5px; background: var(--sand); color: var(--navy); }
.st-area.h-green .st-area-name { background: #2E9E5B; color: #fff; } .st-area.h-yellow .st-area-name { background: #F5C518; color: #3A2A00; } .st-area.h-red .st-area-name { background: #D9412F; color: #fff; }
.st-area-body { padding: 8px 12px 10px; }
.st-area-body p { margin: 3px 0; }
@media print { .story .linkbtn { display: none; } .card.paper { padding: 0; } }
@media (max-width: 680px) { .card.paper { padding: 18px 16px; } .st-sched li { grid-template-columns: 10px 64px 1fr; } }

/* Header: brand, member, quick-glance numbers */
.top { align-items: center; justify-content: flex-start; gap: 10px 28px; }
.who { display: grid; gap: 0; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.18); }
.who-name { font-family: "Playfair Display", serif; font-size: 26px; color: var(--cream); line-height: 1.15; }
.who-sub { font-size: 13px; color: #B7BCC8; }
.glance { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.gl-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 12px; min-width: 92px; }
.gl-label { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #AEB4C2; font-weight: 600; }
.gl-label .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.gl-value { font-size: 19px; font-weight: 700; color: var(--cream); line-height: 1.2; }
.gl-value.na { color: #7D8496; }
@media (max-width: 900px) { .glance { margin-left: 0; width: 100%; } .who { border-left: 0; padding-left: 0; } }
/* Trend arrow beside a value */
.dt-arrow { font-size: 15px; font-weight: 800; margin-left: 6px; }
.dt-arrow.better { color: #2E9E5B; } .dt-arrow.worse { color: #D9412F; } .dt-arrow.same { color: var(--muted); }
/* Orange: a result row between yellow and red (A1c 6.5–7.0) */
.c-orange { background: #FDE3CC; color: #8A3B07; }
.dot.c-orange { background: var(--dot-orange); }
.dtile.h-orange .dt-label { background: #E8771E; color: #fff; }
.pending-plan p { color: var(--muted); margin: 0; }
.layout.pending-only { grid-template-columns: minmax(0, 420px); justify-content: center; }
/* Member range bar (as in the member mockups) */
.rows .rbar { grid-column: 1 / -1; }
.rbar { position: relative; height: 46px; margin: 4px 6px 0; }
.rbar-seg { position: absolute; top: 19px; height: 10px; border-right: 2px solid #fff; box-sizing: border-box; }
.rbar-seg:first-child { border-radius: 4px 0 0 4px; }
.rbar-seg:nth-last-child(1 of .rbar-seg) { border-right: 0; border-radius: 0 4px 4px 0; }
.rbar-cut { position: absolute; top: 31px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.rbar-dot { position: absolute; top: 15px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy); box-sizing: border-box; }
.rbar-val { position: absolute; top: -1px; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; }
/* Accept all */
.btn.btn-accept { background: var(--green-fg); border-color: var(--green-fg); color: #fff; } /* was an off-brand blue (audit Nov 29, 2026) */
.btn.btn-accept:hover { background: #335E41; }
/* FRAX entry sheet */
.frax-sheet { display: grid; gap: 2px; margin: 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.frax-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.frax-row:last-child { border-bottom: 0; }
.frax-k { color: var(--muted); }
.frax-v { font-weight: 700; color: var(--navy); }
/* File upload */
.upload-drop { display: flex; align-items: center; gap: 12px; border: 2px dashed var(--line); border-radius: 10px; padding: 14px 16px; background: #FCFAF5; cursor: pointer; margin: 6px 0; }
.upload-drop:hover { border-color: var(--navy); }
.upload-drop span { color: var(--muted); font-size: 14px; }
.upload-btn { cursor: pointer; }
/* "Update" sits in the name band on hover: solid, in front, never over the value */
.dt-label { align-items: center; }
.dt-update { display: none; flex: none; background: #fff; color: var(--navy); border: 0; border-radius: 5px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.dtile:hover .dt-update, .dtile:focus-within .dt-update { display: inline-block; }
.dtile:hover .dt-word, .dtile:focus-within .dt-word { display: none; }
.dt-update:hover { background: var(--navy); color: #fff; }
@media (hover: none) { .dt-update { display: inline-block; } .dt-word { display: none; } }
/* Macro targets */
.macro-slider { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 10px; }
.macro-slider input[type=range] { flex: 1 1 200px; accent-color: var(--navy); }
.macro-label { font-weight: 700; color: var(--navy); min-width: 150px; }
.macro-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.macro-cell { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 1px; background: #fff; }
.macro-cell span { font-size: 12px; color: var(--muted); font-weight: 600; }
.macro-cell strong { font-size: 18px; color: var(--navy); }
.macro-cell small { font-size: 12px; color: var(--muted); }
.macro-cell.warn { border-color: #D9412F; background: #FBF0EE; }
.macro-num { width: 80px; flex: none; }

/* Training zones (Fitness) */
.zbar { position: relative; height: 26px; border-radius: 6px; background: var(--line); margin: 8px 0 2px; overflow: hidden; }
.zbar-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; }
.zbar-seg.z1 { background: #9bb7d4; } .zbar-seg.z2 { background: #2f9e6f; } .zbar-seg.zmid { background: #d9d9d9; color: #666; } .zbar-seg.z3 { background: #d9534f; }
.zbar-ticks { position: relative; height: 16px; font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.zbar-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.zbar-ticks span:first-child { transform: none; } .zbar-ticks span:last-child { transform: translateX(-100%); }
table.ztable { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
table.ztable th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; border-bottom: 1px solid var(--line); padding: 4px 6px; }
table.ztable td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.zchip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.zchip.z1 { background: #9bb7d4; } .zchip.z2 { background: #2f9e6f; } .zchip.z3 { background: #d9534f; }
ul.rx-flags { margin: 6px 0 8px; padding-left: 18px; font-size: 13px; }
ul.rx-flags li { margin: 4px 0; } ul.rx-flags li.warn { color: #9a5b00; font-weight: 500; }

/* Source "i" beside a recommendation (hover or focus shows the guideline and, for providers, the rule) */
.src-i { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; border: 1px solid currentColor; color: var(--muted); font: italic 600 10px/1 Georgia, serif; cursor: help; vertical-align: 2px; opacity: .75; }
.src-i:hover, .src-i:focus { opacity: 1; color: var(--navy); outline: none; }
.src-tip { display: none; position: absolute; z-index: 50; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 300px; padding: 9px 11px; border-radius: 8px; background: var(--navy); color: #F3F1EA; font: normal 400 12.5px/1.4 system-ui, -apple-system, sans-serif; text-align: left; box-shadow: 0 6px 20px rgba(0,0,0,.18); text-transform: none; letter-spacing: 0; white-space: normal; }
.src-tip > * { display: block; } .src-tip > * + * { margin-top: 4px; }
.src-tip strong { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #C9B27A; }
.src-tip .src-rule { color: #C3C8D3; font-size: 12px; }
.src-tip .src-status { display: inline-block; font-size: 11px; font-weight: 600; } .src-tip .src-status.draft { color: #F0C36D; } .src-tip .src-status.ok { color: #8FD3A8; }
.src-i:hover .src-tip, .src-i:focus .src-tip { display: block; }
@media print { .src-i { display: none; } }

/* Guideline watch (worklist) */
.gw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gw.gw-alert { border-left: 4px solid var(--gold, #C9A54B); }
.gw-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.gw-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gw-rules { display: block; font-size: 12.5px; color: var(--muted); margin: 4px 0; }
.gw-ask { font-weight: 600; margin: 8px 0 4px; }
.gw-form textarea { width: 100%; margin: 6px 0; }
.gw-more { margin-top: 8px; font-size: 13px; } .gw-more summary { cursor: pointer; color: var(--muted); }
.gw-more table { margin-top: 8px; }

.grp-icon { margin-right: 6px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.fld .src-tip { left: 0; transform: none; }
.gw-evidence { font-size: 13px; color: var(--muted); margin: 4px 0; }
.carry-start { background: var(--cream-2, #F6F1E4); border-radius: 8px; padding: 8px 10px; margin: 4px 0 10px; font-size: 13.5px; }
.gl-item.gl-sep { margin-left: 10px; }

/* Report visuals */
.rv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rv-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; cursor: pointer; font: inherit; }
.rv-tile.h-grey { cursor: default; }
.rv-tile .rv-icon { grid-row: span 2; font-size: 20px; }
.rv-tile .rv-name { font-weight: 600; font-size: 13.5px; } .rv-tile .rv-word { font-size: 12px; }
/* Tiles filled lightly with their status color so optimal and needs-attention areas stand apart at a glance. */
.rv-tile.h-green { background: #E6F2E8; border-color: #C3DDC8; border-left: 5px solid #3F7350; } .rv-tile.h-green .rv-word, .rv-tile.h-green .rv-name { color: #2F5B3D; }
.rv-tile.h-yellow { background: #FBF1CF; border-color: #EEDB9E; border-left: 5px solid #C9A227; } .rv-tile.h-yellow .rv-word, .rv-tile.h-yellow .rv-name { color: #6E5410; }
.rv-tile.h-orange { background: #FCE4CF; border-color: #F2C49C; border-left: 5px solid #D7743E; } .rv-tile.h-orange .rv-word, .rv-tile.h-orange .rv-name { color: #8A4219; }
.rv-tile.h-red { background: #F8DEDA; border-color: #EDB8AF; border-left: 5px solid #B4523F; } .rv-tile.h-red .rv-word, .rv-tile.h-red .rv-name { color: #84321F; }
.rv-tile.h-grey { background: #F1EFEA; border-color: #DDD9D0; border-left: 5px solid #B9B5AB; } .rv-tile.h-grey .rv-word { color: var(--muted); }
.rv-tile .rv-word { font-weight: 600; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .rv-grid { grid-template-columns: 1fr; } }
.rv-nums { display: grid; gap: 14px; }
.rv-num-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.rv-num-head strong { font-size: 16px; } .rv-num-head .pill { margin-left: auto; }
.rv-target { font-size: 12px; color: var(--muted); margin-top: 18px; }
.rv-side { display: grid; gap: 12px; }
.rv-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.rv-card h3 { font-size: 14px; margin: 0 0 6px; }
.rv-cap { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.rv-risk { margin: 8px 0; font-size: 13px; } .rv-risk-head { display: flex; justify-content: space-between; }
.rv-risk-track { height: 10px; background: #EFECE4; border-radius: 5px; margin-top: 4px; overflow: hidden; } .rv-risk-track span { display: block; height: 100%; border-radius: 5px; }
.rv-week-wrap { margin: 8px 0 12px; }
.rv-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rv-day { border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; min-height: 64px; text-align: center; background: #fff; }
.rv-dayname { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rv-chip { display: block; border-radius: 5px; padding: 3px 2px; font-size: 11.5px; line-height: 1.25; margin-top: 3px; }
.rv-chip small { display: block; font-size: 10.5px; opacity: .85; }
.rv-z2 { background: #E4EFE6; color: #2F5B3D; } .rv-int { background: #F6E3D2; color: #8A4A1F; } .rv-str { background: #E6E9F2; color: #36456B; } .rv-rest { color: var(--muted); }
.rv-timeline { margin: 4px 0 14px; color: var(--ink, #1E2433); }
.rv-timeline svg { width: 100%; height: auto; display: block; }
.rv-card svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
@media print { .rv-tile { cursor: default; } .rv-grid { grid-template-columns: 1.5fr 1fr; } }

/* Timeline date on scheduled items and added lines */
.due-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin: 6px 0; }
.due-row .note { font-size: 12px; } .due-row.compact { margin: 0; } .due-row.compact span { color: var(--muted); font-size: 12px; }
.due-pick { display: inline-flex; gap: 6px; align-items: center; } .due-month { width: auto; } .due-year { width: 74px; }
.due-ask { border: 1px solid #EEDB9E; background: #FBF1CF; border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 13.5px; color: #6E5410; }
.due-ask p { margin: 0 0 6px; }

/* Patient profile and "what are they due for?" */
.pf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pf-sec h4 { margin: 12px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pf-scroll { overflow-x: auto; }
table.pf-labs { border-collapse: collapse; font-size: 13px; min-width: 100%; }
table.pf-labs th, table.pf-labs td { padding: 5px 9px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.pf-labs thead th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.pf-labs tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; } table.pf-labs th small { color: var(--muted); font-weight: 400; }
table.pf-labs td.pf-prelim { color: var(--muted); font-style: italic; }
.pf-tests { display: grid; gap: 10px; }
.pf-test { display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: start; }
@media (max-width: 700px) { .pf-test { grid-template-columns: 1fr; } }
.pf-test-name { font-weight: 600; font-size: 13.5px; } .pf-test-name small { color: var(--muted); font-weight: 400; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; background: #fff; } .pf-chip strong { margin-right: 6px; }
.due-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.due-card .due-bar { margin-bottom: 8px; }
.due-group { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.due-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .due-group h4 { margin: 0; font-size: 14px; }
.due-insurance h4 { color: #2F5B3D; } .due-shared h4 { color: #6E5410; } .due-cash h4 { color: #36456B; }
.due-items { list-style: none; padding: 0; margin: 6px 0 0; }
.due-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; cursor: pointer; }
.due-test small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.due-status { font-size: 12px; font-weight: 600; white-space: nowrap; border-radius: 6px; padding: 2px 7px; }
.due-status.s-overdue { background: #F8DEDA; color: #84321F; } .due-status.s-no_record { background: #FBF1CF; color: #6E5410; } .due-status.s-due { background: #FCE4CF; color: #8A4219; } .due-status.s-due_soon { background: #E6F2E8; color: #2F5B3D; }
.due-notes { font-size: 13px; color: var(--muted); } .due-later { margin-top: 10px; font-size: 13px; }
table.pf-labs thead th:first-child { text-align: left; }
/* Entry fields: each control stays inside its own column, and inputs line up even when a label wraps to two lines. */
.fgrid { align-items: end; }
.fld { min-width: 0; grid-template-rows: 1fr auto; }
.fld > span:first-child { align-self: end; line-height: 1.3; }
.fld select, .fld input.rv-input, .fld .with-unit { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.fld .with-unit { display: flex; gap: 6px; } .fld .with-unit input { flex: 1; min-width: 0; } .fld .with-unit select { width: auto; flex: none; }

/* Drag-and-drop upload zones */
.drop-zone { min-height: 84px; justify-content: center; text-align: left; transition: background .12s, border-color .12s; }
.drop-zone .drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone { position: relative; }
.drop-icon { font-size: 26px; color: var(--muted); line-height: 1; }
.drop-text { display: grid; gap: 2px; } .drop-text strong { color: var(--ink, #1E2433); font-size: 14.5px; font-weight: 600; } .drop-text small { color: var(--muted); font-size: 12.5px; }
.drop-zone.over { border-color: #3F7350; background: #E6F2E8; } .drop-zone.over .drop-icon { color: #3F7350; }

/* Intake checklist (profile) */
.cl-progress { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.cl-bar { flex: 1; height: 8px; background: #EFECE4; border-radius: 4px; overflow: hidden; } .cl-bar span { display: block; height: 100%; background: #3F7350; border-radius: 4px; }
.cl-area { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.cl-area-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.cl-items { list-style: none; padding: 0; margin: 4px 0 0; }
.cl-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.cl-mark { text-align: center; font-weight: 700; } .cl-item.s-done .cl-mark { color: #3F7350; } .cl-item.s-update .cl-mark { color: #C98A2E; } .cl-item.s-missing .cl-mark { color: #9C9A93; }
.cl-item small { color: var(--muted); font-size: 12px; } .cl-item .cl-old { color: #9A6420; }

/* Profile: chart on the left, initial visit checklist on the right */
.profile-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 16px; align-items: start; }
.profile-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; display: grid; gap: 12px; }
@media (max-width: 980px) { .profile-split { grid-template-columns: 1fr; } .profile-side { position: static; max-height: none; order: -1; } }
.cl-due-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cl-item { grid-template-columns: 20px 1fr auto; }
.cl-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cl-item.is-due { background: #FFF6E3; border-radius: 6px; padding-left: 4px; padding-right: 4px; }
.cl-due { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.cl-due.c-uspstf { background: #E6F2E8; color: #2F5B3D; } .cl-due.c-acip { background: #E3EEF6; color: #2B4E68; } .cl-due.c-not { background: #EEEDEA; color: #55524C; }
.cl-due-note { margin: 0 0 8px; }

.fu-note { display: block; margin-top: 4px; color: var(--muted, #6b6760); font-size: 12px; }
.bench-goals { margin: 4px 0 14px; }
.bench-goal-table td, .bench-goal-table th { font-size: 13px; }
.bench-goal-table tr.is-gated td { color: var(--muted, #6b6760); }

/* Enter results: two workflows (chart prep / in-clinic testing) */
.flow-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 8px; }
.flow-tab { display: grid; gap: 1px; text-align: left; border: 1px solid var(--line); background: var(--cream); border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--ink); }
.flow-tab strong { font-size: 13px; }
.flow-tab small { font-size: 11px; color: var(--muted); }
.flow-tab[aria-selected="true"].flow-prep { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.flow-tab[aria-selected="true"].flow-clinic { background: #2F6F8F; color: #fff; border-color: #2F6F8F; }
.flow-tab[aria-selected="true"] small { color: inherit; opacity: .85; }
.intake-side.flow-clinic { background: #EEF5F8; border-color: #C9DEE8; }
.intake-side.flow-clinic .side-item[aria-current="true"] { background: #2F6F8F; }
.intake-split.flow-clinic .intake-main > .card:not(.due-card) { border-top: 3px solid #2F6F8F; }
.side-item { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.side-label { min-width: 0; }
.side-mark { font-size: 11px; white-space: nowrap; flex: none; }
.side-mark.is-done { color: #2F6B45; font-weight: 600; }
.side-mark.is-old { color: var(--muted); }
.side-mark.is-missing { color: #A8A296; }
.side-item[aria-current="true"] .side-mark { color: inherit; opacity: .9; }
.side-item.is-dim { opacity: .55; }
.side-age { font-size: 10px; color: var(--muted); }
.side-note { display: block; padding: 0 8px 3px; font-size: 11px; color: var(--muted); }
.saved-banner { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #E6F2E8; color: #2F5B3D; font-size: 13px; }
.shared-note { background: #F3F0E8; padding: 6px 8px; border-radius: 6px; }
.intake-phone-pick .flow-tabs { margin-bottom: 6px; }

/* Pre-visit questions (member portal) */
.pv-start { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid #E3CFA4; background: linear-gradient(135deg, #FFFDF7, #FBF3E2); }
.pv-start h2 { margin: 0 0 4px; }
.pv-start p { margin: 0; max-width: 60ch; }
@keyframes pvGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(184, 146, 74, .55); } 50% { box-shadow: 0 0 0 10px rgba(184, 146, 74, 0); } }
.pv-glow { animation: pvGlow 2s ease-in-out infinite; font-size: 15px; padding: 10px 18px; }
@media (prefers-reduced-motion: reduce) { .pv-glow { animation: none; box-shadow: 0 0 0 3px rgba(184, 146, 74, .45); } }
.pv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #B8924A; margin-left: 6px; animation: pvGlow 2s ease-in-out infinite; }
.pv-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.pv-step { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 13px; cursor: pointer; color: var(--ink); }
.pv-step .pv-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); font-size: 12px; font-weight: 700; }
.pv-step.is-done .pv-num { background: #2F6B45; color: #fff; }
.pv-step.is-current { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.pv-step.is-current .pv-num { background: var(--cream); color: var(--navy); }
.pv-card { max-width: 760px; }
.pv-count { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.pv-q { padding: 12px 0; border-top: 1px solid var(--line); }
.pv-label { font-weight: 600; margin: 0 0 6px; }
.pv-help { margin: -2px 0 8px; }
.pv-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-choices.is-list { flex-direction: column; align-items: stretch; }
.pv-choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; background: #fff; min-height: 44px; }
.pv-choice.is-on { border-color: var(--navy); background: #EEF1F6; font-weight: 600; }
.pv-choice input { accent-color: var(--navy); }
.pv-with-unit { display: flex; align-items: center; gap: 8px; }
.pv-input { max-width: 180px; }
.pv-relatives { display: grid; gap: 6px; }
.pv-rel { display: grid; grid-template-columns: 1fr 1fr 120px auto; gap: 6px; align-items: center; }
@media (max-width: 600px) { .pv-rel { grid-template-columns: 1fr 1fr; } }
.pv-licence { font-size: 12px; background: #FBF1CF; color: #6E5410; padding: 6px 8px; border-radius: 6px; }
.pv-actions { justify-content: flex-end; }
.side-mark.by-member { color: #5B4A8C; }

/* Devices and your data */
.dev-proto { font-size: 12px; background: #FBF1CF; color: #6E5410; padding: 6px 8px; border-radius: 6px; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dev-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; align-content: start; background: #fff; }
.dev-card.is-on { border-color: #9CC5A8; background: #F4FAF5; }
.dev-head { display: flex; gap: 10px; align-items: center; }
.dev-head small { display: block; color: var(--muted); font-size: 12px; }
.dev-icon { font-size: 22px; width: 32px; text-align: center; }
.dev-metrics { display: flex; flex-wrap: wrap; gap: 4px; }
.dev-metrics .chip { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--sand); }
.dev-how { font-size: 12px; }
.dev-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.dev-tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 2px; }
.dev-tile-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.dev-tile strong { font-size: 20px; }
.dev-dl { flex-wrap: wrap; }

/* Sign-in (auth.ts) */
body.auth-mode .top, body.auth-mode .shell { display: none; }
body.auth-mode .devfield, body.auth-mode #worklist-btn, body.auth-mode .seg { display: none; }
.auth-root { min-height: calc(100vh - 44px); }
.auth-wrap { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 520px); min-height: calc(100vh - 44px); }
.auth-brand { background: var(--navy); color: var(--cream); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.auth-bear { width: min(260px, 70%); height: auto; margin-bottom: 6px; }
.auth-brand .brand { font-family: "Playfair Display", Georgia, serif; font-size: 34px; }
.auth-brand .brand span { color: var(--gold, #B8924A); }
.auth-brand p { max-width: 34ch; opacity: .85; font-size: 17px; }
.auth-card { margin: auto; width: min(460px, calc(100% - 32px)); padding: 32px; box-sizing: border-box; display: grid; gap: 10px; align-content: start; }
.auth-card h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 28px; margin: 0 0 4px; }
.auth-form { display: grid; gap: 10px; margin: 4px 0; }
.auth-form.narrow { max-width: 420px; }
.auth-fld { display: grid; gap: 4px; }
.auth-fld input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px 12px; }
.pw-meter { display: grid; gap: 4px; margin-top: 2px; }
.pw-meter[hidden] { display: none; }
.pw-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bar span { height: 5px; border-radius: 3px; background: var(--line); transition: background .15s; }
.pw-meter-text { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; }
.pw-meter[data-score="0"] .pw-bar span:nth-child(-n+1), .pw-meter[data-score="1"] .pw-bar span:nth-child(-n+1) { background: #C0604E; }
.pw-meter[data-score="2"] .pw-bar span:nth-child(-n+2) { background: #D08A4E; }
.pw-meter[data-score="3"] .pw-bar span:nth-child(-n+3) { background: #7FA86B; }
.pw-meter[data-score="4"] .pw-bar span { background: var(--green-fg); }
.pw-meter[data-score="0"] strong, .pw-meter[data-score="1"] strong { color: var(--red-fg); }
.pw-meter[data-score="2"] strong { color: #9A5B22; }
.pw-meter[data-score="3"] strong, .pw-meter[data-score="4"] strong { color: var(--green-fg); }
.pw-match { font-size: 13px; }
.pw-match[hidden] { display: none; }
.pw-match.ok { color: var(--green-fg); }
.pw-match.bad { color: var(--red-fg); }
.auth-primary { width: 100%; padding: 11px; font-size: 15px; }
.auth-alt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.auth-mfa { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.auth-mfa legend { font-weight: 600; margin-bottom: 6px; }
.auth-legal { margin-top: 10px; text-align: center; }
.auth-inbox-hint { background: #FBF1CF; color: #6E5410; padding: 6px 8px; border-radius: 6px; }
.totp-setup { display: grid; gap: 8px; justify-items: start; }
.qr-box { background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 8px; width: max-content; min-width: 176px; min-height: 176px; display: grid; place-items: center; }
.totp-key { font-size: 13px; letter-spacing: .05em; background: var(--sand); padding: 2px 6px; border-radius: 4px; }
.note.ok { color: #2F5B3D; }
@media (max-width: 760px) { .auth-wrap { grid-template-columns: 1fr; } .auth-brand { padding: 20px 16px; flex-direction: row; align-items: center; justify-content: flex-start; } .auth-bear { width: 72px; margin: 0; } .auth-brand .brand { font-size: 26px; } .auth-brand p { display: none; } .auth-card { margin: 16px auto; padding: 20px; } }
.auth-ctl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auth-switch { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid #555B6B; color: #D9DCE3; border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font-size: 12px; }
.auth-switch .auth-knob { width: 30px; height: 16px; border-radius: 999px; background: #555B6B; position: relative; transition: background .15s; }
.auth-switch .auth-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.auth-switch.is-on { border-color: #7FBF95; color: #fff; }
.auth-switch.is-on .auth-knob { background: #3E8E5A; }
.auth-switch.is-on .auth-knob::after { left: 16px; }
.auth-switch:disabled { opacity: .5; cursor: not-allowed; }
.auth-who { color: #fff; font-weight: 600; }
.auth-hint { color: #AEB3BF; font-size: 12px; }
.inbox { position: fixed; right: 16px; top: 56px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow: auto; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.inbox-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.inbox-list li { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 4px; }
.inbox-list p { margin: 0; }
.invite-result { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.adm-table td, .adm-table th { font-size: 13px; vertical-align: top; }
.adm-actions { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.portal-card .auth-form { max-width: 360px; }
/* Staff accounts: approving and sending are the provider's */
body.role-staff .mp-publish, body.role-staff .btn-accept { display: none; }

/* Database chip and page (Nov 26, 2026) */
.db-chip { font: inherit; font-size: 12px; border: 1px solid #C9BFA9; background: #FFF; color: #3B3F4A; border-radius: 999px; padding: 2px 10px 2px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.db-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8A8F99; }
.db-chip.is-azure::before { background: #2E7D4F; }
.db-chip.is-warn { border-color: #D9A441; background: #FFF6E5; }
.db-chip.is-warn::before { background: #D9A441; }
.db-page { display: grid; gap: 16px; max-width: 1100px; margin: 0 auto; }
.db-tables td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-tables code { font-size: 12px; }

/* Add member (Nov 26, 2026) */
.nm-page { display: grid; justify-items: center; padding: 8px 0 32px; }
.nm-card { width: min(720px, 100%); box-sizing: border-box; display: grid; gap: 12px; }
.nm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.nm-dev { background: #FFF6E5; border: 1px solid #E8C98A; border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 0; }
@media (max-width: 600px) { .nm-grid { grid-template-columns: 1fr; } }
body.auth-mode #add-member-btn { display: none; }

/* Visit summary for Atlas (Nov 26, 2026) */
.vn-page { max-width: 980px; margin: 0 auto; }
.vn-text { white-space: pre-wrap; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #FBFAF6; border: 1px solid #E4DED0; border-radius: 8px; padding: 16px; margin: 8px 0 0; max-height: 70vh; overflow: auto; }
.vn-draft { background: #FFF6E5; border: 1px solid #E8C98A; border-radius: 8px; padding: 8px 12px; margin: 0; }
@media print { .vn-text { max-height: none; overflow: visible; border: 0; background: none; padding: 0; } }

/* Visits and change since the last one (Nov 26, 2026) */
.visit-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.changes td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg { font-weight: 600; }
.changes { overflow: hidden; }
.changes table { width: 100%; table-layout: fixed; }
.changes td { padding: 4px 6px; overflow-wrap: anywhere; }
.changes td:first-child { width: 38%; }
.changes td:last-child { width: 26%; }
.chg-better { color: #2E7D4F; }
.chg-worse { color: #A8571B; }
.chg-same { color: #6B7280; font-weight: 400; }
.visit-start { display: inline-flex; gap: 8px; align-items: center; }
.visit-date { width: auto; padding: 4px 8px; }

/* "Don't ask for a code on this device" and the Account page's remembered devices (Nov 27, 2026). */
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.auth-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.auth-check span { display: grid; gap: 2px; }
.device-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 10px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #E8E2D6); border-radius: 8px; }
.device-list .badge { margin-left: 8px; }

/* Saved medication list under the medication entry form (Nov 27, 2026). */
.saved-meds { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line, #E8E2D6); }
.saved-meds h4 { margin: 0 0 8px; }
.saved-meds .med-acts { white-space: nowrap; text-align: right; }
.saved-meds tr.med-gone td:first-child { text-decoration: line-through; color: #8A8F9C; }
.saved-meds tr.med-gone small { text-decoration: none; display: inline-block; }
.saved-meds tr.med-upd td { color: #8A8F9C; }

/* Checkboxes in an entry form's grid (Nov 27, 2026): the box on top, the words wrapping underneath, so a row of
   boxes lines up however long each label is. */
.fgrid > label.pick { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; align-self: start; gap: 4px; line-height: 1.3; }
.fgrid > label.pick input { transform: none; width: 16px; height: 16px; }

/* Entry-form field groups (Nov 27, 2026): each row has three bands (labels, then the controls, then anything under
   them), so labels of different lengths still leave every dropdown, box and checkbox on one line, and a checkbox's
   words wrap underneath it. */
fieldset.picks .fgrid { row-gap: 0; align-items: stretch; }
fieldset.picks .fgrid > .fld:not(.wide), fieldset.picks .fgrid > label.fpick { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 4px; margin-bottom: 10px; }
fieldset.picks .fgrid > .fld.wide { grid-row: span 3; margin-bottom: 10px; }
fieldset.picks .fgrid > label.fpick { padding: 0; gap: 4px; flex-direction: initial; align-self: stretch; }
fieldset.picks .fgrid > label.fpick input { align-self: center; justify-self: start; margin: 0; width: 18px; height: 18px; }
fieldset.picks .fgrid > label.fpick .fpick-text { align-self: start; line-height: 1.3; font-size: 14px; color: var(--ink, inherit); }
fieldset.picks .fgrid > .fld > :nth-child(3) { align-self: start; }

/* Provider's basic-labs table (Nov 27, 2026): compact, one column per date. */
.lt-wrap { overflow-x: auto; margin-top: 8px; }
.lab-table { border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; width: auto; }
.lab-table td.lt-val, .lab-table th.lt-val { min-width: 84px; }
.lab-table th, .lab-table td { padding: 5px 10px; border-bottom: 1px solid var(--line, #E8E2D6); text-align: left; white-space: nowrap; }
.lab-table thead th { position: sticky; top: 0; background: var(--card, #fff); font-size: 12px; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--line, #E8E2D6); }
.lab-table .lt-test { font-weight: 600; color: var(--navy); position: sticky; left: 0; background: var(--card, #fff); }
.lab-table .lt-ref { color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line, #E8E2D6); }
.lab-table .lt-unit { font-size: 11.5px; }
.lab-table td.lt-val, .lab-table th.lt-val { text-align: right; }
.lab-table .lt-flag { font-weight: 700; color: #8A5A12; }
.lab-table .lt-crit { font-weight: 700; color: #B03A2E; }
.lab-table .lt-f { font-size: 11px; }
.lab-table tr.lt-group th { background: #F4EFE5; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 8px; position: static; }
/* Lab tables (Nov 27, 2026): out-of-range values tinted, past the same-day-call limit red. */
.lab-table td.lt-flag { background: #FBEFD9; }
.lab-table td.lt-crit { background: #F7DCD7; }
.lab-table td.pf-prelim { font-style: italic; }
.lt-legend { margin-top: 6px; }

/* Care setting (Nov 28, 2026): gold star for Polaris DPC patients. */
.dpc-star { color: #D9B45B; font-size: 0.8em; vertical-align: 2px; }
.care-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; }
.care-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.care-banner.dpc .care-pill { background: linear-gradient(135deg, #E8C873, #C9A14A); color: #1F1A0E; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; }
.care-banner.outside .care-pill { background: rgba(255,255,255,.10); color: #D5D9E2; border: 1px solid rgba(255,255,255,.18); }
.care-banner.nopcp .care-pill { background: transparent; color: #B7BCC8; border: 1px dashed rgba(255,255,255,.30); }
/* Polaris Private (Nov 28, 2026): a rainbow border that keeps circling. */
@property --care-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes care-spin { to { --care-spin: 360deg; } }
.care-banner.private .care-pill { border: 2px solid transparent; color: #FFFFFF; font-weight: 700; letter-spacing: .03em;
  background: linear-gradient(#13284A, #13284A) padding-box, conic-gradient(from var(--care-spin), #FF4D4D, #FF9F1C, #FFE14D, #3DDC84, #2EB8FF, #8A5CFF, #FF4DC4, #FF4D4D) border-box;
  animation: care-spin 3s linear infinite; }
.care-btn.private { border: 1.5px solid transparent; color: #FFFFFF; background: linear-gradient(#0B1D3A, #0B1D3A) padding-box, conic-gradient(from var(--care-spin), #FF4D4D, #FF9F1C, #FFE14D, #3DDC84, #2EB8FF, #8A5CFF, #FF4DC4, #FF4D4D) border-box; animation: care-spin 3s linear infinite; }
.dpc-star.private-star { background: conic-gradient(from var(--care-spin), #FF4D4D, #FF9F1C, #FFE14D, #3DDC84, #2EB8FF, #8A5CFF, #FF4DC4, #FF4D4D); -webkit-background-clip: text; background-clip: text; color: transparent; animation: care-spin 3s linear infinite; font-size: .95em; }
@media (prefers-reduced-motion: reduce) { .care-banner.private .care-pill, .care-btn.private, .dpc-star.private-star { animation: none; } }
.care-banner .linkbtn { color: #B7BCC8; font-size: 12px; }
.care-banner.unset .care-ask { color: #E8C873; font-weight: 600; }
.care-choices { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.care-btn { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #E6E9EF; cursor: pointer; }
.care-btn.gold { border-color: #C9A14A; color: #E8C873; }
.care-btn:hover { background: rgba(255,255,255,.08); }
.worklist .dpc-star, td .dpc-star { color: #C9A14A; }
.pcp-form { gap: 6px; }
.care-input { font: inherit; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #F2F3F6; width: 150px; }
.care-input::placeholder { color: #9EA4B2; }
.care-err { color: #F2B3A8; font-size: 12px; }

/* PCP packet (Nov 28, 2026): cover letter, then the released report on a new page. */
.pcp-letter { max-width: 720px; font-size: 14.5px; line-height: 1.55; }
.pcp-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 14px; }
.pcp-brand { font-family: "Playfair Display", serif; font-size: 22px; color: var(--navy); }
.pcp-brand span { color: #B8924A; }
.pcp-letter h4 { margin: 14px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.pcp-list { margin: 0; padding-left: 18px; }
.pcp-list li { margin: 2px 0; }
.pcp-note-print { padding: 8px 12px; background: #F7F4EE; border-left: 3px solid #B8924A; }
.pcp-sign { margin-top: 18px; }
@media print { .pcp-break { break-before: page; } .pcp-letter { max-width: none; } }

/* Enter results (Nov 28, 2026): bolder, larger headers; the date row on its own tint so it stands apart from the results. */
.intake-main .card > h3 { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.005em; }
.intake-main fieldset.picks legend { font-size: 16px; font-weight: 800; }
.intake-side .side-group .mode-label { font-size: 13px; font-weight: 800; color: var(--navy); }
.fgrid.when-band { background: #E7F0F7; border: 1px solid #C6DAE8; border-left: 4px solid #2F6F8F; border-radius: 8px; padding: 10px 12px 4px; margin: 6px 0 14px; }
.fgrid.when-band .fld > span { color: #1E4D66; font-weight: 700; }
.fgrid.when-band input, .fgrid.when-band select { background: #FFFFFF; }

/* What they're due for: a ⚠ beside the screen and on the Chart prep tab; the order lists open over the page. */
.side-marks { display: inline-flex; gap: 6px; align-items: baseline; flex: none; }
.side-hazard { color: #C2410C; font-size: 13px; font-weight: 700; line-height: 1; }
.side-item[aria-current="true"] .side-hazard { color: #FDBA74; }
.tab-hazard { color: #C2410C; font-weight: 800; }
.flow-tab[aria-selected="true"] .tab-hazard { color: #FDBA74; }
.due-link { display: block; width: 100%; text-align: left; margin: 8px 0 2px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--cream); font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.due-link.has-due { border-color: #F5C9A8; background: #FFF4EB; color: #9A3412; font-weight: 600; }
.due-link:hover { filter: brightness(.98); }
.due-hazard { color: #C2410C; }
.due-overlay { position: fixed; inset: 0; background: rgba(11, 29, 58, .28); z-index: 50; display: flex; justify-content: flex-end; }
.due-drawer { width: min(560px, 100%); height: 100%; overflow-y: auto; border-radius: 0; margin: 0; box-shadow: -8px 0 24px rgba(11, 29, 58, .18); }
.due-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.due-drawer-head h3 { margin: 0; font-size: 20px; font-weight: 800; }
.lab-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lab-head h3 { margin: 0; }
.who-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 2px; }
.who-line .care-banner { margin-top: 0; }

/* Yes/no questions: one per row, Yes and No boxes in columns; the Yes/No headings tick the whole column (Nov 28, 2026). */
.yn-table { border-collapse: collapse; margin: 4px 0 10px; width: 100%; max-width: 640px; }
.yn-table th, .yn-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.yn-table thead th { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; width: 56px; border-bottom: 2px solid var(--line); }
.yn-table thead th.yn-q { text-align: left; width: auto; }
.yn-table tbody th.yn-q { text-align: left; font-weight: 500; font-size: 14px; color: var(--ink); }
.yn-table td { text-align: center; }
.yn-table td > input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.yn-table tbody tr:hover { background: var(--cream); }
.yn-all { font: inherit; font-size: 12px; font-weight: 800; color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.yn-all:hover { border-color: currentColor; }
.part-tabs { margin-bottom: 2px; }

/* Options as tick boxes instead of a dropdown (Nov 28, 2026). */
.fgrid .fboxes { grid-column: 1 / -1; }
.obox-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.obox { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.obox input { width: 18px; height: 18px; margin: 0; cursor: pointer; }

/* One-line fields (Nov 29, 2026): a "No … history" box with its words beside it, and a count with its question beside it. */
.fgrid > .finline, .fgrid > label.pick.finline { grid-column: 1 / -1; display: flex; flex-flow: row nowrap; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: 14px; }
.fgrid > .finline input[type="checkbox"] { width: 18px; height: 18px; margin: 0; transform: none; }
.fgrid > .finline input.rv-input { width: 90px; }
.prefill-note { margin: 4px 0 8px; }

/* ---------- First sign-in: intro, welcome and the guided intake (Nov 29, 2026) ---------- */
.brand-hidden { visibility: hidden; }
body.intro-lock { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 1000; background: var(--navy); overflow: hidden; }
.intro-collage { position: absolute; inset: -4%; opacity: 0; transition: opacity .9s ease; }
.intro-photo { position: absolute; background-size: cover; background-position: center; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 38%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 38%, transparent 72%);
  transform: scale(1.06); transition: transform 4.5s ease-out; }
.intro-photo.p0 { left: -6%; top: -8%; width: 62%; height: 64%; }
.intro-photo.p1 { right: -8%; top: -4%; width: 60%; height: 62%; }
.intro-photo.p2 { left: -4%; bottom: -10%; width: 58%; height: 62%; }
.intro-photo.p3 { right: -6%; bottom: -8%; width: 60%; height: 60%; }
.intro-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,29,58,.82) 0%, rgba(11,29,58,.45) 45%, rgba(11,29,58,.25) 100%); }
.intro-title { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-family: "Playfair Display", serif; font-size: clamp(40px, 9vw, 96px); line-height: 1.1; color: var(--cream); opacity: 0; transition: opacity .9s ease .5s; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.intro-title span { color: var(--gold); }
.intro-skip { position: absolute; right: 18px; bottom: 18px; background: rgba(255,255,255,.12); color: var(--cream); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.intro.intro-in .intro-collage { opacity: 1; }
.intro.intro-in .intro-photo { transform: scale(1); }
.intro.intro-in .intro-title { opacity: 1; }
.intro.intro-fly { background: transparent; transition: background .9s ease; }
.intro.intro-fly .intro-collage, .intro.intro-fly .intro-veil, .intro.intro-fly .intro-skip { opacity: 0; transition: opacity .8s ease; }
.intro.intro-fly .intro-title { text-shadow: none; transition: none; }
.intro.intro-out { opacity: 0; transition: opacity .45s ease; }

.onb { max-width: 640px; margin: 0 auto; padding: 8px 0 40px; }
.onb-card { padding: 28px 28px 24px; border-radius: 14px; }
.onb-kicker { margin: 0 0 6px; color: var(--gold-ink); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.onb-h1 { font-family: "Playfair Display", serif; font-weight: 500; font-size: 34px; color: var(--navy); margin: 0 0 16px; }
.onb-lead { font-size: 17px; }
.onb-appt { display: flex; align-items: center; gap: 14px; background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.onb-appt-icon { font-size: 26px; }
.onb-appt-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.onb-appt-when { font-size: 18px; font-weight: 600; color: var(--navy); }
.btn.onb-go { width: 100%; padding: 14px 18px; font-size: 17px; border-radius: 10px; margin-top: 8px; }
.onb-done { text-align: center; }
.onb-done .onb-appt { text-align: left; }
.onb-check { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; background: var(--green-bg); color: var(--green-fg); font-size: 34px; line-height: 64px; font-weight: 700; }

.gq-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0 14px; }
.gq-progress > div { height: 100%; background: var(--gold); border-radius: 999px; transition: width .35s ease; }
.gq-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.gq-back { font-size: 15px; white-space: nowrap; }
.gq-where { font-size: 13px; color: var(--muted); text-align: right; }
.gq-intro { margin: 0 0 6px; color: var(--muted); }
.gq-label { font-family: "Playfair Display", serif; font-weight: 500; font-size: 24px; line-height: 1.25; color: var(--navy); margin: 6px 0 8px; }
.gq-help { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.gq-opts { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 4px; }
.gq-opts.is-row { flex-direction: row; }
.gq-opts.is-row .gq-opt { flex: 1 1 0; text-align: center; }
.gq-opt { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 18px; font-size: 17px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; min-height: 54px; }
.gq-opt:hover { border-color: var(--gold); }
.gq-opt:active { transform: scale(.99); }
.gq-opt.is-on { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.gq-checks { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.gq-checks.is-chips { flex-direction: row; flex-wrap: wrap; }
.gq-chip { display: inline-flex; align-items: center; gap: 8px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 15px; font-size: 16px; color: var(--ink); cursor: pointer; min-height: 48px; }
.gq-checks.is-chips .gq-chip { border-radius: 999px; padding: 10px 16px; font-size: 15px; min-height: 44px; }
.gq-chip:hover { border-color: var(--gold); }
.gq-chip.is-on { border-color: var(--navy); background: #EEF1F6; color: var(--navy); font-weight: 600; }
.gq-chip.is-none { color: var(--muted); }
.gq-tick { color: var(--navy); font-weight: 700; }
.gq-stepper { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 4px; }
.gq-step { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 26px; color: var(--navy); cursor: pointer; }
.gq-step:hover { border-color: var(--gold); }
.gq-num { width: 140px; text-align: center; font-size: 30px; font-weight: 600; color: var(--navy); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px; }
.gq-unit { text-align: center; color: var(--muted); margin: 6px 0 0; }
.gq-text { width: 100%; font: inherit; font-size: 17px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0 4px; background: #fff; }
textarea.gq-text { min-height: 130px; resize: vertical; }
.gq-num:focus, .gq-text:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.gq-rows { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.gq-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gq-row select, .gq-row input { font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.gq-row select { flex: 1 1 160px; min-width: 0; max-width: 100%; }
.gq-row input { width: 90px; }
.btn.gq-next { width: 100%; padding: 14px 18px; font-size: 17px; border-radius: 10px; margin-top: 16px; }
.btn.gq-next[disabled] { opacity: .45; cursor: default; }
@media (max-width: 640px) {
  .onb { padding-top: 0; }
  .onb-card { padding: 20px 18px; border-radius: 12px; }
  .onb-h1 { font-size: 28px; }
  .gq-label { font-size: 21px; }
  .gq-opts.is-row { flex-direction: column; }
}

/* Member uploads */
.up-kinds { margin: 4px 0 12px; }
.up-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.up-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.up-list .up-name { font-weight: 600; word-break: break-word; }
.up-list .note { grid-column: 1; }
.up-list .pill { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.pill.up-new { background: var(--yellow-bg); color: var(--yellow-fg); }
.pill.up-reviewed { background: var(--grey-bg); color: var(--grey-fg); }
.pill.up-filed { background: var(--green-bg); color: var(--green-fg); }
.ok-note { color: var(--green-fg); font-weight: 600; }
.up-table td { vertical-align: top; }

/* Patient profile: the member's pre-visit answers; the first visit on the portal card */
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.pv-chip { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.pv-quote { font-style: italic; color: var(--ink); margin: 4px 0 10px; }
.pv-confirm li { margin-bottom: 4px; }
.pv-prov h4 { margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.appt-block { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.appt-block h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.appt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.appt-row input { flex: 1 1 130px; }
.nm-invite { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; }
.nm-invite input { margin-top: 4px; }

/* Provider dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dash-head h2 { margin: 0; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.dash-filter { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.dash-filter select { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 220px; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dash-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.dash-tile-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dash-tile-value { font-size: 28px; font-weight: 600; color: var(--navy); margin: 2px 0; }
.dash-tile-sub { font-size: 13px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dash-bars h3 { margin-top: 0; }
.dash-barlist { display: flex; flex-direction: column; gap: 6px; }
.dash-bar, .dash-stackrow { display: grid; grid-template-columns: minmax(110px, 44%) 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.dash-stackrow { grid-template-columns: minmax(90px, 30%) 1fr; }
.dash-bar-label { overflow-wrap: anywhere; line-height: 1.3; }
.dash-bar-track { height: 12px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.dash-bar-fill { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.dash-bar-n { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 2ch; text-align: right; }
.dash-stacks { display: flex; flex-direction: column; gap: 8px; }
.dash-stack { display: flex; height: 18px; border-radius: 6px; overflow: hidden; }
.dash-seg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; min-width: 18px; }
.dash-seg.c-green { background: #3F7350; } .dash-seg.c-yellow { background: #C98A2E; } .dash-seg.c-orange { background: #D7743E; } .dash-seg.c-red { background: #B4523F; }
.dash-table th { white-space: nowrap; }
.dash-sort { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.dash-val { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dash-val .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.up-good { color: var(--green-fg); font-weight: 600; }
.up-bad { color: var(--red-fg); font-weight: 600; }
/* Phones held upright: the photos stack as soft horizontal bands. */
@media (max-aspect-ratio: 4/5) {
  .intro-photo { -webkit-mask-image: radial-gradient(ellipse 60% 50% at center, #000 45%, transparent 80%); mask-image: radial-gradient(ellipse 60% 50% at center, #000 45%, transparent 80%); }
  .intro-photo.p0 { left: -20%; right: auto; top: -6%; bottom: auto; width: 140%; height: 36%; }
  .intro-photo.p1 { left: -20%; right: auto; top: 20%; bottom: auto; width: 140%; height: 34%; }
  .intro-photo.p2 { left: -20%; right: auto; top: 46%; bottom: auto; width: 140%; height: 34%; }
  .intro-photo.p3 { left: -20%; right: auto; top: 72%; bottom: auto; width: 140%; height: 34%; }
}

/* Patient documents (Nov 29, 2026) */
.doc-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; vertical-align: middle; background: rgba(255,255,255,.08); color: var(--cream); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 13px; font-family: "DM Sans", system-ui, sans-serif; cursor: pointer; }
.doc-btn:hover, .doc-btn.is-on { background: rgba(255,255,255,.18); border-color: var(--gold); }
.doc-badge { background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.doc-count { color: #B7BCC8; font-size: 12px; }
.doc-filters { flex-wrap: wrap; }
.doc-split { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 12px; align-items: start; }
@media (max-width: 900px) { .doc-split { grid-template-columns: 1fr; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.doc-item.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.doc-pick { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.doc-name { font-weight: 600; word-break: break-word; }
.doc-meta { margin: 4px 0 6px; }
.doc-labels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.doc-labels-edit { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.gq-chip.doc-chip { border-radius: 999px; padding: 5px 11px; font-size: 13px; min-height: 0; }
.doc-actions { margin-top: 6px; }
.doc-add { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.doc-add h3 { margin: 0 0 4px; }
.doc-view { position: sticky; top: 12px; }
.doc-frame { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.doc-img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.doc-strip { border-left: 4px solid var(--gold); }
.doc-strip h3 { margin: 0; font-size: 15px; }
.doc-strip-item { border-top: 1px solid var(--line); padding: 8px 0; }
.doc-strip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.doc-strip .doc-frame { height: 70vh; margin-top: 8px; }
.doc-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left: 4px solid var(--gold); }
.doc-strip .adm-actions, .doc-item .doc-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; align-items: center; }

/* The member's name stays on screen while scrolling long forms (audit Nov 29, 2026: wrong-patient risk). Wide screens
   only, so the header doesn't eat a phone screen. */
@media (min-width: 900px) { .top { position: sticky; top: 0; z-index: 20; } }

/* ---------- UX fixes (audit Nov 29, 2026, section 5) ---------- */
/* Status is never colour alone: each colour also has its own shape, wherever a status dot or pin appears.
   Optimal = circle, Monitor = rounded square, Elevated = triangle, Act = diamond, not released = hollow circle. */
.dot.c-yellow, .apin.c-yellow { border-radius: 2px !important; }
.dot.c-orange { border-radius: 0 !important; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dot.c-red { border-radius: 0 !important; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: scale(1.2); }
.apin.c-orange { border-radius: 0 !important; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.apin.c-red { border-radius: 0 !important; transform: rotate(45deg) scale(.85); }

/* Inputs and answer choices: borders at 3:1 or better. */
.rv-input, .rv-note, .fld select, .pv-choice, .gq-opt, .gq-chip, .gq-num, .gq-text, .gq-step, .yn-all, textarea.json, select.rv-input { border-color: var(--line-strong); }
.gq-opt.is-on, .gq-chip.is-on { border-color: var(--navy); }

/* Visible keyboard focus everywhere; a heading that received focus after a page change doesn't draw a ring. */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.top :focus-visible, .tabs :focus-visible, .devbar :focus-visible, .bottom-bar :focus-visible { outline-color: #F2CFA9; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* Confirm dialog (publishing) and the error toast. */
dialog.confirm { border: 0; border-radius: 14px; padding: 22px 24px; max-width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(11,29,58,.35); color: var(--ink); }
dialog.confirm::backdrop { background: rgba(11,29,58,.45); }
dialog.confirm h2 { font-size: 21px; margin-bottom: 8px; }
dialog.confirm .actions { margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; max-width: min(560px, calc(100vw - 32px)); background: var(--navy); color: var(--cream); padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(11,29,58,.3); font-size: 14px; }
.toast[hidden] { display: none; }

/* Member: next visit and "what happens next". */
.next-visit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-left: 4px solid var(--gold); }
.nv-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-ink); font-weight: 700; }
.next-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Worklist search and sort. */
.wl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.wl-tools input[type="search"] { flex: 1 1 240px; max-width: 360px; }
.wl-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.wl-sort select { font: inherit; font-size: 14px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #FCFAF5; }

/* Phone: hub lists for the member's Results and More tabs. */
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hub-list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px; min-height: 52px; cursor: pointer; color: var(--ink); }
.hub-list button:not(:has(.dot)) { grid-template-columns: 1fr auto; }
.hub-list .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.hub-name { font-weight: 600; color: var(--navy); }
.hub-status { font-size: 13px; color: var(--muted); }

/* Phone: the member's bottom tab bar replaces the strip of section buttons; the header numbers scroll sideways. */
.bottom-bar { display: none; }
@media (max-width: 700px) {
  body.member-ui .tabs { display: none; }
  body.member-ui { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.member-ui .bottom-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-bar button { display: grid; justify-items: center; gap: 2px; background: transparent; border: 0; color: #B7BCC8; font: inherit; font-size: 12px; padding: 8px 4px 10px; min-height: 56px; cursor: pointer; border-top: 3px solid transparent; }
  .bottom-bar button[aria-current="page"] { color: var(--cream); border-top-color: var(--gold); }
  .bb-icon { font-size: 18px; line-height: 1; }
  .glance { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .glance .gl-item { flex: none; min-width: 84px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.card.review .next-steps { text-align: left; max-width: 520px; margin: 0 auto; }

/* ---------- Questionnaire and Enter results feedback (Dr. Reinke, Nov 29, 2026) ---------- */
.gq-top { display: grid; grid-template-columns: minmax(72px, 1fr) minmax(0, auto) minmax(72px, 1fr); align-items: center; gap: 12px; }
.gq-top .gq-back { justify-self: start; }
.gq-top .gq-where { text-align: center; }
.gq-pct { text-align: right; font-size: 13px; color: var(--muted); margin: -4px 0 8px; }
.gq-fwd { justify-self: end; }
.gq-note { background: #F6F1E6; border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 14px; margin: 4px 0 14px; font-size: 14.5px; color: var(--ink); }

/* Always-visible notes under a question (criteria, "leave blank unless…"). */
.fld-note { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.4; margin-top: 2px; text-transform: none; letter-spacing: 0; }
.yn-q .fld-note { max-width: 62ch; }

/* Follow-up questions nested under the yes/no row that opens them. */
.yn-table tr.has-detail th, .yn-table tr.has-detail td { border-bottom: 0; }
.yn-table tr.yn-detail td { padding: 0 0 12px 18px; }
.fgrid.nested { border-left: 3px solid var(--gold); background: #FBF8F1; border-radius: 0 8px 8px 0; padding: 10px 12px; margin: 0; }

/* List fields: one card per row, labels above the boxes. */
.list-field { display: grid; gap: 8px; }
.list-title { font-weight: 600; color: var(--navy); }
.row-cards { display: grid; gap: 10px; }
.row-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: #fff; }
.row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; }
.row-grid .fld { min-width: 0; }
.row-grid .fld select, .row-grid .fld input { width: 100%; min-width: 0; box-sizing: border-box; }
.row-grid .span2 { grid-column: span 2; }
.row-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; padding-bottom: 8px; }
.row-remove { align-self: center; }
@media (max-width: 640px) { .row-grid .span2 { grid-column: 1 / -1; } }

/* Medications and supplements stand out: tinted rows while entering, and the saved list below. */
.saved-meds { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; margin: 4px 0 14px; }
.saved-meds table { background: transparent; }

/* The member's own medication list, beside the rows. */
.member-said { background: #F6F1E6; border: 1px solid #E2D3B3; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.member-said h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.member-said .list { margin: 0 0 8px; }
.yn-table tr.yn-detail td { text-align: left; }
.fgrid.nested .fld, .fgrid.nested .fboxes { text-align: left; }
.row-grid .row-check { grid-column: 1 / -1; padding-bottom: 0; }

/* ---------- The clinic bar and the development strip (Dr. Reinke, Nov 29, 2026) ---------- */
.devstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 5px 24px; background: var(--dev); color: #D9DCE3; font-size: 12.5px; }
.devstrip[hidden] { display: none; }
.dev-auth { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.staffbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 24px; background: #142A4C; border-bottom: 1px solid rgba(255,255,255,.08); color: #D9DCE3; position: relative; z-index: 30; }
.sb-left, .sb-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sb-left[hidden] { display: none; }
.sb-link { background: transparent; border: 1px solid transparent; color: #D9DCE3; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.sb-link:hover { background: rgba(255,255,255,.08); }
.sb-link[aria-current="page"] { background: rgba(242,207,169,.16); border-color: rgba(242,207,169,.5); color: #fff; }
.msearch { position: relative; }
.msearch input { width: min(340px, 70vw); font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 8px; border: 1px solid #5B6A86; background: #0E203D; color: #fff; }
.msearch input::placeholder { color: #9AA6BC; }
.msearch-list { position: absolute; top: calc(100% + 4px); left: 0; width: max(100%, 420px); max-width: 92vw; max-height: 60vh; overflow: auto; margin: 0; padding: 4px; list-style: none; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 12px 40px rgba(11,29,58,.3); z-index: 60; }
.msearch-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.msearch-list li[aria-selected="true"], .msearch-list li:hover { background: var(--sand); }
.msearch-list li.is-open .msr-name::after { content: " · open now"; color: var(--muted); font-weight: 400; font-size: 12px; }
.msr-name { font-weight: 600; color: var(--navy); }
.msr-id { font-size: 12px; color: var(--muted); }
.msr-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.msr-empty { color: var(--muted); cursor: default; }
.staffbar .seg button { color: #D9DCE3; }
.staffbar .seg[hidden] { display: none; }
/* Account menu */
.umenu { position: relative; }
.umenu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid #5B6A86; color: #fff; font-size: 14px; }
.umenu summary::-webkit-details-marker { display: none; }
.umenu summary::after { content: "▾"; font-size: 11px; color: #9AA6BC; }
.um-role { font-size: 12px; color: #9AA6BC; }
.um-list { position: absolute; right: 0; top: calc(100% + 4px); min-width: 180px; background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(11,29,58,.3); padding: 4px; display: grid; z-index: 60; }
.um-list button { text-align: left; background: transparent; border: 0; font: inherit; font-size: 14px; color: var(--ink); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.um-list button:hover, .um-list button:focus-visible { background: var(--sand); }
/* A member's bar holds only the account menu, on the right. */
body.is-member-account .staffbar { justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
/* Signed out: no clinic bar at all (it used to leave a Dashboard button on the sign-in page). */
body.auth-mode .staffbar { display: none; }
/* Clinic pages: no domain menu, the page uses the full width, and a way back to the last chart. */
body.clinic-page .shell { grid-template-columns: minmax(0, 1fr); }
body.clinic-page .tabs { display: none; }
.who-back { background: transparent; border: 0; padding: 0; margin-top: 2px; color: #F2CFA9; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) { .devstrip, .staffbar { padding-left: 16px; padding-right: 16px; } .msearch input { width: 100%; } .msearch { flex: 1 1 100%; } }

/* ---------- One-line top bar with a user menu (Dr. Reinke, Nov 29, 2026) ---------- */
.staffbar { flex-wrap: nowrap; gap: 10px; padding: 7px 24px; background: var(--dev); }
.sb-left { flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; }
.sb-right { flex: none; flex-wrap: nowrap; }
.sb-dev { flex: none; font-size: 10.5px; padding: 2px 7px; }
.sb-dev[hidden] { display: none; }
.msearch { flex: 0 1 340px; min-width: 140px; }
.msearch input { width: 100%; }
.uavatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F2CFA9; color: #3A2208; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.uavatar.is-dev { background: #3A3F4C; color: #F2CFA9; font-size: 11px; }
.umenu summary { border: 0; padding: 2px; border-radius: 50%; }
.umenu summary::after { content: none; }
.umenu summary:hover .uavatar, .umenu[open] .uavatar { box-shadow: 0 0 0 3px rgba(242,207,169,.45); }
.um-list { min-width: 250px; padding: 6px; }
.um-head { display: grid; gap: 1px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.um-head strong { color: var(--navy); }
.um-head span { font-size: 12.5px; color: var(--muted); }
.um-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 10px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.um-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; font-size: 14px; color: var(--ink); }
.um-row.um-note { font-size: 12.5px; color: var(--muted); }
.um-row .auth-switch { border-color: var(--line-strong); color: var(--ink); }
.um-sep { height: 1px; background: var(--line); margin: 4px 0; }
@media (max-width: 760px) {
  .staffbar { flex-wrap: wrap; }
  .sb-left { flex-wrap: wrap; }
  .msearch { flex: 1 1 100%; order: 5; }
}
/* The selected view reads dark on the light tab (Dr. Reinke, Nov 29, 2026: light text on it was unreadable). */
.staffbar .seg button[aria-pressed="true"] { background: #F2CFA9; color: #3A2208; font-weight: 700; }
.staffbar .seg button[aria-pressed="false"] { color: #E6E9EF; }
/* Typed follow-ups on the same page as the choice that opens them; "other" cancers named in their row. */
.gq-inline-wrap { display: grid; gap: 6px; margin: 14px 0 4px; font-weight: 600; color: var(--navy); }
.gq-inline-wrap .gq-text { margin: 0; font-weight: 400; }
.gq-row input.gq-other { border-color: var(--line-strong); min-width: 180px; flex: 1 1 180px; }

/* Rows already saved to the record (Dr. Reinke, Nov 29, 2026): green with a "Saved" mark until changed. */
.row-card { position: relative; }

/* Each section of an Enter results screen in its own panel, with a header band (Dr. Reinke, Nov 29, 2026). */
.intake-main fieldset.picks { border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; padding: 0 14px 12px; margin: 14px 0 0; }
.intake-main fieldset.picks > legend { float: left; width: calc(100% + 28px); margin: 0 -14px 12px; padding: 9px 14px; background: var(--sand); border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; font-size: 15px; font-weight: 800; color: var(--navy); }
.intake-main fieldset.picks > legend + * { clear: both; }
.intake-main fieldset.picks:not(:has(> legend)) { padding-top: 12px; }

/* ---------- Next steps after the questions; to-do dots (Dr. Reinke, Nov 29, 2026) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ns-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.ns-step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.ns-step p { margin: 2px 0 6px; color: var(--ink); font-size: 14.5px; }
.ns-step strong { color: var(--navy); }
.ns-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; margin-top: 1px; }
.ns-step.is-done .ns-mark { background: var(--green-fg); border-color: var(--green-fg); }
.ns-step.is-done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.ns-step .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card.review .ns-list { max-width: 620px; margin: 8px auto 0; }
.onb-done .ns-list { margin: 6px 0 14px; }
.onb-next-h { margin: 18px 0 4px; text-align: left; }
.up-guide { background: #F6F1E6; border: 1px solid #E2D3B3; border-radius: 10px; padding: 10px 14px; margin: 10px 0 12px; }
.up-guide .list { margin: 6px 0; }
.up-guide p { margin: 6px 0; }
.bb-icon { position: relative; }
.bb-dot { position: absolute; top: -2px; right: -8px; width: 8px; height: 8px; border-radius: 50%; background: #F2CFA9; box-shadow: 0 0 0 2px var(--navy); }

/* Worklist progress columns (Dr. Reinke, Nov 29, 2026) */
.wl-progress th.wl-step { text-align: center; font-size: 11.5px; white-space: nowrap; }
.wl-progress td.wl-step { text-align: center; vertical-align: top; min-width: 74px; }
.wl-progress td.wl-step small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
.wl-main { display: block; font-weight: 700; color: var(--navy); font-size: 13px; }
.wl-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 12px; font-weight: 800; background: #fff; }
.wl-mark.is-done { background: var(--green-fg); border-color: var(--green-fg); color: #fff; }
.wl-mark.is-part { background: #FBEBDC; border-color: var(--dot-yellow); color: #8A5A0A; }
.wl-mark.is-alert { background: var(--yellow-bg); border-color: var(--yellow-fg); color: var(--yellow-fg); border-radius: 6px; }
.wl-legend { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wl-legend .wl-mark { width: 18px; height: 18px; font-size: 10px; }

/* Review status (Dr. Reinke, Nov 29, 2026): blue = the member entered it before the visit and no one has reviewed it;
   white = reviewed, part of the chart. */
:root { --member-bg: #EAF1FB; --member-line: #9DB9E3; --member-ink: #24508F; }
.member-banner { background: var(--member-bg); border: 1px solid var(--member-line); border-radius: 10px; padding: 10px 14px; margin: 6px 0 12px; color: var(--ink); font-size: 14px; }
.member-banner strong { color: var(--member-ink); }
.card.is-unreviewed fieldset.picks { background: var(--member-bg); border-color: var(--member-line); }
.card.is-unreviewed fieldset.picks legend { background: var(--member-bg); }
.saved-meds tr.is-member td { background: var(--member-bg); }
.key-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1px solid var(--member-line); }
.key-swatch.is-member { background: var(--member-bg); }
.side-item.is-member:not([aria-current="true"]) { background: var(--member-bg); }
.side-mark.by-member { color: var(--member-ink); font-weight: 600; }
.side-item[aria-current="true"] .side-mark.by-member { color: inherit; }
/* Flags from Before your visit, and what's due on the screen in view. */
.side-hazard.is-flag { color: #B42318; }
.pv-flags { border: 1px solid #F1B5AE; background: #FDF1EF; }
.pv-flags h3 { color: #B42318; margin: 0 0 6px; }
.pv-flags .list { margin: 0; }
.due-notice { background: #FFF6E5; border: 1px solid #F0CF8E; border-radius: 10px; padding: 9px 14px; font-size: 14px; }
fieldset.picks.has-due { border-color: #F0CF8E; }
.due-word { color: #C2410C; font-weight: 600; }
.pv-flags-inline { border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.nav-flag { color: #FF7A6B; font-size: 13px; font-weight: 700; line-height: 1; }
.pending-card { background: var(--member-bg); border-color: var(--member-line); }
.pending-card .pslot { background: #fff; border: 1px solid var(--member-line); border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
/* Saved lists (medications, supplements, relatives, bone medicines) stand out (Dr. Reinke, Nov 29, 2026). */
.saved-meds { border: 2px solid var(--navy); padding: 12px 16px 10px; }
.saved-meds h4 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line-strong); }
.saved-meds h4 .note { font-size: 13px; font-weight: 400; }
.list-field > .list-title { font-size: 17px; font-weight: 700; }
.pv-confirm-card .list { margin: 6px 0 0; }

/* Tick-box answers (guided questions and Before your visit): a block list with a square box, as in the iPhone app
   (Dr. Reinke, Nov 30, 2026). */
.gq-check { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; text-align: left; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; font-size: 16.5px; color: var(--ink); cursor: pointer; }
.gq-check:hover { border-color: var(--gold); }
.gq-check.is-on { border-color: var(--navy); background: #EEF1F6; }
.gq-check.is-none { margin-top: 6px; color: var(--muted); }
.gq-box { width: 26px; height: 26px; flex: none; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; color: #fff; background: #fff; }
.gq-check.is-on .gq-box { background: var(--navy); border-color: var(--navy); }
.pv-opts { margin: 8px 0 2px; max-width: 560px; }
.pv-opts.gq-opts .gq-opt { padding: 12px 16px; min-height: 48px; font-size: 16px; }

/* Wearable data on an area's page (Dec 1, 2026): blue, so device numbers can't be mistaken for test results. */
:root { --wear-bg: #E8F3FB; --wear-line: #8EC0E4; --wear-ink: #1D5E8C; }
.wear-card { background: var(--wear-bg); border-color: var(--wear-line); }
.wear-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 8px; }
.wear-head h3 { margin: 0; color: var(--wear-ink); }
.wear-tag { background: var(--wear-ink); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wear-tile { background: #fff; border-color: var(--wear-line); }
.wear-tile strong { color: var(--wear-ink); }

/* "Don't see your device?" (Dec 2, 2026) */
.fld.dev-ask { margin-bottom: 8px; }
.fld.dev-ask input, .fld.dev-ask textarea { font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #FCFAF5; color: var(--ink, inherit); }
