[hidden] {
  display: none !important;
}
.rt-main--ebay .intro {
  padding: 62px 0 28px;
}
.rt-main--ebay .intro h1 {
  font-size: clamp(3.3rem, 9vw, 5.6rem);
  line-height: 1.03;
  margin: 0 0 22px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.rt-main--ebay .intro h1 span {
  color: var(--accent-ink);
}
.rt-main--ebay .intro p:last-child {
  color: var(--muted);
}
.rt-main--ebay section {
  border-top: 1px solid var(--rule);
  padding: 30px 0;
}
.rt-main--ebay .section-top {
  display: flex;
  gap: 15px;
  align-items: baseline;
}
.rt-main--ebay .step {
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.rt-main--ebay h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 18px;
}
.rt-main--ebay h3 {
  font-size: 1.1rem;
}
.rt-main--ebay p {
  font-size: 0.96rem;
}
.rt-main--ebay .muted,
.rt-main--ebay #listing-status,
.rt-main--ebay #provider-state {
  color: var(--muted);
}
.rt-main--ebay .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rt-main--ebay .wide {
  grid-column: 1/-1;
}
.rt-main--ebay label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 550;
  margin: 0 0 14px;
}
.rt-main--ebay input,
.rt-main--ebay select,
.rt-main--ebay button {
  font: inherit;
}
.rt-main--ebay input,
.rt-main--ebay select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--field);
  color: var(--text);
  font-size: 16px;
}
.rt-main--ebay button,
.rt-main--ebay .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0 0 12px;
}
.rt-main--ebay button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.rt-main--ebay .primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.rt-main--ebay .check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  font-weight: 400;
  gap: 12px;
}
.rt-main--ebay .check input {
  flex: 0 0 21px;
  width: 21px;
  min-height: 24px;
  margin-top: 1px;
  accent-color: var(--accent-ink);
}
.rt-main--ebay details {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.rt-main--ebay summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
  margin-left: 18px;
}
.rt-main--ebay details > p {
  margin-top: 12px;
}
.rt-main--ebay pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 0.9rem;
}
.rt-main--ebay #listing-image {
  max-height: 230px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 20px;
}
.rt-main--ebay .match {
  background: var(--soft);
  padding: 16px;
  border-left: 3px solid var(--accent);
  overflow-wrap: anywhere;
}
.rt-main--ebay .evidence-card,
.rt-main--ebay .sale-card {
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.rt-main--ebay .evidence-card p {
  margin-bottom: 9px;
}
.rt-main--ebay .evidence-card .price {
  font-size: 1.6rem;
}
.rt-main--ebay .research-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
}
.rt-main--ebay .research-links a,
.rt-main--ebay .shortcut a {
  color: var(--accent-ink);
  text-decoration: underline;
}
.rt-main--ebay .result {
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 20px 0;
}
.rt-main--ebay .result .amount {
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 650;
  line-height: 1.2;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.rt-main--ebay .result dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-size: 0.92rem;
}
.rt-main--ebay .result dd {
  margin: 0;
  text-align: right;
}
.rt-main--ebay .error {
  color: var(--progress);
}
.rt-main--ebay .shortcut {
  margin: 30px 0;
}
.rt-main--ebay li {
  padding-bottom: 12px;
}
.rt-main--ebay code {
  overflow-wrap: anywhere;
}
.rt-main--ebay footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  padding: 24px 0 40px;
  font-size: 0.85rem;
}
.rt-main--ebay .scenario-row {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.rt-main--ebay #status:empty {
  display: none;
}
@media (max-width: 540px) {
  .rt-main--ebay .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
.rt-main--ebay .intro {
    padding-top: 36px;
  }
.rt-main--ebay .rt-header {
    padding-top: 22px;
  }
.rt-main--ebay .rt-brand {
    font-size: 0.95rem;
  }
.rt-main--ebay .rt-bar nav {
    font-size: 0.86rem;
    gap: 12px;
  }
.rt-main--ebay .wide {
    grid-column: auto;
  }
.rt-main--ebay .result {
    padding: 18px;
  }
.rt-main--ebay #listing-form button,
.rt-main--ebay #price-search button,
.rt-main--ebay #calculator > button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt-main--ebay * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* ---- Batch pricing ---- */
.rt-main--ebay .batch-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.rt-main--ebay .batch-links label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.rt-main--ebay .batch-links label span {
  min-width: 2ch;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}
.rt-main--ebay .row-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rt-main--ebay .batch-row {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 14px;
  background: var(--card);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}
.rt-main--ebay .batch-row > img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--field);
}
.rt-main--ebay .batch-row .no-image {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  background: var(--field);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
}
.rt-main--ebay .batch-row .body {
  min-width: 0;
}
.rt-main--ebay .batch-row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.rt-main--ebay .batch-row .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.rt-main--ebay .batch-row .fields {
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-bottom: 8px;
}
.rt-main--ebay .batch-row .fields label {
  margin: 0;
  font-size: 0.8rem;
  min-width: 0; /* WebKit: let grid cells shrink below the select's option text */
}
.rt-main--ebay .batch-row .fields input,
.rt-main--ebay .batch-row .fields select {
  min-height: 40px;
  padding: 6px 8px;
  font-size: 14px;
  max-width: 100%;
}
.rt-main--ebay .bids div {
  min-width: 0;
}
.rt-main--ebay .bids {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.rt-main--ebay .bids div {
  background: var(--field);
  border-radius: 6px;
  padding: 8px;
}
.rt-main--ebay .bids dt {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rt-main--ebay .bids dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.rt-main--ebay .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--rule-strong);
}
.rt-main--ebay .badge.low {
  color: #b42318;
  border-color: #b42318;
}
.rt-main--ebay .badge.medium {
  color: #b54708;
  border-color: #b54708;
}
.rt-main--ebay .badge.high {
  color: #067647;
  border-color: #067647;
}
.rt-main--ebay .batch-row .notes {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 0;
  padding-left: 18px;
}
.rt-main--ebay .batch-row details {
  margin-top: 6px;
}
.rt-main--ebay .batch-row .row-buttons button {
  margin: 8px 0 0;
  min-height: 40px;
}
@media (max-width: 420px) {
  .rt-main--ebay .batch-row {
    grid-template-columns: 72px 1fr;
  }
.rt-main--ebay .batch-row > img,
.rt-main--ebay .batch-row .no-image {
    width: 72px;
    height: 72px;
  }
.rt-main--ebay .bids {
    grid-template-columns: 1fr 1fr;
  }
.rt-main--ebay .batch-row .fields {
    grid-template-columns: 1fr;
  }
}

/* Page shell: wider column than the 700px default, spacing under the shared header. */
body[data-rt-page="ebay"] .rt-col {
  width: min(100%, 900px);
}
.rt-main--ebay {
  padding-top: 20px;
}
.rt-main--ebay .research-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
