.import-heatmap-card {
    overflow: visible;
}

#import-heatmap-chart,
.import-heatmap-card [id$="-chart"] {
    width: 100%;
    min-height: 48px;
    max-height: 220px;
    overflow-x: auto;
    overflow-y: hidden;
}

.import-heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #d8dee4;
    width: 100%;
}

.import-heatmap-frame {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
}

.import-heatmap-frame--scroll {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.import-heatmap-svg {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
}

.import-heatmap-svg text {
    fill: #57606a;
    font-size: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.import-heatmap-axis-label {
    pointer-events: none;
}

.import-heatmap-cell {
    cursor: pointer;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.import-heatmap-cell:hover {
    stroke: #1f2328;
    stroke-width: 1;
}

.import-heatmap-cell--empty {
    fill: #ebedf0;
}

.import-heatmap-cell--flash {
    animation: importHeatmapFlash 0.6s ease-out;
}

.import-heatmap-cell--pulse {
    animation: importHeatmapPulse 1.2s ease-in-out infinite;
}

.import-heatmap-cell--file-pulse {
    animation: importHeatmapFilePulse 0.45s ease-in-out infinite;
}

@keyframes importHeatmapFlash {
    0% {
        filter: brightness(1.6);
    }

    100% {
        filter: brightness(1);
    }
}

@keyframes importHeatmapPulse {
    0%,
    100% {
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        filter: drop-shadow(0 0 6px rgba(13, 110, 253, 0.85));
    }
}

@keyframes importHeatmapFilePulse {
    0%,
    100% {
        filter: drop-shadow(0 0 0 transparent);
        opacity: 1;
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.95));
        opacity: 0.85;
    }
}

.import-heatmap-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: #24292f;
    max-width: 100%;
}

.import-heatmap-legend-label {
    min-width: 0;
    word-break: break-word;
}

.import-heatmap-legend-subtitle {
    color: #57606a;
}

.import-heatmap-legend-subtitle::before {
    content: " · ";
    color: #8c959f;
}

.import-heatmap-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid rgba(27, 31, 36, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.import-heatmap-tooltip {
    position: fixed;
    z-index: 1080;
    pointer-events: none;
    background: #24292f;
    color: #f6f8fa;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 6px;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
    opacity: 0;
    transition: opacity 0.12s ease;
}

.import-heatmap-tooltip.visible {
    opacity: 1;
}
