:root {
  --bg: #fbf9f4; --fg: #1d1a14; --muted: #6d665a; --card: #ffffff; --line: #e6e0d2;
  --accent: #b8860b; --accent-fg: #ffffff;
  --ok: #2e7d32; --warn: #a15c00; --bad: #b3261e;
  --gutter: 16px; --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0b; --fg: #f1ece0; --muted: #a39b8a; --card: #1a1813; --line: #2d2a22;
    --accent: #e0b040; --accent-fg: #1a1400;
    --ok: #7bd17f; --warn: #f0b45a; --bad: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font); }
main, header.bar, footer { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
main { padding-top: 32px; padding-bottom: 32px; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 16px; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }
.btn { display: block; width: 100%; text-align: center; padding: 14px 16px; margin: 0 0 12px;
  border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent);
  color: var(--accent-fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--accent); }
.btn[hidden], [hidden] { display: none !important; }
footer { padding-top: 16px; padding-bottom: 32px; color: var(--muted); font-size: .9rem; }
header.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
header.bar .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
header.bar button { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
ul.rows { list-style: none; margin: 0; padding: 0; }
ul.rows li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.name a { color: inherit; text-decoration: none; }
.price { text-align: right; white-space: nowrap; }
.meta { color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid currentColor; text-transform: capitalize; }
.pill.active { color: var(--accent); } .pill.sold, .pill.sold_ingame { color: var(--ok); }
.pill.expired, .pill.unknown { color: var(--warn); } .pill.cancelled { color: var(--bad); }
.empty { color: var(--muted); }
