/* Scan Bed: the continuous colour bar for the height heat map.
   Everything else on the page reuses the shared CNC components. */

/* The legend sits over the heat map and carries both the floating-overlay class
   and the sidebar-panel class. The panel's near-transparent background wins on
   order and left the text illegible against a bright map, so the overlay's own
   solid background is restored here. */
#bed-legend {
    background: rgba(10, 10, 15, 0.94);
    margin: 0;
}

.bed-legend-bar {
    width: 150px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.bed-legend-scale {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 150px;
    font-size: 11px;
    color: var(--text-secondary);
}

.bed-legend-note {
    max-width: 150px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-secondary);
}

.bed-import {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* Which coordinates the grid is built in. Sits directly under its own label, so
   it needs less space above it than the view switch over the map. */
#bed-frame-toggle {
    margin: 4px 0 6px;
}

/* What clean-up proposes to remove, shown before anything is cut. */

.bed-clean-report {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-raised, rgba(255, 255, 255, 0.03));
}

.bed-clean-headline {
    margin: 0 0 6px;
    font-weight: 600;
}

.bed-clean-surfaces {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-secondary);
}

.bed-clean-surfaces li {
    margin-bottom: 3px;
}

/* Readout that follows the pointer over the heat map. */

.bed-probe {
    position: absolute;
    z-index: 6;
    min-width: 168px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(12, 16, 22, 0.94);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    /* The readout tracks the pointer, so it must never intercept it: catching
       the move events would make it flicker as it chased itself. */
    pointer-events: none;
}

.bed-probe-head {
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bed-probe-rows {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3px 12px;
    margin: 0;
}

.bed-probe-rows dt {
    color: var(--text-secondary);
}

.bed-probe-rows dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
