:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #64717d;
  --line: #dbe2e7;
  --surface: #ffffff;
  --soft: #f3f6f8;
  --brand: #006a71;
  --brand-dark: #004e54;
  --danger: #a62626;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand); }
.topbar { min-height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: #10252a; color: white; }
.brand { color: white; text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: .02em; }
.brand span { color: #87d9dc; font-weight: 550; }
.identity { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.logout { display: inline; }
.link-button { border: 0; padding: 0; color: #bdecee; background: transparent; cursor: pointer; text-decoration: underline; }
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 64px); }
nav { padding: 26px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.nav-link { display: block; margin-bottom: 6px; padding: 10px 12px; border-radius: 7px; color: #40505c; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: var(--brand-dark); background: #e7f4f4; font-weight: 650; }
main { width: 100%; max-width: 1320px; padding: 32px clamp(22px, 4vw, 58px) 70px; }
h1 { margin: 0 0 28px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.025em; }
h2 { margin: 0 0 8px; font-size: 20px; }
h3 { margin: 28px 0 12px; font-size: 16px; }
.muted, .hint { color: var(--muted); }
.hint { margin-top: -5px; font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 32px; }
.metrics article { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.metrics strong { display: block; font-size: 34px; }
.metrics span { color: var(--muted); }
.endpoint-card { margin: 0 0 32px; padding: 20px 22px; border: 1px solid #aed3d5; border-radius: 10px; background: #edf8f8; }
.endpoint-card h2 { margin-bottom: 6px; }
.endpoint-card code { display: block; margin: 10px 0; padding: 10px 12px; overflow-wrap: anywhere; border-radius: 6px; background: #10252a; color: #d5f4f5; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 28px 0 14px; }
.section-head p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #4f5e69; background: #f8fafb; font-size: 12px; text-transform: uppercase; letter-spacing: .045em; }
tr:last-child td { border-bottom: 0; }
td code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.empty { padding: 32px; color: var(--muted); text-align: center; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #e8f5ee; color: #275c3f; font-size: 12px; }
.button, button.button, .secondary, button.danger { display: inline-block; border: 0; border-radius: 7px; padding: 10px 15px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button, button.button { color: white; background: var(--brand); }
.button:hover { background: var(--brand-dark); }
.secondary { color: #40505c; background: #e8edef; }
button.danger { color: white; background: var(--danger); }
.wide { width: 100%; }
.panel { margin-bottom: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.caution { border-left: 4px solid #d7a62f; }
.danger-zone { border-left: 4px solid var(--danger); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
label { display: block; margin: 0 0 16px; font-weight: 650; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #b9c5cc; border-radius: 6px; color: var(--ink); background: white; font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #bce4e5; border-color: var(--brand); }
.checkbox { display: flex; align-items: center; gap: 9px; padding-top: 30px; }
.checkbox.compact { padding-top: 0; }
.checkbox input { width: auto; margin: 0; }
.actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.inline-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.inline-form label { flex: 1 1 280px; margin: 0; }
.token-actions { display: grid; gap: 8px; min-width: 250px; }
.token-actions .inline-form { align-items: end; }
.token-actions .inline-form label { min-width: 150px; }
.token-actions form:not(.inline-form) { display: inline-block; margin-right: 8px; }
.credential-box { margin: 16px 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; }
.credential-box > p:first-child { margin-top: 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #10252a; }
.login-card { width: min(100%, 420px); padding: 36px; border-radius: 12px; background: white; box-shadow: 0 24px 70px #0005; }
.login-card h1 { margin-bottom: 4px; }
.eyebrow { margin: 0; color: var(--brand); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-error { min-height: 24px; color: var(--danger); }
@media (max-width: 760px) {
  .layout { display: block; }
  nav { display: flex; overflow-x: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-link { margin: 0 5px 0 0; white-space: nowrap; }
  .topbar { padding: 0 16px; }
  .identity span { display: none; }
  main { padding: 24px 16px 50px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
