* { box-sizing: border-box; }
:root { color-scheme: light; font: 15px/1.55 "Segoe UI", system-ui, sans-serif; color: #172640; background: #f1f5fa; }
body { margin: 0; }
a { color: #174fbb; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { border: 1px solid #174fbb; border-radius: 7px; padding: .55rem .9rem; background: #174fbb; color: #fff; font-weight: 650; }
button.secondary { color: #294665; background: #fff; border-color: #b7c5d7; }
button.danger { color: #952333; background: #fff2f1; border-color: #e3adb2; }
:focus-visible { outline: 3px solid #408bff; outline-offset: 3px; }
h1, h2, p { margin: 0 0 .8rem; }
h1 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; }
h2 { font-size: 1.12rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
aside { display: flex; flex-direction: column; gap: 1.75rem; background: #111e32; color: #fff; padding: 1.4rem 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; padding: .15rem .35rem; }
.brand strong { display: block; font-size: 1.4rem; line-height: 1.1; }
.brand small { color: #cfdaea; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #5790cb; border-radius: 11px; background: #203d64; color: #a2eeff; font-size: 1.6rem; }
nav { display: grid; gap: .3rem; }
nav a { color: #dce6f4; text-decoration: none; padding: .65rem .9rem; border-radius: 7px; }
nav a:hover, nav a[aria-current="page"] { background: #25477e; color: white; }
nav a[aria-current="page"] { box-shadow: inset 3px 0 #7dacff; }
.signout { margin-top: auto; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: .75rem clamp(1rem, 4vw, 2.4rem); background: #fff; border-bottom: 1px solid #dce5ef; color: #4e6079; }
.content { padding: clamp(1rem, 4vw, 2.4rem); max-width: 1540px; margin: auto; display: grid; gap: 1rem; }
.content > h1 { margin-bottom: .2rem; }
.card, .banner { padding: 1.35rem; border: 1px solid #dbe4ef; border-radius: 11px; background: #fff; min-width: 0; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #e6efff; border-color: #d4e3ff; }
.banner p { margin: .2rem 0 0; color: #445d7e; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .8rem; }
.metric h2 { color: #52657e; font-size: .78rem; letter-spacing: .035em; text-transform: uppercase; }
.metric strong { font-size: 1.9rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.stack { display: grid; gap: 1rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; }
.row + .row, .key + .key { border-top: 1px solid #e2e8f1; }
.page-name { font-size: 1.65rem; }
.badge { display: inline-block; padding: .25rem .55rem; border-radius: 1rem; font-size: .8rem; font-weight: 650; }
.good { background: #e8f5ef; color: #22644e; }
.warn, .notice { background: #fff2df; color: #78421e; }
.notice { padding: .8rem; border-radius: 7px; }
.muted { color: #52657e; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .88rem; }
th, td { padding: .65rem .55rem; border-bottom: 1px solid #e2e8f1; vertical-align: top; }
th { color: #52657e; }
code, .wrap, dd { overflow-wrap: anywhere; }
label { display: grid; gap: .3rem; }
input:not([type=checkbox]), select { min-width: 0; width: 100%; border: 1px solid #b7c5d7; border-radius: 6px; padding: .48rem .65rem; background: #fff; color: #172640; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem; align-items: end; padding: .65rem 0; }
fieldset { margin: 0; padding: .5rem; border: 1px solid #dbe4ef; border-radius: 6px; grid-column: 1 / -1; }
.scopes, .actions { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; }
.scopes label, .check { display: flex; align-items: center; }
.key, details { padding: .7rem 0; }
summary { color: #174fbb; font-weight: 650; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; }
.facts dd { margin: 0; font-weight: 600; }
.card > form, .card > a { margin-top: .6rem; }
.login { width: min(440px, calc(100% - 2rem)); margin: clamp(2rem, 15vh, 9rem) auto; }
.login .brand-mark { margin-bottom: 1rem; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .6rem; background: white; }
.skip:focus { top: 1rem; }
@media (max-width: 950px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
    .shell { grid-template-columns: 1fr; }
    aside { gap: .7rem; }
    nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .banner { flex-direction: column; align-items: flex-start; }
}
