.mlops-dashboard {
    --dashboard-gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h1 {
    margin-bottom: 0.5rem;
}

.subtitle {
    max-width: 600px;
    font-size: 0.9rem;
}

.point-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.point-input h2,
.density-panel h2 {
    margin: 0 0 0.75rem;
    color: var(--text-tertiary);
    font-size: 1.05rem;
}

#clickCanvas {
    display: block;
    width: min(400px, 100%);
    height: auto;
    aspect-ratio: 1;
    cursor: crosshair;
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(24, 27, 22, 0.03);
}

.clear-button {
    margin-top: 1rem;
    
}

.clear-button::part(base) {
    background-color: var(--surface);
}

.clear-button::part(base):hover {
    background-color: var(--surface-hover);
    border-color: var(--button);
    color: var(--button);
}

.dashboard-status {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.mlops-service-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.75rem 0 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.mlops-status-light {
    width: 0.6rem;
    height: 0.6rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--muted);
}

.mlops-status-light--checking {
    background: #c58b28;
}

.mlops-status-light--online {
    background: #4d8d55;
}

.mlops-status-light--warning {
    background: #c58b28;
}

.mlops-status-light--offline {
    background: #b34b4b;
}

.density-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--dashboard-gap);
    margin-top: 2.5rem;
    width: 100%;
}

.density-panel {
    min-width: 0;
    padding: 1rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.plotly-wrapper {
    width: 100%;
    height: 340px;
    min-height: 340px;
}

.plotly-wrapper .js-plotly-plot,
.plotly-wrapper .plot-container,
.plotly-wrapper .svg-container {
    width: 100% !important;
    height: 100% !important;
}


.dashboard-note {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .density-grid {
        grid-template-columns: 1fr;
    }

    .plotly-wrapper {
        height: 360px;
        min-height: 360px;
    }
}

.mlops-dashboard hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--border);
}