/* HealthLink prototype: the patient app.
   A calm clinical ledger. Soft white page, hairline rows, one blue for action, teal only for progress,
   amber for "needs attention" and red only for emergency guidance. Inter, fixed scale: 12 / 13 / 14 / 15 / 16 / 17 / 22.
   Radii 6 and 8. No shadows, no pills, no cards. */

.hl-stage { display: grid; place-items: center; background: #0B2545; border-radius: var(--radius); padding: clamp(24px, 5vw, 56px) 16px; }
.hl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; justify-items: center; background: var(--paper-2); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); }
.hl-gallery figure { margin: 0; }
.hl-gallery figcaption { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

.hl-phone {
  --blue: #087E8B; --blue-dark: #066670; --tint: #DCEBFF; --teal: #0B6B5C; --amber: #8a4b00; --amber-tint: #fdf1dc; --red: #b3261e;
  --bg: #F2F7FF; --white: #fff; --ink: #0B2545; --muted: #4A5F7A; --line: #D3E2F5; --edge: #6F8CAD;
  width: min(320px, 100%); height: 660px; border: 8px solid #0B2545; border-radius: 40px; background: var(--bg); color: var(--ink);
  overflow: hidden; color-scheme: light; text-align: left;
  font: 400 15px/1.4 Inter, system-ui, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.hl-phone *, .hl-phone *::before, .hl-phone *::after { box-sizing: border-box; }
.hl-phone h3, .hl-phone h4, .hl-phone p, .hl-phone ul, .hl-phone ol { margin: 0; padding: 0; }
:where(.hl-phone) button { font: inherit; color: inherit; cursor: pointer; }
.hl-phone svg { width: 100%; height: 100%; display: block; }
.hl-phone svg.fa { fill: currentColor; stroke: none; }
.hl-phone ::selection { background: var(--blue); color: #fff; }
.hl-phone :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.hl-app { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.hl-status { flex: none; height: 30px; padding: 11px 22px 0; font-size: 13px; font-weight: 700; background: var(--bg); }
.hl-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.hl-scroll::-webkit-scrollbar { display: none; }
.hl-head { padding: 2px 16px 14px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.hl-bar { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.hl-back { width: 44px; height: 44px; margin-left: -12px; padding: 14px; border: 0; background: none; border-radius: 6px; }
.hl-back:hover { background: var(--tint); }
.hl-title { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.hl-title.sm { font-size: 17px; letter-spacing: 0; }
.hl-title:focus { outline: none; }
.hl-sub { font-size: 14px; color: var(--muted); }
.hl-lab { font-size: 13px; color: var(--muted); }
.hl-small { font-size: 13px; color: var(--muted); }
.hl-body { padding: 16px; display: grid; gap: 20px; align-content: start; }
.hl-sec h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.hl-sec .hl-sub { margin-bottom: 6px; }

/* Rows: one hairline list, no boxes */
.hl-list { border-top: 1px solid var(--line); }
.hl-row { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; column-gap: 10px; width: 100%; padding: 12px 0; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
button.hl-row:hover { background: var(--tint); }
.hl-row > svg { width: 14px; height: 14px; color: var(--muted); }
.hl-row.plain { grid-template-columns: minmax(0, 1fr) auto; }
.hl-row b { display: block; font-size: 15px; }
.hl-row small { display: block; font-size: 13px; color: var(--muted); }
.hl-mark { font-size: 13px; font-weight: 700; color: var(--amber); }
.hl-mark.ok { color: var(--teal); }
.hl-count { font-size: 13px; color: var(--muted); }

.hl-link { border: 0; background: none; padding: 10px 0; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-align: left; border-radius: 6px; }
.hl-link:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
.hl-primary { width: 100%; min-height: 52px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; }
.hl-primary:hover { background: var(--blue-dark); }
.hl-primary:focus-visible { outline-color: var(--ink); }
.hl-ghost { width: 100%; min-height: 48px; border: 1px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; }
.hl-ghost:hover { background: var(--tint); }
.hl-small-btn { min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 6px; background: transparent; font-size: 14px; font-weight: 700; }
.hl-small-btn:hover { background: var(--tint); }
.hl-small-btn[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: var(--blue-dark); }
.hl-dock { flex: none; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); display: grid; gap: 8px; }

/* Safety row: always one tap away */
.hl-urgent { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 0; border: 0; background: none; color: var(--red); font-size: 14px; font-weight: 700; text-align: left; }
.hl-urgent svg { width: 16px; height: 16px; flex: none; }
.hl-urgent:hover { text-decoration: underline; }
.hl-note { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.hl-warn { padding: 12px 14px; background: var(--amber-tint); color: #4d2a00; font-size: 14px; border-radius: 6px; }

/* Detail: why, source, approval as plain rows */
.hl-facts { border-top: 1px solid var(--line); }
.hl-fact { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hl-fact span:first-child { font-size: 13px; color: var(--muted); }

/* Progress: separate indicators, each with its own plain explanation */
.hl-prog { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hl-prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hl-prog-top b { font-size: 15px; }
.hl-prog-top span { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hl-track { height: 6px; border-radius: 3px; background: var(--line); }
.hl-track i { display: block; height: 100%; border-radius: 3px; background: var(--teal); }
.hl-prog p { font-size: 13px; color: var(--muted); }

/* Emergency guidance */
.hl-checks { display: grid; gap: 2px; border: 0; margin: 0; padding: 0; }
.hl-check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.hl-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.hl-emergency { padding: 14px 0; border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.hl-emergency b { font-size: 17px; color: var(--red); }

/* Tabs */
.hl-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 4px 8px; background: var(--bg); border-top: 1px solid var(--line); }
.hl-tabs button { position: relative; display: grid; justify-items: center; gap: 4px; min-height: 56px; padding: 10px 0 6px; border: 0; background: none; color: var(--muted); font-size: 12px; line-height: 1.1; }
.hl-tabs svg { width: 22px; height: 22px; }
.hl-tabs button[aria-current="page"] { color: var(--blue); font-weight: 700; }
.hl-tabs button[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--blue); }
.hl-tabs button:hover { color: var(--ink); }

.hl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Ecosystem, drawn as a list so it reads without an image */
.hl-eco { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid var(--line); }
.hl-eco li { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.hl-eco li small { display: block; font-weight: 400; color: var(--muted); }
.hl-core { padding: 20px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 0; }
.hl-core b { display: block; font-size: 1.25rem; }
.hl-core span { color: var(--muted); }

/* AI Health Companion */
.hl-thread { display: grid; gap: 14px; }
.hl-msg { display: grid; gap: 6px; }
.hl-msg.you { margin-left: 28px; padding: 10px 12px; background: var(--tint); border-radius: 8px; }
.hl-who { font-size: 12px; font-weight: 700; color: var(--muted); }
.hl-msg.ai { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hl-msg.emerg { padding-top: 12px; border-top: 3px solid var(--red); }
.hl-msg.emerg p:first-of-type { font-weight: 700; color: var(--red); }
.hl-src { font-size: 13px; color: var(--muted); }
.hl-src b { color: var(--ink); }
.hl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.hl-askform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hl-input { min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.hl-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.hl-send { min-height: 48px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; }
.hl-send:hover { background: var(--blue-dark); }

/* Medication Guardian */
.hl-medlink { border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.hl-medlink:hover b { text-decoration: underline; }
.hl-pair { display: flex; gap: 6px; }
.hl-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hl-week i { height: 14px; border-radius: 3px; background: var(--line); }
.hl-week i.on { background: var(--teal); }
.hl-form { display: grid; gap: 14px; }
.hl-field { display: grid; gap: 6px; }
.hl-lab { font-size: 13px; color: var(--muted); }
.hl-error { min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--red); }
.hl-error:empty { display: none; }
select.hl-input { appearance: auto; }
.hl-primary:disabled { opacity: 0.55; cursor: default; }

/* Medical Report Scanner */
.hl-steps { list-style: none; display: grid; border-top: 1px solid var(--line); }
.hl-steps li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.hl-steps li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 12px; border: 1.5px solid var(--edge); border-radius: 50%; }
.hl-steps li.now { color: var(--ink); font-weight: 700; }
.hl-steps li.now::before { border-color: var(--blue); background: var(--tint); }
.hl-steps li.done { color: var(--ink); }
.hl-steps li.done::before { border-color: var(--teal); background: var(--teal); }
.hl-fix { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hl-explain { margin-top: 6px; color: var(--ink); }
.hl-row[data-xp], .hl-row[data-rep] { grid-template-columns: minmax(0, 1fr) auto; }

/* Appointment Booking */
.hl-row[data-reason], .hl-row[data-clin], .hl-row[data-slot], .hl-row[data-appt] { grid-template-columns: minmax(0, 1fr) auto; }
.hl-row[aria-pressed="true"] { background: var(--tint); }
.hl-row[aria-pressed="true"] svg { color: var(--blue); width: 14px; height: 14px; }
.hl-ctl { display: grid; gap: 6px; }
.hl-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.hl-seg button { min-height: 44px; padding: 4px 6px; border: 1px solid var(--edge); border-radius: 6px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; }
.hl-seg button:hover { border-color: var(--ink); }
.hl-seg button[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: var(--blue-dark); }
.hl-primary:disabled { opacity: 0.5; cursor: default; }

/* Telemedicine */
.hl-scroll.call, .hl-head.call { background: #0B2545; color: #fff; }
.hl-head.call { border-bottom: 0; padding: 4px 16px 10px; }
.hl-scroll.call .hl-body { color: #fff; }
.hl-scroll.call .hl-small, .hl-scroll.call .hl-who { color: rgba(255, 255, 255, 0.78); }
.hl-scroll.call .hl-link { color: #2D9CDB; }
.hl-scroll.call .hl-warn { background: #3d2b0a; color: #ffd99a; }
.hl-calltop { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.hl-timer { font-variant-numeric: tabular-nums; }
.hl-q { font-size: 12px; color: #38BFA7; font-weight: 700; }
.hl-q.weak { color: #ffd99a; }
.hl-video { position: relative; height: 200px; display: grid; place-content: center; justify-items: center; gap: 6px; background: #0B2545; border-radius: 8px; color: rgba(255, 255, 255, 0.78); }
.hl-avatar { width: 64px; height: 64px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 50%; font-size: 22px; font-weight: 700; color: #fff; }
.hl-self { position: absolute; right: 8px; bottom: 8px; width: 76px; height: 54px; display: grid; place-items: center; background: #0B2545; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; font-size: 12px; }
.hl-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hl-ctlbtn { min-height: 44px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 6px; background: transparent; color: #fff; font-size: 13px; font-weight: 700; }
.hl-ctlbtn:hover { background: rgba(255, 255, 255, 0.12); }
.hl-ctlbtn[aria-pressed="true"] { background: #fff; color: #0B2545; border-color: #fff; }
.hl-callpanel { display: grid; gap: 10px; padding: 12px; background: #0B2545; border-radius: 8px; }
.hl-callpanel .hl-row { border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.hl-callpanel .hl-small-btn { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hl-callpanel .hl-small-btn[aria-pressed="true"] { background: #fff; color: #0B2545; }
.hl-callpanel .hl-msg.you { background: #087E8B; }
.hl-callpanel .hl-msg.ai { border-color: rgba(255, 255, 255, 0.18); }
.hl-callpanel .hl-input { color: #0B2545; }
.hl-dock.call { background: #0B2545; border-color: rgba(255, 255, 255, 0.15); }
.hl-dock.call .hl-urgent { color: #ffb4ad; justify-content: center; }
.hl-end { width: 100%; min-height: 52px; border: 0; border-radius: 6px; background: #c62828; color: #fff; font-size: 17px; font-weight: 700; }
.hl-end:hover { background: #a61e1e; }

/* Care Predictor: the care team and insurer views */
.hl-team { --teal: #0B6B5C; color: var(--ink); }
.hl-t-bar { display: inline-grid; grid-auto-flow: column; gap: 6px; margin-bottom: 20px; }
.hl-t-bar button, .hl-t-btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font: 600 0.95rem var(--ui, inherit); cursor: pointer; }
.hl-t-bar button[aria-pressed="true"] { background: #DCEBFF; border-color: #DCEBFF; color: #066670; }
.hl-t-btn { background: #087E8B; border-color: #087E8B; color: #fff; }
.hl-t-btn:hover { background: #066670; }
.hl-t-btn:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
.hl-t-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 16px; }
.hl-t-filters label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.hl-t-filters select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.hl-t-count { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
.hl-t-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .hl-t-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); } }
.hl-t-table { min-width: 560px; }
.hl-t-table th small { display: block; font-weight: 400; color: var(--muted); }
.hl-t-table tr.sel { background: var(--paper-2); }
.hl-t-pt { border: 0; background: none; padding: 0; font: 700 1rem var(--ui, inherit); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hl-t-detail { padding: 20px 0; border-top: 3px solid var(--ink); display: grid; gap: 10px; }
.hl-t-detail h3 { margin: 0; font-size: 1.25rem; }
.hl-t-sub { margin: 0; color: var(--muted); }
.hl-t-gaps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hl-t-gaps li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hl-t-gaps li span { color: #8a4b00; font-weight: 700; font-size: 0.9rem; }
.hl-t-gaps small { color: var(--muted); font-size: 0.9rem; }
.hl-t-note { margin: 0; font-size: 0.9rem; color: var(--muted); max-width: 52ch; }
.hl-t-bars { display: grid; gap: 14px; margin: 16px 0; max-width: 640px; }
.hl-t-bars > div { display: grid; grid-template-columns: 160px minmax(0, 1fr) 80px; gap: 12px; align-items: center; }
.hl-t-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.hl-team .hl-track { height: 10px; border-radius: 5px; }
@media (max-width: 560px) { .hl-t-bars > div { grid-template-columns: 1fr 1fr; } .hl-t-bars .hl-track { grid-column: 1 / -1; order: 3; } }

/* Visual direction: teal, navy, white and light blue (from the approved HealthLink mock).
   Softer radii, light-blue tinted panels, rounded controls. Still no shadows. */
.hl-phone { background: var(--bg); }
.hl-status, .hl-dock, .hl-tabs { background: #fff; }
.hl-head { background: #fff; border-bottom: 0; padding-bottom: 16px; border-radius: 0 0 20px 20px; }
.hl-title { color: var(--ink); }
.hl-primary { border-radius: 14px; background: #087E8B; }
.hl-primary:hover { background: #066670; }
.hl-ghost { border: 1px solid #6F8CAD; background: #fff; color: var(--blue-dark); border-radius: 14px; }
.hl-small-btn { border: 1px solid #6F8CAD; background: #fff; border-radius: 12px; color: var(--blue-dark); }
.hl-small-btn[aria-pressed="true"], .hl-seg button[aria-pressed="true"] { background: #DCEBFF; border-color: var(--blue); color: var(--blue-dark); }
.hl-seg button { border-color: #6F8CAD; background: #fff; border-radius: 12px; color: var(--ink); }
.hl-input { border-color: #6F8CAD; border-radius: 12px; }
.hl-list { border-top: 0; display: grid; gap: 8px; }
.hl-row { padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; }
button.hl-row:hover { background: #DCEBFF; }
.hl-row > svg { color: var(--blue); }
.hl-facts { border-top: 0; display: grid; gap: 8px; }
.hl-fact { padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; }
.hl-prog { padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; }
.hl-note { padding: 12px 14px; border: 0; border-radius: 12px; background: #DCEBFF; }
.hl-warn { border-radius: 12px; }
.hl-msg.you { background: #DCEBFF; border-radius: 14px 14px 4px 14px; }
.hl-msg.ai { padding: 12px 14px; border: 0; border-radius: 14px 14px 14px 4px; background: #fff; }
.hl-tabs { border-top: 1px solid var(--line); }
.hl-tabs button[aria-current="page"]::before { border-radius: 0 0 3px 3px; background: var(--blue); }
.hl-eco, .hl-eco li { border-color: var(--line); }
.hl-callpanel { background: #0B2545; border-radius: 14px; }
.hl-callpanel .hl-msg.you { background: #087E8B; }
.hl-callpanel .hl-row { background: transparent; }
.hl-callpanel .hl-msg.ai { background: transparent; }
/* Next Best Health Action: the one teal panel on Home */
.hl-sec.hl-nba { padding: 16px; border-radius: 16px; background: #087E8B; color: #fff; }
.hl-sec.hl-nba .hl-sub { color: rgba(255,255,255,.85); }
.hl-sec.hl-nba .hl-row { background: rgba(255,255,255,.14); color: #fff; }
.hl-sec.hl-nba .hl-row small, .hl-sec.hl-nba .hl-row > svg { color: rgba(255,255,255,.88); }
.hl-sec.hl-nba button.hl-row:hover { background: rgba(255,255,255,.24); }
.hl-sec.hl-nba .hl-note { background: rgba(255,255,255,.14); color: #fff; }

/* Health Monitoring */
.hl-chart { height: 104px; border-radius: 12px; background: #fff; padding: 4px; }
.hl-chart svg { overflow: visible; }
.hl-chart .band { fill: #DCEBFF; }
.hl-chart .ln { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hl-chart .dot { fill: var(--blue); stroke: #fff; stroke-width: 1.5; }
.hl-chart .dot.out { fill: var(--amber); }
.hl-chart text { font-size: 9px; fill: var(--muted); }
.hl-mark.bad { color: var(--red); }

/* Health Education */
.hl-phone .hl-bul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.hl-sec p { margin: 0 0 6px; }

/* Typography: Inter only. Bold 700 page headings, Semibold 600 section and card headings and buttons,
   Medium 500 navigation and data, Regular 400 body. Large headings tighten by 1 to 2 %. */
.hl-team, .hl-team button, .hl-team select { font-family: Inter, system-ui, "Helvetica Neue", Arial, sans-serif; }
.hl-phone .hl-title { font-weight: 700; letter-spacing: -0.015em; }
.hl-phone .hl-title.sm { font-weight: 600; letter-spacing: -0.01em; }
.hl-phone .hl-sec h4 { font-size: 16px; font-weight: 600; }
.hl-phone .hl-row b, .hl-phone .hl-prog-top b { font-weight: 600; }
.hl-phone .hl-primary, .hl-phone .hl-ghost, .hl-phone .hl-small-btn, .hl-phone .hl-seg button, .hl-phone .hl-link { font-weight: 600; }
.hl-phone .hl-tabs button { font-weight: 500; }
.hl-phone .hl-tabs button[aria-current="page"] { font-weight: 600; }
.hl-phone .hl-prog-top span, .hl-phone .hl-mark, .hl-phone .hl-chart text { font-weight: 500; }
.hl-phone .hl-mark { font-weight: 600; }

/* Welcome, and small-target fixes */
.hl-phone .hl-wordmark { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--blue); padding: 18px 0 40px; }
.hl-phone .hl-title.hl-big { font-size: 34px; line-height: 1.08; letter-spacing: -0.025em; }
.hl-phone .hl-lede { font-size: 16px; margin-top: 8px; }
.hl-phone .hl-link { color: var(--blue-dark); }
.hl-phone .hl-medlink { min-height: 44px; display: flex; align-items: center; }
.hl-phone .hl-sec.hl-nba .hl-link { color: #fff; }

/* Corner radius: every button and text input is at least 30px (fully rounded at these heights). List rows that open something stay as tiles. */
.hl-phone :is(.hl-primary, .hl-send, .hl-end, .hl-fix, .hl-ghost, .hl-small-btn, .hl-seg button, .hl-input, .hl-ctlbtn, .hl-back, .hl-calltop button, .hl-callpanel .hl-small-btn),
.hl-phone input:is([type="text"], [type="search"], [type="number"]), .hl-phone select, .hl-phone textarea { border-radius: 30px; }
.hl-phone .hl-input { padding-left: 20px; padding-right: 20px; }
.hl-team :is(.hl-t-bar button, .hl-t-btn, .hl-t-filters select) { border-radius: 30px; }
.hl-team .hl-t-filters select { padding-left: 18px; padding-right: 14px; }

/* Patterns from the supplied mock, kept flat: bell with count, quick access tiles, next-dose panel, segmented tabs on Progress */
.hl-phone .hl-hrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hl-phone .hl-hgrp { display: grid; gap: 4px; min-width: 0; }
.hl-phone .hl-bell { position: relative; flex: none; width: 44px; height: 44px; margin-top: 2px; padding: 11px; border: 1px solid var(--edge); border-radius: 30px; background: #fff; color: var(--ink); }
.hl-phone .hl-bell:hover { background: var(--tint); }
.hl-phone .hl-badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.hl-phone .hl-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.hl-phone .hl-qa-t { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 88px; padding: 10px 4px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }
.hl-phone .hl-qa-t:hover { background: var(--tint); }
.hl-phone .hl-qa-t svg { width: 22px; height: 22px; color: var(--blue); }
.hl-phone .hl-qa-t small { font-size: 12px; font-weight: 500; color: var(--amber); }
.hl-phone .hl-big { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.hl-phone .hl-brow { display: flex; gap: 8px; }
.hl-phone .hl-sec.hl-nba .hl-small-btn { background: #fff; border-color: #fff; color: var(--blue-dark); }
.hl-phone .hl-sec.hl-nba .hl-small-btn:hover { background: var(--tint); }

/* Button height: 40px everywhere (rows, links, tiles and the tab bar are not buttons in this sense). */
.hl-phone :is(.hl-primary, .hl-ghost, .hl-small-btn, .hl-seg button, .hl-send, .hl-end, .hl-ctlbtn, .hl-bell, .hl-back, .hl-input, .hl-sec.hl-nba .hl-small-btn) { height: 40px; min-height: 40px; padding-top: 0; padding-bottom: 0; }
.hl-phone .hl-primary, .hl-phone .hl-end { font-size: 16px; }
.hl-phone .hl-bell, .hl-phone .hl-back { width: 40px; padding: 10px; }
.hl-phone .hl-back { margin-left: -10px; }
.hl-team :is(.hl-t-bar button, .hl-t-btn) { height: 40px; min-height: 40px; }

/* Button labels: 15px. */
.hl-phone :is(.hl-primary, .hl-ghost, .hl-small-btn, .hl-seg button, .hl-send, .hl-end, .hl-ctlbtn, .hl-sec.hl-nba .hl-small-btn) { font-size: 15px; }
.hl-phone .hl-primary, .hl-phone .hl-end { font-size: 15px; }
.hl-team :is(.hl-t-bar button, .hl-t-btn) { font-size: 15px; }

/* Onboarding */
.hl-hint { font-size: 13px; color: var(--muted); }
.hl-step { display: grid; gap: 6px; margin-top: 8px; }
.hl-step .hl-sub { margin: 0; }
.hl-inline { display: flex; gap: 8px; }
.hl-inline .hl-input { flex: 1; }
textarea.hl-input { min-height: 88px; padding-top: 12px; padding-bottom: 12px; line-height: 1.4; resize: vertical; }
.hl-seg.four { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
.hl-seg.two { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
fieldset.hl-checks > legend, .hl-form fieldset > legend { padding: 0; margin-bottom: 4px; }
.hl-row.plain > span:first-child { min-width: 0; overflow-wrap: anywhere; }

.hl-phone textarea.hl-input.hl-input.hl-input { height: auto; min-height: 80px; padding-top: 10px; padding-bottom: 10px; }

/* Call panel: keep the small buttons readable on the dark panel */
.hl-phone .hl-callpanel .hl-small-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hl-phone .hl-callpanel .hl-small-btn[aria-pressed="true"] { background: #fff; color: #0B2545; }

/* Gallery as tabs: one group of screens at a time, in a sideways strip */
.hl-gallery.hl-gallery-tabs { display: block; }
.hl-gtabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line, #dededb); margin-bottom: 24px; scrollbar-width: thin; }
.hl-gtabs button { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted, #565656); font: inherit; font-weight: 600; cursor: pointer; }
.hl-gtabs button:hover { color: var(--ink, #111); }
.hl-gtabs button[aria-selected="true"] { color: var(--ink, #111); border-bottom-color: var(--ink, #111); }
.hl-gpanel { display: flex; gap: 28px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x proximity; }
.hl-gpanel[hidden] { display: none; }
.hl-gpanel > figure { flex: none; scroll-snap-align: start; }
/* Gallery tabs: stay inside the column, never widen the page */
.hl-gallery.hl-gallery-tabs { min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; padding: 24px clamp(16px, 3vw, 32px) 16px; }
.hl-gtabs { max-width: 100%; margin-bottom: 20px; }
.hl-gpanel { max-width: 100%; box-sizing: border-box; padding: 0 0 16px; }
.hl-gpanel > figure { flex: 0 0 auto; width: 320px; }
.hl-gpanel > figure .hl-phone { margin: 0 auto; }
/* Video call screen: labels stay on one line, self-view sits top right, clear spacing */
.hl-phone .hl-scroll.call .hl-body { gap: 14px; }
.hl-phone .hl-video { height: 220px; align-content: center; gap: 8px; }
.hl-phone .hl-video small { font-size: 13px; }
.hl-phone .hl-self { top: 8px; bottom: auto; right: 8px; width: 64px; height: 48px; }
.hl-phone .hl-controls { grid-template-columns: 1fr 1.45fr 1fr 1fr; gap: 6px; }
.hl-phone .hl-controls .hl-ctlbtn { padding: 0 4px; font-size: 13px; white-space: nowrap; }
.hl-phone .hl-callpanel { padding: 12px 14px; gap: 6px; }
.hl-phone .hl-callpanel .hl-row.plain { padding: 8px 0; }
.hl-phone .hl-dock.call { gap: 4px; }
.hl-phone .hl-dock.call .hl-urgent { min-height: 44px; font-size: 14px; }
/* Visit summary: rating as one even row of squared buttons, with its scale named */
.hl-phone .hl-seg[aria-label^="Rate your visit"] { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hl-phone .hl-seg[aria-label^="Rate your visit"] button { width: 100%; border-radius: 12px; padding: 0; }
.hl-phone .hl-sec > .hl-small + .hl-seg { margin-top: 8px; }
/* Appointments: rows keep their status tag on the first line and never leave a one-word orphan */
.hl-phone button.hl-row[data-appt] { align-items: flex-start; }
.hl-phone button.hl-row[data-appt] .hl-mark { flex: none; white-space: nowrap; padding-top: 1px; }
.hl-phone .hl-row small { text-wrap: pretty; }
.hl-phone .hl-warn { line-height: 1.45; }
.hl-phone .hl-warn .hl-link { min-height: 0; padding: 0; }
.hl-phone .hl-scroll .hl-body > .hl-primary + .hl-ghost { margin-top: 8px; }
/* All screens: status tags never wrap into a column, and header text uses the room beside the bell */
.hl-phone .hl-row > .hl-mark, .hl-phone .hl-row > span.hl-mark { flex: none; white-space: nowrap; align-self: center; }
.hl-phone .hl-row > span:first-child { min-width: 0; flex: 1 1 auto; }
.hl-phone .hl-hrow { align-items: flex-start; }
.hl-phone .hl-hgrp { flex: 1 1 auto; min-width: 0; }
.hl-phone .hl-hgrp .hl-sub { max-width: none; }
/* Rows are grids: text takes the room, the tag keeps its own width and never clips */
.hl-phone .hl-row:has(> .hl-mark) { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.hl-phone .hl-row > .hl-mark { justify-self: end; }
/* Dose rows: the name gets the full width, Take and Skip sit under it */
.hl-phone .hl-row.plain:has(> .hl-pair) { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
.hl-phone .hl-row.plain > .hl-pair { display: flex; gap: 8px; justify-self: start; }

/* Segmented toggles: keep labels on one line */
.hl-phone .hl-seg > button{white-space:nowrap;padding-inline:8px;font-size:13px}

/* Call controls: icon-only */
.hl-phone .hl-controls{grid-template-columns:repeat(4,1fr)}
.hl-phone .hl-controls .hl-ctlbtn{display:grid;place-items:center;padding:0}
.hl-phone .hl-controls .hl-ctlbtn svg{width:18px;height:18px;flex:none}

/* Video visit: dark top, light sheet */
.hl-phone .hl-scroll.call{background:var(--bg);color:var(--ink,#0B2545)}
.hl-phone .hl-scroll.call .hl-body{color:inherit;gap:14px}
.hl-phone .hl-scroll.call .hl-small{color:#33415a}
.hl-phone .hl-scroll.call .hl-link{color:#0B5F6B}
.hl-phone .hl-scroll.call .hl-warn{background:#fff3dc;color:#5c3b00}
.hl-phone .hl-head.call{padding:4px 16px 0;background:#0B2545;color:#fff}
.hl-phone .hl-head.call .hl-video{position:relative;height:auto;padding:14px 0 22px;background:none;border-radius:0;gap:2px;color:rgba(255,255,255,.85)}
.hl-phone .hl-head.call .hl-video b{color:#fff;font-size:17px;margin-top:8px}
.hl-phone .hl-head.call .hl-self{top:-34px;right:0}
.hl-phone .hl-controls{grid-template-columns:repeat(4,1fr);gap:8px}
.hl-phone .hl-controls .hl-ctlbtn{height:auto;min-height:0;display:grid;justify-items:center;gap:4px;padding:8px 0;border:1px solid var(--line);border-radius:10px;background:#fff;color:#0B2545;font-size:12px;font-weight:600}
.hl-phone .hl-controls .hl-ctlbtn[aria-pressed="true"]{background:#0B2545;color:#fff;border-color:#0B2545}
.hl-phone .hl-callpanel{background:#fff;border:1px solid var(--line);border-radius:12px;color:#0B2545;padding:10px 14px}
.hl-phone .hl-callpanel .hl-row,.hl-phone .hl-callpanel .hl-row.plain{border-color:var(--line);color:inherit;background:transparent}
.hl-phone .hl-callpanel .hl-small-btn{background:#fff;color:#0B2545;border-color:#0B2545;min-width:72px}
.hl-phone .hl-callpanel .hl-small-btn[aria-pressed="true"]{background:#0B2545;color:#fff}
.hl-phone .hl-callpanel .hl-msg.you{background:#087E8B;color:#fff}
.hl-phone .hl-callpanel .hl-msg.ai{border-color:var(--line);background:transparent}
.hl-phone .hl-callpanel .hl-who{color:#33415a}
.hl-phone .hl-dock.call{background:var(--bg);border-color:var(--line)}
.hl-phone .hl-dock.call .hl-urgent{color:var(--red)}
.hl-phone .hl-end{display:flex;align-items:center;justify-content:center;gap:8px}
.hl-phone .hl-controls .hl-ctlbtn.hl-ctlbtn{height:auto;min-height:58px;padding:8px 0;align-content:center}
.hl-phone .hl-controls .hl-ctlbtn span{white-space:nowrap;line-height:1.2}
.hl-phone .hl-end span{white-space:nowrap}
.hl-phone .hl-end svg{flex:none}
.hl-phone .hl-head.call .hl-calltop{padding-right:0}
.hl-phone .hl-head.call .hl-self{top:6px;right:0;width:56px;height:42px;font-size:12px}
.hl-phone .hl-head.call .hl-video{padding-top:10px}
.hl-phone .hl-end svg{width:18px;height:18px;flex:none}
.hl-phone .hl-head.call .hl-avatar{width:48px;height:48px;font-size:18px}
.hl-phone .hl-head.call .hl-video{padding:6px 0 14px}
.hl-phone .hl-head.call .hl-video b{margin-top:4px;font-size:16px}
.hl-phone .hl-scroll.call .hl-body{gap:10px}
.hl-phone .hl-controls .hl-ctlbtn.hl-ctlbtn{min-height:52px;padding:6px 0}
.hl-phone .hl-callpanel{padding:8px 14px;gap:2px}
.hl-phone .hl-callpanel .hl-row.plain{padding:6px 0}

/* Section heading icons */
.hl-phone .hl-sec h4.hl-h4i{display:flex;align-items:center;gap:8px}
.hl-phone .hl-h4ico{flex:none;display:grid;place-items:center;width:18px;height:18px;color:#0B5F6B}
.hl-phone .hl-h4ico svg{width:16px;height:16px;fill:currentColor}
.hl-phone .hl-h4ico svg[stroke]{fill:none}
.hl-phone .hl-sec.hl-nba .hl-h4ico{color:currentColor}

/* Sign in */
.hl-phone .hl-backtxt{display:inline-flex;align-items:center;gap:6px;height:40px;margin-left:-6px;padding:0 6px;border:0;background:none;color:#0B5F6B;font-size:15px;font-weight:600;border-radius:6px}
.hl-phone .hl-backtxt svg{width:14px;height:14px}
.hl-phone .hl-lockup{display:flex;align-items:center;gap:8px;margin:6px 0 14px;color:#0B2545;font-size:19px;letter-spacing:-.01em}
.hl-phone .hl-lockup svg{width:26px;height:24px;fill:#0B5F6B}
.hl-phone .hl-lockup b{font-weight:700}
.hl-phone .hl-lab.hl-lab-i{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#0B2545}
.hl-phone .hl-lab-i svg{color:#0B5F6B;flex:none}
.hl-phone .hl-pwwrap{position:relative}
.hl-phone .hl-pwwrap .hl-input{padding-right:44px;width:100%}
.hl-phone .hl-eye{position:absolute;right:0;top:0;width:44px;height:40px;display:grid;place-items:center;border:0;background:none;color:#33415a}
.hl-phone .hl-signin{gap:14px}
.hl-phone .hl-forgot{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.hl-phone .hl-forgot svg{width:12px;height:12px}
.hl-phone .hl-go{display:flex;align-items:center;justify-content:space-between}
.hl-phone .hl-go svg{width:14px;height:14px;fill:currentColor}
.hl-phone .hl-newacct{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#0B2545;font-size:14px;text-align:left}
.hl-phone .hl-newacct svg:first-child{color:#0B5F6B;flex:none}
.hl-phone .hl-newacct span{flex:1}
.hl-phone .hl-newacct u{color:#0B5F6B;font-weight:600;text-underline-offset:3px}
.hl-phone .hl-newacct svg:last-child{width:12px;height:12px;fill:currentColor;flex:none}
.hl-phone .hl-lab-i svg,.hl-phone .hl-eye svg,.hl-phone .hl-newacct svg:first-child{width:18px;height:18px;flex:none}
.hl-phone .hl-lockup svg{width:26px;height:24px}
.hl-phone .hl-go{position:relative;justify-content:center}
.hl-phone .hl-go svg{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
.hl-phone .hl-newacct{white-space:nowrap}

/* Sign in spacing */
.hl-phone .hl-signin .hl-error:empty{display:none}
.hl-phone .hl-signin{gap:16px}
.hl-phone .hl-head:has(.hl-lockup){padding-bottom:20px}
.hl-phone .hl-lockup{margin:8px 0 18px}
.hl-phone .hl-head:has(.hl-lockup) .hl-sub{margin-top:6px}
.hl-phone .hl-body:has(.hl-signin){gap:4px}
.hl-phone .hl-dock:has(.hl-go){gap:12px;padding-top:14px;padding-bottom:16px}

/* Sign in image */
.hl-phone .hl-head:has(.hl-heroimg){position:relative;overflow:hidden}
.hl-phone .hl-heroimg{position:absolute;right:0;top:0;width:44%;height:100%;object-fit:cover;object-position:50% 20%;pointer-events:none}
.hl-phone .hl-head:has(.hl-heroimg) :is(.hl-lockup,.hl-title,.hl-sub,.hl-backtxt){position:relative}
.hl-phone .hl-head:has(.hl-heroimg) .hl-sub{max-width:54%}
.hl-phone .hl-head:has(.hl-heroimg) .hl-lockup{margin-bottom:12px}
.hl-phone .hl-heroimg{width:52%;object-fit:contain;object-position:100% 100%}
.hl-phone .hl-head:has(.hl-heroimg) .hl-sub{max-width:50%}

/* Logo */
.hl-phone .hl-lockup{display:flex;align-items:center;gap:8px;margin:6px 0 12px;color:#0B2545;font-size:19px;letter-spacing:-.01em}
.hl-phone .hl-logo{width:30px;height:auto;flex:none;display:block}

/* Smaller chevrons */
.hl-phone .hl-row > svg{width:12px;height:12px}
.hl-phone .hl-back{padding:15px}
.hl-phone .hl-back svg{width:14px;height:14px}
.hl-phone .hl-backtxt svg{width:12px;height:12px}
.hl-phone .hl-forgot svg,.hl-phone .hl-newacct svg:last-child{width:11px;height:11px}
.hl-phone .hl-go svg{width:13px;height:13px}

/* Fit one screen tall: scale the phones to the window height */
.hl-gpanel { --z: 1; }
@media (max-height: 940px) { .hl-gpanel { --z: .85; } }
@media (max-height: 820px) { .hl-gpanel { --z: .72; } }
@media (max-height: 720px) { .hl-gpanel { --z: .6; } }
.hl-gpanel > figure { width: calc(320px * var(--z)); }
.hl-gpanel > figure .hl-phone { zoom: var(--z); }

/* Design process: how the concept was built, in the order the work happened */
.hlp { display: grid; gap: 28px; min-width: 0; }
.hlp-steps { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; list-style: none; }
.hlp-steps > li { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 3px solid #0B2545; }
.hlp-steps > li:nth-child(2) { border-top-color: #087E8B; }
.hlp-steps > li:nth-child(3) { border-top-color: #2D9CDB; }
.hlp-steps > li:nth-child(4) { border-top-color: #38BFA7; }
.hlp-steps > li:nth-child(5) { border-top-color: #066670; }
.hlp-steps > li:nth-child(6) { border-top-color: #8A4B00; }
.hlp-steps h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.hlp-steps p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.hlp-steps a { font-size: .9rem; font-weight: 600; }
.hlp-steps .out b { color: #0B2545; }
.cs-section:has(.hlp) .cs-label { position: static; }
@media (min-width: 700px) { .hlp-steps { grid-template-columns: repeat(3, 1fr); } }

/* Wireframes section: the tab underline takes the HealthLink teal */
#wireframes { --xc: #087E8B; }
@media (min-width: 900px) {
  #wireframes.wf-on .wf-row { grid-column: 1 / -1; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px 40px; align-items: start; }
  #wireframes.wf-on .wf-row .shot { max-width: 280px; }
  #wireframes.wf-on .wf-row .frame { max-height: none; overflow: visible; }
  #wireframes.wf-on .wf-row .wf-notes { columns: auto; column-gap: 0; display: grid; gap: 10px; max-width: 62ch; grid-column: auto; }
}

/* Compact feature write-up: principles as a grid, features as tabs, dashboards as three columns */
.hlq ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.hlq li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.45; color: var(--muted); }
.hlq li strong { display: block; color: var(--ink); font-size: 1rem; }
#flagship { --xc: #087E8B; }
.hlf { display: grid; gap: 16px; min-width: 0; }
.hlf-tabs button.sep { margin-left: 14px; border-left: 1px solid var(--line); border-radius: 0; padding-left: 20px; }
.hlf-panel { display: grid; gap: 20px 32px; min-width: 0; }
@media (min-width: 900px) { .hlf-panel { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.hlf-main { display: grid; gap: 14px; min-width: 0; }
.hlf-text p, .hlf-text ul, .hlf-text ol { margin: 0; }
.hlf-text { display: grid; gap: 10px; font-size: .95rem; line-height: 1.5; }
.hlf-text ul, .hlf-text ol { padding-left: 1.2em; display: grid; gap: 6px; }
.hlf-sub { margin: 10px 0 0; font-size: 1rem; }
.hlf-main .xc-table-wrap { margin: 0; }
.hlf-safe { padding: 14px 16px; border-top: 3px solid #087E8B; background: var(--paper-2, #f4f4f2); border-radius: 0 0 8px 8px; }
.hlf-safe h4 { margin: 0 0 6px; font-size: .95rem; }
.hlf-safe p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.hlw { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px 24px; padding: 0; list-style: none; }
.hlw li { padding-top: 10px; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.45; }
.hlf-panel[hidden] { display: none; }
.hlf-cols { display: grid; gap: 20px 32px; min-width: 0; }
@media (min-width: 700px) { .hlf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.hlf-col { display: grid; gap: 12px; min-width: 0; align-content: start; }
@media (min-width: 900px) { .hlf-panel:not(:has(.hlf-safe)) { grid-template-columns: minmax(0, 1fr); } }
.hlf .xc-table { min-width: 0; width: 100%; }
.hlf .xc-table th, .hlf .xc-table td { padding-right: 12px; }
.cs-section:has(.hlf) .cs-label, .cs-section:has(.hlq) .cs-label, #web-dashboards .cs-label { position: static; }

/* Working shades: compact grid to save space */
.hb .hb-work { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border: 0; border-radius: 0; background: none; overflow: visible; gap: 0 28px; }
.hb .hb-work > div { grid-template-columns: 36px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.hb .hb-work > div + div { border-top: 1px solid var(--line); }
.hb .hb-work .chip { width: 36px; height: 36px; border-radius: 8px; }
.hb .hb-work > div > div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; }
.hb .hb-work b { display: contents; font-size: .98rem; }
.hb .hb-work .tag { grid-column: 1 / -1; grid-row: 2; display: block; margin: 0; padding: 0; background: none; color: var(--muted); font-size: .85rem; font-weight: 400; }
.hb .hb-work code { grid-column: 2; grid-row: 1; }
@media (max-width: 560px) { .hb .hb-work .chip { width: 36px; height: 36px; } }

/* Home: quick action buttons */
.hl-phone .hl-qa.two { grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-phone .hl-qa-a { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; min-height: 76px; padding: 12px 10px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); text-align: left; transition: background-color 0.15s; }
.hl-phone .hl-qa-a:hover { background: var(--tint); }
.hl-phone .hl-qa-a svg { width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.hl-phone .hl-qa-a b { display: block; font-size: 15px; line-height: 1.2; }
.hl-phone .hl-qa-a small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.hl-phone .hl-qa.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-phone .hl-qa-a { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 12px 10px; }
.hl-phone .hl-qa-a > span { min-width: 0; }
.hl-phone .hl-qa-a b, .hl-phone .hl-qa-a small { overflow-wrap: anywhere; }
.hl-phone .hl-qa-a { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-height: 96px; }
.hl-phone .hl-qa-a b, .hl-phone .hl-qa-a small { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.hl-phone .hl-qa-a b { font-size: 14px; }

/* Tabs */
.hl-phone .hl-tabs2 { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.hl-phone .hl-tabs2 [role="tab"] { position: relative; min-height: 44px; padding: 4px 6px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; transition: color 0.15s; }
.hl-phone .hl-tabs2 [role="tab"]:hover { color: var(--ink); }
.hl-phone .hl-tabs2 [role="tab"][aria-selected="true"] { color: var(--blue-dark); }
.hl-phone .hl-tabs2 [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.hl-phone [role="tabpanel"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* AI guardrails */
.hlg .hb-tbl { min-width: 0; }
.hlg .hb-tbl th[scope="row"] { width: 28%; white-space: nowrap; padding-right: 24px; }
@media (max-width: 560px) { .hlg .hb-tbl th[scope="row"] { white-space: normal; } }
.cs-section:has(.hlg) .cs-label { position: static; }

/* Suggested additions */
.hla-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.hla-list li { display: grid; gap: 4px; align-content: start; padding: 16px 0; border-top: 1px solid var(--line); }
.hla-list h3 { margin: 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.hla-list p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.hla-list .hla-tag { font-size: .85rem; font-weight: 700; color: var(--blue-dark, #0B2545); }
.cs-section:has(.hla) .cs-label { position: static; }

/* Small buttons: shorter (Take, Skip, Undo, filters, toggles) */
.hl-phone .hl-small-btn.hl-small-btn.hl-small-btn { height: 32px; min-height: 32px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
