:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #eef2f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 12%, rgba(31, 141, 214, 0.22), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(52, 211, 153, 0.16), transparent 28%),
    linear-gradient(135deg, #0d1117 0%, #101820 48%, #071112 100%);
}

button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 14px;
  background: #1f6feb;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid #8bd3ff;
  outline-offset: 2px;
}

button + button {
  background: rgba(255, 255, 255, 0.08);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.05;
}

h2 {
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary > div,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(11, 18, 27, 0.78);
}

.summary > div {
  padding: 16px;
}

.label {
  display: block;
  color: #9fb1c5;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.summary strong {
  font-size: 24px;
}

.panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

#status {
  color: #9fb1c5;
  text-align: right;
}

.tableWrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #9fb1c5;
  font-size: 12px;
  text-transform: uppercase;
}

.token strong {
  display: block;
  font-size: 16px;
}

.token span {
  color: #9fb1c5;
  display: block;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  margin-top: 5px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  border-radius: 999px;
  font-weight: 900;
}

.score.low {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}

.score.mid {
  background: rgba(250, 204, 21, 0.16);
  color: #fde68a;
}

.score.high {
  background: rgba(52, 211, 153, 0.16);
  color: #86efac;
}

.pill {
  display: inline-block;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9d6e3;
  font-size: 12px;
}

@media (max-width: 760px) {
  .toolbar,
  .panelHead {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    justify-content: stretch;
  }

  .actions button {
    flex: 1;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 34px;
  }
}
