:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #142c32;
    background: #eff4f3;
    --ink: #142c32;
    --muted: #536970;
    --border: #d3dfde;
    --accent: #12664f;
    --surface: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.055em; line-height: 1.15; }
h2 { font-size: 1.15rem; letter-spacing: -.02em; }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #15896e; outline-offset: 3px; }
.shell { width: min(100% - 2rem, 78rem); margin-inline: auto; }
.topbar { background: #102f36; color: #f4fffd; border-bottom: 1px solid #25464b; }
.topbar-inner, .section-heading, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.topbar-inner { min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; text-decoration: none; letter-spacing: -.025em; }
.mark { color: #a9eacb; font-size: 1.45rem; line-height: 1; }
.dashboard { padding-block: 2.2rem 4rem; display: grid; gap: 1rem; }
.page-heading { margin-bottom: .3rem; align-items: end; }
.eyebrow { font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: .4rem; }
.live { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; }
.live > span:first-child { width: .55rem; height: .55rem; border-radius: 50%; background: #15916b; }
.setup-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: .9rem; padding: clamp(1rem, 3vw, 1.45rem); min-width: 0; }
.muted { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.panel > .muted { margin-top: .55rem; }
.stack { display: grid; gap: .8rem; margin-top: .85rem; }
.stack > button { justify-self: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
label { display: block; font-size: .875rem; font-weight: 650; min-width: 0; }
input { display: block; width: 100%; margin-top: .3rem; border: 1px solid #b8cbca; border-radius: .45rem; padding: .58rem .65rem; color: var(--ink); background: #fbfdfc; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid #bfd1ce; border-radius: .45rem; color: var(--ink); background: #f6faf9; padding: .55rem .82rem; font-weight: 650; cursor: pointer; }
.button:hover { background: #e6f1ee; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: #0e553f; }
.button:disabled { cursor: default; opacity: .55; }
.button.subtle { background: transparent; color: inherit; border-color: currentColor; }
.button.compact { padding: .35rem .55rem; font-size: .78rem; }
.button.danger, .validation, .error { color: #9b2929; }
.text-button { cursor: pointer; border: 0; padding: .4rem 0; background: transparent; color: var(--accent); text-decoration: underline; font-size: .78rem; }
.message { background: #e3f4ea; border: 1px solid #b6d9c8; padding: .7rem .9rem; border-radius: .5rem; }
.message.error { background: #ffefed; border-color: #eac0bd; }
.validation:empty, .validation-summary-valid { display: none; }
.count, .badge { border-radius: 1rem; background: #eaf0f0; font-weight: 650; font-size: .75rem; padding: .19rem .5rem; white-space: nowrap; }
.badge.healthy { background: #d7f1e5; color: #155d46; }
.badge.warning { background: #ffefd0; color: #7c4a11; }
.table-scroll { overflow: auto; margin-top: .6rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th { font-size: .78rem; color: var(--muted); font-weight: 700; white-space: nowrap; padding: .8rem .65rem; }
td { vertical-align: top; border-top: 1px solid var(--border); padding: .78rem .65rem; font-size: .9rem; }
td small, label small { color: var(--muted); }
td small { display: block; margin-block: .25rem; }
td strong { overflow-wrap: anywhere; }
td code { white-space: nowrap; }
.actions { display: flex; align-items: start; gap: .32rem; flex-wrap: wrap; min-width: 9rem; }
.empty { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .9rem; color: var(--muted); }
.connection { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: .85rem; }
dt { font-size: .8rem; margin-bottom: .25rem; color: var(--muted); }
dd { overflow-wrap: anywhere; }
.footnote { border-top: 1px solid var(--border); padding-top: .65rem; }
.login { max-width: 28rem; padding-top: clamp(2rem, 12vh, 6rem); }
.login h1 { font-size: 1.75rem; }
@media (max-width: 46rem) {
    .setup-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard { padding-top: 1.4rem; }
}
@media (max-width: 24rem) {
    .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
    :root { color-scheme: dark; color: #e3f0ef; background: #111f23; --ink: #e3f0ef; --muted: #a5bdc1; --accent: #7dd9b4; --surface: #192c31; --border: #355158; }
    input { background: #13272b; border-color: #587177; }
    .button { background: #253e43; border-color: #5a767b; }
    .button:hover { background: #35545a; }
    .button.primary { color: #102f28; }
    .button.primary:hover { background: #a8e9cd; }
    .count, .badge { background: #2d454a; }
    .message { background: #213e35; border-color: #496e5f; }
    .button.danger, .validation, .error { color: #ffafaa; }
    .message.error { background: #472b2b; border-color: #78504d; }
}
