/* /heatmap: the Heatmap on its own page (brief 20261007-1700). The chart takes the window. */
html, body.hmp { height: 100%; }
body.hmp { display: flex; flex-direction: column; overflow-x: hidden; }
.hmp-top { flex: none; }
.hmp-main { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 12px; }
.hmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.hmp-bar .cg-tfs { margin-bottom: 0; }
.hmp-title { font-family: var(--display); font-size: 1.05rem; margin: 0 6px 0 0; letter-spacing: -.01em; }
.hmp-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.hmp-meta .hm-src, .hmp-meta .hm-age { margin: 0; }
.hmp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.hmp-chart { position: relative; min-height: 0; min-width: 0; }
.hmp-host { position: absolute; inset: 0; border-radius: 8px; }
.hmp-host .hg-over { touch-action: none; }
.hmp-side { min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.hmp-side-h { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hmp-book { grid-template-columns: minmax(0, 1fr); margin: 0; gap: 10px; }
.hmp-foot, .hmp-keys { font-size: .74rem; line-height: 1.5; margin: 0; }
.hmp-side .nfa-line { margin-top: auto; }
.hmp kbd { font-family: var(--mono); font-size: .7rem; padding: 0 5px; border: 1px solid var(--border); border-radius: 4px; }
.hmp-fs kbd { margin-left: 2px; }
body.hmp-full .hmp-top { display: none; }
body.hmp-full .hmp-main { padding-top: 6px; }
.hmp .back-short { display: none; }
@media (max-width: 900px) {
  body.hmp { height: auto; min-height: 100%; }
  .hmp-main { padding: 6px 10px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .hmp-body { display: flex; flex-direction: column; }
  .hmp-chart { height: min(72vh, 560px); min-height: 380px; }
  .hmp-side { overflow: visible; }
  .hmp .back-long { display: none; }
  .hmp .back-short { display: inline; }
  .hmp-title { display: none; }
  .top.hmp-top { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 8px 10px; }
  .hmp-top .left, .hmp-top .actions, .hmp-top .right { margin: 0; width: auto; }
  .hmp-top .actions { flex: 1; justify-content: flex-start; }
  .hmp-top .wm { display: none; }
  .hmp-bar { gap: 6px 8px; }
  .hmp-bar .wtab { padding-left: 8px; padding-right: 8px; }
}
