/* ============================================================================
   Price Terminal — design tokens
   Indigo-ink trading terminal with two subject-derived accents:
   gold = value/rarity, mint = price up, coral = price down.
   ========================================================================== */
:root {
  --bg: #0f1117;
  --bg-2: #0b0d12;
  --panel: #171a22;
  --panel-2: #1f232e;
  --inset: #12151c;
  --line: #2a2f3c;
  --line-soft: #20242f;
  --text: #e7e9ee;
  --muted: #8a90a2;
  --muted-2: #5c6273;
  --gold: #e8b65a;
  --gold-dim: #b98e3c;
  --mint: #5ce0b8;
  --coral: #ff6b6b;
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.75);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(232, 182, 90, 0.06), transparent 60%),
    radial-gradient(900px 500px at -5% 0%, rgba(92, 224, 184, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: rgba(232, 182, 90, 0.25); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Topbar --------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.92), rgba(15, 17, 23, 0.72));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }

.nav { display: flex; gap: 4px; margin-left: 22px; margin-right: auto; padding: 4px; background: var(--inset); border: 1px solid var(--line); border-radius: 9px; }
.nav-btn {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.on { color: var(--gold); background: var(--panel-2); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(145deg, #20242f, #12151c);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 15px;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.crawl-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.crawl-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 0 rgba(92, 224, 184, 0.5);
}
.crawl-pill.fresh .dot { background: var(--mint); animation: pulse 2.4s infinite; }
.crawl-pill.stale .dot { background: var(--coral); }
.crawl-pill.working .dot { background: var(--gold); animation: pulse 1s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 224, 184, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(92, 224, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 224, 184, 0); }
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.05s;
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn-ghost:active { transform: translateY(1px); }
.btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Ticker (hero: most valuable now) ------------------------------------- */
.ticker {
  display: flex;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.ticker-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.ticker-track {
  display: flex;
  gap: 28px;
  padding: 11px 22px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-track::-webkit-scrollbar { display: none; }

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  cursor: pointer;
  flex: none;
}
.tick:hover .tick-name { color: var(--gold); }
.tick-name { font-size: 13px; color: var(--text); transition: color 0.15s; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; }
.tick-price { font-family: var(--font-mono); font-size: 13px; color: var(--gold); font-weight: 500; }
.tick-move { font-family: var(--font-mono); font-size: 13px; font-weight: 600; flex: none; }
.tick-move.up { color: var(--mint); }
.tick-move.down { color: var(--coral); }

/* ---- Layout --------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 282px 1fr;
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 26px 80px;
}

/* ---- Rail (stats + filters) ---------------------------------------------- */
.rail { display: flex; flex-direction: column; gap: 18px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px 0;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 12px 16px 16px;
}
.stat {
  background: var(--panel-2);
  padding: 12px 14px;
}
.stat-num { font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--text); }
.stat-num.accent { color: var(--gold); }
.stat-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.filters { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.input, .select {
  width: 100%;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 11px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(232, 182, 90, 0.12);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a90a2' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.search-field { position: relative; }
.search-field .input { padding-left: 34px; }
.search-field .search-ic {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

/* ---- Searchable combobox (Expansion) ------------------------------------- */
.combo { position: relative; }
.combo-input { padding-right: 30px; }
.combo-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.combo-clear:hover { color: var(--text); background: var(--line); }
.combo-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 264px;
  overflow-y: auto;
  background: var(--panel, var(--inset));
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.combo-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.combo-opt:hover,
.combo-opt.active { background: var(--line); }
.combo-opt.sel { color: var(--gold); }
.combo-opt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-opt-count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
.combo-empty {
  padding: 10px;
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
}

.seg { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button {
  flex: 1;
  background: var(--inset);
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--panel-2); color: var(--gold); }

.btn-reset {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  padding: 2px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-reset:hover { color: var(--text); }

/* ---- Results / watchlist -------------------------------------------------- */
.results { min-width: 0; }

.results-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.results-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
  margin: 0;
}
.results-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: auto; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow-x: auto; /* scroll instead of clip if the viewport is very narrow */
  background: var(--panel);
}

/* min-width guarantees the price columns are never squashed away; below it the
   wrapper scrolls horizontally rather than clipping. */
.watchlist { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
/* Fixed column widths keep the price columns visible; the product name and set
   take the remaining space and truncate with an ellipsis. */
.watchlist th:nth-child(2), .watchlist td:nth-child(2) { width: 150px; }
.watchlist td.cell-set { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watchlist th:nth-child(3), .watchlist td:nth-child(3) { width: 92px; }
.watchlist th:nth-child(4), .watchlist td:nth-child(4) { width: 100px; }
.watchlist th:nth-child(5), .watchlist td:nth-child(5) { width: 100px; }
.watchlist th:nth-child(6), .watchlist td:nth-child(6) { width: 76px; }
.watchlist thead th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.watchlist th.num, .watchlist td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.watchlist th.sortable { cursor: pointer; user-select: none; }
.watchlist th.sortable:hover { color: var(--text); }
.watchlist th .caret { color: var(--gold); margin-left: 4px; }

.watchlist tbody tr {
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.12s;
}
.watchlist tbody tr:last-child { border-bottom: 0; }
.watchlist tbody tr:hover { background: rgba(232, 182, 90, 0.045); }
.watchlist td { padding: 11px 16px; vertical-align: middle; }

.cell-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-name .nm { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.cell-name .sub { font-size: 11px; color: var(--muted); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill.single { color: var(--mint); border-color: rgba(92, 224, 184, 0.35); }
.pill.nonsingle { color: var(--gold); border-color: rgba(232, 182, 90, 0.35); }

.price-avg { color: var(--gold); font-weight: 500; }
.delta { font-family: var(--font-mono); font-size: 12.5px; }
.delta.up { color: var(--mint); }
.delta.down { color: var(--coral); }
.delta.flat { color: var(--muted-2); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pager .range { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pager-btns { display: flex; gap: 8px; }

.empty, .loading {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.loading .bar {
  width: 120px; height: 3px; margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  background-size: 200% 100%;
  animation: slide 1.1s linear infinite;
}
@keyframes slide { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- Slab drawer (signature) --------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(7, 9, 13, 0.62);
  backdrop-filter: blur(2px);
  animation: fade 0.18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.slab {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(460px, 94vw);
  height: 100dvh;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: slidein 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.slab-scroll { overflow-y: auto; padding: 0 0 28px; }

/* graded-slab label strip */
.slab-label {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #20242f, #161a22);
  border-bottom: 2px solid var(--gold-dim);
}
.slab-label .grade {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding: 5px 9px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.slab-label .lbl-meta { display: flex; flex-direction: column; min-width: 0; }
.slab-label .lbl-cat { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slab-label .lbl-id { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.slab-close {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 16px;
  flex: none;
  transition: color 0.15s, border-color 0.15s;
}
.slab-close:hover { color: var(--coral); border-color: var(--coral); }

.slab-body { padding: 20px; }
.slab-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; margin: 0 0 4px; }
.slab-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.headline .hl-price { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1; }
.headline .hl-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.headline .hl-delta { font-family: var(--font-mono); font-size: 14px; text-align: right; }

.cm-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  transition: background 0.15s, transform 0.05s;
}
.cm-link:hover { background: rgba(232, 182, 90, 0.09); }
.cm-link:active { transform: translateY(1px); }

/* sparkline */
.spark-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px 10px; margin-bottom: 18px; background: var(--panel-2); }
.spark-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.spark-title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spark-range { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.spark svg { width: 100%; height: 96px; display: block; overflow: visible; }
.spark-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.spark-axis span { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); }

.grid-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.pg-cell { background: var(--panel-2); padding: 12px 13px; }
.pg-cell .k { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pg-cell .v { font-family: var(--font-mono); font-size: 15px; color: var(--text); margin-top: 3px; }
.pg-cell .v.gold { color: var(--gold); }
.pg-cell .v.dim { color: var(--muted-2); }

.holo-note { font-size: 12px; color: var(--muted); margin: 18px 0 0; }

/* ---- Toast --------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-left-color: var(--coral); }

/* ---- API documentation view ---------------------------------------------- */
.apidoc { max-width: 920px; margin: 0 auto; padding: 44px 26px 100px; }

.api-hero { border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 34px; }
.api-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.api-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
.api-lede { color: var(--muted); font-size: 16px; max-width: 62ch; margin: 0 0 22px; }
.api-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.chip .k { color: var(--muted); }
.chip.link { color: var(--gold); text-decoration: none; transition: border-color 0.15s; }
.chip.link:hover { border-color: var(--gold-dim); }

.api-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 38px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.conventions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.conv { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.conv h3 { font-family: var(--font-display); font-size: 14px; margin: 0 0 6px; color: var(--text); }
.conv p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.conv code { font-family: var(--font-mono); font-size: 12px; color: var(--gold); background: var(--inset); padding: 1px 5px; border-radius: 4px; }

.endpoint { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; overflow: hidden; }
.ep-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; flex-wrap: wrap; }
.method {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  flex: none;
}
.method.get { color: var(--mint); border-color: rgba(92, 224, 184, 0.4); }
.method.post { color: var(--gold); border-color: rgba(232, 182, 90, 0.4); }
.ep-path { font-family: var(--font-mono); font-size: 14px; color: var(--text); word-break: break-all; }
.ep-path .var { color: var(--gold); }
.ep-run { margin-left: auto; flex: none; }
.btn-run {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
  background: var(--inset);
  border: 1px solid rgba(92, 224, 184, 0.35);
  border-radius: var(--r-sm);
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn-run:hover { background: rgba(92, 224, 184, 0.08); }
.btn-run:active { transform: translateY(1px); }
.btn-run:disabled { opacity: 0.5; cursor: default; }

.ep-body { padding: 0 18px 18px; }
.ep-desc { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

.params { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 4px; }
.params th { text-align: left; font-family: var(--font-display); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.params td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; }
.params td:first-child { font-family: var(--font-mono); color: var(--text); white-space: nowrap; }
.params tr:last-child td { border-bottom: 0; }

.code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 14px;
  overflow-x: auto;
  white-space: pre;
  max-height: 360px;
  overflow-y: auto;
}
.code .req { color: var(--mint); display: block; margin-bottom: 8px; }
.code .muted { color: var(--muted-2); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; padding: 18px 16px 60px; }
  .rail { order: -1; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters .field.full, .filters .btn-reset { grid-column: 1 / -1; }
  .cell-set, .col-set { display: none; }
  .brand-sub { display: none; }
  .conventions { grid-template-columns: 1fr; }
  .apidoc { padding: 28px 16px 70px; }
  .nav { margin-left: 12px; }
  .api-hero h1 { font-size: 27px; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .col-7d, .cell-7d { display: none; }
}

/* ---- A11y ----------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
