:root {
  --forge: #ff6b1a;
  --ember: #ff3d00;
  --gold: #c8a84b;
  --soot: #0d0b09;
  --ash: #1a1410;
  --iron: #2a2420;
  --steel: #3a3430;
  --smoke: #6a6460;
  --parchment: #e8e0d0;
  --parchment-dim: rgba(232, 224, 208, 0.55);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--soot);
  color: var(--parchment);
  font-family: 'IM Fell English', Georgia, serif;
  min-height: 100vh;
  line-height: 1.6;
}
.container { max-width: 880px; margin: 0 auto; padding: 64px 32px; }
header h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem; letter-spacing: 0.1em;
  color: var(--forge);
}
.tagline { color: var(--parchment-dim); font-style: italic; margin-bottom: 2rem; }
fieldset {
  border: 1px solid var(--steel); padding: 1rem; margin-bottom: 1rem;
}
legend { color: var(--gold); padding: 0 0.5rem; font-family: 'Cinzel', serif; }
label { display: inline-block; margin-right: 1rem; }
input, select {
  background: var(--ash); color: var(--parchment);
  border: 1px solid var(--steel); padding: 0.4rem 0.6rem;
  font-family: 'Share Tech Mono', monospace;
}
button {
  background: var(--forge); color: var(--soot);
  border: none; padding: 0.6rem 1.2rem;
  font-family: 'Cinzel', serif; cursor: pointer;
  letter-spacing: 0.05em;
}
button:hover { background: var(--ember); color: var(--parchment); }
.tier-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 0.5rem; align-items: center;
  margin: 0.5rem 0;
}
.ebay-link { color: var(--gold); text-decoration: none; font-size: 0.9em; }
.ebay-link:hover { color: var(--forge); }
table { width: 100%; border-collapse: collapse; font-family: 'Share Tech Mono', monospace; margin-top: 1rem; }
th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--steel); }
th { color: var(--gold); font-family: 'Cinzel', serif; }
tr.best { background: rgba(255, 107, 26, 0.1); }
tr.best td:last-child { color: var(--forge); font-weight: bold; }
table.compare { font-size: 0.9em; }
table.compare th { white-space: nowrap; }
table.compare td { vertical-align: top; }
table.compare tr.best td:last-child { color: var(--parchment); font-weight: normal; }
table.compare tr.best td:first-child { color: var(--forge); }
#compare-note h2, #cold-spare-note h2, #recovery-note h2 {
  font-family: 'Cinzel', serif; color: var(--gold); margin: 2.5rem 0 0.75rem;
}
#compare-note ul, #cold-spare-note ul { padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
#compare-note li, #cold-spare-note li { margin: 0.25rem 0; }
footer { margin-top: 4rem; color: var(--parchment-dim); font-size: 0.9em; text-align: center; }
footer a { color: var(--gold); }
#explain { margin-top: 3rem; }
#explain h2 { font-family: 'Cinzel', serif; color: var(--gold); margin-bottom: 0.5rem; }
.radio-row { display: block; padding: 0.6rem 0; }
.radio-row input { margin-right: 0.5rem; }
.hint { color: var(--parchment-dim); font-style: italic; margin-bottom: 0.75rem; }
.bucket-budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}
details.advanced summary { color: var(--gold); cursor: pointer; padding: 0.5rem 0; }
details.advanced { margin-top: 1.5rem; padding: 0.5rem; border: 1px dashed var(--steel); }
#topology-preview { color: var(--gold); }
footer .disclosure {
  font-size: 0.85em;
  color: #666;
  max-width: 680px;
  margin: 0.6em auto;
  line-height: 1.4;
}

table.market {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
table.market th, table.market td {
  padding: 0.5em 0.7em;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
table.market td.ttiy {
  font-weight: 600;
}
table.market th {
  background: #f4f4f4;
}
table.market tr.pending td {
  color: #999;
  background: #fafafa;
}
table.market td.pending-cell {
  font-style: italic;
}
.aff-tag {
  font-size: 0.8em;
  color: #888;
}
.pending-banner {
  background: #fff8e0;
  border-left: 3px solid #d4a017;
  padding: 0.6em 0.9em;
  margin: 0.8em 0;
  font-size: 0.95em;
  line-height: 1.4;
}
