/* CAIN-42 enterprise marketing layer (additive, 2026-11-02).
   Scoped to .hm-* and the sections that use it. It reads the existing cain42.css
   tokens (--bg, --bg-raised, --line, --text, --red, --st-live, --mono) and adds
   no global element rules, so the rest of the homepage is untouched. */

.hm-sec { position: relative; }
.hm-sec .hm-lede { color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 78ch; margin: 0 0 18px; }
.hm-sec .hm-small { font-size: 12px; color: var(--text-faint); }
.hm-sec .hm-mono { font-family: var(--mono); }
.hm-pull { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; background: rgba(255,59,74,.06); color: var(--text); font: 600 17px/1.5 var(--sans); }

/* ---- top hero injection ---- */
.hm-hero-callout { margin: 18px 0 0; padding: 18px 20px 16px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; background: linear-gradient(90deg, rgba(255,59,74,.07), rgba(13,19,40,.35)); }
.hm-hero-callout .hm-callout-h { margin: 0 0 6px; font: 700 11px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.hm-hero-callout p { margin: 0 0 12px; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.hm-hero-callout p:last-child { margin-bottom: 0; }
.hm-hero-callout b { color: var(--text); }
.hm-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.hm-hero-ctas .c42-btn { font-size: 14px; }
.hm-sales { border-color: var(--red); color: var(--text); background: transparent; }
.hm-sales:hover { background: rgba(255,59,74,.12); }

/* ---- value metrics ---- */
.hm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.hm-metric { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); }
.hm-metric b { display: block; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.1; color: var(--text); letter-spacing: -.01em; }
.hm-metric span { display: block; margin-top: 5px; color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.hm-metric a { display: inline-block; margin-top: 8px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); text-decoration: none; }
.hm-metric a:hover { color: var(--accent-2); }
.hm-metric.is-live b { color: var(--st-live); }
@media (max-width: 980px) { .hm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm-metrics { grid-template-columns: 1fr; } }

/* ---- animated explainer ---- */
.hm-exec-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; margin: 20px 0 0; align-items: stretch; }
@media (max-width: 960px) { .hm-exec-grid { grid-template-columns: 1fr; } }
.hm-player { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-sunken); overflow: hidden; }
.hm-player-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 700 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.hm-player-head .hm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-live); box-shadow: 0 0 0 3px rgba(63,182,139,.14); }
.hm-player-body { position: relative; padding: 8px 10px 0; flex: 1; }
.hm-player svg { display: block; width: 100%; height: auto; }
.hm-player .hm-caption { min-height: 44px; margin: 0; padding: 8px 12px 10px; color: var(--text); font-size: 13.5px; line-height: 1.5; }
.hm-player-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.hm-player-foot button { background: var(--bg-raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 12px; font: 600 12px/1 var(--mono); cursor: pointer; }
.hm-player-foot button:hover { border-color: var(--red); }
.hm-progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: #0a1020; overflow: hidden; }
.hm-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--red), #ff8a80); transition: width .12s linear; }
.hm-player.is-paused .hm-progress i { transition: none; }
.hm-player.is-paused .hm-line-hot, .hm-player.is-paused .hm-gate-ring { animation-play-state: paused; }

/* SVG explainer primitives */
.hm-player .hm-box { fill: var(--bg-raised); stroke: var(--line-strong); stroke-width: 1.4; }
.hm-player .hm-box-accent { fill: #140a0d; stroke: var(--red); stroke-width: 1.6; }
.hm-player .hm-box-tool { fill: #0b1020; stroke: #2b3760; stroke-width: 1.2; }
.hm-player .hm-t { fill: var(--text); font: 600 11px var(--sans); }
.hm-player .hm-t-dim { fill: var(--text-faint); font: 10.5px var(--sans); }
.hm-player .hm-t-mono { fill: var(--text-dim); font: 10px var(--mono); }
.hm-player .hm-lane-label { fill: var(--text-faint); font: 700 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.hm-player .hm-line { stroke: #2b3760; stroke-width: 1.2; fill: none; }
.hm-player .hm-line-hot { stroke: var(--red); stroke-width: 1.6; fill: none; stroke-dasharray: 5 5; animation: hm-dash 1.2s linear infinite; }
.hm-player .hm-packet { fill: #7dd3fc; filter: drop-shadow(0 0 5px rgba(125,211,252,.8)); }
.hm-player .hm-packet-red { fill: var(--red); filter: drop-shadow(0 0 6px rgba(255,59,74,.9)); }
.hm-player .hm-gate-ring { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: .25; animation: hm-ring 2.4s ease-out infinite; transform-box: view-box; transform-origin: 271px 177px; }
.hm-player .hm-gate { fill: #1b0b10; stroke: var(--red); stroke-width: 1.8; }
.hm-player .hm-ok { fill: var(--st-live); }
.hm-player .hm-stop { fill: var(--red); }
@keyframes hm-dash { to { stroke-dashoffset: -20; } }
@keyframes hm-ring { 0% { transform: scale(.82); opacity: .55; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hm-player .hm-line-hot, .hm-player .hm-gate-ring { animation: none !important; }
}

/* ---- live demo ---- */
.hm-live { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); padding: 14px; min-width: 0; }
.hm-live-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hm-live-head b { font-size: 14px; }
.hm-live-head .hm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-live); box-shadow: 0 0 0 3px rgba(63,182,139,.14); }
.hm-live-note { font: 10.5px/1.2 var(--mono); color: var(--text-faint); letter-spacing: .04em; }
.hm-live-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-live-controls label { font: 700 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.hm-live-controls select { flex: 1 1 220px; min-width: 0; background: #0a1020; color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 10px; font: 12.5px/1.3 var(--mono); }
.hm-live-controls button { white-space: nowrap; }
.hm-live-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; }
@media (max-width: 700px) { .hm-live-grid { grid-template-columns: 1fr; } }
.hm-lane { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #080d19; }
.hm-lane h4 { margin: 0 0 2px; font: 700 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.hm-lane-sub { margin: 0 0 8px; font-size: 12px; color: var(--text-faint); }
.hm-prompt { margin: 0; padding: 9px 10px; background: #05080f; border: 1px solid #1e293b; border-radius: 8px; color: var(--text-dim); font: 11.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.hm-verdict { margin: 0 0 8px; font: 700 12px/1.4 var(--mono); color: var(--text-faint); }
.hm-verdict.hm-allow { color: var(--st-live); }
.hm-verdict.hm-deny { color: var(--red); }
.hm-verdict.hm-hold { color: var(--st-partial); }
.hm-chain { max-height: 210px; overflow: auto; border: 1px solid #1e293b; border-radius: 8px; background: #05080f; }
.hm-chain div { display: grid; grid-template-columns: 84px 72px 1fr; gap: 7px; padding: 5px 8px; border-bottom: 1px solid #111a2e; font: 11px/1.45 var(--mono); color: var(--text-dim); }
.hm-chain div:last-child { border-bottom: 0; }
.hm-chain div b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.hm-chain div span:last-child { color: var(--text-faint); overflow-wrap: anywhere; }
.hm-chain .hm-chain-deny { background: rgba(255,59,74,.08); }
@media (max-width: 560px) { .hm-chain div { grid-template-columns: 1fr; gap: 1px; } }

/* ---- stage coverage bar + quorum nodes ---- */
.hm-liveviz { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 12px; margin: 14px 0 0; }
@media (max-width: 760px) { .hm-liveviz { grid-template-columns: 1fr; } }
.hm-viz { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); padding: 12px 13px; min-width: 0; }
.hm-viz h4 { margin: 0 0 8px; font: 700 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.hm-stagebar { display: flex; gap: 3px; height: 12px; margin: 3px 0 8px; }
.hm-stagebar i { flex: 1; min-width: 2px; border-radius: 2px; background: #1b2338; }
.hm-stagebar i.on { background: var(--st-live); box-shadow: 0 0 6px rgba(63,182,139,.35); }
.hm-legend { display: flex; gap: 12px; flex-wrap: wrap; font: 10.5px/1.3 var(--mono); color: var(--text-faint); }
.hm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hm-legend i { width: 7px; height: 7px; border-radius: 2px; background: #1b2338; }
.hm-legend i.on { background: var(--st-live); }
.hm-quorum { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.hm-qnode { flex: 1 1 56px; min-width: 56px; text-align: center; padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; background: #0a1020; }
.hm-qnode b { display: block; font: 700 10px/1.2 var(--mono); color: var(--st-live); }
.hm-qnode span { display: block; margin-top: 2px; font: 9.5px/1.2 var(--mono); color: var(--text-faint); text-transform: uppercase; }
.hm-viz .hm-viz-note { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-dim); }

/* ---- comparison matrix ---- */
.hm-matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 0; }
.hm-matrix { width: 100%; border-collapse: collapse; min-width: 900px; font-size: 13px; }
.hm-matrix th, .hm-matrix td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #141d31; }
.hm-matrix thead th { font: 700 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); background: #0a0f1e; }
.hm-matrix thead th:nth-child(2) { color: var(--accent-2); }
.hm-matrix tbody th { width: 150px; font-weight: 600; color: var(--text); background: #0a0f1e; }
.hm-matrix td { color: var(--text-dim); line-height: 1.5; }
.hm-matrix td:nth-child(2) { background: rgba(34,211,238,.045); color: var(--text); }
.hm-matrix tr:last-child th, .hm-matrix tr:last-child td { border-bottom: 0; }
.hm-matrix .hm-cell-key { display: block; font: 700 11px/1.3 var(--mono); color: var(--accent-2); margin-bottom: 3px; }
.hm-matrix .hm-cell-sub { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.hm-matrix a { color: #ffb3b8; }

/* ---- offer / pricing cards ---- */
.hm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
@media (max-width: 980px) { .hm-cards { grid-template-columns: 1fr; } }
.hm-offer { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 14px; border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: 12px; background: var(--bg-raised); }
.hm-offer.hm-featured { border-top-color: var(--red); box-shadow: 0 18px 50px -34px rgba(255,59,74,.7); }
.hm-offer .hm-tag { align-self: flex-start; font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text-faint); }
.hm-offer.hm-featured .hm-tag { color: var(--accent-2); border-color: rgba(255,59,74,.5); background: rgba(255,59,74,.08); }
.hm-offer h3 { margin: 10px 0 2px; font-size: 20px; letter-spacing: .02em; color: var(--text); }
.hm-offer .hm-price { margin: 0 0 4px; font: 800 26px/1.1 var(--sans); color: var(--text); letter-spacing: -.02em; }
.hm-offer .hm-price small { font: 400 12px/1.2 var(--sans); color: var(--text-faint); letter-spacing: 0; }
.hm-offer .hm-price-note { margin: 0 0 10px; font: 11px/1.4 var(--mono); color: var(--text-faint); }
.hm-offer ul { margin: 0 0 14px; padding: 0 0 0 17px; color: var(--text-dim); font-size: 13px; line-height: 1.55; flex: 1; }
.hm-offer li { margin: 0 0 5px; }
.hm-offer .c42-btn { text-align: center; }
.hm-offer .hm-offer-note { margin: 8px 0 0; font-size: 11.5px; color: var(--text-faint); line-height: 1.45; }

/* ---- trust strip ---- */
.hm-trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #080d19; padding: 16px 0; }
.hm-trust-strip .c42-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-trust-strip .hm-k { font: 700 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-right: 6px; }
.hm-trust-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raised); font: 600 11px/1.2 var(--mono); color: var(--text-dim); text-decoration: none; }
.hm-trust-badge:hover { border-color: var(--red); color: var(--text); }
.hm-trust-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--st-live); }

/* ---- sticky catalog ribbon ---- */
.hm-ribbon { position: sticky; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; padding: 10px 12px; border: 1px solid rgba(255,59,74,.45); border-radius: 10px; background: linear-gradient(90deg, #1a0a0e, #0d1328 65%); box-shadow: 0 14px 40px -22px rgba(0,0,0,.9); }
.hm-ribbon[hidden] { display: none; }
.hm-ribbon p { margin: 0; flex: 1 1 320px; color: var(--text-dim); font-size: 13px; line-height: 1.45; }
.hm-ribbon p b { color: var(--text); }
.hm-ribbon .c42-btn { padding: 8px 12px; font-size: 13px; }
.hm-ribbon-close { flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: var(--text-faint); font: 16px/1 var(--sans); cursor: pointer; }
.hm-ribbon-close:hover { color: var(--text); border-color: var(--red); }

/* ---- small badges on existing catalog cards ---- */
.hm-card-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; border: 1px solid rgba(255,59,74,.45); border-radius: 4px; background: rgba(255,59,74,.08); color: var(--accent-2); font: 700 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }

/* ---- section density (does not touch existing .c42-sec) ---- */
.hm-sec .hm-sub-h { margin: 22px 0 8px; font-size: 15px; color: var(--text); }
.hm-sec .hm-foot-note { margin: 12px 0 0; color: var(--text-faint); font-size: 12px; line-height: 1.55; }
.hm-sec .hm-cta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

@media (max-width: 640px) {
  .hm-hero-callout { padding: 14px 14px 12px; }
  .hm-offer { padding: 14px; }
  .hm-player-foot { flex-wrap: wrap; }
}

/* ---- interactive buyer's dial / comparison tool (2026-11-02) ---- */
.hm-buyer { margin-top: 18px; }
.hm-buyer-top { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 980px) { .hm-buyer-top { grid-template-columns: 1fr; } }
.hm-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); padding: 14px; }
.hm-panel h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.hm-panel .hm-panel-sub { margin: 0 0 10px; color: var(--text-faint); font-size: 12px; line-height: 1.5; }
.hm-weights { display: flex; flex-direction: column; }
.hm-weight { display: grid; grid-template-columns: minmax(0, 1fr) 92px 40px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #141d31; }
.hm-weight:last-child { border-bottom: 0; }
.hm-weight label { min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--text-dim); }
.hm-weight label b { display: block; color: var(--text); font-weight: 600; font-size: 12.5px; }
.hm-weight .hm-must { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font: 10px/1.2 var(--mono); color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.hm-weight .hm-must input { accent-color: var(--red); width: 12px; height: 12px; margin: 0; }
.hm-weight input[type="range"] { width: 100%; accent-color: var(--red); height: 18px; cursor: pointer; }
.hm-weight output { font: 700 12px/1 var(--mono); color: var(--accent-2); text-align: right; }
.hm-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hm-presets button { border: 1px solid var(--line-strong); border-radius: 7px; background: #0b1020; color: var(--text-dim); padding: 7px 9px; font: 600 10.5px/1.1 var(--mono); cursor: pointer; }
.hm-presets button:hover { border-color: var(--red); color: var(--text); }

.hm-result { display: flex; flex-direction: column; min-width: 0; }
.hm-verdict-line { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; background: rgba(255,59,74,.06); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.hm-verdict-line b { color: #fff; }
.hm-verdict-line .hm-rank { color: var(--accent-2); font-family: var(--mono); font-size: 12px; }
.hm-bars { display: flex; flex-direction: column; gap: 7px; }
.hm-bar-row { display: grid; grid-template-columns: 154px minmax(0, 1fr) 46px; gap: 8px; align-items: center; transition: opacity .2s ease; }
.hm-bar-row.hm-excluded { opacity: .38; }
.hm-bar-name { font-size: 12px; line-height: 1.25; color: var(--text-dim); overflow-wrap: anywhere; }
.hm-bar-row.hm-cain .hm-bar-name { color: var(--text); font-weight: 700; }
.hm-bar-track { position: relative; height: 18px; border-radius: 4px; background: #0a1020; border: 1px solid #141d31; overflow: hidden; }
.hm-bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, #2b3760, #7dd3fc); transition: width .28s ease; }
.hm-bar-row.hm-cain .hm-bar-fill { background: linear-gradient(90deg, #b91c1c, var(--red)); box-shadow: 0 0 14px rgba(255,59,74,.35); }
.hm-bar-val { font: 700 12px/1 var(--mono); color: var(--text-dim); text-align: right; }
.hm-bar-row.hm-cain .hm-bar-val { color: var(--accent-2); }
.hm-formula { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-faint); }

.hm-buyer-lower { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 980px) { .hm-buyer-lower { grid-template-columns: 1fr; } }
.hm-radar-wrap { position: relative; }
.hm-radar { display: block; width: 100%; height: auto; max-width: 360px; margin: 0 auto; }
.hm-radar .ring { fill: none; stroke: #1a2342; stroke-width: 1; }
.hm-radar .axis { stroke: #1a2342; stroke-width: 1; }
.hm-radar .axis-label { fill: var(--text-faint); font: 9px var(--mono); }
.hm-radar .poly-cain { fill: rgba(255,59,74,.17); stroke: var(--red); stroke-width: 2; }
.hm-radar .poly-rival { fill: rgba(34,211,238,.10); stroke: #22d3ee; stroke-width: 1.6; stroke-dasharray: 4 3; }
.hm-radar .dot-cain { fill: var(--red); }
.hm-radar .dot-rival { fill: #22d3ee; }
.hm-radar-legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; font: 10.5px/1.3 var(--mono); color: var(--text-faint); }
.hm-radar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hm-radar-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--red); }
.hm-radar-legend i.cyan { background: #22d3ee; }
.hm-rival-select { width: 100%; background: #0a1020; color: var(--text); border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 9px; font: 12px/1.3 var(--mono); margin: 2px 0 10px; }
.hm-rival-note { margin: 8px 0 0; color: var(--text-dim); font-size: 12px; line-height: 1.5; }

.hm-table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 9px; }
.hm-table-tools label { display: inline-flex; gap: 5px; align-items: center; font: 10.5px/1.2 var(--mono); color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.hm-table-tools input { accent-color: var(--red); width: 12px; height: 12px; margin: 0; }
.hm-table-tools .hm-count { margin-left: auto; font: 600 10.5px/1.2 var(--mono); color: var(--accent-2); }
.hm-fit-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.hm-fit { width: 100%; border-collapse: collapse; min-width: 880px; font-size: 12px; }
.hm-fit th, .hm-fit td { padding: 8px 9px; border-bottom: 1px solid #141d31; text-align: left; vertical-align: top; }
.hm-fit thead th { position: sticky; top: 0; z-index: 1; background: #0a0f1e; font: 700 9.5px/1.25 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.hm-fit thead th:first-child { left: 0; z-index: 2; }
.hm-fit thead th.hm-cain-h { color: var(--accent-2); }
.hm-fit tbody th { width: 190px; font-weight: 600; color: var(--text); background: #0a0f1e; }
.hm-fit tbody th a { color: var(--text-faint); font: 9.5px/1.2 var(--mono); margin-left: 4px; }
.hm-fit tbody th .hm-crit-short { display: block; color: var(--text-faint); font: 9.5px/1.3 var(--mono); margin-top: 2px; }
.hm-fit td { color: var(--text-dim); }
.hm-fit td.hm-cain-c { background: rgba(34,211,238,.035); }
.hm-chip { display: inline-block; padding: 3px 6px; border-radius: 4px; border: 1px solid; font: 700 9.5px/1.2 var(--mono); letter-spacing: .03em; white-space: nowrap; }
.hm-chip.yes { color: var(--st-live); border-color: rgba(63,182,139,.45); background: var(--st-live-bg); }
.hm-chip.partial { color: var(--st-partial); border-color: rgba(217,164,65,.45); background: var(--st-partial-bg); }
.hm-chip.no { color: var(--text-faint); border-color: var(--line-strong); background: #11151f; }
.hm-fit tr.hm-row-hidden { display: none; }
.hm-fit td.hm-cat-excluded { opacity: .35; }
.hm-fit thead th.hm-cat-excluded { opacity: .45; }
.hm-fit .hm-cat-note { display: block; margin-top: 2px; font: 9px/1.2 var(--mono); color: var(--text-faint); text-transform: none; letter-spacing: 0; }
.hm-buyer-foot { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #080d19; color: var(--text-dim); font-size: 12px; line-height: 1.55; }
.hm-buyer-foot b { color: var(--text); }
.hm-buyer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hm-buyer-cta .c42-btn { font-size: 13px; }

@media (max-width: 640px) {
  .hm-weight { grid-template-columns: 1fr 72px 36px; }
  .hm-bar-row { grid-template-columns: 116px minmax(0, 1fr) 40px; }
  .hm-fit { min-width: 760px; }
}

/* ---- daily agent strip + diff ---- */
.hm-agent-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--st-live); border-radius: 0 10px 10px 0; background: #080d19; color: var(--text-dim); font-size: 11.5px; line-height: 1.45; }
.hm-agent-strip .hm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-live); box-shadow: 0 0 0 3px rgba(63,182,139,.14); flex: 0 0 auto; }
.hm-agent-strip b { color: var(--text); font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hm-agent-strip .hm-agent { padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px; font: 10.5px/1.3 var(--mono); color: var(--text-dim); }
.hm-agent-strip .hm-agent.ok { border-color: rgba(63,182,139,.4); color: var(--st-live); }
.hm-agent-strip .hm-agent.stale { border-color: rgba(217,164,65,.45); color: var(--st-partial); }
.hm-agent-strip a { color: var(--text-faint); font: 10.5px/1.2 var(--mono); }
.hm-agent-strip.hm-stale { border-left-color: var(--st-partial); }
.hm-agent-strip.hm-stale .hm-live-dot { background: var(--st-partial); box-shadow: 0 0 0 3px rgba(217,164,65,.14); }
.hm-agent-diff { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #080d19; color: var(--text-dim); font-size: 11.5px; }
.hm-agent-diff summary { cursor: pointer; padding: 8px 11px; color: var(--text-faint); font: 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.hm-agent-diff div { padding: 0 11px 9px; }
.hm-agent-diff ul { margin: 0; padding: 0 0 0 17px; }
.hm-agent-diff li { margin: 0 0 3px; }

/* ---- scatter / positioning map ---- */
.hm-scatter-wrap { position: relative; }
.hm-scatter { display: block; width: 100%; height: auto; background: #080d19; border: 1px solid var(--line); border-radius: 10px; }
.hm-scatter .grid { stroke: #141d31; stroke-width: 1; }
.hm-scatter .quad-line { stroke: #2b3760; stroke-width: 1; stroke-dasharray: 4 4; }
.hm-scatter .frontier { stroke: #7c86a6; stroke-width: 1.2; stroke-dasharray: 2 5; }
.hm-scatter .axis-label { fill: var(--text-faint); font: 9.5px var(--mono); }
.hm-scatter .axis-title { fill: var(--text-dim); font: 10px var(--mono); }
.hm-scatter .quad-label { fill: #3b4666; font: 700 9px var(--mono); letter-spacing: .12em; }
.hm-bubble { cursor: pointer; outline: none; transition: opacity .2s ease; }
.hm-bubble circle { transition: r .2s ease, stroke-width .2s ease; }
.hm-bubble text { fill: var(--text-dim); font: 9.5px var(--mono); pointer-events: none; }
.hm-bubble.hm-cain-b text { fill: var(--accent-2); font-weight: 700; font-size: 10.5px; }
.hm-bubble.hm-excluded { opacity: .22; }
.hm-bubble.hm-selected circle { stroke: #fff; stroke-width: 2.4; }
.hm-bubble:focus-visible circle { stroke: #fff; stroke-width: 2.4; }
.hm-tooltip { position: absolute; z-index: 6; max-width: 270px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #0b0f16; color: var(--text-dim); font: 11px/1.45 var(--mono); box-shadow: 0 14px 34px -14px #000; pointer-events: none; }
.hm-tooltip[hidden] { display: none; }
.hm-tooltip b { display: block; color: var(--text); font: 700 12.5px/1.3 var(--sans); margin-bottom: 4px; }
.hm-tooltip .hm-tt-row { display: flex; justify-content: space-between; gap: 12px; }
.hm-tooltip .hm-tt-row span:last-child { color: var(--text); }
.hm-tooltip .hm-tt-ok { color: var(--st-live); }
.hm-tooltip .hm-tt-ex { color: var(--st-partial); }

/* ---- live gate strip inside the console ---- */
.hm-buyer-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #080d19; }
.hm-buyer-live .hm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-live); box-shadow: 0 0 0 3px rgba(63,182,139,.14); }
.hm-buyer-live b { font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.hm-buyer-live .c42-btn { padding: 7px 11px; font-size: 12px; }
.hm-buyer-live .hm-live-out { flex: 1 1 260px; min-width: 0; font: 11.5px/1.45 var(--mono); color: var(--text-dim); overflow-wrap: anywhere; }
.hm-buyer-live .hm-live-out.deny { color: var(--red); }
.hm-buyer-live .hm-live-out.allow { color: var(--st-live); }

/* ---- daily-refresh explainer: two agents keep the chart current ---- */
.hm-daily-head { margin: 12px 0 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(120deg, rgba(63,182,139,.09), rgba(13,19,40,.45) 60%); }
.hm-daily-kicker { margin: 0 0 4px; font: 700 10.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--st-live); }
.hm-daily-head h3 { margin: 0 0 5px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.2; color: var(--text); letter-spacing: -.01em; }
.hm-daily-head p { margin: 0; max-width: 88ch; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.hm-daily-head .hm-daily-since { display: inline-block; margin-top: 6px; font: 600 10.5px/1.3 var(--mono); color: var(--text-faint); }
.hm-agent-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.hm-agent-node { display: inline-flex; flex-direction: column; gap: 1px; padding: 7px 10px; border: 1px solid rgba(63,182,139,.35); border-radius: 8px; background: #0a1020; color: var(--text); font: 700 11px/1.2 var(--mono); animation: hm-agent-pulse 3.4s ease-in-out infinite; }
.hm-agent-node small { font: 400 9.5px/1.2 var(--mono); color: var(--text-faint); letter-spacing: .02em; }
.hm-agent-node.hm-agent-out { border-color: var(--line-strong); color: var(--accent-2); animation-delay: 1.1s; }
.hm-flow-arrow { color: var(--text-faint); font: 700 14px/1 var(--mono); }
@keyframes hm-agent-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(63,182,139,.28); } 50% { box-shadow: 0 0 0 5px rgba(63,182,139,0); } }
@media (prefers-reduced-motion: reduce) { .hm-agent-node { animation: none !important; } }
.hm-fit.hm-hide-excluded .hm-cat-excluded { display: none; }
.hm-bar-row.hm-selected .hm-bar-name { color: #fff; }
.hm-bar-row.hm-selected .hm-bar-track { border-color: var(--line-strong); }
