:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #193247;
  background: #f5f7fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: #075b94;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 44px;
  border: 1px solid #164e63;
  border-radius: 8px;
  background: #164e63;
  color: #fff;
  padding: 9px 16px;
  cursor: pointer;
}
button.secondary {
  background: #fff;
  color: #164e63;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #8395a5;
  border-radius: 6px;
  background: #fff;
  color: #193247;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
label small {
  display: block;
  font-weight: 400;
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  margin: 0 0 12px;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
}
p {
  margin: 8px 0 16px;
}
header {
  min-height: 72px;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid #d7e0e8;
  display: flex;
  align-items: center;
  gap: 24px;
}
header button {
  margin-left: auto;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: #164e63;
}
.layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
}
.layout > nav {
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.layout > nav a {
  display: block;
  padding: 11px 14px;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
  color: #36536a;
}
.layout > nav a[aria-current="page"] {
  background: #dceef2;
  color: #104354;
  font-weight: 750;
}
main {
  padding: 32px clamp(16px, 4vw, 52px);
  min-width: 0;
}
.heading {
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #546c80;
}
.connection,
.panel,
.help,
.card {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}
.connection h2 {
  margin-top: 0;
}
.connection form,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.muted,
small {
  color: #526779;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}
.card {
  margin: 0;
}
.stat {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 750;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.span-all {
  grid-column: 1/-1;
}
#state {
  padding: 14px 18px;
  margin: 20px 0;
  border-left: 4px solid #879dab;
  background: #e8eef3;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
#state[data-state="ready"] {
  border-color: #13755b;
  background: #e3f3eb;
}
#state[data-state="error"],
#state[data-state="denied"] {
  border-color: #a62f2f;
  background: #fdeeee;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
  margin-top: 16px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #dce3eb;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  background: #f0f5f8;
  font-size: 14px;
}
code,
pre {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}
pre {
  padding: 16px;
  background: #eff4f7;
  max-height: 480px;
  overflow: auto;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: #e8eef3;
  font-size: 14px;
  font-weight: 650;
}
.badge[data-status="PASS"] {
  background: #dbf1e5;
  color: #175b3b;
}
.badge[data-status="FAIL"] {
  background: #fce0e0;
  color: #8d2525;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 650;
}
fieldset {
  border: 1px solid #bac9d4;
  border-radius: 8px;
  margin: 12px 0;
  padding: 14px;
}
fieldset label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 4px 18px 4px 0;
}
fieldset input {
  width: 20px;
  min-height: 20px;
}
footer {
  max-width: 1200px;
  margin: 24px auto;
  padding: 24px;
  text-align: center;
  color: #536d7f;
  font-size: 14px;
}
:focus-visible {
  outline: 3px solid #bc6000;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -80px;
  padding: 12px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.help {
  margin-top: 28px;
  background: #f0f5f8;
}
.error-text {
  color: #922626;
}
ul {
  padding-left: 22px;
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 800px) {
  header {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  header > span {
    font-size: 14px;
  }
  .layout {
    display: block;
  }
  .layout > nav {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-bottom: 1px solid #d7e0e8;
  }
  .layout > nav a {
    font-size: 14px;
    padding: 9px 10px;
  }
  main {
    padding: 24px 16px;
  }
  .connection form,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .connection,
  .panel,
  .help {
    padding: 18px;
  }
  .stat {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  header,
  .connection,
  nav,
  .actions,
  button,
  .help {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    padding: 0;
  }
  body {
    background: #fff;
  }
  .panel {
    break-inside: avoid;
  }
}
:root [hidden] {
  display: none !important;
}
.table-wrap table {
  min-width: 600px;
}
.connection.connected .muted {
  display: none;
}
.connection.connected h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.connection.connected {
  padding: 16px 20px;
}
.connection.connected #identity {
  margin: 0;
  overflow-wrap: anywhere;
}
