.heatmap911-page {
    padding: 20px;
}

.heatmap911-shell {
    display: grid;
    gap: 18px;
}

.heatmap911-hero,
.heatmap911-map-shell {
    border-radius: 22px;
    overflow: hidden;
}

.heatmap911-hero {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    padding: 24px;
}

.heatmap911-hero-controls {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.heatmap911-control {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.heatmap911-control-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #97a4b7);
}

.heatmap911-select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 18, 29, 0.8);
    color: inherit;
    font: inherit;
}

.heatmap911-hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(1.85rem, 2.7vw, 2.8rem);
    line-height: 1;
}

.heatmap911-hero-copy p {
    max-width: 70ch;
    margin: 0;
    color: var(--text-muted, #97a4b7);
}

.heatmap911-eyebrow {
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f0a23a;
}

.heatmap911-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.heatmap911-stat {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.heatmap911-stat-label,
.heatmap911-status-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #97a4b7);
}

.heatmap911-stat strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1.1;
}

.heatmap911-map-shell {
    padding: 14px;
}

.heatmap911-map-frame {
    position: relative;
    min-height: calc(100vh - 290px);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(240, 162, 58, 0.24), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 104, 31, 0.16), transparent 36%),
        rgba(7, 14, 24, 0.94);
}

.heatmap911-map {
    position: absolute;
    inset: 0;
}

.heatmap911-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 430;
}

.heatmap911-hud {
    position: absolute;
    inset: 16px 16px auto 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
    z-index: 500;
}

.heatmap911-status-card,
.heatmap911-legend-card {
    width: min(320px, calc(100vw - 56px));
    padding: 14px 16px;
    border-radius: 16px;
    backdrop-filter: blur(14px);
    background: rgba(10, 15, 25, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
}

.heatmap911-status-value {
    font-size: 1rem;
    font-weight: 600;
}

.heatmap911-status-subtle {
    margin-top: 6px;
    color: var(--text-muted, #97a4b7);
    font-size: 0.9rem;
}

.heatmap911-gradient {
    height: 16px;
    border-radius: 999px;
    margin: 8px 0 6px;
    background: linear-gradient(90deg, #fff2a9 0%, #ffb142 38%, #f16f1f 72%, #9d2f06 100%);
}

.heatmap911-legend-scale {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted, #97a4b7);
}

.heatmap911-refresh {
    margin-top: 14px;
    width: 100%;
}

body.theme-light .heatmap911-stat {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .heatmap911-select {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
}

body.theme-light .heatmap911-map-frame {
    background:
        radial-gradient(circle at top left, rgba(255, 193, 94, 0.24), transparent 34%),
        radial-gradient(circle at bottom right, rgba(239, 109, 52, 0.16), transparent 36%),
        rgba(235, 241, 248, 0.96);
}

body.theme-light .heatmap911-status-card,
body.theme-light .heatmap911-legend-card {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 42px rgba(61, 81, 107, 0.18);
}

@media (max-width: 900px) {
    .heatmap911-page {
        padding: 14px;
    }

    .heatmap911-hero {
        grid-template-columns: 1fr;
    }

    .heatmap911-hero-controls {
        justify-content: flex-start;
    }

    .heatmap911-hud {
        flex-direction: column;
        inset: 12px 12px auto 12px;
    }

    .heatmap911-status-card,
    .heatmap911-legend-card {
        width: min(100%, 340px);
    }

    .heatmap911-map-frame {
        min-height: calc(100vh - 360px);
    }
}
