/* RonanRx — "Your Health Profile" detailed-onboarding prototype
   Consumes /hub/assets/ronanrx.css tokens. No new fonts, no external requests.
   Phone frame on desktop + full-bleed on mobile; two modes via body.mode-gamified
   / body.mode-clinical; every input type; escalation + sensitive styling; print +
   prefers-reduced-motion. Everything is namespaced under .hp-* to avoid collisions. */

:root {
  /* onboarding-local aliases layered over ronanrx tokens */
  --hp-forest:   var(--surface-dark, #0c2f10);
  --hp-cream:    var(--paper, #f6f3ea);
  --hp-sage:     var(--sage, #a4c9aa);
  --hp-surface:  var(--surface, #ffffff);
  --hp-sunk:     var(--surface-muted, #fbfaf6);
  --hp-ink:      var(--text, #0c2f10);
  --hp-ink-2:    var(--text-muted, #4a5550);
  --hp-brand:    var(--brand, #0f3e17);
  --hp-hair:     var(--border-subtle, #ded8c7);
  --hp-hair-2:   var(--divider, #e5e0d1);
  /* one 2-step corner scale, aligned to the house patient-app tokens (12 / 8),
     plus a single named device-bezel radius and the pill; no ad-hoc content radii. */
  --hp-radius:       12px;   /* cards, buttons, large surfaces, help blocks */
  --hp-radius-sm:    8px;    /* inputs, chips, small controls, focus rings */
  --hp-radius-phone: 30px;   /* iPhone-frame bezel only */
  --hp-pill:     999px;
  --hp-gap:      0.85rem;
  --hp-pad:      1.1rem;
  --hp-app-w:    440px;
  --hp-accent:   #b97a2e;      /* amber, used sparingly for gate markers */
  --hp-gold:     #c08a2e;
  --hp-focus:    3px solid rgba(164, 201, 170, 0.9);
  /* elevation for the desktop app card (house patient-app feel) */
  --hp-shadow-app: 0 1px 3px rgba(20, 20, 20, 0.06), 0 24px 60px -30px rgba(12, 47, 16, 0.30);
}

/* ---------- page ground ---------- */
body {
  background: #e9e6dc;
  color: var(--hp-ink);
  font-family: var(--font-sans, "Geist", system-ui, sans-serif);
  margin: 0;
  min-height: 100dvh;
}

#hp-app { display: block; }
/* desktop/tablet backdrop: center the app card on the page (safe: auto margins
   collapse when the card is taller than the viewport, so tall views scroll). */
@media (min-width: 720px) {
  body:not(.device-mobile) #hp-app {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
  }
}
body.device-desktop #hp-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
}
body.device-mobile #hp-app { display: block; padding: 0; }

/* ---------- inline icons (SVG glyphs, not emoji) ----------
   Sized in em (font-size drives them) and tinted via currentColor so they take the
   palette. Replaces 🔒 / 🔥 which rendered inconsistently across platforms. */
.hp-ico { display: inline-flex; align-items: center; line-height: 0; vertical-align: -0.14em; }
.hp-ico svg { display: block; }
.hp-lock-ico, .hp-lock-inline { margin-right: 0.3em; color: var(--hp-ink-2); }
/* drop the lock glyph in clinical mode (keep the "Portal only" / privacy text) */
body.mode-clinical .hp-lock-ico,
body.mode-clinical .hp-lock-inline { display: none; }

/* ============================================================
   APP SHELL — full-screen app on mobile, centered card on desktop
   Mirrors the house patient-app pattern: a mobile-first app that
   becomes a rounded card on the page backdrop at wider widths.
   The desktop card is sized to its content (so a single-question
   screen sits centered, with no tall empty void) and its width is
   tuned per view (focused for the wizard, wider for the map).
   ============================================================ */
.hp-phone {
  width: 100%;
  max-width: var(--hp-app-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--hp-cream);
  display: flex;
  flex-direction: column;
  position: relative;
}
.hp-screen { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.hp-view   { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

/* --- desktop card treatment (shared by >=720px auto and forced-desktop) --- */
@media (min-width: 720px) {
  body:not(.device-mobile) .hp-phone {
    max-width: 40rem;
    min-height: 0;
    margin: 0 auto;
    border-radius: 22px;
    box-shadow: var(--hp-shadow-app);
    border: 1px solid var(--hp-hair);
    overflow: hidden;
  }
  body:not(.device-mobile) .hp-phone.v-run,
  body:not(.device-mobile) .hp-phone.v-landing,
  body:not(.device-mobile) .hp-phone.v-complete,
  body:not(.device-mobile) .hp-phone.v-escalation { max-width: 34rem; }
  body:not(.device-mobile) .hp-phone.v-chartdata,
  body:not(.device-mobile) .hp-phone.v-brief { max-width: 40rem; }
  body:not(.device-mobile) .hp-phone.v-map { max-width: 760px; }
}
body.device-desktop .hp-phone {
  max-width: 40rem;
  min-height: 0;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: var(--hp-shadow-app);
  border: 1px solid var(--hp-hair);
  overflow: hidden;
}
body.device-desktop .hp-phone.v-run,
body.device-desktop .hp-phone.v-landing,
body.device-desktop .hp-phone.v-complete,
body.device-desktop .hp-phone.v-escalation { max-width: 34rem; }
body.device-desktop .hp-phone.v-chartdata,
body.device-desktop .hp-phone.v-brief { max-width: 40rem; }
body.device-desktop .hp-phone.v-map { max-width: 760px; }

/* forced mobile stays a full-bleed app at any width */
body.device-mobile .hp-phone {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  min-height: 100dvh;
}

/* ============================================================
   APP HEADER
   ============================================================ */
.hp-apphead {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) var(--hp-pad) 0.8rem;
  background: var(--hp-surface);
  border-bottom: 1px solid var(--hp-hair);
}
.hp-avatar {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hp-forest);
  color: var(--hp-cream);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}
.hp-apphead-txt { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.hp-clinic {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--hp-ink);
}
.hp-greet { font-size: 0.72rem; color: var(--hp-ink-2); letter-spacing: 0.01em; }
.hp-greet b { color: var(--hp-ink); font-weight: 600; }

/* ============================================================
   SCROLL REGION
   ============================================================ */
.hp-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--hp-pad);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--hp-gap);
}

.hp-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-brand);
}
.hp-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  text-wrap: balance;
}
.hp-title:focus { outline: none; }
.hp-title:focus-visible { outline: var(--hp-focus); outline-offset: 3px; border-radius: var(--hp-radius-sm); }
.hp-lead {
  margin: 0;
  color: var(--hp-ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.hp-lead b { color: var(--hp-ink); font-weight: 600; }
.hp-fineprint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--hp-ink-2);
  opacity: 0.85;
}

/* ============================================================
   BOOKED LANDING
   ============================================================ */
.hp-booked {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.5rem 0.85rem;
  border-radius: var(--hp-pill);
  background: var(--mint, #ebf3e9);
  border: 1px solid var(--hp-sage);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hp-brand);
}
.hp-booked-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--st-released, #047857);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: var(--hp-radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.hp-btn-block { width: 100%; }
.hp-btn-primary { background: var(--hp-brand); color: #fff; border-color: var(--hp-brand); }
.hp-btn-primary:hover { background: var(--link-hover, #1a5a27); border-color: var(--link-hover, #1a5a27); }
.hp-btn-sec, .hp-btn-quiet {
  background: var(--hp-surface); color: var(--hp-brand); border-color: var(--hp-hair);
}
.hp-btn-sec:hover, .hp-btn-quiet:hover { background: var(--mint, #ebf3e9); }
.hp-btn-quiet { color: var(--hp-ink-2); }
.hp-btn-sm { min-height: 38px; padding: 0 0.9rem; font-size: 0.85rem; }
.hp-skip {
  align-self: center;
  background: none; border: 0;
  color: var(--hp-ink-2);
  font: 600 0.9rem/1 var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.6rem;
  cursor: pointer;
  min-height: 44px;
}
.hp-skip:hover { color: var(--hp-ink); }
.hp-skiplink {
  background: none; border: 0;
  color: var(--hp-ink-2);
  font: 600 0.9rem/1 var(--font-sans);
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hp-skiplink:hover { color: var(--hp-ink); }
.hp-iconbtn {
  appearance: none;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--hp-hair);
  border-radius: 50%;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.hp-iconbtn:hover { background: var(--hp-sunk); }
.hp-iconbtn-ghost { border-color: transparent; background: transparent; color: var(--hp-ink-2); }

/* ============================================================
   GAMIFIED CHROME  (trimmed: dial + level + points + one slim line)
   ============================================================ */
.hp-chrome { display: flex; flex-direction: column; gap: 0.7rem; }
.hp-chrome-row { display: flex; align-items: center; gap: 0.9rem; }
.hp-chrome-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.hp-chrome-meta { display: flex; align-items: center; gap: 0.55rem; }
.hp-chrome-pts { font-size: 0.8rem; font-weight: 700; color: var(--hp-ink-2); }
.hp-chrome-note { margin: 0; font-size: 0.72rem; color: var(--hp-ink-2); line-height: 1.35; }

/* score dial (single completeness indicator) */
.hp-dial {
  --pct: 0;
  width: 76px; height: 76px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--hp-brand) calc(var(--pct) * 1%), var(--hp-hair-2) 0);
}
.hp-dial-inner {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--hp-surface);
  display: grid; place-items: center;
  text-align: center;
}
.hp-dial-num { font-size: 1.12rem; font-weight: 700; color: var(--hp-brand); line-height: 1; }
.hp-dial-cap { font-size: 0.56rem; color: var(--hp-ink-2); letter-spacing: 0.06em; }
@media (prefers-reduced-motion: no-preference) {
  .hp-dial { transition: background 700ms ease; }
}

/* one slim progress line */
.hp-globalbar {
  height: 6px;
  border-radius: var(--hp-pill);
  background: var(--hp-hair-2);
  overflow: hidden;
}
.hp-globalbar-fill {
  height: 100%;
  border-radius: var(--hp-pill);
  background: linear-gradient(90deg, var(--hp-brand), var(--hp-sage));
}
@media (prefers-reduced-motion: no-preference) {
  .hp-globalbar-fill, .hp-card-bar-fill, .hp-runbar-fill, .hp-meter-fill {
    transition: width 500ms ease;
  }
}

/* level pill */
.hp-stat {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--hp-pill);
  background: var(--hp-surface);
  border: 1px solid var(--hp-hair);
  font-size: 0.8rem; font-weight: 600; color: var(--hp-ink);
}
.hp-level { background: var(--hp-forest); color: var(--hp-cream); border-color: var(--hp-forest); }

/* badge shelf */
.hp-shelf {
  display: flex; gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
}
.hp-badge {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--hp-pill);
  background: color-mix(in srgb, var(--hp-gold) 14%, var(--hp-surface));
  border: 1px solid color-mix(in srgb, var(--hp-gold) 40%, transparent);
  font-size: 0.72rem; font-weight: 600;
  color: var(--amber-ink, #5d3b10);
  white-space: nowrap;
}
.hp-badge-glyph { color: var(--hp-gold); }

/* ============================================================
   CLINICAL CHROME
   ============================================================ */
.hp-chrome-clinical { gap: 0; }
.hp-meter {
  background: var(--hp-surface);
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius);
  padding: 1rem var(--hp-pad);
}
.hp-meter-top { display: flex; align-items: baseline; justify-content: space-between; }
.hp-meter-level { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: var(--hp-ink); }
.hp-meter-pct { font-size: 0.9rem; font-weight: 600; color: var(--hp-ink-2); }
.hp-meter-track {
  height: 8px; margin: 0.6rem 0 0;
  border-radius: var(--hp-pill);
  background: var(--hp-hair-2);
  overflow: hidden;
}
.hp-meter-fill { height: 100%; border-radius: var(--hp-pill); background: var(--hp-brand); }
.hp-meter-note { margin: 0.55rem 0 0; font-size: 0.78rem; color: var(--hp-ink-2); line-height: 1.4; }

/* HIDE gamified chrome in clinical mode (defense in depth; JS already swaps) */
body.mode-clinical .hp-chrome-g,
body.mode-clinical .hp-shelf,
body.mode-clinical .hp-toasts { display: none !important; }

/* clinical mode: quieter, more serif, restrained */
body.mode-clinical .hp-card-title,
body.mode-clinical .hp-q-prompt,
body.mode-clinical .hp-runhead-title { font-family: var(--font-serif); }
body.mode-clinical .hp-lead { font-family: var(--font-serif); }

/* ------------------------------------------------------------
   CLINICAL MODE — strip the gamified reward vocabulary so the
   record intake reads as an EHR chart, not a scoreboard-minus-
   the-scoreboard. Progress fills desaturate to steel/ink, the
   "complete" state becomes a quiet surface + subtle check, credit
   text drops from success-green to muted ink, and gate pills lose
   the amber reward chrome for a restrained clinical marker.
   ------------------------------------------------------------ */
:root {
  --hp-steel: #6b7772;   /* desaturated slate for clinical fills */
  --hp-steel-2: #8b958f;
}

/* progress fills: no candy-green, no gradient */
body.mode-clinical .hp-card-bar-fill,
body.mode-clinical .hp-meter-fill,
body.mode-clinical .hp-runbar-fill {
  background: var(--hp-steel);
}
body.mode-clinical .hp-card-bar,
body.mode-clinical .hp-meter-track { background: var(--hp-hair); }

/* "complete" card: quiet surface, no mint reward wash */
body.mode-clinical .hp-card.is-complete {
  background: var(--hp-surface);
  border-color: var(--hp-hair);
}
/* subtle, monochrome check instead of the green reward disc */
body.mode-clinical .hp-card-check {
  background: transparent;
  color: var(--hp-steel);
  border: 1px solid var(--hp-steel-2);
}

/* credit + fraction text: muted ink, not success-green/brand-green */
body.mode-clinical .hp-credit { color: var(--hp-ink-2); font-weight: 500; }
body.mode-clinical .hp-card-frac { color: var(--hp-ink-2); }
body.mode-clinical .hp-prefill-hint { color: var(--hp-ink-2); }

/* gate pill: restrained clinical marker, not an amber reward badge */
body.mode-clinical .hp-q-gate,
body.mode-clinical .hp-gate-mini {
  background: var(--hp-sunk);
  color: var(--hp-ink-2);
  border-color: var(--hp-hair);
}

/* denser layout: one card per row as a chart-style list, so the
   information density itself signals "record" rather than "game" */
body.mode-clinical .hp-cardgrid { gap: 0; }
body.mode-clinical .hp-card {
  border-radius: 0;
  border-width: 0 0 1px 0;
  padding: 0.75rem 0.4rem;
  min-height: 0;
}
body.mode-clinical .hp-card:hover { box-shadow: none; border-color: var(--hp-hair); background: var(--hp-sunk); }
body.mode-clinical .hp-card-idx { display: none; }
body.mode-clinical .hp-card-title { font-size: 0.95rem; }
body.mode-clinical .hp-card-bar { height: 4px; }
body.mode-clinical .hp-card-chev { color: var(--hp-hair); }

/* ============================================================
   SECTION MAP
   ============================================================ */
.hp-map-head { display: flex; flex-direction: column; gap: 0.3rem; }
.hp-section-eyebrow {
  margin: 0.4rem 0 -0.2rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--hp-ink-2);
}
/* single-column list of sections (numbers run straight down, not a number grid) */
.hp-cardgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
/* each section is a horizontal list row: number chip · body · status + chevron */
.hp-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--hp-surface);
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius);
  padding: 0.85rem 1rem;
  color: var(--hp-ink);
  min-height: 44px;
}
.hp-card:hover { border-color: var(--hp-brand); box-shadow: var(--shadow-sm, 0 5px 18px rgba(12,47,16,0.07)); }
.hp-card.is-complete { background: var(--mint, #ebf3e9); border-color: var(--hp-sage); }
.hp-card.is-sensitive { border-style: dashed; }
.hp-card-idx {
  flex: none; align-self: flex-start; margin-top: 0.1rem;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--hp-sunk); color: var(--hp-ink-2);
  border: 1px solid var(--hp-hair);
  font-size: 0.72rem; font-weight: 700;
}
.hp-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.hp-card-side { flex: none; align-self: flex-start; display: flex; align-items: center; gap: 0.5rem; }
.hp-card-chev { color: var(--hp-ink-2); font-size: 1.25rem; line-height: 1; }
.hp-card-frac { font-size: 0.72rem; font-weight: 700; color: var(--hp-brand); white-space: nowrap; }
.hp-card-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--st-released, #047857); color: #fff;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 700;
}
.hp-card-title { margin: 0; font-family: var(--font-sans); font-weight: 700; font-size: 1.02rem; line-height: 1.22; }
.hp-card-why { margin: 0; font-size: 0.78rem; color: var(--hp-ink-2); line-height: 1.35; }
.hp-card-bar {
  height: 6px; border-radius: var(--hp-pill);
  background: var(--hp-hair-2); overflow: hidden;
}
.hp-card-bar-fill { height: 100%; border-radius: var(--hp-pill); background: var(--hp-brand); }
.hp-card-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; }
.hp-credit { font-size: 0.68rem; color: var(--st-released, #047857); font-weight: 600; }
.hp-lock { font-size: 0.68rem; color: var(--hp-ink-2); }

/* ---------- endowed-progress credit (already-done-before-this-step) ---------- */
.hp-endowed {
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  padding: 0.7rem 0.8rem;
}
.hp-endowed-head {
  margin: 0 0 0.5rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hp-ink-2);
}
.hp-endowed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.hp-endowed-item { display: flex; align-items: flex-start; gap: 0.5rem; }
.hp-endowed-check {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--st-released, #047857); color: #fff;
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 700;
  margin-top: 0.05rem;
}
.hp-endowed-txt { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.hp-endowed-txt b { font-size: 0.82rem; font-weight: 700; color: var(--hp-ink); }
.hp-endowed-detail { font-size: 0.72rem; color: var(--hp-ink-2); line-height: 1.35; }
/* clinical mode: monochrome check, no success-green reward wash */
body.mode-clinical .hp-endowed-check {
  background: transparent; color: var(--hp-steel); border: 1px solid var(--hp-steel-2);
}

/* ============================================================
   RUN (one question per screen)
   ============================================================ */
.hp-runhead {
  flex: none;
  display: flex; align-items: center; gap: 0.6rem;
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.8rem 0.7rem;
  background: var(--hp-surface);
  border-bottom: 1px solid var(--hp-hair);
}
.hp-runhead-txt { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; flex: 1; text-align: center; }
.hp-runhead-title {
  font-weight: 700; font-size: 0.9rem; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hp-runhead-count { font-size: 0.72rem; color: var(--hp-ink-2); }
.hp-runbar { flex: none; height: 4px; background: var(--hp-hair-2); }
.hp-runbar-fill { height: 100%; background: var(--hp-brand); }

.hp-qbody { gap: 1rem; }
/* center the question in the available height when it fits; auto margins
   collapse to 0 when the content is taller than the screen, so it still scrolls */
.hp-qbody > .hp-q { width: 100%; }
.hp-q { display: flex; flex-direction: column; gap: 0.85rem; }
.hp-q-tags { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.hp-q-weight { color: var(--hp-gold); font-size: 0.85rem; letter-spacing: 0.05em; }
body.mode-clinical .hp-q-weight { display: none; }
.hp-q-gate {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--hp-pill);
  background: var(--amber-soft, #f5ead8);
  color: var(--amber-ink, #5d3b10);
  border: 1px solid var(--amber-line, #dfc08c);
}
.hp-gate-mini { padding: 0.05rem 0.35rem; font-size: 0.58rem; margin-left: 0.35rem; }
.hp-q-req {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--hp-ink-2);
}
.hp-q-prompt {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  text-wrap: balance;
}
.hp-q-prompt:focus { outline: none; }
.hp-q-prompt:focus-visible { outline: var(--hp-focus); outline-offset: 3px; border-radius: var(--hp-radius-sm); }
.hp-q-help {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--hp-ink-2);
  background: var(--hp-sunk);
  border-left: 3px solid var(--hp-sage);
  padding: 0.55rem 0.7rem;
  border-radius: 0 var(--hp-radius-sm) var(--hp-radius-sm) 0;
}
.hp-q-help-mark { font-weight: 700; color: var(--hp-brand); }
.hp-q-privacy { margin: 0; font-size: 0.72rem; color: var(--hp-ink-2); }
.hp-lock-inline { font-size: 0.75rem; }
.hp-prefill-hint {
  margin: 0; font-size: 0.72rem; font-weight: 600;
  color: var(--st-released, #047857);
}
/* safety-gate (★★★) questions read weightier: a restrained amber accent bar.
   Clinical mode swaps amber for a steel marker so it stays calm, not a reward cue. */
.hp-q.is-gate .hp-q-prompt {
  border-left: 3px solid var(--hp-accent);
  padding-left: 0.7rem;
}
body.mode-clinical .hp-q.is-gate .hp-q-prompt { border-left-color: var(--hp-steel-2); }

/* ============================================================
   RUN FOOTER
   ============================================================ */
.hp-runfoot {
  flex: none;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem var(--hp-pad) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--hp-surface);
  border-top: 1px solid var(--hp-hair);
}
.hp-runfoot .hp-btn-primary { margin-left: auto; }
.hp-runfoot .hp-btn-quiet { flex: none; }

/* ============================================================
   INPUTS
   ============================================================ */
.hp-input {
  width: 100%;
  font: 500 1rem/1.4 var(--font-sans);
  color: var(--hp-ink);
  background: var(--hp-surface);
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm);
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}
.hp-input:focus-visible { outline: var(--hp-focus); outline-offset: 1px; border-color: var(--hp-brand); }
.hp-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.hp-select { appearance: none; background-image: none; }
.hp-numwrap { display: flex; align-items: center; gap: 0.5rem; }
.hp-num { max-width: 160px; }
.hp-unit { font-size: 0.9rem; color: var(--hp-ink-2); font-weight: 600; }
.hp-yearmini { max-width: 110px; margin-top: 0.4rem; }
.hp-other { margin-top: 0.4rem; }

/* options (radio / checkbox as buttons) */
.hp-options { display: flex; flex-direction: column; gap: 0.5rem; }
.hp-options-wrap { flex-direction: row; flex-wrap: wrap; }
.hp-option {
  appearance: none;
  display: flex; align-items: center; gap: 0.65rem;
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--hp-radius-sm);
  border: 1px solid var(--hp-hair);
  background: var(--hp-surface);
  color: var(--hp-ink);
  font: 500 0.95rem/1.3 var(--font-sans);
  cursor: pointer;
}
.hp-option:hover { border-color: var(--hp-brand); background: var(--hp-sunk); }
.hp-option.is-selected { border-color: var(--hp-brand); background: var(--mint, #ebf3e9); font-weight: 600; }
.hp-option-dot {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid var(--hp-hair); background: var(--hp-surface);
}
.hp-option.is-selected .hp-option-dot { border-color: var(--hp-brand); box-shadow: inset 0 0 0 3px var(--hp-brand); }
.hp-option-box {
  width: 18px; height: 18px; flex: none; border-radius: var(--hp-radius-sm);
  border: 2px solid var(--hp-hair); background: var(--hp-surface);
}
.hp-option.is-selected .hp-option-box {
  border-color: var(--hp-brand); background: var(--hp-brand);
}
.hp-option.is-selected .hp-option-box::after { content: "✓"; color: #fff; font-size: 0.7rem; display: block; text-align: center; line-height: 14px; }

/* chip buttons (grids, sogi, family, tristate helpers) */
.hp-chipbtn {
  appearance: none;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border-radius: var(--hp-pill);
  border: 1px solid var(--hp-hair);
  background: var(--hp-surface);
  color: var(--hp-ink);
  font: 600 0.82rem/1 var(--font-sans);
  cursor: pointer;
}
.hp-chipbtn:hover { border-color: var(--hp-brand); }
.hp-chipbtn.is-selected { background: var(--hp-brand); color: #fff; border-color: var(--hp-brand); }

/* tristate */
.hp-tristate { display: flex; gap: 0.5rem; }
.hp-tri {
  appearance: none; flex: 1; min-height: 52px;
  border-radius: var(--hp-radius-sm);
  border: 1px solid var(--hp-hair);
  background: var(--hp-surface);
  color: var(--hp-ink);
  font: 600 0.9rem/1.1 var(--font-sans);
  cursor: pointer;
}
.hp-tri:hover { border-color: var(--hp-brand); }
.hp-tri.is-selected { background: var(--hp-brand); color: #fff; border-color: var(--hp-brand); }

/* ruler / slider */
.hp-rulerwrap { display: flex; flex-direction: column; gap: 0.4rem; }
.hp-ruler-scale { display: flex; justify-content: center; }
.hp-ruler-val {
  font-size: 1.6rem; font-weight: 700; color: var(--hp-brand);
  min-width: 2.4ch; text-align: center;
}
.hp-ruler { width: 100%; accent-color: var(--hp-brand); height: 44px; }
.hp-ruler-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--hp-ink-2); }

/* grids (status-grid, now-past, organ) */
.hp-grid { display: flex; flex-direction: column; gap: 0.7rem; }
.hp-grid-row {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
}
.hp-grid-row.is-gate { border-color: var(--amber-line, #dfc08c); background: color-mix(in srgb, var(--amber-soft, #f5ead8) 40%, var(--hp-surface)); }
.hp-grid-label { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; }
.hp-grid-opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hp-nowpast .hp-chipbtn { flex: 1; min-width: 72px; }

/* family grid */
.hp-famgrid { display: flex; flex-direction: column; gap: 0.7rem; }
.hp-fam-row {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
}

/* repeatable rows (allergy, med, surgeries, etc.) */
.hp-repeat { display: flex; flex-direction: column; gap: 0.7rem; }
.hp-rowcard {
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-sunk);
  padding: 0.8rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.hp-rowcard-head { display: flex; align-items: center; justify-content: space-between; }
.hp-rowcard-n { font-size: 0.75rem; color: var(--hp-ink-2); font-weight: 700; }
.hp-rowdel {
  background: none; border: 0; color: var(--rose, #cd4e4e);
  font: 600 0.8rem/1 var(--font-sans); cursor: pointer; padding: 0.3rem; min-height: 36px;
}
.hp-rowdel:hover { text-decoration: underline; }
.hp-fieldrow { display: flex; flex-direction: column; gap: 0.25rem; }
.hp-fieldlabel { font-size: 0.75rem; font-weight: 600; color: var(--hp-ink-2); }
.hp-addrow {
  appearance: none;
  min-height: 46px;
  border: 1px dashed var(--hp-brand);
  border-radius: var(--hp-radius-sm);
  background: transparent;
  color: var(--hp-brand);
  font: 700 0.9rem/1 var(--font-sans);
  cursor: pointer;
}
.hp-addrow:hover { background: var(--mint, #ebf3e9); }

/* NKDA / prefer-not-to-say checkboxes */
.hp-nkda, .hp-pns {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  min-height: 48px;
}
.hp-nkda.is-on, .hp-pns.is-on { border-color: var(--hp-brand); background: var(--mint, #ebf3e9); }
.hp-nkda input, .hp-pns input { width: 20px; height: 20px; accent-color: var(--hp-brand); }
.hp-pns { font-weight: 500; color: var(--hp-ink-2); }

.hp-chiprow { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* screener */
.hp-screener { display: flex; flex-direction: column; gap: 0.9rem; }
.hp-screener-inst { margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--hp-ink-2); }
.hp-screener-attr { font-weight: 500; }
.hp-screener-item { display: flex; flex-direction: column; gap: 0.5rem; }
.hp-screener-q { margin: 0; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.hp-screener-band {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: var(--hp-pill);
  background: var(--hp-sunk);
  border: 1px solid var(--hp-hair);
  font-size: 0.85rem; font-weight: 600;
}
.hp-screener-bandlabel { color: var(--hp-brand); }

/* sogi */
.hp-sogi { display: flex; flex-direction: column; gap: 0.9rem; }
.hp-sogi-block { display: flex; flex-direction: column; gap: 0.4rem; }

/* connect cards */
.hp-connect { display: flex; flex-direction: column; gap: 0.6rem; }
.hp-connect-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
}
.hp-connect-card.is-connected { border-color: var(--hp-sage); background: var(--mint, #ebf3e9); }
.hp-connect-main { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.hp-connect-name { font-weight: 700; font-size: 0.9rem; }
.hp-connect-note { font-size: 0.75rem; color: var(--hp-ink-2); }
.hp-connect-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--st-released, #047857);
}
.hp-connect-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-released, #047857); }

/* statement / fallback */
.hp-statement {
  background: var(--hp-sunk);
  border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.95rem; line-height: 1.55; color: var(--hp-ink-2);
}
.hp-statement p { margin: 0; }
.hp-fallback { display: flex; flex-direction: column; gap: 0.4rem; }

/* ============================================================
   SENSITIVE BANNER
   ============================================================ */
.hp-sensitive-banner, .hp-esc-note {
  background: var(--blue-soft, #e4eff3);
  border: 1px solid var(--blue-line, #9ebdca);
  border-radius: var(--hp-radius-sm);
  padding: 0.85rem 1rem;
}
.hp-sb-title { margin: 0 0 0.3rem; font-weight: 700; font-size: 0.9rem; color: var(--blue, #2c5566); }
.hp-sb-body { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--hp-ink-2); }
.hp-run.is-sensitive .hp-runhead { border-bottom-color: var(--blue-line, #9ebdca); }

/* ============================================================
   SECTION COMPLETE
   ============================================================ */
.hp-complete-body { align-items: center; text-align: center; justify-content: center; gap: 1rem; padding-top: 2rem; }
.hp-complete-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--st-released, #047857); color: #fff;
  display: grid; place-items: center; font-size: 2rem; font-weight: 700;
}
.hp-complete-mark.animate { animation: hp-pop 400ms cubic-bezier(.2,.9,.3,1.3); }
@keyframes hp-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.hp-earned {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: var(--hp-radius);
  background: color-mix(in srgb, var(--hp-gold) 12%, var(--hp-surface));
  border: 1px solid color-mix(in srgb, var(--hp-gold) 40%, transparent);
  text-align: left;
}
.hp-earned.animate { animation: hp-pop 500ms cubic-bezier(.2,.9,.3,1.3); }
.hp-earned-glyph { font-size: 1.7rem; color: var(--hp-gold); }
.hp-earned-label { margin: 0; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hp-ink-2); font-weight: 700; }
.hp-earned-name { margin: 0; font-weight: 700; }
.hp-earned-pts { font-size: 1.1rem; font-weight: 700; color: var(--hp-brand); }
.hp-brief-row {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--hp-ink-2); font-weight: 600;
}
.hp-check-inline {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--st-released, #047857); color: #fff;
  display: grid; place-items: center; font-size: 0.75rem;
}
.hp-complete-body .hp-btn { width: 100%; }

/* ============================================================
   ESCALATION VIEW
   ============================================================ */
.hp-escalation { background: var(--hp-forest); }
.hp-esc-body { color: var(--hp-cream); gap: 1rem; }
.hp-esc-body .hp-title { color: #fff; }
.hp-esc-body .hp-lead { color: var(--hp-sage); }
.hp-esc-eyebrow { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hp-sage); }
.hp-esc-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.hp-esc-card {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--hp-radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  color: var(--hp-cream);
}
.hp-esc-card:hover { background: rgba(255,255,255,0.16); }
.hp-esc-card-title { font-size: 0.8rem; color: var(--hp-sage); font-weight: 600; }
.hp-esc-card-cta { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: #fff; }
.hp-esc-card-note { font-size: 0.8rem; color: var(--hp-sage); }
.hp-esc-note {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}
.hp-esc-note .hp-sb-title { color: #fff; }
.hp-esc-note .hp-sb-body { color: var(--hp-sage); }
.hp-escalation .hp-btn-primary { background: var(--hp-cream); color: var(--hp-forest); border-color: var(--hp-cream); }
.hp-escalation .hp-btn-primary:hover { background: #fff; }

/* ============================================================
   TOASTS (gamified badge pop)
   ============================================================ */
/* Anchored inside .hp-phone (position:relative) so the pill stays centered
   over the device frame and preserves the in-frame illusion on desktop. */
.hp-toasts {
  position: absolute;
  left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100001;
  display: flex; flex-direction: column; gap: 0.4rem;
  align-items: center;
  pointer-events: none;
  width: min(360px, calc(100% - 2rem));
}
.hp-toast {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--hp-pill);
  background: var(--hp-forest);
  color: var(--hp-cream);
  font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 8px 24px -10px rgba(12,47,16,0.5);
}
.hp-toast b { color: #fff; }
.hp-toast-glyph { color: var(--hp-gold); }
.hp-toast.animate { animation: hp-toast-in 300ms ease; }
.hp-toast.out { opacity: 0; transition: opacity 400ms ease; }
@keyframes hp-toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 360px) {
  .hp-cardgrid { grid-template-columns: 1fr; }
  .hp-title { font-size: 1.6rem; }
}
body.device-mobile .hp-cardgrid { grid-template-columns: 1fr; }
@media (max-width: 360px) {
  body.device-mobile .hp-cardgrid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body.reduce-motion .hp-complete-mark.animate,
body.reduce-motion .hp-earned.animate,
body.reduce-motion .hp-toast.animate { animation: none; }

/* ============================================================
   PRINT — a clean pre-visit brief look
   ============================================================ */
@media print {
  .proto-frame, .hp-toasts, .hp-runfoot, .hp-iconbtn, .hp-skip, .hp-skiplink { display: none !important; }
  body { background: #fff; }
  .hp-phone { max-width: 100%; margin: 0; box-shadow: none; border: 0; border-radius: 0; }
  .hp-scroll { overflow: visible; }
  .hp-card, .hp-rowcard, .hp-grid-row { break-inside: avoid; }
}

/* ============================================================
   HUB LINKS (map -> chart data / clinician brief)
   ============================================================ */
.hp-hublinks { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }
.hp-hublink {
  appearance: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--hp-surface); border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius); padding: 0.75rem 0.85rem; color: var(--hp-ink); min-height: 44px;
}
.hp-hublink:hover { border-color: var(--hp-brand); box-shadow: var(--shadow-sm, 0 5px 18px rgba(12,47,16,0.07)); }
.hp-hublink-ico {
  flex: none; width: 34px; height: 34px; border-radius: var(--hp-radius-sm);
  display: grid; place-items: center; font-size: 1rem;
  background: var(--mint, #ebf3e9); color: var(--hp-brand);
}
.hp-hublink-txt { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.hp-hublink-txt b { font-size: 0.9rem; font-weight: 700; }
.hp-hublink-sub { font-size: 0.75rem; color: var(--hp-ink-2); }
.hp-hublink-arrow { color: var(--hp-ink-2); font-size: 1.2rem; flex: none; }
body.mode-clinical .hp-hublink-ico { background: var(--hp-sunk); color: var(--hp-ink-2); }

/* ============================================================
   CHART DATA HUB (uploads; connect cards reuse .hp-connect)
   ============================================================ */
.hp-uploads { display: flex; flex-direction: column; gap: 0.5rem; }
.hp-upload {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--hp-surface); border: 1px solid var(--hp-hair);
  border-radius: var(--hp-radius-sm); padding: 0.6rem 0.7rem;
}
.hp-upload-ico { flex: none; font-size: 1.05rem; color: var(--hp-ink-2); }
.hp-upload-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; }
.hp-upload-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-upload-kind { font-size: 0.72rem; color: var(--hp-ink-2); }
.hp-upload-status {
  flex: none; font-size: 0.66rem; font-weight: 700; padding: 0.25rem 0.55rem;
  border-radius: var(--hp-pill); white-space: nowrap;
}
.hp-upload.is-reviewing .hp-upload-status { background: var(--hp-sunk); color: var(--hp-ink-2); }
.hp-upload.is-ready .hp-upload-status { background: color-mix(in srgb, var(--hp-accent) 16%, var(--hp-surface)); color: var(--amber-ink, #5d3b10); }
.hp-upload.is-promoted .hp-upload-status { background: var(--mint, #ebf3e9); color: var(--hp-brand); }
.hp-uploadbtns { display: flex; flex-direction: column; gap: 0.5rem; }

/* ============================================================
   CLINICIAN PRE-VISIT BRIEF (read-only)
   ============================================================ */
.hp-brief-body { gap: 0.8rem; }
.hp-brief-patient { background: var(--hp-surface); border: 1px solid var(--hp-hair); border-radius: var(--hp-radius); padding: 0.7rem 0.85rem; }
.hp-brief-name { margin: 0; font-size: 0.95rem; }
.hp-brief-meta { margin: 0.15rem 0 0; font-size: 0.75rem; color: var(--hp-ink-2); }
.hp-brief-banner {
  font-size: 0.78rem; line-height: 1.45; color: var(--hp-ink-2);
  background: var(--hp-sunk); border-left: 3px solid var(--hp-sage);
  border-radius: 0 var(--hp-radius-sm) var(--hp-radius-sm) 0; padding: 0.55rem 0.7rem;
}
.hp-brief-banner b { color: var(--hp-ink); }
.hp-brief-flags {
  border: 1px solid var(--hp-accent); border-radius: var(--hp-radius-sm);
  background: color-mix(in srgb, var(--hp-accent) 8%, var(--hp-surface)); padding: 0.6rem 0.75rem;
}
.hp-brief-flagtitle { margin: 0 0 0.3rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink, #5d3b10); }
.hp-brief-flag { margin: 0.2rem 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--hp-ink); }
.hp-brief-sec { border-top: 1px solid var(--hp-hair-2); padding-top: 0.6rem; }
.hp-brief-sectitle { margin: 0 0 0.4rem; font-family: var(--font-serif); font-weight: 600; font-size: 1rem; color: var(--hp-ink); }
.hp-brief-empty { margin: 0; font-size: 0.8rem; color: var(--hp-ink-2); font-style: italic; }
.hp-brief-dl { margin: 0; }
.hp-brief-dl dt { font-size: 0.75rem; color: var(--hp-ink-2); }
.hp-brief-dl dd { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--hp-ink); font-weight: 500; }
.hp-brief-dl dd.is-flag { border-left: 3px solid var(--hp-accent); padding-left: 0.5rem; }
