@import url("/tokens.css");
:root {
  color-scheme: dark;
  font:
    15px/1.55 system-ui,
    sans-serif;
  background: #0c1220;
  color: #edf1ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #3a486b;
  border-radius: 8px;
  background: #1b2740;
  color: inherit;
  padding: 9px 16px;
  min-height: 40px;
}
button:hover {
  background: #2b395b;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: #7c83ff;
  color: #0c1220;
  font-weight: 650;
  border-color: transparent;
}
input,
textarea,
select {
  border: 1px solid #455475;
  background: #0c1527;
  color: inherit;
  border-radius: 8px;
  padding: 12px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  width: 100%;
}
a {
  color: #abb2ff;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
p {
  margin: 0 0 16px;
}
.small,
small {
  font-size: 12px;
  color: #aab5d0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #aab5d0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.brand strong {
  font-size: 19px;
}
.brand small {
  display: block;
}
.sidebar {
  width: 252px;
  flex-shrink: 0;
  padding: 28px 20px;
  border-right: 1px solid #2d3a57;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  margin-bottom: 8px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
}
.sidebar nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
}
.sidebar nav button[aria-current="page"] {
  background: #252f50;
  border-color: #455475;
}
.sidebar .small {
  margin: 0;
}
main {
  padding: 32px 40px;
  flex: 1;
  min-width: 0;
  max-width: 1660px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.top p {
  margin: 0;
}
#status {
  color: #aab5d0;
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #18233a;
  border: 1px solid #324365;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.grid > .card {
  margin: 0;
}
.metric strong {
  display: block;
  font-size: 27px;
}
.metric span {
  color: #aab5d0;
  font-size: 13px;
}
.pill {
  border: 1px solid #53668c;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  display: inline-block;
  margin: 0 8px 8px 0;
}
.warning {
  color: #f6d199;
  border-left: 3px solid #c8a14d;
  padding: 8px 16px;
  background: #2a2630;
}
.success {
  color: #9fe0cb;
}
.key-values {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: 12px 24px;
  margin: 0;
}
.key-values dt {
  color: #aab5d0;
}
.key-values dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
td.hash {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 16ch;
  max-width: 32ch;
  font-family: ui-monospace, monospace;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #33435e;
}
th {
  color: #acb6d1;
}
td:first-child {
  padding-left: 0;
}
pre {
  background: #0b1424;
  border: 1px solid #324365;
  padding: 20px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 500px;
  overflow: auto;
  font: 13px/1.55 monospace;
}
.answer {
  white-space: pre-wrap;
  max-height: 440px;
  overflow: auto;
  line-height: 1.7;
}
.source {
  overflow-wrap: anywhere;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.presets button {
  font-size: 12px;
}
.lab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.lab-card {
  border: 1px solid #455475;
  border-radius: 8px;
  padding: 20px;
}
.lab-card a {
  display: inline-block;
  margin-right: 12px;
}
.login {
  max-width: 600px;
  align-self: flex-start;
  margin: 10vh auto;
  padding: 40px;
  background: #18233a;
  border: 1px solid #334365;
  border-radius: 16px;
  flex: none;
}
.login p {
  color: #aab5d0;
}
.login .form-field {
  margin-top: 32px;
}
dialog {
  background: #18233a;
  color: #edf1ff;
  border: 1px solid #455475;
  border-radius: 12px;
  padding: 32px;
  max-width: min(520px, calc(100vw - 32px));
}
dialog::backdrop {
  background: #0009;
}
:focus-visible {
  outline: 2px solid #adb2ff;
  outline-offset: 4px;
}
@media (max-width: 800px) {
  body {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    width: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid #33435e;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sidebar nav button {
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 8px;
  }
  .sidebar .brand {
    margin: 0;
  }
  .sidebar > .small {
    display: none;
  }
  .sidebar > #logout {
    align-self: flex-start;
  }
  main {
    padding: 24px 20px;
  }
  .key-values {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .key-values dd {
    margin-bottom: 12px;
  }
  .login {
    margin: 32px 16px;
    padding: 28px;
  }
  .top {
    gap: 16px;
  }
  h1 {
    font-size: 25px;
  }
}
@media (max-width: 600px) {
  .card {
    padding: 16px;
  }
  .table-wrap {
    overflow: visible;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    white-space: normal;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  tbody tr {
    padding: 12px 0;
    border-bottom: 1px solid #33435e;
  }
  td,
  td:first-child,
  td.hash {
    padding: 4px 0;
    border: 0;
    min-width: 0;
    max-width: none;
    overflow-wrap: anywhere;
  }
  td::before {
    content: attr(data-label);
    display: block;
    color: #acb6d1;
    font:
      12px/1.55 system-ui,
      sans-serif;
  }
  .overview-metrics {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
details > summary {
  cursor: pointer;
  padding: 8px 0;
  color: #b9c2e1;
}
details[open] > .key-values {
  margin: 16px 0 24px;
}
.card > .small {
  margin-top: 16px;
}
.presets {
  gap: 12px;
}
.hash-value {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}
.hash-value details {
  min-width: 0;
  flex: 1;
  font-family: ui-monospace, monospace;
}
.hash-value summary {
  padding: 8px 0;
}
.hash-value code {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.hash-value button {
  flex-shrink: 0;
  padding: 8px 12px;
}
.lab-card p {
  margin-bottom: 12px;
}
@media (max-width: 1000px) {
  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
