:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #121212;
  color: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #121212;
}

.shell {
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: 2rem;
}

.masthead {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #ff8c42;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: normal;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  color: #ff8c42;
  font-size: 1.1rem;
}

.summary {
  margin: 1rem 0 0;
  color: #b0b0b0;
  line-height: 1.5;
}

.api-form {
  max-width: 42rem;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #1a1a1a;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #b0b0b0;
  font-size: 0.85rem;
}

.api-row {
  display: flex;
  gap: 0.75rem;
}

input {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #444;
  border-radius: 3px;
  background: #1e1e1e;
  color: #e0e0e0;
  font: inherit;
}

button {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 3px;
  background: #ff8c42;
  color: #121212;
  cursor: pointer;
  font: inherit;
}

button:hover,
button:focus-visible {
  background: #ffa563;
}

.form-note,
.results-header p {
  margin: 0.75rem 0 0;
  color: #777;
  font-size: 0.8rem;
}

.status {
  margin: 1.5rem 0 0;
  color: #b0b0b0;
}

.status.error {
  color: #ff6b6b;
}

.results {
  margin-top: 2rem;
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.results-header p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #333;
  border-radius: 4px;
}

table {
  width: 100%;
  min-width: 82rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #333;
  text-align: right;
  white-space: nowrap;
}

th {
  background: #1a1a1a;
  color: #b0b0b0;
  font-size: 0.8rem;
  font-weight: normal;
}

td {
  background: #1e1e1e;
}

th:first-child,
th:nth-child(5),
td:first-child,
td:nth-child(5) {
  text-align: left;
}

tbody tr:nth-child(even) td {
  background: #171717;
}

tbody tr.owned td,
tbody tr.owned:nth-child(even) td {
  background: #3b2a55;
}

@media (max-width: 600px) {
  .shell {
    padding: 1.25rem;
  }

  .api-row {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }

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