/* Diagnostic overlay (?diag=1). Inline style attributes are blocked by the
   deployed CSP (style-src-attr), so everything lives here. */

.diag-open-button {
    position: fixed;
    left: 8px;
    bottom: 8px;
    z-index: 9999;
    background: #b00;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    opacity: 0.85;
}

.diag-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    color: #0f0;
    display: flex;
    flex-direction: column;
    font-family: monospace;
    font-size: 11px;
}

.diag-toolbar {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #111;
    flex-shrink: 0;
}

.diag-toolbar button {
    padding: 4px 8px;
}

.diag-count {
    margin-left: auto;
    align-self: center;
    color: #999;
}

.diag-log {
    margin: 0;
    padding: 8px;
    overflow: auto;
    white-space: pre-wrap;
    flex: 1;
}
