:root {
  --bg: #12110f;
  --bg-elev: #1c1a16;
  --bg-input: #0e0d0b;
  --line: #3a3428;
  --text: #ece6d8;
  --muted: #9c917c;
  --accent: #d9a441;
  --accent-dim: #8a6a28;
  --danger: #c45c4a;
  --ok: #8faf6a;
  --font: "Segoe UI", "Trebuchet MS", sans-serif;
  --mono: "Cascadia Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, #2a2418 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0.04em;
  font-weight: 650;
}

.sub {
  margin: 0 0 24px;
  color: var(--muted);
}

.status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.load-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.bar {
  height: 6px;
  background: #2a261e;
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.4s ease;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 18px;
  margin-bottom: 24px;
}

.search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search input {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font: 16px/1.3 var(--mono);
}

.search button {
  background: var(--accent);
  color: #1a1408;
  border: 0;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.search button:hover {
  filter: brightness(1.05);
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.meta strong {
  color: var(--text);
}

.error {
  color: var(--danger);
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  background: #241f18;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

tbody th {
  color: var(--muted);
  font-weight: 600;
}

.price {
  color: var(--text);
  font-family: var(--mono);
}

.empty {
  color: #5c5648;
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

.ok {
  color: var(--ok);
}
