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

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 91, 86, 0.2), transparent 42rem),
    linear-gradient(180deg, #161a19 0%, #090b0b 72%);
}

button,
a {
  font: inherit;
}

.tool-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

.tool-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.eyebrow {
  margin: 0 0 10px;
  color: #a9b1aa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

button,
a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f0e8;
  padding: 10px 14px;
  text-decoration: none;
}

button:hover,
a:hover {
  background: rgba(255, 255, 255, 0.12);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.state-panel,
.table-wrap,
.summary {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.state-panel {
  padding: 28px;
}

.state-panel h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.state-panel p {
  margin: 0;
  color: #c1bab0;
}

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

.summary div {
  padding: 22px 24px;
}

.summary div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.summary span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
}

.summary p {
  margin: 6px 0 0;
  color: #a9b1aa;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: #a9b1aa;
  font-size: 0.78rem;
  text-transform: uppercase;
}

code {
  color: #dce7df;
}

.pr-link {
  display: inline-flex;
  max-width: min(42rem, 58vw);
  border: 0;
  background: transparent;
  padding: 0;
  color: #f3f0e8;
  font-weight: 750;
  line-height: 1.25;
}

.pr-link:hover {
  background: transparent;
  color: #f3b33e;
}

.error {
  color: #ffb4a8;
}

.empty {
  margin: 0;
  padding: 24px;
  color: #c1bab0;
}

@media (max-width: 700px) {
  .tool-shell {
    width: min(100% - 28px, 1120px);
    padding: 36px 0;
  }

  .tool-header {
    align-items: start;
    flex-direction: column;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .summary div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
