/* Help, 2 October 2026 (help.js draws it; docs/design/FAMILY.md is the language).
   Three pieces with one look: hint cards anchored to the real controls, a help mode that puts a ring on
   everything it can explain, and a tour that walks the main things with a spotlight.
   Everything floats over the page, so everything here is real glass. Tokens only.

   The small animations inside a card (the demonstrations) are driven by one number, --k, that runs from 0
   to 1 over the loop. Each moving part says when it starts (--a) and how long it takes (--d) and reads
   its own progress (--p, and --e with a soft landing). Stopping --k stops everything; with motion reduced
   --k stands at .92, where every demonstration shows its finished state. */

@property --k { syntax: '<number>'; inherits: true; initial-value: .92; }

.hp {
  position: fixed; inset: 0; z-index: 306; pointer-events: none;
  font-family: var(--font-sans, inherit); color: var(--color-foreground);
  --hp-dim: color-mix(in srgb, var(--canvas) 48%, transparent);
  --hp-ring: var(--color-brand);
  --hp-ring-soft: color-mix(in srgb, var(--color-brand) 22%, transparent);
}
html.light .hp { --hp-dim: color-mix(in srgb, var(--color-foreground) 26%, transparent); }
.hp[hidden] { display: none; }
.hp :where(button) { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.hp :where(h2, p) { margin: 0; }
.hp :focus-visible { outline: 2px solid var(--color-ring, var(--color-brand)); outline-offset: 2px; }

/* ── the veil: the page dims slightly. It also takes the presses, so the page under it rests. ── */
.hp-veil { position: absolute; inset: 0; background: var(--hp-dim); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s linear .3s; }
.hp.is-on .hp-veil { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s var(--ease-out), visibility 0s; }
/* with a spotlight on, the spotlight's own shade is the dim */
.hp.is-on.has-spot .hp-veil { opacity: 0; }

/* ── the spotlight: a rounded hole around the thing being explained ── */
.hp-spot {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 16px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1.5px var(--hp-ring), 0 0 0 6px var(--hp-ring-soft), 0 0 0 max(120vw, 120vh) var(--hp-dim);
  transition: opacity .3s var(--ease-out);
}
.hp.has-spot .hp-spot { opacity: 1; }
.hp-spot.is-gliding { transition: opacity .3s var(--ease-out), transform .52s var(--ease-out), width .52s var(--ease-out), height .52s var(--ease-out), border-radius .52s var(--ease-out); }

/* ── beacons: a ring on each thing help can explain ── */
.hp-beacon { position: absolute; left: -22px; top: -22px; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; pointer-events: auto; transition: scale .12s var(--ease-out); }
.hp-beacon:active { scale: .96; }
.hp-beacon > i { position: relative; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 3px var(--color-card), 0 0 0 4px var(--hp-ring-soft), 0 6px 14px -4px var(--color-brand); animation: hp-beacon-in .42s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 34ms); transition: transform .2s var(--ease-out); }
.hp-beacon > i::before, .hp-beacon > i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--color-brand); opacity: 0; animation: hp-pulse 2.6s var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * 34ms + .4s); }
.hp-beacon > i::after { animation-delay: calc(var(--i, 0) * 34ms + 1.7s); }
.hp-beacon.is-in > i { animation: none; }
.hp-beacon:hover > i, .hp-beacon:focus-visible > i { transform: scale(1.18); }
.hp-beacon[aria-expanded="true"] > i { transform: scale(.72); }
.hp-beacon[aria-expanded="true"] > i::before, .hp-beacon[aria-expanded="true"] > i::after { animation: none; }
@keyframes hp-beacon-in { from { opacity: 0; transform: scale(.3); } }
@keyframes hp-pulse { 0% { opacity: .85; transform: scale(.7); } 70%, 100% { opacity: 0; transform: scale(2.3); } }

/* ── the card: real glass, an arrow to its target, growing from that arrow ── */
.hp-card { position: absolute; left: 0; top: 0; width: 324px; max-width: calc(100vw - 24px); visibility: hidden; pointer-events: none; transform: scale(.94); transform-origin: var(--hp-ox, 50%) var(--hp-oy, 0); transition: transform .16s var(--ease-out), visibility 0s linear .16s; }
.hp-card.is-open { visibility: visible; pointer-events: auto; transform: none; transition: transform .36s var(--ease-out), visibility 0s; }
.hp-card:focus { outline: none; }
.hp-card.hp-reset, .hp-card.hp-reset * { transition: none !important; }
.hp-glass {
  position: relative; overflow: hidden; border: 1px solid var(--frost-line); border-radius: 22px; background: var(--frost-float);
  box-shadow: var(--frost-rim), var(--frost-pop);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  opacity: 0; transition: opacity .14s var(--ease-out);
}
.hp-card.is-open .hp-glass { opacity: 1; transition-duration: .22s; }
.hp-arrow { position: absolute; z-index: 1; width: 20px; height: 10px; background: var(--frost-float); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6); -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .14s var(--ease-out); }
.hp-arrow svg { display: block; width: 20px; height: 10px; fill: none; stroke: var(--frost-line); stroke-width: 1.2; }
.hp-card.is-open .hp-arrow { opacity: 1; transition-duration: .22s; }
.hp-card[data-side="bottom"] > .hp-arrow { top: -9px; left: var(--hp-ax, 50%); margin-left: -10px; }
.hp-card[data-side="top"] > .hp-arrow { bottom: -9px; left: var(--hp-ax, 50%); margin-left: -10px; rotate: 180deg; }
.hp-card[data-side="right"] > .hp-arrow { left: -14px; top: var(--hp-ay, 50%); margin-top: -5px; rotate: -90deg; }
.hp-card[data-side="left"] > .hp-arrow { right: -14px; top: var(--hp-ay, 50%); margin-top: -5px; rotate: 90deg; }
.hp-card[data-side="none"] > .hp-arrow { display: none; }

/* the stage of the demonstration: a well with the page's lights in it. Card radius 22, 8 of padding, so 14 here. */
.hp-stage { position: relative; display: grid; height: 116px; margin: 8px 8px 0; place-items: center; overflow: hidden; border-radius: 14px;
  background: radial-gradient(180px 120px at 88% -10%, var(--field-a), transparent 72%), radial-gradient(160px 110px at 0% 110%, var(--field-b), transparent 72%), var(--frost-well);
  box-shadow: inset 0 0 0 1px var(--frost-line); }
.hp-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--frost-strong); box-shadow: var(--frost-rim), 0 0 0 1px var(--frost-line); color: var(--color-muted-foreground); transition: color .15s var(--ease-out), scale .12s var(--ease-out); }
.hp-x::before { content: ''; position: absolute; inset: -8px; }
.hp-x:hover { color: var(--color-foreground); }
.hp-x:active { scale: .96; }
.hp-x svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.hp-body { padding: 14px 18px 16px; }
.hp-title { font-size: 16px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; text-wrap: balance; }
.hp-text { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--oryn-text-2); text-wrap: pretty; }
.hp-more { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); text-wrap: pretty; }
.hp-more:empty, .hp-act[hidden], .hp-foot[hidden], .hp-x[hidden], .hp-btn[hidden] { display: none; }
.hp-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-top: 12px; padding: 0 14px; border-radius: 999px; background: var(--brand-soft); color: var(--color-brand-ink); font-size: 13px; font-weight: 600; transition: background-color .16s var(--ease-out), color .16s var(--ease-out), scale .12s var(--ease-out); }
.hp-act:hover { background: var(--color-brand); color: var(--color-primary-foreground); }
.hp-act:active { scale: .96; }
/* the parts of a card arrive one after another, once, when it opens */
.hp-stage, .hp-title, .hp-text, .hp-more, .hp-act, .hp-foot { opacity: 0; translate: 0 6px; }
.hp-card.is-open :is(.hp-stage, .hp-title, .hp-text, .hp-more, .hp-act, .hp-foot) { opacity: 1; translate: 0 0; transition: opacity .3s var(--ease-out), translate .42s var(--ease-out); }
.hp-card.is-open .hp-title { transition-delay: .05s; }
.hp-card.is-open :is(.hp-text, .hp-more, .hp-act) { transition-delay: .09s; }
.hp-card.is-open .hp-foot { transition-delay: .13s; }

/* the tour's controls: where you are, Back, Next, and the way out */
.hp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 18px; border-top: 1px solid var(--color-border); }
.hp-where { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.hp-count { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.hp-dots { display: flex; gap: 3px; }
.hp-dots i { display: block; width: 5px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--color-foreground) 14%, transparent); transition: width .36s var(--ease-out), background-color .2s var(--ease-out); }
.hp-dots i.is-done { background: color-mix(in srgb, var(--color-brand) 45%, transparent); }
.hp-dots i.is-now { width: 14px; background: var(--color-brand); }
.hp-nav { display: flex; flex: none; align-items: center; gap: 4px; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--oryn-text-2); white-space: nowrap; transition: background-color .16s var(--ease-out), color .16s var(--ease-out), box-shadow .3s var(--ease-out), scale .12s var(--ease-out); }
.hp-btn:hover { background: var(--color-muted); color: var(--color-foreground); }
.hp-btn:active { scale: .96; }
.hp-btn[disabled] { opacity: .4; pointer-events: none; }
.hp-btn--go { padding: 0 18px; background: var(--color-brand); color: var(--color-primary-foreground); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 26%, transparent), 0 8px 18px -10px var(--color-brand); }
.hp-btn--go:hover { background: var(--color-brand-hover); color: var(--color-primary-foreground); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
.hp-end { margin-left: -6px; padding: 0 6px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--color-muted-foreground); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: color .15s var(--ease-out); }
.hp-end:hover { color: var(--color-foreground); }
.hp-where__row { display: flex; align-items: center; gap: 10px; }

/* ── the bar at the foot of the page card ── */
.hp-bar {
  position: absolute; left: calc((100vw + var(--fam-left, 0px) - var(--fam-right, 0px)) / 2); bottom: calc(var(--frame, 12px) + 18px);
  display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 24px); min-height: 52px; padding: 6px 6px 6px 16px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-float);
  box-shadow: var(--frost-rim), var(--frost-pop); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  translate: -50% 14px; opacity: 0; visibility: hidden; transition: opacity .16s var(--ease-out), translate .16s var(--ease-out), visibility 0s linear .16s;
}
.hp.is-on:not(.is-tour) .hp-bar { translate: -50% 0; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s var(--ease-out) .08s, translate .42s var(--ease-out) .08s, visibility 0s; }
.hp-bar:focus { outline: none; }
.hp-bar__mark { position: relative; display: grid; flex: none; width: 22px; height: 22px; margin-right: 6px; place-items: center; }
.hp-bar__mark i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 3px var(--hp-ring-soft); }
.hp-bar__mark::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 1.5px solid var(--color-brand); opacity: 0; animation: hp-pulse 2.6s var(--ease-out) infinite; }
.hp-bar__txt { margin-right: 10px; font-size: 13.5px; line-height: 1.3; color: var(--oryn-text-2); }
.hp-bar__txt b { font-weight: 600; color: var(--color-foreground); }

/* ── the invitation, once, beside the Help button ── */
.hp-card--invite { width: 292px; }
.hp-card--invite .hp-stage { height: 104px; }
.hp-card--invite .hp-foot { justify-content: flex-end; padding-left: 10px; border-top: 0; padding-top: 0; }
[data-help-open][aria-pressed="true"] { background: var(--brand-soft); color: var(--color-brand-ink); }
[data-help-open][aria-pressed="true"] .nav-ic { color: var(--color-brand); }

/* ── phones: the card is a sheet at the foot of the screen; the rings stay ── */
@media (max-width: 767.98px) {
.hp-card:not(.hp-card--invite) { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-width: none; transform: translateY(24px); transform-origin: 50% 100%; }
.hp-card:not(.hp-card--invite).is-open { transform: none; }
.hp-card:not(.hp-card--invite) > .hp-arrow { display: none; }
.hp-card:not(.hp-card--invite) .hp-glass { border-radius: 26px; }
.hp-card:not(.hp-card--invite) .hp-stage { border-radius: 18px; }
.hp-card:not(.hp-card--invite) .hp-glass::before { content: ''; position: absolute; top: 14px; left: 50%; z-index: 2; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: color-mix(in srgb, var(--color-foreground) 22%, transparent); }
.hp-x { width: 32px; height: 32px; }
.hp-bar { left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 16px); padding-left: 14px; border-radius: 28px; }
.hp-bar__txt { font-size: 13px; }
.hp-bar__intro { display: none; }   /* no room for a third button here */
.hp-bar__txt b { display: none; }   /* the rings already say help is on: the line keeps to what to do */
.hp-btn { height: 40px; }
}

/* ── when motion must rest: no pulse, no travel, the finished picture ── */
.hp.is-still .hp-beacon > i, .hp.is-still .hp-beacon > i::before, .hp.is-still .hp-beacon > i::after, .hp.is-still .hp-bar__mark::after { animation: none; }
.hp.is-still .hp-beacon > i::before { opacity: .5; }
.hp.is-still .hp-card, .hp.is-still .hp-card.is-open { transform: none; transition: visibility 0s; }
.hp.is-still :is(.hp-stage, .hp-title, .hp-text, .hp-more, .hp-act, .hp-foot) { translate: 0 0; transition: opacity .12s linear; transition-delay: 0s; }
.hp.is-still .hp-spot.is-gliding { transition: opacity .12s linear; }
.hp.is-still .hp-bar { translate: -50% 0; transition: opacity .12s linear, visibility 0s; }
.hp.is-still .hp-dots i { transition: none; }
.hp.is-still .hpd, .hp.is-still .hpd * { animation: none !important; }
.hp.is-still .hpd, .hp.no-k .hpd { --k: .92; }
/* a browser that cannot animate a number (no @property): every demonstration stands at its finished picture */
.hp.no-k .hpd { animation: none; }
@media (prefers-reduced-motion: reduce) {
.hp-beacon > i, .hp-beacon > i::before, .hp-beacon > i::after, .hp-bar__mark::after { animation: none; }
.hp-beacon > i::before { opacity: .5; }
.hp-card, .hp-card.is-open { transform: none; transition: visibility 0s; }
.hp-stage, .hp-title, .hp-text, .hp-more, .hp-act, .hp-foot { translate: 0 0 !important; transition: opacity .12s linear !important; transition-delay: 0s !important; }
.hp-spot.is-gliding { transition: opacity .12s linear; }
.hp-bar { translate: -50% 0 !important; }
.hpd, .hpd * { animation: none !important; }
.hpd { --k: .92; }
}
html.a11y-reduce-motion .hp-beacon > i, html.a11y-reduce-motion .hp-beacon > i::before, html.a11y-reduce-motion .hp-beacon > i::after, html.a11y-reduce-motion .hp-bar__mark::after, html.a11y-reduce-motion .hpd, html.a11y-reduce-motion .hpd * { animation: none !important; }
html.a11y-reduce-motion .hpd { --k: .92; }

/* ════════ the demonstrations: 220 by 96, drawn with the tokens ════════ */
.hpd {
  position: relative; flex: none; width: 220px; height: 96px; font-size: 9.5px; font-weight: 650; line-height: 1; color: var(--color-muted-foreground);
  --ink: color-mix(in srgb, var(--color-foreground) 16%, transparent);
  --ink2: color-mix(in srgb, var(--color-foreground) 9%, transparent);
  --ink3: color-mix(in srgb, var(--color-foreground) 30%, transparent);
  --edge: 0 0 0 1px var(--frost-line), 0 6px 12px -8px color-mix(in srgb, var(--color-foreground) 34%, transparent);
  --warm: var(--color-brand-2, var(--color-brand));
  animation: hpd-k var(--t, 5.6s) linear infinite; animation-play-state: var(--hp-play, running);
  opacity: clamp(0, min(calc(var(--k) / .035), calc((1 - var(--k)) / .035)), 1);
}
@keyframes hpd-k { from { --k: 0; } to { --k: 1; } }
.hp-card:not(.is-open) .hpd, .hp.is-hidden .hpd, .hpd.is-out { --hp-play: paused; }
.hpd *, .hpd *::before, .hpd *::after { box-sizing: border-box; }
.hpd :where(i, em, u, b) { font-style: normal; text-decoration: none; }
/* a part with a start: --p runs 0 to 1 from --a over --d, --e is the same with a soft landing */
.hpd .s { --p: clamp(0, calc((var(--k) - var(--a, 0)) / var(--d, .07)), 1); --e: calc(1 - (1 - var(--p)) * (1 - var(--p))); }
.hpd .s-fade { opacity: var(--p); }
.hpd .s-pop { opacity: var(--p); scale: calc(.82 + .18 * var(--e)); }
.hpd .s-rise { opacity: var(--p); translate: 0 calc((1 - var(--e)) * 7px); }
/* the atoms: a small card, a line of text, a label, a face, a tick */
.hpd-c { position: absolute; border-radius: 9px; background: var(--color-card); box-shadow: var(--edge); }
.hpd-l { display: block; height: 5px; border-radius: 3px; background: var(--ink); }
.hpd-p { display: inline-flex; align-items: center; gap: 3px; height: 16px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--color-brand-ink); white-space: nowrap; }
.hpd-p--quiet { background: var(--ink2); color: var(--oryn-text-2); }
.hpd-o { display: block; border-radius: 50%; background: color-mix(in srgb, var(--color-brand) 32%, var(--color-card)); }
.hpd-k { position: relative; display: block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--color-brand) calc(var(--p, 1) * 100%), transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-brand) calc(var(--p, 1) * 100%), var(--ink3)); }
.hpd-k::after { content: ''; position: absolute; left: 3.4px; top: 3.4px; width: 5.4px; height: 3.2px; border-left: 1.5px solid var(--color-primary-foreground); border-bottom: 1.5px solid var(--color-primary-foreground); rotate: -45deg; opacity: var(--p, 1); }
.hpd .ph, .hpd .ph-fill { font-size: 12px; line-height: 1; }

/* the day's ring: three posts tick themselves and the ring fills */
.hpd-ring .hpd-c { left: 12px; display: flex; width: 122px; height: 22px; align-items: center; justify-content: space-between; padding: 0 7px 0 10px; }
.hpd-ring__r { position: absolute; right: 16px; top: 20px; display: grid; width: 56px; height: 56px; place-items: center;
  --p1: clamp(0, calc((var(--k) - .1) / .09), 1); --p2: clamp(0, calc((var(--k) - .32) / .09), 1); --p3: clamp(0, calc((var(--k) - .54) / .09), 1); }
.hpd-ring__r svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; fill: none; stroke-width: 5; }
.hpd-ring__r circle { stroke: var(--ink2); }
.hpd-ring__r circle + circle { stroke: var(--color-brand); stroke-linecap: round; stroke-dasharray: 132px; stroke-dashoffset: calc(132px * (1 - (var(--p1) + var(--p2) + var(--p3)) / 3)); }
.hpd-ring__r em { position: absolute; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-foreground); }
.hpd-ring__r em:nth-of-type(1) { opacity: calc(1 - var(--p1)); }
.hpd-ring__r em:nth-of-type(2) { opacity: calc(var(--p1) * (1 - var(--p2))); }
.hpd-ring__r em:nth-of-type(3) { opacity: calc(var(--p2) * (1 - var(--p3))); }
.hpd-ring__r u { position: absolute; width: 14px; height: 8px; margin-top: -4px; border-left: 2.4px solid var(--color-brand); border-bottom: 2.4px solid var(--color-brand); rotate: -45deg; opacity: var(--p3); scale: calc(.6 + .4 * var(--p3)); }

/* the order: three posts, and the one in your specialty moves to the top */
.hpd-order > u, .hpd-society > u { position: absolute; left: 10px; width: 10px; font-size: 10px; font-weight: 700; text-align: center; color: var(--color-muted-foreground); }
.hpd-order .hpd-c, .hpd-society .hpd-c { left: 28px; display: flex; width: 180px; height: 22px; align-items: center; gap: 8px; padding: 0 8px; }
.hpd-order .hpd-o, .hpd-society .hpd-o { width: 10px; height: 10px; background: var(--ink3); }
.hpd-order .hpd-l, .hpd-society .hpd-l { width: 62px; }
.hpd-order .hpd-p, .hpd-society .hpd-p { margin-left: auto; margin-right: -3px; }
.hpd-order .m1, .hpd-society .m1 { top: 9px; translate: 0 calc(var(--e) * 28px); }
.hpd-order .m2, .hpd-society .m2 { top: 37px; translate: 0 calc(var(--e) * 28px); }
.hpd-order .m3, .hpd-society .m3 { top: 65px; z-index: 1; translate: 0 calc(var(--e) * -56px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) calc(var(--p) * 55%), var(--frost-line)), 0 8px 16px -8px color-mix(in srgb, var(--color-brand) calc(var(--p) * 60%), transparent); }
.hpd-order .m3 .hpd-o, .hpd-society .m3 .hpd-o { background: var(--color-brand); }
.hpd-order .m3 .hpd-l, .hpd-society .m3 .hpd-l { width: 44px; }

/* seven days: the columns rise, today last and in bold */

/* the spoken version: the wave fills as it plays and the words follow */
.hpd-wave { --f: clamp(0, calc((var(--k) - .06) / .8), 1); }
.hpd-wave .pl { position: absolute; left: 14px; top: 12px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--color-brand); box-shadow: 0 6px 12px -6px var(--color-brand); }
.hpd-wave .pl::before, .hpd-wave .pl::after { content: ''; width: 3px; height: 10px; border-radius: 1px; background: var(--color-primary-foreground); }
.hpd-wave .pl { grid-auto-flow: column; gap: 3px; justify-content: center; }
.hpd-wave .w { position: absolute; left: 54px; right: 14px; top: 12px; display: flex; height: 30px; align-items: center; gap: 2px; }
.hpd-wave .w i { display: block; flex: 1; height: var(--b); border-radius: 2px; background: color-mix(in srgb, var(--color-brand) calc(clamp(0, calc((var(--f) - var(--n)) * 40), 1) * 100%), var(--ink)); }
.hpd-wave .tx { position: absolute; left: 14px; right: 14px; top: 56px; display: flex; flex-wrap: wrap; gap: 7px 5px; }
.hpd-wave .tx b { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--color-foreground) calc(12% + clamp(0, calc((var(--f) - var(--n)) * 30), 1) * 50%), transparent); }

/* saving: the bookmark fills and the post goes to its shelf */
.hpd-save .post { left: 14px; top: 13px; display: flex; width: 86px; height: 70px; flex-direction: column; gap: 7px; padding: 12px 10px; }
.hpd-save .post svg { position: absolute; right: 7px; bottom: 7px; width: 17px; height: 17px; fill: color-mix(in srgb, var(--color-brand) calc(var(--p) * 100%), transparent); stroke: color-mix(in srgb, var(--color-brand) calc(var(--p) * 100%), var(--color-muted-foreground)); stroke-width: 1.7; stroke-linejoin: round; scale: calc(1 + .16 * var(--p) * (1 - var(--p)) * 4); }
.hpd-save .shelf { position: absolute; left: 122px; right: 12px; top: 76px; height: 3px; border-radius: 2px; background: var(--ink); }
.hpd-save .bk { top: 42px; width: 24px; height: 32px; border-radius: 6px; padding: 7px 5px; display: flex; flex-direction: column; gap: 4px; }
.hpd-save .bk .hpd-l { height: 3px; }
.hpd-save .fly { left: 182px; z-index: 1; opacity: clamp(0, calc(var(--p) * 5), 1); translate: calc((1 - var(--e)) * -132px) calc((1 - var(--e)) * -6px); scale: calc(2.3 - 1.3 * var(--e)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 50%, var(--frost-line)), 0 8px 14px -8px var(--color-brand); }

/* the five at the top: a step's bar fills and hands over to the next */

/* following a topic: the button turns, and the topic joins your list */
.hpd-follow .card { left: 12px; top: 14px; width: 98px; height: 68px; padding: 12px 10px; }
.hpd-follow .dot, .hpd-prefs .dot, .hpd-filter .dot, .hpd-filters .dot { display: block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand); }
.hpd-follow .hd { display: flex; align-items: center; gap: 6px; }
.hpd-follow .hd .hpd-l { width: 48px; height: 6px; }
.hpd-follow .chip, .hpd-voices .chip { position: absolute; left: 10px; bottom: 10px; display: block; width: calc(50px + 20px * var(--e, 0)); height: 20px; border-radius: 999px; background: color-mix(in srgb, var(--brand-soft) calc(var(--p, 0) * 100%), var(--color-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, transparent calc(var(--p, 0) * 100%), var(--ink3)); color: color-mix(in srgb, var(--color-brand-ink) calc(var(--p, 0) * 100%), var(--oryn-text-2)); }
.hpd-follow .chip em, .hpd-voices .chip em { position: absolute; inset: 0; display: grid; place-items: center; white-space: nowrap; }
.hpd-follow .chip em:first-child, .hpd-voices .chip em:first-child { opacity: calc(1 - var(--p, 0)); }
.hpd-follow .chip em + em, .hpd-voices .chip em + em { opacity: var(--p, 0); }
.hpd-follow .list { left: 124px; top: 8px; display: flex; width: 84px; height: 80px; flex-direction: column; padding: 9px 9px 0; overflow: hidden; }
.hpd-follow .list > u { display: block; margin-bottom: 7px; font-size: 9px; color: var(--color-muted-foreground); }
.hpd-follow .row { display: flex; height: 17px; flex: none; align-items: center; gap: 6px; }
.hpd-follow .row .hpd-l { width: 40px; }
.hpd-follow .row.s { height: calc(17px * var(--e)); opacity: var(--p); overflow: hidden; }
.hpd-follow .row .d2 { background: var(--warm); }
.hpd-follow .row .d3 { background: var(--color-success, var(--color-brand)); }

/* why a post is here: its reasons, in words */
.hpd-why .post, .hpd-related .post { left: 12px; top: 13px; width: 84px; height: 70px; padding: 10px; }
.hpd-why .post .hpd-o, .hpd-related .post .hpd-o { width: 16px; height: 16px; margin-bottom: 8px; }
.hpd-why .post .hpd-l + .hpd-l, .hpd-related .post .hpd-l + .hpd-l { margin-top: 6px; }
.hpd-why .post u, .hpd-related .post u { position: absolute; right: 8px; bottom: 8px; display: block; width: 30px; height: 4px; border-radius: 2px; background: var(--color-brand); }
.hpd-why .hpd-p, .hpd-related .hpd-p { position: absolute; left: 108px; transform-origin: 0 50%; }

/* the line under the filters: what is shown in words, and Clear filters brings back the posts the filters had left out */
.hpd-scope .say { position: absolute; left: 14px; right: 14px; top: 9px; display: flex; height: 16px; align-items: center; gap: 8px; }
.hpd-scope .say .hpd-l { height: 4px; background: var(--ink3); }
.hpd-scope .say .hpd-p { transform-origin: 0 50%; }
.hpd-scope .rows { position: absolute; left: 14px; right: 14px; top: 32px; display: flex; flex-direction: column; }
.hpd-scope .row { position: relative; display: flex; height: 14px; flex: none; align-items: center; gap: 7px; margin-bottom: 2px; padding: 0 7px; border-radius: 6px; background: var(--color-card); box-shadow: 0 0 0 1px var(--frost-line); }
.hpd-scope .row.back { height: calc(14px * var(--e)); margin-bottom: calc(2px * var(--e)); opacity: var(--p); overflow: hidden; }
.hpd-scope .row .dot { display: block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); }
.hpd-scope .row .hpd-l { height: 4px; }

/* the filter: a choice turns on and the posts that do not match step out */
.hpd-filter .chips, .hpd-filters .chips { position: absolute; left: 14px; top: 8px; display: flex; gap: 5px; }
.hpd-filter .chips .hpd-p, .hpd-filters .chips .hpd-p { background: color-mix(in srgb, var(--color-brand) calc(var(--p, 0) * 100%), var(--ink2)); color: color-mix(in srgb, var(--color-primary-foreground) calc(var(--p, 0) * 100%), var(--oryn-text-2)); }
.hpd-filter .rows, .hpd-filters .rows { position: absolute; left: 14px; right: 14px; top: 32px; display: flex; flex-direction: column; }
.hpd-filter .row, .hpd-filters .row { position: relative; display: flex; height: 14px; flex: none; align-items: center; gap: 7px; margin-bottom: 2px; padding: 0 7px; border-radius: 6px; background: var(--color-card); box-shadow: 0 0 0 1px var(--frost-line); }
/* the ones that do not match */
.hpd-filter .row.drop, .hpd-filters .row.drop { height: calc(14px * (1 - var(--e))); margin-bottom: calc(2px * (1 - var(--e))); opacity: calc(1 - var(--p)); overflow: hidden; }
.hpd-filter .row .dot, .hpd-filters .row .dot { width: 6px; height: 6px; background: var(--ink3); }
.hpd-filter .row.keep .dot, .hpd-filters .row.keep .dot { background: color-mix(in srgb, var(--color-brand) calc(var(--p) * 100%), var(--ink3)); }
.hpd-filter .row .hpd-l, .hpd-filters .row .hpd-l { height: 4px; }

/* asking a colleague: you choose who, and the question goes only to them */
.hpd-ask .post { left: 12px; top: 20px; display: flex; width: 70px; height: 56px; flex-direction: column; gap: 6px; padding: 11px 9px; }
.hpd-ask .who { position: absolute; left: 172px; width: 22px; height: 22px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-brand) calc(var(--p, 0) * 100%), transparent); }
.hpd-ask .who .hpd-k { position: absolute; right: -5px; bottom: -4px; width: 11px; height: 11px; box-shadow: 0 0 0 1.5px var(--color-card); opacity: var(--p); }
.hpd-ask .who .hpd-k::after { left: 3px; top: 3px; width: 5px; height: 3px; }
.hpd-ask .who.no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink3); opacity: .7; }
.hpd-ask .q { position: absolute; left: 92px; top: 36px; display: grid; width: 26px; height: 22px; place-items: center; border-radius: 9px 9px 9px 3px; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 12px; font-weight: 700; box-shadow: 0 6px 12px -6px var(--color-brand); opacity: clamp(0, calc(var(--k) * 12), 1); translate: calc(var(--e) * 44px) 0; }
.hpd-ask .q .ph-fill { position: absolute; right: -5px; top: -6px; display: grid; width: 13px; height: 13px; place-items: center; border-radius: 50%; background: var(--color-card); color: var(--color-brand); font-size: 8px; box-shadow: 0 0 0 1px var(--frost-line); }

/* what was left open: a discussion with a new reply, a saved post not read yet */
.hpd-resume .hpd-c { left: 14px; display: flex; width: 192px; height: 34px; align-items: center; gap: 9px; padding: 0 10px 0 7px; border-radius: 12px; }
.hpd-resume .ic { position: relative; display: grid; width: 22px; height: 22px; flex: none; place-items: center; border-radius: 50%; background: var(--ink2); color: var(--oryn-text-2); }
.hpd-resume .ic.live { background: var(--brand-soft); color: var(--color-brand); }
.hpd-resume .ic.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--color-brand); opacity: 0; animation: hp-pulse 2.6s var(--ease-out) infinite; animation-play-state: var(--hp-play, running); }
.hpd-resume .tx { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.hpd-resume .tx em { font-size: 9px; font-weight: 600; }
.hpd-resume .tx em.live { color: var(--color-brand-ink); }
.hpd-resume .go { color: var(--color-muted-foreground); opacity: var(--p); translate: calc((1 - var(--e)) * -5px) 0; }

/* picked for you: three posts, each with its reason */
.hpd-picks .row, .hpd-major .row { position: absolute; left: 22px; width: 176px; height: 24px; }
.hpd-picks .cv, .hpd-major .cv { position: absolute; left: 0; top: 0; display: block; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(140deg, color-mix(in srgb, var(--tone) 50%, var(--color-card)), color-mix(in srgb, var(--tone) 20%, var(--color-card))); }
.hpd-picks .hpd-p, .hpd-major .hpd-p { position: absolute; left: 33px; top: 0; height: 14px; padding: 0 6px; font-size: 9px; transform-origin: 0 50%; background: color-mix(in srgb, var(--tone) 15%, transparent); color: color-mix(in srgb, var(--tone) 72%, var(--color-foreground)); }
.hpd-picks .hpd-l, .hpd-major .hpd-l { position: absolute; left: 33px; top: 18px; }

/* the patient page: the code you hand over, and what opens on their phone */
.hpd-page .qr { position: absolute; left: 20px; top: 22px; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--brand-grad); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 10px 18px -10px var(--color-brand); }
.hpd-page .qr svg { width: 30px; height: 30px; fill: var(--color-foreground); }
html.light .hpd-page .qr svg { fill: var(--color-card); }
.hpd-page .trail { position: absolute; left: 82px; top: 46px; width: 58px; height: 4px; background: radial-gradient(circle at 2px 2px, var(--ink3) 1.4px, transparent 1.8px) 0 0 / 8px 4px repeat-x; }
.hpd-page .trail i { position: absolute; left: -3px; top: -3px; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 3px var(--hp-ring-soft); translate: calc(var(--e) * 56px) 0; opacity: clamp(0, min(calc(var(--p) * 8), calc((1 - var(--p)) * 8)), 1); }
.hpd-page .phone { position: absolute; left: 152px; top: 8px; display: flex; width: 46px; height: 80px; flex-direction: column; align-items: center; gap: 5px; padding: 9px 6px 0; border-radius: 11px; background: var(--color-card); box-shadow: 0 0 0 1.5px var(--ink3), 0 10px 16px -10px color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.hpd-page .phone .hpd-o { width: 16px; height: 16px; }
.hpd-page .phone .hpd-l { width: 26px; height: 4px; }
.hpd-page .phone u { display: block; width: 34px; height: 22px; margin-top: 2px; border-radius: 5px; background: var(--brand-soft); }

/* Create: one button, four ways to start, and a link to summarize */
.hpd-create .plus { position: absolute; left: 93px; top: 14px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 16px; opacity: calc(1 - var(--p)); scale: calc(1 - .5 * var(--e)); }
.hpd-create .plus .ph { font-size: 16px; }
.hpd-create .tile { top: 10px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--color-brand); }
.hpd-create .tile .ph { font-size: 17px; }
.hpd-create .link { position: absolute; left: 21px; top: 62px; display: flex; width: 178px; height: 24px; align-items: center; gap: 7px; padding: 0 9px; border-radius: 999px; background: var(--color-card); box-shadow: var(--edge); }
.hpd-create .link .hpd-l { width: calc(var(--e) * 96px); }
.hpd-create .link .sp { margin-left: auto; color: color-mix(in srgb, var(--color-brand) calc(var(--p) * 100%), var(--ink3)); }

/* search: what you type, and the kinds of thing it finds */
.hpd-search .field { position: absolute; left: 18px; top: 8px; display: flex; width: 184px; height: 24px; align-items: center; gap: 7px; padding: 0 10px; border-radius: 999px; background: var(--color-card); box-shadow: var(--edge), 0 0 0 3px var(--brand-soft); }
.hpd-search .field .hpd-l { width: calc(var(--e) * 58px); background: var(--ink3); }
.hpd-search .field u { display: block; width: 1.5px; height: 11px; margin-left: -4px; background: var(--color-brand); }
.hpd-search .res { position: absolute; left: 26px; display: flex; width: 168px; height: 16px; align-items: center; gap: 8px; }
.hpd-search .res > i { width: 14px; text-align: center; color: var(--color-brand); }
.hpd-search .res .hpd-o { width: 12px; height: 12px; margin: 0 1px; }
.hpd-search .res em { margin-left: auto; font-size: 9px; font-weight: 600; }

/* notifications: what colleagues did with your posts and your discussions */
.hpd-bell .btn { position: absolute; left: 18px; top: 28px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--color-card); box-shadow: var(--edge); color: var(--oryn-text-2); }
.hpd-bell .btn .ph { font-size: 18px; }
.hpd-bell .bd { position: absolute; right: -2px; top: -2px; display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: var(--color-alert, var(--color-brand)); color: var(--color-card); font-size: 9px; font-weight: 700; box-shadow: 0 0 0 2px var(--color-card); }
html:not(.light) .hpd-bell .bd { color: var(--color-foreground); }
.hpd-bell .bd u { position: absolute; }
.hpd-bell .bd u:first-child { opacity: calc(1 - var(--p2)); }
.hpd-bell .bd u + u { opacity: var(--p2); }
.hpd-bell .bd { --p2: clamp(0, calc((var(--k) - .42) / .06), 1); }
.hpd-bell .note { left: 76px; display: flex; width: 130px; height: 30px; align-items: center; gap: 8px; padding: 0 9px 0 7px; border-radius: 11px; opacity: var(--p); translate: calc((1 - var(--e)) * 10px) 0; }
.hpd-bell .note .hpd-o { width: 16px; height: 16px; flex: none; }
.hpd-bell .note span { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.hpd-bell .note > i { color: var(--color-brand); }

/* the fields: pick one and the page is ranked again for it */

/* this week or this month: the mark slides and the page looks further back */

/* Listen: the recordings play one after another */

/* who is posting: doctors and editorial accounts, and the Follow button */
.hpd-voices .hpd-c { top: 6px; display: flex; width: 64px; height: 84px; flex-direction: column; align-items: center; gap: 5px; padding-top: 8px; border-radius: 12px; }
.hpd-voices .hpd-o { width: 22px; height: 22px; }
.hpd-voices .hpd-l { width: 34px; }
.hpd-voices .v1 { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) calc(var(--p) * 50%), var(--frost-line)), 0 6px 12px -8px color-mix(in srgb, var(--color-foreground) 34%, transparent); }
.hpd-voices .v2 .hpd-o { background: color-mix(in srgb, var(--warm) 36%, var(--color-card)); }
.hpd-voices .v3 .hpd-o { background: color-mix(in srgb, var(--color-success, var(--color-brand)) 30%, var(--color-card)); }
.hpd-voices .tag { font-size: 8.5px; color: var(--color-muted-foreground); }
.hpd-voices .chip { left: 50%; bottom: 7px; width: calc(40px + 14px * var(--e, 0)); translate: -50% 0; height: 17px; font-size: 8.5px; }

/* a private discussion: only the people inside can see it */
.hpd-private .room { position: absolute; left: 12px; top: 10px; width: 140px; height: 76px; border-radius: 16px; background: color-mix(in srgb, var(--brand-soft) calc(var(--p) * 70%), transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-brand) calc(var(--p) * 70%), var(--ink)); }
.hpd-private .room .hpd-o { position: absolute; width: 16px; height: 16px; }
.hpd-private .msg { position: absolute; display: block; height: 14px; border-radius: 7px; background: var(--color-card); box-shadow: 0 0 0 1px var(--frost-line); }
.hpd-private .msg.me { background: var(--color-brand); box-shadow: none; }
.hpd-private .lk { position: absolute; right: -7px; top: -7px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--color-brand); color: var(--color-primary-foreground); box-shadow: 0 0 0 2px var(--color-card); opacity: var(--p); scale: calc(.6 + .4 * var(--e)); }
.hpd-private .out { position: absolute; left: 174px; display: grid; width: 24px; height: 24px; place-items: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink3); color: var(--color-muted-foreground); opacity: calc(1 - .45 * var(--p)); }

/* patient details: what could identify someone is taken out before it is sent */
.hpd-redact .note { left: 14px; top: 8px; display: flex; width: 192px; height: 56px; flex-direction: column; justify-content: center; gap: 8px; padding: 0 12px; overflow: hidden; }
.hpd-redact .ln { display: flex; align-items: center; gap: 5px; }
.hpd-redact .id { display: block; height: 9px; border-radius: 3px; background: color-mix(in srgb, color-mix(in srgb, var(--color-foreground) 70%, transparent) calc(var(--p) * 100%), color-mix(in srgb, var(--color-alert, var(--color-brand)) 30%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, transparent calc(var(--p) * 100%), var(--color-alert, var(--color-brand))); }
.hpd-redact .scan { position: absolute; left: 0; top: 0; display: block; width: 2px; height: 100%; background: var(--color-brand); box-shadow: 0 0 0 3px var(--hp-ring-soft); --p: clamp(0, calc((var(--k) - .12) / .36), 1); translate: calc(var(--p) * 190px) 0; opacity: clamp(0, min(calc(var(--p) * 12), calc((1 - var(--p)) * 12)), 1); }
.hpd-redact .ok { position: absolute; left: 16px; top: 73px; display: flex; align-items: center; gap: 7px; }
.hpd-redact .ok .hpd-k { border-radius: 4px; }

/* the library: what you saved, and what you follow */
.hpd-shelf { --p: clamp(0, calc((var(--k) - .4) / .1), 1); --q: clamp(0, calc((var(--k) - .8) / .1), 1); --on: calc(var(--p) - var(--q)); --eo: calc(1 - (1 - var(--on)) * (1 - var(--on))); }
.hpd-shelf .sg { position: absolute; left: 30px; top: 8px; display: flex; width: 160px; height: 24px; padding: 3px; border-radius: 999px; background: var(--ink2); }
.hpd-shelf .sg u { position: absolute; left: 3px; top: 3px; width: 77px; height: 18px; border-radius: 999px; background: var(--color-card); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground) 16%, transparent); translate: calc(var(--eo) * 77px) 0; }
.hpd-shelf .sg em { position: relative; display: grid; flex: 1; place-items: center; }
.hpd-shelf .pane { position: absolute; left: 14px; right: 14px; top: 40px; height: 50px; }
.hpd-shelf .pa { opacity: calc(1 - var(--on)); translate: calc(var(--on) * -6px) 0; display: flex; flex-direction: column; gap: 4px; }
.hpd-shelf .pa span { position: relative; display: flex; height: 14px; align-items: center; gap: 7px; padding: 0 7px; border-radius: 6px; background: var(--color-card); box-shadow: 0 0 0 1px var(--frost-line); }
.hpd-shelf .pa span::before { content: ''; width: 6px; height: 8px; flex: none; background: var(--color-brand); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.hpd-shelf .pa .hpd-l { height: 4px; }
.hpd-shelf .pb { opacity: var(--on); translate: calc((1 - var(--on)) * 6px) 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
.hpd-shelf .pb span { display: inline-flex; height: 18px; align-items: center; gap: 5px; padding: 0 8px 0 6px; border-radius: 999px; background: var(--color-card); box-shadow: 0 0 0 1px var(--frost-line); }
.hpd-shelf .pb .dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand); }
.hpd-shelf .pb .hpd-o { width: 12px; height: 12px; }
.hpd-shelf .pb .hpd-l { height: 4px; }

/* inviting a colleague who is not here yet */
.hpd-invite .me { position: absolute; left: 22px; top: 32px; width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--color-card), 0 0 0 3.5px var(--color-brand); }
.hpd-invite .trail { position: absolute; left: 66px; top: 46px; width: 92px; height: 4px; background: radial-gradient(circle at 2px 2px, var(--ink3) 1.4px, transparent 1.8px) 0 0 / 8px 4px repeat-x; }
.hpd-invite .plane { position: absolute; left: 60px; top: 38px; font-size: 18px; color: var(--color-brand); translate: calc(var(--e) * 92px) calc(var(--p) * (1 - var(--p)) * -56px); opacity: clamp(0, min(calc(var(--p) * 10), calc((1 - var(--p)) * 6)), 1); }
.hpd-invite .them { position: absolute; left: 164px; top: 30px; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, color-mix(in srgb, var(--warm) 34%, var(--color-card)) calc(var(--p) * 100%), transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, transparent calc(var(--p) * 100%), var(--ink3)), 0 0 0 calc(var(--p) * 2px) var(--color-card), 0 0 0 calc(var(--p) * 3.5px) var(--warm); }
.hpd-invite .them .hpd-k { position: absolute; right: -3px; bottom: -2px; box-shadow: 0 0 0 2px var(--color-card); opacity: var(--p); scale: calc(.6 + .4 * var(--e)); }

/* an editorial account beside a physician */
.hpd-editorial .hpd-c { top: 11px; height: 74px; padding: 10px; border-radius: 12px; }
.hpd-editorial .doc { left: 8px; display: flex; width: 64px; flex-direction: column; align-items: center; gap: 7px; }
.hpd-editorial .doc .hpd-o { position: relative; width: 26px; height: 26px; }
.hpd-editorial .doc .hpd-k { position: absolute; right: -4px; bottom: -3px; box-shadow: 0 0 0 2px var(--color-card); }
.hpd-editorial .doc .hpd-l { width: 38px; }
.hpd-editorial .ed { left: 80px; width: 132px; }
.hpd-editorial .ed .hd { display: flex; align-items: center; gap: 6px; }
.hpd-editorial .ed .hpd-o { display: grid; width: 20px; height: 20px; flex: none; place-items: center; background: color-mix(in srgb, var(--warm) 30%, var(--color-card)); color: color-mix(in srgb, var(--warm) 70%, var(--color-foreground)); }
.hpd-editorial .ed .hpd-p { height: 14px; padding: 0 6px; font-size: 8.5px; transform-origin: 0 50%; }
.hpd-editorial .ed > .hpd-l { margin-top: 9px; }
.hpd-editorial .ed > .hpd-l + .hpd-l { margin-top: 5px; width: 60px; }
.hpd-editorial .src { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--color-brand-ink); font-size: 9px; transform-origin: 0 50%; }
.hpd-editorial .src .ph { font-size: 10px; }

/* briefing preferences: the choices turn on and the briefing leads with them */
.hpd-prefs .gr { position: absolute; left: 12px; top: 12px; display: grid; grid-template-columns: 54px 54px; gap: 6px; }
.hpd-prefs .ch { display: flex; height: 20px; align-items: center; gap: 5px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--brand-soft) calc(var(--p, 0) * 100%), var(--color-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-brand) calc(var(--p, 0) * 45%), var(--frost-line)); }
.hpd-prefs .ch .hpd-k { width: 10px; height: 10px; }
.hpd-prefs .ch .hpd-k::after { left: 2.6px; top: 2.8px; width: 4.6px; height: 2.6px; }
.hpd-prefs .ch:not(.s) .hpd-k { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink3); }
.hpd-prefs .ch:not(.s) .hpd-k::after { opacity: 0; }
.hpd-prefs .ch .hpd-l { flex: 1; height: 4px; }
.hpd-prefs .hpd-c { left: 138px; display: flex; width: 70px; height: 20px; align-items: center; gap: 6px; padding: 0 7px; border-radius: 7px; }
.hpd-prefs .hpd-c .dot { width: 7px; height: 7px; background: var(--ink3); }
.hpd-prefs .hpd-c .hpd-l { flex: 1; height: 4px; }
.hpd-prefs .m1 { top: 12px; translate: 0 calc(var(--e) * 26px); }
.hpd-prefs .m2 { top: 38px; translate: 0 calc(var(--e) * 26px); }
.hpd-prefs .m3 { top: 64px; z-index: 1; translate: 0 calc(var(--e) * -52px); }
.hpd-prefs .m3 .dot { background: var(--color-brand); }

/* help itself: rings on the page, and a card beside the one you point at */
.hpd-beacon .pg { left: 16px; top: 9px; width: 188px; height: 78px; border-radius: 12px; overflow: hidden; }
.hpd-beacon .pg > u { position: absolute; left: 0; top: 0; bottom: 0; display: block; width: 34px; background: var(--ink2); }
.hpd-beacon .pg > .hpd-l { position: absolute; left: 46px; }
.hpd-beacon .bk { position: absolute; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 2px var(--color-card); }
.hpd-beacon .bk::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.2px solid var(--color-brand); opacity: 0; animation: hp-pulse 2.6s var(--ease-out) infinite; animation-play-state: var(--hp-play, running); }
.hpd-beacon .cur { position: absolute; left: 150px; top: 70px; width: 12px; height: 14px; fill: var(--color-foreground); stroke: var(--color-card); stroke-width: 1.4; translate: calc(var(--e) * -42px) calc(var(--e) * -34px); }
.hpd-beacon .hint { left: 118px; top: 44px; width: 74px; height: 40px; padding: 5px; border-radius: 9px; transform-origin: 0 0; box-shadow: 0 0 0 1px var(--frost-line), 0 10px 18px -8px color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.hpd-beacon .hint > u { display: block; height: 14px; margin-bottom: 5px; border-radius: 5px; background: var(--brand-soft); }
.hpd-beacon .hint .hpd-l { height: 4px; width: 46px; }

/* the second and third tints, wherever a demonstration needs more than one voice or one topic */
.hpd .dot.w2 { background: var(--warm); }
.hpd .dot.w3 { background: var(--color-success, var(--color-brand)); }
.hpd .hpd-o.t2 { background: color-mix(in srgb, var(--warm) 36%, var(--color-card)); }
.hpd .hpd-o.t3 { background: color-mix(in srgb, var(--color-success, var(--color-brand)) 30%, var(--color-card)); }

/* a touch screen: the bar's buttons take a 44px press without growing */
@media (pointer: coarse) {
.hp-btn { position: relative; }
.hp-btn::after { content: ''; position: absolute; inset: -4px 0; }
}
