:root {
  --ink: #111d31;
  --muted: #506078;
  --faint: #65768e;
  --nav: #101c32;
  --nav-hover: #213451;
  --canvas: #f3f6fa;
  --panel: #fff;
  --border: #dbe3ee;
  --soft: #eef3f9;
  --blue: #1654c4;
  --blue-deep: #10459f;
  --blue-light: #eaf2ff;
  --green: #146c46;
  --green-light: #e3f3eb;
  --amber: #875209;
  --amber-light: #fff1d7;
  --red: #9e352e;
  --red-light: #fceeee;
  --radius: 10px;
  --shadow: 0 1px 2px #12223a08;
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #3d81ff; outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); letter-spacing: -.04em; line-height: 1.18; font-weight: 760; }
h2 { font-size: 1.13rem; letter-spacing: -.015em; line-height: 1.35; }
h3 { font-size: 1rem; line-height: 1.4; }
small { font-size: .82rem; }
svg { flex: none; width: 1.25em; height: 1.25em; vertical-align: middle; }
.skip { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; color: var(--nav); background: white; border-radius: 6px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.topbar { position: sticky; z-index: 4; top: 0; height: 64px; background: var(--nav); display: flex; justify-content: space-between; align-items: center; padding: 0 24px; border-bottom: 1px solid #2d3c53; color: white; gap: 12px; }
.brand { color: white; display: inline-flex; align-items: center; gap: 11px; min-width: 0; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand strong, .brand small { display: block; overflow: hidden; text-overflow: ellipsis; }
.brand strong { font-size: 1.13rem; line-height: 1.35; letter-spacing: -.02em; }
.brand small { color: #bac7dc; line-height: 1.35; }
.brand-mark { display: grid; place-items: center; color: #fff; width: 36px; height: 36px; background: #245bc0; border-radius: 8px; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-who { display: flex; gap: 9px; align-items: center; min-width: 0; }
.account-name { min-width: 0; line-height: 1.25; }
.account-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.account-name small { color: #b7c5dc; }
.avatar { display: grid; place-items: center; border: 1px solid #405579; width: 32px; height: 32px; border-radius: 50%; color: #dbe8ff; background: #253b5d; flex: none; font-size: .8rem; font-weight: 700; }
.top-icon { display: grid; place-items: center; flex: none; border: 1px solid #3d4e69; border-radius: 7px; height: 36px; width: 36px; color: #e9f0ff; background: transparent; }
.top-icon:hover { background: var(--nav-hover); }
.mobile-only { display: none; }
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100dvh - 64px); }
.sidebar { position: sticky; top: 64px; height: calc(100dvh - 64px); overflow-y: auto; padding: 23px 12px; background: var(--nav); }
.sidebar nav { display: grid; gap: 5px; }
.sidebar a { color: #cbd6e8; display: flex; align-items: center; gap: 11px; padding: 10px 11px; min-height: 42px; border: 1px solid transparent; border-radius: 7px; font-weight: 600; }
.sidebar a:hover { text-decoration: none; background: var(--nav-hover); color: white; }
.sidebar a[aria-current="page"] { background: #294779; border-color: #3f63a0; color: #fff; }
.sidebar a svg { color: #bdd2f3; }
.sidebar a[aria-current="page"] svg { color: #fff; }
.sidebar hr { width: calc(100% - 20px); border: 0; border-top: 1px solid #39485f; margin: 11px 10px; }
main { max-width: 1680px; width: 100%; margin: 0 auto; padding: 28px clamp(15px, 2.45vw, 38px) 40px; min-width: 0; }
main:focus { outline: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 22px; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-head .actions { justify-content: flex-end; flex: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--border); color: var(--ink); border-radius: 7px; background: #fff; font-weight: 650; line-height: 1.25; white-space: nowrap; text-decoration: none; }
.button:hover { text-decoration: none; background: var(--soft); }
.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.button.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.button.quiet { background: transparent; border: 0; color: var(--muted); }
.button.quiet:hover { background: var(--soft); color: var(--ink); }
.button.danger { color: var(--red); border-color: #ebc9c6; }
.button.danger:hover { background: var(--red-light); }
.icon-button { min-width: 36px; padding: 6px; }
.link { padding: 0; background: transparent; border: 0; color: var(--blue); font-weight: 650; text-align: left; }
.link:hover { text-decoration: underline; }
.text-link { color: var(--blue); font-weight: 650; white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.stat, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.stat { padding: 14px; display: flex; align-items: flex-start; gap: 10px; }
.stat-icon { display: grid; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 7px; width: 34px; height: 34px; flex: none; font-size: 1.06rem; }
.stat-icon.amber { background: var(--amber-light); color: var(--amber); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-name { color: var(--muted); font-size: .81rem; font-weight: 650; line-height: 1.3; }
.stat-value { display: block; font-size: clamp(1.12rem, 1.65vw, 1.53rem); word-break: normal; overflow-wrap: anywhere; line-height: 1.2; font-weight: 760; margin: 4px 0; letter-spacing: -.025em; }
.stat-help, .muted, .subline { color: var(--muted); }
.stat-help, .subline { font-size: .82rem; overflow-wrap: anywhere; }
.split-3, .split-2, .stack { display: grid; gap: 15px; align-items: start; }
.split-3 { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
.split-2 { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
.spaced { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 49px; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.panel-head h2 { display: flex; align-items: center; gap: 8px; }
.panel-head h2 svg { color: var(--blue); }
.panel-content { padding: 15px; min-width: 0; }
.panel-content > * + * { margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
thead { color: var(--muted); background: #f5f7fb; font-size: .79rem; }
th, td { padding: 9px 13px; vertical-align: top; }
th { font-weight: 700; }
tbody tr + tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: #f9fbff; }
td .subline, .rows .subline { display: block; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; color: var(--muted); background: var(--soft); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge.good { background: var(--green-light); color: var(--green); }
.badge.warn { background: var(--amber-light); color: var(--amber); }
.badge.bad { background: var(--red-light); color: var(--red); }
.badge.info { background: var(--blue-light); color: var(--blue); }
.rows { list-style: none; padding: 0; }
.rows > li { padding: 10px 14px; display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.rows > li + li { border-top: 1px solid var(--border); }
.row-main { min-width: 0; overflow-wrap: anywhere; }
.row-main strong { line-height: 1.3; }
.rows time, .nowrap { white-space: nowrap; }
.row-side { text-align: right; flex: none; }
.empty { color: var(--muted); padding: 20px 15px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }
.loading { color: var(--muted); padding: 15px 0; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 15px; }
.filters > label { min-width: 150px; }
.filters > label:first-child { flex: 1 1 240px; }
label { display: grid; gap: 5px; color: var(--ink); font-weight: 650; font-size: .91rem; }
input, select, textarea { width: 100%; border: 1px solid #bdcadd; border-radius: 7px; padding: 8px 10px; color: var(--ink); background: white; font-weight: 400; min-width: 0; }
textarea { min-height: 96px; resize: vertical; }
input[type="checkbox"] { width: auto; margin: 0 6px 0 0; vertical-align: middle; }
fieldset { border: 1px solid var(--border); border-radius: 7px; padding: 12px; margin: 0; min-width: 0; }
legend { padding: 0 5px; font-weight: 700; }
.form { display: grid; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.form-help, .form-error { font-size: .84rem; color: var(--muted); font-weight: 400; }
.form-error { color: var(--red); }
.flow > * + * { margin-top: 12px; }
pre, .endpoint { background: #eef3fb; border: 1px solid #dae5f7; border-radius: 7px; padding: 10px 12px; color: #162f54; margin: 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.endpoint { display: flex; align-items: center; gap: 8px; }
.endpoint .icon-button { margin-left: auto; }
.callout { padding: 11px 13px; background: var(--blue-light); border-radius: 7px; color: #20426f; }
.callout.error { color: var(--red); background: var(--red-light); }
.callout.warning { color: var(--amber); background: var(--amber-light); }
.section-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.citations { padding-left: 19px; color: var(--muted); }
.citations li + li { margin-top: 4px; }
.compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.compare > section { background: var(--canvas); border: 1px solid var(--border); padding: 12px; border-radius: 7px; min-width: 0; }
.compare h3 { margin-bottom: 8px; }
.date-line { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.detail-list { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 5px 12px; margin: 0; }
.detail-list dt { font-weight: 650; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 28px); padding: 0; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px #0d1a3c40; }
dialog::backdrop, .scrim { background: #0b142a88; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; position: sticky; z-index: 1; top: 0; gap: 10px; padding: 11px 17px; border-bottom: 1px solid var(--border); background: white; }
#dialog-body { padding: 17px; }
.toast-region { position: fixed; z-index: 9; bottom: 18px; right: 18px; max-width: min(420px,calc(100vw - 36px)); }
.toast-region p { padding: 10px 14px; border-radius: 8px; background: var(--nav); color: white; box-shadow: 0 5px 15px #1232; overflow-wrap: anywhere; }
.toast-region p + p { margin-top: 7px; }
.signin { max-width: 475px; margin: 8vh auto 0; }
.signin .panel-content { padding: 25px; }
.scrim { display: none; }
@media (max-width: 1240px) {
  .stat { padding: 11px; gap: 8px; }
  .stat-icon { width: 29px; height: 29px; }
  .layout { grid-template-columns: 184px minmax(0,1fr); }
}
@media (max-width: 1040px) {
  .stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .split-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split-3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar { height: 58px; padding: 0 12px; }
  .mobile-only { display: grid; }
  .layout { display: block; min-height: calc(100dvh - 58px); }
  .sidebar { display: none; z-index: 4; position: fixed; left: 0; top: 58px; width: min(235px, 82vw); height: calc(100dvh - 58px); box-shadow: 6px 0 24px #0d183c30; }
  .sidebar.open, .scrim:not([hidden]) { display: block; }
  .scrim { position: fixed; inset: 58px 0 0; z-index: 3; border: 0; }
  main { padding: 19px 12px 27px; }
  .account-name { display: none; }
  .top-actions { gap: 7px; }
}
@media (max-width: 520px) {
  .page-head { flex-wrap: wrap; margin-bottom: 15px; }
  .page-head .actions { justify-content: flex-start; }
  .brand { gap: 8px; }
  .brand strong { font-size: .96rem; }
  .brand small { font-size: .67rem; }
  .brand-mark { width: 30px; height: 30px; }
  .avatar { display: none; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .split-2, .split-3, .compare { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .split-3 > :last-child { grid-column: auto; }
  th, td { padding: 8px 9px; }
}
.layout.signed-out { display: block; }
.signed-out .sidebar { display: none; }
.back-link { margin-bottom: 9px; }
.check-field { display: block; margin: 5px 0; }
.check-field input + small, .check-field .subline { display: inline; margin-left: 7px; }
@media (max-width: 520px) {
  .stat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
