/* ============================================================
   HEALTH (spec 6.7, 7.2), loaded after style.css and before fx.css.

   Last night leads (Tonight leads after sign-off): the time he was
   really asleep, big, beside the heart through the night and the
   stages under it. Then the body check, tonight's lights-out and the
   run-in, the week against 8 hours, and the quieter cards. Hairline
   grids, thin marks, numbers in the text colours, the data in colour.
   Compared only with himself; nothing is streaked.
   ============================================================ */
.hx-page, .hx-explain {
  --sleep-rgb: 139, 135, 255;
  /* Sleep stages, deepest first (validated for colour-blind separation on both surfaces). */
  --stage-deep: #4a55d4; --stage-core: #a174f2; --stage-rem: #1b9cc0; --stage-awake: #d96c55;
  --hrv: #64d2ff; --rhr: #ff6b5e; --vo2: #5ee0a8; --resp: #7fd8c4; --temp: #ffb36b; --spo2: #ff8ad1;
  --sign: #ffb36b;
  --sleep-a: #8b87ff; --sleep-b: #c4b2ff; --sleep-c: #5fb0ff; --rec: #3fd6b5; --act: #ff9f45; --ins: #ff8ad1;
}

/* ---------- the title and the one line that matters now ---------- */
.hx-title { min-width: 0; max-width: 100%; }
.hx-lede {
  margin: 14px 0 0; padding-left: 4px; max-width: 62ch; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.4;
  color: var(--soft); letter-spacing: -0.01em; text-wrap: pretty;
}

/* ---------- Last night ---------- */
.hx-night {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 26px 30px 24px; border-radius: var(--r-xl); overflow: hidden;
}
.hx-night-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.hx-k { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.hx-k .moon { color: var(--sleep); display: inline-flex; align-self: center; }
.hx-k h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.hx-when { font-size: 13.5px; color: var(--dim); }
.hx-nav { display: flex; gap: 6px; flex-shrink: 0; }
.hx-navbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-hi); background: transparent;
  color: var(--soft); font: 600 20px/1 'Geist', system-ui, sans-serif; cursor: pointer; padding: 0 0 2px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.hx-navbtn:hover:not(:disabled) { background: var(--card-hi); border-color: var(--faint); color: var(--text); }
.hx-navbtn:disabled { opacity: .3; cursor: default; }

.hx-night-grid { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 22px 44px; align-items: start; }
.hx-night-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hx-asleep { display: flex; flex-direction: column; gap: 6px; }
.hx-asleep .v { font-size: clamp(56px, 6vw, 86px); font-weight: 700; letter-spacing: -0.055em; line-height: .92; white-space: nowrap; }
.hx-asleep .v.empty { color: var(--faint); }
.hx-asleep .l { font-size: 15px; color: var(--muted); padding-left: 3px; }
.hx-asleep .stale {
  align-self: flex-start; margin-top: 4px; font-size: 12.5px; color: var(--sign); padding: 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sign) 40%, transparent); background: color-mix(in srgb, var(--sign) 9%, transparent);
}
.hx-nfacts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 11px 18px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.hx-nfacts dt { font-size: 12.5px; color: var(--dim); padding-top: 2px; white-space: nowrap; }
.hx-nfacts dd { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--soft); min-width: 0; }
.hx-nfacts dd b { color: var(--text); font-weight: 600; }
.hx-nfacts dd .sub { display: block; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.hx-src { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); }

.hx-night-chart-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* A night with nothing to draw (logged by hand, or from before the Watch's samples were kept):
   the number, the facts and the stages side by side instead of an empty chart. */
.hx-night.nochart .hx-night-grid { grid-template-columns: minmax(0, 1fr); }
.hx-night.nochart .hx-night-chart-wrap { display: none; }
.hx-night.nochart .hx-night-main { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); gap: 16px 44px; align-items: start; }
.hx-night.nochart .hx-nfacts { border-top: 0; padding-top: 8px; }
.hx-night.nochart #night-stages { padding-top: 8px; }
.hx-night-chart { min-height: 220px; }
.hx-night-chart .nightband { fill: rgba(var(--sleep-rgb), .055); }
.hx-night-chart .wakeband { fill: color-mix(in srgb, var(--stage-awake) 22%, transparent); }
.hx-night-chart .hrline { fill: none; stroke: var(--soft); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hx-night-chart .hr-a { stop-color: var(--soft); stop-opacity: .13; }
.hx-night-chart .hr-b { stop-color: var(--soft); stop-opacity: 0; }
.hx-night-chart .hrlow { fill: var(--sleep); stroke: var(--card); stroke-width: 2.5; }
.hx-night-chart .hyplink { stroke: var(--faint); stroke-width: 1; }
.hx-night-chart .onebar { fill: rgba(var(--sleep-rgb), .62); }
.hx-night-chart .lab.inbar { fill: var(--text); font-weight: 600; }
.hx-night-chart .lab.halo { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.hx-night-chart .guide { stroke: var(--muted); stroke-width: 1; pointer-events: none; }
.hx-night-chart .guidedot { fill: var(--text); stroke: var(--card); stroke-width: 2; pointer-events: none; }
.hx-night-chart .seg:hover { filter: brightness(1.18); }
.hx-hint {
  margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--border);
}
.hx-hint b { color: var(--soft); font-weight: 600; }

/* The night's line draws in once, on the first paint only (fx.css adds html.settled after it). */
@keyframes hx-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 6% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }
html:not(.settled) .hx-first-chart .hrline,
html:not(.settled) .hx-first-chart .curve { stroke-dasharray: 1; animation: hx-draw 1.6s var(--out, ease-out) .25s both; }
html:not(.settled) .hx-first-chart .hyp,
html:not(.settled) .hx-first-chart .onebar { animation: hx-fade .9s ease-out .5s both; }

/* Keys under charts */
.hx-chart-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--dim); }
.hx-chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.hx-chart-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.hx-chart-key i.k-line { width: 16px; height: 2px; border-radius: 1px; background: var(--soft); }
.hx-chart-key i.k-low { width: 9px; height: 9px; border-radius: 50%; background: var(--sleep); }
.hx-chart-key i.k-wake { width: 4px; height: 12px; border-radius: 1px; background: var(--stage-awake); }
.hx-chart-key i.k-slot { width: 16px; height: 10px; background: rgba(var(--sleep-rgb), .16); }

/* Sleep stages: one thin segmented bar and its key. */
.hx-stagebar { display: flex; gap: 2px; height: 8px; margin: 0 0 8px; max-width: 360px; }
.hx-stagebar span { display: block; height: 100%; min-width: 3px; border-radius: 1px; }
.hx-stagebar span:first-child { border-radius: 4px 1px 1px 4px; }
.hx-stagebar span:last-child { border-radius: 1px 4px 4px 1px; }
.hx-stagebar span:only-child { border-radius: 4px; }
.hx-stagekey { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.hx-stagekey span { display: inline-flex; align-items: center; gap: 6px; }
.hx-stagekey i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.hx-stagekey b { font-weight: 600; color: var(--soft); }

/* ---------- sections ---------- */
.hx-card { padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hx-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.hx-sec h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.hx-sec .aside { font-size: 13px; color: var(--dim); }
.hx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.hx-span-4 { grid-column: span 4; } .hx-span-6 { grid-column: span 6; } .hx-span-8 { grid-column: span 8; } .hx-span-12 { grid-column: 1 / -1; }
/* A wide card whose partner is hidden takes the whole row. */
.hx-grid:has(> #bank[hidden]) > #tonight, .hx-grid:has(> #habit[hidden]) > #schedule { grid-column: 1 / -1; }
.hx-grid:has(> #mood[hidden]) > #training, .hx-grid:has(> #training[hidden]) > #mood,
.hx-grid:has(> #weight[hidden]) > #fuel, .hx-grid:has(> #fuel[hidden]) > #weight { grid-column: 1 / -1; }
.hx-text { margin: 0; max-width: 72ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hx-text b { color: var(--text); font-weight: 600; }
.hx-text:empty { display: none; }
.hx-big { font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.hx-big .unit { font-size: 16px; color: var(--dim); font-weight: 500; letter-spacing: -0.01em; margin-left: 8px; }
.hx-foot { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.hx-foot b { color: var(--soft); font-weight: 600; }
.hx-foot:empty { display: none; }

/* Charts share one look: hairline grid, mono ticks, marks in colour, text in the text colours. */
.hx-chart { position: relative; width: 100%; min-width: 0; }
.hx-chart svg { display: block; width: 100%; overflow: visible; }
.hx-chart .ax { fill: var(--dim); font: 11px 'Geist Mono', ui-monospace, monospace; }
.hx-chart .ax.strong { fill: var(--text); }
.hx-chart .ax.mid { text-anchor: middle; }
.hx-chart .ax.end { text-anchor: end; }
.hx-chart .gl { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.hx-chart .lab { fill: var(--muted); font: 500 12px 'Geist', system-ui, sans-serif; }
.hx-chart .lab.strong { fill: var(--text); font-weight: 600; }
.hx-chart .lab.mid { text-anchor: middle; }
.hx-chart [data-tip] { cursor: default; }
.hx-chart .mark:focus-visible, .hx-chart .hit:focus-visible { outline: none; stroke: var(--text); stroke-width: 2; }
.hx-chart .hit { fill: transparent; }

/* ---------- Tonight and the run-in ---------- */
.hx-tonight-top { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 30px; align-items: center; }
.hx-aim { display: flex; flex-direction: column; gap: 4px; padding-right: 30px; border-right: 1px solid var(--line); }
.hx-aim .l { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hx-aim .v { font-family: 'Geist Mono', ui-monospace, monospace; font-size: clamp(42px, 4.2vw, 58px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.hx-aim .t { font-size: 12.5px; color: var(--dim); }
.hx-runin-wrap { overflow-x: auto; margin: 0 -4px; padding: 4px 4px 6px; scrollbar-width: thin; }
.hx-runin { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(98px, 1fr); gap: 8px; }
.hx-ni {
  display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 11px; border-radius: 14px; min-width: 0;
  background: var(--card-2); border: 1px solid var(--border);
}
.hx-ni .d { font-size: 12px; color: var(--dim); white-space: nowrap; }
.hx-ni .aim { font: 600 19px 'Geist Mono', ui-monospace, monospace; letter-spacing: -0.02em; color: var(--text); }
.hx-ni.ontarget .aim { color: var(--soft); }
.hx-ni .mo { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.3; color: var(--muted); min-width: 0; padding-top: 6px; border-top: 1px solid var(--line); }
.hx-ni .mo .tm { display: flex; align-items: center; gap: 6px; }
.hx-ni .mo i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.hx-ni .mo b { font: 500 11.5px 'Geist Mono', ui-monospace, monospace; color: var(--soft); }
.hx-ni .mo > span { overflow-wrap: anywhere; }
.hx-ni .mo .none { color: var(--dim); }
.hx-ni.now { border-color: rgba(var(--sleep-rgb), .55); background: rgba(var(--sleep-rgb), .08); }
.hx-ni.now .d { color: var(--sleep); font-weight: 600; }
.hx-ni.trial { border-color: color-mix(in srgb, var(--trial, var(--warn)) 50%, transparent); }
.hx-ni.trial .mo span { color: var(--text); font-weight: 600; }

/* ---------- Sleep this week ---------- */
.hx-bank-chart { height: 130px; }
.hx-bank-chart .bar { fill: var(--sleep); fill-opacity: .8; }
.hx-bank-chart .bar.est { fill-opacity: .38; }
.hx-bank-chart .need { stroke: rgba(255, 255, 255, .42); stroke-width: 1.2; stroke-dasharray: 4 4; }

/* ---------- Today's rhythm ---------- */
.hx-rhythm-chart { height: 220px; }
.hx-rhythm-chart .curve { fill: none; stroke: rgb(var(--sun)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hx-rhythm-chart .area-a { stop-color: rgb(var(--sun)); stop-opacity: .2; }
.hx-rhythm-chart .area-b { stop-color: rgb(var(--sun)); stop-opacity: 0; }
.hx-rhythm-chart .band { fill: rgba(255, 255, 255, .028); }
.hx-rhythm-chart .band.peak { fill: rgba(var(--sun), .075); }
.hx-rhythm-chart .band.second { fill: rgba(var(--sun), .05); }
.hx-rhythm-chart .band.dip, .hx-rhythm-chart .band.groggy { fill: rgba(255, 255, 255, .025); }
.hx-rhythm-chart .band.wind { fill: rgba(var(--sleep-rgb), .1); }
.hx-rhythm-chart .now-line { stroke: rgb(var(--sun)); stroke-width: 1.5; }
.hx-rhythm-chart .now-dot { fill: rgb(var(--sun)); stroke: var(--card); stroke-width: 2; }
.hx-rhythm-chart .bed-mark { stroke: var(--sleep); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hx-rhythm-chart .lesson { stroke: none; }
.hx-rhythm-chart .games { fill: url(#hx-hatch); stroke: color-mix(in srgb, var(--train) 55%, transparent); stroke-width: 1; }
.hx-rhythm-chart .hatch-line { stroke: color-mix(in srgb, var(--train) 70%, transparent); stroke-width: 2; }
.hx-rhythm-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
.hx-note { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid var(--border); min-width: 0; }
.hx-note.peak { border-left-color: rgba(var(--sun), .75); }
.hx-note.second { border-left-color: rgba(var(--sun), .45); }
.hx-note .t { font-size: 13px; color: var(--dim); }
.hx-note .t b { font: 600 13px 'Geist Mono', ui-monospace, monospace; color: var(--text); margin-left: 6px; }
.hx-note p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }

/* ---------- The last 14 nights, one row each ---------- */
.hx-acto { min-height: 200px; }
.hx-acto .slotband { fill: rgba(var(--sleep-rgb), .07); }
.hx-acto .target { stroke: rgba(var(--sleep-rgb), .75); stroke-width: 1.2; stroke-dasharray: 4 4; }
.hx-acto .bar { fill: var(--sleep); fill-opacity: .7; }
.hx-acto .bar.last { fill-opacity: 1; }
.hx-acto .bar.inbed { fill-opacity: .38; }
.hx-acto .wk { fill: var(--stage-awake); }
.hx-acto .none { fill: var(--border-hi); }
.hx-acto .ax.val { text-anchor: end; fill: var(--soft); }
.hx-acto .ax.val.est { fill: var(--dim); }
.hx-acto .row:hover .hit { fill: rgba(255, 255, 255, .035); }
.hx-acto .row:hover .bar { fill-opacity: 1; }

/* When nights start */
.hx-habit-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hx-habit-big .v { font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.hx-habit-big .l { font-size: 13.5px; color: var(--muted); }
.hx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.hx-stats .s { display: flex; flex-direction: column; gap: 4px; }
.hx-stats .v { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.hx-stats .l { font-size: 12.5px; color: var(--dim); }

/* ---------- Training ---------- */
.hx-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hx-week .d { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: var(--dim); min-width: 0; }
.hx-week .blk {
  width: 100%; height: 58px; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; line-height: 1.15; color: var(--muted); text-align: center; overflow: hidden;
}
.hx-week .blk .m { font: 500 10.5px 'Geist Mono', ui-monospace, monospace; opacity: .85; }
.hx-week .blk.games { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--train) 20%, transparent) 0 4px, transparent 4px 9px); border-color: color-mix(in srgb, var(--train) 38%, transparent); color: var(--soft); }
.hx-week .blk.logged { background: color-mix(in srgb, var(--train) 26%, var(--card-2)); border-color: color-mix(in srgb, var(--train) 40%, transparent); color: var(--text); font-weight: 600; }
.hx-week .blk.rest { color: var(--dim); }
.hx-week .d.today { color: var(--text); font-weight: 600; }
.hx-week .d.today .blk { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in srgb, var(--text) 40%, transparent); }
.hx-days30 { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.hx-days30 span { aspect-ratio: 1; border-radius: 3px; background: var(--border); }
.hx-days30 span.active { background: color-mix(in srgb, var(--train) 55%, var(--card-2)); }
.hx-days30 span.rest { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.hx-days30 span.today { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px color-mix(in srgb, var(--text) 45%, transparent); }
.hx-days30-key { display: flex; justify-content: space-between; font: 11px 'Geist Mono', ui-monospace, monospace; color: var(--dim); margin-top: -8px; }
.hx-workouts { display: flex; flex-direction: column; gap: 6px; }
.hx-workouts:empty { display: none; }
.hx-workouts .w { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
.hx-workouts .dname { font: 12px 'Geist Mono', ui-monospace, monospace; color: var(--dim); }
.hx-workouts .wname { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-workouts .wv { font: 12px 'Geist Mono', ui-monospace, monospace; color: var(--muted); white-space: nowrap; }

/* How you've felt */
.hx-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.hx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hx-legend i { width: 14px; height: 2px; border-radius: 1px; display: inline-block; }
.hx-mood-chart { height: 150px; }
.hx-mood-chart .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-mood-chart .pt { stroke: var(--card); stroke-width: 2; }

/* Fuel and weight */
.hx-fuel-chart { height: 150px; }
.hx-fuel-chart .bar { fill: var(--fuel); }
.hx-fuel-chart .tband { fill: color-mix(in srgb, var(--fuel) 12%, transparent); }
.hx-weight-chart { height: 120px; }
.hx-weight-chart .ln { fill: none; stroke: var(--body); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-weight-chart .pt { fill: var(--body); stroke: var(--card); stroke-width: 2; }

/* What works for you: two of his own averages side by side on hairlines; the rest still filling up. */
.hx-patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 36px; }
.hx-patterns[hidden] { display: none; }
.hx-pattern { display: flex; flex-direction: column; gap: 7px; padding: 14px 0 12px; border-top: 1px solid var(--line); }
.hx-pattern .q { font-size: 13.5px; font-weight: 600; color: var(--soft); }
.hx-pattern .side { display: grid; grid-template-columns: 74px minmax(40px, 1fr); gap: 2px 12px; align-items: center; }
.hx-pattern .side .v { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-pattern .side.win .v { color: var(--text); }
.hx-pattern .side .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hx-pattern .side .bar i { display: block; height: 100%; border-radius: 2px; background: var(--faint); }
.hx-pattern .side.win .bar i { background: var(--soft); }
.hx-pattern .side .l { grid-column: 2; font-size: 12px; color: var(--dim); }
.hx-locked { display: flex; flex-direction: column; gap: 4px; }
.hx-locked:empty { display: none; }
.hx-lock-head { margin: 4px 0 2px; font-size: 12.5px; color: var(--dim); }
.hx-lock { display: flex; gap: 2px 10px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.hx-lock b { color: var(--muted); font-weight: 600; }

/* ---------- Today: three moves in a row, the week in one line ---------- */
.hx-today { gap: 14px; }
.hx-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hx-move { min-width: 0; display: flex; }
.hx-move + .hx-move { border-left: 1px solid var(--line); }
.hx-move .mv {
  all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px;
  padding: 16px 20px 14px; cursor: pointer; transition: background-color .18s;
}
.hx-move:first-child .mv { padding-left: 4px; }
.hx-move .mv:hover { background: color-mix(in srgb, var(--card-hi) 70%, transparent); }
.hx-move .mv:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
.mv-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hx-move .mk {
  position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--d, var(--muted));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--d, var(--border-hi)) 50%, transparent);
}
.hx-move .mk .gl, .hx-move .mk .ic { display: inline-flex; }
.hx-move.st-done .mk { background: var(--d, var(--ok)); color: #0b0b0c; box-shadow: none; }
.hx-move.st-doing .mk { box-shadow: none; color: var(--soft); }
.hx-move.st-doing .mk::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--d, var(--ok)) var(--p, 0%), var(--border-hi) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.hx-move.st-unseen .mk { box-shadow: none; outline: 1.5px dashed var(--faint); outline-offset: -1.5px; color: var(--dim); }
.hx-move.st-missed .mk { color: var(--dim); box-shadow: inset 0 0 0 1.5px var(--faint); }
.mv-name { font-size: 14px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-state { margin-left: auto; font-size: 12px; color: var(--dim); white-space: nowrap; }
.st-done .mv-state { color: var(--d, var(--ok)); }
.mv-val { margin-top: 6px; font-size: 30px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-val small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.st-missed .mv-val { color: var(--muted); }
.mv-when { font-size: 13px; color: var(--muted); }
.mv-bar { height: 3px; margin: 3px 0 1px; border-radius: 2px; background: var(--line); overflow: hidden; }
.mv-bar i { display: block; height: 100%; border-radius: 2px; background: var(--soft); }
.mv-bar i { background: var(--d, var(--soft)); }
.mv-why { font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.hx-weekline { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--dim); }
.hx-weekline[hidden] { display: none; }
.hx-weekline .lbl { color: var(--muted); }
.hx-weekline b { color: var(--soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-weekline .it.met b { color: var(--ok); }
.hx-weekline .dim { color: var(--faint); }

/* ---------- Last night: the score ring (its three parts), the night, the body ---------- */
.hx-hero {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 22px; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sleep-a) 8%, var(--card)) 0%, var(--card) 62%);
}
.hx-hero-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hx-hero-head h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.hx-hero-head .hx-nav { margin-left: auto; align-self: center; }
.hx-hero-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px 44px; align-items: start; }
.hx-score-col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hx-ring { all: unset; position: relative; width: 176px; height: 176px; flex-shrink: 0; cursor: pointer; border-radius: 50%; }
.hx-ring:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hx-ring svg { display: block; }
.hx-ring .seg-trk { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 12; stroke-linecap: round; }
.hx-ring .seg-fill { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray 1.1s var(--ease); }
.hx-ring .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hx-ring .n { font-size: 56px; font-weight: 650; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.hx-ring .l { margin-top: 4px; font-size: 12.5px; color: var(--dim); }
.hx-ring .g { margin-top: 6px; font-size: 15px; font-weight: 650; color: var(--sleep-b); }
.hx-ring-key { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.hx-ring-key li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 11px; align-items: baseline; }
.hx-ring-key i { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.hx-ring-key .t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hx-ring-key .t b { font-size: 13.5px; font-weight: 600; color: var(--soft); }
.hx-ring-key .t .d { font-size: 12px; color: var(--dim); }
.hx-ring-key .v { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hx-ring-key .v b { font-size: 15px; font-weight: 650; color: var(--text); }
.hx-ring-key li.best { display: block; padding-top: 2px; font-size: 12.5px; color: var(--sleep-b); }
.hx-night-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hx-night-sum { display: flex; align-items: baseline; gap: 4px 20px; flex-wrap: wrap; }
.hx-hero .hx-asleep { flex-direction: row; align-items: baseline; gap: 10px; }
.hx-hero .hx-asleep .v { font-size: clamp(44px, 4.4vw, 64px); }
.hx-hero .hx-asleep .l { padding-left: 0; }
.hx-night-line { margin: 0; font-size: 14px; color: var(--muted); }
.hx-night-line b { color: var(--soft); font-weight: 600; }
.hx-hero .hx-night-chart { min-height: 200px; }
.hx-hero.nochart .hx-night-chart, .hx-hero.nochart #night-key { display: none; }
.hx-night-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.hx-vmini { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.hx-vmini:empty { display: none; }
.hx-vmini .st { display: inline-flex; align-items: baseline; gap: 3px; font-size: 12.5px; color: var(--dim); }
.hx-vmini .st b { font-size: 16px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.hx-vmini .st small { font-size: 11.5px; color: var(--dim); }
.hx-vmini .st .lbl { margin-left: 4px; }
.hx-body { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.hx-body[hidden] { display: none; }
.hx-body .ic { display: inline-flex; margin-top: 2px; color: var(--rec); }
.hx-body.one { color: var(--soft); }
.hx-body.two { color: var(--sign); }

/* ---------- Sections by domain: a coloured dot, a title, one line on the right ---------- */
.hx-section { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.hx-section[hidden] { display: none; }
.hx-d-sleep { --d: var(--sleep-a); } .hx-d-recovery { --d: var(--rec); } .hx-d-activity { --d: var(--act); } .hx-d-insight { --d: var(--ins); }
.hx-shead { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 0 4px; }
.hx-shead h2 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.025em; }
.hx-shead .aside { margin-left: auto; font-size: 13.5px; color: var(--dim); }
.hx-glyph { width: 10px; height: 10px; flex-shrink: 0; align-self: center; border-radius: 50%; background: var(--d); box-shadow: 0 0 0 4px color-mix(in srgb, var(--d) 16%, transparent); }
.hx-span-7 { grid-column: span 7; } .hx-span-5 { grid-column: span 5; }

/* ---------- Tiles: a name, the number, its last 30 days, one line ---------- */
.hx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.hx-tiles[hidden] { display: none; }
.hx-tile {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; min-width: 0; cursor: pointer;
  padding: 16px 16px 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border);
  transition: border-color .2s, background-color .2s;
}
.hx-tile:hover { border-color: color-mix(in srgb, var(--d) 40%, var(--border)); background: var(--card-hi); }
.hx-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hx-tile .tt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.hx-tile .nm { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-tile .stt { flex-shrink: 0; font-size: 12px; color: var(--dim); }
.hx-tile .stt.good { color: var(--d); }
.hx-tile .stt.warn { color: var(--sign); }
.hx-tile .stt.dim { color: var(--faint); }
.hx-tile .tv { font-size: 30px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-tile .tv small { margin-left: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.hx-tile .tc { display: block; height: 40px; margin: 2px 0; }
.hx-tile .ts { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-tile .tline { fill: none; stroke: var(--d); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.hx-tile .tarea { fill: color-mix(in srgb, var(--d) 11%, transparent); }
.hx-tile .tdot { fill: var(--text); stroke: var(--d); stroke-width: 2; }
.hx-tile .tband { fill: color-mix(in srgb, var(--d) 10%, transparent); }
.hx-tile .tgoal { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 4; }
.hx-tile .tbase { stroke: var(--line); stroke-width: 1; }
.hx-tile .tprog-trk { fill: rgba(255, 255, 255, .07); }
.hx-tile .tprog { fill: var(--d); opacity: .85; }
.hx-tile .tprog.full { opacity: 1; }
/* The section is already called What works for you. */
#patterns > .hx-sec { display: none; }
/* A section's colour reaches its own charts: training in activity orange, the better side in What works. */
.hx-d-activity { --train: var(--act); }
.hx-d-insight .hx-pattern .side.win .bar i { background: var(--d); }

/* ---------- Rarely needed, folded away ---------- */
.hx-more-fold { margin-top: 14px; }
.hx-more-fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap;
  padding: 16px 6px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px;
}
.hx-more-fold > summary::-webkit-details-marker { display: none; }
.hx-more-fold > summary > span:first-child { font-size: 17px; font-weight: 600; color: var(--soft); }
.hx-more-fold > summary::after {
  content: ""; margin-left: auto; align-self: center; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.hx-more-fold[open] > summary::after { transform: rotate(-135deg); }
.hx-more-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Cards inside a section: the section names the domain, so their own titles step down. */
.hx-section .hx-card .hx-sec h2, .hx-more-fold .hx-card .hx-sec h2 { font-size: 17px; }
.hx-grid:has(> #mood[hidden]) > #patterns, .hx-grid:has(> #patterns[hidden]) > #mood { grid-column: 1 / -1; }

/* ---------- How to move it (a side sheet) ---------- */
.hx-explain {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); height: 100%; max-height: 100%; padding: 0;
  border: 0; border-left: 1px solid var(--border-hi); background: var(--card); color: var(--text);
  box-shadow: -24px 0 60px -24px rgba(0, 0, 0, .7); display: none; flex-direction: column; overscroll-behavior: contain;
}
.hx-explain[open] { display: flex; animation: hx-sheet .3s var(--ease); }
.hx-explain::backdrop { background: rgba(0, 0, 0, .45); }
@keyframes hx-sheet { from { transform: translateX(28px); opacity: 0; } }
.hx-ex-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.hx-ex-kicker { font-size: 12.5px; color: var(--dim); }
.hx-ex-head h2 { margin: 3px 0 0; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.hx-ex-close { font-size: 22px; flex-shrink: 0; }
.hx-ex-body { overflow-y: auto; padding: 18px 26px 30px; display: flex; flex-direction: column; gap: 22px; }
.hx-ex-you { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hx-ex-you .v { font-size: 38px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hx-ex-you .v small { margin-left: 5px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.hx-ex-you .m { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.hx-ex-you .m .dl.good { color: color-mix(in srgb, var(--ok) 80%, var(--soft)); }
.hx-ex-you .m .dl.bad { color: color-mix(in srgb, var(--bad) 75%, var(--soft)); }
.hx-ex-you .spark.big { grid-column: 1 / -1; display: block; height: 72px; }
.hx-ex-sec h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.hx-ex-sec p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.hx-ex-sec p.lead { color: var(--text); }
.hx-ex-sec p.like { color: var(--muted); }
.hx-ex-sec ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.hx-levers { list-style: none; counter-reset: lv; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hx-levers li { counter-increment: lv; position: relative; padding-left: 24px; }
.hx-levers li::before { content: counter(lv); position: absolute; left: 0; top: 0; font-size: 13.5px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.hx-levers .t { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.hx-levers .t b { font-size: 14.5px; font-weight: 600; color: var(--text); }
.hx-levers .when { font-size: 12px; color: var(--dim); }
.hx-levers p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.hx-ex-sec .note { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.hx-ex-src { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--dim); }

/* What the Watch sends */
.hx-feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 22px; }
.hx-feed { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.hx-feed .mk {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--faint);
}
.hx-feed.on .mk { box-shadow: none; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.hx-feed .mk .ic { display: inline-flex; }
.hx-feed .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--dim); }
.hx-feed .t b { font-size: 13.5px; font-weight: 600; color: var(--soft); }
.hx-feed:not(.on) .t b { color: var(--muted); }
.hx-feed .t .how { color: var(--accent-hover); }

/* Check-in: only what the Watch can't measure; sleep by hand behind a link. */
.hx-checkin .ci-hand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hx-checkin .ci-hand[hidden] { display: none !important; }
.hx-checkin .ci-hand .linkbtn { font-size: 13px; }
.hx-checkin .ci-group { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.hx-checkin .ci-group[hidden] { display: none !important; }
.hx-checkin .ci-group .slept { padding-bottom: 10px; font-size: 14px; color: var(--muted); }
.hx-checkin .ci-group .slept b { font-family: 'Geist Mono', ui-monospace, monospace; color: var(--text); font-weight: 600; }
.hx-checkin .sec-head h2 { font-size: 20px; }

/* ---------- one tooltip for every chart ---------- */
.hx-tip {
  position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none; max-width: 270px;
  padding: 9px 12px 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); white-space: pre-line;
  background: var(--glass-hi, rgba(28, 28, 31, .92)); border: 1px solid var(--edge-hi, rgba(255, 255, 255, .14));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .75); transform: translate(-50%, calc(-100% - 10px));
}
.hx-tip.below { transform: translate(-50%, 10px); }
.hx-tip b { display: block; margin-bottom: 1px; font-size: 14px; font-weight: 650; color: var(--text); }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .hx-hero-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 20px 32px; }
  .hx-night-grid { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 20px 28px; }
  .hx-grid > * { grid-column: 1 / -1; }
  .hx-rhythm-notes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-score-col { flex-direction: row; align-items: center; gap: 28px; }
  .hx-ring-key { max-width: 380px; }
  .hx-night-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-night-main { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 14px 24px; align-items: start; }
  .hx-night-main .hx-nfacts { border-top: 0; padding-top: 4px; }
  .hx-night-main #night-stages { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* Today: one move per row, the number on the right. */
  .hx-moves { grid-template-columns: minmax(0, 1fr); }
  .hx-move + .hx-move { border-left: 0; border-top: 1px solid var(--line); }
  .hx-move .mv, .hx-move:first-child .mv {
    display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 12px 2px;
    grid-template-areas: "mk name val" "mk when val" ". why why" ". bar bar";
  }
  .mv-top { display: contents; }
  .mv-top .mk { grid-area: mk; align-self: start; }
  .mv-name { grid-area: name; }
  .mv-state { display: none; }
  .mv-val { grid-area: val; align-self: center; margin: 0; font-size: 22px; text-align: right; }
  .mv-when { grid-area: when; }
  .mv-why { grid-area: why; margin-top: 2px; }
  .mv-bar { grid-area: bar; }
  /* The hero: the ring above its parts, smaller; tiles two to a row. */
  .hx-hero { padding: 18px 18px 20px; }
  .hx-score-col { flex-direction: column; gap: 16px; }
  .hx-ring, .hx-ring svg { width: 150px; height: 150px; }
  .hx-ring .n { font-size: 46px; }
  .hx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hx-tile { padding: 14px 14px 12px; }
  .hx-tile .tv { font-size: 24px; }
  .hx-shead h2 { font-size: 21px; }
  .hx-shead .aside { margin-left: 0; flex-basis: 100%; }
  .hx-explain { width: 100vw; border-left: 0; }
  .hx-ex-head { padding: 18px 18px 14px; }
  .hx-ex-body { padding: 16px 18px 28px; }
  .hx-night { padding: 18px 18px 20px; gap: 14px; }
  .hx-night-main, .hx-night.nochart .hx-night-main { display: flex; }
  .hx-night-main .hx-nfacts, .hx-night.nochart .hx-nfacts { border-top: 1px solid var(--line); padding-top: 14px; }
  .hx-asleep .v { font-size: 64px; }
  .hx-card { padding: 20px 18px; }
  .hx-tonight-top { grid-template-columns: minmax(0, 1fr); }
  .hx-aim { border-right: 0; padding-right: 0; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .hx-runin { grid-auto-columns: minmax(88px, 1fr); }
  .hx-days30 { grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
  .hx-days30-key { display: none; }
  .hx-rhythm-chart { height: 200px; }
  .hx-workouts .w { grid-template-columns: 70px minmax(0, 1fr); }
  .hx-workouts .wv { grid-column: 2; white-space: normal; min-width: 0; }
}
@media (max-width: 380px) {
  .hx-week { gap: 4px; }
  .hx-week .blk { height: 52px; border-radius: 10px; font-size: 10px; }
  .hx-week .blk .m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-first-chart .hrline, .hx-first-chart .curve, .hx-first-chart .hyp, .hx-first-chart .onebar { animation: none !important; stroke-dasharray: none !important; }
  .hx-ring .seg-fill { transition: none; }
  .hx-explain[open] { animation: none; }
}
