:root {
    color-scheme: light;
    --ink: #14243c;
    --muted: #52627a;
    --line: #dfe6ef;
    --accent: #174ed0;
    --nav: #101f37;
    --paper: #f3f6fb;
    font: 15px/1.55 Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
button, input, select { font: inherit; }
h1, h2, p { margin: 0 0 .8rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.06em; }
h2 { font-size: 1.12rem; letter-spacing: -.025em; }
small, .muted, .empty, dt { color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .13em; color: var(--muted); text-transform: uppercase; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; background: var(--nav); color: #fff; display: flex; flex-direction: column; gap: 42px; }
.brand { text-decoration: none; color: inherit; display: flex; gap: 12px; align-items: center; font-size: 1.15rem; font-weight: 750; line-height: 1.25; }
.brand small { display: block; font-size: .76rem; font-weight: 500; }
.sidebar .brand small, .identity span { color: #b6c6de; }
.mark { display: grid; place-items: center; width: 39px; height: 39px; background: #2862eb; color: #fff; border-radius: 10px; font: 800 1.2rem/1 system-ui; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { color: #cbdbef; text-decoration: none; font-weight: 600; border-radius: 7px; padding: 9px 12px; }
.sidebar nav a[aria-current], .sidebar nav a:hover { color: white; background: #213b61; }
.identity { margin-top: auto; border-top: 1px solid #314660; padding-top: 15px; overflow-wrap: anywhere; }
.identity span { display: block; font-size: .85rem; }
.identity-links { display: flex; align-items: baseline; gap: 12px; margin-top: .55rem; }
.identity-links a, .identity-links .link { color: #deebfb; font-size: .8rem; }
.identity-links form { margin: 0; }
main { padding: clamp(22px, 4vw, 56px); max-width: 1400px; width: 100%; min-width: 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-heading h1:last-child, .page-heading p:last-child { margin-bottom: 0; }
.page-heading p { color: var(--muted); }
.back { display: inline-block; margin-bottom: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(15px, 2.5vw, 24px); margin-bottom: 16px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 22px; }
.stats div { padding: 16px 12px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 2rem; line-height: 1.2; letter-spacing: -.05em; }
.stats strong small { font-size: 1.05rem; }
.stats span { color: var(--muted); font-size: .84rem; }
.scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td small { display: block; }
.row-title { font-weight: 700; color: var(--ink); }
.status { display: inline-block; padding: .15rem .56rem; border-radius: 5px; background: #edf1f6; font-size: .77rem; font-weight: 690; white-space: nowrap; }
.good { color: #125645; background: #dff4eb; }
.danger { color: #8a2630; background: #fae6e8; }
.waiting { color: #76500f; background: #fff2d9; }
.tabs, .filters { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 17px; }
.tabs { border-bottom: 1px solid var(--line); }
.tabs a, .filters a { padding: 7px 9px; color: var(--muted); text-decoration: none; font-weight: 650; }
.tabs a[aria-current] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.filters a[aria-current] { background: #e7efff; border-radius: 6px; color: var(--accent); }
.activity-heading, .activity-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; }
.activity-heading { justify-content: space-between; margin-bottom: .8rem; }
.activity-heading form, .activity-meta, .activity-loading { margin: 0; }
.activity-loading { flex-basis: 100%; }
.activity-heading button:disabled { cursor: wait; opacity: .65; }
button, .button { padding: .48rem .8rem; border: 1px solid #b8c7db; border-radius: 7px; color: var(--ink); background: white; font-weight: 650; line-height: 1.4; cursor: pointer; text-decoration: none; display: inline-block; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
button:hover, .button:hover { filter: brightness(.94); }
.danger-button { color: #8a2630; }
.link { border: 0; background: transparent; padding: 0; text-decoration: underline; font-weight: 500; }
form { margin-top: .75rem; }
.fields, .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 12px; }
label { display: block; color: var(--muted); font-size: .87rem; font-weight: 650; margin-bottom: 10px; }
input:not([type=checkbox]), select { display: block; width: 100%; border: 1px solid #aebed3; color: var(--ink); background: #fff; border-radius: 7px; min-height: 40px; padding: .5rem .6rem; margin-top: 4px; }
.check { display: flex; gap: .55rem; align-items: baseline; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.facts { gap: 20px; }
summary { cursor: pointer; font-weight: 660; }
.record { padding: .72rem 0; border-top: 1px solid var(--line); }
.record:first-of-type { margin-top: .8rem; }
.record summary .status { margin-left: .5rem; }
.record p, .record form { margin: .65rem 0; }
.list-row { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: .7rem 0; }
.list-row a { overflow-wrap: anywhere; }
.notice { border-left: 3px solid #af3d48; padding: .55rem .75rem; background: #fff2f2; overflow-wrap: anywhere; }
.empty { padding-top: .45rem; }
.findings { margin: 0; padding-left: 1.15rem; }
.findings code { display: block; }
pre, .wrap, .findings { white-space: pre-wrap; overflow-wrap: anywhere; }
.narrow { max-width: 490px; }
.anonymous main { min-height: 100vh; max-width: none; display: grid; place-items: center; }
.login { width: min(100%, 410px); padding: clamp(20px, 5vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.login .brand { margin-bottom: 32px; }
.login .primary { margin-top: 9px; }
:focus-visible { outline: 3px solid #ed9e15; outline-offset: 3px; }
@media (max-width: 740px) {
    .shell { display: block; }
    .sidebar { position: static; height: auto; gap: 14px; padding: 16px; }
    .sidebar nav { display: flex; flex-wrap: wrap; }
    .sidebar nav a { padding: 5px 8px; }
    .identity { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
    .identity-links { margin-top: 3px; }
}
@media (max-width: 445px) {
    .fields, .facts { grid-template-columns: 1fr; }
    .page-heading { align-items: start; flex-wrap: wrap; }
    th, td { padding-inline: 7px; }
}

textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    border: 1px solid #aebed3;
    border-radius: 7px;
    padding: .55rem .65rem;
    font: inherit;
    resize: vertical;
}
