/* Bit-exact expert rows on the CPU: loaded only on its Learn page, after style.css. */
.hea-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; align-items: start; }
.hea-left { display: grid; gap: 8px; min-width: 0; }
.hea-left > .label { margin: 0; }
.hea-grid { --hea-gap: 4px; display: grid; grid-template-columns: 46px repeat(16, minmax(0, 1fr)); gap: var(--hea-gap); align-items: center; }
.hea-k { font: 10.5px var(--mono); color: var(--quiet); white-space: nowrap; transition: color .3s; }
.hea-scale.on { color: var(--purple); font-weight: 600; }
.hea-acc { align-self: center; }
.hea-lh { font: 10px var(--mono); color: var(--border-strong); text-align: center; transition: color .3s; }
.hea-lh.on { color: var(--soft); }
.hea-cell { position: relative; display: grid; place-items: center; height: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); overflow: hidden; transition: border-color .3s, background .3s; }
.hea-v { position: relative; z-index: 1; font: 10px var(--mono); color: var(--soft); transition: color .3s; }
.hea-mag { display: none; position: absolute; left: 0; right: 0; bottom: 0; background: var(--border-strong); }
.hea-cell.col { border-color: var(--soft); }
.hea-cell.on { border-color: var(--purple); background: var(--glow); }
.hea-cell.on .hea-v { color: var(--fg); }
.hea-lane { position: relative; height: 46px; margin-top: 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); transition: transform .6s cubic-bezier(.3, .7, .2, 1), opacity .4s .25s, border-color .3s, box-shadow .3s; }
.hea-lane::before { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; border-top: 1px dashed var(--border-strong); }
.hea-bar { position: absolute; left: 3px; right: 3px; top: 50%; height: 0; border-radius: 2px; background: var(--soft); transition: height .5s, top .5s, background .3s; }
.hea-lane.neg .hea-bar { background: var(--quiet); }
.hea-lane.hot { border-color: var(--purple); }
.hea-lane.hot .hea-bar { background: var(--purple); }
.hea-lane.fold { border-color: var(--purple); opacity: .35; }
.hea-lane.gone { opacity: 0; }
.hea-lane.final { border-color: var(--red); box-shadow: 0 0 0 3px var(--glow-red); }
.hea-lane.final .hea-bar { background: var(--red); }
.hea-readout { min-height: 2.8em; font: 12px/1.4 var(--mono); color: var(--soft); }
.hea-readout b { color: var(--red); }

.hea-right { display: grid; gap: 10px; align-content: start; }
.hea-card { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); transition: border-color .3s, box-shadow .3s; }
.hea-card.on { border-color: var(--red); box-shadow: 0 0 0 3px var(--glow-red); }
.hea-name { font-size: 13px; font-weight: 600; }
.hea-sub { font: 10.5px var(--mono); color: var(--quiet); }
.hea-hex { margin-top: 4px; font: 600 15px var(--mono); color: var(--quiet); letter-spacing: .02em; }
.hea-card.on .hea-hex { color: var(--red); }
.hea-hex b.diff { color: var(--purple); }
.hea-others { display: grid; gap: 6px; padding-top: 2px; }
.hea-others .label { margin: 0; }
.hea-other { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; opacity: .4; transition: opacity .4s; }
.hea-other.on { opacity: 1; }
.hea-oname { font: 11px var(--mono); color: var(--soft); }
.hea-other .hea-hex { margin: 0; font-size: 13px; color: var(--fg); }

@media (max-width: 600px) {
  .hea-wrap { grid-template-columns: 1fr; gap: 14px; }
  .hea-left > .label { min-height: 3.2em; }
  .hea-grid { --hea-gap: 2px; grid-template-columns: 34px repeat(16, minmax(0, 1fr)); }
  .hea-k { font-size: 9.5px; }
  .hea-lh { font-size: 8.5px; }
  .hea-cell { height: 16px; border-radius: 3px; }
  .hea-v { display: none; }
  .hea-mag { display: block; }
  .hea-lane { height: 36px; border-radius: 3px; }
  .hea-bar { left: 2px; right: 2px; }
  .hea-readout { font-size: 11px; }
  .hea-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .hea-card { padding: 8px 10px; }
  .hea-hex { font-size: 13px; }
  .hea-others { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hea-lane, .hea-bar, .hea-cell, .hea-card, .hea-other, .hea-lh, .hea-k { transition: none; }
}
