/* CaseCoach platform layer for the Skills lab.
   Loaded after the app's own styles: it swaps in CaseCoach's type and colors, restyles headings and labels to match,
   and styles the shared header and the account chip. The pump modules and the patient monitors keep their own
   instrument look on purpose. */
:root{
  --f-head:"Bricolage Grotesque","Inter",system-ui,sans-serif;
  --f-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --bg:#F5F7F9; --surface:#FFFFFF; --surface-2:#F0F3F6; --ink:#1F2937; --muted:#5E6978; --line:#DCE0E5;
  --accent:#0F766E; --accent-ink:#FFFFFF; --accent-soft:#D9F2EE; --brand:#0D9488;
  --r:12px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0E1216; --surface:#151A20; --surface-2:#1B2129; --ink:#ECEDE8; --muted:#94A0AD; --line:#27303A;
  --accent:#2DD4BF; --accent-ink:#04201D; --accent-soft:#103330; --brand:#14B8A6 }}
:root[data-theme="dark"]{
  --bg:#0E1216; --surface:#151A20; --surface-2:#1B2129; --ink:#ECEDE8; --muted:#94A0AD; --line:#27303A;
  --accent:#2DD4BF; --accent-ink:#04201D; --accent-soft:#103330; --brand:#14B8A6 }
body{font-feature-settings:"cv11","ss01";-webkit-font-smoothing:antialiased}

/* Headings: CaseCoach's display face, sentence case */
.method h2,.section-h,.cr-card b,.cr-unk b,.cr-title b,.cr-done b,.db-score b,.db-teach h3:not(.eyebrow),.patient-h h3,.panel h3,.tip h4,.dp h4,.verdict{
  font-family:var(--f-head);text-transform:none;letter-spacing:-.015em;font-weight:700}
.method h2,.section-h{font-size:24px}
.cr-card b{font-size:19px;line-height:1.15}
.cr-unk b{font-size:28px}
.cr-title b{font-size:19px}
.cr-done b{font-size:18px}
.db-score b{font-size:38px}
.db-teach h3:not(.eyebrow){font-size:17px}
.patient-h h3{font-size:17px}
/* Small labels: Inter, uppercase, lightly tracked */
.eyebrow,th,.tray-g h5,.qr-k,.qs-h,.hemo .hc i,.db-table thead th{font-family:var(--f-body);font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.eyebrow{font-size:12px}
.cr-tabs button{font-family:var(--f-body);font-weight:650;font-size:13.5px;letter-spacing:0;text-transform:none}
.db-table tbody th{font-family:var(--f-body);text-transform:none;letter-spacing:0;font-size:13.5px}
.btn{border-radius:10px}

/* Shared header */
header{padding-block:14px 12px}
.brand{text-decoration:none;color:inherit;gap:10px}
.brand-mark{width:34px;height:34px;color:var(--brand)}
.brand-name{display:block;font-family:var(--f-head);font-weight:700;font-size:19px;letter-spacing:-.02em;line-height:1.05}
.brand-sec{display:block;margin-top:3px;font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.plat-link{font-size:14px;font-weight:600;color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:999px;white-space:nowrap}
.plat-link:hover{color:var(--accent);background:var(--accent-soft)}
nav button{font-family:var(--f-body);font-weight:650;font-size:14.5px;letter-spacing:0;text-transform:none;padding:7px 14px}

/* Account chip */
.acct{position:relative;flex:none}
.acct-in{display:inline-flex;align-items:center;border-radius:999px;padding:8px 14px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap}
.acct-in:hover{filter:brightness(1.08)}
.acct-btn{position:relative;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--accent-soft);color:var(--accent);font-weight:800;font-size:15px;cursor:pointer;display:grid;place-items:center}
.acct-btn i{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;border:2px solid var(--bg);background:var(--ok)}
.acct-btn.syncing i{background:var(--warn)}.acct-btn.error i{background:var(--bad)}
.acct-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:120;width:min(280px,calc(100vw - 28px));display:grid;gap:8px;padding:14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 40px -18px rgba(0,0,0,.45)}
.acct-pop b{font-size:14px;overflow-wrap:anywhere}
.acct-pop p{margin:0;font-size:13px;color:var(--muted);line-height:1.45}.acct-pop p.error{color:var(--bad)}
.acct-pop a,.acct-pop button{font:inherit;font-size:14px;font-weight:600;text-align:left;padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);text-decoration:none;cursor:pointer}
.acct-pop a:hover,.acct-pop button:hover{border-color:var(--accent)}
footer a{color:inherit}
@media (max-width:900px){ .plat-link{display:none} }
@media (max-width:640px){
  .brand-mark{width:30px;height:30px}
  .brand-name{font-size:17px}.brand-sec{font-size:10.5px}
  nav button{font-size:11.5px;letter-spacing:0;padding:7px 2px 6px}
  .acct-in{padding:9px 12px}
  .method h2,.section-h{font-size:21px}
  .cr-unk b{font-size:24px}
}
.foot-plat{display:block;margin-bottom:8px;font-weight:600}
.foot-plat a{color:var(--accent);text-decoration:none;margin-right:14px}
.foot-plat a:hover{text-decoration:underline}
