:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #aaa79d;
  --panel: #171816;
  --line: #34362f;
  --lime: #d8ff63;
  --amber: #ffbf5a;
  --bg: #0b0c0b;
  --drop: #10120f;
  --market: #17200f;
  --market-line: #59672f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0, #293120 0, transparent 32%),
    radial-gradient(circle at 92% 18%, #1a2414 0, transparent 28%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}
.watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .055;
  background: repeating-linear-gradient(-18deg, transparent 0 78px, #fff 78px 79px);
}
.watermark::after {
  content: "PROTOTYPE · NOT LIVE · NO SHOPIFY · NO LIVE PRICING";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(16px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: .1em;
  transform: rotate(-18deg);
  white-space: nowrap;
  color: #fff;
}
.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
header.shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
}
.pill, .badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.badge.safe { color: var(--lime); border-color: #59672f; background: rgba(216,255,99,.08); }
.badge.review { color: var(--amber); border-color: #6b5324; background: rgba(255,191,90,.08); }
.badge.alert {
  color: #111;
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 800;
}
main.shell {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  padding: 26px 0 18px;
  align-items: start;
}
.panel {
  background: linear-gradient(145deg, #1b1d1a, #121311);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 70px #0008;
}
.eyebrow {
  color: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 8px 0 13px;
  max-width: 14ch;
  font-weight: 850;
}
h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.2; }
.muted { color: var(--muted); }
.lead { margin: 0 0 4px; max-width: 46ch; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 18px;
}
.chip {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.chip.active {
  color: #111;
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 750;
}
.drop {
  min-height: 255px;
  border: 1px dashed #636853;
  border-radius: 17px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 24px;
  background: var(--drop);
  transition: border-color .15s ease, background .15s ease;
}
.drop:focus-within, .drop.is-ready {
  border-color: var(--lime);
  background: #12160f;
}
.drop-inner { display: grid; gap: 10px; justify-items: center; max-width: 320px; }
.drop h2 { margin: 4px 0 0; font-size: 20px; }
.card-icon {
  width: 92px;
  height: 126px;
  border-radius: 10px;
  margin: 0 auto 6px;
  background: linear-gradient(145deg, #e84764, #5d244d 52%, #251934);
  border: 5px solid #eee5ca;
  transform: rotate(-4deg);
  box-shadow: 12px 15px 0 #0005;
  position: relative;
}
.card-icon::after {
  content: "";
  position: absolute;
  inset: 14px 12px auto;
  height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,.18);
}
.card-icon[data-category="baseball"] {
  background: linear-gradient(145deg, #3d7cff, #1a2f6b 55%, #10182e);
}
.card-icon[data-category="football"] {
  background: linear-gradient(145deg, #c45a18, #6b2d12 55%, #24140c);
}
.card-icon[data-category="basketball"] {
  background: linear-gradient(145deg, #ff8a2b, #8a3a10 55%, #2a1608);
}
.card-icon[data-category="pokemon"] {
  background: linear-gradient(145deg, #e84764, #5d244d 52%, #251934);
}
.drop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}
button, .ghost-file {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 44px;
  font: inherit;
  font-weight: 850;
  background: var(--lime);
  color: #111;
  cursor: pointer;
}
button.secondary, .ghost-file {
  background: #262823;
  color: var(--ink);
  border: 1px solid var(--line);
}
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.batch {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10110f;
}
.batch strong { font-size: 19px; }
.progress {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #2b2d28;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), #93d63c);
  transition: width .25s ease;
}
.market-head, .price-row, .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.field {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #10110f;
}
.field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.market {
  margin-top: 13px;
  border: 1px solid var(--market-line);
  border-radius: 15px;
  padding: 14px;
  background: var(--market);
}
.price {
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
.price-meta { color: var(--muted); font-size: 13px; text-align: right; }
.safe { color: var(--lime); }
.review { color: var(--amber); }
.actions { justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.confirm-list {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10110f;
}
.confirm-list legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 14px;
}
input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--lime);
}
label.block { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
input:not([type=checkbox]), select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #10110f;
  color: var(--ink);
  font: inherit;
}
.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  border: 0;
  margin: 0;
  padding: 0;
}
.edit-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
details.import, details.edits {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 0;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "▸ ";
  color: var(--lime);
}
details[open] summary::before { content: "▾ "; }
#message {
  grid-column: 1 / -1;
  min-height: 1.3em;
  margin: -6px 0 0;
  font-weight: 700;
  color: var(--lime);
  overflow-wrap: anywhere;
}
#message[data-kind=error] { color: var(--amber); }
#message:empty { display: none; }
#workspace[hidden], #review[hidden], [hidden] { display: none !important; }
.empty-review {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.empty-review strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 8px;
}
#progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.receipt {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.card-select { margin-top: 12px; }
footer.shell {
  color: var(--muted);
  text-align: center;
  padding: 8px 0 28px;
  font-size: 12px;
  line-height: 1.5;
}
footer code {
  color: #d7e8a8;
  font-size: .95em;
}
@media (max-width: 800px) {
  main.shell { grid-template-columns: 1fr; }
  .fields, .edit-grid { grid-template-columns: 1fr; }
  header.shell { align-items: flex-start; }
  .pill.hide-narrow { display: none; }
  h1 { max-width: none; }
  .actions, .drop-actions { justify-content: stretch; }
  .actions button, .drop-actions button { flex: 1; }
  .batch { flex-wrap: wrap; }
  .batch .progress { min-width: 100%; order: 3; }
}
