/* Redesigned Edges page (preview at /next/). Builds on ../styles.css for the
   banner, tabs and theme colors; everything here is prefixed nx-. */

:root {
  --nx-accent: #1d5fd6;
  --nx-accent-soft: rgba(29, 95, 214, 0.10);
  --nx-good: #0a7a2f;
  --nx-good-soft: rgba(10, 122, 47, 0.10);
  --nx-card: var(--surface-1);
  --nx-inset: rgba(11, 11, 11, 0.035);
  --nx-book-hardrockbet: #b45309;
  --nx-book-fliff: #7c3aed;
  --nx-book-dogghouse: #0f766e;
  --nx-book-rebet: #be123c;
  --nx-book-courtside: #c2410c;
  --nx-book-onyxodds: #475569;
  --nx-book-bracco: #0f766e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --nx-accent: #5b9dff;
    --nx-accent-soft: rgba(91, 157, 255, 0.14);
    --nx-good: #4ade80;
    --nx-good-soft: rgba(74, 222, 128, 0.12);
    --nx-inset: rgba(255, 255, 255, 0.04);
    --nx-book-hardrockbet: #f0a742;
    --nx-book-fliff: #b79bff;
    --nx-book-dogghouse: #2dd4bf;
    --nx-book-rebet: #fb7185;
    --nx-book-courtside: #fb923c;
    --nx-book-onyxodds: #cbd5e1;
    --nx-book-bracco: #5eead4;
  }
}

body.nx-panel-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------- toolbar */

.nx-topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nx-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nx-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nx-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nx-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.nx-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text-muted);
}

.nx-search:focus-within {
  border-color: var(--nx-accent);
  box-shadow: 0 0 0 3px var(--nx-accent-soft);
}

.nx-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
  width: 100%;
}

.nx-filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.nx-filter-btn:hover {
  border-color: var(--baseline);
}

.nx-filter-btn:focus-visible,
.nx-chip:focus-visible,
.nx-btn:focus-visible,
.nx-icon-btn:focus-visible,
.nx-active-chip:focus-visible,
.nx-card:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 2px;
}

.nx-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--nx-accent);
  border: 2px solid var(--page-plane);
}

.nx-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 26px;
}

.nx-active {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nx-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--nx-accent-soft);
  color: var(--nx-accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.nx-active-x {
  font-size: 0.7rem;
  opacity: 0.75;
}

.nx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ----------------------------------------------------------- filter panel */

.nx-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.nx-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.nx-panel[hidden],
.nx-backdrop[hidden] {
  display: none;
}

.nx-panel-head,
.nx-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.nx-panel-foot {
  border-bottom: 0;
  border-top: 1px solid var(--border);
}

.nx-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.nx-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 18px 18px;
}

.nx-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--gridline);
}

.nx-section:last-child {
  border-bottom: 0;
}

.nx-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nx-link {
  border: 0;
  background: none;
  color: var(--nx-accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  padding: 0;
}

.nx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nx-chip {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.nx-chip:hover {
  border-color: var(--baseline);
}

.nx-chip.active {
  border-color: var(--nx-accent);
  background: var(--nx-accent-soft);
  color: var(--nx-accent);
  font-weight: 600;
}

.nx-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.nx-field {
  min-width: 0;
}

.nx-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--page-plane);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.nx-field input:focus {
  outline: 0;
  border-color: var(--nx-accent);
  box-shadow: 0 0 0 3px var(--nx-accent-soft);
}

.nx-field-row {
  display: flex;
  gap: 10px;
}

.nx-field-row .nx-field {
  margin-top: 0;
}

.nx-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.nx-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.nx-btn-primary {
  flex: 1;
  background: var(--nx-accent);
  border-color: var(--nx-accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .nx-btn-primary {
    color: #06142e;
  }
}

.nx-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
}

/* ------------------------------------------------------------------ split */

.nx-main {
  padding: 14px clamp(12px, 3vw, 32px) 40px;
}

.nx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.nx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ------------------------------------------------------------------- card */

.nx-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--nx-card);
  cursor: pointer;
}

.nx-card:hover {
  border-color: var(--baseline);
}

.nx-card.selected {
  border-color: var(--nx-accent);
  background: linear-gradient(0deg, var(--nx-accent-soft), var(--nx-accent-soft)), var(--nx-card);
}

.nx-card-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.nx-liquidity {
  color: var(--nx-good);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.nx-liquidity-caption,
.nx-caption {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.nx-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.nx-card-headtext {
  min-width: 0;
}

.nx-meta,
.nx-time {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.nx-time {
  white-space: nowrap;
}

.nx-matchup {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}

.nx-market {
  color: var(--market-accent);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Main / Alt / Prop, beside the market name */
.nx-kind {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: 1px;
  color: var(--nx-accent);
  background: var(--nx-accent-soft);
}

.nx-kind-main {
  color: #15803d;
  background: rgba(21, 128, 61, 0.12);
}

.nx-kind-alt {
  color: var(--text-secondary);
  background: var(--nx-inset);
  border: 1px solid var(--border);
  line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nx-kind-main {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.14);
  }
}

:root[data-theme="dark"] .nx-kind-main {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
}

.nx-bet-box {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--nx-inset);
}

.nx-bet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
}

.nx-bet-row + .nx-bet-row {
  border-top: 1px solid var(--border);
}

.nx-bet-name {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.nx-bet-row-opp .nx-bet-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.nx-bet-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nx-odds {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nx-odds-book {
  padding: 3px 9px;
  border: 1px solid var(--nx-good);
  border-radius: 7px;
  background: var(--nx-good-soft);
  color: var(--nx-good);
}

.nx-odds-opp {
  min-width: 46px;
  text-align: right;
  color: var(--text-secondary);
}

.nx-odds-large {
  font-size: 1.15rem;
  padding: 5px 12px;
}

.nx-book {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-secondary);
}

.nx-book-hardrockbet { color: var(--nx-book-hardrockbet); }
.nx-book-fliff { color: var(--nx-book-fliff); }
.nx-book-dogghouse { color: var(--nx-book-dogghouse); }
.nx-book-rebet { color: var(--nx-book-rebet); }
.nx-book-courtside { color: var(--nx-book-courtside); }
.nx-book-onyxodds { color: var(--nx-book-onyxodds); }
.nx-book-bracco { color: var(--nx-book-bracco); }

.nx-exchange {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- detail */

.nx-detail {
  position: sticky;
  top: 12px;
  padding: 16px;
  border: 1px solid var(--nx-accent);
  border-radius: 12px;
  background: var(--nx-card);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.nx-detail-close {
  display: none;
}

.nx-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gridline);
}

.nx-detail-liq {
  padding-right: 14px;
  border-right: 1px solid var(--gridline);
}

.nx-detail-bet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--nx-inset);
}

.nx-detail-bet-name {
  font-size: 1.02rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.nx-detail-opp {
  margin-top: 16px;
}

.nx-detail-opp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.nx-detail-opp-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nx-detail-opp-name {
  font-size: 0.95rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.nx-detail-opp-stats {
  display: flex;
  gap: 18px;
}

.nx-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nx-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nx-ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nx-ladder-row {
  display: grid;
  grid-template-columns: 92px 52px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
}

.nx-ladder-odds {
  font-size: 0.86rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.nx-bar-track {
  height: 22px;
  border-radius: 5px;
  background: var(--nx-inset);
  overflow: hidden;
}

.nx-bar {
  height: 100%;
  border-radius: 5px;
  background: var(--baseline);
}

.nx-bar-backing {
  background: var(--nx-good);
  opacity: 0.75;
}

.nx-ladder-size {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.nx-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.nx-detail-books {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gridline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nx-books-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nx-books-row.current {
  border-color: var(--nx-accent);
  background: var(--nx-accent-soft);
}

/* ----------------------------------------------------------------- narrow */

@media (max-width: 900px) {
  .nx-split {
    grid-template-columns: minmax(0, 1fr);
  }

  /* the detail becomes a sheet that opens over the list when a bet is tapped */
  .nx-detail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 82vh;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(105%);
    transition: transform 0.2s ease;
    z-index: 30;
  }

  .nx-detail.open {
    transform: translateY(0);
  }

  .nx-detail-close {
    display: block;
    margin-left: auto;
    margin-bottom: 8px;
  }
}

@media (max-width: 560px) {
  .nx-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .nx-card-side {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .nx-tools {
    width: 100%;
  }

  .nx-search {
    flex: 1;
    min-width: 0;
  }

  .nx-ladder-row {
    grid-template-columns: 84px 48px minmax(0, 1fr) 50px;
  }

  .nx-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .nx-detail-liq {
    border-right: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-detail {
    transition: none;
  }
}

/* -------------------------------------------------------------- arbitrage */

.nx-h3-gap {
  margin-top: 14px !important;
}

.nx-arb-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.nx-age-old {
  color: #b45309;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .nx-age-old {
    color: #f0a742;
  }
}

.nx-legs .nx-detail-bet + .nx-detail-bet {
  margin-top: 8px;
}

.nx-calc {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.nx-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.nx-calc-grid .nx-field:last-child {
  grid-column: 1 / -1;
}

.nx-calc-result {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nx-calc-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.nx-calc-value {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  text-align: right;
}

.nx-calc-good .nx-calc-value {
  color: var(--nx-good);
}

.nx-calc-bad .nx-calc-value {
  color: #c2410c;
}

.nx-warn {
  color: #b45309;
}

@media (prefers-color-scheme: dark) {
  .nx-warn {
    color: #f0a742;
  }
}

.nx-ladder-row-arb {
  grid-template-columns: 92px 52px minmax(0, 1fr) 54px 54px;
}

@media (max-width: 560px) {
  .nx-ladder-row-arb {
    grid-template-columns: 84px 46px minmax(0, 1fr) 46px 48px;
  }
}

.nx-segment {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
}

.nx-segment[hidden] {
  display: none;
}

.nx-segment button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.nx-segment button.active {
  background: var(--nx-accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .nx-segment button.active {
    color: #06142e;
  }
}

.nx-segment button:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 2px;
}

.nx-side-gap {
  margin-top: 6px;
}

/* ----------------------------------------------------- refresh and play */

.nx-icon-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text-primary);
  cursor: pointer;
}

.nx-icon-tool[hidden] {
  display: none;
}

.nx-icon-tool:hover {
  border-color: var(--baseline);
}

.nx-icon-tool:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 2px;
}

.nx-icon-tool.active {
  border-color: var(--nx-accent);
  background: var(--nx-accent-soft);
  color: var(--nx-accent);
}

.nx-pause-icon,
.nx-icon-tool.active .nx-play-icon {
  display: none;
}

.nx-icon-tool.active .nx-pause-icon {
  display: block;
}

.nx-icon-tool.spinning svg {
  animation: nx-spin 0.7s linear infinite;
}

@keyframes nx-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-icon-tool.spinning svg {
    animation: none;
  }
}

.nx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nx-links {
  display: inline-flex;
  gap: 12px;
}

.nx-ev {
  margin-top: 6px;
  color: var(--nx-good);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------- odds as American + price in cents */

.nx-odds-both {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.nx-price {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.nx-ladder-row-arb {
  grid-template-columns: 92px 50px 48px minmax(0, 1fr) 52px 54px;
}

@media (max-width: 560px) {
  .nx-ladder-row-arb {
    grid-template-columns: 78px 44px 44px minmax(0, 1fr) 44px 48px;
  }
}

/* a badge that opens the site's page for the game (links.py) */
.nx-linked { text-decoration: none; cursor: pointer; }
.nx-linked:hover, .nx-linked:focus-visible { text-decoration: underline; }
.nx-link-mark { font-size: 0.8em; margin-left: 0.25em; opacity: 0.75; }

/* a live row's game clock and stoppage (clockBadge) */
.nx-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.nx-clock-time { color: var(--text-muted); font-size: 0.76rem; }
.nx-clock-stop { font-size: 0.72rem; font-weight: 650; color: #b45309; background: rgba(180, 83, 9, 0.12); border-radius: 999px; padding: 1px 8px; }

/* the amount to put on a leg for the chosen total stake (legStakes) */
.nx-stake { font-size: 0.74rem; font-weight: 650; color: var(--text-muted); white-space: nowrap; }

/* a rounded pair whose rounding eats the whole edge */
.nx-stake-loss { color: #b91c1c; }

/* Middles: where both bets win, and a pair that loses a little when it misses */
.nx-mid-line { margin: 6px 2px 0; font-size: 0.8rem; font-weight: 600; color: var(--text); }
.nx-mid-loss { color: #b45309; }
.nx-more {
  display: block; width: 100%; margin: 4px 0 12px; padding: 10px; border: 1px dashed var(--border);
  border-radius: 10px; background: transparent; color: var(--text-muted); font: inherit; font-size: 0.82rem; cursor: pointer;
}
.nx-more:hover { color: var(--text); }
