:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --page-plane: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --gridline: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --success: #006300;
  --market-accent: #7c3aed;
  --hardrock-accent: #c2670c;
  --ex-prophetx: #2a78d6;
  --ex-polymarket: #008300;
  --ex-kalshi: #d1548b;
  --ex-betopenly: #c2790c;
  --ex-novig: #0d9488;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --page-plane: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --gridline: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --success: #2ecc40;
    --market-accent: #a78bfa;
    --hardrock-accent: #f0a742;
    --ex-prophetx: #3987e5;
    --ex-polymarket: #22a822;
    --ex-kalshi: #e17aa8;
    --ex-betopenly: #e0a13d;
    --ex-novig: #2dd4bf;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-plane);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Team banner -- deliberately always dark/photo-first regardless of the
   site's light/dark mode, same reasoning the old face-off banner used: a
   photo with a text overlay reads the same either way, no need to theme it. */
.team-banner {
  position: relative;
  overflow: hidden;
  height: clamp(190px, 24vw, 380px);
  background: #0a0a0a;
}

.team-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
}

.team-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.82) 100%);
}

.team-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(12px, 2.5vw, 22px);
  text-align: center;
  color: #fff;
}

.team-banner-title {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.team-banner-tagline {
  margin: 4px 0 0;
  font-size: clamp(0.85rem, 2.1vw, 1.05rem);
  font-weight: 600;
  color: #ffd25a;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 12px;
}

.topbar-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  font-weight: 400;
  color: var(--text-secondary);
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: none;
}

.status-dot.ok {
  background: var(--success);
}

.status-dot.error {
  background: #d03b3b;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.tab:hover {
  border-color: var(--baseline);
}

a.tab {
  display: inline-block;
  text-decoration: none;
}

.tab.active {
  background: var(--text-primary);
  color: var(--surface-1);
  border-color: var(--text-primary);
}

.tabs-secondary .tab {
  font-size: 0.75rem;
  padding: 4px 10px;
}

.search {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--page-plane);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  font-family: inherit;
  min-width: 180px;
}

.sort-select {
  border: 1px solid var(--border);
  background: var(--page-plane);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  font-family: inherit;
}

main {
  padding: 16px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

/* The Edges tab is a master-detail layout (list left, full breakdown right)
   rather than the centered card grid other pages use -- opts out of main's
   max-width/centering so the split can use the full viewport width. */
#opportunities-view {
  max-width: none;
  margin: 0;
  padding: 0;
  height: calc(100vh - var(--topbar-height, 130px));
}

/* All Odds tab: same full-width master-detail layout as the Edges tab, with
   a book-status strip above the split. */
#books-view {
  max-width: none;
  margin: 0;
  padding: 0;
  height: calc(100vh - var(--topbar-height, 130px));
  display: flex;
  flex-direction: column;
}

#books-view[hidden] {
  display: none;
}

#books-view .split-view {
  flex: 1;
}

/* Edges tab: every visit now triggers a real (paid, several-second) refresh
   -- no more silent 15-minute cache, see main.py's ensure_fresh docstring --
   so this banner is the only way to tell "still pulling fresh odds" from
   "done, here's what's current." */
.refresh-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  flex: none;
}

.refresh-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--market-accent);
  animation: refresh-spin 0.8s linear infinite;
}

@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

.refresh-status.refreshing #edges-refresh-text,
.refresh-status.refreshing .refresh-text {
  color: var(--market-accent);
  font-weight: 600;
}

/* Dims whatever's currently shown while a fresh pull is in flight, so an
   old (possibly stale) row is never mistaken for confirmed-current data --
   per explicit user call 2026-09-06 ("indicate when the pull/refresh is
   complete so no one uses stale data"). */
.split-view.refreshing .opp-list-pane,
.split-view.refreshing .detail-pane {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.split-view {
  display: flex;
  height: 100%;
  min-height: 0;
}

.opp-list-pane {
  flex: none;
  width: 400px;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--border);
}

.detail-pane {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 20px 28px;
}

.detail-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 0;
  text-align: center;
}

.opp-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.opp-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.opp-card.flagged {
  border-color: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.opp-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.opp-liquidity {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--success);
}

.opp-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.opp-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.opp-matchup {
  font-size: 0.98rem;
  font-weight: 700;
}

.opp-market {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--market-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.opp-rows {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

/* Wallets tab card only (buildWalletCard) -- the selection label sits plain
   between the market label and the exchange-row breakdown, no Hard Rock
   headline row above it (this tab has none, see wallet_pipeline.py). */
.opp-selection {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.opp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.opp-row-selection {
  font-weight: 600;
  flex: 1;
}

.opp-row-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.opp-badge-hardrock {
  color: #fff;
  background: var(--hardrock-accent);
}

/* Wallets tab card only -- the headline edge row's badge names whichever
   live exchange (Polymarket/Kalshi) gave the wallet's fill the best edge;
   a neutral market-accent color reads fine regardless of which one won. */
.opp-badge-edge {
  color: #fff;
  background: var(--market-accent);
}

.opp-row-price {
  font-weight: 700;
  min-width: 3.5em;
  text-align: right;
}

.opp-row-ev {
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 3.5em;
  text-align: right;
  color: var(--text-muted);
}

.ev-positive {
  color: var(--success);
}

.opp-details-toggle {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 0;
  text-align: left;
}

.opp-details-toggle:hover {
  color: var(--text-primary);
}

.opp-exchanges {
  display: grid;
  gap: 2px;
}

.opp-exchanges:not(:empty):not([hidden]) {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed var(--gridline);
}

.opp-exchange-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 2px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.exchange-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.exchange-dot.prophetx { background: var(--ex-prophetx); }
.exchange-dot.polymarket { background: var(--ex-polymarket); }
.exchange-dot.kalshi { background: var(--ex-kalshi); }
.exchange-dot.betopenly { background: var(--ex-betopenly); }
.exchange-dot.novig { background: var(--ex-novig); }

.opp-exchange-name {
  flex: 1;
}

.opp-exchange-price {
  font-weight: 600;
  min-width: 3.2em;
  text-align: right;
}

.opp-exchange-liquidity {
  color: var(--text-muted);
  min-width: 4.5em;
  text-align: right;
}

.opp-exchange-updated {
  color: var(--text-muted);
  font-size: 0.68rem;
  min-width: 4.5em;
  text-align: right;
}

.opp-exchange-size-vs-avg,
.opp-exchange-roi {
  color: var(--text-muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

/* Left-pane list card (Edges tab) -- same visual language as .opp-card
   (still used by the Wallets tab's always-expanded cards) but more compact,
   selectable, and never shows its own breakdown inline; that content moves
   to .detail-pane on the right when a card is clicked. See renderListCard. */
.list-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 5px;
  cursor: pointer;
  text-align: left;
}

.list-card:hover {
  border-color: var(--baseline);
}

.list-card:focus-visible {
  outline: 2px solid var(--market-accent);
  outline-offset: 1px;
}

.list-card.flagged {
  border-color: var(--success);
}

.list-card.selected {
  border-color: var(--market-accent);
  box-shadow: 0 0 0 1px var(--market-accent);
  background: color-mix(in srgb, var(--market-accent) 6%, var(--surface-1));
}

/* Detail pane (right side) -- the selected bet's full breakdown. */
.detail-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 14px;
}

.detail-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.detail-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-matchup {
  flex-basis: 100%;
  font-size: 1.3rem;
  font-weight: 800;
}

.detail-hardrock {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
}

.detail-hardrock-selection {
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-hardrock-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-hardrock-price {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.detail-hardrock-ev {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: auto;
}

.depth-ladder-section {
  margin-bottom: 24px;
}

/* Smart-money corroboration section (detail pane) + list-card badge -- see
   models.Opportunity.smart_wallet_quotes' docstring. A distinct visual
   treatment from the depth ladder on purpose: these are historical fills
   (bets already placed), not currently-resting order-book depth. */
.smart-money-section {
  margin-bottom: 24px;
  border: 1px solid var(--market-accent);
  border-radius: 8px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--market-accent) 6%, var(--surface-1));
}

.smart-money-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--market-accent);
  margin-bottom: 6px;
}

.smart-money-badge {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--market-accent);
}

.depth-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.depth-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.depth-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}

.depth-exchange-name {
  min-width: 5.5em;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.depth-price {
  min-width: 3.6em;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

.depth-bar-track {
  flex: 1;
  height: 20px;
  background: var(--page-plane);
  border-radius: 4px;
  overflow: hidden;
}

.depth-bar {
  height: 100%;
  background: var(--baseline);
  border-radius: 4px;
}

.depth-bar-beat {
  background: var(--success);
}

.depth-liquidity {
  min-width: 4.5em;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compare-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.compare-col {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.compare-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--gridline);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row-hardrock {
  font-weight: 700;
}

.compare-exchange-name {
  flex: 1;
  color: var(--text-secondary);
}

.compare-row-hardrock .compare-exchange-name {
  color: var(--hardrock-accent);
}

.compare-price {
  font-weight: 600;
  margin-left: auto;
}

@media (max-width: 900px) {
  .split-view {
    flex-direction: column;
    height: auto;
  }

  #opportunities-view,
  #books-view {
    height: auto;
  }

  .opp-list-pane {
    width: 100%;
    max-height: 60vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .detail-pane {
    padding: 16px;
  }
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 0.9rem;
}

.wallets-intro {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 64ch;
  padding: 12px 0 4px;
}

.min-liquidity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  user-select: none;
}

.min-liquidity input {
  width: 90px;
  border: 1px solid var(--border);
  background: var(--page-plane);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1rem;
  font-family: inherit;
}

@media (max-width: 640px) {
  .tab {
    padding: 10px 14px;
  }

  .tabs-secondary .tab {
    padding: 9px 12px;
  }

  .min-liquidity {
    padding: 6px 0;
  }
}

/* Leaderboard page */
.leaderboard-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.wap-spotlight {
  max-width: 300px;
  margin: 24px auto 0;
  text-align: center;
}

.wap-image-frame {
  position: relative;
  width: 100%;
  /* Sandwich source is 4000x3000 (4:3) -- was 3:4 (portrait) for the
     earlier wet-cat art; overflow: visible (not hidden, unlike the cat
     frame) so the drip decorations below can hang off the edges. */
  aspect-ratio: 4 / 3;
  overflow: visible;
}

.wap-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Centered on the meat stack -- eyeballed against the sandwich source
   (roughly the middle third of the image, comfortably inside both buns).
   Percentage-based, not pixels, so it stays aligned regardless of the
   frame's rendered size. */
.wap-face-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--surface-1);
  z-index: 2;
}

/* Decorative only -- can't edit the actual photo, so these are CSS-drawn
   teardrops (a square rotated 45deg with 3 corners rounded) standing in
   for "drippings" around the sandwich, per explicit user request. Colored
   to read as sauce, not blood -- an amber/brown tone, not red. */
.wap-drip {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  background: linear-gradient(160deg, #c9791f, #8a4f12);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

.wap-drip-1 { width: 10px; height: 10px; left: 18%; bottom: -6px; }
.wap-drip-2 { width: 16px; height: 16px; left: 32%; bottom: -12px; }
.wap-drip-3 { width: 12px; height: 12px; left: 50%; bottom: -9px; }
.wap-drip-4 { width: 18px; height: 18px; left: 66%; bottom: -14px; }
.wap-drip-5 { width: 11px; height: 11px; left: 80%; bottom: -7px; }

.wap-spotlight-caption {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wap-spotlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--market-accent);
}

.wap-spotlight-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gridline);
}

.leaderboard-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaderboard-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.leaderboard-table th[data-sort]:hover {
  color: var(--text-primary);
}

.leaderboard-table .lb-rank {
  width: 2.5em;
  color: var(--text-muted);
}

.leaderboard-table .lb-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table tbody tr:hover {
  background: var(--surface-1);
}

.leaderboard-table tbody tr:first-child .lb-rank {
  color: var(--market-accent);
  font-weight: 700;
}

.leaderboard-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* `.controls` sets display:flex, which silently overrides the browser's own
   [hidden] rule -- without this the All Odds filter row shows on the Edges
   page and the Edges filters show on the All Odds page. Scoped to
   `.controls` on purpose: other elements' existing behaviour is untouched. */
.controls[hidden] {
  display: none;
}

/* ---- All Odds tab (books.js) ---- */
.books-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.book-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.book-chip:hover {
  border-color: var(--baseline);
}

.book-chip.active {
  border-color: var(--market-accent);
  box-shadow: 0 0 0 1px var(--market-accent);
}

.book-chip-name {
  font-weight: 700;
}

.book-chip-meta {
  color: var(--text-muted);
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.books-list-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px 8px;
  margin: 0;
}

.books-same-game {
  margin: 12px 0 0;
}

.books-market-filter {
  width: 100%;
  margin: 14px 0 6px;
}

.book-market {
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}

.book-market-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.book-market-tag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--market-accent);
  background: color-mix(in srgb, var(--market-accent) 12%, transparent);
}

.book-market-tag-muted {
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--text-muted) 16%, transparent);
}

.book-market-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 3px 0;
}

.book-market-row.suspended {
  opacity: 0.45;
}

.book-selection {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--page-plane);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem;
}

.book-selection-name {
  color: var(--text-secondary);
}

.book-selection-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
