/* Results → Heatmaps, and the setup panel snippet. Light admin theme. */
.hm-snippet { margin-top: 10px; }
.hm-snippet-row { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.hm-snippet-code { flex: 1; min-width: 0; padding: 9px 12px; background: #F6F7FB; border: 1px solid #E3E6ED; border-radius: 8px; font-size: .8rem; overflow-x: auto; white-space: nowrap; color: #172033; }

.hm-host { margin-top: 24px; }
.hm-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 14px; padding: 20px; }
.hm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hm-head h3 { margin: 0; }
.hm-sub, .hm-empty { margin: 0; color: #566176; }
.hm-error { color: #C8283F; }
.hm-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 14px 0 10px; }
.hm-ctl { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: #303B52; font-size: .88rem; }
.hm-ctl-wide { flex: 1 1 340px; min-width: 0; }
.hm-ctl select { flex: 1; min-width: 0; height: 36px; margin: 0; padding: 0 28px 0 10px; border: 1px solid #CDD2DC; border-radius: 8px; background-color: #fff; font: inherit; font-weight: 500; color: #172033; }
.hm-seg { display: inline-flex; padding: 3px; gap: 2px; background: #F1F2F7; border-radius: 10px; }
.hm-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: .86rem; font-weight: 600; color: #566176; cursor: pointer; }
.hm-seg button[aria-checked="true"] { background: #fff; color: #342B9B; box-shadow: 0 1px 3px rgba(23,32,51,.14); }
.hm-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hm-stat { padding: 8px 12px; background: #F6F7FB; border-radius: 10px; font-size: .8rem; color: #566176; }
.hm-stat strong { display: block; font-size: 1.05rem; color: #172033; }
.hm-viewport { max-height: 72vh; overflow: auto; border: 1px solid #E3E6ED; border-radius: 10px; background: #F6F7FB; }
.hm-viewport:focus-visible { outline: 2px solid #5146D8; outline-offset: 2px; }
.hm-stage { position: relative; margin: 0 auto; overflow: hidden; background: #fff; }
.hm-page { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.hm-shield { position: absolute; inset: 0; }
.hm-figma { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-blank { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #fff, #fff 23px, #F1F2F6 24px); }
.hm-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.hm-reach { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(23,32,51,.55); pointer-events: none; }
.hm-reach span { position: absolute; right: 6px; top: 2px; padding: 2px 8px; border-radius: 999px; background: rgba(23,32,51,.78); color: #fff; font-size: .72rem; font-weight: 600; }
.hm-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(23,32,51,.4); }
.hm-dot.is-hit { background: #12794F; }
.hm-dot.is-miss { background: #C8283F; }
.hm-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .78rem; color: #566176; }
.hm-legend i { width: 160px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #2b59c3, #1fb5a8, #9bd43a, #ffd23f, #e2352f); }
.hm-legend[hidden] { display: none; }
