/* WayUP Sports AI visibility dashboard (2026-10-28).
   The frame and motion of the HYVE FORGE client view (~/hyve-forge/client-view, the Mizaan version C approach): side
   menu, an animated mark, a slim moving band per page with the finding as its headline, four key numbers, then panels
   that each hold one finding and one chart. Dressed in WayUP's own brand, the same values as the WayUP stock dashboard
   (red #da2036, orange #f97316, ink black, Poppins), with slanted sport-retail shapes in place of HYVE's hexagons.
   Chart colours (red, teal, indigo) passed the dataviz validator in both themes; orange is the highlight only. */

:root {
  --red: #da2036;
  --red-deep: #b01329;
  --orange: #f97316;
  --orange-light: #ffb36b;
  --chrome: #16171c;
  --chrome-2: #1f2128;
  --chrome-3: #2a2d36;

  --bg: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --line: #e4e7ec;
  --line-strong: #cfd4dc;
  --ink: #16171c;
  --ink-2: #555c69;
  --ink-3: #6a7180;
  --accent: #da2036;
  --accent-faint: #fdf0f2;
  --accent-soft: #fbdade;
  --track: #eceff3;
  --rest: #b8bec8;

  --rail: #16171c;
  --rail-ink: #f3f4f6;
  --rail-muted: #b7bcc6;
  --rail-faint: #8a909c;
  --rail-hover: rgba(255, 255, 255, .07);
  --rail-line: rgba(255, 255, 255, .11);

  /* categorical, in fixed order (validated on #ffffff): slot 1 red, 2 teal, 3 indigo */
  --c-1: #da2036;
  --c-2: #0d9488;
  --c-3: #4f46e5;

  --radius: 16px;
  --radius-s: 11px;
  --font: "Poppins", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Poppins", "Segoe UI", sans-serif;
  --slant: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101115;
  --surface: #1c1d23;
  --surface-2: #22242b;
  --line: #2c2f38;
  --line-strong: #3a3e49;
  --ink: #f2f3f5;
  --ink-2: #b4b9c3;
  --ink-3: #8d93a0;
  --accent: #e8384f;
  --accent-faint: #2a1a1f;
  --accent-soft: #4a2029;
  --track: #2a2d35;
  --rest: #4a4d58;
  --rail: #0b0c0f;
  /* validated on #1c1d23 */
  --c-1: #e8384f;
  --c-2: #0fa898;
  --c-3: #6d74f0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh;
}
button { font: inherit; color: inherit; }
a { color: var(--accent); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.hf-skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.hf-skip:focus { left: 8px; }
.num, .hf-key__value, .hf-table td { font-variant-numeric: tabular-nums; }
[dir="auto"], .is-ar { font-family: var(--arabic); }

/* ---------- the rail ---------- */
.hf-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--rail); color: var(--rail-ink);
  padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--rail-line) transparent;
}
.hf-side > * { flex-shrink: 0; }
.hf-side :focus-visible { outline-color: var(--orange); }
.hf-emblem {
  position: relative; height: 132px; margin: 0 -4px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--chrome-3) 0%, var(--chrome) 100%);
}
.hf-emblem__mark {
  position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(249, 115, 22, .0); z-index: 2;
}
.hf-emblem__mark span { font-weight: 800; font-style: italic; font-size: 30px; color: #ffffff; letter-spacing: -.02em; transform: translateX(-1px); }
.hf-emblem__item, .hf-emblem__twinkle, .hf-emblem__flash { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hf-emblem__item span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 30px; height: 26px; display: grid; place-items: center;
  clip-path: var(--slant); background: #ffffff; color: var(--red);
}
.hf-emblem__item .ic { width: 16px; height: 16px; stroke-width: 1.9; }
.hf-emblem__twinkle span { position: absolute; transform: translate(-50%, -50%); color: var(--orange-light); display: grid; }
.hf-emblem__twinkle .ic { width: 11px; height: 11px; }
.hf-emblem__flash span { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--orange); }

.hf-wordmark { margin: -2px 2px 0; font-weight: 800; font-style: italic; font-size: 21px; letter-spacing: -.01em; line-height: 1; }
.hf-wordmark span { color: var(--red); }
.hf-client { padding: 10px 12px; border-radius: var(--radius-s); background: var(--rail-hover); }
.hf-client__name { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.2; }
.hf-client__line { margin: 2px 0 0; font-size: 12.5px; color: var(--rail-muted); line-height: 1.35; }
.hf-side__nav { display: flex; flex-direction: column; gap: 3px; }
.hf-nav {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--rail-muted);
  text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background-color .15s, color .15s;
}
.hf-nav:hover { background: var(--rail-hover); color: var(--rail-ink); }
.hf-nav[aria-current="page"] { background: var(--red); color: #ffffff; }
.hf-nav .ic { width: 19px; height: 19px; }
.hf-side__foot { margin-top: auto; border-top: 1px solid var(--rail-line); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.hf-side__asof { margin: 0 0 6px; padding: 0 10px; font-size: 12.5px; color: var(--rail-faint); line-height: 1.35; }
.hf-side__action {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; background: none; border-radius: 10px;
  color: var(--rail-muted); cursor: pointer; font-size: 14px; text-align: left;
}
.hf-side__action:hover { background: var(--rail-hover); color: var(--rail-ink); }
.hf-side__action .ic { width: 18px; height: 18px; }

/* ---------- page ---------- */
.hf-main { padding: 22px 28px 36px; min-width: 0; outline: none; }
.hf-page { max-width: 1220px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

/* ---------- the band ---------- */
.hf-band {
  position: relative; min-height: 196px; border-radius: var(--radius); overflow: hidden; color: #ffffff; isolation: isolate;
  background: linear-gradient(90deg, #0f1013 0%, var(--chrome-2) 58%, #3a141b 100%);
}
.hf-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hf-band__text { position: relative; z-index: 1; padding: 24px 28px; max-width: var(--text-w, 46%); display: flex; flex-direction: column; min-height: 196px; pointer-events: none; }
.hf-band__text > * { pointer-events: auto; }
.hf-band__key {
  position: absolute; z-index: 1; top: 8px; left: var(--key-x, 50%); margin: 0; padding-left: 10px; max-width: calc(100% - var(--key-x, 50%) - 16px);
  font-size: 12px; line-height: 1.3; color: var(--rail-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hf-band__eyebrow { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--rail-muted); }
.hf-band__head { margin: 4px 0 0; font-size: 27px; line-height: 1.16; font-weight: 800; letter-spacing: -.01em; }
.hf-band__tiles { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.hf-band.is-narrow { min-height: 318px; }
.hf-band.is-narrow .hf-band__text { max-width: 100%; padding: 18px 18px 132px; min-height: 306px; }
.hf-band.is-narrow .hf-band__head { font-size: 22px; }
.hf-band.is-narrow .hf-band__key { top: auto; bottom: 110px; left: 18px; padding-left: 0; max-width: calc(100% - 36px); white-space: normal; }
.hf-tile {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .97); color: var(--chrome);
  border-radius: 12px; padding: 7px 13px 7px 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(14px);
}
.hf-tile__icon { width: 32px; height: 28px; display: grid; place-items: center; background: var(--red); color: #ffffff; clip-path: var(--slant); }
.hf-tile__icon .ic { width: 15px; height: 15px; stroke-width: 2; }
.hf-tile__label { display: block; font-size: 12px; color: #555c69; line-height: 1.1; }
.hf-tile__value { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.is-in .hf-tile { opacity: 1; transform: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .25, 1.15); }
.is-in .hf-tile:nth-child(2) { transition-delay: .15s; }

/* ---------- key numbers ---------- */
.hf-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hf-key {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 4px 10px; min-height: 142px;
}
.hf-key.is-lead { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.hf-key__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-right: 30px; }
.hf-key__label { font-size: 14px; font-weight: 600; line-height: 1.2; }
.hf-key__value { align-self: end; font-size: 33px; font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.hf-key__sub { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.hf-key__ring { align-self: end; }
.hf-ico { width: 34px; height: 30px; display: grid; place-items: center; flex: none; clip-path: var(--slant); background: var(--accent-soft); color: var(--accent); }
.hf-ico .ic { width: 16px; height: 16px; stroke-width: 1.9; }
.hf-ico.is-lead { background: var(--red); color: #ffffff; }
.hf-ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.hf-ring circle { fill: none; stroke-width: 6; }
.hf-ring .hf-ring__track { stroke: var(--track); }
.hf-ring .hf-ring__bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.3, .7, .2, 1); }
.hf-ring.is-orange .hf-ring__bar { stroke: var(--orange); }

.hf-i {
  position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--accent-faint); color: var(--ink-2); cursor: pointer;
}
.hf-i:hover, .hf-i[aria-expanded="true"] { background: var(--accent-soft); color: var(--ink); }
.hf-i .ic { width: 16px; height: 16px; }
.hf-pop {
  position: absolute; z-index: 20; top: 46px; right: 12px; width: min(330px, calc(100% - 24px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; font-size: 13px; line-height: 1.5; box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.hf-pop p { margin: 0; }
.hf-pop p + p { margin-top: 6px; }

/* ---------- groups and panels ---------- */
.hf-group { display: flex; flex-direction: column; gap: 10px; }
.hf-group__label { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.hf-row { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hf-panel {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.hf-span-4 { grid-column: span 4; } .hf-span-5 { grid-column: span 5; } .hf-span-6 { grid-column: span 6; }
.hf-span-7 { grid-column: span 7; } .hf-span-8 { grid-column: span 8; } .hf-span-12 { grid-column: span 12; }
.hf-panel__head { display: flex; gap: 12px; padding-right: 34px; }
.hf-panel__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.hf-panel__finding { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.hf-panel__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.hf-panel__body { flex: 1; min-width: 0; container-type: inline-size; }
@container (max-width: 400px) {
  .hf-panel__body .hf-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hf-panel__body .hf-donut .hf-legend { width: 100%; }
}
.hf-panel__finding, .hf-band__head { transition: opacity .5s ease .9s, transform .5s ease .9s; }
.is-staged .hf-panel__finding { opacity: 0; transform: translateY(4px); }
.is-in .hf-panel__finding { opacity: 1; transform: none; }

.hf-seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 3px; background: var(--accent-faint); border-radius: 12px; gap: 2px; }
.hf-seg button {
  border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.hf-seg button:hover { color: var(--ink); }
.hf-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

.hf-next {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.hf-next:hover { border-color: var(--red); }
.hf-next b { display: block; font-size: 16px; }
.hf-next span { color: var(--ink-2); font-size: 14px; }
.hf-next__go { flex: none; width: 46px; height: 38px; display: grid; place-items: center; background: var(--red); color: #ffffff; clip-path: var(--slant); transition: transform .2s; }
.hf-next:hover .hf-next__go { transform: translateX(3px); }
.hf-next .hf-next__go { color: #ffffff; }
.hf-pages:focus { outline: none; }
.hf-sources { margin: 0; font-size: 12.5px; color: var(--ink-3); padding: 0 4px; }

/* ---------- donut ---------- */
.hf-donut { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; }
.hf-donut__svg { position: relative; width: 170px; height: 170px; }
.hf-donut__svg svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.hf-donut__svg circle { fill: none; stroke-width: 22; transition: stroke-dasharray 1.1s cubic-bezier(.3, .7, .2, 1), opacity .2s, stroke-width .2s; }
.hf-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hf-donut__center b { font-size: 26px; font-weight: 800; line-height: 1; }
.hf-donut__center span { font-size: 12px; color: var(--ink-2); max-width: 100px; line-height: 1.25; margin-top: 4px; }
.hf-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hf-legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 10px; cursor: default; }
.hf-legend li:hover, .hf-legend li:focus-visible, .hf-legend li.is-on { background: var(--accent-faint); }
.hf-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.hf-legend__name { font-size: 14px; line-height: 1.25; }
.hf-legend__name small { display: block; color: var(--ink-2); font-size: 12px; }
.hf-legend__val { font-weight: 800; font-size: 14px; }
.hf-donut.is-focus circle[data-slice]:not(.is-on) { opacity: .25; }
.hf-donut.is-focus circle.is-on { stroke-width: 27; }

/* ---------- bars ---------- */
.hf-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hf-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; border-radius: 10px; padding: 3px 5px; margin: -3px -5px; }
.hf-bar:hover, .hf-bar:focus-visible { background: var(--accent-faint); }
.hf-bar__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; min-width: 0; }
.hf-bar__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.hf-bar__val { font-weight: 800; white-space: nowrap; }
.hf-bar__track { grid-column: 1; margin-top: 5px; height: 10px; border-radius: 6px; background: var(--track); overflow: hidden; }
.hf-bar__fill { height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 1s cubic-bezier(.3, .7, .2, 1); }
.hf-bar__side { grid-row: 1 / span 2; grid-column: 2; font-size: 13px; color: var(--ink-2); min-width: 64px; text-align: right; line-height: 1.25; }

/* stacked rows */
.hf-stacks { display: flex; flex-direction: column; gap: 16px; }
.hf-stack__head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.hf-stack__head b { font-weight: 700; }
.hf-stack__head span { color: var(--ink-2); }
.hf-stack__bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--surface); }
.hf-stack__seg { width: 0; min-width: 0; transition: width 1s cubic-bezier(.3, .7, .2, 1); display: flex; align-items: center; padding-left: 8px; color: #ffffff; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.hf-stack__seg:hover { filter: brightness(1.1); outline: 2px solid var(--ink); outline-offset: -2px; }
.hf-key-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.hf-key-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- tables ---------- */
.hf-tablewrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.hf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hf-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 8px 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hf-table th.is-num, .hf-table td.is-num { text-align: right; }
.hf-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hf-table tr:last-child td { border-bottom: 0; }
.hf-table tbody tr { transition: background-color .15s; }
.hf-table tbody tr:hover { background: var(--accent-faint); }
.hf-table tbody tr.is-arrive { opacity: 0; transform: translateY(6px); }
.is-in .hf-table tbody tr.is-arrive { opacity: 1; transform: none; transition: opacity .4s ease var(--d, 0s), transform .5s cubic-bezier(.3, .7, .2, 1) var(--d, 0s); }
.hf-name b { font-weight: 600; display: block; line-height: 1.35; }
.hf-name small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.hf-path { font-size: 13px; word-break: break-all; }
.hf-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-faint); color: var(--ink); white-space: nowrap; }
.hf-chip.is-ours { background: color-mix(in srgb, var(--c-2) 18%, var(--surface)); }
.hf-chip.is-type { display: inline-flex; align-items: center; gap: 6px; }
.hf-chip.is-type::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--chip, var(--rest)); }
.hf-tools { display: inline-flex; gap: 4px; }
.hf-cellbar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.hf-cellbar__track { flex: 1; height: 8px; border-radius: 5px; background: var(--track); overflow: hidden; }
.hf-cellbar__fill { height: 100%; width: 0; background: var(--accent); border-radius: 5px; transition: width .9s cubic-bezier(.3, .7, .2, 1); }
.hf-cellbar span { font-weight: 700; min-width: 46px; text-align: right; font-size: 13px; }
.hf-more { align-self: flex-start; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); margin-top: 10px; }
.hf-more:hover { background: var(--accent-faint); }

/* ---------- line chart ---------- */
.hf-line { position: relative; }
.hf-line svg { display: block; width: 100%; height: auto; overflow: visible; }
.hf-axis text { font-size: 12px; fill: var(--ink-3); font-family: var(--font); }
.hf-grid line { stroke: var(--line); }
.hf-line__path { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.3, .7, .2, 1); }
.hf-line__end { stroke: var(--surface); stroke-width: 2; opacity: 0; transition: opacity .4s ease 1.4s; }
.is-in .hf-line__end { opacity: 1; }
.hf-line__label { font-size: 12.5px; font-weight: 700; font-family: var(--font); fill: var(--ink); opacity: 0; transition: opacity .4s ease 1.5s; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.is-in .hf-line__label { opacity: 1; }
.hf-line__cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.hf-line__dot { stroke: var(--surface); stroke-width: 2; }

/* ---------- action list ---------- */
.hf-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hf-act { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.hf-act:hover { background: var(--accent-faint); }
.hf-act b { display: block; font-size: 14.5px; line-height: 1.35; font-weight: 600; }
.hf-act small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.hf-act.is-arrive { opacity: 0; transform: translateX(-8px); }
.is-in .hf-act.is-arrive { opacity: 1; transform: none; transition: opacity .4s ease var(--d, 0s), transform .5s cubic-bezier(.3, .7, .2, 1) var(--d, 0s); }
.hf-who { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.hf-risk .hf-ico { background: color-mix(in srgb, var(--orange) 22%, var(--surface)); color: #b4530b; }
:root[data-theme="dark"] .hf-risk .hf-ico { color: var(--orange-light); }

/* tooltip */
.hf-tip {
  position: fixed; z-index: 60; max-width: 300px; padding: 9px 12px; border-radius: 10px; pointer-events: none;
  background: var(--chrome); color: #f3f4f6; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}
:root[data-theme="dark"] .hf-tip { background: #f3f4f6; color: var(--chrome); }
.hf-tip b { font-weight: 700; }

/* ---------- responsive ---------- */
@media (min-width: 861px) and (max-height: 820px) {
  .hf-side { gap: 10px; padding-top: 14px; }
  .hf-emblem { height: 104px; }
  .hf-nav { padding: 7px 12px; }
}
@media (min-width: 861px) and (max-height: 680px) {
  .hf-emblem { height: 84px; }
  .hf-client__line, .hf-side__asof { display: none; }
}
@media (max-width: 1180px) {
  .hf-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-span-4, .hf-span-5 { grid-column: span 6; }
  .hf-span-7, .hf-span-8 { grid-column: span 12; }
}
@media (max-width: 860px) {
  body { grid-template-columns: minmax(0, 1fr); }
  .hf-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; }
  .hf-emblem, .hf-side__asof, .hf-side__foot [data-action="print"], .hf-client { display: none; }
  .hf-wordmark { font-size: 17px; margin: 0; flex: 1; }
  .hf-side__foot { margin: 0; border: 0; padding: 0; }
  .hf-side__foot .hf-side__action span { display: none; }
  .hf-side__nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .hf-nav { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .hf-main { padding: 14px 16px 28px; }
  .hf-keys { gap: 10px; }
  .hf-key { min-height: 0; padding: 14px 12px 12px; gap: 4px 6px; }
  .hf-key__value { font-size: 23px; white-space: normal; overflow-wrap: anywhere; }
  .hf-key .hf-ring { width: 38px; height: 38px; }
  .hf-span-4, .hf-span-5, .hf-span-6 { grid-column: span 12; }
  .hf-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hf-donut .hf-legend { width: 100%; }
  .hf-table .hf-hide-s { display: none; }
}
@media (max-width: 480px) {
  .hf-keys { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hf-table td, .hf-table th { padding-left: 4px; padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { display: block; background: #ffffff; }
  .hf-side, .hf-next, .hf-i, .hf-pop, .hf-seg, .hf-more { display: none !important; }
  .hf-main { padding: 0; }
  .hf-panel, .hf-key, .hf-band { break-inside: avoid; }
}
