/* digiview.sh demo: the Map and its run-time report (js/demos/heatmap.js). Product px; see css/kit.css. */
.hm-body { position: relative; }
.hm-controls { display: flex; gap: 12px; margin-bottom: 12px; }
.hm-controls .k-field { width: 200px; }
.hm-controls .k-input .k-ic { margin-left: auto; }
.hm-map { position: relative; overflow: hidden; height: 470px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-sunken); }
.hm-svg { position: absolute; left: 50%; top: 47%; height: 86%; width: auto; max-width: 94%; translate: -50% -50%; overflow: visible; }
.hm-r { stroke: var(--border-strong); stroke-width: 0.9; stroke-linejoin: round; transition: none; }
.hm-r.is-held { fill: url(#hm-hatch) !important; }
.hm-r.is-sel { stroke: var(--brand); stroke-width: 2.2; }
.hm-hatch-bg { fill: var(--surface); }
.hm-hatch-fg { fill: var(--border); }
.hm-lbl { fill: var(--text-muted); font-size: max(12px, var(--ix-fmin)); font-family: var(--font-sans); text-anchor: middle; paint-order: stroke; stroke: var(--surface-sunken); stroke-width: 3px; }
.hm-pin { fill: var(--surface); stroke: var(--text); stroke-width: 2.2; }
.hm-legend { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 4px; width: 196px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--elev-sm); font-size: max(12px, var(--ix-fmin)); line-height: 16px; }
.hm-legend b { font-size: max(13px, var(--ix-fmin)); font-weight: 600; }
.hm-sub { color: var(--text-muted); }
.hm-ramp { display: grid; grid-template-columns: repeat(4, 1fr); height: 10px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.hm-scale { display: flex; justify-content: space-between; color: var(--text-muted); }
.hm-key { display: flex; align-items: center; gap: 6px; }
.hm-key i { width: 14px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--border-strong); }
.hm-sw-held { background: repeating-linear-gradient(45deg, var(--surface) 0 3px, var(--border) 3px 5px); }
.hm-sw-none { background: var(--surface); }
.hm-attr { position: absolute; right: 12px; bottom: 8px; margin: 0; max-width: 46%; text-align: right; color: var(--text-muted); font-size: max(11px, var(--ix-fmin)); line-height: 14px; }
.hm-drawer-wrap { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; padding: 10px; }
.hm-drawer { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--elev-lg); }
.hm-dh { display: flex; align-items: flex-start; justify-content: space-between; }
.hm-dh h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: 0; }
.hm-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; font-size: 14px; }
.hm-dl span { color: var(--text-muted); }
.hm-sites { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: max(13px, var(--ix-fmin)); }
.hm-sites li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.hm-sites li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-dfoot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.hm-rep { position: absolute; inset: 20px 24px 22px; }
.hm-report .k-card-d { font-size: 14px; }
@container ixapp (max-width: 559px) {
  .hm-svg { height: auto; width: 100%; max-width: 100%; top: 36%; }
}
@container ixapp (max-width: 799px) {
  .hm .k-ph-d { display: none; }
  .hm .k-win-body { padding: 14px 12px; }
  .hm-rep { inset: 14px 12px; }
  .hm-map { height: 400px; }
  .hm-drawer-wrap { width: 82%; }
  .hm-attr { max-width: 52%; }
  .hm-legend { width: 168px; }
  .hm-report { padding: 14px 0; }
  .hm-report .k-card-h, .hm-report .k-card-c { padding: 0 10px; }
}
