/* rndproj additions to Pico.css */
:root {
    --rnd-ok: #1b7f3b;
    --rnd-warn: #a15c00;
    --rnd-bad: #b3261e;
}

body > header nav { flex-wrap: wrap; }
body > header .brand { font-weight: 700; text-decoration: none; }
body > header form { margin: 0; }
body > header form button { padding: .35rem .8rem; margin: 0; }
main.container { padding-top: 1rem; }

.flash { padding: .75rem 1rem; border-radius: var(--pico-border-radius); margin-bottom: 1rem; border-left: 4px solid; background: var(--pico-card-background-color); }
.flash-success { border-color: var(--rnd-ok); }
.flash-info { border-color: var(--pico-primary); }
.flash-warning { border-color: var(--rnd-warn); }
.flash-error { border-color: var(--rnd-bad); }

.badge { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; font-size: .8rem; border: 1px solid currentColor; white-space: nowrap; }
.badge-active { color: var(--rnd-ok); }
.badge-paused, .badge-pending_approval, .badge-invited { color: var(--rnd-warn); }
.badge-suspended, .badge-removed { color: var(--rnd-bad); }

.auth-card { max-width: 28rem; margin: 2rem auto; }
.qr svg { width: 220px; height: 220px; background: #fff; padding: .5rem; border-radius: var(--pico-border-radius); }
.secret { font-family: var(--pico-font-family-monospace); letter-spacing: .1em; word-break: break-all; }
.codes { columns: 2; font-family: var(--pico-font-family-monospace); font-size: 1.1rem; list-style: none; padding: 0; }
.codes li { list-style: none; }
.link-box { font-family: var(--pico-font-family-monospace); font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions form { margin: 0; }
.actions button { margin: 0; }
.muted { color: var(--pico-muted-color); }
.terms-body { white-space: pre-wrap; max-height: 24rem; overflow-y: auto; padding: 1rem; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); }
pre.json { font-size: .75rem; margin: 0; padding: .4rem; max-width: 22rem; overflow-x: auto; }
.table-wrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; }
.stats article { margin: 0; padding: 1rem; text-align: center; }
.status-ok { color: var(--rnd-ok); }
.status-warn { color: var(--rnd-warn); }
.status-fail { color: var(--rnd-bad); font-weight: 700; }
.status-info { color: var(--pico-muted-color); }
.diag-status { width: 4.5rem; }
.stats strong { display: block; font-size: 1.6rem; }

/* Line chart (single series). Colours from the validated reference palette; dark mode has its own steps. */
.viz-root { --series-1: #2a78d6; --grid: #d7dce3; --zero: #8a929c; --text-muted: #5f6670; --surface-1: #ffffff; position: relative; margin: 1rem 0; }
@media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) .viz-root { --series-1: #3987e5; --grid: #2c333d; --zero: #6b7480; --text-muted: #a6adb7; --surface-1: #13171f; }
}
:root[data-theme="dark"] .viz-root { --series-1: #3987e5; --grid: #2c333d; --zero: #6b7480; --text-muted: #a6adb7; --surface-1: #13171f; }
.viz-root svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.viz-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-grid { stroke: var(--grid); stroke-width: 1; }
.viz-zero { stroke: var(--zero); stroke-width: 1; }
.viz-tick { fill: var(--text-muted); font-size: 11px; }
.viz-crosshair { stroke: var(--text-muted); stroke-width: 1; }
.viz-hover-dot { fill: var(--series-1); stroke: var(--surface-1); stroke-width: 2; }
.viz-point { fill: transparent; }
.viz-tooltip { position: absolute; top: 0; transform: translateX(-50%); background: var(--pico-card-background-color); border: 1px solid var(--pico-muted-border-color); border-radius: 6px; padding: .2rem .5rem; font-size: .8rem; white-space: nowrap; pointer-events: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.report-nav { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: 1rem; }
.report-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }

/* One-time codes shown to copy (Telegram link). */
code.big {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    padding: 0.25rem 0.75rem;
}
