/* ==========================================================================
   Helthio Partner Apps — theme and partner components
   Loaded after base.css (the patient app's design system, unchanged) and
   re-points its tokens at the partner colour. Colour option A, agreed
   28 Sep 2026: a teal-blue between Helthio blue (#3E55A5, patient and GP)
   and the hospital app's green (#29A96E). Status colours stay the same as
   every Helthio app, so "critical" or "done" reads the same everywhere.
   ========================================================================== */

:root {
  --partner: #1F7A8C;          /* main - headers, primary buttons, active tabs */
  --partner-dark: #175F6D;     /* pressed, deep headers */
  --partner-deep: #1F7A8C;     /* hero grounds behind white text - the main partner colour, as in the approved demo */
  --partner-soft: #E4F0F2;     /* soft notes and cards */
  --partner-mist: #F2F8F9;     /* page wash behind cards */
  --partner-line: #CFE3E7;

  /* Re-point the patient design system at the partner colour. */
  --primary-blue: var(--partner);
  --primary-blue-dark: var(--partner-dark);
  --primary-blue-deep: var(--partner-deep);
  --primary-blue-light: var(--partner-soft);
  --primary-blue-glow: rgba(31, 122, 140, 0.4);
  --shadow-blue: 0 10px 25px rgba(31, 122, 140, 0.22);
  --app-backdrop: #D9E6EA;
  --surface-gray: var(--partner-mist);
  --st-info: var(--partner);
  --st-info-bg: var(--partner-soft);
}

body { background: var(--app-backdrop); }

/* --------------------------------------------------------------------------
   App identity strip — "Helthio · Chemist Partner"
   The logo is never recoloured (brand guide p.12); the partner name sits
   beside it in Manrope, so the product is named without touching the mark.
   -------------------------------------------------------------------------- */
.partner-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.partner-id img { height: 26px; width: auto; }
.partner-id .sep { width: 1px; height: 18px; background: currentColor; opacity: .25; }
.partner-id .name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Eyebrow + display type
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--partner);
}
.display {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}
.display em { font-style: normal; color: var(--partner); }

/* --------------------------------------------------------------------------
   OTP boxes
   -------------------------------------------------------------------------- */
.otp-row { display: flex; gap: 10px; }
.otp-row input {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  max-width: 58px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--card-bg);
  text-align: center;
  font: 800 22px/1 var(--font-family);
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
}
.otp-row input:focus { outline: none; border-color: var(--partner); box-shadow: 0 0 0 4px var(--partner-soft); }
.otp-row input.filled { border-color: var(--partner); }

/* --------------------------------------------------------------------------
   Upload tiles
   -------------------------------------------------------------------------- */
.upload-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--card-bg);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-tile .ut-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--partner-soft); color: var(--partner);
}
.upload-tile strong { display: block; font-size: 14px; color: var(--text-dark); }
.upload-tile span { display: block; font-size: 12px; color: var(--text-muted); }
.upload-tile .ut-state { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--text-light); white-space: nowrap; }
.upload-tile.done { border-style: solid; border-color: var(--partner-line); background: var(--partner-mist); }
.upload-tile.done .ut-icon { background: var(--st-done-bg); color: var(--st-done); }
.upload-tile.done .ut-state { color: var(--st-done); }

/* --------------------------------------------------------------------------
   Vertical progress rail — used on verification and tracking screens
   -------------------------------------------------------------------------- */
.rail { position: relative; padding-left: 30px; }
.rail::before {
  content: "";
  position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border-color);
}
.rail-step { position: relative; padding: 0 0 18px; }
.rail-step:last-child { padding-bottom: 0; }
.rail-step .dot {
  position: absolute; left: -30px; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--card-bg); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.rail-step .dot svg { width: 13px; height: 13px; stroke-width: 3; }
.rail-step.done .dot { background: var(--partner); border-color: var(--partner); color: #fff; }
.rail-step.now .dot { border-color: var(--partner); box-shadow: 0 0 0 5px var(--partner-soft); }
.rail-step.now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--partner); }
.rail-step strong { display: block; font-size: 14.5px; color: var(--text-dark); }
.rail-step span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.rail-step.later strong { color: var(--text-light); }

/* --------------------------------------------------------------------------
   Key-value summary card
   -------------------------------------------------------------------------- */
.summary {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--card-bg);
  overflow: hidden;
}
.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  font-size: 13.5px;
  border-top: 1px solid var(--border-color);
}
.summary-row:first-child { border-top: 0; }
.summary-row dt { color: var(--text-muted); }
.summary-row dd { margin: 0; font-weight: 700; text-align: right; color: var(--text-dark); }

/* --------------------------------------------------------------------------
   Role cards — Lab app sign-in
   -------------------------------------------------------------------------- */
.role-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border-color);
  background: var(--card-bg);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.role-card:active { transform: scale(.99); }
.role-card .rc-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--partner-soft); color: var(--partner);
}
.role-card strong { display: block; font-size: 16px; color: var(--text-dark); }
.role-card span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.role-card.selected { border-color: var(--partner); box-shadow: 0 0 0 4px var(--partner-soft); }
.role-card.selected .rc-icon { background: var(--partner); color: #fff; }

/* Small helpers */
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 14px; }
.center { text-align: center; }
.fine { font-size: 11.5px; color: var(--text-light); line-height: 1.5; }

/* ==========================================================================
   Order screens (Phase 1)
   ========================================================================== */

/* Status pill - tone follows the shared Helthio status system */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 99px; white-space: nowrap;
}
.pill.action   { background: var(--st-action-bg);   color: var(--st-action); }
.pill.info     { background: var(--partner-soft);   color: var(--partner-dark); }
.pill.done     { background: var(--st-done-bg);     color: var(--st-done); }
.pill.critical { background: var(--st-critical-bg); color: var(--st-critical); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Schedule H tag - a medicine that needs a prescription */
.sch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  background: var(--st-critical-bg); color: var(--st-critical);
  border: 1px solid rgba(193, 39, 45, .18);
}

/* Partner header used by signed-in screens */
.p-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
}
.p-header .t { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.p-header .s { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* Money */
.money { font-variant-numeric: tabular-nums; font-weight: 800; }

/* Bottom sheet list rows */
.sheet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px; border-radius: 16px; border: 1.5px solid var(--border-color);
  background: var(--card-bg); font-family: inherit; text-align: left; cursor: pointer;
  margin-bottom: 8px;
}
.sheet-opt strong { display: block; font-size: 14.5px; color: var(--text-dark); }
.sheet-opt span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.sheet-opt.selected { border-color: var(--partner); box-shadow: 0 0 0 4px var(--partner-soft); }
.sheet-opt .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--partner-soft); color: var(--partner); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; font-size: 13px; }

.demo-bar {
  margin: 18px 0 0; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--text-muted);
}
.demo-bar button { border: 0; background: var(--partner-mist); color: var(--partner); font: 800 12px/1 var(--font-family); padding: 9px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; }

/* ==========================================================================
   Lab screens (Phase 2)
   ========================================================================== */

/* Sample tube - cap colour follows the vacutainer standard */
.tube { display: inline-flex; flex-direction: column; align-items: center; width: 14px; flex-shrink: 0; }
.tube i { display: block; width: 14px; height: 6px; border-radius: 3px 3px 1px 1px; background: var(--cap, #999); }
.tube b { display: block; width: 10px; height: 20px; border: 1.5px solid var(--border-strong); border-top: 0; border-radius: 0 0 6px 6px; background: linear-gradient(to top, rgba(193, 39, 45, .55) 55%, transparent 55%); }

/* Result flags */
.flag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.flag.high, .flag.low { background: var(--st-action-bg); color: var(--st-action); }
.flag.critical { background: var(--st-critical); color: #fff; }
.flag.normal { background: var(--st-done-bg); color: var(--st-done); }

/* Avatar chip */
.av-sq { display: flex !important; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; background: var(--partner-soft); color: var(--partner-dark); }
.av-sq.solid { background: var(--partner); color: #fff; }

/* Barcode strip */
.barcode { display: flex; gap: 1.5px; height: 26px; align-items: stretch; }
.barcode i { display: block; background: var(--text-dark); }

/* ==========================================================================
   Phlebo view (Phase 3) - used outdoors, often with one hand: larger type,
   bigger targets, one decision per screen.
   ========================================================================== */
body[data-role="phlebo"] { font-size: 15px; }
body[data-role="phlebo"] .btn { min-height: 54px; font-size: 16px; border-radius: 16px; }
body[data-role="phlebo"] .pill { font-size: 12px; padding: 5px 10px; }

/* Phlebo header: teal ground with a soft glow, a fine dot grid and the Helthio monogram watermark */
.ph-head {
  color: #fff; padding: 16px 18px 18px; position: relative; overflow: hidden;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #1F7A8C 0%, #1A6B7B 70%, #175F6D 100%);
}
.ph-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 60%); mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
}
.ph-head::after {
  content: ""; position: absolute; right: -38px; top: 52px; width: 160px; height: 200px; pointer-events: none;
  background: url('../assets/logo_monogram_inverse.svg') no-repeat top center / contain; opacity: .1;
}
.ph-head > * { position: relative; z-index: 1; }
.ph-head .row1 { display: flex; align-items: center; justify-content: space-between; }
.ph-head .row1 .partner-id img { height: 22px; }
.ph-head .row1 .partner-id .name { color: #fff; opacity: .75; }
.ph-head h1 { font-size: 26px; font-weight: 700; letter-spacing: .012em; word-spacing: .04em; color: #fff; margin-top: 16px; }
.ph-head .sub { font-size: 13px; opacity: .8; margin-top: 2px; }

.big-tile { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 22px; padding: 18px; }
.ph-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin: 22px 4px 10px; }

/* Tick rows - big enough for a thumb */
.tick { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--border-color); background: var(--card-bg); cursor: pointer; margin-bottom: 10px; }
.tick input { width: 24px; height: 24px; accent-color: var(--partner); flex-shrink: 0; }
.tick strong { display: block; font-size: 15px; }
.tick span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.tick:has(input:checked) { border-color: var(--partner); background: var(--partner-mist); }


/* Shared with the chemist app: neutral pill, inline action button, sticky-safe container */
.pill.neutral  { background: var(--partner-mist);    color: var(--text-muted); }
.mobile-container { overflow-x: clip; }
.act-btn { border: 1.5px solid var(--partner-line); background: var(--card-bg); color: var(--partner-dark); font: 800 12px/1 var(--font-family); padding: 9px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.act-btn:active { background: var(--partner-mist); }
.demo-bar { flex-wrap: wrap; }
.demo-bar > span { flex: 1 1 140px; }

/* ==========================================================================
   Patient-app parity layer (28 Oct 2026)
   Same components, spacing, type and depth as the Helthio patient app; only
   the partner colour tokens differ. Mirrors the "premium layer" at the end of
   the patient app index.css, plus the Home components (section heads, cards,
   icon tiles, row lists, quick-action grid, promo carousel).
   ========================================================================== */
[hidden] { display: none !important; }
:root {
  --shadow-soft: 0 1px 2px rgba(32, 42, 55, 0.04), 0 8px 22px rgba(32, 42, 55, 0.06);
  --shadow-card: 0 1px 2px rgba(32, 42, 55, .04), 0 6px 16px rgba(32, 42, 55, .04);
  --card-line: #E3EAF4;
  --tile-line: #D6E0F0;
}

/* One typeface, a little air between letters */
body { letter-spacing: 0.012em; }
h1, h2, h3, h4, .header-title { font-family: var(--font-family); font-weight: 700; letter-spacing: 0.005em; }

/* Header: frosted, quiet title. .p-header is this app page-header. */
.p-header {
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(191, 206, 221, 0.45);
  padding: 14px 16px; gap: 8px;
}
.p-header .t { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-header .icon-btn { border-color: #E3EAF2; background: var(--brand-white); box-shadow: 0 1px 2px rgba(32, 42, 55, 0.04); }
.icon-btn:empty { visibility: hidden; }

/* Cards: one soft shadow and a hairline border */
.card, .list-group { box-shadow: var(--shadow-soft); border-color: #EAF0F6; }

/* Buttons: a little firmer, primary carries a soft gradient of the partner colour */
.btn { font-weight: 700; letter-spacing: 0.01em; }
.btn-primary {
  background: linear-gradient(to bottom right, #3E9AAB 0%, var(--partner) 52%, #134C58 100%);
  box-shadow: 0 10px 22px rgba(31, 122, 140, 0.28);
}
.btn-outline { background: var(--brand-white); }
.segmented { background: #EEF3F8; border-color: transparent; }
.segmented button.active { box-shadow: 0 1px 2px rgba(32, 42, 55, 0.06), 0 4px 10px rgba(32, 42, 55, 0.07); color: var(--partner); }
.badge { letter-spacing: 0.06em; border-radius: 999px; }

/* Bottom nav: translucent, a small pill marks the current tab */
.bottom-nav { background-color: rgba(255, 255, 255, 0.94); box-shadow: 0 -6px 20px rgba(32, 42, 55, 0.05); border-top-color: rgba(191, 206, 221, 0.4); }
.nav-item { position: relative; font-weight: 500; letter-spacing: .01em; }
.nav-item.active { font-weight: 700; }
.nav-item.active::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 22px; height: 3px; margin-left: -11px;
  border-radius: 0 0 3px 3px; background: var(--partner);
}

/* Icon tile: white, fine blue-grey outline (patient Helthio tile) */
.ico-tile {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--tile-line); border-radius: 12px; color: var(--partner);
}
.ico-tile svg { width: 18px; height: 18px; }
.ico-tile.lg { width: 52px; height: 52px; border-radius: 14px; }
.ico-tile.lg svg { width: 24px; height: 24px; stroke-width: 1.8; }
.ico-tile.red { color: var(--st-critical); }
.ico-tile.amber { color: var(--st-action); }
.ico-tile.green { color: var(--st-done); }
body .li .ic, body .sheet-opt .ic, body .nudge .ic {
  background: #fff; border: 1.5px solid var(--tile-line); border-radius: 14px;
}

/* Section head: 16px title, small link on the right */
.h-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.h-head h2 { font-size: 16px; font-weight: 800; }
.h-head a { font-size: 12.5px; font-weight: 700; color: var(--partner); text-decoration: none; }
.h-count { font-size: 12px; font-weight: 700; color: var(--partner-dark); }

/* White rounded card; .rows holds a list of .row-item */
.h-card, .rows {
  background: #fff; border: 1px solid var(--card-line); border-radius: 20px; box-shadow: var(--shadow-card);
}
.h-card { padding: 15px 12px 14px; }
.h-card .h-head { margin: 0 4px 12px; }
.rows { padding: 2px 14px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EEF2F7; text-decoration: none; color: inherit; }
.row-item:first-child { border-top: 0; }
.ri-t { flex: 1; min-width: 0; }
.ri-t small { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.ri-t b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-t span { display: block; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-t small.red { color: var(--st-critical); }
.go-pill {
  flex-shrink: 0; border: 1.5px solid var(--tile-line); background: #fff; color: var(--partner); border-radius: 99px;
  padding: 7px 12px; font: 700 12px var(--font-family); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.go-pill.red { color: var(--st-critical); border-color: #F2C9CB; }
.go-pill.ok { color: var(--primary-teal-dark); border-color: #BFE6E0; }
.quiet { text-align: center; padding: 22px 16px; color: var(--text-muted); font-size: 13px; }
.quiet strong { display: block; color: var(--text-dark); font-size: 15px; margin-bottom: 4px; }

/* Quick actions: 4-column icon grid */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; column-gap: 2px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--text-dark); }
.qa b { font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.qa:active .ico-tile { transform: scale(.94); }

/* Search with suggestions (base.css .search-bar-container / .search-suggest) */
.search-wrap { margin: 18px 0 0; }

/* Sideways rows: snap, no scrollbar */
.snap-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { flex: 0 0 auto; scroll-snap-align: start; }

/* Rounded header for list screens: Home header, shorter */
.hero-lite, .top.hero-lite, .head.hero-lite {
  position: relative; overflow: hidden; color: #fff; border-bottom: 0;
  padding: 20px 20px 22px; border-radius: 0 0 30px 30px;
  background:
    radial-gradient(120% 90% at 92% -10%, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(150deg, #25899C 0%, #1F7A8C 45%, #175F6D 100%);
}
.hero-lite::before, .top.hero-lite::before { display: none; }
.hero-lite::after, .top.hero-lite::after, .head.hero-lite::after {
  content: ""; position: absolute; width: 210px; height: 210px; right: -60px; bottom: -70px; top: auto;
  background: url(../assets/logo_monogram_inverse.svg) center / contain no-repeat; opacity: .07; pointer-events: none;
}
.hero-lite > *, .top.hero-lite > *, .head.hero-lite > * { position: relative; z-index: 1; }
.hero-lite h1, .top.hero-lite h1, .head.hero-lite h1 { color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.hero-lite .sub, .top.hero-lite .sub { color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 500; margin-top: 4px; }

/* Promo carousel (placeholder content; real slides come from the admin feed) */
.promo-carousel { margin: 22px 0 6px; }
.promo-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 88%; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 16px;
  border-radius: 20px; text-decoration: none; color: var(--text-dark);
  background: linear-gradient(135deg, #fff 0%, var(--partner-soft) 100%); border: 1px solid var(--card-line); box-shadow: var(--shadow-card);
}
.promo-body { flex: 1; min-width: 0; }
.promo-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,.8); border: 1px solid var(--card-line); padding: 2px 7px; border-radius: 99px; margin-bottom: 6px; }
.promo-card strong { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.promo-card p { font-size: 12px; color: var(--text-muted); margin: 3px 0 0; }
.promo-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; font-size: 12.5px; font-weight: 800; color: var(--partner); }
.promo-icon { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--tile-line); border-radius: 14px; color: var(--partner); }
.promo-icon svg { width: 24px; height: 24px; }
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.promo-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: all .2s; }
.promo-dots i.on { width: 18px; border-radius: 3px; background: var(--partner); }
.top.hero-lite, .head.hero-lite { box-shadow: none; border-bottom: 0; }

/* Tinted tiles, as on the patient Home: each tile keeps one colour by meaning (--tc icon, --tb ground) */
.tn-lab  { --tc: #0F7F73; --tb: #E2F5F2; }
.tn-scan { --tc: #6A4FB6; --tb: #F0ECFA; }
.tn-med  { --tc: #2C8A4C; --tb: #E4F4E9; }
.tn-home { --tc: #4A4FC4; --tb: #ECEDFB; }
.tn-vax  { --tc: #CC5B45; --tb: #FCEDE9; }
.tn-sky  { --tc: #1C7FB6; --tb: #E1F2FC; }
.tn-diet { --tc: #4F7F2A; --tb: #EDF4E6; }
.tn-more { --tc: #202A37; --tb: #EEF1F4; }
.qa .ico-tile { background: var(--tb, #fff); border-color: var(--tb, var(--tile-line)); color: var(--tc, var(--partner)); transition: transform .15s ease; }

/* Tinted list cards (patient "Your care" / "Coming up" look): tint fades to white at the top */
.rows[class*="tn-"], .sales[class*="tn-"] { background: linear-gradient(180deg, var(--tb) 0, #fff 72px); }
.tn-amber { --tc: #B7791F; --tb: #FDF3E1; }
.tn-teal { --tc: var(--partner); --tb: #DDEEF1; }  /* matches the teal header */

/* Lab fixes: buttons keep the app font, initials in <i> tiles are upright */
.btn, button { font-family: var(--font-family); }
i.ico-tile { font-style: normal; }

/* Back button on teal headers (lab screens that open from the bottom nav or a sign-in step) */
.hero-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hero-back {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none;
}
.hero-back svg { width: 18px; height: 18px; }
.hero-back.light { background: #fff; border-color: var(--card-line); color: var(--text-dark); }

/* Visit timeline - one look on the lab Home and the phlebo Today screen:
   time column, a dot on a vertical line, the patient, then status. Airy rows,
   dividers start after the line so the rail reads as one clean column. */
.agenda.rows { padding: 6px 16px; }
.agenda .row-item { gap: 0; position: relative; padding: 16px 0; border-top: 0; align-items: center; }
.agenda .row-item + .row-item::after { content: ''; position: absolute; left: 97px; right: 0; top: 0; height: 1px; background: #EEF2F7; }
.agenda .row-item::before { content: ''; position: absolute; left: 75px; top: 0; bottom: 0; width: 2px; background: #E6EEF2; border-radius: 2px; }
.agenda .row-item:first-child::before { top: 50%; }
.agenda .row-item:last-child::before { bottom: 50%; }
.agenda-t { width: 62px; flex-shrink: 0; white-space: nowrap; line-height: 1.2; }
.agenda-t b { display: block; font-size: 15px; font-weight: 800; color: var(--text-dark); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.agenda-t b em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text-muted); margin-left: 1px; }
.agenda-t small { display: block; font-size: 11px; font-weight: 600; color: var(--text-light); margin-top: 3px; }
.agenda-t small::before { content: 'to '; }
.agenda-dot { box-sizing: border-box; width: 12px; height: 12px; margin: 0 16px 0 7px; border-radius: 50%; flex-shrink: 0; position: relative; z-index: 1;
  background: var(--partner); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--partner); }
.agenda-dot.action { background: var(--st-action); box-shadow: 0 0 0 1.5px var(--st-action); }
.agenda-dot.done { background: var(--st-done); box-shadow: 0 0 0 1.5px var(--st-done); }
.agenda-dot.now { background: #fff; border: 3px solid var(--partner); box-shadow: 0 0 0 4px var(--partner-soft); }
.agenda .ri-t { position: relative; padding-right: 10px; }
.agenda .ri-t b { font-size: 14.5px; }
.agenda .ri-t span { margin-top: 2px; }
.agenda .row-item.done .ri-t b, .agenda .row-item.done .agenda-t b { color: var(--text-muted); }
.agenda .row-item > .pill, .agenda .row-item > .tubes { flex-shrink: 0; }
